Home | History | Annotate | Line # | Download | only in dist
configure revision 1.3
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for BIND 9.13.
      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.13'
    593 PACKAGE_STRING='BIND 9.13'
    594 PACKAGE_BUGREPORT='info (at] isc.org'
    595 PACKAGE_URL='https://www.isc.org/downloads/BIND/'
    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 LD_WRAP_TESTS
    673 KYUA
    674 UNITTESTS
    675 CMOCKA_LIBS
    676 CMOCKA_CFLAGS
    677 LIBIDN2_LDFLAGS
    678 LIBIDN2_LIBS
    679 LIBIDN2_CFLAGS
    680 XSLT_DBLATEX_FASTBOOK
    681 XSLT_DBLATEX_STYLE
    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 DNSTAP_PB_C_H
    701 DNSTAPTARGETS
    702 DNSTAPOBJS
    703 DNSTAPSRCS
    704 DNSTAP
    705 FSTRM_CAPTURE
    706 PROTOC_C
    707 ISC_PLATFORM_HAVESYSUNH
    708 LIBCAP_LIBS
    709 DST_EXTRA_SRCS
    710 DST_EXTRA_OBJS
    711 USE_ISC_SPNEGO
    712 READLINE_LIB
    713 BIND9_CO_RULE
    714 LIBTOOL_MODE_UNINSTALL
    715 LIBTOOL_MODE_LINK
    716 LIBTOOL_MODE_INSTALL
    717 LIBTOOL_MODE_COMPILE
    718 LIBTOOL_MKDEP_SED
    719 SA
    720 A
    721 O
    722 ALWAYS_MAKE_SYMTABLE
    723 MKSYMTBL_PROGRAM
    724 PURIFY
    725 purify_path
    726 MKDEPPROG
    727 MKDEPCFLAGS
    728 MKDEPCC
    729 ZLIB
    730 JSONSTATS
    731 XMLSTATS
    732 NZDTARGETS
    733 NZDSRCS
    734 NZD_TOOLS
    735 DNS_CRYPTO_LIBS
    736 DNS_GSSAPI_LIBS
    737 DST_GSSAPI_INC
    738 USE_GSSAPI
    739 ISC_PLATFORM_KRB5HEADER
    740 ISC_PLATFORM_GSSAPI_KRB5_HEADER
    741 ISC_PLATFORM_GSSAPIHEADER
    742 ISC_PLATFORM_HAVEGSSAPI
    743 KRB5_CONFIG
    744 PKCS11_TOOLS
    745 PKCS11_TEST
    746 OPENSSL_LDFLAGS
    747 OPENSSL_INCLUDES
    748 OPENSSL_LIBS
    749 OPENSSL_CFLAGS
    750 INSTALL_LIBRARY
    751 ALWAYS_DEFINES
    752 PTHREAD_CFLAGS
    753 PTHREAD_LIBS
    754 PTHREAD_CC
    755 ax_pthread_config
    756 GEOIPLINKOBJS
    757 GEOIPLINKSRCS
    758 ISC_PLATFORM_NORETURN_POST
    759 ISC_PLATFORM_NORETURN_PRE
    760 expanded_sysconfdir
    761 PYTHON_INSTALL_LIB
    762 PYTHON_INSTALL_DIR
    763 PYTHON_TOOLS
    764 KEYMGR
    765 COVERAGE
    766 CHECKDS
    767 PYTHON
    768 PERL
    769 ETAGS
    770 LN
    771 ARFLAGS
    772 XTARGETS
    773 PKG_CONFIG_LIBDIR
    774 PKG_CONFIG_PATH
    775 PKG_CONFIG
    776 BACKTRACECFLAGS
    777 CCNOOPT
    778 CCOPT
    779 STD_CWARNINGS
    780 STD_CDEFINES
    781 STD_CINCLUDES
    782 INSTALL_DATA
    783 INSTALL_SCRIPT
    784 INSTALL_PROGRAM
    785 LT_SYS_LIBRARY_PATH
    786 OTOOL64
    787 OTOOL
    788 LIPO
    789 NMEDIT
    790 DSYMUTIL
    791 MANIFEST_TOOL
    792 AWK
    793 RANLIB
    794 STRIP
    795 ac_ct_AR
    796 AR
    797 DLLTOOL
    798 OBJDUMP
    799 LN_S
    800 NM
    801 ac_ct_DUMPBIN
    802 DUMPBIN
    803 LD
    804 FGREP
    805 SED
    806 LIBTOOL
    807 SET_MAKE
    808 EGREP
    809 GREP
    810 CPP
    811 OBJEXT
    812 EXEEXT
    813 ac_ct_CC
    814 CPPFLAGS
    815 LDFLAGS
    816 CFLAGS
    817 CC
    818 host_os
    819 host_vendor
    820 host_cpu
    821 host
    822 build_os
    823 build_vendor
    824 build_cpu
    825 build
    826 target_alias
    827 host_alias
    828 build_alias
    829 LIBS
    830 ECHO_T
    831 ECHO_N
    832 ECHO_C
    833 DEFS
    834 mandir
    835 localedir
    836 libdir
    837 psdir
    838 pdfdir
    839 dvidir
    840 htmldir
    841 infodir
    842 docdir
    843 oldincludedir
    844 includedir
    845 localstatedir
    846 sharedstatedir
    847 sysconfdir
    848 datadir
    849 datarootdir
    850 libexecdir
    851 sbindir
    852 bindir
    853 program_transform_name
    854 prefix
    855 exec_prefix
    856 PACKAGE_URL
    857 PACKAGE_BUGREPORT
    858 PACKAGE_STRING
    859 PACKAGE_VERSION
    860 PACKAGE_TARNAME
    861 PACKAGE_NAME
    862 PATH_SEPARATOR
    863 SHELL'
    864 ac_subst_files='BIND9_MAKE_INCLUDES
    865 BIND9_MAKE_RULES
    866 LIBISC_API
    867 LIBISCCC_API
    868 LIBISCCFG_API
    869 LIBDNS_API
    870 LIBDNS_MAPAPI
    871 LIBBIND9_API
    872 LIBIRS_API
    873 LIBNS_API
    874 DLZ_DRIVER_RULES'
    875 ac_user_opts='
    876 enable_option_checking
    877 enable_shared
    878 enable_static
    879 with_pic
    880 enable_fast_install
    881 with_aix_soname
    882 with_gnu_ld
    883 with_sysroot
    884 enable_libtool_lock
    885 enable_libbind
    886 enable_buffer_useinline
    887 enable_warn_shadow
    888 enable_warn_error
    889 enable_developer
    890 enable_fuzzing
    891 with_python
    892 with_python_install_dir
    893 enable_kqueue
    894 enable_epoll
    895 enable_devpoll
    896 with_geoip
    897 with_locktype
    898 with_libtool
    899 with_openssl
    900 enable_fips_mode
    901 with_cc_alg
    902 enable_native_pkcs11
    903 with_pkcs11
    904 with_gssapi
    905 with_lmdb
    906 with_libxml2
    907 with_libjson
    908 with_zlib
    909 enable_largefile
    910 with_purify
    911 with_gperftools_profiler
    912 enable_backtrace
    913 enable_symtable
    914 enable_tcp_fastopen
    915 with_readline
    916 enable_isc_spnego
    917 enable_chroot
    918 enable_linux_caps
    919 enable_fixed_rrset
    920 enable_rpz_nsip
    921 enable_rpz_nsdname
    922 enable_dnstap
    923 with_protobuf_c
    924 with_libfstrm
    925 with_docbook_xsl
    926 with_libidn2
    927 with_cmocka
    928 with_tuning
    929 enable_querytrace
    930 enable_auto_validation
    931 with_dlopen
    932 enable_dnsrps_dl
    933 with_dnsrps_libname
    934 with_dnsrps_dir
    935 enable_dnsrps
    936 with_dlz_postgres
    937 with_dlz_mysql
    938 with_dlz_bdb
    939 with_dlz_filesystem
    940 with_dlz_ldap
    941 with_dlz_odbc
    942 with_dlz_stub
    943 with_make_clean
    944 enable_full_report
    945 '
    946       ac_precious_vars='build_alias
    947 host_alias
    948 target_alias
    949 CC
    950 CFLAGS
    951 LDFLAGS
    952 LIBS
    953 CPPFLAGS
    954 CPP
    955 LT_SYS_LIBRARY_PATH
    956 PKG_CONFIG
    957 PKG_CONFIG_PATH
    958 PKG_CONFIG_LIBDIR
    959 OPENSSL_CFLAGS
    960 OPENSSL_LIBS
    961 LIBIDN2_CFLAGS
    962 LIBIDN2_LIBS
    963 CMOCKA_CFLAGS
    964 CMOCKA_LIBS
    965 KYUA'
    966 
    967 
    968 # Initialize some variables set by options.
    969 ac_init_help=
    970 ac_init_version=false
    971 ac_unrecognized_opts=
    972 ac_unrecognized_sep=
    973 # The variables have the same names as the options, with
    974 # dashes changed to underlines.
    975 cache_file=/dev/null
    976 exec_prefix=NONE
    977 no_create=
    978 no_recursion=
    979 prefix=NONE
    980 program_prefix=NONE
    981 program_suffix=NONE
    982 program_transform_name=s,x,x,
    983 silent=
    984 site=
    985 srcdir=
    986 verbose=
    987 x_includes=NONE
    988 x_libraries=NONE
    989 
    990 # Installation directory options.
    991 # These are left unexpanded so users can "make install exec_prefix=/foo"
    992 # and all the variables that are supposed to be based on exec_prefix
    993 # by default will actually change.
    994 # Use braces instead of parens because sh, perl, etc. also accept them.
    995 # (The list follows the same order as the GNU Coding Standards.)
    996 bindir='${exec_prefix}/bin'
    997 sbindir='${exec_prefix}/sbin'
    998 libexecdir='${exec_prefix}/libexec'
    999 datarootdir='${prefix}/share'
   1000 datadir='${datarootdir}'
   1001 sysconfdir='${prefix}/etc'
   1002 sharedstatedir='${prefix}/com'
   1003 localstatedir='${prefix}/var'
   1004 includedir='${prefix}/include'
   1005 oldincludedir='/usr/include'
   1006 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1007 infodir='${datarootdir}/info'
   1008 htmldir='${docdir}'
   1009 dvidir='${docdir}'
   1010 pdfdir='${docdir}'
   1011 psdir='${docdir}'
   1012 libdir='${exec_prefix}/lib'
   1013 localedir='${datarootdir}/locale'
   1014 mandir='${datarootdir}/man'
   1015 
   1016 ac_prev=
   1017 ac_dashdash=
   1018 for ac_option
   1019 do
   1020   # If the previous option needs an argument, assign it.
   1021   if test -n "$ac_prev"; then
   1022     eval $ac_prev=\$ac_option
   1023     ac_prev=
   1024     continue
   1025   fi
   1026 
   1027   case $ac_option in
   1028   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1029   *=)   ac_optarg= ;;
   1030   *)    ac_optarg=yes ;;
   1031   esac
   1032 
   1033   # Accept the important Cygnus configure options, so we can diagnose typos.
   1034 
   1035   case $ac_dashdash$ac_option in
   1036   --)
   1037     ac_dashdash=yes ;;
   1038 
   1039   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1040     ac_prev=bindir ;;
   1041   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1042     bindir=$ac_optarg ;;
   1043 
   1044   -build | --build | --buil | --bui | --bu)
   1045     ac_prev=build_alias ;;
   1046   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1047     build_alias=$ac_optarg ;;
   1048 
   1049   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1050   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1051     ac_prev=cache_file ;;
   1052   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1053   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1054     cache_file=$ac_optarg ;;
   1055 
   1056   --config-cache | -C)
   1057     cache_file=config.cache ;;
   1058 
   1059   -datadir | --datadir | --datadi | --datad)
   1060     ac_prev=datadir ;;
   1061   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1062     datadir=$ac_optarg ;;
   1063 
   1064   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1065   | --dataroo | --dataro | --datar)
   1066     ac_prev=datarootdir ;;
   1067   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1068   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1069     datarootdir=$ac_optarg ;;
   1070 
   1071   -disable-* | --disable-*)
   1072     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1073     # Reject names that are not valid shell variable names.
   1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1075       as_fn_error $? "invalid feature name: $ac_useropt"
   1076     ac_useropt_orig=$ac_useropt
   1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1078     case $ac_user_opts in
   1079       *"
   1080 "enable_$ac_useropt"
   1081 "*) ;;
   1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1083 	 ac_unrecognized_sep=', ';;
   1084     esac
   1085     eval enable_$ac_useropt=no ;;
   1086 
   1087   -docdir | --docdir | --docdi | --doc | --do)
   1088     ac_prev=docdir ;;
   1089   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1090     docdir=$ac_optarg ;;
   1091 
   1092   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1093     ac_prev=dvidir ;;
   1094   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1095     dvidir=$ac_optarg ;;
   1096 
   1097   -enable-* | --enable-*)
   1098     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   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--enable-$ac_useropt_orig"
   1109 	 ac_unrecognized_sep=', ';;
   1110     esac
   1111     eval enable_$ac_useropt=\$ac_optarg ;;
   1112 
   1113   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1114   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1115   | --exec | --exe | --ex)
   1116     ac_prev=exec_prefix ;;
   1117   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1118   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1119   | --exec=* | --exe=* | --ex=*)
   1120     exec_prefix=$ac_optarg ;;
   1121 
   1122   -gas | --gas | --ga | --g)
   1123     # Obsolete; use --with-gas.
   1124     with_gas=yes ;;
   1125 
   1126   -help | --help | --hel | --he | -h)
   1127     ac_init_help=long ;;
   1128   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1129     ac_init_help=recursive ;;
   1130   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1131     ac_init_help=short ;;
   1132 
   1133   -host | --host | --hos | --ho)
   1134     ac_prev=host_alias ;;
   1135   -host=* | --host=* | --hos=* | --ho=*)
   1136     host_alias=$ac_optarg ;;
   1137 
   1138   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1139     ac_prev=htmldir ;;
   1140   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1141   | --ht=*)
   1142     htmldir=$ac_optarg ;;
   1143 
   1144   -includedir | --includedir | --includedi | --included | --include \
   1145   | --includ | --inclu | --incl | --inc)
   1146     ac_prev=includedir ;;
   1147   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1148   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1149     includedir=$ac_optarg ;;
   1150 
   1151   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1152     ac_prev=infodir ;;
   1153   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1154     infodir=$ac_optarg ;;
   1155 
   1156   -libdir | --libdir | --libdi | --libd)
   1157     ac_prev=libdir ;;
   1158   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1159     libdir=$ac_optarg ;;
   1160 
   1161   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1162   | --libexe | --libex | --libe)
   1163     ac_prev=libexecdir ;;
   1164   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1165   | --libexe=* | --libex=* | --libe=*)
   1166     libexecdir=$ac_optarg ;;
   1167 
   1168   -localedir | --localedir | --localedi | --localed | --locale)
   1169     ac_prev=localedir ;;
   1170   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1171     localedir=$ac_optarg ;;
   1172 
   1173   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1174   | --localstate | --localstat | --localsta | --localst | --locals)
   1175     ac_prev=localstatedir ;;
   1176   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1177   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1178     localstatedir=$ac_optarg ;;
   1179 
   1180   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1181     ac_prev=mandir ;;
   1182   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1183     mandir=$ac_optarg ;;
   1184 
   1185   -nfp | --nfp | --nf)
   1186     # Obsolete; use --without-fp.
   1187     with_fp=no ;;
   1188 
   1189   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1190   | --no-cr | --no-c | -n)
   1191     no_create=yes ;;
   1192 
   1193   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1194   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1195     no_recursion=yes ;;
   1196 
   1197   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1198   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1199   | --oldin | --oldi | --old | --ol | --o)
   1200     ac_prev=oldincludedir ;;
   1201   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1202   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1203   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1204     oldincludedir=$ac_optarg ;;
   1205 
   1206   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1207     ac_prev=prefix ;;
   1208   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1209     prefix=$ac_optarg ;;
   1210 
   1211   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1212   | --program-pre | --program-pr | --program-p)
   1213     ac_prev=program_prefix ;;
   1214   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1215   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1216     program_prefix=$ac_optarg ;;
   1217 
   1218   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1219   | --program-suf | --program-su | --program-s)
   1220     ac_prev=program_suffix ;;
   1221   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1222   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1223     program_suffix=$ac_optarg ;;
   1224 
   1225   -program-transform-name | --program-transform-name \
   1226   | --program-transform-nam | --program-transform-na \
   1227   | --program-transform-n | --program-transform- \
   1228   | --program-transform | --program-transfor \
   1229   | --program-transfo | --program-transf \
   1230   | --program-trans | --program-tran \
   1231   | --progr-tra | --program-tr | --program-t)
   1232     ac_prev=program_transform_name ;;
   1233   -program-transform-name=* | --program-transform-name=* \
   1234   | --program-transform-nam=* | --program-transform-na=* \
   1235   | --program-transform-n=* | --program-transform-=* \
   1236   | --program-transform=* | --program-transfor=* \
   1237   | --program-transfo=* | --program-transf=* \
   1238   | --program-trans=* | --program-tran=* \
   1239   | --progr-tra=* | --program-tr=* | --program-t=*)
   1240     program_transform_name=$ac_optarg ;;
   1241 
   1242   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1243     ac_prev=pdfdir ;;
   1244   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1245     pdfdir=$ac_optarg ;;
   1246 
   1247   -psdir | --psdir | --psdi | --psd | --ps)
   1248     ac_prev=psdir ;;
   1249   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1250     psdir=$ac_optarg ;;
   1251 
   1252   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1253   | -silent | --silent | --silen | --sile | --sil)
   1254     silent=yes ;;
   1255 
   1256   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1257     ac_prev=sbindir ;;
   1258   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1259   | --sbi=* | --sb=*)
   1260     sbindir=$ac_optarg ;;
   1261 
   1262   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1263   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1264   | --sharedst | --shareds | --shared | --share | --shar \
   1265   | --sha | --sh)
   1266     ac_prev=sharedstatedir ;;
   1267   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1268   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1269   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1270   | --sha=* | --sh=*)
   1271     sharedstatedir=$ac_optarg ;;
   1272 
   1273   -site | --site | --sit)
   1274     ac_prev=site ;;
   1275   -site=* | --site=* | --sit=*)
   1276     site=$ac_optarg ;;
   1277 
   1278   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1279     ac_prev=srcdir ;;
   1280   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1281     srcdir=$ac_optarg ;;
   1282 
   1283   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1284   | --syscon | --sysco | --sysc | --sys | --sy)
   1285     ac_prev=sysconfdir ;;
   1286   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1287   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1288     sysconfdir=$ac_optarg ;;
   1289 
   1290   -target | --target | --targe | --targ | --tar | --ta | --t)
   1291     ac_prev=target_alias ;;
   1292   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1293     target_alias=$ac_optarg ;;
   1294 
   1295   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1296     verbose=yes ;;
   1297 
   1298   -version | --version | --versio | --versi | --vers | -V)
   1299     ac_init_version=: ;;
   1300 
   1301   -with-* | --with-*)
   1302     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1303     # Reject names that are not valid shell variable names.
   1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1305       as_fn_error $? "invalid package name: $ac_useropt"
   1306     ac_useropt_orig=$ac_useropt
   1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1308     case $ac_user_opts in
   1309       *"
   1310 "with_$ac_useropt"
   1311 "*) ;;
   1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1313 	 ac_unrecognized_sep=', ';;
   1314     esac
   1315     eval with_$ac_useropt=\$ac_optarg ;;
   1316 
   1317   -without-* | --without-*)
   1318     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1319     # Reject names that are not valid shell variable names.
   1320     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1321       as_fn_error $? "invalid package name: $ac_useropt"
   1322     ac_useropt_orig=$ac_useropt
   1323     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1324     case $ac_user_opts in
   1325       *"
   1326 "with_$ac_useropt"
   1327 "*) ;;
   1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1329 	 ac_unrecognized_sep=', ';;
   1330     esac
   1331     eval with_$ac_useropt=no ;;
   1332 
   1333   --x)
   1334     # Obsolete; use --with-x.
   1335     with_x=yes ;;
   1336 
   1337   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1338   | --x-incl | --x-inc | --x-in | --x-i)
   1339     ac_prev=x_includes ;;
   1340   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1341   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1342     x_includes=$ac_optarg ;;
   1343 
   1344   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1345   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1346     ac_prev=x_libraries ;;
   1347   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1348   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1349     x_libraries=$ac_optarg ;;
   1350 
   1351   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1352 Try \`$0 --help' for more information"
   1353     ;;
   1354 
   1355   *=*)
   1356     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1357     # Reject names that are not valid shell variable names.
   1358     case $ac_envvar in #(
   1359       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1360       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1361     esac
   1362     eval $ac_envvar=\$ac_optarg
   1363     export $ac_envvar ;;
   1364 
   1365   *)
   1366     # FIXME: should be removed in autoconf 3.0.
   1367     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1368     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1369       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1370     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1371     ;;
   1372 
   1373   esac
   1374 done
   1375 
   1376 if test -n "$ac_prev"; then
   1377   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1378   as_fn_error $? "missing argument to $ac_option"
   1379 fi
   1380 
   1381 if test -n "$ac_unrecognized_opts"; then
   1382   case $enable_option_checking in
   1383     no) ;;
   1384     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1385     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1386   esac
   1387 fi
   1388 
   1389 # Check all directory arguments for consistency.
   1390 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1391 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1392 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1393 		libdir localedir mandir
   1394 do
   1395   eval ac_val=\$$ac_var
   1396   # Remove trailing slashes.
   1397   case $ac_val in
   1398     */ )
   1399       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1400       eval $ac_var=\$ac_val;;
   1401   esac
   1402   # Be sure to have absolute directory names.
   1403   case $ac_val in
   1404     [\\/$]* | ?:[\\/]* )  continue;;
   1405     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1406   esac
   1407   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1408 done
   1409 
   1410 # There might be people who depend on the old broken behavior: `$host'
   1411 # used to hold the argument of --host etc.
   1412 # FIXME: To remove some day.
   1413 build=$build_alias
   1414 host=$host_alias
   1415 target=$target_alias
   1416 
   1417 # FIXME: To remove some day.
   1418 if test "x$host_alias" != x; then
   1419   if test "x$build_alias" = x; then
   1420     cross_compiling=maybe
   1421   elif test "x$build_alias" != "x$host_alias"; then
   1422     cross_compiling=yes
   1423   fi
   1424 fi
   1425 
   1426 ac_tool_prefix=
   1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1428 
   1429 test "$silent" = yes && exec 6>/dev/null
   1430 
   1431 
   1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1433 ac_ls_di=`ls -di .` &&
   1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1435   as_fn_error $? "working directory cannot be determined"
   1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1437   as_fn_error $? "pwd does not report name of working directory"
   1438 
   1439 
   1440 # Find the source files, if location was not specified.
   1441 if test -z "$srcdir"; then
   1442   ac_srcdir_defaulted=yes
   1443   # Try the directory containing this script, then the parent directory.
   1444   ac_confdir=`$as_dirname -- "$as_myself" ||
   1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1446 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1447 	 X"$as_myself" : 'X\(//\)$' \| \
   1448 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1449 $as_echo X"$as_myself" |
   1450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1451 	    s//\1/
   1452 	    q
   1453 	  }
   1454 	  /^X\(\/\/\)[^/].*/{
   1455 	    s//\1/
   1456 	    q
   1457 	  }
   1458 	  /^X\(\/\/\)$/{
   1459 	    s//\1/
   1460 	    q
   1461 	  }
   1462 	  /^X\(\/\).*/{
   1463 	    s//\1/
   1464 	    q
   1465 	  }
   1466 	  s/.*/./; q'`
   1467   srcdir=$ac_confdir
   1468   if test ! -r "$srcdir/$ac_unique_file"; then
   1469     srcdir=..
   1470   fi
   1471 else
   1472   ac_srcdir_defaulted=no
   1473 fi
   1474 if test ! -r "$srcdir/$ac_unique_file"; then
   1475   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1476   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1477 fi
   1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1479 ac_abs_confdir=`(
   1480 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1481 	pwd)`
   1482 # When building in place, set srcdir=.
   1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1484   srcdir=.
   1485 fi
   1486 # Remove unnecessary trailing slashes from srcdir.
   1487 # Double slashes in file names in object file debugging info
   1488 # mess up M-x gdb in Emacs.
   1489 case $srcdir in
   1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1491 esac
   1492 for ac_var in $ac_precious_vars; do
   1493   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1494   eval ac_env_${ac_var}_value=\$${ac_var}
   1495   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1496   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1497 done
   1498 
   1499 #
   1500 # Report the --help message.
   1501 #
   1502 if test "$ac_init_help" = "long"; then
   1503   # Omit some internal or obsolete options to make the list less imposing.
   1504   # This message is too long to be a string in the A/UX 3.1 sh.
   1505   cat <<_ACEOF
   1506 \`configure' configures BIND 9.13 to adapt to many kinds of systems.
   1507 
   1508 Usage: $0 [OPTION]... [VAR=VALUE]...
   1509 
   1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1511 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1512 
   1513 Defaults for the options are specified in brackets.
   1514 
   1515 Configuration:
   1516   -h, --help              display this help and exit
   1517       --help=short        display options specific to this package
   1518       --help=recursive    display the short help of all the included packages
   1519   -V, --version           display version information and exit
   1520   -q, --quiet, --silent   do not print \`checking ...' messages
   1521       --cache-file=FILE   cache test results in FILE [disabled]
   1522   -C, --config-cache      alias for \`--cache-file=config.cache'
   1523   -n, --no-create         do not create output files
   1524       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1525 
   1526 Installation directories:
   1527   --prefix=PREFIX         install architecture-independent files in PREFIX
   1528                           [$ac_default_prefix]
   1529   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1530                           [PREFIX]
   1531 
   1532 By default, \`make install' will install all the files in
   1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1535 for instance \`--prefix=\$HOME'.
   1536 
   1537 For better control, use the options below.
   1538 
   1539 Fine tuning of the installation directories:
   1540   --bindir=DIR            user executables [EPREFIX/bin]
   1541   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1542   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1543   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1544   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1545   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1546   --libdir=DIR            object code libraries [EPREFIX/lib]
   1547   --includedir=DIR        C header files [PREFIX/include]
   1548   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1549   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1550   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1551   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1552   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1553   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1554   --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
   1555   --htmldir=DIR           html documentation [DOCDIR]
   1556   --dvidir=DIR            dvi documentation [DOCDIR]
   1557   --pdfdir=DIR            pdf documentation [DOCDIR]
   1558   --psdir=DIR             ps documentation [DOCDIR]
   1559 _ACEOF
   1560 
   1561   cat <<\_ACEOF
   1562 
   1563 System types:
   1564   --build=BUILD     configure for building on BUILD [guessed]
   1565   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1566 _ACEOF
   1567 fi
   1568 
   1569 if test -n "$ac_init_help"; then
   1570   case $ac_init_help in
   1571      short | recursive ) echo "Configuration of BIND 9.13:";;
   1572    esac
   1573   cat <<\_ACEOF
   1574 
   1575 Optional Features:
   1576   --disable-option-checking  ignore unrecognized --enable/--with options
   1577   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1578   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1579   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1580   --enable-static[=PKGS]  build static libraries [default=yes]
   1581   --enable-fast-install[=PKGS]
   1582                           optimize for fast installation [default=yes]
   1583   --disable-libtool-lock  avoid locking (might break parallel builds)
   1584   --enable-libbind        deprecated
   1585   --enable-buffer-useinline
   1586                           define ISC_BUFFER_USEINLINE when compiling
   1587                           [default=yes]
   1588   --enable-warn-shadow    turn on -Wshadow when compiling
   1589   --enable-warn-error     turn on -Werror when compiling
   1590   --enable-developer      enable developer build settings
   1591   --enable-fuzzing=<afl|libfuzzer>
   1592                           Enable fuzzing using American Fuzzy Lop or libFuzzer
   1593                           (default=no)
   1594   --enable-kqueue         use BSD kqueue when available [default=yes]
   1595   --enable-epoll          use Linux epoll when available [default=auto]
   1596   --enable-devpoll        use /dev/poll when available [default=yes]
   1597   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1598   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1599   --enable-largefile      64-bit file support
   1600   --enable-backtrace      log stack backtrace on abort [default=yes]
   1601   --enable-symtable       use internal symbol table for backtrace
   1602                           [all|minimal(default)|none]
   1603   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1604   --disable-isc-spnego    use SPNEGO from GSSAPI library
   1605   --disable-chroot        disable chroot
   1606   --disable-linux-caps    disable Linux capabilities
   1607   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1608   --disable-rpz-nsip      disable rpz nsip rules [default=enabled]
   1609   --disable-rpz-nsdname   disable rpz nsdname rules [default=enabled]
   1610   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1611   --enable-querytrace     enable very verbose query trace logging [default=no]
   1612   --enable-auto-validation
   1613                           turn on DNSSEC validation by default, using the IANA
   1614                           root key [default=yes]
   1615   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1616                           [default=$librpz_dl]
   1617   --enable-dnsrps         enable DNS Response Policy Service API
   1618   --enable-full-report    report values of all configure options
   1619 
   1620 Optional Packages:
   1621   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1622   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1623   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1624                           both]
   1625   --with-aix-soname=aix|svr4|both
   1626                           shared library versioning (aka "SONAME") variant to
   1627                           provide on AIX, [default=aix].
   1628   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1629   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1630                           compiler's sysroot if not specified).
   1631   --with-python=PATH      specify path to Python interpreter
   1632   --with-python-install-dir=PATH
   1633                           installation directory for Python modules
   1634   --with-geoip=PATH       Build with GeoIP support (yes|no|path)
   1635   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1636   --with-libtool          use GNU libtool
   1637   --with-openssl=DIR      root of the OpenSSL directory
   1638   --with-cc-alg=ALG       choose the algorithm for Client Cookie
   1639                           [aes|sha1|sha256] (default is aes)
   1640   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1641                           PKCS11 provider)
   1642   --with-gssapi=PATH|/path/krb5-config
   1643                           Specify path for system-supplied GSSAPI
   1644                           [default=yes]
   1645   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1646   --with-libxml2=PATH     build with libxml2 library [yes|no|path]
   1647   --with-libjson=PATH     build with libjson0 library [yes|no|path]
   1648   --with-zlib=PATH        build with zlib for HTTP compression [default=yes]
   1649   --with-purify=PATH      use Rational purify
   1650   --with-gperftools-profiler
   1651                           use gperftools CPU profiler
   1652   --with-readline=LIBSPEC specify readline library [default auto]
   1653   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1654   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1655   --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
   1656   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1657                           [yes|no(default)|path]
   1658   --with-cmocka=no        enable cmocka based tests (default is no)
   1659   --with-tuning=ARG       Specify server tuning (large or default)
   1660   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1661   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1662   --with-dnsrps-dir       path to DNSRPS provider library
   1663   --with-dlz-postgres=PATH
   1664                           Build with Postgres DLZ driver [yes|no|path].
   1665                           (Required to use Postgres with DLZ)
   1666   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1667                           to use MySQL with DLZ)
   1668   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1669                           (Required to use Berkeley DB with DLZ)
   1670   --with-dlz-filesystem=ARG
   1671                           Build with filesystem DLZ driver [yes|no]. (Required
   1672                           to use file system driver with DLZ)
   1673   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1674                           to use LDAP with DLZ)
   1675   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1676                           to use ODBC with DLZ)
   1677   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1678                           use stub driver with DLZ)
   1679   --with-make-clean       run "make clean" at end of configure [yes|no]
   1680 
   1681 Some influential environment variables:
   1682   CC          C compiler command
   1683   CFLAGS      C compiler flags
   1684   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1685               nonstandard directory <lib dir>
   1686   LIBS        libraries to pass to the linker, e.g. -l<library>
   1687   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1688               you have headers in a nonstandard directory <include dir>
   1689   CPP         C preprocessor
   1690   LT_SYS_LIBRARY_PATH
   1691               User-defined run-time library search path.
   1692   PKG_CONFIG  path to pkg-config utility
   1693   PKG_CONFIG_PATH
   1694               directories to add to pkg-config's search path
   1695   PKG_CONFIG_LIBDIR
   1696               path overriding pkg-config's built-in search path
   1697   OPENSSL_CFLAGS
   1698               C compiler flags for OPENSSL, overriding pkg-config
   1699   OPENSSL_LIBS
   1700               linker flags for OPENSSL, overriding pkg-config
   1701   LIBIDN2_CFLAGS
   1702               C compiler flags for LIBIDN2, overriding pkg-config
   1703   LIBIDN2_LIBS
   1704               linker flags for LIBIDN2, overriding pkg-config
   1705   CMOCKA_CFLAGS
   1706               C compiler flags for CMOCKA, overriding pkg-config
   1707   CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
   1708   KYUA        path to kyua execution engine
   1709 
   1710 Use these variables to override the choices made by `configure' or to help
   1711 it to find libraries and programs with nonstandard names/locations.
   1712 
   1713 Report bugs to <info (at] isc.org>.
   1714 BIND home page: <https://www.isc.org/downloads/BIND/>.
   1715 _ACEOF
   1716 ac_status=$?
   1717 fi
   1718 
   1719 if test "$ac_init_help" = "recursive"; then
   1720   # If there are subdirs, report their specific --help.
   1721   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1722     test -d "$ac_dir" ||
   1723       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1724       continue
   1725     ac_builddir=.
   1726 
   1727 case "$ac_dir" in
   1728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1729 *)
   1730   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1731   # A ".." for each directory in $ac_dir_suffix.
   1732   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1733   case $ac_top_builddir_sub in
   1734   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1735   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1736   esac ;;
   1737 esac
   1738 ac_abs_top_builddir=$ac_pwd
   1739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1740 # for backward compatibility:
   1741 ac_top_builddir=$ac_top_build_prefix
   1742 
   1743 case $srcdir in
   1744   .)  # We are building in place.
   1745     ac_srcdir=.
   1746     ac_top_srcdir=$ac_top_builddir_sub
   1747     ac_abs_top_srcdir=$ac_pwd ;;
   1748   [\\/]* | ?:[\\/]* )  # Absolute name.
   1749     ac_srcdir=$srcdir$ac_dir_suffix;
   1750     ac_top_srcdir=$srcdir
   1751     ac_abs_top_srcdir=$srcdir ;;
   1752   *) # Relative name.
   1753     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1754     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1755     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1756 esac
   1757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1758 
   1759     cd "$ac_dir" || { ac_status=$?; continue; }
   1760     # Check for guested configure.
   1761     if test -f "$ac_srcdir/configure.gnu"; then
   1762       echo &&
   1763       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1764     elif test -f "$ac_srcdir/configure"; then
   1765       echo &&
   1766       $SHELL "$ac_srcdir/configure" --help=recursive
   1767     else
   1768       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1769     fi || ac_status=$?
   1770     cd "$ac_pwd" || { ac_status=$?; break; }
   1771   done
   1772 fi
   1773 
   1774 test -n "$ac_init_help" && exit $ac_status
   1775 if $ac_init_version; then
   1776   cat <<\_ACEOF
   1777 BIND configure 9.13
   1778 generated by GNU Autoconf 2.69
   1779 
   1780 Copyright (C) 2012 Free Software Foundation, Inc.
   1781 This configure script is free software; the Free Software Foundation
   1782 gives unlimited permission to copy, distribute and modify it.
   1783 _ACEOF
   1784   exit
   1785 fi
   1786 
   1787 ## ------------------------ ##
   1788 ## Autoconf initialization. ##
   1789 ## ------------------------ ##
   1790 
   1791 # ac_fn_c_try_compile LINENO
   1792 # --------------------------
   1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1794 ac_fn_c_try_compile ()
   1795 {
   1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1797   rm -f conftest.$ac_objext
   1798   if { { ac_try="$ac_compile"
   1799 case "(($ac_try" in
   1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1801   *) ac_try_echo=$ac_try;;
   1802 esac
   1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1804 $as_echo "$ac_try_echo"; } >&5
   1805   (eval "$ac_compile") 2>conftest.err
   1806   ac_status=$?
   1807   if test -s conftest.err; then
   1808     grep -v '^ *+' conftest.err >conftest.er1
   1809     cat conftest.er1 >&5
   1810     mv -f conftest.er1 conftest.err
   1811   fi
   1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1813   test $ac_status = 0; } && {
   1814 	 test -z "$ac_c_werror_flag" ||
   1815 	 test ! -s conftest.err
   1816        } && test -s conftest.$ac_objext; then :
   1817   ac_retval=0
   1818 else
   1819   $as_echo "$as_me: failed program was:" >&5
   1820 sed 's/^/| /' conftest.$ac_ext >&5
   1821 
   1822 	ac_retval=1
   1823 fi
   1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1825   as_fn_set_status $ac_retval
   1826 
   1827 } # ac_fn_c_try_compile
   1828 
   1829 # ac_fn_c_try_cpp LINENO
   1830 # ----------------------
   1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1832 ac_fn_c_try_cpp ()
   1833 {
   1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1835   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1836 case "(($ac_try" in
   1837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1838   *) ac_try_echo=$ac_try;;
   1839 esac
   1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1841 $as_echo "$ac_try_echo"; } >&5
   1842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1843   ac_status=$?
   1844   if test -s conftest.err; then
   1845     grep -v '^ *+' conftest.err >conftest.er1
   1846     cat conftest.er1 >&5
   1847     mv -f conftest.er1 conftest.err
   1848   fi
   1849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1850   test $ac_status = 0; } > conftest.i && {
   1851 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1852 	 test ! -s conftest.err
   1853        }; then :
   1854   ac_retval=0
   1855 else
   1856   $as_echo "$as_me: failed program was:" >&5
   1857 sed 's/^/| /' conftest.$ac_ext >&5
   1858 
   1859     ac_retval=1
   1860 fi
   1861   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1862   as_fn_set_status $ac_retval
   1863 
   1864 } # ac_fn_c_try_cpp
   1865 
   1866 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1867 # -------------------------------------------------------
   1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1869 # the include files in INCLUDES and setting the cache variable VAR
   1870 # accordingly.
   1871 ac_fn_c_check_header_mongrel ()
   1872 {
   1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1874   if eval \${$3+:} false; then :
   1875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1876 $as_echo_n "checking for $2... " >&6; }
   1877 if eval \${$3+:} false; then :
   1878   $as_echo_n "(cached) " >&6
   1879 fi
   1880 eval ac_res=\$$3
   1881 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1882 $as_echo "$ac_res" >&6; }
   1883 else
   1884   # Is the header compilable?
   1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1886 $as_echo_n "checking $2 usability... " >&6; }
   1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1888 /* end confdefs.h.  */
   1889 $4
   1890 #include <$2>
   1891 _ACEOF
   1892 if ac_fn_c_try_compile "$LINENO"; then :
   1893   ac_header_compiler=yes
   1894 else
   1895   ac_header_compiler=no
   1896 fi
   1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1899 $as_echo "$ac_header_compiler" >&6; }
   1900 
   1901 # Is the header present?
   1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1903 $as_echo_n "checking $2 presence... " >&6; }
   1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1905 /* end confdefs.h.  */
   1906 #include <$2>
   1907 _ACEOF
   1908 if ac_fn_c_try_cpp "$LINENO"; then :
   1909   ac_header_preproc=yes
   1910 else
   1911   ac_header_preproc=no
   1912 fi
   1913 rm -f conftest.err conftest.i conftest.$ac_ext
   1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1915 $as_echo "$ac_header_preproc" >&6; }
   1916 
   1917 # So?  What about this header?
   1918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1919   yes:no: )
   1920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1924     ;;
   1925   no:yes:* )
   1926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1929 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1933 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1934     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1936 ( $as_echo "## --------------------------- ##
   1937 ## Report this to info (at] isc.org ##
   1938 ## --------------------------- ##"
   1939      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1940     ;;
   1941 esac
   1942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1943 $as_echo_n "checking for $2... " >&6; }
   1944 if eval \${$3+:} false; then :
   1945   $as_echo_n "(cached) " >&6
   1946 else
   1947   eval "$3=\$ac_header_compiler"
   1948 fi
   1949 eval ac_res=\$$3
   1950 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1951 $as_echo "$ac_res" >&6; }
   1952 fi
   1953   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1954 
   1955 } # ac_fn_c_check_header_mongrel
   1956 
   1957 # ac_fn_c_try_run LINENO
   1958 # ----------------------
   1959 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1960 # that executables *can* be run.
   1961 ac_fn_c_try_run ()
   1962 {
   1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1964   if { { ac_try="$ac_link"
   1965 case "(($ac_try" in
   1966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1967   *) ac_try_echo=$ac_try;;
   1968 esac
   1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1970 $as_echo "$ac_try_echo"; } >&5
   1971   (eval "$ac_link") 2>&5
   1972   ac_status=$?
   1973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1974   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1975   { { case "(($ac_try" in
   1976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1977   *) ac_try_echo=$ac_try;;
   1978 esac
   1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1980 $as_echo "$ac_try_echo"; } >&5
   1981   (eval "$ac_try") 2>&5
   1982   ac_status=$?
   1983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1984   test $ac_status = 0; }; }; then :
   1985   ac_retval=0
   1986 else
   1987   $as_echo "$as_me: program exited with status $ac_status" >&5
   1988        $as_echo "$as_me: failed program was:" >&5
   1989 sed 's/^/| /' conftest.$ac_ext >&5
   1990 
   1991        ac_retval=$ac_status
   1992 fi
   1993   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1995   as_fn_set_status $ac_retval
   1996 
   1997 } # ac_fn_c_try_run
   1998 
   1999 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2000 # -------------------------------------------------------
   2001 # Tests whether HEADER exists and can be compiled using the include files in
   2002 # INCLUDES, setting the cache variable VAR accordingly.
   2003 ac_fn_c_check_header_compile ()
   2004 {
   2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2007 $as_echo_n "checking for $2... " >&6; }
   2008 if eval \${$3+:} false; then :
   2009   $as_echo_n "(cached) " >&6
   2010 else
   2011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2012 /* end confdefs.h.  */
   2013 $4
   2014 #include <$2>
   2015 _ACEOF
   2016 if ac_fn_c_try_compile "$LINENO"; then :
   2017   eval "$3=yes"
   2018 else
   2019   eval "$3=no"
   2020 fi
   2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2022 fi
   2023 eval ac_res=\$$3
   2024 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2025 $as_echo "$ac_res" >&6; }
   2026   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2027 
   2028 } # ac_fn_c_check_header_compile
   2029 
   2030 # ac_fn_c_try_link LINENO
   2031 # -----------------------
   2032 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2033 ac_fn_c_try_link ()
   2034 {
   2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2036   rm -f conftest.$ac_objext conftest$ac_exeext
   2037   if { { ac_try="$ac_link"
   2038 case "(($ac_try" in
   2039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2040   *) ac_try_echo=$ac_try;;
   2041 esac
   2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2043 $as_echo "$ac_try_echo"; } >&5
   2044   (eval "$ac_link") 2>conftest.err
   2045   ac_status=$?
   2046   if test -s conftest.err; then
   2047     grep -v '^ *+' conftest.err >conftest.er1
   2048     cat conftest.er1 >&5
   2049     mv -f conftest.er1 conftest.err
   2050   fi
   2051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2052   test $ac_status = 0; } && {
   2053 	 test -z "$ac_c_werror_flag" ||
   2054 	 test ! -s conftest.err
   2055        } && test -s conftest$ac_exeext && {
   2056 	 test "$cross_compiling" = yes ||
   2057 	 test -x conftest$ac_exeext
   2058        }; then :
   2059   ac_retval=0
   2060 else
   2061   $as_echo "$as_me: failed program was:" >&5
   2062 sed 's/^/| /' conftest.$ac_ext >&5
   2063 
   2064 	ac_retval=1
   2065 fi
   2066   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2067   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2068   # interfere with the next link command; also delete a directory that is
   2069   # left behind by Apple's compiler.  We do this before executing the actions.
   2070   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2072   as_fn_set_status $ac_retval
   2073 
   2074 } # ac_fn_c_try_link
   2075 
   2076 # ac_fn_c_check_func LINENO FUNC VAR
   2077 # ----------------------------------
   2078 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2079 ac_fn_c_check_func ()
   2080 {
   2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2083 $as_echo_n "checking for $2... " >&6; }
   2084 if eval \${$3+:} false; then :
   2085   $as_echo_n "(cached) " >&6
   2086 else
   2087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2088 /* end confdefs.h.  */
   2089 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2091 #define $2 innocuous_$2
   2092 
   2093 /* System header to define __stub macros and hopefully few prototypes,
   2094     which can conflict with char $2 (); below.
   2095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2096     <limits.h> exists even on freestanding compilers.  */
   2097 
   2098 #ifdef __STDC__
   2099 # include <limits.h>
   2100 #else
   2101 # include <assert.h>
   2102 #endif
   2103 
   2104 #undef $2
   2105 
   2106 /* Override any GCC internal prototype to avoid an error.
   2107    Use char because int might match the return type of a GCC
   2108    builtin and then its argument prototype would still apply.  */
   2109 #ifdef __cplusplus
   2110 extern "C"
   2111 #endif
   2112 char $2 ();
   2113 /* The GNU C library defines this for functions which it implements
   2114     to always fail with ENOSYS.  Some functions are actually named
   2115     something starting with __ and the normal name is an alias.  */
   2116 #if defined __stub_$2 || defined __stub___$2
   2117 choke me
   2118 #endif
   2119 
   2120 int
   2121 main ()
   2122 {
   2123 return $2 ();
   2124   ;
   2125   return 0;
   2126 }
   2127 _ACEOF
   2128 if ac_fn_c_try_link "$LINENO"; then :
   2129   eval "$3=yes"
   2130 else
   2131   eval "$3=no"
   2132 fi
   2133 rm -f core conftest.err conftest.$ac_objext \
   2134     conftest$ac_exeext conftest.$ac_ext
   2135 fi
   2136 eval ac_res=\$$3
   2137 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2138 $as_echo "$ac_res" >&6; }
   2139   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2140 
   2141 } # ac_fn_c_check_func
   2142 
   2143 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2144 # -------------------------------------------
   2145 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2146 # variable VAR accordingly.
   2147 ac_fn_c_check_type ()
   2148 {
   2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2151 $as_echo_n "checking for $2... " >&6; }
   2152 if eval \${$3+:} false; then :
   2153   $as_echo_n "(cached) " >&6
   2154 else
   2155   eval "$3=no"
   2156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2157 /* end confdefs.h.  */
   2158 $4
   2159 int
   2160 main ()
   2161 {
   2162 if (sizeof ($2))
   2163 	 return 0;
   2164   ;
   2165   return 0;
   2166 }
   2167 _ACEOF
   2168 if ac_fn_c_try_compile "$LINENO"; then :
   2169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2170 /* end confdefs.h.  */
   2171 $4
   2172 int
   2173 main ()
   2174 {
   2175 if (sizeof (($2)))
   2176 	    return 0;
   2177   ;
   2178   return 0;
   2179 }
   2180 _ACEOF
   2181 if ac_fn_c_try_compile "$LINENO"; then :
   2182 
   2183 else
   2184   eval "$3=yes"
   2185 fi
   2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2187 fi
   2188 rm -f core conftest.err conftest.$ac_objext 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_type
   2196 cat >config.log <<_ACEOF
   2197 This file contains any messages produced by compilers while
   2198 running configure, to aid debugging if configure makes a mistake.
   2199 
   2200 It was created by BIND $as_me 9.13, which was
   2201 generated by GNU Autoconf 2.69.  Invocation command line was
   2202 
   2203   $ $0 $@
   2204 
   2205 _ACEOF
   2206 exec 5>>config.log
   2207 {
   2208 cat <<_ASUNAME
   2209 ## --------- ##
   2210 ## Platform. ##
   2211 ## --------- ##
   2212 
   2213 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2214 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2215 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2216 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2217 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2218 
   2219 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2220 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2221 
   2222 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2223 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2224 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2225 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2226 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2227 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2228 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2229 
   2230 _ASUNAME
   2231 
   2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2233 for as_dir in $PATH
   2234 do
   2235   IFS=$as_save_IFS
   2236   test -z "$as_dir" && as_dir=.
   2237     $as_echo "PATH: $as_dir"
   2238   done
   2239 IFS=$as_save_IFS
   2240 
   2241 } >&5
   2242 
   2243 cat >&5 <<_ACEOF
   2244 
   2245 
   2246 ## ----------- ##
   2247 ## Core tests. ##
   2248 ## ----------- ##
   2249 
   2250 _ACEOF
   2251 
   2252 
   2253 # Keep a trace of the command line.
   2254 # Strip out --no-create and --no-recursion so they do not pile up.
   2255 # Strip out --silent because we don't want to record it for future runs.
   2256 # Also quote any args containing shell meta-characters.
   2257 # Make two passes to allow for proper duplicate-argument suppression.
   2258 ac_configure_args=
   2259 ac_configure_args0=
   2260 ac_configure_args1=
   2261 ac_must_keep_next=false
   2262 for ac_pass in 1 2
   2263 do
   2264   for ac_arg
   2265   do
   2266     case $ac_arg in
   2267     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2268     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2269     | -silent | --silent | --silen | --sile | --sil)
   2270       continue ;;
   2271     *\'*)
   2272       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2273     esac
   2274     case $ac_pass in
   2275     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2276     2)
   2277       as_fn_append ac_configure_args1 " '$ac_arg'"
   2278       if test $ac_must_keep_next = true; then
   2279 	ac_must_keep_next=false # Got value, back to normal.
   2280       else
   2281 	case $ac_arg in
   2282 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2283 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2284 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2285 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2286 	    case "$ac_configure_args0 " in
   2287 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2288 	    esac
   2289 	    ;;
   2290 	  -* ) ac_must_keep_next=true ;;
   2291 	esac
   2292       fi
   2293       as_fn_append ac_configure_args " '$ac_arg'"
   2294       ;;
   2295     esac
   2296   done
   2297 done
   2298 { ac_configure_args0=; unset ac_configure_args0;}
   2299 { ac_configure_args1=; unset ac_configure_args1;}
   2300 
   2301 # When interrupted or exit'd, cleanup temporary files, and complete
   2302 # config.log.  We remove comments because anyway the quotes in there
   2303 # would cause problems or look ugly.
   2304 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2305 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2306 trap 'exit_status=$?
   2307   # Save into config.log some information that might help in debugging.
   2308   {
   2309     echo
   2310 
   2311     $as_echo "## ---------------- ##
   2312 ## Cache variables. ##
   2313 ## ---------------- ##"
   2314     echo
   2315     # The following way of writing the cache mishandles newlines in values,
   2316 (
   2317   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2318     eval ac_val=\$$ac_var
   2319     case $ac_val in #(
   2320     *${as_nl}*)
   2321       case $ac_var in #(
   2322       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2323 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2324       esac
   2325       case $ac_var in #(
   2326       _ | IFS | as_nl) ;; #(
   2327       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2328       *) { eval $ac_var=; unset $ac_var;} ;;
   2329       esac ;;
   2330     esac
   2331   done
   2332   (set) 2>&1 |
   2333     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2334     *${as_nl}ac_space=\ *)
   2335       sed -n \
   2336 	"s/'\''/'\''\\\\'\'''\''/g;
   2337 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2338       ;; #(
   2339     *)
   2340       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2341       ;;
   2342     esac |
   2343     sort
   2344 )
   2345     echo
   2346 
   2347     $as_echo "## ----------------- ##
   2348 ## Output variables. ##
   2349 ## ----------------- ##"
   2350     echo
   2351     for ac_var in $ac_subst_vars
   2352     do
   2353       eval ac_val=\$$ac_var
   2354       case $ac_val in
   2355       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2356       esac
   2357       $as_echo "$ac_var='\''$ac_val'\''"
   2358     done | sort
   2359     echo
   2360 
   2361     if test -n "$ac_subst_files"; then
   2362       $as_echo "## ------------------- ##
   2363 ## File substitutions. ##
   2364 ## ------------------- ##"
   2365       echo
   2366       for ac_var in $ac_subst_files
   2367       do
   2368 	eval ac_val=\$$ac_var
   2369 	case $ac_val in
   2370 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2371 	esac
   2372 	$as_echo "$ac_var='\''$ac_val'\''"
   2373       done | sort
   2374       echo
   2375     fi
   2376 
   2377     if test -s confdefs.h; then
   2378       $as_echo "## ----------- ##
   2379 ## confdefs.h. ##
   2380 ## ----------- ##"
   2381       echo
   2382       cat confdefs.h
   2383       echo
   2384     fi
   2385     test "$ac_signal" != 0 &&
   2386       $as_echo "$as_me: caught signal $ac_signal"
   2387     $as_echo "$as_me: exit $exit_status"
   2388   } >&5
   2389   rm -f core *.core core.conftest.* &&
   2390     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2391     exit $exit_status
   2392 ' 0
   2393 for ac_signal in 1 2 13 15; do
   2394   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2395 done
   2396 ac_signal=0
   2397 
   2398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2399 rm -f -r conftest* confdefs.h
   2400 
   2401 $as_echo "/* confdefs.h */" > confdefs.h
   2402 
   2403 # Predefined preprocessor variables.
   2404 
   2405 cat >>confdefs.h <<_ACEOF
   2406 #define PACKAGE_NAME "$PACKAGE_NAME"
   2407 _ACEOF
   2408 
   2409 cat >>confdefs.h <<_ACEOF
   2410 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2411 _ACEOF
   2412 
   2413 cat >>confdefs.h <<_ACEOF
   2414 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2415 _ACEOF
   2416 
   2417 cat >>confdefs.h <<_ACEOF
   2418 #define PACKAGE_STRING "$PACKAGE_STRING"
   2419 _ACEOF
   2420 
   2421 cat >>confdefs.h <<_ACEOF
   2422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2423 _ACEOF
   2424 
   2425 cat >>confdefs.h <<_ACEOF
   2426 #define PACKAGE_URL "$PACKAGE_URL"
   2427 _ACEOF
   2428 
   2429 
   2430 # Let the site file select an alternate cache file if it wants to.
   2431 # Prefer an explicitly selected file to automatically selected ones.
   2432 ac_site_file1=NONE
   2433 ac_site_file2=NONE
   2434 if test -n "$CONFIG_SITE"; then
   2435   # We do not want a PATH search for config.site.
   2436   case $CONFIG_SITE in #((
   2437     -*)  ac_site_file1=./$CONFIG_SITE;;
   2438     */*) ac_site_file1=$CONFIG_SITE;;
   2439     *)   ac_site_file1=./$CONFIG_SITE;;
   2440   esac
   2441 elif test "x$prefix" != xNONE; then
   2442   ac_site_file1=$prefix/share/config.site
   2443   ac_site_file2=$prefix/etc/config.site
   2444 else
   2445   ac_site_file1=$ac_default_prefix/share/config.site
   2446   ac_site_file2=$ac_default_prefix/etc/config.site
   2447 fi
   2448 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2449 do
   2450   test "x$ac_site_file" = xNONE && continue
   2451   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2452     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2453 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2454     sed 's/^/| /' "$ac_site_file" >&5
   2455     . "$ac_site_file" \
   2456       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2458 as_fn_error $? "failed to load site script $ac_site_file
   2459 See \`config.log' for more details" "$LINENO" 5; }
   2460   fi
   2461 done
   2462 
   2463 if test -r "$cache_file"; then
   2464   # Some versions of bash will fail to source /dev/null (special files
   2465   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2466   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2467     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2468 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2469     case $cache_file in
   2470       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2471       *)                      . "./$cache_file";;
   2472     esac
   2473   fi
   2474 else
   2475   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2476 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2477   >$cache_file
   2478 fi
   2479 
   2480 # Check that the precious variables saved in the cache have kept the same
   2481 # value.
   2482 ac_cache_corrupted=false
   2483 for ac_var in $ac_precious_vars; do
   2484   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2485   eval ac_new_set=\$ac_env_${ac_var}_set
   2486   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2487   eval ac_new_val=\$ac_env_${ac_var}_value
   2488   case $ac_old_set,$ac_new_set in
   2489     set,)
   2490       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2491 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2492       ac_cache_corrupted=: ;;
   2493     ,set)
   2494       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2495 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2496       ac_cache_corrupted=: ;;
   2497     ,);;
   2498     *)
   2499       if test "x$ac_old_val" != "x$ac_new_val"; then
   2500 	# differences in whitespace do not lead to failure.
   2501 	ac_old_val_w=`echo x $ac_old_val`
   2502 	ac_new_val_w=`echo x $ac_new_val`
   2503 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2504 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2505 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2506 	  ac_cache_corrupted=:
   2507 	else
   2508 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2509 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2510 	  eval $ac_var=\$ac_old_val
   2511 	fi
   2512 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2513 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2514 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2515 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2516       fi;;
   2517   esac
   2518   # Pass precious variables to config.status.
   2519   if test "$ac_new_set" = set; then
   2520     case $ac_new_val in
   2521     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2522     *) ac_arg=$ac_var=$ac_new_val ;;
   2523     esac
   2524     case " $ac_configure_args " in
   2525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2526       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2527     esac
   2528   fi
   2529 done
   2530 if $ac_cache_corrupted; then
   2531   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2533   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2534 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2535   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2536 fi
   2537 ## -------------------- ##
   2538 ## Main body of script. ##
   2539 ## -------------------- ##
   2540 
   2541 ac_ext=c
   2542 ac_cpp='$CPP $CPPFLAGS'
   2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2546 
   2547 
   2548 
   2549 
   2550 ac_config_headers="$ac_config_headers config.h"
   2551 
   2552 
   2553 
   2554 ac_aux_dir=
   2555 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2556   if test -f "$ac_dir/install-sh"; then
   2557     ac_aux_dir=$ac_dir
   2558     ac_install_sh="$ac_aux_dir/install-sh -c"
   2559     break
   2560   elif test -f "$ac_dir/install.sh"; then
   2561     ac_aux_dir=$ac_dir
   2562     ac_install_sh="$ac_aux_dir/install.sh -c"
   2563     break
   2564   elif test -f "$ac_dir/shtool"; then
   2565     ac_aux_dir=$ac_dir
   2566     ac_install_sh="$ac_aux_dir/shtool install -c"
   2567     break
   2568   fi
   2569 done
   2570 if test -z "$ac_aux_dir"; then
   2571   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2572 fi
   2573 
   2574 # These three variables are undocumented and unsupported,
   2575 # and are intended to be withdrawn in a future Autoconf release.
   2576 # They can cause serious problems if a builder's source tree is in a directory
   2577 # whose full name contains unusual characters.
   2578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2580 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2581 
   2582 
   2583 # Make sure we can run config.sub.
   2584 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2585   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2586 
   2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2588 $as_echo_n "checking build system type... " >&6; }
   2589 if ${ac_cv_build+:} false; then :
   2590   $as_echo_n "(cached) " >&6
   2591 else
   2592   ac_build_alias=$build_alias
   2593 test "x$ac_build_alias" = x &&
   2594   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2595 test "x$ac_build_alias" = x &&
   2596   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2597 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2598   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2599 
   2600 fi
   2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2602 $as_echo "$ac_cv_build" >&6; }
   2603 case $ac_cv_build in
   2604 *-*-*) ;;
   2605 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2606 esac
   2607 build=$ac_cv_build
   2608 ac_save_IFS=$IFS; IFS='-'
   2609 set x $ac_cv_build
   2610 shift
   2611 build_cpu=$1
   2612 build_vendor=$2
   2613 shift; shift
   2614 # Remember, the first character of IFS is used to create $*,
   2615 # except with old shells:
   2616 build_os=$*
   2617 IFS=$ac_save_IFS
   2618 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2619 
   2620 
   2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2622 $as_echo_n "checking host system type... " >&6; }
   2623 if ${ac_cv_host+:} false; then :
   2624   $as_echo_n "(cached) " >&6
   2625 else
   2626   if test "x$host_alias" = x; then
   2627   ac_cv_host=$ac_cv_build
   2628 else
   2629   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2630     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2631 fi
   2632 
   2633 fi
   2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2635 $as_echo "$ac_cv_host" >&6; }
   2636 case $ac_cv_host in
   2637 *-*-*) ;;
   2638 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2639 esac
   2640 host=$ac_cv_host
   2641 ac_save_IFS=$IFS; IFS='-'
   2642 set x $ac_cv_host
   2643 shift
   2644 host_cpu=$1
   2645 host_vendor=$2
   2646 shift; shift
   2647 # Remember, the first character of IFS is used to create $*,
   2648 # except with old shells:
   2649 host_os=$*
   2650 IFS=$ac_save_IFS
   2651 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2652 
   2653 
   2654 ac_ext=c
   2655 ac_cpp='$CPP $CPPFLAGS'
   2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2659 if test -n "$ac_tool_prefix"; then
   2660   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2661 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2663 $as_echo_n "checking for $ac_word... " >&6; }
   2664 if ${ac_cv_prog_CC+:} false; then :
   2665   $as_echo_n "(cached) " >&6
   2666 else
   2667   if test -n "$CC"; then
   2668   ac_cv_prog_CC="$CC" # Let the user override the test.
   2669 else
   2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2671 for as_dir in $PATH
   2672 do
   2673   IFS=$as_save_IFS
   2674   test -z "$as_dir" && as_dir=.
   2675     for ac_exec_ext in '' $ac_executable_extensions; do
   2676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2677     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2679     break 2
   2680   fi
   2681 done
   2682   done
   2683 IFS=$as_save_IFS
   2684 
   2685 fi
   2686 fi
   2687 CC=$ac_cv_prog_CC
   2688 if test -n "$CC"; then
   2689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2690 $as_echo "$CC" >&6; }
   2691 else
   2692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2693 $as_echo "no" >&6; }
   2694 fi
   2695 
   2696 
   2697 fi
   2698 if test -z "$ac_cv_prog_CC"; then
   2699   ac_ct_CC=$CC
   2700   # Extract the first word of "gcc", so it can be a program name with args.
   2701 set dummy gcc; ac_word=$2
   2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2703 $as_echo_n "checking for $ac_word... " >&6; }
   2704 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2705   $as_echo_n "(cached) " >&6
   2706 else
   2707   if test -n "$ac_ct_CC"; then
   2708   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2709 else
   2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2711 for as_dir in $PATH
   2712 do
   2713   IFS=$as_save_IFS
   2714   test -z "$as_dir" && as_dir=.
   2715     for ac_exec_ext in '' $ac_executable_extensions; do
   2716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2717     ac_cv_prog_ac_ct_CC="gcc"
   2718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2719     break 2
   2720   fi
   2721 done
   2722   done
   2723 IFS=$as_save_IFS
   2724 
   2725 fi
   2726 fi
   2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2728 if test -n "$ac_ct_CC"; then
   2729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2730 $as_echo "$ac_ct_CC" >&6; }
   2731 else
   2732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2733 $as_echo "no" >&6; }
   2734 fi
   2735 
   2736   if test "x$ac_ct_CC" = x; then
   2737     CC=""
   2738   else
   2739     case $cross_compiling:$ac_tool_warned in
   2740 yes:)
   2741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2743 ac_tool_warned=yes ;;
   2744 esac
   2745     CC=$ac_ct_CC
   2746   fi
   2747 else
   2748   CC="$ac_cv_prog_CC"
   2749 fi
   2750 
   2751 if test -z "$CC"; then
   2752           if test -n "$ac_tool_prefix"; then
   2753     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2754 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2756 $as_echo_n "checking for $ac_word... " >&6; }
   2757 if ${ac_cv_prog_CC+:} false; then :
   2758   $as_echo_n "(cached) " >&6
   2759 else
   2760   if test -n "$CC"; then
   2761   ac_cv_prog_CC="$CC" # Let the user override the test.
   2762 else
   2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2764 for as_dir in $PATH
   2765 do
   2766   IFS=$as_save_IFS
   2767   test -z "$as_dir" && as_dir=.
   2768     for ac_exec_ext in '' $ac_executable_extensions; do
   2769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2770     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2772     break 2
   2773   fi
   2774 done
   2775   done
   2776 IFS=$as_save_IFS
   2777 
   2778 fi
   2779 fi
   2780 CC=$ac_cv_prog_CC
   2781 if test -n "$CC"; then
   2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2783 $as_echo "$CC" >&6; }
   2784 else
   2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2786 $as_echo "no" >&6; }
   2787 fi
   2788 
   2789 
   2790   fi
   2791 fi
   2792 if test -z "$CC"; then
   2793   # Extract the first word of "cc", so it can be a program name with args.
   2794 set dummy cc; ac_word=$2
   2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2796 $as_echo_n "checking for $ac_word... " >&6; }
   2797 if ${ac_cv_prog_CC+:} false; then :
   2798   $as_echo_n "(cached) " >&6
   2799 else
   2800   if test -n "$CC"; then
   2801   ac_cv_prog_CC="$CC" # Let the user override the test.
   2802 else
   2803   ac_prog_rejected=no
   2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2805 for as_dir in $PATH
   2806 do
   2807   IFS=$as_save_IFS
   2808   test -z "$as_dir" && as_dir=.
   2809     for ac_exec_ext in '' $ac_executable_extensions; do
   2810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2811     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2812        ac_prog_rejected=yes
   2813        continue
   2814      fi
   2815     ac_cv_prog_CC="cc"
   2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2817     break 2
   2818   fi
   2819 done
   2820   done
   2821 IFS=$as_save_IFS
   2822 
   2823 if test $ac_prog_rejected = yes; then
   2824   # We found a bogon in the path, so make sure we never use it.
   2825   set dummy $ac_cv_prog_CC
   2826   shift
   2827   if test $# != 0; then
   2828     # We chose a different compiler from the bogus one.
   2829     # However, it has the same basename, so the bogon will be chosen
   2830     # first if we set CC to just the basename; use the full file name.
   2831     shift
   2832     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2833   fi
   2834 fi
   2835 fi
   2836 fi
   2837 CC=$ac_cv_prog_CC
   2838 if test -n "$CC"; then
   2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2840 $as_echo "$CC" >&6; }
   2841 else
   2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2843 $as_echo "no" >&6; }
   2844 fi
   2845 
   2846 
   2847 fi
   2848 if test -z "$CC"; then
   2849   if test -n "$ac_tool_prefix"; then
   2850   for ac_prog in cl.exe
   2851   do
   2852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2855 $as_echo_n "checking for $ac_word... " >&6; }
   2856 if ${ac_cv_prog_CC+:} false; then :
   2857   $as_echo_n "(cached) " >&6
   2858 else
   2859   if test -n "$CC"; then
   2860   ac_cv_prog_CC="$CC" # Let the user override the test.
   2861 else
   2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2863 for as_dir in $PATH
   2864 do
   2865   IFS=$as_save_IFS
   2866   test -z "$as_dir" && as_dir=.
   2867     for ac_exec_ext in '' $ac_executable_extensions; do
   2868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2869     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2871     break 2
   2872   fi
   2873 done
   2874   done
   2875 IFS=$as_save_IFS
   2876 
   2877 fi
   2878 fi
   2879 CC=$ac_cv_prog_CC
   2880 if test -n "$CC"; then
   2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2882 $as_echo "$CC" >&6; }
   2883 else
   2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2885 $as_echo "no" >&6; }
   2886 fi
   2887 
   2888 
   2889     test -n "$CC" && break
   2890   done
   2891 fi
   2892 if test -z "$CC"; then
   2893   ac_ct_CC=$CC
   2894   for ac_prog in cl.exe
   2895 do
   2896   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2897 set dummy $ac_prog; ac_word=$2
   2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2899 $as_echo_n "checking for $ac_word... " >&6; }
   2900 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2901   $as_echo_n "(cached) " >&6
   2902 else
   2903   if test -n "$ac_ct_CC"; then
   2904   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2905 else
   2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2907 for as_dir in $PATH
   2908 do
   2909   IFS=$as_save_IFS
   2910   test -z "$as_dir" && as_dir=.
   2911     for ac_exec_ext in '' $ac_executable_extensions; do
   2912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2913     ac_cv_prog_ac_ct_CC="$ac_prog"
   2914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2915     break 2
   2916   fi
   2917 done
   2918   done
   2919 IFS=$as_save_IFS
   2920 
   2921 fi
   2922 fi
   2923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2924 if test -n "$ac_ct_CC"; then
   2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2926 $as_echo "$ac_ct_CC" >&6; }
   2927 else
   2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2929 $as_echo "no" >&6; }
   2930 fi
   2931 
   2932 
   2933   test -n "$ac_ct_CC" && break
   2934 done
   2935 
   2936   if test "x$ac_ct_CC" = x; then
   2937     CC=""
   2938   else
   2939     case $cross_compiling:$ac_tool_warned in
   2940 yes:)
   2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2943 ac_tool_warned=yes ;;
   2944 esac
   2945     CC=$ac_ct_CC
   2946   fi
   2947 fi
   2948 
   2949 fi
   2950 
   2951 
   2952 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2954 as_fn_error $? "no acceptable C compiler found in \$PATH
   2955 See \`config.log' for more details" "$LINENO" 5; }
   2956 
   2957 # Provide some information about the compiler.
   2958 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   2959 set X $ac_compile
   2960 ac_compiler=$2
   2961 for ac_option in --version -v -V -qversion; do
   2962   { { ac_try="$ac_compiler $ac_option >&5"
   2963 case "(($ac_try" in
   2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2965   *) ac_try_echo=$ac_try;;
   2966 esac
   2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2968 $as_echo "$ac_try_echo"; } >&5
   2969   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   2970   ac_status=$?
   2971   if test -s conftest.err; then
   2972     sed '10a\
   2973 ... rest of stderr output deleted ...
   2974          10q' conftest.err >conftest.er1
   2975     cat conftest.er1 >&5
   2976   fi
   2977   rm -f conftest.er1 conftest.err
   2978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2979   test $ac_status = 0; }
   2980 done
   2981 
   2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2983 /* end confdefs.h.  */
   2984 
   2985 int
   2986 main ()
   2987 {
   2988 
   2989   ;
   2990   return 0;
   2991 }
   2992 _ACEOF
   2993 ac_clean_files_save=$ac_clean_files
   2994 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   2995 # Try to create an executable without -o first, disregard a.out.
   2996 # It will help us diagnose broken compilers, and finding out an intuition
   2997 # of exeext.
   2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   2999 $as_echo_n "checking whether the C compiler works... " >&6; }
   3000 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3001 
   3002 # The possible output files:
   3003 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3004 
   3005 ac_rmfiles=
   3006 for ac_file in $ac_files
   3007 do
   3008   case $ac_file in
   3009     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3010     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3011   esac
   3012 done
   3013 rm -f $ac_rmfiles
   3014 
   3015 if { { ac_try="$ac_link_default"
   3016 case "(($ac_try" in
   3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3018   *) ac_try_echo=$ac_try;;
   3019 esac
   3020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3021 $as_echo "$ac_try_echo"; } >&5
   3022   (eval "$ac_link_default") 2>&5
   3023   ac_status=$?
   3024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3025   test $ac_status = 0; }; then :
   3026   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3027 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3028 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3029 # so that the user can short-circuit this test for compilers unknown to
   3030 # Autoconf.
   3031 for ac_file in $ac_files ''
   3032 do
   3033   test -f "$ac_file" || continue
   3034   case $ac_file in
   3035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3036 	;;
   3037     [ab].out )
   3038 	# We found the default executable, but exeext='' is most
   3039 	# certainly right.
   3040 	break;;
   3041     *.* )
   3042 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3043 	then :; else
   3044 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3045 	fi
   3046 	# We set ac_cv_exeext here because the later test for it is not
   3047 	# safe: cross compilers may not add the suffix if given an `-o'
   3048 	# argument, so we may need to know it at that point already.
   3049 	# Even if this section looks crufty: it has the advantage of
   3050 	# actually working.
   3051 	break;;
   3052     * )
   3053 	break;;
   3054   esac
   3055 done
   3056 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3057 
   3058 else
   3059   ac_file=''
   3060 fi
   3061 if test -z "$ac_file"; then :
   3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3063 $as_echo "no" >&6; }
   3064 $as_echo "$as_me: failed program was:" >&5
   3065 sed 's/^/| /' conftest.$ac_ext >&5
   3066 
   3067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3069 as_fn_error 77 "C compiler cannot create executables
   3070 See \`config.log' for more details" "$LINENO" 5; }
   3071 else
   3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3073 $as_echo "yes" >&6; }
   3074 fi
   3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3076 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3078 $as_echo "$ac_file" >&6; }
   3079 ac_exeext=$ac_cv_exeext
   3080 
   3081 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3082 ac_clean_files=$ac_clean_files_save
   3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3084 $as_echo_n "checking for suffix of executables... " >&6; }
   3085 if { { ac_try="$ac_link"
   3086 case "(($ac_try" in
   3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3088   *) ac_try_echo=$ac_try;;
   3089 esac
   3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3091 $as_echo "$ac_try_echo"; } >&5
   3092   (eval "$ac_link") 2>&5
   3093   ac_status=$?
   3094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3095   test $ac_status = 0; }; then :
   3096   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3097 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3098 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3099 # `rm'.
   3100 for ac_file in conftest.exe conftest conftest.*; do
   3101   test -f "$ac_file" || continue
   3102   case $ac_file in
   3103     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3104     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3105 	  break;;
   3106     * ) break;;
   3107   esac
   3108 done
   3109 else
   3110   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3112 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3113 See \`config.log' for more details" "$LINENO" 5; }
   3114 fi
   3115 rm -f conftest conftest$ac_cv_exeext
   3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3117 $as_echo "$ac_cv_exeext" >&6; }
   3118 
   3119 rm -f conftest.$ac_ext
   3120 EXEEXT=$ac_cv_exeext
   3121 ac_exeext=$EXEEXT
   3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3123 /* end confdefs.h.  */
   3124 #include <stdio.h>
   3125 int
   3126 main ()
   3127 {
   3128 FILE *f = fopen ("conftest.out", "w");
   3129  return ferror (f) || fclose (f) != 0;
   3130 
   3131   ;
   3132   return 0;
   3133 }
   3134 _ACEOF
   3135 ac_clean_files="$ac_clean_files conftest.out"
   3136 # Check that the compiler produces executables we can run.  If not, either
   3137 # the compiler is broken, or we cross compile.
   3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3139 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3140 if test "$cross_compiling" != yes; then
   3141   { { ac_try="$ac_link"
   3142 case "(($ac_try" in
   3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3144   *) ac_try_echo=$ac_try;;
   3145 esac
   3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3147 $as_echo "$ac_try_echo"; } >&5
   3148   (eval "$ac_link") 2>&5
   3149   ac_status=$?
   3150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3151   test $ac_status = 0; }
   3152   if { ac_try='./conftest$ac_cv_exeext'
   3153   { { case "(($ac_try" in
   3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3155   *) ac_try_echo=$ac_try;;
   3156 esac
   3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3158 $as_echo "$ac_try_echo"; } >&5
   3159   (eval "$ac_try") 2>&5
   3160   ac_status=$?
   3161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3162   test $ac_status = 0; }; }; then
   3163     cross_compiling=no
   3164   else
   3165     if test "$cross_compiling" = maybe; then
   3166 	cross_compiling=yes
   3167     else
   3168 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3170 as_fn_error $? "cannot run C compiled programs.
   3171 If you meant to cross compile, use \`--host'.
   3172 See \`config.log' for more details" "$LINENO" 5; }
   3173     fi
   3174   fi
   3175 fi
   3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3177 $as_echo "$cross_compiling" >&6; }
   3178 
   3179 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3180 ac_clean_files=$ac_clean_files_save
   3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3182 $as_echo_n "checking for suffix of object files... " >&6; }
   3183 if ${ac_cv_objext+:} false; then :
   3184   $as_echo_n "(cached) " >&6
   3185 else
   3186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3187 /* end confdefs.h.  */
   3188 
   3189 int
   3190 main ()
   3191 {
   3192 
   3193   ;
   3194   return 0;
   3195 }
   3196 _ACEOF
   3197 rm -f conftest.o conftest.obj
   3198 if { { ac_try="$ac_compile"
   3199 case "(($ac_try" in
   3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3201   *) ac_try_echo=$ac_try;;
   3202 esac
   3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3204 $as_echo "$ac_try_echo"; } >&5
   3205   (eval "$ac_compile") 2>&5
   3206   ac_status=$?
   3207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3208   test $ac_status = 0; }; then :
   3209   for ac_file in conftest.o conftest.obj conftest.*; do
   3210   test -f "$ac_file" || continue;
   3211   case $ac_file in
   3212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3213     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3214        break;;
   3215   esac
   3216 done
   3217 else
   3218   $as_echo "$as_me: failed program was:" >&5
   3219 sed 's/^/| /' conftest.$ac_ext >&5
   3220 
   3221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3223 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3224 See \`config.log' for more details" "$LINENO" 5; }
   3225 fi
   3226 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3227 fi
   3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3229 $as_echo "$ac_cv_objext" >&6; }
   3230 OBJEXT=$ac_cv_objext
   3231 ac_objext=$OBJEXT
   3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3233 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3234 if ${ac_cv_c_compiler_gnu+:} false; then :
   3235   $as_echo_n "(cached) " >&6
   3236 else
   3237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3238 /* end confdefs.h.  */
   3239 
   3240 int
   3241 main ()
   3242 {
   3243 #ifndef __GNUC__
   3244        choke me
   3245 #endif
   3246 
   3247   ;
   3248   return 0;
   3249 }
   3250 _ACEOF
   3251 if ac_fn_c_try_compile "$LINENO"; then :
   3252   ac_compiler_gnu=yes
   3253 else
   3254   ac_compiler_gnu=no
   3255 fi
   3256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3257 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3258 
   3259 fi
   3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3261 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3262 if test $ac_compiler_gnu = yes; then
   3263   GCC=yes
   3264 else
   3265   GCC=
   3266 fi
   3267 ac_test_CFLAGS=${CFLAGS+set}
   3268 ac_save_CFLAGS=$CFLAGS
   3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3270 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3271 if ${ac_cv_prog_cc_g+:} false; then :
   3272   $as_echo_n "(cached) " >&6
   3273 else
   3274   ac_save_c_werror_flag=$ac_c_werror_flag
   3275    ac_c_werror_flag=yes
   3276    ac_cv_prog_cc_g=no
   3277    CFLAGS="-g"
   3278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3279 /* end confdefs.h.  */
   3280 
   3281 int
   3282 main ()
   3283 {
   3284 
   3285   ;
   3286   return 0;
   3287 }
   3288 _ACEOF
   3289 if ac_fn_c_try_compile "$LINENO"; then :
   3290   ac_cv_prog_cc_g=yes
   3291 else
   3292   CFLAGS=""
   3293       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3294 /* end confdefs.h.  */
   3295 
   3296 int
   3297 main ()
   3298 {
   3299 
   3300   ;
   3301   return 0;
   3302 }
   3303 _ACEOF
   3304 if ac_fn_c_try_compile "$LINENO"; then :
   3305 
   3306 else
   3307   ac_c_werror_flag=$ac_save_c_werror_flag
   3308 	 CFLAGS="-g"
   3309 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3310 /* end confdefs.h.  */
   3311 
   3312 int
   3313 main ()
   3314 {
   3315 
   3316   ;
   3317   return 0;
   3318 }
   3319 _ACEOF
   3320 if ac_fn_c_try_compile "$LINENO"; then :
   3321   ac_cv_prog_cc_g=yes
   3322 fi
   3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3324 fi
   3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3326 fi
   3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3328    ac_c_werror_flag=$ac_save_c_werror_flag
   3329 fi
   3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3331 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3332 if test "$ac_test_CFLAGS" = set; then
   3333   CFLAGS=$ac_save_CFLAGS
   3334 elif test $ac_cv_prog_cc_g = yes; then
   3335   if test "$GCC" = yes; then
   3336     CFLAGS="-g -O2"
   3337   else
   3338     CFLAGS="-g"
   3339   fi
   3340 else
   3341   if test "$GCC" = yes; then
   3342     CFLAGS="-O2"
   3343   else
   3344     CFLAGS=
   3345   fi
   3346 fi
   3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3348 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3349 if ${ac_cv_prog_cc_c89+:} false; then :
   3350   $as_echo_n "(cached) " >&6
   3351 else
   3352   ac_cv_prog_cc_c89=no
   3353 ac_save_CC=$CC
   3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3355 /* end confdefs.h.  */
   3356 #include <stdarg.h>
   3357 #include <stdio.h>
   3358 struct stat;
   3359 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3360 struct buf { int x; };
   3361 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3362 static char *e (p, i)
   3363      char **p;
   3364      int i;
   3365 {
   3366   return p[i];
   3367 }
   3368 static char *f (char * (*g) (char **, int), char **p, ...)
   3369 {
   3370   char *s;
   3371   va_list v;
   3372   va_start (v,p);
   3373   s = g (p, va_arg (v,int));
   3374   va_end (v);
   3375   return s;
   3376 }
   3377 
   3378 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3379    function prototypes and stuff, but not '\xHH' hex character constants.
   3380    These don't provoke an error unfortunately, instead are silently treated
   3381    as 'x'.  The following induces an error, until -std is added to get
   3382    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3383    array size at least.  It's necessary to write '\x00'==0 to get something
   3384    that's true only with -std.  */
   3385 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3386 
   3387 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3388    inside strings and character constants.  */
   3389 #define FOO(x) 'x'
   3390 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3391 
   3392 int test (int i, double x);
   3393 struct s1 {int (*f) (int a);};
   3394 struct s2 {int (*f) (double a);};
   3395 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3396 int argc;
   3397 char **argv;
   3398 int
   3399 main ()
   3400 {
   3401 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3402   ;
   3403   return 0;
   3404 }
   3405 _ACEOF
   3406 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3407 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3408 do
   3409   CC="$ac_save_CC $ac_arg"
   3410   if ac_fn_c_try_compile "$LINENO"; then :
   3411   ac_cv_prog_cc_c89=$ac_arg
   3412 fi
   3413 rm -f core conftest.err conftest.$ac_objext
   3414   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3415 done
   3416 rm -f conftest.$ac_ext
   3417 CC=$ac_save_CC
   3418 
   3419 fi
   3420 # AC_CACHE_VAL
   3421 case "x$ac_cv_prog_cc_c89" in
   3422   x)
   3423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3424 $as_echo "none needed" >&6; } ;;
   3425   xno)
   3426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3427 $as_echo "unsupported" >&6; } ;;
   3428   *)
   3429     CC="$CC $ac_cv_prog_cc_c89"
   3430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3431 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3432 esac
   3433 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3434 
   3435 fi
   3436 
   3437 ac_ext=c
   3438 ac_cpp='$CPP $CPPFLAGS'
   3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3442 
   3443 
   3444 ac_ext=c
   3445 ac_cpp='$CPP $CPPFLAGS'
   3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3450 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3451 # On Suns, sometimes $CPP names a directory.
   3452 if test -n "$CPP" && test -d "$CPP"; then
   3453   CPP=
   3454 fi
   3455 if test -z "$CPP"; then
   3456   if ${ac_cv_prog_CPP+:} false; then :
   3457   $as_echo_n "(cached) " >&6
   3458 else
   3459       # Double quotes because CPP needs to be expanded
   3460     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3461     do
   3462       ac_preproc_ok=false
   3463 for ac_c_preproc_warn_flag in '' yes
   3464 do
   3465   # Use a header file that comes with gcc, so configuring glibc
   3466   # with a fresh cross-compiler works.
   3467   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3468   # <limits.h> exists even on freestanding compilers.
   3469   # On the NeXT, cc -E runs the code through the compiler's parser,
   3470   # not just through cpp. "Syntax error" is here to catch this case.
   3471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3472 /* end confdefs.h.  */
   3473 #ifdef __STDC__
   3474 # include <limits.h>
   3475 #else
   3476 # include <assert.h>
   3477 #endif
   3478 		     Syntax error
   3479 _ACEOF
   3480 if ac_fn_c_try_cpp "$LINENO"; then :
   3481 
   3482 else
   3483   # Broken: fails on valid input.
   3484 continue
   3485 fi
   3486 rm -f conftest.err conftest.i conftest.$ac_ext
   3487 
   3488   # OK, works on sane cases.  Now check whether nonexistent headers
   3489   # can be detected and how.
   3490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3491 /* end confdefs.h.  */
   3492 #include <ac_nonexistent.h>
   3493 _ACEOF
   3494 if ac_fn_c_try_cpp "$LINENO"; then :
   3495   # Broken: success on invalid input.
   3496 continue
   3497 else
   3498   # Passes both tests.
   3499 ac_preproc_ok=:
   3500 break
   3501 fi
   3502 rm -f conftest.err conftest.i conftest.$ac_ext
   3503 
   3504 done
   3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3506 rm -f conftest.i conftest.err conftest.$ac_ext
   3507 if $ac_preproc_ok; then :
   3508   break
   3509 fi
   3510 
   3511     done
   3512     ac_cv_prog_CPP=$CPP
   3513 
   3514 fi
   3515   CPP=$ac_cv_prog_CPP
   3516 else
   3517   ac_cv_prog_CPP=$CPP
   3518 fi
   3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3520 $as_echo "$CPP" >&6; }
   3521 ac_preproc_ok=false
   3522 for ac_c_preproc_warn_flag in '' yes
   3523 do
   3524   # Use a header file that comes with gcc, so configuring glibc
   3525   # with a fresh cross-compiler works.
   3526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3527   # <limits.h> exists even on freestanding compilers.
   3528   # On the NeXT, cc -E runs the code through the compiler's parser,
   3529   # not just through cpp. "Syntax error" is here to catch this case.
   3530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3531 /* end confdefs.h.  */
   3532 #ifdef __STDC__
   3533 # include <limits.h>
   3534 #else
   3535 # include <assert.h>
   3536 #endif
   3537 		     Syntax error
   3538 _ACEOF
   3539 if ac_fn_c_try_cpp "$LINENO"; then :
   3540 
   3541 else
   3542   # Broken: fails on valid input.
   3543 continue
   3544 fi
   3545 rm -f conftest.err conftest.i conftest.$ac_ext
   3546 
   3547   # OK, works on sane cases.  Now check whether nonexistent headers
   3548   # can be detected and how.
   3549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3550 /* end confdefs.h.  */
   3551 #include <ac_nonexistent.h>
   3552 _ACEOF
   3553 if ac_fn_c_try_cpp "$LINENO"; then :
   3554   # Broken: success on invalid input.
   3555 continue
   3556 else
   3557   # Passes both tests.
   3558 ac_preproc_ok=:
   3559 break
   3560 fi
   3561 rm -f conftest.err conftest.i conftest.$ac_ext
   3562 
   3563 done
   3564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3565 rm -f conftest.i conftest.err conftest.$ac_ext
   3566 if $ac_preproc_ok; then :
   3567 
   3568 else
   3569   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3571 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3572 See \`config.log' for more details" "$LINENO" 5; }
   3573 fi
   3574 
   3575 ac_ext=c
   3576 ac_cpp='$CPP $CPPFLAGS'
   3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3580 
   3581 
   3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3583 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3584 if ${ac_cv_path_GREP+:} false; then :
   3585   $as_echo_n "(cached) " >&6
   3586 else
   3587   if test -z "$GREP"; then
   3588   ac_path_GREP_found=false
   3589   # Loop through the user's path and test for each of PROGNAME-LIST
   3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3592 do
   3593   IFS=$as_save_IFS
   3594   test -z "$as_dir" && as_dir=.
   3595     for ac_prog in grep ggrep; do
   3596     for ac_exec_ext in '' $ac_executable_extensions; do
   3597       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3598       as_fn_executable_p "$ac_path_GREP" || continue
   3599 # Check for GNU ac_path_GREP and select it if it is found.
   3600   # Check for GNU $ac_path_GREP
   3601 case `"$ac_path_GREP" --version 2>&1` in
   3602 *GNU*)
   3603   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3604 *)
   3605   ac_count=0
   3606   $as_echo_n 0123456789 >"conftest.in"
   3607   while :
   3608   do
   3609     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3610     mv "conftest.tmp" "conftest.in"
   3611     cp "conftest.in" "conftest.nl"
   3612     $as_echo 'GREP' >> "conftest.nl"
   3613     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3614     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3615     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3616     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3617       # Best one so far, save it but keep looking for a better one
   3618       ac_cv_path_GREP="$ac_path_GREP"
   3619       ac_path_GREP_max=$ac_count
   3620     fi
   3621     # 10*(2^10) chars as input seems more than enough
   3622     test $ac_count -gt 10 && break
   3623   done
   3624   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3625 esac
   3626 
   3627       $ac_path_GREP_found && break 3
   3628     done
   3629   done
   3630   done
   3631 IFS=$as_save_IFS
   3632   if test -z "$ac_cv_path_GREP"; then
   3633     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3634   fi
   3635 else
   3636   ac_cv_path_GREP=$GREP
   3637 fi
   3638 
   3639 fi
   3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3641 $as_echo "$ac_cv_path_GREP" >&6; }
   3642  GREP="$ac_cv_path_GREP"
   3643 
   3644 
   3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3646 $as_echo_n "checking for egrep... " >&6; }
   3647 if ${ac_cv_path_EGREP+:} false; then :
   3648   $as_echo_n "(cached) " >&6
   3649 else
   3650   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3651    then ac_cv_path_EGREP="$GREP -E"
   3652    else
   3653      if test -z "$EGREP"; then
   3654   ac_path_EGREP_found=false
   3655   # Loop through the user's path and test for each of PROGNAME-LIST
   3656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3658 do
   3659   IFS=$as_save_IFS
   3660   test -z "$as_dir" && as_dir=.
   3661     for ac_prog in egrep; do
   3662     for ac_exec_ext in '' $ac_executable_extensions; do
   3663       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3664       as_fn_executable_p "$ac_path_EGREP" || continue
   3665 # Check for GNU ac_path_EGREP and select it if it is found.
   3666   # Check for GNU $ac_path_EGREP
   3667 case `"$ac_path_EGREP" --version 2>&1` in
   3668 *GNU*)
   3669   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3670 *)
   3671   ac_count=0
   3672   $as_echo_n 0123456789 >"conftest.in"
   3673   while :
   3674   do
   3675     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3676     mv "conftest.tmp" "conftest.in"
   3677     cp "conftest.in" "conftest.nl"
   3678     $as_echo 'EGREP' >> "conftest.nl"
   3679     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3681     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3682     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3683       # Best one so far, save it but keep looking for a better one
   3684       ac_cv_path_EGREP="$ac_path_EGREP"
   3685       ac_path_EGREP_max=$ac_count
   3686     fi
   3687     # 10*(2^10) chars as input seems more than enough
   3688     test $ac_count -gt 10 && break
   3689   done
   3690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3691 esac
   3692 
   3693       $ac_path_EGREP_found && break 3
   3694     done
   3695   done
   3696   done
   3697 IFS=$as_save_IFS
   3698   if test -z "$ac_cv_path_EGREP"; then
   3699     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3700   fi
   3701 else
   3702   ac_cv_path_EGREP=$EGREP
   3703 fi
   3704 
   3705    fi
   3706 fi
   3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3708 $as_echo "$ac_cv_path_EGREP" >&6; }
   3709  EGREP="$ac_cv_path_EGREP"
   3710 
   3711 
   3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3713 $as_echo_n "checking for ANSI C header files... " >&6; }
   3714 if ${ac_cv_header_stdc+:} false; then :
   3715   $as_echo_n "(cached) " >&6
   3716 else
   3717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3718 /* end confdefs.h.  */
   3719 #include <stdlib.h>
   3720 #include <stdarg.h>
   3721 #include <string.h>
   3722 #include <float.h>
   3723 
   3724 int
   3725 main ()
   3726 {
   3727 
   3728   ;
   3729   return 0;
   3730 }
   3731 _ACEOF
   3732 if ac_fn_c_try_compile "$LINENO"; then :
   3733   ac_cv_header_stdc=yes
   3734 else
   3735   ac_cv_header_stdc=no
   3736 fi
   3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3738 
   3739 if test $ac_cv_header_stdc = yes; then
   3740   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3742 /* end confdefs.h.  */
   3743 #include <string.h>
   3744 
   3745 _ACEOF
   3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3747   $EGREP "memchr" >/dev/null 2>&1; then :
   3748 
   3749 else
   3750   ac_cv_header_stdc=no
   3751 fi
   3752 rm -f conftest*
   3753 
   3754 fi
   3755 
   3756 if test $ac_cv_header_stdc = yes; then
   3757   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3759 /* end confdefs.h.  */
   3760 #include <stdlib.h>
   3761 
   3762 _ACEOF
   3763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3764   $EGREP "free" >/dev/null 2>&1; then :
   3765 
   3766 else
   3767   ac_cv_header_stdc=no
   3768 fi
   3769 rm -f conftest*
   3770 
   3771 fi
   3772 
   3773 if test $ac_cv_header_stdc = yes; then
   3774   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3775   if test "$cross_compiling" = yes; then :
   3776   :
   3777 else
   3778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3779 /* end confdefs.h.  */
   3780 #include <ctype.h>
   3781 #include <stdlib.h>
   3782 #if ((' ' & 0x0FF) == 0x020)
   3783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3785 #else
   3786 # define ISLOWER(c) \
   3787 		   (('a' <= (c) && (c) <= 'i') \
   3788 		     || ('j' <= (c) && (c) <= 'r') \
   3789 		     || ('s' <= (c) && (c) <= 'z'))
   3790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3791 #endif
   3792 
   3793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3794 int
   3795 main ()
   3796 {
   3797   int i;
   3798   for (i = 0; i < 256; i++)
   3799     if (XOR (islower (i), ISLOWER (i))
   3800 	|| toupper (i) != TOUPPER (i))
   3801       return 2;
   3802   return 0;
   3803 }
   3804 _ACEOF
   3805 if ac_fn_c_try_run "$LINENO"; then :
   3806 
   3807 else
   3808   ac_cv_header_stdc=no
   3809 fi
   3810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3811   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3812 fi
   3813 
   3814 fi
   3815 fi
   3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3817 $as_echo "$ac_cv_header_stdc" >&6; }
   3818 if test $ac_cv_header_stdc = yes; then
   3819 
   3820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3821 
   3822 fi
   3823 
   3824 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3826 		  inttypes.h stdint.h unistd.h
   3827 do :
   3828   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3829 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3830 "
   3831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3832   cat >>confdefs.h <<_ACEOF
   3833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3834 _ACEOF
   3835 
   3836 fi
   3837 
   3838 done
   3839 
   3840 
   3841 
   3842   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3843 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   3844   MINIX=yes
   3845 else
   3846   MINIX=
   3847 fi
   3848 
   3849 
   3850   if test "$MINIX" = yes; then
   3851 
   3852 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3853 
   3854 
   3855 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3856 
   3857 
   3858 $as_echo "#define _MINIX 1" >>confdefs.h
   3859 
   3860   fi
   3861 
   3862 
   3863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3864 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3865 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   3866   $as_echo_n "(cached) " >&6
   3867 else
   3868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3869 /* end confdefs.h.  */
   3870 
   3871 #         define __EXTENSIONS__ 1
   3872           $ac_includes_default
   3873 int
   3874 main ()
   3875 {
   3876 
   3877   ;
   3878   return 0;
   3879 }
   3880 _ACEOF
   3881 if ac_fn_c_try_compile "$LINENO"; then :
   3882   ac_cv_safe_to_define___extensions__=yes
   3883 else
   3884   ac_cv_safe_to_define___extensions__=no
   3885 fi
   3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3887 fi
   3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3889 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   3890   test $ac_cv_safe_to_define___extensions__ = yes &&
   3891     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   3892 
   3893   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   3894 
   3895   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3896 
   3897   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3898 
   3899   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   3900 
   3901 
   3902 
   3903 # Enable RFC 3542 APIs on macOS
   3904 
   3905 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
   3906 
   3907 
   3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3909 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3910 set x ${MAKE-make}
   3911 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3912 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3913   $as_echo_n "(cached) " >&6
   3914 else
   3915   cat >conftest.make <<\_ACEOF
   3916 SHELL = /bin/sh
   3917 all:
   3918 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3919 _ACEOF
   3920 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3921 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3922   *@@@%%%=?*=@@@%%%*)
   3923     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3924   *)
   3925     eval ac_cv_prog_make_${ac_make}_set=no;;
   3926 esac
   3927 rm -f conftest.make
   3928 fi
   3929 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3931 $as_echo "yes" >&6; }
   3932   SET_MAKE=
   3933 else
   3934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3935 $as_echo "no" >&6; }
   3936   SET_MAKE="MAKE=${MAKE-make}"
   3937 fi
   3938 
   3939 
   3940 case `pwd` in
   3941   *\ * | *\	*)
   3942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   3943 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   3944 esac
   3945 
   3946 
   3947 
   3948 macro_version='2.4.6'
   3949 macro_revision='2.4.6'
   3950 
   3951 
   3952 
   3953 
   3954 
   3955 
   3956 
   3957 
   3958 
   3959 
   3960 
   3961 
   3962 
   3963 ltmain=$ac_aux_dir/ltmain.sh
   3964 
   3965 # Backslashify metacharacters that are still active within
   3966 # double-quoted strings.
   3967 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   3968 
   3969 # Same as above, but do not quote variable references.
   3970 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   3971 
   3972 # Sed substitution to delay expansion of an escaped shell variable in a
   3973 # double_quote_subst'ed string.
   3974 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   3975 
   3976 # Sed substitution to delay expansion of an escaped single quote.
   3977 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   3978 
   3979 # Sed substitution to avoid accidental globbing in evaled expressions
   3980 no_glob_subst='s/\*/\\\*/g'
   3981 
   3982 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   3983 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   3984 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   3985 
   3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   3987 $as_echo_n "checking how to print strings... " >&6; }
   3988 # Test print first, because it will be a builtin if present.
   3989 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   3990    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   3991   ECHO='print -r --'
   3992 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   3993   ECHO='printf %s\n'
   3994 else
   3995   # Use this function as a fallback that always works.
   3996   func_fallback_echo ()
   3997   {
   3998     eval 'cat <<_LTECHO_EOF
   3999 $1
   4000 _LTECHO_EOF'
   4001   }
   4002   ECHO='func_fallback_echo'
   4003 fi
   4004 
   4005 # func_echo_all arg...
   4006 # Invoke $ECHO with all args, space-separated.
   4007 func_echo_all ()
   4008 {
   4009     $ECHO ""
   4010 }
   4011 
   4012 case $ECHO in
   4013   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4014 $as_echo "printf" >&6; } ;;
   4015   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4016 $as_echo "print -r" >&6; } ;;
   4017   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4018 $as_echo "cat" >&6; } ;;
   4019 esac
   4020 
   4021 
   4022 
   4023 
   4024 
   4025 
   4026 
   4027 
   4028 
   4029 
   4030 
   4031 
   4032 
   4033 
   4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4035 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4036 if ${ac_cv_path_SED+:} false; then :
   4037   $as_echo_n "(cached) " >&6
   4038 else
   4039             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4040      for ac_i in 1 2 3 4 5 6 7; do
   4041        ac_script="$ac_script$as_nl$ac_script"
   4042      done
   4043      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4044      { ac_script=; unset ac_script;}
   4045      if test -z "$SED"; then
   4046   ac_path_SED_found=false
   4047   # Loop through the user's path and test for each of PROGNAME-LIST
   4048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4049 for as_dir in $PATH
   4050 do
   4051   IFS=$as_save_IFS
   4052   test -z "$as_dir" && as_dir=.
   4053     for ac_prog in sed gsed; do
   4054     for ac_exec_ext in '' $ac_executable_extensions; do
   4055       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4056       as_fn_executable_p "$ac_path_SED" || continue
   4057 # Check for GNU ac_path_SED and select it if it is found.
   4058   # Check for GNU $ac_path_SED
   4059 case `"$ac_path_SED" --version 2>&1` in
   4060 *GNU*)
   4061   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4062 *)
   4063   ac_count=0
   4064   $as_echo_n 0123456789 >"conftest.in"
   4065   while :
   4066   do
   4067     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4068     mv "conftest.tmp" "conftest.in"
   4069     cp "conftest.in" "conftest.nl"
   4070     $as_echo '' >> "conftest.nl"
   4071     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4072     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4073     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4074     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4075       # Best one so far, save it but keep looking for a better one
   4076       ac_cv_path_SED="$ac_path_SED"
   4077       ac_path_SED_max=$ac_count
   4078     fi
   4079     # 10*(2^10) chars as input seems more than enough
   4080     test $ac_count -gt 10 && break
   4081   done
   4082   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4083 esac
   4084 
   4085       $ac_path_SED_found && break 3
   4086     done
   4087   done
   4088   done
   4089 IFS=$as_save_IFS
   4090   if test -z "$ac_cv_path_SED"; then
   4091     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4092   fi
   4093 else
   4094   ac_cv_path_SED=$SED
   4095 fi
   4096 
   4097 fi
   4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4099 $as_echo "$ac_cv_path_SED" >&6; }
   4100  SED="$ac_cv_path_SED"
   4101   rm -f conftest.sed
   4102 
   4103 test -z "$SED" && SED=sed
   4104 Xsed="$SED -e 1s/^X//"
   4105 
   4106 
   4107 
   4108 
   4109 
   4110 
   4111 
   4112 
   4113 
   4114 
   4115 
   4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   4117 $as_echo_n "checking for fgrep... " >&6; }
   4118 if ${ac_cv_path_FGREP+:} false; then :
   4119   $as_echo_n "(cached) " >&6
   4120 else
   4121   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   4122    then ac_cv_path_FGREP="$GREP -F"
   4123    else
   4124      if test -z "$FGREP"; then
   4125   ac_path_FGREP_found=false
   4126   # Loop through the user's path and test for each of PROGNAME-LIST
   4127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4129 do
   4130   IFS=$as_save_IFS
   4131   test -z "$as_dir" && as_dir=.
   4132     for ac_prog in fgrep; do
   4133     for ac_exec_ext in '' $ac_executable_extensions; do
   4134       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   4135       as_fn_executable_p "$ac_path_FGREP" || continue
   4136 # Check for GNU ac_path_FGREP and select it if it is found.
   4137   # Check for GNU $ac_path_FGREP
   4138 case `"$ac_path_FGREP" --version 2>&1` in
   4139 *GNU*)
   4140   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   4141 *)
   4142   ac_count=0
   4143   $as_echo_n 0123456789 >"conftest.in"
   4144   while :
   4145   do
   4146     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4147     mv "conftest.tmp" "conftest.in"
   4148     cp "conftest.in" "conftest.nl"
   4149     $as_echo 'FGREP' >> "conftest.nl"
   4150     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4151     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4152     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4153     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   4154       # Best one so far, save it but keep looking for a better one
   4155       ac_cv_path_FGREP="$ac_path_FGREP"
   4156       ac_path_FGREP_max=$ac_count
   4157     fi
   4158     # 10*(2^10) chars as input seems more than enough
   4159     test $ac_count -gt 10 && break
   4160   done
   4161   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4162 esac
   4163 
   4164       $ac_path_FGREP_found && break 3
   4165     done
   4166   done
   4167   done
   4168 IFS=$as_save_IFS
   4169   if test -z "$ac_cv_path_FGREP"; then
   4170     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4171   fi
   4172 else
   4173   ac_cv_path_FGREP=$FGREP
   4174 fi
   4175 
   4176    fi
   4177 fi
   4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   4179 $as_echo "$ac_cv_path_FGREP" >&6; }
   4180  FGREP="$ac_cv_path_FGREP"
   4181 
   4182 
   4183 test -z "$GREP" && GREP=grep
   4184 
   4185 
   4186 
   4187 
   4188 
   4189 
   4190 
   4191 
   4192 
   4193 
   4194 
   4195 
   4196 
   4197 
   4198 
   4199 
   4200 
   4201 
   4202 
   4203 # Check whether --with-gnu-ld was given.
   4204 if test "${with_gnu_ld+set}" = set; then :
   4205   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   4206 else
   4207   with_gnu_ld=no
   4208 fi
   4209 
   4210 ac_prog=ld
   4211 if test yes = "$GCC"; then
   4212   # Check if gcc -print-prog-name=ld gives a path.
   4213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   4214 $as_echo_n "checking for ld used by $CC... " >&6; }
   4215   case $host in
   4216   *-*-mingw*)
   4217     # gcc leaves a trailing carriage return, which upsets mingw
   4218     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4219   *)
   4220     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4221   esac
   4222   case $ac_prog in
   4223     # Accept absolute paths.
   4224     [\\/]* | ?:[\\/]*)
   4225       re_direlt='/[^/][^/]*/\.\./'
   4226       # Canonicalize the pathname of ld
   4227       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4228       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4229 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4230       done
   4231       test -z "$LD" && LD=$ac_prog
   4232       ;;
   4233   "")
   4234     # If it fails, then pretend we aren't using GCC.
   4235     ac_prog=ld
   4236     ;;
   4237   *)
   4238     # If it is relative, then search for the first ld in PATH.
   4239     with_gnu_ld=unknown
   4240     ;;
   4241   esac
   4242 elif test yes = "$with_gnu_ld"; then
   4243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   4244 $as_echo_n "checking for GNU ld... " >&6; }
   4245 else
   4246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   4247 $as_echo_n "checking for non-GNU ld... " >&6; }
   4248 fi
   4249 if ${lt_cv_path_LD+:} false; then :
   4250   $as_echo_n "(cached) " >&6
   4251 else
   4252   if test -z "$LD"; then
   4253   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4254   for ac_dir in $PATH; do
   4255     IFS=$lt_save_ifs
   4256     test -z "$ac_dir" && ac_dir=.
   4257     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4258       lt_cv_path_LD=$ac_dir/$ac_prog
   4259       # Check to see if the program is GNU ld.  I'd rather use --version,
   4260       # but apparently some variants of GNU ld only accept -v.
   4261       # Break only if it was the GNU/non-GNU ld that we prefer.
   4262       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4263       *GNU* | *'with BFD'*)
   4264 	test no != "$with_gnu_ld" && break
   4265 	;;
   4266       *)
   4267 	test yes != "$with_gnu_ld" && break
   4268 	;;
   4269       esac
   4270     fi
   4271   done
   4272   IFS=$lt_save_ifs
   4273 else
   4274   lt_cv_path_LD=$LD # Let the user override the test with a path.
   4275 fi
   4276 fi
   4277 
   4278 LD=$lt_cv_path_LD
   4279 if test -n "$LD"; then
   4280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4281 $as_echo "$LD" >&6; }
   4282 else
   4283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4284 $as_echo "no" >&6; }
   4285 fi
   4286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4288 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4289 if ${lt_cv_prog_gnu_ld+:} false; then :
   4290   $as_echo_n "(cached) " >&6
   4291 else
   4292   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4293 case `$LD -v 2>&1 </dev/null` in
   4294 *GNU* | *'with BFD'*)
   4295   lt_cv_prog_gnu_ld=yes
   4296   ;;
   4297 *)
   4298   lt_cv_prog_gnu_ld=no
   4299   ;;
   4300 esac
   4301 fi
   4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4303 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4304 with_gnu_ld=$lt_cv_prog_gnu_ld
   4305 
   4306 
   4307 
   4308 
   4309 
   4310 
   4311 
   4312 
   4313 
   4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4315 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4316 if ${lt_cv_path_NM+:} false; then :
   4317   $as_echo_n "(cached) " >&6
   4318 else
   4319   if test -n "$NM"; then
   4320   # Let the user override the test.
   4321   lt_cv_path_NM=$NM
   4322 else
   4323   lt_nm_to_check=${ac_tool_prefix}nm
   4324   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4325     lt_nm_to_check="$lt_nm_to_check nm"
   4326   fi
   4327   for lt_tmp_nm in $lt_nm_to_check; do
   4328     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4329     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4330       IFS=$lt_save_ifs
   4331       test -z "$ac_dir" && ac_dir=.
   4332       tmp_nm=$ac_dir/$lt_tmp_nm
   4333       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   4334 	# Check to see if the nm accepts a BSD-compat flag.
   4335 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   4336 	#   nm: unknown option "B" ignored
   4337 	# Tru64's nm complains that /dev/null is an invalid object file
   4338 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   4339 	case $build_os in
   4340 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   4341 	*) lt_bad_file=/dev/null ;;
   4342 	esac
   4343 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   4344 	*$lt_bad_file* | *'Invalid file or object type'*)
   4345 	  lt_cv_path_NM="$tmp_nm -B"
   4346 	  break 2
   4347 	  ;;
   4348 	*)
   4349 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4350 	  */dev/null*)
   4351 	    lt_cv_path_NM="$tmp_nm -p"
   4352 	    break 2
   4353 	    ;;
   4354 	  *)
   4355 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4356 	    continue # so that we can try to find one that supports BSD flags
   4357 	    ;;
   4358 	  esac
   4359 	  ;;
   4360 	esac
   4361       fi
   4362     done
   4363     IFS=$lt_save_ifs
   4364   done
   4365   : ${lt_cv_path_NM=no}
   4366 fi
   4367 fi
   4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4369 $as_echo "$lt_cv_path_NM" >&6; }
   4370 if test no != "$lt_cv_path_NM"; then
   4371   NM=$lt_cv_path_NM
   4372 else
   4373   # Didn't find any BSD compatible name lister, look for dumpbin.
   4374   if test -n "$DUMPBIN"; then :
   4375     # Let the user override the test.
   4376   else
   4377     if test -n "$ac_tool_prefix"; then
   4378   for ac_prog in dumpbin "link -dump"
   4379   do
   4380     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4383 $as_echo_n "checking for $ac_word... " >&6; }
   4384 if ${ac_cv_prog_DUMPBIN+:} false; then :
   4385   $as_echo_n "(cached) " >&6
   4386 else
   4387   if test -n "$DUMPBIN"; then
   4388   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4389 else
   4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4391 for as_dir in $PATH
   4392 do
   4393   IFS=$as_save_IFS
   4394   test -z "$as_dir" && as_dir=.
   4395     for ac_exec_ext in '' $ac_executable_extensions; do
   4396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4397     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4399     break 2
   4400   fi
   4401 done
   4402   done
   4403 IFS=$as_save_IFS
   4404 
   4405 fi
   4406 fi
   4407 DUMPBIN=$ac_cv_prog_DUMPBIN
   4408 if test -n "$DUMPBIN"; then
   4409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4410 $as_echo "$DUMPBIN" >&6; }
   4411 else
   4412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4413 $as_echo "no" >&6; }
   4414 fi
   4415 
   4416 
   4417     test -n "$DUMPBIN" && break
   4418   done
   4419 fi
   4420 if test -z "$DUMPBIN"; then
   4421   ac_ct_DUMPBIN=$DUMPBIN
   4422   for ac_prog in dumpbin "link -dump"
   4423 do
   4424   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4425 set dummy $ac_prog; ac_word=$2
   4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4427 $as_echo_n "checking for $ac_word... " >&6; }
   4428 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4429   $as_echo_n "(cached) " >&6
   4430 else
   4431   if test -n "$ac_ct_DUMPBIN"; then
   4432   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4433 else
   4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4435 for as_dir in $PATH
   4436 do
   4437   IFS=$as_save_IFS
   4438   test -z "$as_dir" && as_dir=.
   4439     for ac_exec_ext in '' $ac_executable_extensions; do
   4440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4441     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4443     break 2
   4444   fi
   4445 done
   4446   done
   4447 IFS=$as_save_IFS
   4448 
   4449 fi
   4450 fi
   4451 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4452 if test -n "$ac_ct_DUMPBIN"; then
   4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4454 $as_echo "$ac_ct_DUMPBIN" >&6; }
   4455 else
   4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4457 $as_echo "no" >&6; }
   4458 fi
   4459 
   4460 
   4461   test -n "$ac_ct_DUMPBIN" && break
   4462 done
   4463 
   4464   if test "x$ac_ct_DUMPBIN" = x; then
   4465     DUMPBIN=":"
   4466   else
   4467     case $cross_compiling:$ac_tool_warned in
   4468 yes:)
   4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4471 ac_tool_warned=yes ;;
   4472 esac
   4473     DUMPBIN=$ac_ct_DUMPBIN
   4474   fi
   4475 fi
   4476 
   4477     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   4478     *COFF*)
   4479       DUMPBIN="$DUMPBIN -symbols -headers"
   4480       ;;
   4481     *)
   4482       DUMPBIN=:
   4483       ;;
   4484     esac
   4485   fi
   4486 
   4487   if test : != "$DUMPBIN"; then
   4488     NM=$DUMPBIN
   4489   fi
   4490 fi
   4491 test -z "$NM" && NM=nm
   4492 
   4493 
   4494 
   4495 
   4496 
   4497 
   4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4499 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4500 if ${lt_cv_nm_interface+:} false; then :
   4501   $as_echo_n "(cached) " >&6
   4502 else
   4503   lt_cv_nm_interface="BSD nm"
   4504   echo "int some_variable = 0;" > conftest.$ac_ext
   4505   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4506   (eval "$ac_compile" 2>conftest.err)
   4507   cat conftest.err >&5
   4508   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4509   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4510   cat conftest.err >&5
   4511   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4512   cat conftest.out >&5
   4513   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4514     lt_cv_nm_interface="MS dumpbin"
   4515   fi
   4516   rm -f conftest*
   4517 fi
   4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4519 $as_echo "$lt_cv_nm_interface" >&6; }
   4520 
   4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4522 $as_echo_n "checking whether ln -s works... " >&6; }
   4523 LN_S=$as_ln_s
   4524 if test "$LN_S" = "ln -s"; then
   4525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4526 $as_echo "yes" >&6; }
   4527 else
   4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4529 $as_echo "no, using $LN_S" >&6; }
   4530 fi
   4531 
   4532 # find the maximum length of command line arguments
   4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4534 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4535 if ${lt_cv_sys_max_cmd_len+:} false; then :
   4536   $as_echo_n "(cached) " >&6
   4537 else
   4538     i=0
   4539   teststring=ABCD
   4540 
   4541   case $build_os in
   4542   msdosdjgpp*)
   4543     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4544     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4545     # during glob expansion).  Even if it were fixed, the result of this
   4546     # check would be larger than it should be.
   4547     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4548     ;;
   4549 
   4550   gnu*)
   4551     # Under GNU Hurd, this test is not required because there is
   4552     # no limit to the length of command line arguments.
   4553     # Libtool will interpret -1 as no limit whatsoever
   4554     lt_cv_sys_max_cmd_len=-1;
   4555     ;;
   4556 
   4557   cygwin* | mingw* | cegcc*)
   4558     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4559     # about 5 minutes as the teststring grows exponentially.
   4560     # Worse, since 9x/ME are not pre-emptively multitasking,
   4561     # you end up with a "frozen" computer, even though with patience
   4562     # the test eventually succeeds (with a max line length of 256k).
   4563     # Instead, let's just punt: use the minimum linelength reported by
   4564     # all of the supported platforms: 8192 (on NT/2K/XP).
   4565     lt_cv_sys_max_cmd_len=8192;
   4566     ;;
   4567 
   4568   mint*)
   4569     # On MiNT this can take a long time and run out of memory.
   4570     lt_cv_sys_max_cmd_len=8192;
   4571     ;;
   4572 
   4573   amigaos*)
   4574     # On AmigaOS with pdksh, this test takes hours, literally.
   4575     # So we just punt and use a minimum line length of 8192.
   4576     lt_cv_sys_max_cmd_len=8192;
   4577     ;;
   4578 
   4579   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   4580     # This has been around since 386BSD, at least.  Likely further.
   4581     if test -x /sbin/sysctl; then
   4582       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4583     elif test -x /usr/sbin/sysctl; then
   4584       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4585     else
   4586       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4587     fi
   4588     # And add a safety zone
   4589     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4590     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4591     ;;
   4592 
   4593   interix*)
   4594     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4595     lt_cv_sys_max_cmd_len=196608
   4596     ;;
   4597 
   4598   os2*)
   4599     # The test takes a long time on OS/2.
   4600     lt_cv_sys_max_cmd_len=8192
   4601     ;;
   4602 
   4603   osf*)
   4604     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4605     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4606     # nice to cause kernel panics so lets avoid the loop below.
   4607     # First set a reasonable default.
   4608     lt_cv_sys_max_cmd_len=16384
   4609     #
   4610     if test -x /sbin/sysconfig; then
   4611       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4612         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4613       esac
   4614     fi
   4615     ;;
   4616   sco3.2v5*)
   4617     lt_cv_sys_max_cmd_len=102400
   4618     ;;
   4619   sysv5* | sco5v6* | sysv4.2uw2*)
   4620     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4621     if test -n "$kargmax"; then
   4622       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4623     else
   4624       lt_cv_sys_max_cmd_len=32768
   4625     fi
   4626     ;;
   4627   *)
   4628     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4629     if test -n "$lt_cv_sys_max_cmd_len" && \
   4630        test undefined != "$lt_cv_sys_max_cmd_len"; then
   4631       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4632       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4633     else
   4634       # Make teststring a little bigger before we do anything with it.
   4635       # a 1K string should be a reasonable start.
   4636       for i in 1 2 3 4 5 6 7 8; do
   4637         teststring=$teststring$teststring
   4638       done
   4639       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4640       # If test is not a shell built-in, we'll probably end up computing a
   4641       # maximum length that is only half of the actual maximum length, but
   4642       # we can't tell.
   4643       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   4644 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   4645 	      test 17 != "$i" # 1/2 MB should be enough
   4646       do
   4647         i=`expr $i + 1`
   4648         teststring=$teststring$teststring
   4649       done
   4650       # Only check the string length outside the loop.
   4651       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   4652       teststring=
   4653       # Add a significant safety factor because C++ compilers can tack on
   4654       # massive amounts of additional arguments before passing them to the
   4655       # linker.  It appears as though 1/2 is a usable value.
   4656       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4657     fi
   4658     ;;
   4659   esac
   4660 
   4661 fi
   4662 
   4663 if test -n "$lt_cv_sys_max_cmd_len"; then
   4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   4665 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   4666 else
   4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   4668 $as_echo "none" >&6; }
   4669 fi
   4670 max_cmd_len=$lt_cv_sys_max_cmd_len
   4671 
   4672 
   4673 
   4674 
   4675 
   4676 
   4677 : ${CP="cp -f"}
   4678 : ${MV="mv -f"}
   4679 : ${RM="rm -f"}
   4680 
   4681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   4682   lt_unset=unset
   4683 else
   4684   lt_unset=false
   4685 fi
   4686 
   4687 
   4688 
   4689 
   4690 
   4691 # test EBCDIC or ASCII
   4692 case `echo X|tr X '\101'` in
   4693  A) # ASCII based system
   4694     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   4695   lt_SP2NL='tr \040 \012'
   4696   lt_NL2SP='tr \015\012 \040\040'
   4697   ;;
   4698  *) # EBCDIC based system
   4699   lt_SP2NL='tr \100 \n'
   4700   lt_NL2SP='tr \r\n \100\100'
   4701   ;;
   4702 esac
   4703 
   4704 
   4705 
   4706 
   4707 
   4708 
   4709 
   4710 
   4711 
   4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   4713 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   4714 if ${lt_cv_to_host_file_cmd+:} false; then :
   4715   $as_echo_n "(cached) " >&6
   4716 else
   4717   case $host in
   4718   *-*-mingw* )
   4719     case $build in
   4720       *-*-mingw* ) # actually msys
   4721         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   4722         ;;
   4723       *-*-cygwin* )
   4724         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   4725         ;;
   4726       * ) # otherwise, assume *nix
   4727         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   4728         ;;
   4729     esac
   4730     ;;
   4731   *-*-cygwin* )
   4732     case $build in
   4733       *-*-mingw* ) # actually msys
   4734         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   4735         ;;
   4736       *-*-cygwin* )
   4737         lt_cv_to_host_file_cmd=func_convert_file_noop
   4738         ;;
   4739       * ) # otherwise, assume *nix
   4740         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   4741         ;;
   4742     esac
   4743     ;;
   4744   * ) # unhandled hosts (and "normal" native builds)
   4745     lt_cv_to_host_file_cmd=func_convert_file_noop
   4746     ;;
   4747 esac
   4748 
   4749 fi
   4750 
   4751 to_host_file_cmd=$lt_cv_to_host_file_cmd
   4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   4753 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   4754 
   4755 
   4756 
   4757 
   4758 
   4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   4760 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   4761 if ${lt_cv_to_tool_file_cmd+:} false; then :
   4762   $as_echo_n "(cached) " >&6
   4763 else
   4764   #assume ordinary cross tools, or native build.
   4765 lt_cv_to_tool_file_cmd=func_convert_file_noop
   4766 case $host in
   4767   *-*-mingw* )
   4768     case $build in
   4769       *-*-mingw* ) # actually msys
   4770         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   4771         ;;
   4772     esac
   4773     ;;
   4774 esac
   4775 
   4776 fi
   4777 
   4778 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   4780 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   4781 
   4782 
   4783 
   4784 
   4785 
   4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   4787 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   4788 if ${lt_cv_ld_reload_flag+:} false; then :
   4789   $as_echo_n "(cached) " >&6
   4790 else
   4791   lt_cv_ld_reload_flag='-r'
   4792 fi
   4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   4794 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   4795 reload_flag=$lt_cv_ld_reload_flag
   4796 case $reload_flag in
   4797 "" | " "*) ;;
   4798 *) reload_flag=" $reload_flag" ;;
   4799 esac
   4800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4801 case $host_os in
   4802   cygwin* | mingw* | pw32* | cegcc*)
   4803     if test yes != "$GCC"; then
   4804       reload_cmds=false
   4805     fi
   4806     ;;
   4807   darwin*)
   4808     if test yes = "$GCC"; then
   4809       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   4810     else
   4811       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4812     fi
   4813     ;;
   4814 esac
   4815 
   4816 
   4817 
   4818 
   4819 
   4820 
   4821 
   4822 
   4823 
   4824 if test -n "$ac_tool_prefix"; then
   4825   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   4826 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4828 $as_echo_n "checking for $ac_word... " >&6; }
   4829 if ${ac_cv_prog_OBJDUMP+:} false; then :
   4830   $as_echo_n "(cached) " >&6
   4831 else
   4832   if test -n "$OBJDUMP"; then
   4833   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   4834 else
   4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4836 for as_dir in $PATH
   4837 do
   4838   IFS=$as_save_IFS
   4839   test -z "$as_dir" && as_dir=.
   4840     for ac_exec_ext in '' $ac_executable_extensions; do
   4841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4842     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   4843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4844     break 2
   4845   fi
   4846 done
   4847   done
   4848 IFS=$as_save_IFS
   4849 
   4850 fi
   4851 fi
   4852 OBJDUMP=$ac_cv_prog_OBJDUMP
   4853 if test -n "$OBJDUMP"; then
   4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   4855 $as_echo "$OBJDUMP" >&6; }
   4856 else
   4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4858 $as_echo "no" >&6; }
   4859 fi
   4860 
   4861 
   4862 fi
   4863 if test -z "$ac_cv_prog_OBJDUMP"; then
   4864   ac_ct_OBJDUMP=$OBJDUMP
   4865   # Extract the first word of "objdump", so it can be a program name with args.
   4866 set dummy objdump; ac_word=$2
   4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4868 $as_echo_n "checking for $ac_word... " >&6; }
   4869 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   4870   $as_echo_n "(cached) " >&6
   4871 else
   4872   if test -n "$ac_ct_OBJDUMP"; then
   4873   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   4874 else
   4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4876 for as_dir in $PATH
   4877 do
   4878   IFS=$as_save_IFS
   4879   test -z "$as_dir" && as_dir=.
   4880     for ac_exec_ext in '' $ac_executable_extensions; do
   4881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4882     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   4883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4884     break 2
   4885   fi
   4886 done
   4887   done
   4888 IFS=$as_save_IFS
   4889 
   4890 fi
   4891 fi
   4892 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   4893 if test -n "$ac_ct_OBJDUMP"; then
   4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   4895 $as_echo "$ac_ct_OBJDUMP" >&6; }
   4896 else
   4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4898 $as_echo "no" >&6; }
   4899 fi
   4900 
   4901   if test "x$ac_ct_OBJDUMP" = x; then
   4902     OBJDUMP="false"
   4903   else
   4904     case $cross_compiling:$ac_tool_warned in
   4905 yes:)
   4906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4908 ac_tool_warned=yes ;;
   4909 esac
   4910     OBJDUMP=$ac_ct_OBJDUMP
   4911   fi
   4912 else
   4913   OBJDUMP="$ac_cv_prog_OBJDUMP"
   4914 fi
   4915 
   4916 test -z "$OBJDUMP" && OBJDUMP=objdump
   4917 
   4918 
   4919 
   4920 
   4921 
   4922 
   4923 
   4924 
   4925 
   4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   4927 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   4928 if ${lt_cv_deplibs_check_method+:} false; then :
   4929   $as_echo_n "(cached) " >&6
   4930 else
   4931   lt_cv_file_magic_cmd='$MAGIC_CMD'
   4932 lt_cv_file_magic_test_file=
   4933 lt_cv_deplibs_check_method='unknown'
   4934 # Need to set the preceding variable on all platforms that support
   4935 # interlibrary dependencies.
   4936 # 'none' -- dependencies not supported.
   4937 # 'unknown' -- same as none, but documents that we really don't know.
   4938 # 'pass_all' -- all dependencies passed with no checks.
   4939 # 'test_compile' -- check by making test program.
   4940 # 'file_magic [[regex]]' -- check by looking for files in library path
   4941 # that responds to the $file_magic_cmd with a given extended regex.
   4942 # If you have 'file' or equivalent on your system and you're not sure
   4943 # whether 'pass_all' will *always* work, you probably want this one.
   4944 
   4945 case $host_os in
   4946 aix[4-9]*)
   4947   lt_cv_deplibs_check_method=pass_all
   4948   ;;
   4949 
   4950 beos*)
   4951   lt_cv_deplibs_check_method=pass_all
   4952   ;;
   4953 
   4954 bsdi[45]*)
   4955   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4956   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4957   lt_cv_file_magic_test_file=/shlib/libc.so
   4958   ;;
   4959 
   4960 cygwin*)
   4961   # func_win32_libid is a shell function defined in ltmain.sh
   4962   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4963   lt_cv_file_magic_cmd='func_win32_libid'
   4964   ;;
   4965 
   4966 mingw* | pw32*)
   4967   # Base MSYS/MinGW do not provide the 'file' command needed by
   4968   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   4969   # unless we find 'file', for example because we are cross-compiling.
   4970   if ( file / ) >/dev/null 2>&1; then
   4971     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4972     lt_cv_file_magic_cmd='func_win32_libid'
   4973   else
   4974     # Keep this pattern in sync with the one in func_win32_libid.
   4975     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   4976     lt_cv_file_magic_cmd='$OBJDUMP -f'
   4977   fi
   4978   ;;
   4979 
   4980 cegcc*)
   4981   # use the weaker test based on 'objdump'. See mingw*.
   4982   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   4983   lt_cv_file_magic_cmd='$OBJDUMP -f'
   4984   ;;
   4985 
   4986 darwin* | rhapsody*)
   4987   lt_cv_deplibs_check_method=pass_all
   4988   ;;
   4989 
   4990 freebsd* | dragonfly*)
   4991   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4992     case $host_cpu in
   4993     i*86 )
   4994       # Not sure whether the presence of OpenBSD here was a mistake.
   4995       # Let's accept both of them until this is cleared up.
   4996       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   4997       lt_cv_file_magic_cmd=/usr/bin/file
   4998       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4999       ;;
   5000     esac
   5001   else
   5002     lt_cv_deplibs_check_method=pass_all
   5003   fi
   5004   ;;
   5005 
   5006 haiku*)
   5007   lt_cv_deplibs_check_method=pass_all
   5008   ;;
   5009 
   5010 hpux10.20* | hpux11*)
   5011   lt_cv_file_magic_cmd=/usr/bin/file
   5012   case $host_cpu in
   5013   ia64*)
   5014     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   5015     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   5016     ;;
   5017   hppa*64*)
   5018     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]'
   5019     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   5020     ;;
   5021   *)
   5022     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   5023     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   5024     ;;
   5025   esac
   5026   ;;
   5027 
   5028 interix[3-9]*)
   5029   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   5030   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   5031   ;;
   5032 
   5033 irix5* | irix6* | nonstopux*)
   5034   case $LD in
   5035   *-32|*"-32 ") libmagic=32-bit;;
   5036   *-n32|*"-n32 ") libmagic=N32;;
   5037   *-64|*"-64 ") libmagic=64-bit;;
   5038   *) libmagic=never-match;;
   5039   esac
   5040   lt_cv_deplibs_check_method=pass_all
   5041   ;;
   5042 
   5043 # This must be glibc/ELF.
   5044 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   5045   lt_cv_deplibs_check_method=pass_all
   5046   ;;
   5047 
   5048 netbsd*)
   5049   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5050     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5051   else
   5052     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   5053   fi
   5054   ;;
   5055 
   5056 newos6*)
   5057   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   5058   lt_cv_file_magic_cmd=/usr/bin/file
   5059   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   5060   ;;
   5061 
   5062 *nto* | *qnx*)
   5063   lt_cv_deplibs_check_method=pass_all
   5064   ;;
   5065 
   5066 openbsd* | bitrig*)
   5067   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   5068     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   5069   else
   5070     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5071   fi
   5072   ;;
   5073 
   5074 osf3* | osf4* | osf5*)
   5075   lt_cv_deplibs_check_method=pass_all
   5076   ;;
   5077 
   5078 rdos*)
   5079   lt_cv_deplibs_check_method=pass_all
   5080   ;;
   5081 
   5082 solaris*)
   5083   lt_cv_deplibs_check_method=pass_all
   5084   ;;
   5085 
   5086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   5087   lt_cv_deplibs_check_method=pass_all
   5088   ;;
   5089 
   5090 sysv4 | sysv4.3*)
   5091   case $host_vendor in
   5092   motorola)
   5093     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]'
   5094     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   5095     ;;
   5096   ncr)
   5097     lt_cv_deplibs_check_method=pass_all
   5098     ;;
   5099   sequent)
   5100     lt_cv_file_magic_cmd='/bin/file'
   5101     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   5102     ;;
   5103   sni)
   5104     lt_cv_file_magic_cmd='/bin/file'
   5105     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   5106     lt_cv_file_magic_test_file=/lib/libc.so
   5107     ;;
   5108   siemens)
   5109     lt_cv_deplibs_check_method=pass_all
   5110     ;;
   5111   pc)
   5112     lt_cv_deplibs_check_method=pass_all
   5113     ;;
   5114   esac
   5115   ;;
   5116 
   5117 tpf*)
   5118   lt_cv_deplibs_check_method=pass_all
   5119   ;;
   5120 os2*)
   5121   lt_cv_deplibs_check_method=pass_all
   5122   ;;
   5123 esac
   5124 
   5125 fi
   5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   5127 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   5128 
   5129 file_magic_glob=
   5130 want_nocaseglob=no
   5131 if test "$build" = "$host"; then
   5132   case $host_os in
   5133   mingw* | pw32*)
   5134     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   5135       want_nocaseglob=yes
   5136     else
   5137       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   5138     fi
   5139     ;;
   5140   esac
   5141 fi
   5142 
   5143 file_magic_cmd=$lt_cv_file_magic_cmd
   5144 deplibs_check_method=$lt_cv_deplibs_check_method
   5145 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   5146 
   5147 
   5148 
   5149 
   5150 
   5151 
   5152 
   5153 
   5154 
   5155 
   5156 
   5157 
   5158 
   5159 
   5160 
   5161 
   5162 
   5163 
   5164 
   5165 
   5166 
   5167 
   5168 if test -n "$ac_tool_prefix"; then
   5169   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   5170 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5172 $as_echo_n "checking for $ac_word... " >&6; }
   5173 if ${ac_cv_prog_DLLTOOL+:} false; then :
   5174   $as_echo_n "(cached) " >&6
   5175 else
   5176   if test -n "$DLLTOOL"; then
   5177   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   5178 else
   5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5180 for as_dir in $PATH
   5181 do
   5182   IFS=$as_save_IFS
   5183   test -z "$as_dir" && as_dir=.
   5184     for ac_exec_ext in '' $ac_executable_extensions; do
   5185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5186     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   5187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5188     break 2
   5189   fi
   5190 done
   5191   done
   5192 IFS=$as_save_IFS
   5193 
   5194 fi
   5195 fi
   5196 DLLTOOL=$ac_cv_prog_DLLTOOL
   5197 if test -n "$DLLTOOL"; then
   5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   5199 $as_echo "$DLLTOOL" >&6; }
   5200 else
   5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5202 $as_echo "no" >&6; }
   5203 fi
   5204 
   5205 
   5206 fi
   5207 if test -z "$ac_cv_prog_DLLTOOL"; then
   5208   ac_ct_DLLTOOL=$DLLTOOL
   5209   # Extract the first word of "dlltool", so it can be a program name with args.
   5210 set dummy dlltool; ac_word=$2
   5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5212 $as_echo_n "checking for $ac_word... " >&6; }
   5213 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   5214   $as_echo_n "(cached) " >&6
   5215 else
   5216   if test -n "$ac_ct_DLLTOOL"; then
   5217   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   5218 else
   5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5220 for as_dir in $PATH
   5221 do
   5222   IFS=$as_save_IFS
   5223   test -z "$as_dir" && as_dir=.
   5224     for ac_exec_ext in '' $ac_executable_extensions; do
   5225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5226     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   5227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5228     break 2
   5229   fi
   5230 done
   5231   done
   5232 IFS=$as_save_IFS
   5233 
   5234 fi
   5235 fi
   5236 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5237 if test -n "$ac_ct_DLLTOOL"; then
   5238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5239 $as_echo "$ac_ct_DLLTOOL" >&6; }
   5240 else
   5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5242 $as_echo "no" >&6; }
   5243 fi
   5244 
   5245   if test "x$ac_ct_DLLTOOL" = x; then
   5246     DLLTOOL="false"
   5247   else
   5248     case $cross_compiling:$ac_tool_warned in
   5249 yes:)
   5250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5252 ac_tool_warned=yes ;;
   5253 esac
   5254     DLLTOOL=$ac_ct_DLLTOOL
   5255   fi
   5256 else
   5257   DLLTOOL="$ac_cv_prog_DLLTOOL"
   5258 fi
   5259 
   5260 test -z "$DLLTOOL" && DLLTOOL=dlltool
   5261 
   5262 
   5263 
   5264 
   5265 
   5266 
   5267 
   5268 
   5269 
   5270 
   5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5272 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5273 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5274   $as_echo_n "(cached) " >&6
   5275 else
   5276   lt_cv_sharedlib_from_linklib_cmd='unknown'
   5277 
   5278 case $host_os in
   5279 cygwin* | mingw* | pw32* | cegcc*)
   5280   # two different shell functions defined in ltmain.sh;
   5281   # decide which one to use based on capabilities of $DLLTOOL
   5282   case `$DLLTOOL --help 2>&1` in
   5283   *--identify-strict*)
   5284     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5285     ;;
   5286   *)
   5287     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5288     ;;
   5289   esac
   5290   ;;
   5291 *)
   5292   # fallback: assume linklib IS sharedlib
   5293   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   5294   ;;
   5295 esac
   5296 
   5297 fi
   5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5299 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5300 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5301 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5302 
   5303 
   5304 
   5305 
   5306 
   5307 
   5308 
   5309 if test -n "$ac_tool_prefix"; then
   5310   for ac_prog in ar
   5311   do
   5312     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5315 $as_echo_n "checking for $ac_word... " >&6; }
   5316 if ${ac_cv_prog_AR+:} false; then :
   5317   $as_echo_n "(cached) " >&6
   5318 else
   5319   if test -n "$AR"; then
   5320   ac_cv_prog_AR="$AR" # Let the user override the test.
   5321 else
   5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5323 for as_dir in $PATH
   5324 do
   5325   IFS=$as_save_IFS
   5326   test -z "$as_dir" && as_dir=.
   5327     for ac_exec_ext in '' $ac_executable_extensions; do
   5328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5329     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5331     break 2
   5332   fi
   5333 done
   5334   done
   5335 IFS=$as_save_IFS
   5336 
   5337 fi
   5338 fi
   5339 AR=$ac_cv_prog_AR
   5340 if test -n "$AR"; then
   5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5342 $as_echo "$AR" >&6; }
   5343 else
   5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5345 $as_echo "no" >&6; }
   5346 fi
   5347 
   5348 
   5349     test -n "$AR" && break
   5350   done
   5351 fi
   5352 if test -z "$AR"; then
   5353   ac_ct_AR=$AR
   5354   for ac_prog in ar
   5355 do
   5356   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5357 set dummy $ac_prog; ac_word=$2
   5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5359 $as_echo_n "checking for $ac_word... " >&6; }
   5360 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5361   $as_echo_n "(cached) " >&6
   5362 else
   5363   if test -n "$ac_ct_AR"; then
   5364   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5365 else
   5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5367 for as_dir in $PATH
   5368 do
   5369   IFS=$as_save_IFS
   5370   test -z "$as_dir" && as_dir=.
   5371     for ac_exec_ext in '' $ac_executable_extensions; do
   5372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5373     ac_cv_prog_ac_ct_AR="$ac_prog"
   5374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5375     break 2
   5376   fi
   5377 done
   5378   done
   5379 IFS=$as_save_IFS
   5380 
   5381 fi
   5382 fi
   5383 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5384 if test -n "$ac_ct_AR"; then
   5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5386 $as_echo "$ac_ct_AR" >&6; }
   5387 else
   5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5389 $as_echo "no" >&6; }
   5390 fi
   5391 
   5392 
   5393   test -n "$ac_ct_AR" && break
   5394 done
   5395 
   5396   if test "x$ac_ct_AR" = x; then
   5397     AR="false"
   5398   else
   5399     case $cross_compiling:$ac_tool_warned in
   5400 yes:)
   5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5403 ac_tool_warned=yes ;;
   5404 esac
   5405     AR=$ac_ct_AR
   5406   fi
   5407 fi
   5408 
   5409 : ${AR=ar}
   5410 : ${AR_FLAGS=cru}
   5411 
   5412 
   5413 
   5414 
   5415 
   5416 
   5417 
   5418 
   5419 
   5420 
   5421 
   5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5423 $as_echo_n "checking for archiver @FILE support... " >&6; }
   5424 if ${lt_cv_ar_at_file+:} false; then :
   5425   $as_echo_n "(cached) " >&6
   5426 else
   5427   lt_cv_ar_at_file=no
   5428    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5429 /* end confdefs.h.  */
   5430 
   5431 int
   5432 main ()
   5433 {
   5434 
   5435   ;
   5436   return 0;
   5437 }
   5438 _ACEOF
   5439 if ac_fn_c_try_compile "$LINENO"; then :
   5440   echo conftest.$ac_objext > conftest.lst
   5441       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5442       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5443   (eval $lt_ar_try) 2>&5
   5444   ac_status=$?
   5445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5446   test $ac_status = 0; }
   5447       if test 0 -eq "$ac_status"; then
   5448 	# Ensure the archiver fails upon bogus file names.
   5449 	rm -f conftest.$ac_objext libconftest.a
   5450 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5451   (eval $lt_ar_try) 2>&5
   5452   ac_status=$?
   5453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5454   test $ac_status = 0; }
   5455 	if test 0 -ne "$ac_status"; then
   5456           lt_cv_ar_at_file=@
   5457         fi
   5458       fi
   5459       rm -f conftest.* libconftest.a
   5460 
   5461 fi
   5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5463 
   5464 fi
   5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5466 $as_echo "$lt_cv_ar_at_file" >&6; }
   5467 
   5468 if test no = "$lt_cv_ar_at_file"; then
   5469   archiver_list_spec=
   5470 else
   5471   archiver_list_spec=$lt_cv_ar_at_file
   5472 fi
   5473 
   5474 
   5475 
   5476 
   5477 
   5478 
   5479 
   5480 if test -n "$ac_tool_prefix"; then
   5481   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5482 set dummy ${ac_tool_prefix}strip; ac_word=$2
   5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5484 $as_echo_n "checking for $ac_word... " >&6; }
   5485 if ${ac_cv_prog_STRIP+:} false; then :
   5486   $as_echo_n "(cached) " >&6
   5487 else
   5488   if test -n "$STRIP"; then
   5489   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5490 else
   5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5492 for as_dir in $PATH
   5493 do
   5494   IFS=$as_save_IFS
   5495   test -z "$as_dir" && as_dir=.
   5496     for ac_exec_ext in '' $ac_executable_extensions; do
   5497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5498     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5500     break 2
   5501   fi
   5502 done
   5503   done
   5504 IFS=$as_save_IFS
   5505 
   5506 fi
   5507 fi
   5508 STRIP=$ac_cv_prog_STRIP
   5509 if test -n "$STRIP"; then
   5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5511 $as_echo "$STRIP" >&6; }
   5512 else
   5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5514 $as_echo "no" >&6; }
   5515 fi
   5516 
   5517 
   5518 fi
   5519 if test -z "$ac_cv_prog_STRIP"; then
   5520   ac_ct_STRIP=$STRIP
   5521   # Extract the first word of "strip", so it can be a program name with args.
   5522 set dummy strip; ac_word=$2
   5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5524 $as_echo_n "checking for $ac_word... " >&6; }
   5525 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5526   $as_echo_n "(cached) " >&6
   5527 else
   5528   if test -n "$ac_ct_STRIP"; then
   5529   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5530 else
   5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5532 for as_dir in $PATH
   5533 do
   5534   IFS=$as_save_IFS
   5535   test -z "$as_dir" && as_dir=.
   5536     for ac_exec_ext in '' $ac_executable_extensions; do
   5537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5538     ac_cv_prog_ac_ct_STRIP="strip"
   5539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5540     break 2
   5541   fi
   5542 done
   5543   done
   5544 IFS=$as_save_IFS
   5545 
   5546 fi
   5547 fi
   5548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5549 if test -n "$ac_ct_STRIP"; then
   5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5551 $as_echo "$ac_ct_STRIP" >&6; }
   5552 else
   5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5554 $as_echo "no" >&6; }
   5555 fi
   5556 
   5557   if test "x$ac_ct_STRIP" = x; then
   5558     STRIP=":"
   5559   else
   5560     case $cross_compiling:$ac_tool_warned in
   5561 yes:)
   5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5564 ac_tool_warned=yes ;;
   5565 esac
   5566     STRIP=$ac_ct_STRIP
   5567   fi
   5568 else
   5569   STRIP="$ac_cv_prog_STRIP"
   5570 fi
   5571 
   5572 test -z "$STRIP" && STRIP=:
   5573 
   5574 
   5575 
   5576 
   5577 
   5578 
   5579 if test -n "$ac_tool_prefix"; then
   5580   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5583 $as_echo_n "checking for $ac_word... " >&6; }
   5584 if ${ac_cv_prog_RANLIB+:} false; then :
   5585   $as_echo_n "(cached) " >&6
   5586 else
   5587   if test -n "$RANLIB"; then
   5588   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5589 else
   5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5591 for as_dir in $PATH
   5592 do
   5593   IFS=$as_save_IFS
   5594   test -z "$as_dir" && as_dir=.
   5595     for ac_exec_ext in '' $ac_executable_extensions; do
   5596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5597     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5599     break 2
   5600   fi
   5601 done
   5602   done
   5603 IFS=$as_save_IFS
   5604 
   5605 fi
   5606 fi
   5607 RANLIB=$ac_cv_prog_RANLIB
   5608 if test -n "$RANLIB"; then
   5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5610 $as_echo "$RANLIB" >&6; }
   5611 else
   5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5613 $as_echo "no" >&6; }
   5614 fi
   5615 
   5616 
   5617 fi
   5618 if test -z "$ac_cv_prog_RANLIB"; then
   5619   ac_ct_RANLIB=$RANLIB
   5620   # Extract the first word of "ranlib", so it can be a program name with args.
   5621 set dummy ranlib; ac_word=$2
   5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5623 $as_echo_n "checking for $ac_word... " >&6; }
   5624 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5625   $as_echo_n "(cached) " >&6
   5626 else
   5627   if test -n "$ac_ct_RANLIB"; then
   5628   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5629 else
   5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5631 for as_dir in $PATH
   5632 do
   5633   IFS=$as_save_IFS
   5634   test -z "$as_dir" && as_dir=.
   5635     for ac_exec_ext in '' $ac_executable_extensions; do
   5636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5637     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5639     break 2
   5640   fi
   5641 done
   5642   done
   5643 IFS=$as_save_IFS
   5644 
   5645 fi
   5646 fi
   5647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5648 if test -n "$ac_ct_RANLIB"; then
   5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5650 $as_echo "$ac_ct_RANLIB" >&6; }
   5651 else
   5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5653 $as_echo "no" >&6; }
   5654 fi
   5655 
   5656   if test "x$ac_ct_RANLIB" = x; then
   5657     RANLIB=":"
   5658   else
   5659     case $cross_compiling:$ac_tool_warned in
   5660 yes:)
   5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5663 ac_tool_warned=yes ;;
   5664 esac
   5665     RANLIB=$ac_ct_RANLIB
   5666   fi
   5667 else
   5668   RANLIB="$ac_cv_prog_RANLIB"
   5669 fi
   5670 
   5671 test -z "$RANLIB" && RANLIB=:
   5672 
   5673 
   5674 
   5675 
   5676 
   5677 
   5678 # Determine commands to create old-style static archives.
   5679 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   5680 old_postinstall_cmds='chmod 644 $oldlib'
   5681 old_postuninstall_cmds=
   5682 
   5683 if test -n "$RANLIB"; then
   5684   case $host_os in
   5685   bitrig* | openbsd*)
   5686     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   5687     ;;
   5688   *)
   5689     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   5690     ;;
   5691   esac
   5692   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   5693 fi
   5694 
   5695 case $host_os in
   5696   darwin*)
   5697     lock_old_archive_extraction=yes ;;
   5698   *)
   5699     lock_old_archive_extraction=no ;;
   5700 esac
   5701 
   5702 
   5703 
   5704 
   5705 
   5706 
   5707 
   5708 
   5709 
   5710 
   5711 
   5712 
   5713 
   5714 
   5715 
   5716 
   5717 
   5718 
   5719 
   5720 
   5721 
   5722 for ac_prog in gawk mawk nawk awk
   5723 do
   5724   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5725 set dummy $ac_prog; ac_word=$2
   5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5727 $as_echo_n "checking for $ac_word... " >&6; }
   5728 if ${ac_cv_prog_AWK+:} false; then :
   5729   $as_echo_n "(cached) " >&6
   5730 else
   5731   if test -n "$AWK"; then
   5732   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   5733 else
   5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5735 for as_dir in $PATH
   5736 do
   5737   IFS=$as_save_IFS
   5738   test -z "$as_dir" && as_dir=.
   5739     for ac_exec_ext in '' $ac_executable_extensions; do
   5740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5741     ac_cv_prog_AWK="$ac_prog"
   5742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5743     break 2
   5744   fi
   5745 done
   5746   done
   5747 IFS=$as_save_IFS
   5748 
   5749 fi
   5750 fi
   5751 AWK=$ac_cv_prog_AWK
   5752 if test -n "$AWK"; then
   5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   5754 $as_echo "$AWK" >&6; }
   5755 else
   5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5757 $as_echo "no" >&6; }
   5758 fi
   5759 
   5760 
   5761   test -n "$AWK" && break
   5762 done
   5763 
   5764 
   5765 
   5766 
   5767 
   5768 
   5769 
   5770 
   5771 
   5772 
   5773 
   5774 
   5775 
   5776 
   5777 
   5778 
   5779 
   5780 
   5781 
   5782 # If no C compiler was specified, use CC.
   5783 LTCC=${LTCC-"$CC"}
   5784 
   5785 # If no C compiler flags were specified, use CFLAGS.
   5786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   5787 
   5788 # Allow CC to be a program name with arguments.
   5789 compiler=$CC
   5790 
   5791 
   5792 # Check for command to grab the raw symbol name followed by C symbol from nm.
   5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   5794 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   5795 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   5796   $as_echo_n "(cached) " >&6
   5797 else
   5798 
   5799 # These are sane defaults that work on at least a few old systems.
   5800 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5801 
   5802 # Character class describing NM global symbol codes.
   5803 symcode='[BCDEGRST]'
   5804 
   5805 # Regexp to match symbols that can be accessed directly from C.
   5806 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5807 
   5808 # Define system-specific variables.
   5809 case $host_os in
   5810 aix*)
   5811   symcode='[BCDT]'
   5812   ;;
   5813 cygwin* | mingw* | pw32* | cegcc*)
   5814   symcode='[ABCDGISTW]'
   5815   ;;
   5816 hpux*)
   5817   if test ia64 = "$host_cpu"; then
   5818     symcode='[ABCDEGRST]'
   5819   fi
   5820   ;;
   5821 irix* | nonstopux*)
   5822   symcode='[BCDEGRST]'
   5823   ;;
   5824 osf*)
   5825   symcode='[BCDEGQRST]'
   5826   ;;
   5827 solaris*)
   5828   symcode='[BDRT]'
   5829   ;;
   5830 sco3.2v5*)
   5831   symcode='[DT]'
   5832   ;;
   5833 sysv4.2uw2*)
   5834   symcode='[DT]'
   5835   ;;
   5836 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   5837   symcode='[ABDT]'
   5838   ;;
   5839 sysv4)
   5840   symcode='[DFNSTU]'
   5841   ;;
   5842 esac
   5843 
   5844 # If we're using GNU nm, then use its standard symbol codes.
   5845 case `$NM -V 2>&1` in
   5846 *GNU* | *'with BFD'*)
   5847   symcode='[ABCDGIRSTW]' ;;
   5848 esac
   5849 
   5850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5851   # Gets list of data symbols to import.
   5852   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   5853   # Adjust the below global symbol transforms to fixup imported variables.
   5854   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   5855   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   5856   lt_c_name_lib_hook="\
   5857   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   5858   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   5859 else
   5860   # Disable hooks by default.
   5861   lt_cv_sys_global_symbol_to_import=
   5862   lt_cdecl_hook=
   5863   lt_c_name_hook=
   5864   lt_c_name_lib_hook=
   5865 fi
   5866 
   5867 # Transform an extracted symbol line into a proper C declaration.
   5868 # Some systems (esp. on ia64) link data and code symbols differently,
   5869 # so use this general approach.
   5870 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   5871 $lt_cdecl_hook\
   5872 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   5873 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   5874 
   5875 # Transform an extracted symbol line into symbol name and symbol address
   5876 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   5877 $lt_c_name_hook\
   5878 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5879 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   5880 
   5881 # Transform an extracted symbol line into symbol name with lib prefix and
   5882 # symbol address.
   5883 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   5884 $lt_c_name_lib_hook\
   5885 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5886 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   5887 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   5888 
   5889 # Handle CRLF in mingw tool chain
   5890 opt_cr=
   5891 case $build_os in
   5892 mingw*)
   5893   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5894   ;;
   5895 esac
   5896 
   5897 # Try without a prefix underscore, then with it.
   5898 for ac_symprfx in "" "_"; do
   5899 
   5900   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   5901   symxfrm="\\1 $ac_symprfx\\2 \\2"
   5902 
   5903   # Write the raw and C identifiers.
   5904   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5905     # Fake it for dumpbin and say T for any non-static function,
   5906     # D for any global variable and I for any imported variable.
   5907     # Also find C++ and __fastcall symbols from MSVC++,
   5908     # which start with @ or ?.
   5909     lt_cv_sys_global_symbol_pipe="$AWK '"\
   5910 "     {last_section=section; section=\$ 3};"\
   5911 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   5912 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   5913 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   5914 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   5915 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   5916 "     \$ 0!~/External *\|/{next};"\
   5917 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   5918 "     {if(hide[section]) next};"\
   5919 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   5920 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   5921 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   5922 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   5923 "     ' prfx=^$ac_symprfx"
   5924   else
   5925     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   5926   fi
   5927   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   5928 
   5929   # Check to see that the pipe works correctly.
   5930   pipe_works=no
   5931 
   5932   rm -f conftest*
   5933   cat > conftest.$ac_ext <<_LT_EOF
   5934 #ifdef __cplusplus
   5935 extern "C" {
   5936 #endif
   5937 char nm_test_var;
   5938 void nm_test_func(void);
   5939 void nm_test_func(void){}
   5940 #ifdef __cplusplus
   5941 }
   5942 #endif
   5943 int main(){nm_test_var='a';nm_test_func();return(0);}
   5944 _LT_EOF
   5945 
   5946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5947   (eval $ac_compile) 2>&5
   5948   ac_status=$?
   5949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5950   test $ac_status = 0; }; then
   5951     # Now try to grab the symbols.
   5952     nlist=conftest.nm
   5953     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   5954   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   5955   ac_status=$?
   5956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5957   test $ac_status = 0; } && test -s "$nlist"; then
   5958       # Try sorting and uniquifying the output.
   5959       if sort "$nlist" | uniq > "$nlist"T; then
   5960 	mv -f "$nlist"T "$nlist"
   5961       else
   5962 	rm -f "$nlist"T
   5963       fi
   5964 
   5965       # Make sure that we snagged all the symbols we need.
   5966       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   5967 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   5968 	  cat <<_LT_EOF > conftest.$ac_ext
   5969 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   5970 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   5971 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   5972    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   5973 # define LT_DLSYM_CONST
   5974 #elif defined __osf__
   5975 /* This system does not cope well with relocations in const data.  */
   5976 # define LT_DLSYM_CONST
   5977 #else
   5978 # define LT_DLSYM_CONST const
   5979 #endif
   5980 
   5981 #ifdef __cplusplus
   5982 extern "C" {
   5983 #endif
   5984 
   5985 _LT_EOF
   5986 	  # Now generate the symbol file.
   5987 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   5988 
   5989 	  cat <<_LT_EOF >> conftest.$ac_ext
   5990 
   5991 /* The mapping between symbol names and symbols.  */
   5992 LT_DLSYM_CONST struct {
   5993   const char *name;
   5994   void       *address;
   5995 }
   5996 lt__PROGRAM__LTX_preloaded_symbols[] =
   5997 {
   5998   { "@PROGRAM@", (void *) 0 },
   5999 _LT_EOF
   6000 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   6001 	  cat <<\_LT_EOF >> conftest.$ac_ext
   6002   {0, (void *) 0}
   6003 };
   6004 
   6005 /* This works around a problem in FreeBSD linker */
   6006 #ifdef FREEBSD_WORKAROUND
   6007 static const void *lt_preloaded_setup() {
   6008   return lt__PROGRAM__LTX_preloaded_symbols;
   6009 }
   6010 #endif
   6011 
   6012 #ifdef __cplusplus
   6013 }
   6014 #endif
   6015 _LT_EOF
   6016 	  # Now try linking the two files.
   6017 	  mv conftest.$ac_objext conftstm.$ac_objext
   6018 	  lt_globsym_save_LIBS=$LIBS
   6019 	  lt_globsym_save_CFLAGS=$CFLAGS
   6020 	  LIBS=conftstm.$ac_objext
   6021 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   6022 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   6023   (eval $ac_link) 2>&5
   6024   ac_status=$?
   6025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6026   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   6027 	    pipe_works=yes
   6028 	  fi
   6029 	  LIBS=$lt_globsym_save_LIBS
   6030 	  CFLAGS=$lt_globsym_save_CFLAGS
   6031 	else
   6032 	  echo "cannot find nm_test_func in $nlist" >&5
   6033 	fi
   6034       else
   6035 	echo "cannot find nm_test_var in $nlist" >&5
   6036       fi
   6037     else
   6038       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   6039     fi
   6040   else
   6041     echo "$progname: failed program was:" >&5
   6042     cat conftest.$ac_ext >&5
   6043   fi
   6044   rm -rf conftest* conftst*
   6045 
   6046   # Do not use the global_symbol_pipe unless it works.
   6047   if test yes = "$pipe_works"; then
   6048     break
   6049   else
   6050     lt_cv_sys_global_symbol_pipe=
   6051   fi
   6052 done
   6053 
   6054 fi
   6055 
   6056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   6057   lt_cv_sys_global_symbol_to_cdecl=
   6058 fi
   6059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6061 $as_echo "failed" >&6; }
   6062 else
   6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   6064 $as_echo "ok" >&6; }
   6065 fi
   6066 
   6067 # Response file support.
   6068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6069   nm_file_list_spec='@'
   6070 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   6071   nm_file_list_spec='@'
   6072 fi
   6073 
   6074 
   6075 
   6076 
   6077 
   6078 
   6079 
   6080 
   6081 
   6082 
   6083 
   6084 
   6085 
   6086 
   6087 
   6088 
   6089 
   6090 
   6091 
   6092 
   6093 
   6094 
   6095 
   6096 
   6097 
   6098 
   6099 
   6100 
   6101 
   6102 
   6103 
   6104 
   6105 
   6106 
   6107 
   6108 
   6109 
   6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   6111 $as_echo_n "checking for sysroot... " >&6; }
   6112 
   6113 # Check whether --with-sysroot was given.
   6114 if test "${with_sysroot+set}" = set; then :
   6115   withval=$with_sysroot;
   6116 else
   6117   with_sysroot=no
   6118 fi
   6119 
   6120 
   6121 lt_sysroot=
   6122 case $with_sysroot in #(
   6123  yes)
   6124    if test yes = "$GCC"; then
   6125      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6126    fi
   6127    ;; #(
   6128  /*)
   6129    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6130    ;; #(
   6131  no|'')
   6132    ;; #(
   6133  *)
   6134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   6135 $as_echo "$with_sysroot" >&6; }
   6136    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   6137    ;;
   6138 esac
   6139 
   6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   6141 $as_echo "${lt_sysroot:-no}" >&6; }
   6142 
   6143 
   6144 
   6145 
   6146 
   6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   6148 $as_echo_n "checking for a working dd... " >&6; }
   6149 if ${ac_cv_path_lt_DD+:} false; then :
   6150   $as_echo_n "(cached) " >&6
   6151 else
   6152   printf 0123456789abcdef0123456789abcdef >conftest.i
   6153 cat conftest.i conftest.i >conftest2.i
   6154 : ${lt_DD:=$DD}
   6155 if test -z "$lt_DD"; then
   6156   ac_path_lt_DD_found=false
   6157   # Loop through the user's path and test for each of PROGNAME-LIST
   6158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6159 for as_dir in $PATH
   6160 do
   6161   IFS=$as_save_IFS
   6162   test -z "$as_dir" && as_dir=.
   6163     for ac_prog in dd; do
   6164     for ac_exec_ext in '' $ac_executable_extensions; do
   6165       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   6166       as_fn_executable_p "$ac_path_lt_DD" || continue
   6167 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6168   cmp -s conftest.i conftest.out \
   6169   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   6170 fi
   6171       $ac_path_lt_DD_found && break 3
   6172     done
   6173   done
   6174   done
   6175 IFS=$as_save_IFS
   6176   if test -z "$ac_cv_path_lt_DD"; then
   6177     :
   6178   fi
   6179 else
   6180   ac_cv_path_lt_DD=$lt_DD
   6181 fi
   6182 
   6183 rm -f conftest.i conftest2.i conftest.out
   6184 fi
   6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   6186 $as_echo "$ac_cv_path_lt_DD" >&6; }
   6187 
   6188 
   6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   6190 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   6191 if ${lt_cv_truncate_bin+:} false; then :
   6192   $as_echo_n "(cached) " >&6
   6193 else
   6194   printf 0123456789abcdef0123456789abcdef >conftest.i
   6195 cat conftest.i conftest.i >conftest2.i
   6196 lt_cv_truncate_bin=
   6197 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6198   cmp -s conftest.i conftest.out \
   6199   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   6200 fi
   6201 rm -f conftest.i conftest2.i conftest.out
   6202 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   6203 fi
   6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   6205 $as_echo "$lt_cv_truncate_bin" >&6; }
   6206 
   6207 
   6208 
   6209 
   6210 
   6211 
   6212 
   6213 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   6214 func_cc_basename ()
   6215 {
   6216     for cc_temp in $*""; do
   6217       case $cc_temp in
   6218         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   6219         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   6220         \-*) ;;
   6221         *) break;;
   6222       esac
   6223     done
   6224     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   6225 }
   6226 
   6227 # Check whether --enable-libtool-lock was given.
   6228 if test "${enable_libtool_lock+set}" = set; then :
   6229   enableval=$enable_libtool_lock;
   6230 fi
   6231 
   6232 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   6233 
   6234 # Some flags need to be propagated to the compiler or linker for good
   6235 # libtool support.
   6236 case $host in
   6237 ia64-*-hpux*)
   6238   # Find out what ABI is being produced by ac_compile, and set mode
   6239   # options accordingly.
   6240   echo 'int i;' > conftest.$ac_ext
   6241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6242   (eval $ac_compile) 2>&5
   6243   ac_status=$?
   6244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6245   test $ac_status = 0; }; then
   6246     case `/usr/bin/file conftest.$ac_objext` in
   6247       *ELF-32*)
   6248 	HPUX_IA64_MODE=32
   6249 	;;
   6250       *ELF-64*)
   6251 	HPUX_IA64_MODE=64
   6252 	;;
   6253     esac
   6254   fi
   6255   rm -rf conftest*
   6256   ;;
   6257 *-*-irix6*)
   6258   # Find out what ABI is being produced by ac_compile, and set linker
   6259   # options accordingly.
   6260   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6261   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6262   (eval $ac_compile) 2>&5
   6263   ac_status=$?
   6264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6265   test $ac_status = 0; }; then
   6266     if test yes = "$lt_cv_prog_gnu_ld"; then
   6267       case `/usr/bin/file conftest.$ac_objext` in
   6268 	*32-bit*)
   6269 	  LD="${LD-ld} -melf32bsmip"
   6270 	  ;;
   6271 	*N32*)
   6272 	  LD="${LD-ld} -melf32bmipn32"
   6273 	  ;;
   6274 	*64-bit*)
   6275 	  LD="${LD-ld} -melf64bmip"
   6276 	;;
   6277       esac
   6278     else
   6279       case `/usr/bin/file conftest.$ac_objext` in
   6280 	*32-bit*)
   6281 	  LD="${LD-ld} -32"
   6282 	  ;;
   6283 	*N32*)
   6284 	  LD="${LD-ld} -n32"
   6285 	  ;;
   6286 	*64-bit*)
   6287 	  LD="${LD-ld} -64"
   6288 	  ;;
   6289       esac
   6290     fi
   6291   fi
   6292   rm -rf conftest*
   6293   ;;
   6294 
   6295 mips64*-*linux*)
   6296   # Find out what ABI is being produced by ac_compile, and set linker
   6297   # options accordingly.
   6298   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6299   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6300   (eval $ac_compile) 2>&5
   6301   ac_status=$?
   6302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6303   test $ac_status = 0; }; then
   6304     emul=elf
   6305     case `/usr/bin/file conftest.$ac_objext` in
   6306       *32-bit*)
   6307 	emul="${emul}32"
   6308 	;;
   6309       *64-bit*)
   6310 	emul="${emul}64"
   6311 	;;
   6312     esac
   6313     case `/usr/bin/file conftest.$ac_objext` in
   6314       *MSB*)
   6315 	emul="${emul}btsmip"
   6316 	;;
   6317       *LSB*)
   6318 	emul="${emul}ltsmip"
   6319 	;;
   6320     esac
   6321     case `/usr/bin/file conftest.$ac_objext` in
   6322       *N32*)
   6323 	emul="${emul}n32"
   6324 	;;
   6325     esac
   6326     LD="${LD-ld} -m $emul"
   6327   fi
   6328   rm -rf conftest*
   6329   ;;
   6330 
   6331 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   6332 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   6333   # Find out what ABI is being produced by ac_compile, and set linker
   6334   # options accordingly.  Note that the listed cases only cover the
   6335   # situations where additional linker options are needed (such as when
   6336   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   6337   # vice versa); the common cases where no linker options are needed do
   6338   # not appear in the list.
   6339   echo 'int i;' > conftest.$ac_ext
   6340   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6341   (eval $ac_compile) 2>&5
   6342   ac_status=$?
   6343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6344   test $ac_status = 0; }; then
   6345     case `/usr/bin/file conftest.o` in
   6346       *32-bit*)
   6347 	case $host in
   6348 	  x86_64-*kfreebsd*-gnu)
   6349 	    LD="${LD-ld} -m elf_i386_fbsd"
   6350 	    ;;
   6351 	  x86_64-*linux*)
   6352 	    case `/usr/bin/file conftest.o` in
   6353 	      *x86-64*)
   6354 		LD="${LD-ld} -m elf32_x86_64"
   6355 		;;
   6356 	      *)
   6357 		LD="${LD-ld} -m elf_i386"
   6358 		;;
   6359 	    esac
   6360 	    ;;
   6361 	  powerpc64le-*linux*)
   6362 	    LD="${LD-ld} -m elf32lppclinux"
   6363 	    ;;
   6364 	  powerpc64-*linux*)
   6365 	    LD="${LD-ld} -m elf32ppclinux"
   6366 	    ;;
   6367 	  s390x-*linux*)
   6368 	    LD="${LD-ld} -m elf_s390"
   6369 	    ;;
   6370 	  sparc64-*linux*)
   6371 	    LD="${LD-ld} -m elf32_sparc"
   6372 	    ;;
   6373 	esac
   6374 	;;
   6375       *64-bit*)
   6376 	case $host in
   6377 	  x86_64-*kfreebsd*-gnu)
   6378 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   6379 	    ;;
   6380 	  x86_64-*linux*)
   6381 	    LD="${LD-ld} -m elf_x86_64"
   6382 	    ;;
   6383 	  powerpcle-*linux*)
   6384 	    LD="${LD-ld} -m elf64lppc"
   6385 	    ;;
   6386 	  powerpc-*linux*)
   6387 	    LD="${LD-ld} -m elf64ppc"
   6388 	    ;;
   6389 	  s390*-*linux*|s390*-*tpf*)
   6390 	    LD="${LD-ld} -m elf64_s390"
   6391 	    ;;
   6392 	  sparc*-*linux*)
   6393 	    LD="${LD-ld} -m elf64_sparc"
   6394 	    ;;
   6395 	esac
   6396 	;;
   6397     esac
   6398   fi
   6399   rm -rf conftest*
   6400   ;;
   6401 
   6402 *-*-sco3.2v5*)
   6403   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   6404   SAVE_CFLAGS=$CFLAGS
   6405   CFLAGS="$CFLAGS -belf"
   6406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   6407 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   6408 if ${lt_cv_cc_needs_belf+:} false; then :
   6409   $as_echo_n "(cached) " >&6
   6410 else
   6411   ac_ext=c
   6412 ac_cpp='$CPP $CPPFLAGS'
   6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6416 
   6417      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6418 /* end confdefs.h.  */
   6419 
   6420 int
   6421 main ()
   6422 {
   6423 
   6424   ;
   6425   return 0;
   6426 }
   6427 _ACEOF
   6428 if ac_fn_c_try_link "$LINENO"; then :
   6429   lt_cv_cc_needs_belf=yes
   6430 else
   6431   lt_cv_cc_needs_belf=no
   6432 fi
   6433 rm -f core conftest.err conftest.$ac_objext \
   6434     conftest$ac_exeext conftest.$ac_ext
   6435      ac_ext=c
   6436 ac_cpp='$CPP $CPPFLAGS'
   6437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6440 
   6441 fi
   6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6443 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   6444   if test yes != "$lt_cv_cc_needs_belf"; then
   6445     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6446     CFLAGS=$SAVE_CFLAGS
   6447   fi
   6448   ;;
   6449 *-*solaris*)
   6450   # Find out what ABI is being produced by ac_compile, and set linker
   6451   # options accordingly.
   6452   echo 'int i;' > conftest.$ac_ext
   6453   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6454   (eval $ac_compile) 2>&5
   6455   ac_status=$?
   6456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6457   test $ac_status = 0; }; then
   6458     case `/usr/bin/file conftest.o` in
   6459     *64-bit*)
   6460       case $lt_cv_prog_gnu_ld in
   6461       yes*)
   6462         case $host in
   6463         i?86-*-solaris*|x86_64-*-solaris*)
   6464           LD="${LD-ld} -m elf_x86_64"
   6465           ;;
   6466         sparc*-*-solaris*)
   6467           LD="${LD-ld} -m elf64_sparc"
   6468           ;;
   6469         esac
   6470         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6471         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6472           LD=${LD-ld}_sol2
   6473         fi
   6474         ;;
   6475       *)
   6476 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6477 	  LD="${LD-ld} -64"
   6478 	fi
   6479 	;;
   6480       esac
   6481       ;;
   6482     esac
   6483   fi
   6484   rm -rf conftest*
   6485   ;;
   6486 esac
   6487 
   6488 need_locks=$enable_libtool_lock
   6489 
   6490 if test -n "$ac_tool_prefix"; then
   6491   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6492 set dummy ${ac_tool_prefix}mt; ac_word=$2
   6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6494 $as_echo_n "checking for $ac_word... " >&6; }
   6495 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6496   $as_echo_n "(cached) " >&6
   6497 else
   6498   if test -n "$MANIFEST_TOOL"; then
   6499   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6500 else
   6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6502 for as_dir in $PATH
   6503 do
   6504   IFS=$as_save_IFS
   6505   test -z "$as_dir" && as_dir=.
   6506     for ac_exec_ext in '' $ac_executable_extensions; do
   6507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6508     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6510     break 2
   6511   fi
   6512 done
   6513   done
   6514 IFS=$as_save_IFS
   6515 
   6516 fi
   6517 fi
   6518 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6519 if test -n "$MANIFEST_TOOL"; then
   6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6521 $as_echo "$MANIFEST_TOOL" >&6; }
   6522 else
   6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6524 $as_echo "no" >&6; }
   6525 fi
   6526 
   6527 
   6528 fi
   6529 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6530   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6531   # Extract the first word of "mt", so it can be a program name with args.
   6532 set dummy mt; ac_word=$2
   6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6534 $as_echo_n "checking for $ac_word... " >&6; }
   6535 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6536   $as_echo_n "(cached) " >&6
   6537 else
   6538   if test -n "$ac_ct_MANIFEST_TOOL"; then
   6539   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6540 else
   6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6542 for as_dir in $PATH
   6543 do
   6544   IFS=$as_save_IFS
   6545   test -z "$as_dir" && as_dir=.
   6546     for ac_exec_ext in '' $ac_executable_extensions; do
   6547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6548     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6550     break 2
   6551   fi
   6552 done
   6553   done
   6554 IFS=$as_save_IFS
   6555 
   6556 fi
   6557 fi
   6558 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6559 if test -n "$ac_ct_MANIFEST_TOOL"; then
   6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6561 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6562 else
   6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6564 $as_echo "no" >&6; }
   6565 fi
   6566 
   6567   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6568     MANIFEST_TOOL=":"
   6569   else
   6570     case $cross_compiling:$ac_tool_warned in
   6571 yes:)
   6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6574 ac_tool_warned=yes ;;
   6575 esac
   6576     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6577   fi
   6578 else
   6579   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6580 fi
   6581 
   6582 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6584 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6585 if ${lt_cv_path_mainfest_tool+:} false; then :
   6586   $as_echo_n "(cached) " >&6
   6587 else
   6588   lt_cv_path_mainfest_tool=no
   6589   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6590   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6591   cat conftest.err >&5
   6592   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   6593     lt_cv_path_mainfest_tool=yes
   6594   fi
   6595   rm -f conftest*
   6596 fi
   6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   6598 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   6599 if test yes != "$lt_cv_path_mainfest_tool"; then
   6600   MANIFEST_TOOL=:
   6601 fi
   6602 
   6603 
   6604 
   6605 
   6606 
   6607 
   6608   case $host_os in
   6609     rhapsody* | darwin*)
   6610     if test -n "$ac_tool_prefix"; then
   6611   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   6612 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6614 $as_echo_n "checking for $ac_word... " >&6; }
   6615 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   6616   $as_echo_n "(cached) " >&6
   6617 else
   6618   if test -n "$DSYMUTIL"; then
   6619   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   6620 else
   6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6622 for as_dir in $PATH
   6623 do
   6624   IFS=$as_save_IFS
   6625   test -z "$as_dir" && as_dir=.
   6626     for ac_exec_ext in '' $ac_executable_extensions; do
   6627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6628     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6630     break 2
   6631   fi
   6632 done
   6633   done
   6634 IFS=$as_save_IFS
   6635 
   6636 fi
   6637 fi
   6638 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   6639 if test -n "$DSYMUTIL"; then
   6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   6641 $as_echo "$DSYMUTIL" >&6; }
   6642 else
   6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6644 $as_echo "no" >&6; }
   6645 fi
   6646 
   6647 
   6648 fi
   6649 if test -z "$ac_cv_prog_DSYMUTIL"; then
   6650   ac_ct_DSYMUTIL=$DSYMUTIL
   6651   # Extract the first word of "dsymutil", so it can be a program name with args.
   6652 set dummy dsymutil; ac_word=$2
   6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6654 $as_echo_n "checking for $ac_word... " >&6; }
   6655 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   6656   $as_echo_n "(cached) " >&6
   6657 else
   6658   if test -n "$ac_ct_DSYMUTIL"; then
   6659   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   6660 else
   6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6662 for as_dir in $PATH
   6663 do
   6664   IFS=$as_save_IFS
   6665   test -z "$as_dir" && as_dir=.
   6666     for ac_exec_ext in '' $ac_executable_extensions; do
   6667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6668     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   6669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6670     break 2
   6671   fi
   6672 done
   6673   done
   6674 IFS=$as_save_IFS
   6675 
   6676 fi
   6677 fi
   6678 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   6679 if test -n "$ac_ct_DSYMUTIL"; then
   6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   6681 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   6682 else
   6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6684 $as_echo "no" >&6; }
   6685 fi
   6686 
   6687   if test "x$ac_ct_DSYMUTIL" = x; then
   6688     DSYMUTIL=":"
   6689   else
   6690     case $cross_compiling:$ac_tool_warned in
   6691 yes:)
   6692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6694 ac_tool_warned=yes ;;
   6695 esac
   6696     DSYMUTIL=$ac_ct_DSYMUTIL
   6697   fi
   6698 else
   6699   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   6700 fi
   6701 
   6702     if test -n "$ac_tool_prefix"; then
   6703   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   6704 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6706 $as_echo_n "checking for $ac_word... " >&6; }
   6707 if ${ac_cv_prog_NMEDIT+:} false; then :
   6708   $as_echo_n "(cached) " >&6
   6709 else
   6710   if test -n "$NMEDIT"; then
   6711   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   6712 else
   6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6714 for as_dir in $PATH
   6715 do
   6716   IFS=$as_save_IFS
   6717   test -z "$as_dir" && as_dir=.
   6718     for ac_exec_ext in '' $ac_executable_extensions; do
   6719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6720     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   6721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6722     break 2
   6723   fi
   6724 done
   6725   done
   6726 IFS=$as_save_IFS
   6727 
   6728 fi
   6729 fi
   6730 NMEDIT=$ac_cv_prog_NMEDIT
   6731 if test -n "$NMEDIT"; then
   6732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   6733 $as_echo "$NMEDIT" >&6; }
   6734 else
   6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6736 $as_echo "no" >&6; }
   6737 fi
   6738 
   6739 
   6740 fi
   6741 if test -z "$ac_cv_prog_NMEDIT"; then
   6742   ac_ct_NMEDIT=$NMEDIT
   6743   # Extract the first word of "nmedit", so it can be a program name with args.
   6744 set dummy nmedit; ac_word=$2
   6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6746 $as_echo_n "checking for $ac_word... " >&6; }
   6747 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   6748   $as_echo_n "(cached) " >&6
   6749 else
   6750   if test -n "$ac_ct_NMEDIT"; then
   6751   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   6752 else
   6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6754 for as_dir in $PATH
   6755 do
   6756   IFS=$as_save_IFS
   6757   test -z "$as_dir" && as_dir=.
   6758     for ac_exec_ext in '' $ac_executable_extensions; do
   6759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6760     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   6761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6762     break 2
   6763   fi
   6764 done
   6765   done
   6766 IFS=$as_save_IFS
   6767 
   6768 fi
   6769 fi
   6770 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   6771 if test -n "$ac_ct_NMEDIT"; then
   6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   6773 $as_echo "$ac_ct_NMEDIT" >&6; }
   6774 else
   6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6776 $as_echo "no" >&6; }
   6777 fi
   6778 
   6779   if test "x$ac_ct_NMEDIT" = x; then
   6780     NMEDIT=":"
   6781   else
   6782     case $cross_compiling:$ac_tool_warned in
   6783 yes:)
   6784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6786 ac_tool_warned=yes ;;
   6787 esac
   6788     NMEDIT=$ac_ct_NMEDIT
   6789   fi
   6790 else
   6791   NMEDIT="$ac_cv_prog_NMEDIT"
   6792 fi
   6793 
   6794     if test -n "$ac_tool_prefix"; then
   6795   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   6796 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6798 $as_echo_n "checking for $ac_word... " >&6; }
   6799 if ${ac_cv_prog_LIPO+:} false; then :
   6800   $as_echo_n "(cached) " >&6
   6801 else
   6802   if test -n "$LIPO"; then
   6803   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   6804 else
   6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6806 for as_dir in $PATH
   6807 do
   6808   IFS=$as_save_IFS
   6809   test -z "$as_dir" && as_dir=.
   6810     for ac_exec_ext in '' $ac_executable_extensions; do
   6811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6812     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   6813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6814     break 2
   6815   fi
   6816 done
   6817   done
   6818 IFS=$as_save_IFS
   6819 
   6820 fi
   6821 fi
   6822 LIPO=$ac_cv_prog_LIPO
   6823 if test -n "$LIPO"; then
   6824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   6825 $as_echo "$LIPO" >&6; }
   6826 else
   6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6828 $as_echo "no" >&6; }
   6829 fi
   6830 
   6831 
   6832 fi
   6833 if test -z "$ac_cv_prog_LIPO"; then
   6834   ac_ct_LIPO=$LIPO
   6835   # Extract the first word of "lipo", so it can be a program name with args.
   6836 set dummy lipo; ac_word=$2
   6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6838 $as_echo_n "checking for $ac_word... " >&6; }
   6839 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   6840   $as_echo_n "(cached) " >&6
   6841 else
   6842   if test -n "$ac_ct_LIPO"; then
   6843   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   6844 else
   6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6846 for as_dir in $PATH
   6847 do
   6848   IFS=$as_save_IFS
   6849   test -z "$as_dir" && as_dir=.
   6850     for ac_exec_ext in '' $ac_executable_extensions; do
   6851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6852     ac_cv_prog_ac_ct_LIPO="lipo"
   6853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6854     break 2
   6855   fi
   6856 done
   6857   done
   6858 IFS=$as_save_IFS
   6859 
   6860 fi
   6861 fi
   6862 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   6863 if test -n "$ac_ct_LIPO"; then
   6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   6865 $as_echo "$ac_ct_LIPO" >&6; }
   6866 else
   6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6868 $as_echo "no" >&6; }
   6869 fi
   6870 
   6871   if test "x$ac_ct_LIPO" = x; then
   6872     LIPO=":"
   6873   else
   6874     case $cross_compiling:$ac_tool_warned in
   6875 yes:)
   6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6878 ac_tool_warned=yes ;;
   6879 esac
   6880     LIPO=$ac_ct_LIPO
   6881   fi
   6882 else
   6883   LIPO="$ac_cv_prog_LIPO"
   6884 fi
   6885 
   6886     if test -n "$ac_tool_prefix"; then
   6887   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   6888 set dummy ${ac_tool_prefix}otool; ac_word=$2
   6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6890 $as_echo_n "checking for $ac_word... " >&6; }
   6891 if ${ac_cv_prog_OTOOL+:} false; then :
   6892   $as_echo_n "(cached) " >&6
   6893 else
   6894   if test -n "$OTOOL"; then
   6895   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   6896 else
   6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6898 for as_dir in $PATH
   6899 do
   6900   IFS=$as_save_IFS
   6901   test -z "$as_dir" && as_dir=.
   6902     for ac_exec_ext in '' $ac_executable_extensions; do
   6903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6904     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   6905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6906     break 2
   6907   fi
   6908 done
   6909   done
   6910 IFS=$as_save_IFS
   6911 
   6912 fi
   6913 fi
   6914 OTOOL=$ac_cv_prog_OTOOL
   6915 if test -n "$OTOOL"; then
   6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   6917 $as_echo "$OTOOL" >&6; }
   6918 else
   6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6920 $as_echo "no" >&6; }
   6921 fi
   6922 
   6923 
   6924 fi
   6925 if test -z "$ac_cv_prog_OTOOL"; then
   6926   ac_ct_OTOOL=$OTOOL
   6927   # Extract the first word of "otool", so it can be a program name with args.
   6928 set dummy otool; ac_word=$2
   6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6930 $as_echo_n "checking for $ac_word... " >&6; }
   6931 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   6932   $as_echo_n "(cached) " >&6
   6933 else
   6934   if test -n "$ac_ct_OTOOL"; then
   6935   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   6936 else
   6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6938 for as_dir in $PATH
   6939 do
   6940   IFS=$as_save_IFS
   6941   test -z "$as_dir" && as_dir=.
   6942     for ac_exec_ext in '' $ac_executable_extensions; do
   6943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6944     ac_cv_prog_ac_ct_OTOOL="otool"
   6945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6946     break 2
   6947   fi
   6948 done
   6949   done
   6950 IFS=$as_save_IFS
   6951 
   6952 fi
   6953 fi
   6954 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   6955 if test -n "$ac_ct_OTOOL"; then
   6956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   6957 $as_echo "$ac_ct_OTOOL" >&6; }
   6958 else
   6959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6960 $as_echo "no" >&6; }
   6961 fi
   6962 
   6963   if test "x$ac_ct_OTOOL" = x; then
   6964     OTOOL=":"
   6965   else
   6966     case $cross_compiling:$ac_tool_warned in
   6967 yes:)
   6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6970 ac_tool_warned=yes ;;
   6971 esac
   6972     OTOOL=$ac_ct_OTOOL
   6973   fi
   6974 else
   6975   OTOOL="$ac_cv_prog_OTOOL"
   6976 fi
   6977 
   6978     if test -n "$ac_tool_prefix"; then
   6979   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   6980 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6982 $as_echo_n "checking for $ac_word... " >&6; }
   6983 if ${ac_cv_prog_OTOOL64+:} false; then :
   6984   $as_echo_n "(cached) " >&6
   6985 else
   6986   if test -n "$OTOOL64"; then
   6987   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   6988 else
   6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6990 for as_dir in $PATH
   6991 do
   6992   IFS=$as_save_IFS
   6993   test -z "$as_dir" && as_dir=.
   6994     for ac_exec_ext in '' $ac_executable_extensions; do
   6995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6996     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   6997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6998     break 2
   6999   fi
   7000 done
   7001   done
   7002 IFS=$as_save_IFS
   7003 
   7004 fi
   7005 fi
   7006 OTOOL64=$ac_cv_prog_OTOOL64
   7007 if test -n "$OTOOL64"; then
   7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7009 $as_echo "$OTOOL64" >&6; }
   7010 else
   7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7012 $as_echo "no" >&6; }
   7013 fi
   7014 
   7015 
   7016 fi
   7017 if test -z "$ac_cv_prog_OTOOL64"; then
   7018   ac_ct_OTOOL64=$OTOOL64
   7019   # Extract the first word of "otool64", so it can be a program name with args.
   7020 set dummy otool64; ac_word=$2
   7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7022 $as_echo_n "checking for $ac_word... " >&6; }
   7023 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7024   $as_echo_n "(cached) " >&6
   7025 else
   7026   if test -n "$ac_ct_OTOOL64"; then
   7027   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7028 else
   7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7030 for as_dir in $PATH
   7031 do
   7032   IFS=$as_save_IFS
   7033   test -z "$as_dir" && as_dir=.
   7034     for ac_exec_ext in '' $ac_executable_extensions; do
   7035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7036     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7038     break 2
   7039   fi
   7040 done
   7041   done
   7042 IFS=$as_save_IFS
   7043 
   7044 fi
   7045 fi
   7046 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7047 if test -n "$ac_ct_OTOOL64"; then
   7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7049 $as_echo "$ac_ct_OTOOL64" >&6; }
   7050 else
   7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7052 $as_echo "no" >&6; }
   7053 fi
   7054 
   7055   if test "x$ac_ct_OTOOL64" = x; then
   7056     OTOOL64=":"
   7057   else
   7058     case $cross_compiling:$ac_tool_warned in
   7059 yes:)
   7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7062 ac_tool_warned=yes ;;
   7063 esac
   7064     OTOOL64=$ac_ct_OTOOL64
   7065   fi
   7066 else
   7067   OTOOL64="$ac_cv_prog_OTOOL64"
   7068 fi
   7069 
   7070 
   7071 
   7072 
   7073 
   7074 
   7075 
   7076 
   7077 
   7078 
   7079 
   7080 
   7081 
   7082 
   7083 
   7084 
   7085 
   7086 
   7087 
   7088 
   7089 
   7090 
   7091 
   7092 
   7093 
   7094 
   7095 
   7096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7097 $as_echo_n "checking for -single_module linker flag... " >&6; }
   7098 if ${lt_cv_apple_cc_single_mod+:} false; then :
   7099   $as_echo_n "(cached) " >&6
   7100 else
   7101   lt_cv_apple_cc_single_mod=no
   7102       if test -z "$LT_MULTI_MODULE"; then
   7103 	# By default we will add the -single_module flag. You can override
   7104 	# by either setting the environment variable LT_MULTI_MODULE
   7105 	# non-empty at configure time, or by adding -multi_module to the
   7106 	# link flags.
   7107 	rm -rf libconftest.dylib*
   7108 	echo "int foo(void){return 1;}" > conftest.c
   7109 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7110 -dynamiclib -Wl,-single_module conftest.c" >&5
   7111 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7112 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7113         _lt_result=$?
   7114 	# If there is a non-empty error log, and "single_module"
   7115 	# appears in it, assume the flag caused a linker warning
   7116         if test -s conftest.err && $GREP single_module conftest.err; then
   7117 	  cat conftest.err >&5
   7118 	# Otherwise, if the output was created with a 0 exit code from
   7119 	# the compiler, it worked.
   7120 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   7121 	  lt_cv_apple_cc_single_mod=yes
   7122 	else
   7123 	  cat conftest.err >&5
   7124 	fi
   7125 	rm -rf libconftest.dylib*
   7126 	rm -f conftest.*
   7127       fi
   7128 fi
   7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7130 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7131 
   7132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7133 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7134 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7135   $as_echo_n "(cached) " >&6
   7136 else
   7137   lt_cv_ld_exported_symbols_list=no
   7138       save_LDFLAGS=$LDFLAGS
   7139       echo "_main" > conftest.sym
   7140       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7141       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7142 /* end confdefs.h.  */
   7143 
   7144 int
   7145 main ()
   7146 {
   7147 
   7148   ;
   7149   return 0;
   7150 }
   7151 _ACEOF
   7152 if ac_fn_c_try_link "$LINENO"; then :
   7153   lt_cv_ld_exported_symbols_list=yes
   7154 else
   7155   lt_cv_ld_exported_symbols_list=no
   7156 fi
   7157 rm -f core conftest.err conftest.$ac_objext \
   7158     conftest$ac_exeext conftest.$ac_ext
   7159 	LDFLAGS=$save_LDFLAGS
   7160 
   7161 fi
   7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   7163 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   7164 
   7165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   7166 $as_echo_n "checking for -force_load linker flag... " >&6; }
   7167 if ${lt_cv_ld_force_load+:} false; then :
   7168   $as_echo_n "(cached) " >&6
   7169 else
   7170   lt_cv_ld_force_load=no
   7171       cat > conftest.c << _LT_EOF
   7172 int forced_loaded() { return 2;}
   7173 _LT_EOF
   7174       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   7175       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   7176       echo "$AR cru libconftest.a conftest.o" >&5
   7177       $AR cru libconftest.a conftest.o 2>&5
   7178       echo "$RANLIB libconftest.a" >&5
   7179       $RANLIB libconftest.a 2>&5
   7180       cat > conftest.c << _LT_EOF
   7181 int main() { return 0;}
   7182 _LT_EOF
   7183       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   7184       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   7185       _lt_result=$?
   7186       if test -s conftest.err && $GREP force_load conftest.err; then
   7187 	cat conftest.err >&5
   7188       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   7189 	lt_cv_ld_force_load=yes
   7190       else
   7191 	cat conftest.err >&5
   7192       fi
   7193         rm -f conftest.err libconftest.a conftest conftest.c
   7194         rm -rf conftest.dSYM
   7195 
   7196 fi
   7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   7198 $as_echo "$lt_cv_ld_force_load" >&6; }
   7199     case $host_os in
   7200     rhapsody* | darwin1.[012])
   7201       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   7202     darwin1.*)
   7203       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7204     darwin*) # darwin 5.x on
   7205       # if running on 10.5 or later, the deployment target defaults
   7206       # to the OS version, if on x86, and 10.4, the deployment
   7207       # target defaults to 10.4. Don't you love it?
   7208       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   7209 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   7210 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7211 	10.[012][,.]*)
   7212 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7213 	10.*)
   7214 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7215       esac
   7216     ;;
   7217   esac
   7218     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7219       _lt_dar_single_mod='$single_module'
   7220     fi
   7221     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7222       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7223     else
   7224       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7225     fi
   7226     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7227       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7228     else
   7229       _lt_dsymutil=
   7230     fi
   7231     ;;
   7232   esac
   7233 
   7234 # func_munge_path_list VARIABLE PATH
   7235 # -----------------------------------
   7236 # VARIABLE is name of variable containing _space_ separated list of
   7237 # directories to be munged by the contents of PATH, which is string
   7238 # having a format:
   7239 # "DIR[:DIR]:"
   7240 #       string "DIR[ DIR]" will be prepended to VARIABLE
   7241 # ":DIR[:DIR]"
   7242 #       string "DIR[ DIR]" will be appended to VARIABLE
   7243 # "DIRP[:DIRP]::[DIRA:]DIRA"
   7244 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7245 #       "DIRA[ DIRA]" will be appended to VARIABLE
   7246 # "DIR[:DIR]"
   7247 #       VARIABLE will be replaced by "DIR[ DIR]"
   7248 func_munge_path_list ()
   7249 {
   7250     case x$2 in
   7251     x)
   7252         ;;
   7253     *:)
   7254         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7255         ;;
   7256     x:*)
   7257         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7258         ;;
   7259     *::*)
   7260         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7261         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7262         ;;
   7263     *)
   7264         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7265         ;;
   7266     esac
   7267 }
   7268 
   7269 for ac_header in dlfcn.h
   7270 do :
   7271   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7272 "
   7273 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7274   cat >>confdefs.h <<_ACEOF
   7275 #define HAVE_DLFCN_H 1
   7276 _ACEOF
   7277 
   7278 fi
   7279 
   7280 done
   7281 
   7282 
   7283 
   7284 
   7285 
   7286 # Set options
   7287 
   7288 
   7289 
   7290         enable_dlopen=no
   7291 
   7292 
   7293   enable_win32_dll=no
   7294 
   7295 
   7296             # Check whether --enable-shared was given.
   7297 if test "${enable_shared+set}" = set; then :
   7298   enableval=$enable_shared; p=${PACKAGE-default}
   7299     case $enableval in
   7300     yes) enable_shared=yes ;;
   7301     no) enable_shared=no ;;
   7302     *)
   7303       enable_shared=no
   7304       # Look at the argument we got.  We use all the common list separators.
   7305       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7306       for pkg in $enableval; do
   7307 	IFS=$lt_save_ifs
   7308 	if test "X$pkg" = "X$p"; then
   7309 	  enable_shared=yes
   7310 	fi
   7311       done
   7312       IFS=$lt_save_ifs
   7313       ;;
   7314     esac
   7315 else
   7316   enable_shared=yes
   7317 fi
   7318 
   7319 
   7320 
   7321 
   7322 
   7323 
   7324 
   7325 
   7326 
   7327   # Check whether --enable-static was given.
   7328 if test "${enable_static+set}" = set; then :
   7329   enableval=$enable_static; p=${PACKAGE-default}
   7330     case $enableval in
   7331     yes) enable_static=yes ;;
   7332     no) enable_static=no ;;
   7333     *)
   7334      enable_static=no
   7335       # Look at the argument we got.  We use all the common list separators.
   7336       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7337       for pkg in $enableval; do
   7338 	IFS=$lt_save_ifs
   7339 	if test "X$pkg" = "X$p"; then
   7340 	  enable_static=yes
   7341 	fi
   7342       done
   7343       IFS=$lt_save_ifs
   7344       ;;
   7345     esac
   7346 else
   7347   enable_static=yes
   7348 fi
   7349 
   7350 
   7351 
   7352 
   7353 
   7354 
   7355 
   7356 
   7357 
   7358 
   7359 # Check whether --with-pic was given.
   7360 if test "${with_pic+set}" = set; then :
   7361   withval=$with_pic; lt_p=${PACKAGE-default}
   7362     case $withval in
   7363     yes|no) pic_mode=$withval ;;
   7364     *)
   7365       pic_mode=default
   7366       # Look at the argument we got.  We use all the common list separators.
   7367       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7368       for lt_pkg in $withval; do
   7369 	IFS=$lt_save_ifs
   7370 	if test "X$lt_pkg" = "X$lt_p"; then
   7371 	  pic_mode=yes
   7372 	fi
   7373       done
   7374       IFS=$lt_save_ifs
   7375       ;;
   7376     esac
   7377 else
   7378   pic_mode=default
   7379 fi
   7380 
   7381 
   7382 
   7383 
   7384 
   7385 
   7386 
   7387 
   7388   # Check whether --enable-fast-install was given.
   7389 if test "${enable_fast_install+set}" = set; then :
   7390   enableval=$enable_fast_install; p=${PACKAGE-default}
   7391     case $enableval in
   7392     yes) enable_fast_install=yes ;;
   7393     no) enable_fast_install=no ;;
   7394     *)
   7395       enable_fast_install=no
   7396       # Look at the argument we got.  We use all the common list separators.
   7397       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7398       for pkg in $enableval; do
   7399 	IFS=$lt_save_ifs
   7400 	if test "X$pkg" = "X$p"; then
   7401 	  enable_fast_install=yes
   7402 	fi
   7403       done
   7404       IFS=$lt_save_ifs
   7405       ;;
   7406     esac
   7407 else
   7408   enable_fast_install=yes
   7409 fi
   7410 
   7411 
   7412 
   7413 
   7414 
   7415 
   7416 
   7417 
   7418   shared_archive_member_spec=
   7419 case $host,$enable_shared in
   7420 power*-*-aix[5-9]*,yes)
   7421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7422 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7423 
   7424 # Check whether --with-aix-soname was given.
   7425 if test "${with_aix_soname+set}" = set; then :
   7426   withval=$with_aix_soname; case $withval in
   7427     aix|svr4|both)
   7428       ;;
   7429     *)
   7430       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7431       ;;
   7432     esac
   7433     lt_cv_with_aix_soname=$with_aix_soname
   7434 else
   7435   if ${lt_cv_with_aix_soname+:} false; then :
   7436   $as_echo_n "(cached) " >&6
   7437 else
   7438   lt_cv_with_aix_soname=aix
   7439 fi
   7440 
   7441     with_aix_soname=$lt_cv_with_aix_soname
   7442 fi
   7443 
   7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7445 $as_echo "$with_aix_soname" >&6; }
   7446   if test aix != "$with_aix_soname"; then
   7447     # For the AIX way of multilib, we name the shared archive member
   7448     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7449     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7450     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7451     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7452     if test 64 = "${OBJECT_MODE-32}"; then
   7453       shared_archive_member_spec=shr_64
   7454     else
   7455       shared_archive_member_spec=shr
   7456     fi
   7457   fi
   7458   ;;
   7459 *)
   7460   with_aix_soname=aix
   7461   ;;
   7462 esac
   7463 
   7464 
   7465 
   7466 
   7467 
   7468 
   7469 
   7470 
   7471 
   7472 
   7473 # This can be used to rebuild libtool when needed
   7474 LIBTOOL_DEPS=$ltmain
   7475 
   7476 # Always use our own libtool.
   7477 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7478 
   7479 
   7480 
   7481 
   7482 
   7483 
   7484 
   7485 
   7486 
   7487 
   7488 
   7489 
   7490 
   7491 
   7492 
   7493 
   7494 
   7495 
   7496 
   7497 
   7498 
   7499 
   7500 
   7501 
   7502 
   7503 
   7504 
   7505 
   7506 
   7507 
   7508 test -z "$LN_S" && LN_S="ln -s"
   7509 
   7510 
   7511 
   7512 
   7513 
   7514 
   7515 
   7516 
   7517 
   7518 
   7519 
   7520 
   7521 
   7522 
   7523 if test -n "${ZSH_VERSION+set}"; then
   7524    setopt NO_GLOB_SUBST
   7525 fi
   7526 
   7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7528 $as_echo_n "checking for objdir... " >&6; }
   7529 if ${lt_cv_objdir+:} false; then :
   7530   $as_echo_n "(cached) " >&6
   7531 else
   7532   rm -f .libs 2>/dev/null
   7533 mkdir .libs 2>/dev/null
   7534 if test -d .libs; then
   7535   lt_cv_objdir=.libs
   7536 else
   7537   # MS-DOS does not allow filenames that begin with a dot.
   7538   lt_cv_objdir=_libs
   7539 fi
   7540 rmdir .libs 2>/dev/null
   7541 fi
   7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7543 $as_echo "$lt_cv_objdir" >&6; }
   7544 objdir=$lt_cv_objdir
   7545 
   7546 
   7547 
   7548 
   7549 
   7550 cat >>confdefs.h <<_ACEOF
   7551 #define LT_OBJDIR "$lt_cv_objdir/"
   7552 _ACEOF
   7553 
   7554 
   7555 
   7556 
   7557 case $host_os in
   7558 aix3*)
   7559   # AIX sometimes has problems with the GCC collect2 program.  For some
   7560   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7561   # vanish in a puff of smoke.
   7562   if test set != "${COLLECT_NAMES+set}"; then
   7563     COLLECT_NAMES=
   7564     export COLLECT_NAMES
   7565   fi
   7566   ;;
   7567 esac
   7568 
   7569 # Global variables:
   7570 ofile=libtool
   7571 can_build_shared=yes
   7572 
   7573 # All known linkers require a '.a' archive for static linking (except MSVC,
   7574 # which needs '.lib').
   7575 libext=a
   7576 
   7577 with_gnu_ld=$lt_cv_prog_gnu_ld
   7578 
   7579 old_CC=$CC
   7580 old_CFLAGS=$CFLAGS
   7581 
   7582 # Set sane defaults for various variables
   7583 test -z "$CC" && CC=cc
   7584 test -z "$LTCC" && LTCC=$CC
   7585 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7586 test -z "$LD" && LD=ld
   7587 test -z "$ac_objext" && ac_objext=o
   7588 
   7589 func_cc_basename $compiler
   7590 cc_basename=$func_cc_basename_result
   7591 
   7592 
   7593 # Only perform the check for file, if the check method requires it
   7594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7595 case $deplibs_check_method in
   7596 file_magic*)
   7597   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7599 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7600 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7601   $as_echo_n "(cached) " >&6
   7602 else
   7603   case $MAGIC_CMD in
   7604 [\\/*] |  ?:[\\/]*)
   7605   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7606   ;;
   7607 *)
   7608   lt_save_MAGIC_CMD=$MAGIC_CMD
   7609   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7610   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7611   for ac_dir in $ac_dummy; do
   7612     IFS=$lt_save_ifs
   7613     test -z "$ac_dir" && ac_dir=.
   7614     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   7615       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   7616       if test -n "$file_magic_test_file"; then
   7617 	case $deplibs_check_method in
   7618 	"file_magic "*)
   7619 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7620 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7621 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7622 	    $EGREP "$file_magic_regex" > /dev/null; then
   7623 	    :
   7624 	  else
   7625 	    cat <<_LT_EOF 1>&2
   7626 
   7627 *** Warning: the command libtool uses to detect shared libraries,
   7628 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7629 *** The result is that libtool may fail to recognize shared libraries
   7630 *** as such.  This will affect the creation of libtool libraries that
   7631 *** depend on shared libraries, but programs linked with such libtool
   7632 *** libraries will work regardless of this problem.  Nevertheless, you
   7633 *** may want to report the problem to your system manager and/or to
   7634 *** bug-libtool (at] gnu.org
   7635 
   7636 _LT_EOF
   7637 	  fi ;;
   7638 	esac
   7639       fi
   7640       break
   7641     fi
   7642   done
   7643   IFS=$lt_save_ifs
   7644   MAGIC_CMD=$lt_save_MAGIC_CMD
   7645   ;;
   7646 esac
   7647 fi
   7648 
   7649 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7650 if test -n "$MAGIC_CMD"; then
   7651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7652 $as_echo "$MAGIC_CMD" >&6; }
   7653 else
   7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7655 $as_echo "no" >&6; }
   7656 fi
   7657 
   7658 
   7659 
   7660 
   7661 
   7662 if test -z "$lt_cv_path_MAGIC_CMD"; then
   7663   if test -n "$ac_tool_prefix"; then
   7664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   7665 $as_echo_n "checking for file... " >&6; }
   7666 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7667   $as_echo_n "(cached) " >&6
   7668 else
   7669   case $MAGIC_CMD in
   7670 [\\/*] |  ?:[\\/]*)
   7671   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7672   ;;
   7673 *)
   7674   lt_save_MAGIC_CMD=$MAGIC_CMD
   7675   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7676   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7677   for ac_dir in $ac_dummy; do
   7678     IFS=$lt_save_ifs
   7679     test -z "$ac_dir" && ac_dir=.
   7680     if test -f "$ac_dir/file"; then
   7681       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   7682       if test -n "$file_magic_test_file"; then
   7683 	case $deplibs_check_method in
   7684 	"file_magic "*)
   7685 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7686 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7687 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7688 	    $EGREP "$file_magic_regex" > /dev/null; then
   7689 	    :
   7690 	  else
   7691 	    cat <<_LT_EOF 1>&2
   7692 
   7693 *** Warning: the command libtool uses to detect shared libraries,
   7694 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7695 *** The result is that libtool may fail to recognize shared libraries
   7696 *** as such.  This will affect the creation of libtool libraries that
   7697 *** depend on shared libraries, but programs linked with such libtool
   7698 *** libraries will work regardless of this problem.  Nevertheless, you
   7699 *** may want to report the problem to your system manager and/or to
   7700 *** bug-libtool (at] gnu.org
   7701 
   7702 _LT_EOF
   7703 	  fi ;;
   7704 	esac
   7705       fi
   7706       break
   7707     fi
   7708   done
   7709   IFS=$lt_save_ifs
   7710   MAGIC_CMD=$lt_save_MAGIC_CMD
   7711   ;;
   7712 esac
   7713 fi
   7714 
   7715 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7716 if test -n "$MAGIC_CMD"; then
   7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7718 $as_echo "$MAGIC_CMD" >&6; }
   7719 else
   7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7721 $as_echo "no" >&6; }
   7722 fi
   7723 
   7724 
   7725   else
   7726     MAGIC_CMD=:
   7727   fi
   7728 fi
   7729 
   7730   fi
   7731   ;;
   7732 esac
   7733 
   7734 # Use C for the default configuration in the libtool script
   7735 
   7736 lt_save_CC=$CC
   7737 ac_ext=c
   7738 ac_cpp='$CPP $CPPFLAGS'
   7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7742 
   7743 
   7744 # Source file extension for C test sources.
   7745 ac_ext=c
   7746 
   7747 # Object file extension for compiled C test sources.
   7748 objext=o
   7749 objext=$objext
   7750 
   7751 # Code to be used in simple compile tests
   7752 lt_simple_compile_test_code="int some_variable = 0;"
   7753 
   7754 # Code to be used in simple link tests
   7755 lt_simple_link_test_code='int main(){return(0);}'
   7756 
   7757 
   7758 
   7759 
   7760 
   7761 
   7762 
   7763 # If no C compiler was specified, use CC.
   7764 LTCC=${LTCC-"$CC"}
   7765 
   7766 # If no C compiler flags were specified, use CFLAGS.
   7767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   7768 
   7769 # Allow CC to be a program name with arguments.
   7770 compiler=$CC
   7771 
   7772 # Save the default compiler, since it gets overwritten when the other
   7773 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   7774 compiler_DEFAULT=$CC
   7775 
   7776 # save warnings/boilerplate of simple test code
   7777 ac_outfile=conftest.$ac_objext
   7778 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   7779 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7780 _lt_compiler_boilerplate=`cat conftest.err`
   7781 $RM conftest*
   7782 
   7783 ac_outfile=conftest.$ac_objext
   7784 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   7785 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7786 _lt_linker_boilerplate=`cat conftest.err`
   7787 $RM -r conftest*
   7788 
   7789 
   7790 ## CAVEAT EMPTOR:
   7791 ## There is no encapsulation within the following macros, do not change
   7792 ## the running order or otherwise move them around unless you know exactly
   7793 ## what you are doing...
   7794 if test -n "$compiler"; then
   7795 
   7796 lt_prog_compiler_no_builtin_flag=
   7797 
   7798 if test yes = "$GCC"; then
   7799   case $cc_basename in
   7800   nvcc*)
   7801     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   7802   *)
   7803     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   7804   esac
   7805 
   7806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   7807 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   7808 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   7809   $as_echo_n "(cached) " >&6
   7810 else
   7811   lt_cv_prog_compiler_rtti_exceptions=no
   7812    ac_outfile=conftest.$ac_objext
   7813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7814    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   7815    # Insert the option either (1) after the last *FLAGS variable, or
   7816    # (2) before a word containing "conftest.", or (3) at the end.
   7817    # Note that $ac_compile itself does not contain backslashes and begins
   7818    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7819    # The option is referenced via a variable to avoid confusing sed.
   7820    lt_compile=`echo "$ac_compile" | $SED \
   7821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7823    -e 's:$: $lt_compiler_flag:'`
   7824    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   7825    (eval "$lt_compile" 2>conftest.err)
   7826    ac_status=$?
   7827    cat conftest.err >&5
   7828    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7829    if (exit $ac_status) && test -s "$ac_outfile"; then
   7830      # The compiler can only warn and ignore the option if not recognized
   7831      # So say no if there are warnings other than the usual output.
   7832      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   7833      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7834      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   7835        lt_cv_prog_compiler_rtti_exceptions=yes
   7836      fi
   7837    fi
   7838    $RM conftest*
   7839 
   7840 fi
   7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   7842 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   7843 
   7844 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   7845     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   7846 else
   7847     :
   7848 fi
   7849 
   7850 fi
   7851 
   7852 
   7853 
   7854 
   7855 
   7856 
   7857   lt_prog_compiler_wl=
   7858 lt_prog_compiler_pic=
   7859 lt_prog_compiler_static=
   7860 
   7861 
   7862   if test yes = "$GCC"; then
   7863     lt_prog_compiler_wl='-Wl,'
   7864     lt_prog_compiler_static='-static'
   7865 
   7866     case $host_os in
   7867       aix*)
   7868       # All AIX code is PIC.
   7869       if test ia64 = "$host_cpu"; then
   7870 	# AIX 5 now supports IA64 processor
   7871 	lt_prog_compiler_static='-Bstatic'
   7872       fi
   7873       lt_prog_compiler_pic='-fPIC'
   7874       ;;
   7875 
   7876     amigaos*)
   7877       case $host_cpu in
   7878       powerpc)
   7879             # see comment about AmigaOS4 .so support
   7880             lt_prog_compiler_pic='-fPIC'
   7881         ;;
   7882       m68k)
   7883             # FIXME: we need at least 68020 code to build shared libraries, but
   7884             # adding the '-m68020' flag to GCC prevents building anything better,
   7885             # like '-m68040'.
   7886             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   7887         ;;
   7888       esac
   7889       ;;
   7890 
   7891     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   7892       # PIC is the default for these OSes.
   7893       ;;
   7894 
   7895     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7896       # This hack is so that the source file can tell whether it is being
   7897       # built for inclusion in a dll (and should export symbols for example).
   7898       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   7899       # (--disable-auto-import) libraries
   7900       lt_prog_compiler_pic='-DDLL_EXPORT'
   7901       case $host_os in
   7902       os2*)
   7903 	lt_prog_compiler_static='$wl-static'
   7904 	;;
   7905       esac
   7906       ;;
   7907 
   7908     darwin* | rhapsody*)
   7909       # PIC is the default on this platform
   7910       # Common symbols not allowed in MH_DYLIB files
   7911       lt_prog_compiler_pic='-fno-common'
   7912       ;;
   7913 
   7914     haiku*)
   7915       # PIC is the default for Haiku.
   7916       # The "-static" flag exists, but is broken.
   7917       lt_prog_compiler_static=
   7918       ;;
   7919 
   7920     hpux*)
   7921       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   7922       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   7923       # sets the default TLS model and affects inlining.
   7924       case $host_cpu in
   7925       hppa*64*)
   7926 	# +Z the default
   7927 	;;
   7928       *)
   7929 	lt_prog_compiler_pic='-fPIC'
   7930 	;;
   7931       esac
   7932       ;;
   7933 
   7934     interix[3-9]*)
   7935       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   7936       # Instead, we relocate shared libraries at runtime.
   7937       ;;
   7938 
   7939     msdosdjgpp*)
   7940       # Just because we use GCC doesn't mean we suddenly get shared libraries
   7941       # on systems that don't support them.
   7942       lt_prog_compiler_can_build_shared=no
   7943       enable_shared=no
   7944       ;;
   7945 
   7946     *nto* | *qnx*)
   7947       # QNX uses GNU C++, but need to define -shared option too, otherwise
   7948       # it will coredump.
   7949       lt_prog_compiler_pic='-fPIC -shared'
   7950       ;;
   7951 
   7952     sysv4*MP*)
   7953       if test -d /usr/nec; then
   7954 	lt_prog_compiler_pic=-Kconform_pic
   7955       fi
   7956       ;;
   7957 
   7958     *)
   7959       lt_prog_compiler_pic='-fPIC'
   7960       ;;
   7961     esac
   7962 
   7963     case $cc_basename in
   7964     nvcc*) # Cuda Compiler Driver 2.2
   7965       lt_prog_compiler_wl='-Xlinker '
   7966       if test -n "$lt_prog_compiler_pic"; then
   7967         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   7968       fi
   7969       ;;
   7970     esac
   7971   else
   7972     # PORTME Check for flag to pass linker flags through the system compiler.
   7973     case $host_os in
   7974     aix*)
   7975       lt_prog_compiler_wl='-Wl,'
   7976       if test ia64 = "$host_cpu"; then
   7977 	# AIX 5 now supports IA64 processor
   7978 	lt_prog_compiler_static='-Bstatic'
   7979       else
   7980 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   7981       fi
   7982       ;;
   7983 
   7984     darwin* | rhapsody*)
   7985       # PIC is the default on this platform
   7986       # Common symbols not allowed in MH_DYLIB files
   7987       lt_prog_compiler_pic='-fno-common'
   7988       case $cc_basename in
   7989       nagfor*)
   7990         # NAG Fortran compiler
   7991         lt_prog_compiler_wl='-Wl,-Wl,,'
   7992         lt_prog_compiler_pic='-PIC'
   7993         lt_prog_compiler_static='-Bstatic'
   7994         ;;
   7995       esac
   7996       ;;
   7997 
   7998     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7999       # This hack is so that the source file can tell whether it is being
   8000       # built for inclusion in a dll (and should export symbols for example).
   8001       lt_prog_compiler_pic='-DDLL_EXPORT'
   8002       case $host_os in
   8003       os2*)
   8004 	lt_prog_compiler_static='$wl-static'
   8005 	;;
   8006       esac
   8007       ;;
   8008 
   8009     hpux9* | hpux10* | hpux11*)
   8010       lt_prog_compiler_wl='-Wl,'
   8011       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8012       # not for PA HP-UX.
   8013       case $host_cpu in
   8014       hppa*64*|ia64*)
   8015 	# +Z the default
   8016 	;;
   8017       *)
   8018 	lt_prog_compiler_pic='+Z'
   8019 	;;
   8020       esac
   8021       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8022       lt_prog_compiler_static='$wl-a ${wl}archive'
   8023       ;;
   8024 
   8025     irix5* | irix6* | nonstopux*)
   8026       lt_prog_compiler_wl='-Wl,'
   8027       # PIC (with -KPIC) is the default.
   8028       lt_prog_compiler_static='-non_shared'
   8029       ;;
   8030 
   8031     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8032       case $cc_basename in
   8033       # old Intel for x86_64, which still supported -KPIC.
   8034       ecc*)
   8035 	lt_prog_compiler_wl='-Wl,'
   8036 	lt_prog_compiler_pic='-KPIC'
   8037 	lt_prog_compiler_static='-static'
   8038         ;;
   8039       # icc used to be incompatible with GCC.
   8040       # ICC 10 doesn't accept -KPIC any more.
   8041       icc* | ifort*)
   8042 	lt_prog_compiler_wl='-Wl,'
   8043 	lt_prog_compiler_pic='-fPIC'
   8044 	lt_prog_compiler_static='-static'
   8045         ;;
   8046       # Lahey Fortran 8.1.
   8047       lf95*)
   8048 	lt_prog_compiler_wl='-Wl,'
   8049 	lt_prog_compiler_pic='--shared'
   8050 	lt_prog_compiler_static='--static'
   8051 	;;
   8052       nagfor*)
   8053 	# NAG Fortran compiler
   8054 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8055 	lt_prog_compiler_pic='-PIC'
   8056 	lt_prog_compiler_static='-Bstatic'
   8057 	;;
   8058       tcc*)
   8059 	# Fabrice Bellard et al's Tiny C Compiler
   8060 	lt_prog_compiler_wl='-Wl,'
   8061 	lt_prog_compiler_pic='-fPIC'
   8062 	lt_prog_compiler_static='-static'
   8063 	;;
   8064       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8065         # Portland Group compilers (*not* the Pentium gcc compiler,
   8066 	# which looks to be a dead project)
   8067 	lt_prog_compiler_wl='-Wl,'
   8068 	lt_prog_compiler_pic='-fpic'
   8069 	lt_prog_compiler_static='-Bstatic'
   8070         ;;
   8071       ccc*)
   8072         lt_prog_compiler_wl='-Wl,'
   8073         # All Alpha code is PIC.
   8074         lt_prog_compiler_static='-non_shared'
   8075         ;;
   8076       xl* | bgxl* | bgf* | mpixl*)
   8077 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8078 	lt_prog_compiler_wl='-Wl,'
   8079 	lt_prog_compiler_pic='-qpic'
   8080 	lt_prog_compiler_static='-qstaticlink'
   8081 	;;
   8082       *)
   8083 	case `$CC -V 2>&1 | sed 5q` in
   8084 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8085 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8086 	  lt_prog_compiler_pic='-KPIC'
   8087 	  lt_prog_compiler_static='-Bstatic'
   8088 	  lt_prog_compiler_wl=''
   8089 	  ;;
   8090 	*Sun\ F* | *Sun*Fortran*)
   8091 	  lt_prog_compiler_pic='-KPIC'
   8092 	  lt_prog_compiler_static='-Bstatic'
   8093 	  lt_prog_compiler_wl='-Qoption ld '
   8094 	  ;;
   8095 	*Sun\ C*)
   8096 	  # Sun C 5.9
   8097 	  lt_prog_compiler_pic='-KPIC'
   8098 	  lt_prog_compiler_static='-Bstatic'
   8099 	  lt_prog_compiler_wl='-Wl,'
   8100 	  ;;
   8101         *Intel*\ [CF]*Compiler*)
   8102 	  lt_prog_compiler_wl='-Wl,'
   8103 	  lt_prog_compiler_pic='-fPIC'
   8104 	  lt_prog_compiler_static='-static'
   8105 	  ;;
   8106 	*Portland\ Group*)
   8107 	  lt_prog_compiler_wl='-Wl,'
   8108 	  lt_prog_compiler_pic='-fpic'
   8109 	  lt_prog_compiler_static='-Bstatic'
   8110 	  ;;
   8111 	esac
   8112 	;;
   8113       esac
   8114       ;;
   8115 
   8116     newsos6)
   8117       lt_prog_compiler_pic='-KPIC'
   8118       lt_prog_compiler_static='-Bstatic'
   8119       ;;
   8120 
   8121     *nto* | *qnx*)
   8122       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8123       # it will coredump.
   8124       lt_prog_compiler_pic='-fPIC -shared'
   8125       ;;
   8126 
   8127     osf3* | osf4* | osf5*)
   8128       lt_prog_compiler_wl='-Wl,'
   8129       # All OSF/1 code is PIC.
   8130       lt_prog_compiler_static='-non_shared'
   8131       ;;
   8132 
   8133     rdos*)
   8134       lt_prog_compiler_static='-non_shared'
   8135       ;;
   8136 
   8137     solaris*)
   8138       lt_prog_compiler_pic='-KPIC'
   8139       lt_prog_compiler_static='-Bstatic'
   8140       case $cc_basename in
   8141       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8142 	lt_prog_compiler_wl='-Qoption ld ';;
   8143       *)
   8144 	lt_prog_compiler_wl='-Wl,';;
   8145       esac
   8146       ;;
   8147 
   8148     sunos4*)
   8149       lt_prog_compiler_wl='-Qoption ld '
   8150       lt_prog_compiler_pic='-PIC'
   8151       lt_prog_compiler_static='-Bstatic'
   8152       ;;
   8153 
   8154     sysv4 | sysv4.2uw2* | sysv4.3*)
   8155       lt_prog_compiler_wl='-Wl,'
   8156       lt_prog_compiler_pic='-KPIC'
   8157       lt_prog_compiler_static='-Bstatic'
   8158       ;;
   8159 
   8160     sysv4*MP*)
   8161       if test -d /usr/nec; then
   8162 	lt_prog_compiler_pic='-Kconform_pic'
   8163 	lt_prog_compiler_static='-Bstatic'
   8164       fi
   8165       ;;
   8166 
   8167     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8168       lt_prog_compiler_wl='-Wl,'
   8169       lt_prog_compiler_pic='-KPIC'
   8170       lt_prog_compiler_static='-Bstatic'
   8171       ;;
   8172 
   8173     unicos*)
   8174       lt_prog_compiler_wl='-Wl,'
   8175       lt_prog_compiler_can_build_shared=no
   8176       ;;
   8177 
   8178     uts4*)
   8179       lt_prog_compiler_pic='-pic'
   8180       lt_prog_compiler_static='-Bstatic'
   8181       ;;
   8182 
   8183     *)
   8184       lt_prog_compiler_can_build_shared=no
   8185       ;;
   8186     esac
   8187   fi
   8188 
   8189 case $host_os in
   8190   # For platforms that do not support PIC, -DPIC is meaningless:
   8191   *djgpp*)
   8192     lt_prog_compiler_pic=
   8193     ;;
   8194   *)
   8195     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8196     ;;
   8197 esac
   8198 
   8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8200 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8201 if ${lt_cv_prog_compiler_pic+:} false; then :
   8202   $as_echo_n "(cached) " >&6
   8203 else
   8204   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8205 fi
   8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8207 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8208 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8209 
   8210 #
   8211 # Check to make sure the PIC flag actually works.
   8212 #
   8213 if test -n "$lt_prog_compiler_pic"; then
   8214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8215 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8216 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8217   $as_echo_n "(cached) " >&6
   8218 else
   8219   lt_cv_prog_compiler_pic_works=no
   8220    ac_outfile=conftest.$ac_objext
   8221    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8222    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8223    # Insert the option either (1) after the last *FLAGS variable, or
   8224    # (2) before a word containing "conftest.", or (3) at the end.
   8225    # Note that $ac_compile itself does not contain backslashes and begins
   8226    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8227    # The option is referenced via a variable to avoid confusing sed.
   8228    lt_compile=`echo "$ac_compile" | $SED \
   8229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8231    -e 's:$: $lt_compiler_flag:'`
   8232    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8233    (eval "$lt_compile" 2>conftest.err)
   8234    ac_status=$?
   8235    cat conftest.err >&5
   8236    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8237    if (exit $ac_status) && test -s "$ac_outfile"; then
   8238      # The compiler can only warn and ignore the option if not recognized
   8239      # So say no if there are warnings other than the usual output.
   8240      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8241      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8242      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8243        lt_cv_prog_compiler_pic_works=yes
   8244      fi
   8245    fi
   8246    $RM conftest*
   8247 
   8248 fi
   8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8250 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8251 
   8252 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8253     case $lt_prog_compiler_pic in
   8254      "" | " "*) ;;
   8255      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8256      esac
   8257 else
   8258     lt_prog_compiler_pic=
   8259      lt_prog_compiler_can_build_shared=no
   8260 fi
   8261 
   8262 fi
   8263 
   8264 
   8265 
   8266 
   8267 
   8268 
   8269 
   8270 
   8271 
   8272 
   8273 
   8274 #
   8275 # Check to make sure the static flag actually works.
   8276 #
   8277 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8279 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8280 if ${lt_cv_prog_compiler_static_works+:} false; then :
   8281   $as_echo_n "(cached) " >&6
   8282 else
   8283   lt_cv_prog_compiler_static_works=no
   8284    save_LDFLAGS=$LDFLAGS
   8285    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8286    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8287    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8288      # The linker can only warn and ignore the option if not recognized
   8289      # So say no if there are warnings
   8290      if test -s conftest.err; then
   8291        # Append any errors to the config.log.
   8292        cat conftest.err 1>&5
   8293        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8294        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8295        if diff conftest.exp conftest.er2 >/dev/null; then
   8296          lt_cv_prog_compiler_static_works=yes
   8297        fi
   8298      else
   8299        lt_cv_prog_compiler_static_works=yes
   8300      fi
   8301    fi
   8302    $RM -r conftest*
   8303    LDFLAGS=$save_LDFLAGS
   8304 
   8305 fi
   8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8307 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8308 
   8309 if test yes = "$lt_cv_prog_compiler_static_works"; then
   8310     :
   8311 else
   8312     lt_prog_compiler_static=
   8313 fi
   8314 
   8315 
   8316 
   8317 
   8318 
   8319 
   8320 
   8321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8323 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8324   $as_echo_n "(cached) " >&6
   8325 else
   8326   lt_cv_prog_compiler_c_o=no
   8327    $RM -r conftest 2>/dev/null
   8328    mkdir conftest
   8329    cd conftest
   8330    mkdir out
   8331    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8332 
   8333    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8334    # Insert the option either (1) after the last *FLAGS variable, or
   8335    # (2) before a word containing "conftest.", or (3) at the end.
   8336    # Note that $ac_compile itself does not contain backslashes and begins
   8337    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8338    lt_compile=`echo "$ac_compile" | $SED \
   8339    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8340    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8341    -e 's:$: $lt_compiler_flag:'`
   8342    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8343    (eval "$lt_compile" 2>out/conftest.err)
   8344    ac_status=$?
   8345    cat out/conftest.err >&5
   8346    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8347    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8348    then
   8349      # The compiler can only warn and ignore the option if not recognized
   8350      # So say no if there are warnings
   8351      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8352      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8353      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8354        lt_cv_prog_compiler_c_o=yes
   8355      fi
   8356    fi
   8357    chmod u+w . 2>&5
   8358    $RM conftest*
   8359    # SGI C++ compiler will create directory out/ii_files/ for
   8360    # template instantiation
   8361    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8362    $RM out/* && rmdir out
   8363    cd ..
   8364    $RM -r conftest
   8365    $RM conftest*
   8366 
   8367 fi
   8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8369 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8370 
   8371 
   8372 
   8373 
   8374 
   8375 
   8376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8378 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8379   $as_echo_n "(cached) " >&6
   8380 else
   8381   lt_cv_prog_compiler_c_o=no
   8382    $RM -r conftest 2>/dev/null
   8383    mkdir conftest
   8384    cd conftest
   8385    mkdir out
   8386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8387 
   8388    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8389    # Insert the option either (1) after the last *FLAGS variable, or
   8390    # (2) before a word containing "conftest.", or (3) at the end.
   8391    # Note that $ac_compile itself does not contain backslashes and begins
   8392    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8393    lt_compile=`echo "$ac_compile" | $SED \
   8394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8396    -e 's:$: $lt_compiler_flag:'`
   8397    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8398    (eval "$lt_compile" 2>out/conftest.err)
   8399    ac_status=$?
   8400    cat out/conftest.err >&5
   8401    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8402    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8403    then
   8404      # The compiler can only warn and ignore the option if not recognized
   8405      # So say no if there are warnings
   8406      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8407      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8408      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8409        lt_cv_prog_compiler_c_o=yes
   8410      fi
   8411    fi
   8412    chmod u+w . 2>&5
   8413    $RM conftest*
   8414    # SGI C++ compiler will create directory out/ii_files/ for
   8415    # template instantiation
   8416    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8417    $RM out/* && rmdir out
   8418    cd ..
   8419    $RM -r conftest
   8420    $RM conftest*
   8421 
   8422 fi
   8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8424 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8425 
   8426 
   8427 
   8428 
   8429 hard_links=nottested
   8430 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8431   # do not overwrite the value of need_locks provided by the user
   8432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8433 $as_echo_n "checking if we can lock with hard links... " >&6; }
   8434   hard_links=yes
   8435   $RM conftest*
   8436   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8437   touch conftest.a
   8438   ln conftest.a conftest.b 2>&5 || hard_links=no
   8439   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8441 $as_echo "$hard_links" >&6; }
   8442   if test no = "$hard_links"; then
   8443     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8444 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8445     need_locks=warn
   8446   fi
   8447 else
   8448   need_locks=no
   8449 fi
   8450 
   8451 
   8452 
   8453 
   8454 
   8455 
   8456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8457 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8458 
   8459   runpath_var=
   8460   allow_undefined_flag=
   8461   always_export_symbols=no
   8462   archive_cmds=
   8463   archive_expsym_cmds=
   8464   compiler_needs_object=no
   8465   enable_shared_with_static_runtimes=no
   8466   export_dynamic_flag_spec=
   8467   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8468   hardcode_automatic=no
   8469   hardcode_direct=no
   8470   hardcode_direct_absolute=no
   8471   hardcode_libdir_flag_spec=
   8472   hardcode_libdir_separator=
   8473   hardcode_minus_L=no
   8474   hardcode_shlibpath_var=unsupported
   8475   inherit_rpath=no
   8476   link_all_deplibs=unknown
   8477   module_cmds=
   8478   module_expsym_cmds=
   8479   old_archive_from_new_cmds=
   8480   old_archive_from_expsyms_cmds=
   8481   thread_safe_flag_spec=
   8482   whole_archive_flag_spec=
   8483   # include_expsyms should be a list of space-separated symbols to be *always*
   8484   # included in the symbol list
   8485   include_expsyms=
   8486   # exclude_expsyms can be an extended regexp of symbols to exclude
   8487   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8488   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8489   # as well as any symbol that contains 'd'.
   8490   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8491   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8492   # platforms (ab)use it in PIC code, but their linkers get confused if
   8493   # the symbol is explicitly referenced.  Since portable code cannot
   8494   # rely on this symbol name, it's probably fine to never include it in
   8495   # preloaded symbol tables.
   8496   # Exclude shared library initialization/finalization symbols.
   8497   extract_expsyms_cmds=
   8498 
   8499   case $host_os in
   8500   cygwin* | mingw* | pw32* | cegcc*)
   8501     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8502     # When not using gcc, we currently assume that we are using
   8503     # Microsoft Visual C++.
   8504     if test yes != "$GCC"; then
   8505       with_gnu_ld=no
   8506     fi
   8507     ;;
   8508   interix*)
   8509     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8510     with_gnu_ld=yes
   8511     ;;
   8512   openbsd* | bitrig*)
   8513     with_gnu_ld=no
   8514     ;;
   8515   esac
   8516 
   8517   ld_shlibs=yes
   8518 
   8519   # On some targets, GNU ld is compatible enough with the native linker
   8520   # that we're better off using the native interface for both.
   8521   lt_use_gnu_ld_interface=no
   8522   if test yes = "$with_gnu_ld"; then
   8523     case $host_os in
   8524       aix*)
   8525 	# The AIX port of GNU ld has always aspired to compatibility
   8526 	# with the native linker.  However, as the warning in the GNU ld
   8527 	# block says, versions before 2.19.5* couldn't really create working
   8528 	# shared libraries, regardless of the interface used.
   8529 	case `$LD -v 2>&1` in
   8530 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8531 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8532 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8533 	  *)
   8534 	    lt_use_gnu_ld_interface=yes
   8535 	    ;;
   8536 	esac
   8537 	;;
   8538       *)
   8539 	lt_use_gnu_ld_interface=yes
   8540 	;;
   8541     esac
   8542   fi
   8543 
   8544   if test yes = "$lt_use_gnu_ld_interface"; then
   8545     # If archive_cmds runs LD, not CC, wlarc should be empty
   8546     wlarc='$wl'
   8547 
   8548     # Set some defaults for GNU ld with shared library support. These
   8549     # are reset later if shared libraries are not supported. Putting them
   8550     # here allows them to be overridden if necessary.
   8551     runpath_var=LD_RUN_PATH
   8552     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8553     export_dynamic_flag_spec='$wl--export-dynamic'
   8554     # ancient GNU ld didn't support --whole-archive et. al.
   8555     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8556       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8557     else
   8558       whole_archive_flag_spec=
   8559     fi
   8560     supports_anon_versioning=no
   8561     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8562       *GNU\ gold*) supports_anon_versioning=yes ;;
   8563       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8564       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8565       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8566       *\ 2.11.*) ;; # other 2.11 versions
   8567       *) supports_anon_versioning=yes ;;
   8568     esac
   8569 
   8570     # See if GNU ld supports shared libraries.
   8571     case $host_os in
   8572     aix[3-9]*)
   8573       # On AIX/PPC, the GNU linker is very broken
   8574       if test ia64 != "$host_cpu"; then
   8575 	ld_shlibs=no
   8576 	cat <<_LT_EOF 1>&2
   8577 
   8578 *** Warning: the GNU linker, at least up to release 2.19, is reported
   8579 *** to be unable to reliably create shared libraries on AIX.
   8580 *** Therefore, libtool is disabling shared libraries support.  If you
   8581 *** really care for shared libraries, you may want to install binutils
   8582 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8583 *** You will then need to restart the configuration process.
   8584 
   8585 _LT_EOF
   8586       fi
   8587       ;;
   8588 
   8589     amigaos*)
   8590       case $host_cpu in
   8591       powerpc)
   8592             # see comment about AmigaOS4 .so support
   8593             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8594             archive_expsym_cmds=''
   8595         ;;
   8596       m68k)
   8597             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)'
   8598             hardcode_libdir_flag_spec='-L$libdir'
   8599             hardcode_minus_L=yes
   8600         ;;
   8601       esac
   8602       ;;
   8603 
   8604     beos*)
   8605       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8606 	allow_undefined_flag=unsupported
   8607 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8608 	# support --undefined.  This deserves some investigation.  FIXME
   8609 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8610       else
   8611 	ld_shlibs=no
   8612       fi
   8613       ;;
   8614 
   8615     cygwin* | mingw* | pw32* | cegcc*)
   8616       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8617       # as there is no search path for DLLs.
   8618       hardcode_libdir_flag_spec='-L$libdir'
   8619       export_dynamic_flag_spec='$wl--export-all-symbols'
   8620       allow_undefined_flag=unsupported
   8621       always_export_symbols=no
   8622       enable_shared_with_static_runtimes=yes
   8623       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'
   8624       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8625 
   8626       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8627         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8628 	# If the export-symbols file already is a .def file, use it as
   8629 	# is; otherwise, prepend EXPORTS...
   8630 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   8631           cp $export_symbols $output_objdir/$soname.def;
   8632         else
   8633           echo EXPORTS > $output_objdir/$soname.def;
   8634           cat $export_symbols >> $output_objdir/$soname.def;
   8635         fi~
   8636         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8637       else
   8638 	ld_shlibs=no
   8639       fi
   8640       ;;
   8641 
   8642     haiku*)
   8643       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8644       link_all_deplibs=yes
   8645       ;;
   8646 
   8647     os2*)
   8648       hardcode_libdir_flag_spec='-L$libdir'
   8649       hardcode_minus_L=yes
   8650       allow_undefined_flag=unsupported
   8651       shrext_cmds=.dll
   8652       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8653 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8654 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8655 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8656 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   8657 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8658 	emximp -o $lib $output_objdir/$libname.def'
   8659       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8660 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8661 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8662 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8663 	prefix_cmds="$SED"~
   8664 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   8665 	  prefix_cmds="$prefix_cmds -e 1d";
   8666 	fi~
   8667 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   8668 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   8669 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8670 	emximp -o $lib $output_objdir/$libname.def'
   8671       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   8672       enable_shared_with_static_runtimes=yes
   8673       ;;
   8674 
   8675     interix[3-9]*)
   8676       hardcode_direct=no
   8677       hardcode_shlibpath_var=no
   8678       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   8679       export_dynamic_flag_spec='$wl-E'
   8680       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   8681       # Instead, shared libraries are loaded at an image base (0x10000000 by
   8682       # default) and relocated if they conflict, which is a slow very memory
   8683       # consuming and fragmenting process.  To avoid this, we pick a random,
   8684       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   8685       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   8686       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   8687       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'
   8688       ;;
   8689 
   8690     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   8691       tmp_diet=no
   8692       if test linux-dietlibc = "$host_os"; then
   8693 	case $cc_basename in
   8694 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   8695 	esac
   8696       fi
   8697       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   8698 	 && test no = "$tmp_diet"
   8699       then
   8700 	tmp_addflag=' $pic_flag'
   8701 	tmp_sharedflag='-shared'
   8702 	case $cc_basename,$host_cpu in
   8703         pgcc*)				# Portland Group C compiler
   8704 	  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'
   8705 	  tmp_addflag=' $pic_flag'
   8706 	  ;;
   8707 	pgf77* | pgf90* | pgf95* | pgfortran*)
   8708 					# Portland Group f77 and f90 compilers
   8709 	  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'
   8710 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   8711 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   8712 	  tmp_addflag=' -i_dynamic' ;;
   8713 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   8714 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   8715 	ifc* | ifort*)			# Intel Fortran compiler
   8716 	  tmp_addflag=' -nofor_main' ;;
   8717 	lf95*)				# Lahey Fortran 8.1
   8718 	  whole_archive_flag_spec=
   8719 	  tmp_sharedflag='--shared' ;;
   8720         nagfor*)                        # NAGFOR 5.3
   8721           tmp_sharedflag='-Wl,-shared' ;;
   8722 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   8723 	  tmp_sharedflag='-qmkshrobj'
   8724 	  tmp_addflag= ;;
   8725 	nvcc*)	# Cuda Compiler Driver 2.2
   8726 	  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'
   8727 	  compiler_needs_object=yes
   8728 	  ;;
   8729 	esac
   8730 	case `$CC -V 2>&1 | sed 5q` in
   8731 	*Sun\ C*)			# Sun C 5.9
   8732 	  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'
   8733 	  compiler_needs_object=yes
   8734 	  tmp_sharedflag='-G' ;;
   8735 	*Sun\ F*)			# Sun Fortran 8.3
   8736 	  tmp_sharedflag='-G' ;;
   8737 	esac
   8738 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8739 
   8740         if test yes = "$supports_anon_versioning"; then
   8741           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8742             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8743             echo "local: *; };" >> $output_objdir/$libname.ver~
   8744             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   8745         fi
   8746 
   8747 	case $cc_basename in
   8748 	tcc*)
   8749 	  export_dynamic_flag_spec='-rdynamic'
   8750 	  ;;
   8751 	xlf* | bgf* | bgxlf* | mpixlf*)
   8752 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   8753 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   8754 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8755 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   8756 	  if test yes = "$supports_anon_versioning"; then
   8757 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8758               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8759               echo "local: *; };" >> $output_objdir/$libname.ver~
   8760               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   8761 	  fi
   8762 	  ;;
   8763 	esac
   8764       else
   8765         ld_shlibs=no
   8766       fi
   8767       ;;
   8768 
   8769     netbsd*)
   8770       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   8771 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   8772 	wlarc=
   8773       else
   8774 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8775 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8776       fi
   8777       ;;
   8778 
   8779     solaris*)
   8780       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   8781 	ld_shlibs=no
   8782 	cat <<_LT_EOF 1>&2
   8783 
   8784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   8785 *** create shared libraries on Solaris systems.  Therefore, libtool
   8786 *** is disabling shared libraries support.  We urge you to upgrade GNU
   8787 *** binutils to release 2.9.1 or newer.  Another option is to modify
   8788 *** your PATH or compiler configuration so that the native linker is
   8789 *** used, and then restart.
   8790 
   8791 _LT_EOF
   8792       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8793 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8794 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8795       else
   8796 	ld_shlibs=no
   8797       fi
   8798       ;;
   8799 
   8800     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   8801       case `$LD -v 2>&1` in
   8802         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   8803 	ld_shlibs=no
   8804 	cat <<_LT_EOF 1>&2
   8805 
   8806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   8807 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   8808 *** is disabling shared libraries support.  We urge you to upgrade GNU
   8809 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   8810 *** your PATH or compiler configuration so that the native linker is
   8811 *** used, and then restart.
   8812 
   8813 _LT_EOF
   8814 	;;
   8815 	*)
   8816 	  # For security reasons, it is highly recommended that you always
   8817 	  # use absolute paths for naming shared libraries, and exclude the
   8818 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   8819 	  # requires that you compile everything twice, which is a pain.
   8820 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8821 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8822 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8823 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8824 	  else
   8825 	    ld_shlibs=no
   8826 	  fi
   8827 	;;
   8828       esac
   8829       ;;
   8830 
   8831     sunos4*)
   8832       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8833       wlarc=
   8834       hardcode_direct=yes
   8835       hardcode_shlibpath_var=no
   8836       ;;
   8837 
   8838     *)
   8839       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8840 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8841 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8842       else
   8843 	ld_shlibs=no
   8844       fi
   8845       ;;
   8846     esac
   8847 
   8848     if test no = "$ld_shlibs"; then
   8849       runpath_var=
   8850       hardcode_libdir_flag_spec=
   8851       export_dynamic_flag_spec=
   8852       whole_archive_flag_spec=
   8853     fi
   8854   else
   8855     # PORTME fill in a description of your system's linker (not GNU ld)
   8856     case $host_os in
   8857     aix3*)
   8858       allow_undefined_flag=unsupported
   8859       always_export_symbols=yes
   8860       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'
   8861       # Note: this linker hardcodes the directories in LIBPATH if there
   8862       # are no directories specified by -L.
   8863       hardcode_minus_L=yes
   8864       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   8865 	# Neither direct hardcoding nor static linking is supported with a
   8866 	# broken collect2.
   8867 	hardcode_direct=unsupported
   8868       fi
   8869       ;;
   8870 
   8871     aix[4-9]*)
   8872       if test ia64 = "$host_cpu"; then
   8873 	# On IA64, the linker does run time linking by default, so we don't
   8874 	# have to do anything special.
   8875 	aix_use_runtimelinking=no
   8876 	exp_sym_flag='-Bexport'
   8877 	no_entry_flag=
   8878       else
   8879 	# If we're using GNU nm, then we don't want the "-C" option.
   8880 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   8881 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   8882 	# weak defined symbols like other global defined symbols, whereas
   8883 	# GNU nm marks them as "W".
   8884 	# While the 'weak' keyword is ignored in the Export File, we need
   8885 	# it in the Import File for the 'aix-soname' feature, so we have
   8886 	# to replace the "-B" option with "-P" for AIX nm.
   8887 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   8888 	  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'
   8889 	else
   8890 	  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'
   8891 	fi
   8892 	aix_use_runtimelinking=no
   8893 
   8894 	# Test if we are trying to use run time linking or normal
   8895 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   8896 	# have runtime linking enabled, and use it for executables.
   8897 	# For shared libraries, we enable/disable runtime linking
   8898 	# depending on the kind of the shared library created -
   8899 	# when "with_aix_soname,aix_use_runtimelinking" is:
   8900 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   8901 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   8902 	#            lib.a           static archive
   8903 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   8904 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   8905 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   8906 	#            lib.a(lib.so.V) shared, rtl:no
   8907 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   8908 	#            lib.a           static archive
   8909 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   8910 	  for ld_flag in $LDFLAGS; do
   8911 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   8912 	    aix_use_runtimelinking=yes
   8913 	    break
   8914 	  fi
   8915 	  done
   8916 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   8917 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   8918 	    # so we don't have lib.a shared libs to link our executables.
   8919 	    # We have to force runtime linking in this case.
   8920 	    aix_use_runtimelinking=yes
   8921 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   8922 	  fi
   8923 	  ;;
   8924 	esac
   8925 
   8926 	exp_sym_flag='-bexport'
   8927 	no_entry_flag='-bnoentry'
   8928       fi
   8929 
   8930       # When large executables or shared objects are built, AIX ld can
   8931       # have problems creating the table of contents.  If linking a library
   8932       # or program results in "error TOC overflow" add -mminimal-toc to
   8933       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   8934       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   8935 
   8936       archive_cmds=''
   8937       hardcode_direct=yes
   8938       hardcode_direct_absolute=yes
   8939       hardcode_libdir_separator=':'
   8940       link_all_deplibs=yes
   8941       file_list_spec='$wl-f,'
   8942       case $with_aix_soname,$aix_use_runtimelinking in
   8943       aix,*) ;; # traditional, no import file
   8944       svr4,* | *,yes) # use import file
   8945 	# The Import File defines what to hardcode.
   8946 	hardcode_direct=no
   8947 	hardcode_direct_absolute=no
   8948 	;;
   8949       esac
   8950 
   8951       if test yes = "$GCC"; then
   8952 	case $host_os in aix4.[012]|aix4.[012].*)
   8953 	# We only want to do this on AIX 4.2 and lower, the check
   8954 	# below for broken collect2 doesn't work under 4.3+
   8955 	  collect2name=`$CC -print-prog-name=collect2`
   8956 	  if test -f "$collect2name" &&
   8957 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   8958 	  then
   8959 	  # We have reworked collect2
   8960 	  :
   8961 	  else
   8962 	  # We have old collect2
   8963 	  hardcode_direct=unsupported
   8964 	  # It fails to find uninstalled libraries when the uninstalled
   8965 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   8966 	  # to unsupported forces relinking
   8967 	  hardcode_minus_L=yes
   8968 	  hardcode_libdir_flag_spec='-L$libdir'
   8969 	  hardcode_libdir_separator=
   8970 	  fi
   8971 	  ;;
   8972 	esac
   8973 	shared_flag='-shared'
   8974 	if test yes = "$aix_use_runtimelinking"; then
   8975 	  shared_flag="$shared_flag "'$wl-G'
   8976 	fi
   8977 	# Need to ensure runtime linking is disabled for the traditional
   8978 	# shared library, or the linker may eventually find shared libraries
   8979 	# /with/ Import File - we do not want to mix them.
   8980 	shared_flag_aix='-shared'
   8981 	shared_flag_svr4='-shared $wl-G'
   8982       else
   8983 	# not using gcc
   8984 	if test ia64 = "$host_cpu"; then
   8985 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   8986 	# chokes on -Wl,-G. The following line is correct:
   8987 	  shared_flag='-G'
   8988 	else
   8989 	  if test yes = "$aix_use_runtimelinking"; then
   8990 	    shared_flag='$wl-G'
   8991 	  else
   8992 	    shared_flag='$wl-bM:SRE'
   8993 	  fi
   8994 	  shared_flag_aix='$wl-bM:SRE'
   8995 	  shared_flag_svr4='$wl-G'
   8996 	fi
   8997       fi
   8998 
   8999       export_dynamic_flag_spec='$wl-bexpall'
   9000       # It seems that -bexpall does not export symbols beginning with
   9001       # underscore (_), so it is better to generate a list of symbols to export.
   9002       always_export_symbols=yes
   9003       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   9004 	# Warning - without using the other runtime loading flags (-brtl),
   9005 	# -berok will link without error, but may produce a broken library.
   9006 	allow_undefined_flag='-berok'
   9007         # Determine the default libpath from the value encoded in an
   9008         # empty executable.
   9009         if test set = "${lt_cv_aix_libpath+set}"; then
   9010   aix_libpath=$lt_cv_aix_libpath
   9011 else
   9012   if ${lt_cv_aix_libpath_+:} false; then :
   9013   $as_echo_n "(cached) " >&6
   9014 else
   9015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9016 /* end confdefs.h.  */
   9017 
   9018 int
   9019 main ()
   9020 {
   9021 
   9022   ;
   9023   return 0;
   9024 }
   9025 _ACEOF
   9026 if ac_fn_c_try_link "$LINENO"; then :
   9027 
   9028   lt_aix_libpath_sed='
   9029       /Import File Strings/,/^$/ {
   9030 	  /^0/ {
   9031 	      s/^0  *\([^ ]*\) *$/\1/
   9032 	      p
   9033 	  }
   9034       }'
   9035   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9036   # Check for a 64-bit object if we didn't find anything.
   9037   if test -z "$lt_cv_aix_libpath_"; then
   9038     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9039   fi
   9040 fi
   9041 rm -f core conftest.err conftest.$ac_objext \
   9042     conftest$ac_exeext conftest.$ac_ext
   9043   if test -z "$lt_cv_aix_libpath_"; then
   9044     lt_cv_aix_libpath_=/usr/lib:/lib
   9045   fi
   9046 
   9047 fi
   9048 
   9049   aix_libpath=$lt_cv_aix_libpath_
   9050 fi
   9051 
   9052         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9053         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
   9054       else
   9055 	if test ia64 = "$host_cpu"; then
   9056 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9057 	  allow_undefined_flag="-z nodefs"
   9058 	  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"
   9059 	else
   9060 	 # Determine the default libpath from the value encoded in an
   9061 	 # empty executable.
   9062 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9063   aix_libpath=$lt_cv_aix_libpath
   9064 else
   9065   if ${lt_cv_aix_libpath_+:} false; then :
   9066   $as_echo_n "(cached) " >&6
   9067 else
   9068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9069 /* end confdefs.h.  */
   9070 
   9071 int
   9072 main ()
   9073 {
   9074 
   9075   ;
   9076   return 0;
   9077 }
   9078 _ACEOF
   9079 if ac_fn_c_try_link "$LINENO"; then :
   9080 
   9081   lt_aix_libpath_sed='
   9082       /Import File Strings/,/^$/ {
   9083 	  /^0/ {
   9084 	      s/^0  *\([^ ]*\) *$/\1/
   9085 	      p
   9086 	  }
   9087       }'
   9088   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9089   # Check for a 64-bit object if we didn't find anything.
   9090   if test -z "$lt_cv_aix_libpath_"; then
   9091     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9092   fi
   9093 fi
   9094 rm -f core conftest.err conftest.$ac_objext \
   9095     conftest$ac_exeext conftest.$ac_ext
   9096   if test -z "$lt_cv_aix_libpath_"; then
   9097     lt_cv_aix_libpath_=/usr/lib:/lib
   9098   fi
   9099 
   9100 fi
   9101 
   9102   aix_libpath=$lt_cv_aix_libpath_
   9103 fi
   9104 
   9105 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9106 	  # Warning - without using the other run time loading flags,
   9107 	  # -berok will link without error, but may produce a broken library.
   9108 	  no_undefined_flag=' $wl-bernotok'
   9109 	  allow_undefined_flag=' $wl-berok'
   9110 	  if test yes = "$with_gnu_ld"; then
   9111 	    # We only use this code for GNU lds that support --whole-archive.
   9112 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9113 	  else
   9114 	    # Exported symbols can be pulled into shared objects from archives
   9115 	    whole_archive_flag_spec='$convenience'
   9116 	  fi
   9117 	  archive_cmds_need_lc=yes
   9118 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9119 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9120 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9121 	  if test svr4 != "$with_aix_soname"; then
   9122 	    # This is similar to how AIX traditionally builds its shared libraries.
   9123 	    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'
   9124 	  fi
   9125 	  if test aix != "$with_aix_soname"; then
   9126 	    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'
   9127 	  else
   9128 	    # used by -dlpreopen to get the symbols
   9129 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9130 	  fi
   9131 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9132 	fi
   9133       fi
   9134       ;;
   9135 
   9136     amigaos*)
   9137       case $host_cpu in
   9138       powerpc)
   9139             # see comment about AmigaOS4 .so support
   9140             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9141             archive_expsym_cmds=''
   9142         ;;
   9143       m68k)
   9144             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)'
   9145             hardcode_libdir_flag_spec='-L$libdir'
   9146             hardcode_minus_L=yes
   9147         ;;
   9148       esac
   9149       ;;
   9150 
   9151     bsdi[45]*)
   9152       export_dynamic_flag_spec=-rdynamic
   9153       ;;
   9154 
   9155     cygwin* | mingw* | pw32* | cegcc*)
   9156       # When not using gcc, we currently assume that we are using
   9157       # Microsoft Visual C++.
   9158       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9159       # no search path for DLLs.
   9160       case $cc_basename in
   9161       cl*)
   9162 	# Native MSVC
   9163 	hardcode_libdir_flag_spec=' '
   9164 	allow_undefined_flag=unsupported
   9165 	always_export_symbols=yes
   9166 	file_list_spec='@'
   9167 	# Tell ltmain to make .lib files, not .a files.
   9168 	libext=lib
   9169 	# Tell ltmain to make .dll files, not .so files.
   9170 	shrext_cmds=.dll
   9171 	# FIXME: Setting linknames here is a bad hack.
   9172 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9173 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9174             cp "$export_symbols" "$output_objdir/$soname.def";
   9175             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9176           else
   9177             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9178           fi~
   9179           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9180           linknames='
   9181 	# The linker will not automatically build a static lib if we build a DLL.
   9182 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9183 	enable_shared_with_static_runtimes=yes
   9184 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9185 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9186 	# Don't use ranlib
   9187 	old_postinstall_cmds='chmod 644 $oldlib'
   9188 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9189           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9190           case $lt_outputfile in
   9191             *.exe|*.EXE) ;;
   9192             *)
   9193               lt_outputfile=$lt_outputfile.exe
   9194               lt_tool_outputfile=$lt_tool_outputfile.exe
   9195               ;;
   9196           esac~
   9197           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9198             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9199             $RM "$lt_outputfile.manifest";
   9200           fi'
   9201 	;;
   9202       *)
   9203 	# Assume MSVC wrapper
   9204 	hardcode_libdir_flag_spec=' '
   9205 	allow_undefined_flag=unsupported
   9206 	# Tell ltmain to make .lib files, not .a files.
   9207 	libext=lib
   9208 	# Tell ltmain to make .dll files, not .so files.
   9209 	shrext_cmds=.dll
   9210 	# FIXME: Setting linknames here is a bad hack.
   9211 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9212 	# The linker will automatically build a .lib file if we build a DLL.
   9213 	old_archive_from_new_cmds='true'
   9214 	# FIXME: Should let the user specify the lib program.
   9215 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9216 	enable_shared_with_static_runtimes=yes
   9217 	;;
   9218       esac
   9219       ;;
   9220 
   9221     darwin* | rhapsody*)
   9222 
   9223 
   9224   archive_cmds_need_lc=no
   9225   hardcode_direct=no
   9226   hardcode_automatic=yes
   9227   hardcode_shlibpath_var=unsupported
   9228   if test yes = "$lt_cv_ld_force_load"; then
   9229     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\"`'
   9230 
   9231   else
   9232     whole_archive_flag_spec=''
   9233   fi
   9234   link_all_deplibs=yes
   9235   allow_undefined_flag=$_lt_dar_allow_undefined
   9236   case $cc_basename in
   9237      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9238      *) _lt_dar_can_shared=$GCC ;;
   9239   esac
   9240   if test yes = "$_lt_dar_can_shared"; then
   9241     output_verbose_link_cmd=func_echo_all
   9242     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   9243     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9244     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"
   9245     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"
   9246 
   9247   else
   9248   ld_shlibs=no
   9249   fi
   9250 
   9251       ;;
   9252 
   9253     dgux*)
   9254       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9255       hardcode_libdir_flag_spec='-L$libdir'
   9256       hardcode_shlibpath_var=no
   9257       ;;
   9258 
   9259     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9260     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9261     # does not break anything, and helps significantly (at the cost of a little
   9262     # extra space).
   9263     freebsd2.2*)
   9264       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9265       hardcode_libdir_flag_spec='-R$libdir'
   9266       hardcode_direct=yes
   9267       hardcode_shlibpath_var=no
   9268       ;;
   9269 
   9270     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9271     freebsd2.*)
   9272       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9273       hardcode_direct=yes
   9274       hardcode_minus_L=yes
   9275       hardcode_shlibpath_var=no
   9276       ;;
   9277 
   9278     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9279     freebsd* | dragonfly*)
   9280       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9281       hardcode_libdir_flag_spec='-R$libdir'
   9282       hardcode_direct=yes
   9283       hardcode_shlibpath_var=no
   9284       ;;
   9285 
   9286     hpux9*)
   9287       if test yes = "$GCC"; then
   9288 	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'
   9289       else
   9290 	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'
   9291       fi
   9292       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9293       hardcode_libdir_separator=:
   9294       hardcode_direct=yes
   9295 
   9296       # hardcode_minus_L: Not really in the search PATH,
   9297       # but as the default location of the library.
   9298       hardcode_minus_L=yes
   9299       export_dynamic_flag_spec='$wl-E'
   9300       ;;
   9301 
   9302     hpux10*)
   9303       if test yes,no = "$GCC,$with_gnu_ld"; then
   9304 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9305       else
   9306 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9307       fi
   9308       if test no = "$with_gnu_ld"; then
   9309 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9310 	hardcode_libdir_separator=:
   9311 	hardcode_direct=yes
   9312 	hardcode_direct_absolute=yes
   9313 	export_dynamic_flag_spec='$wl-E'
   9314 	# hardcode_minus_L: Not really in the search PATH,
   9315 	# but as the default location of the library.
   9316 	hardcode_minus_L=yes
   9317       fi
   9318       ;;
   9319 
   9320     hpux11*)
   9321       if test yes,no = "$GCC,$with_gnu_ld"; then
   9322 	case $host_cpu in
   9323 	hppa*64*)
   9324 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9325 	  ;;
   9326 	ia64*)
   9327 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9328 	  ;;
   9329 	*)
   9330 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9331 	  ;;
   9332 	esac
   9333       else
   9334 	case $host_cpu in
   9335 	hppa*64*)
   9336 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9337 	  ;;
   9338 	ia64*)
   9339 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9340 	  ;;
   9341 	*)
   9342 
   9343 	  # Older versions of the 11.00 compiler do not understand -b yet
   9344 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9345 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9346 $as_echo_n "checking if $CC understands -b... " >&6; }
   9347 if ${lt_cv_prog_compiler__b+:} false; then :
   9348   $as_echo_n "(cached) " >&6
   9349 else
   9350   lt_cv_prog_compiler__b=no
   9351    save_LDFLAGS=$LDFLAGS
   9352    LDFLAGS="$LDFLAGS -b"
   9353    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9354    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9355      # The linker can only warn and ignore the option if not recognized
   9356      # So say no if there are warnings
   9357      if test -s conftest.err; then
   9358        # Append any errors to the config.log.
   9359        cat conftest.err 1>&5
   9360        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9361        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9362        if diff conftest.exp conftest.er2 >/dev/null; then
   9363          lt_cv_prog_compiler__b=yes
   9364        fi
   9365      else
   9366        lt_cv_prog_compiler__b=yes
   9367      fi
   9368    fi
   9369    $RM -r conftest*
   9370    LDFLAGS=$save_LDFLAGS
   9371 
   9372 fi
   9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9374 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9375 
   9376 if test yes = "$lt_cv_prog_compiler__b"; then
   9377     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9378 else
   9379     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9380 fi
   9381 
   9382 	  ;;
   9383 	esac
   9384       fi
   9385       if test no = "$with_gnu_ld"; then
   9386 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9387 	hardcode_libdir_separator=:
   9388 
   9389 	case $host_cpu in
   9390 	hppa*64*|ia64*)
   9391 	  hardcode_direct=no
   9392 	  hardcode_shlibpath_var=no
   9393 	  ;;
   9394 	*)
   9395 	  hardcode_direct=yes
   9396 	  hardcode_direct_absolute=yes
   9397 	  export_dynamic_flag_spec='$wl-E'
   9398 
   9399 	  # hardcode_minus_L: Not really in the search PATH,
   9400 	  # but as the default location of the library.
   9401 	  hardcode_minus_L=yes
   9402 	  ;;
   9403 	esac
   9404       fi
   9405       ;;
   9406 
   9407     irix5* | irix6* | nonstopux*)
   9408       if test yes = "$GCC"; then
   9409 	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'
   9410 	# Try to use the -exported_symbol ld option, if it does not
   9411 	# work, assume that -exports_file does not work either and
   9412 	# implicitly export all symbols.
   9413 	# This should be the same for all languages, so no per-tag cache variable.
   9414 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9415 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9416 if ${lt_cv_irix_exported_symbol+:} false; then :
   9417   $as_echo_n "(cached) " >&6
   9418 else
   9419   save_LDFLAGS=$LDFLAGS
   9420 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9421 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9422 /* end confdefs.h.  */
   9423 int foo (void) { return 0; }
   9424 _ACEOF
   9425 if ac_fn_c_try_link "$LINENO"; then :
   9426   lt_cv_irix_exported_symbol=yes
   9427 else
   9428   lt_cv_irix_exported_symbol=no
   9429 fi
   9430 rm -f core conftest.err conftest.$ac_objext \
   9431     conftest$ac_exeext conftest.$ac_ext
   9432            LDFLAGS=$save_LDFLAGS
   9433 fi
   9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9435 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9436 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9437           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'
   9438 	fi
   9439       else
   9440 	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'
   9441 	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'
   9442       fi
   9443       archive_cmds_need_lc='no'
   9444       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9445       hardcode_libdir_separator=:
   9446       inherit_rpath=yes
   9447       link_all_deplibs=yes
   9448       ;;
   9449 
   9450     linux*)
   9451       case $cc_basename in
   9452       tcc*)
   9453 	# Fabrice Bellard et al's Tiny C Compiler
   9454 	ld_shlibs=yes
   9455 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9456 	;;
   9457       esac
   9458       ;;
   9459 
   9460     netbsd*)
   9461       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9462 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9463       else
   9464 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9465       fi
   9466       hardcode_libdir_flag_spec='-R$libdir'
   9467       hardcode_direct=yes
   9468       hardcode_shlibpath_var=no
   9469       ;;
   9470 
   9471     newsos6)
   9472       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9473       hardcode_direct=yes
   9474       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9475       hardcode_libdir_separator=:
   9476       hardcode_shlibpath_var=no
   9477       ;;
   9478 
   9479     *nto* | *qnx*)
   9480       ;;
   9481 
   9482     openbsd* | bitrig*)
   9483       if test -f /usr/libexec/ld.so; then
   9484 	hardcode_direct=yes
   9485 	hardcode_shlibpath_var=no
   9486 	hardcode_direct_absolute=yes
   9487 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9488 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9489 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9490 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9491 	  export_dynamic_flag_spec='$wl-E'
   9492 	else
   9493 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9494 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9495 	fi
   9496       else
   9497 	ld_shlibs=no
   9498       fi
   9499       ;;
   9500 
   9501     os2*)
   9502       hardcode_libdir_flag_spec='-L$libdir'
   9503       hardcode_minus_L=yes
   9504       allow_undefined_flag=unsupported
   9505       shrext_cmds=.dll
   9506       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9507 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9508 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9509 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9510 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9511 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9512 	emximp -o $lib $output_objdir/$libname.def'
   9513       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9514 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9515 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9516 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9517 	prefix_cmds="$SED"~
   9518 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9519 	  prefix_cmds="$prefix_cmds -e 1d";
   9520 	fi~
   9521 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9522 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9523 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9524 	emximp -o $lib $output_objdir/$libname.def'
   9525       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9526       enable_shared_with_static_runtimes=yes
   9527       ;;
   9528 
   9529     osf3*)
   9530       if test yes = "$GCC"; then
   9531 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9532 	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'
   9533       else
   9534 	allow_undefined_flag=' -expect_unresolved \*'
   9535 	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'
   9536       fi
   9537       archive_cmds_need_lc='no'
   9538       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9539       hardcode_libdir_separator=:
   9540       ;;
   9541 
   9542     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9543       if test yes = "$GCC"; then
   9544 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9545 	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'
   9546 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9547       else
   9548 	allow_undefined_flag=' -expect_unresolved \*'
   9549 	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'
   9550 	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~
   9551           $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'
   9552 
   9553 	# Both c and cxx compiler support -rpath directly
   9554 	hardcode_libdir_flag_spec='-rpath $libdir'
   9555       fi
   9556       archive_cmds_need_lc='no'
   9557       hardcode_libdir_separator=:
   9558       ;;
   9559 
   9560     solaris*)
   9561       no_undefined_flag=' -z defs'
   9562       if test yes = "$GCC"; then
   9563 	wlarc='$wl'
   9564 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9565 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9566           $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'
   9567       else
   9568 	case `$CC -V 2>&1` in
   9569 	*"Compilers 5.0"*)
   9570 	  wlarc=''
   9571 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9572 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9573             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9574 	  ;;
   9575 	*)
   9576 	  wlarc='$wl'
   9577 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9578 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9579             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9580 	  ;;
   9581 	esac
   9582       fi
   9583       hardcode_libdir_flag_spec='-R$libdir'
   9584       hardcode_shlibpath_var=no
   9585       case $host_os in
   9586       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9587       *)
   9588 	# The compiler driver will combine and reorder linker options,
   9589 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9590 	# but is careful enough not to reorder.
   9591 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9592 	if test yes = "$GCC"; then
   9593 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9594 	else
   9595 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9596 	fi
   9597 	;;
   9598       esac
   9599       link_all_deplibs=yes
   9600       ;;
   9601 
   9602     sunos4*)
   9603       if test sequent = "$host_vendor"; then
   9604 	# Use $CC to link under sequent, because it throws in some extra .o
   9605 	# files that make .init and .fini sections work.
   9606 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9607       else
   9608 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9609       fi
   9610       hardcode_libdir_flag_spec='-L$libdir'
   9611       hardcode_direct=yes
   9612       hardcode_minus_L=yes
   9613       hardcode_shlibpath_var=no
   9614       ;;
   9615 
   9616     sysv4)
   9617       case $host_vendor in
   9618 	sni)
   9619 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9620 	  hardcode_direct=yes # is this really true???
   9621 	;;
   9622 	siemens)
   9623 	  ## LD is ld it makes a PLAMLIB
   9624 	  ## CC just makes a GrossModule.
   9625 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   9626 	  reload_cmds='$CC -r -o $output$reload_objs'
   9627 	  hardcode_direct=no
   9628         ;;
   9629 	motorola)
   9630 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9631 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   9632 	;;
   9633       esac
   9634       runpath_var='LD_RUN_PATH'
   9635       hardcode_shlibpath_var=no
   9636       ;;
   9637 
   9638     sysv4.3*)
   9639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9640       hardcode_shlibpath_var=no
   9641       export_dynamic_flag_spec='-Bexport'
   9642       ;;
   9643 
   9644     sysv4*MP*)
   9645       if test -d /usr/nec; then
   9646 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9647 	hardcode_shlibpath_var=no
   9648 	runpath_var=LD_RUN_PATH
   9649 	hardcode_runpath_var=yes
   9650 	ld_shlibs=yes
   9651       fi
   9652       ;;
   9653 
   9654     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   9655       no_undefined_flag='$wl-z,text'
   9656       archive_cmds_need_lc=no
   9657       hardcode_shlibpath_var=no
   9658       runpath_var='LD_RUN_PATH'
   9659 
   9660       if test yes = "$GCC"; then
   9661 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9662 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9663       else
   9664 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9665 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9666       fi
   9667       ;;
   9668 
   9669     sysv5* | sco3.2v5* | sco5v6*)
   9670       # Note: We CANNOT use -z defs as we might desire, because we do not
   9671       # link with -lc, and that would cause any symbols used from libc to
   9672       # always be unresolved, which means just about no library would
   9673       # ever link correctly.  If we're not using GNU ld we use -z text
   9674       # though, which does catch some bad symbols but isn't as heavy-handed
   9675       # as -z defs.
   9676       no_undefined_flag='$wl-z,text'
   9677       allow_undefined_flag='$wl-z,nodefs'
   9678       archive_cmds_need_lc=no
   9679       hardcode_shlibpath_var=no
   9680       hardcode_libdir_flag_spec='$wl-R,$libdir'
   9681       hardcode_libdir_separator=':'
   9682       link_all_deplibs=yes
   9683       export_dynamic_flag_spec='$wl-Bexport'
   9684       runpath_var='LD_RUN_PATH'
   9685 
   9686       if test yes = "$GCC"; then
   9687 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9688 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9689       else
   9690 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9691 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9692       fi
   9693       ;;
   9694 
   9695     uts4*)
   9696       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9697       hardcode_libdir_flag_spec='-L$libdir'
   9698       hardcode_shlibpath_var=no
   9699       ;;
   9700 
   9701     *)
   9702       ld_shlibs=no
   9703       ;;
   9704     esac
   9705 
   9706     if test sni = "$host_vendor"; then
   9707       case $host in
   9708       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   9709 	export_dynamic_flag_spec='$wl-Blargedynsym'
   9710 	;;
   9711       esac
   9712     fi
   9713   fi
   9714 
   9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   9716 $as_echo "$ld_shlibs" >&6; }
   9717 test no = "$ld_shlibs" && can_build_shared=no
   9718 
   9719 with_gnu_ld=$with_gnu_ld
   9720 
   9721 
   9722 
   9723 
   9724 
   9725 
   9726 
   9727 
   9728 
   9729 
   9730 
   9731 
   9732 
   9733 
   9734 
   9735 #
   9736 # Do we need to explicitly link libc?
   9737 #
   9738 case "x$archive_cmds_need_lc" in
   9739 x|xyes)
   9740   # Assume -lc should be added
   9741   archive_cmds_need_lc=yes
   9742 
   9743   if test yes,yes = "$GCC,$enable_shared"; then
   9744     case $archive_cmds in
   9745     *'~'*)
   9746       # FIXME: we may have to deal with multi-command sequences.
   9747       ;;
   9748     '$CC '*)
   9749       # Test whether the compiler implicitly links with -lc since on some
   9750       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   9751       # to ld, don't add -lc before -lgcc.
   9752       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   9753 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   9754 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   9755   $as_echo_n "(cached) " >&6
   9756 else
   9757   $RM conftest*
   9758 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9759 
   9760 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9761   (eval $ac_compile) 2>&5
   9762   ac_status=$?
   9763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9764   test $ac_status = 0; } 2>conftest.err; then
   9765 	  soname=conftest
   9766 	  lib=conftest
   9767 	  libobjs=conftest.$ac_objext
   9768 	  deplibs=
   9769 	  wl=$lt_prog_compiler_wl
   9770 	  pic_flag=$lt_prog_compiler_pic
   9771 	  compiler_flags=-v
   9772 	  linker_flags=-v
   9773 	  verstring=
   9774 	  output_objdir=.
   9775 	  libname=conftest
   9776 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   9777 	  allow_undefined_flag=
   9778 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   9779   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   9780   ac_status=$?
   9781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9782   test $ac_status = 0; }
   9783 	  then
   9784 	    lt_cv_archive_cmds_need_lc=no
   9785 	  else
   9786 	    lt_cv_archive_cmds_need_lc=yes
   9787 	  fi
   9788 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   9789 	else
   9790 	  cat conftest.err 1>&5
   9791 	fi
   9792 	$RM conftest*
   9793 
   9794 fi
   9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   9796 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   9797       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   9798       ;;
   9799     esac
   9800   fi
   9801   ;;
   9802 esac
   9803 
   9804 
   9805 
   9806 
   9807 
   9808 
   9809 
   9810 
   9811 
   9812 
   9813 
   9814 
   9815 
   9816 
   9817 
   9818 
   9819 
   9820 
   9821 
   9822 
   9823 
   9824 
   9825 
   9826 
   9827 
   9828 
   9829 
   9830 
   9831 
   9832 
   9833 
   9834 
   9835 
   9836 
   9837 
   9838 
   9839 
   9840 
   9841 
   9842 
   9843 
   9844 
   9845 
   9846 
   9847 
   9848 
   9849 
   9850 
   9851 
   9852 
   9853 
   9854 
   9855 
   9856 
   9857 
   9858 
   9859 
   9860 
   9861 
   9862 
   9863 
   9864 
   9865 
   9866 
   9867 
   9868 
   9869 
   9870 
   9871 
   9872 
   9873 
   9874 
   9875 
   9876 
   9877 
   9878 
   9879 
   9880 
   9881 
   9882 
   9883 
   9884 
   9885 
   9886 
   9887 
   9888 
   9889 
   9890 
   9891 
   9892 
   9893 
   9894 
   9895 
   9896 
   9897 
   9898 
   9899 
   9900 
   9901 
   9902 
   9903 
   9904 
   9905 
   9906 
   9907 
   9908 
   9909 
   9910 
   9911 
   9912 
   9913 
   9914 
   9915 
   9916 
   9917 
   9918 
   9919 
   9920 
   9921 
   9922 
   9923 
   9924 
   9925 
   9926 
   9927 
   9928 
   9929 
   9930 
   9931 
   9932 
   9933 
   9934 
   9935 
   9936 
   9937 
   9938 
   9939 
   9940 
   9941 
   9942 
   9943 
   9944 
   9945 
   9946 
   9947 
   9948 
   9949 
   9950 
   9951 
   9952 
   9953 
   9954 
   9955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   9956 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   9957 
   9958 if test yes = "$GCC"; then
   9959   case $host_os in
   9960     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   9961     *) lt_awk_arg='/^libraries:/' ;;
   9962   esac
   9963   case $host_os in
   9964     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   9965     *) lt_sed_strip_eq='s|=/|/|g' ;;
   9966   esac
   9967   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   9968   case $lt_search_path_spec in
   9969   *\;*)
   9970     # if the path contains ";" then we assume it to be the separator
   9971     # otherwise default to the standard path separator (i.e. ":") - it is
   9972     # assumed that no part of a normal pathname contains ";" but that should
   9973     # okay in the real world where ";" in dirpaths is itself problematic.
   9974     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   9975     ;;
   9976   *)
   9977     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   9978     ;;
   9979   esac
   9980   # Ok, now we have the path, separated by spaces, we can step through it
   9981   # and add multilib dir if necessary...
   9982   lt_tmp_lt_search_path_spec=
   9983   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   9984   # ...but if some path component already ends with the multilib dir we assume
   9985   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   9986   case "$lt_multi_os_dir; $lt_search_path_spec " in
   9987   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   9988     lt_multi_os_dir=
   9989     ;;
   9990   esac
   9991   for lt_sys_path in $lt_search_path_spec; do
   9992     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   9993       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   9994     elif test -n "$lt_multi_os_dir"; then
   9995       test -d "$lt_sys_path" && \
   9996 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   9997     fi
   9998   done
   9999   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   10000 BEGIN {RS = " "; FS = "/|\n";} {
   10001   lt_foo = "";
   10002   lt_count = 0;
   10003   for (lt_i = NF; lt_i > 0; lt_i--) {
   10004     if ($lt_i != "" && $lt_i != ".") {
   10005       if ($lt_i == "..") {
   10006         lt_count++;
   10007       } else {
   10008         if (lt_count == 0) {
   10009           lt_foo = "/" $lt_i lt_foo;
   10010         } else {
   10011           lt_count--;
   10012         }
   10013       }
   10014     }
   10015   }
   10016   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10017   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10018 }'`
   10019   # AWK program above erroneously prepends '/' to C:/dos/paths
   10020   # for these hosts.
   10021   case $host_os in
   10022     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10023       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10024   esac
   10025   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10026 else
   10027   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10028 fi
   10029 library_names_spec=
   10030 libname_spec='lib$name'
   10031 soname_spec=
   10032 shrext_cmds=.so
   10033 postinstall_cmds=
   10034 postuninstall_cmds=
   10035 finish_cmds=
   10036 finish_eval=
   10037 shlibpath_var=
   10038 shlibpath_overrides_runpath=unknown
   10039 version_type=none
   10040 dynamic_linker="$host_os ld.so"
   10041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10042 need_lib_prefix=unknown
   10043 hardcode_into_libs=no
   10044 
   10045 # when you set need_version to no, make sure it does not cause -set_version
   10046 # flags to be left without arguments
   10047 need_version=unknown
   10048 
   10049 
   10050 
   10051 case $host_os in
   10052 aix3*)
   10053   version_type=linux # correct to gnu/linux during the next big refactor
   10054   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10055   shlibpath_var=LIBPATH
   10056 
   10057   # AIX 3 has no versioning support, so we append a major version to the name.
   10058   soname_spec='$libname$release$shared_ext$major'
   10059   ;;
   10060 
   10061 aix[4-9]*)
   10062   version_type=linux # correct to gnu/linux during the next big refactor
   10063   need_lib_prefix=no
   10064   need_version=no
   10065   hardcode_into_libs=yes
   10066   if test ia64 = "$host_cpu"; then
   10067     # AIX 5 supports IA64
   10068     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10069     shlibpath_var=LD_LIBRARY_PATH
   10070   else
   10071     # With GCC up to 2.95.x, collect2 would create an import file
   10072     # for dependence libraries.  The import file would start with
   10073     # the line '#! .'.  This would cause the generated library to
   10074     # depend on '.', always an invalid library.  This was fixed in
   10075     # development snapshots of GCC prior to 3.0.
   10076     case $host_os in
   10077       aix4 | aix4.[01] | aix4.[01].*)
   10078       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10079 	   echo ' yes '
   10080 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10081 	:
   10082       else
   10083 	can_build_shared=no
   10084       fi
   10085       ;;
   10086     esac
   10087     # Using Import Files as archive members, it is possible to support
   10088     # filename-based versioning of shared library archives on AIX. While
   10089     # this would work for both with and without runtime linking, it will
   10090     # prevent static linking of such archives. So we do filename-based
   10091     # shared library versioning with .so extension only, which is used
   10092     # when both runtime linking and shared linking is enabled.
   10093     # Unfortunately, runtime linking may impact performance, so we do
   10094     # not want this to be the default eventually. Also, we use the
   10095     # versioned .so libs for executables only if there is the -brtl
   10096     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10097     # To allow for filename-based versioning support, we need to create
   10098     # libNAME.so.V as an archive file, containing:
   10099     # *) an Import File, referring to the versioned filename of the
   10100     #    archive as well as the shared archive member, telling the
   10101     #    bitwidth (32 or 64) of that shared object, and providing the
   10102     #    list of exported symbols of that shared object, eventually
   10103     #    decorated with the 'weak' keyword
   10104     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10105     #    it being seen by the linker.
   10106     # At run time we better use the real file rather than another symlink,
   10107     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10108 
   10109     case $with_aix_soname,$aix_use_runtimelinking in
   10110     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10111     # soname into executable. Probably we can add versioning support to
   10112     # collect2, so additional links can be useful in future.
   10113     aix,yes) # traditional libtool
   10114       dynamic_linker='AIX unversionable lib.so'
   10115       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10116       # instead of lib<name>.a to let people know that these are not
   10117       # typical AIX shared libraries.
   10118       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10119       ;;
   10120     aix,no) # traditional AIX only
   10121       dynamic_linker='AIX lib.a(lib.so.V)'
   10122       # We preserve .a as extension for shared libraries through AIX4.2
   10123       # and later when we are not doing run time linking.
   10124       library_names_spec='$libname$release.a $libname.a'
   10125       soname_spec='$libname$release$shared_ext$major'
   10126       ;;
   10127     svr4,*) # full svr4 only
   10128       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10129       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10130       # We do not specify a path in Import Files, so LIBPATH fires.
   10131       shlibpath_overrides_runpath=yes
   10132       ;;
   10133     *,yes) # both, prefer svr4
   10134       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10135       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10136       # unpreferred sharedlib libNAME.a needs extra handling
   10137       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"'
   10138       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"'
   10139       # We do not specify a path in Import Files, so LIBPATH fires.
   10140       shlibpath_overrides_runpath=yes
   10141       ;;
   10142     *,no) # both, prefer aix
   10143       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10144       library_names_spec='$libname$release.a $libname.a'
   10145       soname_spec='$libname$release$shared_ext$major'
   10146       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10147       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)'
   10148       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"'
   10149       ;;
   10150     esac
   10151     shlibpath_var=LIBPATH
   10152   fi
   10153   ;;
   10154 
   10155 amigaos*)
   10156   case $host_cpu in
   10157   powerpc)
   10158     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10159     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10160     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10161     ;;
   10162   m68k)
   10163     library_names_spec='$libname.ixlibrary $libname.a'
   10164     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10165     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'
   10166     ;;
   10167   esac
   10168   ;;
   10169 
   10170 beos*)
   10171   library_names_spec='$libname$shared_ext'
   10172   dynamic_linker="$host_os ld.so"
   10173   shlibpath_var=LIBRARY_PATH
   10174   ;;
   10175 
   10176 bsdi[45]*)
   10177   version_type=linux # correct to gnu/linux during the next big refactor
   10178   need_version=no
   10179   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10180   soname_spec='$libname$release$shared_ext$major'
   10181   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10182   shlibpath_var=LD_LIBRARY_PATH
   10183   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10184   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10185   # the default ld.so.conf also contains /usr/contrib/lib and
   10186   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10187   # libtool to hard-code these into programs
   10188   ;;
   10189 
   10190 cygwin* | mingw* | pw32* | cegcc*)
   10191   version_type=windows
   10192   shrext_cmds=.dll
   10193   need_version=no
   10194   need_lib_prefix=no
   10195 
   10196   case $GCC,$cc_basename in
   10197   yes,*)
   10198     # gcc
   10199     library_names_spec='$libname.dll.a'
   10200     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10201     postinstall_cmds='base_file=`basename \$file`~
   10202       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10203       dldir=$destdir/`dirname \$dlpath`~
   10204       test -d \$dldir || mkdir -p \$dldir~
   10205       $install_prog $dir/$dlname \$dldir/$dlname~
   10206       chmod a+x \$dldir/$dlname~
   10207       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10208         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10209       fi'
   10210     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10211       dlpath=$dir/\$dldll~
   10212        $RM \$dlpath'
   10213     shlibpath_overrides_runpath=yes
   10214 
   10215     case $host_os in
   10216     cygwin*)
   10217       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10218       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10219 
   10220       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10221       ;;
   10222     mingw* | cegcc*)
   10223       # MinGW DLLs use traditional 'lib' prefix
   10224       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10225       ;;
   10226     pw32*)
   10227       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10228       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10229       ;;
   10230     esac
   10231     dynamic_linker='Win32 ld.exe'
   10232     ;;
   10233 
   10234   *,cl*)
   10235     # Native MSVC
   10236     libname_spec='$name'
   10237     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10238     library_names_spec='$libname.dll.lib'
   10239 
   10240     case $build_os in
   10241     mingw*)
   10242       sys_lib_search_path_spec=
   10243       lt_save_ifs=$IFS
   10244       IFS=';'
   10245       for lt_path in $LIB
   10246       do
   10247         IFS=$lt_save_ifs
   10248         # Let DOS variable expansion print the short 8.3 style file name.
   10249         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10250         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10251       done
   10252       IFS=$lt_save_ifs
   10253       # Convert to MSYS style.
   10254       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   10255       ;;
   10256     cygwin*)
   10257       # Convert to unix form, then to dos form, then back to unix form
   10258       # but this time dos style (no spaces!) so that the unix form looks
   10259       # like /cygdrive/c/PROGRA~1:/cygdr...
   10260       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10261       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10262       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10263       ;;
   10264     *)
   10265       sys_lib_search_path_spec=$LIB
   10266       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10267         # It is most probably a Windows format PATH.
   10268         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10269       else
   10270         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10271       fi
   10272       # FIXME: find the short name or the path components, as spaces are
   10273       # common. (e.g. "Program Files" -> "PROGRA~1")
   10274       ;;
   10275     esac
   10276 
   10277     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10278     postinstall_cmds='base_file=`basename \$file`~
   10279       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10280       dldir=$destdir/`dirname \$dlpath`~
   10281       test -d \$dldir || mkdir -p \$dldir~
   10282       $install_prog $dir/$dlname \$dldir/$dlname'
   10283     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10284       dlpath=$dir/\$dldll~
   10285        $RM \$dlpath'
   10286     shlibpath_overrides_runpath=yes
   10287     dynamic_linker='Win32 link.exe'
   10288     ;;
   10289 
   10290   *)
   10291     # Assume MSVC wrapper
   10292     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10293     dynamic_linker='Win32 ld.exe'
   10294     ;;
   10295   esac
   10296   # FIXME: first we should search . and the directory the executable is in
   10297   shlibpath_var=PATH
   10298   ;;
   10299 
   10300 darwin* | rhapsody*)
   10301   dynamic_linker="$host_os dyld"
   10302   version_type=darwin
   10303   need_lib_prefix=no
   10304   need_version=no
   10305   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10306   soname_spec='$libname$release$major$shared_ext'
   10307   shlibpath_overrides_runpath=yes
   10308   shlibpath_var=DYLD_LIBRARY_PATH
   10309   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10310 
   10311   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10312   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10313   ;;
   10314 
   10315 dgux*)
   10316   version_type=linux # correct to gnu/linux during the next big refactor
   10317   need_lib_prefix=no
   10318   need_version=no
   10319   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10320   soname_spec='$libname$release$shared_ext$major'
   10321   shlibpath_var=LD_LIBRARY_PATH
   10322   ;;
   10323 
   10324 freebsd* | dragonfly*)
   10325   # DragonFly does not have aout.  When/if they implement a new
   10326   # versioning mechanism, adjust this.
   10327   if test -x /usr/bin/objformat; then
   10328     objformat=`/usr/bin/objformat`
   10329   else
   10330     case $host_os in
   10331     freebsd[23].*) objformat=aout ;;
   10332     *) objformat=elf ;;
   10333     esac
   10334   fi
   10335   version_type=freebsd-$objformat
   10336   case $version_type in
   10337     freebsd-elf*)
   10338       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10339       soname_spec='$libname$release$shared_ext$major'
   10340       need_version=no
   10341       need_lib_prefix=no
   10342       ;;
   10343     freebsd-*)
   10344       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10345       need_version=yes
   10346       ;;
   10347   esac
   10348   shlibpath_var=LD_LIBRARY_PATH
   10349   case $host_os in
   10350   freebsd2.*)
   10351     shlibpath_overrides_runpath=yes
   10352     ;;
   10353   freebsd3.[01]* | freebsdelf3.[01]*)
   10354     shlibpath_overrides_runpath=yes
   10355     hardcode_into_libs=yes
   10356     ;;
   10357   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10358   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10359     shlibpath_overrides_runpath=no
   10360     hardcode_into_libs=yes
   10361     ;;
   10362   *) # from 4.6 on, and DragonFly
   10363     shlibpath_overrides_runpath=yes
   10364     hardcode_into_libs=yes
   10365     ;;
   10366   esac
   10367   ;;
   10368 
   10369 haiku*)
   10370   version_type=linux # correct to gnu/linux during the next big refactor
   10371   need_lib_prefix=no
   10372   need_version=no
   10373   dynamic_linker="$host_os runtime_loader"
   10374   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10375   soname_spec='$libname$release$shared_ext$major'
   10376   shlibpath_var=LIBRARY_PATH
   10377   shlibpath_overrides_runpath=no
   10378   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10379   hardcode_into_libs=yes
   10380   ;;
   10381 
   10382 hpux9* | hpux10* | hpux11*)
   10383   # Give a soname corresponding to the major version so that dld.sl refuses to
   10384   # link against other versions.
   10385   version_type=sunos
   10386   need_lib_prefix=no
   10387   need_version=no
   10388   case $host_cpu in
   10389   ia64*)
   10390     shrext_cmds='.so'
   10391     hardcode_into_libs=yes
   10392     dynamic_linker="$host_os dld.so"
   10393     shlibpath_var=LD_LIBRARY_PATH
   10394     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10395     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10396     soname_spec='$libname$release$shared_ext$major'
   10397     if test 32 = "$HPUX_IA64_MODE"; then
   10398       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10399       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10400     else
   10401       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10402       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10403     fi
   10404     ;;
   10405   hppa*64*)
   10406     shrext_cmds='.sl'
   10407     hardcode_into_libs=yes
   10408     dynamic_linker="$host_os dld.sl"
   10409     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10410     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10411     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10412     soname_spec='$libname$release$shared_ext$major'
   10413     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10414     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10415     ;;
   10416   *)
   10417     shrext_cmds='.sl'
   10418     dynamic_linker="$host_os dld.sl"
   10419     shlibpath_var=SHLIB_PATH
   10420     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10421     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10422     soname_spec='$libname$release$shared_ext$major'
   10423     ;;
   10424   esac
   10425   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10426   postinstall_cmds='chmod 555 $lib'
   10427   # or fails outright, so override atomically:
   10428   install_override_mode=555
   10429   ;;
   10430 
   10431 interix[3-9]*)
   10432   version_type=linux # correct to gnu/linux during the next big refactor
   10433   need_lib_prefix=no
   10434   need_version=no
   10435   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10436   soname_spec='$libname$release$shared_ext$major'
   10437   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10438   shlibpath_var=LD_LIBRARY_PATH
   10439   shlibpath_overrides_runpath=no
   10440   hardcode_into_libs=yes
   10441   ;;
   10442 
   10443 irix5* | irix6* | nonstopux*)
   10444   case $host_os in
   10445     nonstopux*) version_type=nonstopux ;;
   10446     *)
   10447 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10448 		version_type=linux # correct to gnu/linux during the next big refactor
   10449 	else
   10450 		version_type=irix
   10451 	fi ;;
   10452   esac
   10453   need_lib_prefix=no
   10454   need_version=no
   10455   soname_spec='$libname$release$shared_ext$major'
   10456   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10457   case $host_os in
   10458   irix5* | nonstopux*)
   10459     libsuff= shlibsuff=
   10460     ;;
   10461   *)
   10462     case $LD in # libtool.m4 will add one of these switches to LD
   10463     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10464       libsuff= shlibsuff= libmagic=32-bit;;
   10465     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10466       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10467     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10468       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10469     *) libsuff= shlibsuff= libmagic=never-match;;
   10470     esac
   10471     ;;
   10472   esac
   10473   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10474   shlibpath_overrides_runpath=no
   10475   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10476   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10477   hardcode_into_libs=yes
   10478   ;;
   10479 
   10480 # No shared lib support for Linux oldld, aout, or coff.
   10481 linux*oldld* | linux*aout* | linux*coff*)
   10482   dynamic_linker=no
   10483   ;;
   10484 
   10485 linux*android*)
   10486   version_type=none # Android doesn't support versioned libraries.
   10487   need_lib_prefix=no
   10488   need_version=no
   10489   library_names_spec='$libname$release$shared_ext'
   10490   soname_spec='$libname$release$shared_ext'
   10491   finish_cmds=
   10492   shlibpath_var=LD_LIBRARY_PATH
   10493   shlibpath_overrides_runpath=yes
   10494 
   10495   # This implies no fast_install, which is unacceptable.
   10496   # Some rework will be needed to allow for fast_install
   10497   # before this can be enabled.
   10498   hardcode_into_libs=yes
   10499 
   10500   dynamic_linker='Android linker'
   10501   # Don't embed -rpath directories since the linker doesn't support them.
   10502   hardcode_libdir_flag_spec='-L$libdir'
   10503   ;;
   10504 
   10505 # This must be glibc/ELF.
   10506 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10507   version_type=linux # correct to gnu/linux during the next big refactor
   10508   need_lib_prefix=no
   10509   need_version=no
   10510   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10511   soname_spec='$libname$release$shared_ext$major'
   10512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10513   shlibpath_var=LD_LIBRARY_PATH
   10514   shlibpath_overrides_runpath=no
   10515 
   10516   # Some binutils ld are patched to set DT_RUNPATH
   10517   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10518   $as_echo_n "(cached) " >&6
   10519 else
   10520   lt_cv_shlibpath_overrides_runpath=no
   10521     save_LDFLAGS=$LDFLAGS
   10522     save_libdir=$libdir
   10523     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10524 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10526 /* end confdefs.h.  */
   10527 
   10528 int
   10529 main ()
   10530 {
   10531 
   10532   ;
   10533   return 0;
   10534 }
   10535 _ACEOF
   10536 if ac_fn_c_try_link "$LINENO"; then :
   10537   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10538   lt_cv_shlibpath_overrides_runpath=yes
   10539 fi
   10540 fi
   10541 rm -f core conftest.err conftest.$ac_objext \
   10542     conftest$ac_exeext conftest.$ac_ext
   10543     LDFLAGS=$save_LDFLAGS
   10544     libdir=$save_libdir
   10545 
   10546 fi
   10547 
   10548   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10549 
   10550   # This implies no fast_install, which is unacceptable.
   10551   # Some rework will be needed to allow for fast_install
   10552   # before this can be enabled.
   10553   hardcode_into_libs=yes
   10554 
   10555   # Ideally, we could use ldconfig to report *all* directores which are
   10556   # searched for libraries, however this is still not possible.  Aside from not
   10557   # being certain /sbin/ldconfig is available, command
   10558   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10559   # even though it is searched at run-time.  Try to do the best guess by
   10560   # appending ld.so.conf contents (and includes) to the search path.
   10561   if test -f /etc/ld.so.conf; then
   10562     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' ' '`
   10563     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10564   fi
   10565 
   10566   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10567   # powerpc, because MkLinux only supported shared libraries with the
   10568   # GNU dynamic linker.  Since this was broken with cross compilers,
   10569   # most powerpc-linux boxes support dynamic linking these days and
   10570   # people can always --disable-shared, the test was removed, and we
   10571   # assume the GNU/Linux dynamic linker is in use.
   10572   dynamic_linker='GNU/Linux ld.so'
   10573   ;;
   10574 
   10575 netbsd*)
   10576   version_type=sunos
   10577   need_lib_prefix=no
   10578   need_version=no
   10579   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10580     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10581     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10582     dynamic_linker='NetBSD (a.out) ld.so'
   10583   else
   10584     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10585     soname_spec='$libname$release$shared_ext$major'
   10586     dynamic_linker='NetBSD ld.elf_so'
   10587   fi
   10588   shlibpath_var=LD_LIBRARY_PATH
   10589   shlibpath_overrides_runpath=yes
   10590   hardcode_into_libs=yes
   10591   ;;
   10592 
   10593 newsos6)
   10594   version_type=linux # correct to gnu/linux during the next big refactor
   10595   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10596   shlibpath_var=LD_LIBRARY_PATH
   10597   shlibpath_overrides_runpath=yes
   10598   ;;
   10599 
   10600 *nto* | *qnx*)
   10601   version_type=qnx
   10602   need_lib_prefix=no
   10603   need_version=no
   10604   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10605   soname_spec='$libname$release$shared_ext$major'
   10606   shlibpath_var=LD_LIBRARY_PATH
   10607   shlibpath_overrides_runpath=no
   10608   hardcode_into_libs=yes
   10609   dynamic_linker='ldqnx.so'
   10610   ;;
   10611 
   10612 openbsd* | bitrig*)
   10613   version_type=sunos
   10614   sys_lib_dlsearch_path_spec=/usr/lib
   10615   need_lib_prefix=no
   10616   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10617     need_version=no
   10618   else
   10619     need_version=yes
   10620   fi
   10621   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10622   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10623   shlibpath_var=LD_LIBRARY_PATH
   10624   shlibpath_overrides_runpath=yes
   10625   ;;
   10626 
   10627 os2*)
   10628   libname_spec='$name'
   10629   version_type=windows
   10630   shrext_cmds=.dll
   10631   need_version=no
   10632   need_lib_prefix=no
   10633   # OS/2 can only load a DLL with a base name of 8 characters or less.
   10634   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   10635     v=$($ECHO $release$versuffix | tr -d .-);
   10636     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   10637     $ECHO $n$v`$shared_ext'
   10638   library_names_spec='${libname}_dll.$libext'
   10639   dynamic_linker='OS/2 ld.exe'
   10640   shlibpath_var=BEGINLIBPATH
   10641   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10642   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   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     chmod a+x \$dldir/$dlname~
   10649     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10650       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10651     fi'
   10652   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   10653     dlpath=$dir/\$dldll~
   10654     $RM \$dlpath'
   10655   ;;
   10656 
   10657 osf3* | osf4* | osf5*)
   10658   version_type=osf
   10659   need_lib_prefix=no
   10660   need_version=no
   10661   soname_spec='$libname$release$shared_ext$major'
   10662   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10663   shlibpath_var=LD_LIBRARY_PATH
   10664   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   10665   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10666   ;;
   10667 
   10668 rdos*)
   10669   dynamic_linker=no
   10670   ;;
   10671 
   10672 solaris*)
   10673   version_type=linux # correct to gnu/linux during the next big refactor
   10674   need_lib_prefix=no
   10675   need_version=no
   10676   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10677   soname_spec='$libname$release$shared_ext$major'
   10678   shlibpath_var=LD_LIBRARY_PATH
   10679   shlibpath_overrides_runpath=yes
   10680   hardcode_into_libs=yes
   10681   # ldd complains unless libraries are executable
   10682   postinstall_cmds='chmod +x $lib'
   10683   ;;
   10684 
   10685 sunos4*)
   10686   version_type=sunos
   10687   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10688   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   10689   shlibpath_var=LD_LIBRARY_PATH
   10690   shlibpath_overrides_runpath=yes
   10691   if test yes = "$with_gnu_ld"; then
   10692     need_lib_prefix=no
   10693   fi
   10694   need_version=yes
   10695   ;;
   10696 
   10697 sysv4 | sysv4.3*)
   10698   version_type=linux # correct to gnu/linux during the next big refactor
   10699   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10700   soname_spec='$libname$release$shared_ext$major'
   10701   shlibpath_var=LD_LIBRARY_PATH
   10702   case $host_vendor in
   10703     sni)
   10704       shlibpath_overrides_runpath=no
   10705       need_lib_prefix=no
   10706       runpath_var=LD_RUN_PATH
   10707       ;;
   10708     siemens)
   10709       need_lib_prefix=no
   10710       ;;
   10711     motorola)
   10712       need_lib_prefix=no
   10713       need_version=no
   10714       shlibpath_overrides_runpath=no
   10715       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   10716       ;;
   10717   esac
   10718   ;;
   10719 
   10720 sysv4*MP*)
   10721   if test -d /usr/nec; then
   10722     version_type=linux # correct to gnu/linux during the next big refactor
   10723     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   10724     soname_spec='$libname$shared_ext.$major'
   10725     shlibpath_var=LD_LIBRARY_PATH
   10726   fi
   10727   ;;
   10728 
   10729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10730   version_type=sco
   10731   need_lib_prefix=no
   10732   need_version=no
   10733   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   10734   soname_spec='$libname$release$shared_ext$major'
   10735   shlibpath_var=LD_LIBRARY_PATH
   10736   shlibpath_overrides_runpath=yes
   10737   hardcode_into_libs=yes
   10738   if test yes = "$with_gnu_ld"; then
   10739     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   10740   else
   10741     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   10742     case $host_os in
   10743       sco3.2v5*)
   10744         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   10745 	;;
   10746     esac
   10747   fi
   10748   sys_lib_dlsearch_path_spec='/usr/lib'
   10749   ;;
   10750 
   10751 tpf*)
   10752   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   10753   version_type=linux # correct to gnu/linux during the next big refactor
   10754   need_lib_prefix=no
   10755   need_version=no
   10756   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10757   shlibpath_var=LD_LIBRARY_PATH
   10758   shlibpath_overrides_runpath=no
   10759   hardcode_into_libs=yes
   10760   ;;
   10761 
   10762 uts4*)
   10763   version_type=linux # correct to gnu/linux during the next big refactor
   10764   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10765   soname_spec='$libname$release$shared_ext$major'
   10766   shlibpath_var=LD_LIBRARY_PATH
   10767   ;;
   10768 
   10769 *)
   10770   dynamic_linker=no
   10771   ;;
   10772 esac
   10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   10774 $as_echo "$dynamic_linker" >&6; }
   10775 test no = "$dynamic_linker" && can_build_shared=no
   10776 
   10777 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   10778 if test yes = "$GCC"; then
   10779   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   10780 fi
   10781 
   10782 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   10783   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   10784 fi
   10785 
   10786 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   10787   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   10788 fi
   10789 
   10790 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   10791 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   10792 
   10793 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   10794 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   10795 
   10796 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   10797 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   10798 
   10799 
   10800 
   10801 
   10802 
   10803 
   10804 
   10805 
   10806 
   10807 
   10808 
   10809 
   10810 
   10811 
   10812 
   10813 
   10814 
   10815 
   10816 
   10817 
   10818 
   10819 
   10820 
   10821 
   10822 
   10823 
   10824 
   10825 
   10826 
   10827 
   10828 
   10829 
   10830 
   10831 
   10832 
   10833 
   10834 
   10835 
   10836 
   10837 
   10838 
   10839 
   10840 
   10841 
   10842 
   10843 
   10844 
   10845 
   10846 
   10847 
   10848 
   10849 
   10850 
   10851 
   10852 
   10853 
   10854 
   10855 
   10856 
   10857 
   10858 
   10859 
   10860 
   10861 
   10862 
   10863 
   10864 
   10865 
   10866 
   10867 
   10868 
   10869 
   10870 
   10871 
   10872 
   10873 
   10874 
   10875 
   10876 
   10877 
   10878 
   10879 
   10880 
   10881 
   10882 
   10883 
   10884 
   10885 
   10886 
   10887 
   10888 
   10889 
   10890 
   10891 
   10892 
   10893 
   10894 
   10895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   10896 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   10897 hardcode_action=
   10898 if test -n "$hardcode_libdir_flag_spec" ||
   10899    test -n "$runpath_var" ||
   10900    test yes = "$hardcode_automatic"; then
   10901 
   10902   # We can hardcode non-existent directories.
   10903   if test no != "$hardcode_direct" &&
   10904      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   10905      # have to relink, otherwise we might link with an installed library
   10906      # when we should be linking with a yet-to-be-installed one
   10907      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   10908      test no != "$hardcode_minus_L"; then
   10909     # Linking always hardcodes the temporary library directory.
   10910     hardcode_action=relink
   10911   else
   10912     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   10913     hardcode_action=immediate
   10914   fi
   10915 else
   10916   # We cannot hardcode anything, or else we can only hardcode existing
   10917   # directories.
   10918   hardcode_action=unsupported
   10919 fi
   10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   10921 $as_echo "$hardcode_action" >&6; }
   10922 
   10923 if test relink = "$hardcode_action" ||
   10924    test yes = "$inherit_rpath"; then
   10925   # Fast installation is not supported
   10926   enable_fast_install=no
   10927 elif test yes = "$shlibpath_overrides_runpath" ||
   10928      test no = "$enable_shared"; then
   10929   # Fast installation is not necessary
   10930   enable_fast_install=needless
   10931 fi
   10932 
   10933 
   10934 
   10935 
   10936 
   10937 
   10938   if test yes != "$enable_dlopen"; then
   10939   enable_dlopen=unknown
   10940   enable_dlopen_self=unknown
   10941   enable_dlopen_self_static=unknown
   10942 else
   10943   lt_cv_dlopen=no
   10944   lt_cv_dlopen_libs=
   10945 
   10946   case $host_os in
   10947   beos*)
   10948     lt_cv_dlopen=load_add_on
   10949     lt_cv_dlopen_libs=
   10950     lt_cv_dlopen_self=yes
   10951     ;;
   10952 
   10953   mingw* | pw32* | cegcc*)
   10954     lt_cv_dlopen=LoadLibrary
   10955     lt_cv_dlopen_libs=
   10956     ;;
   10957 
   10958   cygwin*)
   10959     lt_cv_dlopen=dlopen
   10960     lt_cv_dlopen_libs=
   10961     ;;
   10962 
   10963   darwin*)
   10964     # if libdl is installed we need to link against it
   10965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   10966 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   10967 if ${ac_cv_lib_dl_dlopen+:} false; then :
   10968   $as_echo_n "(cached) " >&6
   10969 else
   10970   ac_check_lib_save_LIBS=$LIBS
   10971 LIBS="-ldl  $LIBS"
   10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10973 /* end confdefs.h.  */
   10974 
   10975 /* Override any GCC internal prototype to avoid an error.
   10976    Use char because int might match the return type of a GCC
   10977    builtin and then its argument prototype would still apply.  */
   10978 #ifdef __cplusplus
   10979 extern "C"
   10980 #endif
   10981 char dlopen ();
   10982 int
   10983 main ()
   10984 {
   10985 return dlopen ();
   10986   ;
   10987   return 0;
   10988 }
   10989 _ACEOF
   10990 if ac_fn_c_try_link "$LINENO"; then :
   10991   ac_cv_lib_dl_dlopen=yes
   10992 else
   10993   ac_cv_lib_dl_dlopen=no
   10994 fi
   10995 rm -f core conftest.err conftest.$ac_objext \
   10996     conftest$ac_exeext conftest.$ac_ext
   10997 LIBS=$ac_check_lib_save_LIBS
   10998 fi
   10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11000 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11001 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11002   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11003 else
   11004 
   11005     lt_cv_dlopen=dyld
   11006     lt_cv_dlopen_libs=
   11007     lt_cv_dlopen_self=yes
   11008 
   11009 fi
   11010 
   11011     ;;
   11012 
   11013   tpf*)
   11014     # Don't try to run any link tests for TPF.  We know it's impossible
   11015     # because TPF is a cross-compiler, and we know how we open DSOs.
   11016     lt_cv_dlopen=dlopen
   11017     lt_cv_dlopen_libs=
   11018     lt_cv_dlopen_self=no
   11019     ;;
   11020 
   11021   *)
   11022     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11023 if test "x$ac_cv_func_shl_load" = xyes; then :
   11024   lt_cv_dlopen=shl_load
   11025 else
   11026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11027 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11028 if ${ac_cv_lib_dld_shl_load+:} false; then :
   11029   $as_echo_n "(cached) " >&6
   11030 else
   11031   ac_check_lib_save_LIBS=$LIBS
   11032 LIBS="-ldld  $LIBS"
   11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11034 /* end confdefs.h.  */
   11035 
   11036 /* Override any GCC internal prototype to avoid an error.
   11037    Use char because int might match the return type of a GCC
   11038    builtin and then its argument prototype would still apply.  */
   11039 #ifdef __cplusplus
   11040 extern "C"
   11041 #endif
   11042 char shl_load ();
   11043 int
   11044 main ()
   11045 {
   11046 return shl_load ();
   11047   ;
   11048   return 0;
   11049 }
   11050 _ACEOF
   11051 if ac_fn_c_try_link "$LINENO"; then :
   11052   ac_cv_lib_dld_shl_load=yes
   11053 else
   11054   ac_cv_lib_dld_shl_load=no
   11055 fi
   11056 rm -f core conftest.err conftest.$ac_objext \
   11057     conftest$ac_exeext conftest.$ac_ext
   11058 LIBS=$ac_check_lib_save_LIBS
   11059 fi
   11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11061 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11062 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11063   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11064 else
   11065   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11066 if test "x$ac_cv_func_dlopen" = xyes; then :
   11067   lt_cv_dlopen=dlopen
   11068 else
   11069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11070 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11071 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11072   $as_echo_n "(cached) " >&6
   11073 else
   11074   ac_check_lib_save_LIBS=$LIBS
   11075 LIBS="-ldl  $LIBS"
   11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11077 /* end confdefs.h.  */
   11078 
   11079 /* Override any GCC internal prototype to avoid an error.
   11080    Use char because int might match the return type of a GCC
   11081    builtin and then its argument prototype would still apply.  */
   11082 #ifdef __cplusplus
   11083 extern "C"
   11084 #endif
   11085 char dlopen ();
   11086 int
   11087 main ()
   11088 {
   11089 return dlopen ();
   11090   ;
   11091   return 0;
   11092 }
   11093 _ACEOF
   11094 if ac_fn_c_try_link "$LINENO"; then :
   11095   ac_cv_lib_dl_dlopen=yes
   11096 else
   11097   ac_cv_lib_dl_dlopen=no
   11098 fi
   11099 rm -f core conftest.err conftest.$ac_objext \
   11100     conftest$ac_exeext conftest.$ac_ext
   11101 LIBS=$ac_check_lib_save_LIBS
   11102 fi
   11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11104 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11105 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11106   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11107 else
   11108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11109 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11110 if ${ac_cv_lib_svld_dlopen+:} false; then :
   11111   $as_echo_n "(cached) " >&6
   11112 else
   11113   ac_check_lib_save_LIBS=$LIBS
   11114 LIBS="-lsvld  $LIBS"
   11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11116 /* end confdefs.h.  */
   11117 
   11118 /* Override any GCC internal prototype to avoid an error.
   11119    Use char because int might match the return type of a GCC
   11120    builtin and then its argument prototype would still apply.  */
   11121 #ifdef __cplusplus
   11122 extern "C"
   11123 #endif
   11124 char dlopen ();
   11125 int
   11126 main ()
   11127 {
   11128 return dlopen ();
   11129   ;
   11130   return 0;
   11131 }
   11132 _ACEOF
   11133 if ac_fn_c_try_link "$LINENO"; then :
   11134   ac_cv_lib_svld_dlopen=yes
   11135 else
   11136   ac_cv_lib_svld_dlopen=no
   11137 fi
   11138 rm -f core conftest.err conftest.$ac_objext \
   11139     conftest$ac_exeext conftest.$ac_ext
   11140 LIBS=$ac_check_lib_save_LIBS
   11141 fi
   11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11143 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11144 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11145   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11146 else
   11147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11148 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11149 if ${ac_cv_lib_dld_dld_link+:} false; then :
   11150   $as_echo_n "(cached) " >&6
   11151 else
   11152   ac_check_lib_save_LIBS=$LIBS
   11153 LIBS="-ldld  $LIBS"
   11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11155 /* end confdefs.h.  */
   11156 
   11157 /* Override any GCC internal prototype to avoid an error.
   11158    Use char because int might match the return type of a GCC
   11159    builtin and then its argument prototype would still apply.  */
   11160 #ifdef __cplusplus
   11161 extern "C"
   11162 #endif
   11163 char dld_link ();
   11164 int
   11165 main ()
   11166 {
   11167 return dld_link ();
   11168   ;
   11169   return 0;
   11170 }
   11171 _ACEOF
   11172 if ac_fn_c_try_link "$LINENO"; then :
   11173   ac_cv_lib_dld_dld_link=yes
   11174 else
   11175   ac_cv_lib_dld_dld_link=no
   11176 fi
   11177 rm -f core conftest.err conftest.$ac_objext \
   11178     conftest$ac_exeext conftest.$ac_ext
   11179 LIBS=$ac_check_lib_save_LIBS
   11180 fi
   11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11182 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11183 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11184   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11185 fi
   11186 
   11187 
   11188 fi
   11189 
   11190 
   11191 fi
   11192 
   11193 
   11194 fi
   11195 
   11196 
   11197 fi
   11198 
   11199 
   11200 fi
   11201 
   11202     ;;
   11203   esac
   11204 
   11205   if test no = "$lt_cv_dlopen"; then
   11206     enable_dlopen=no
   11207   else
   11208     enable_dlopen=yes
   11209   fi
   11210 
   11211   case $lt_cv_dlopen in
   11212   dlopen)
   11213     save_CPPFLAGS=$CPPFLAGS
   11214     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11215 
   11216     save_LDFLAGS=$LDFLAGS
   11217     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11218 
   11219     save_LIBS=$LIBS
   11220     LIBS="$lt_cv_dlopen_libs $LIBS"
   11221 
   11222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11223 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11224 if ${lt_cv_dlopen_self+:} false; then :
   11225   $as_echo_n "(cached) " >&6
   11226 else
   11227   	  if test yes = "$cross_compiling"; then :
   11228   lt_cv_dlopen_self=cross
   11229 else
   11230   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11231   lt_status=$lt_dlunknown
   11232   cat > conftest.$ac_ext <<_LT_EOF
   11233 #line $LINENO "configure"
   11234 #include "confdefs.h"
   11235 
   11236 #if HAVE_DLFCN_H
   11237 #include <dlfcn.h>
   11238 #endif
   11239 
   11240 #include <stdio.h>
   11241 
   11242 #ifdef RTLD_GLOBAL
   11243 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11244 #else
   11245 #  ifdef DL_GLOBAL
   11246 #    define LT_DLGLOBAL		DL_GLOBAL
   11247 #  else
   11248 #    define LT_DLGLOBAL		0
   11249 #  endif
   11250 #endif
   11251 
   11252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11253    find out it does not work in some platform. */
   11254 #ifndef LT_DLLAZY_OR_NOW
   11255 #  ifdef RTLD_LAZY
   11256 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11257 #  else
   11258 #    ifdef DL_LAZY
   11259 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11260 #    else
   11261 #      ifdef RTLD_NOW
   11262 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11263 #      else
   11264 #        ifdef DL_NOW
   11265 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11266 #        else
   11267 #          define LT_DLLAZY_OR_NOW	0
   11268 #        endif
   11269 #      endif
   11270 #    endif
   11271 #  endif
   11272 #endif
   11273 
   11274 /* When -fvisibility=hidden is used, assume the code has been annotated
   11275    correspondingly for the symbols needed.  */
   11276 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11277 int fnord () __attribute__((visibility("default")));
   11278 #endif
   11279 
   11280 int fnord () { return 42; }
   11281 int main ()
   11282 {
   11283   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11284   int status = $lt_dlunknown;
   11285 
   11286   if (self)
   11287     {
   11288       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11289       else
   11290         {
   11291 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11292           else puts (dlerror ());
   11293 	}
   11294       /* dlclose (self); */
   11295     }
   11296   else
   11297     puts (dlerror ());
   11298 
   11299   return status;
   11300 }
   11301 _LT_EOF
   11302   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11303   (eval $ac_link) 2>&5
   11304   ac_status=$?
   11305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11306   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11307     (./conftest; exit; ) >&5 2>/dev/null
   11308     lt_status=$?
   11309     case x$lt_status in
   11310       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11311       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11312       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11313     esac
   11314   else :
   11315     # compilation failed
   11316     lt_cv_dlopen_self=no
   11317   fi
   11318 fi
   11319 rm -fr conftest*
   11320 
   11321 
   11322 fi
   11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11324 $as_echo "$lt_cv_dlopen_self" >&6; }
   11325 
   11326     if test yes = "$lt_cv_dlopen_self"; then
   11327       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11328       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11329 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11330 if ${lt_cv_dlopen_self_static+:} false; then :
   11331   $as_echo_n "(cached) " >&6
   11332 else
   11333   	  if test yes = "$cross_compiling"; then :
   11334   lt_cv_dlopen_self_static=cross
   11335 else
   11336   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11337   lt_status=$lt_dlunknown
   11338   cat > conftest.$ac_ext <<_LT_EOF
   11339 #line $LINENO "configure"
   11340 #include "confdefs.h"
   11341 
   11342 #if HAVE_DLFCN_H
   11343 #include <dlfcn.h>
   11344 #endif
   11345 
   11346 #include <stdio.h>
   11347 
   11348 #ifdef RTLD_GLOBAL
   11349 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11350 #else
   11351 #  ifdef DL_GLOBAL
   11352 #    define LT_DLGLOBAL		DL_GLOBAL
   11353 #  else
   11354 #    define LT_DLGLOBAL		0
   11355 #  endif
   11356 #endif
   11357 
   11358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11359    find out it does not work in some platform. */
   11360 #ifndef LT_DLLAZY_OR_NOW
   11361 #  ifdef RTLD_LAZY
   11362 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11363 #  else
   11364 #    ifdef DL_LAZY
   11365 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11366 #    else
   11367 #      ifdef RTLD_NOW
   11368 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11369 #      else
   11370 #        ifdef DL_NOW
   11371 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11372 #        else
   11373 #          define LT_DLLAZY_OR_NOW	0
   11374 #        endif
   11375 #      endif
   11376 #    endif
   11377 #  endif
   11378 #endif
   11379 
   11380 /* When -fvisibility=hidden is used, assume the code has been annotated
   11381    correspondingly for the symbols needed.  */
   11382 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11383 int fnord () __attribute__((visibility("default")));
   11384 #endif
   11385 
   11386 int fnord () { return 42; }
   11387 int main ()
   11388 {
   11389   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11390   int status = $lt_dlunknown;
   11391 
   11392   if (self)
   11393     {
   11394       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11395       else
   11396         {
   11397 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11398           else puts (dlerror ());
   11399 	}
   11400       /* dlclose (self); */
   11401     }
   11402   else
   11403     puts (dlerror ());
   11404 
   11405   return status;
   11406 }
   11407 _LT_EOF
   11408   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11409   (eval $ac_link) 2>&5
   11410   ac_status=$?
   11411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11412   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11413     (./conftest; exit; ) >&5 2>/dev/null
   11414     lt_status=$?
   11415     case x$lt_status in
   11416       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11417       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11418       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11419     esac
   11420   else :
   11421     # compilation failed
   11422     lt_cv_dlopen_self_static=no
   11423   fi
   11424 fi
   11425 rm -fr conftest*
   11426 
   11427 
   11428 fi
   11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11430 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11431     fi
   11432 
   11433     CPPFLAGS=$save_CPPFLAGS
   11434     LDFLAGS=$save_LDFLAGS
   11435     LIBS=$save_LIBS
   11436     ;;
   11437   esac
   11438 
   11439   case $lt_cv_dlopen_self in
   11440   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11441   *) enable_dlopen_self=unknown ;;
   11442   esac
   11443 
   11444   case $lt_cv_dlopen_self_static in
   11445   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11446   *) enable_dlopen_self_static=unknown ;;
   11447   esac
   11448 fi
   11449 
   11450 
   11451 
   11452 
   11453 
   11454 
   11455 
   11456 
   11457 
   11458 
   11459 
   11460 
   11461 
   11462 
   11463 
   11464 
   11465 
   11466 striplib=
   11467 old_striplib=
   11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11469 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11470 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11471   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11472   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11474 $as_echo "yes" >&6; }
   11475 else
   11476 # FIXME - insert some real tests, host_os isn't really good enough
   11477   case $host_os in
   11478   darwin*)
   11479     if test -n "$STRIP"; then
   11480       striplib="$STRIP -x"
   11481       old_striplib="$STRIP -S"
   11482       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11483 $as_echo "yes" >&6; }
   11484     else
   11485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11486 $as_echo "no" >&6; }
   11487     fi
   11488     ;;
   11489   *)
   11490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11491 $as_echo "no" >&6; }
   11492     ;;
   11493   esac
   11494 fi
   11495 
   11496 
   11497 
   11498 
   11499 
   11500 
   11501 
   11502 
   11503 
   11504 
   11505 
   11506 
   11507   # Report what library types will actually be built
   11508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11509 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11511 $as_echo "$can_build_shared" >&6; }
   11512 
   11513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11514 $as_echo_n "checking whether to build shared libraries... " >&6; }
   11515   test no = "$can_build_shared" && enable_shared=no
   11516 
   11517   # On AIX, shared libraries and static libraries use the same namespace, and
   11518   # are all built from PIC.
   11519   case $host_os in
   11520   aix3*)
   11521     test yes = "$enable_shared" && enable_static=no
   11522     if test -n "$RANLIB"; then
   11523       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11524       postinstall_cmds='$RANLIB $lib'
   11525     fi
   11526     ;;
   11527 
   11528   aix[4-9]*)
   11529     if test ia64 != "$host_cpu"; then
   11530       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11531       yes,aix,yes) ;;			# shared object as lib.so file only
   11532       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11533       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11534       esac
   11535     fi
   11536     ;;
   11537   esac
   11538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11539 $as_echo "$enable_shared" >&6; }
   11540 
   11541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11542 $as_echo_n "checking whether to build static libraries... " >&6; }
   11543   # Make sure either enable_shared or enable_static is yes.
   11544   test yes = "$enable_shared" || enable_static=yes
   11545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11546 $as_echo "$enable_static" >&6; }
   11547 
   11548 
   11549 
   11550 
   11551 fi
   11552 ac_ext=c
   11553 ac_cpp='$CPP $CPPFLAGS'
   11554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11557 
   11558 CC=$lt_save_CC
   11559 
   11560 
   11561 
   11562 
   11563 
   11564 
   11565 
   11566 
   11567 
   11568 
   11569 
   11570 
   11571 
   11572 
   11573 
   11574         ac_config_commands="$ac_config_commands libtool"
   11575 
   11576 
   11577 
   11578 
   11579 # Only expand once:
   11580 
   11581 
   11582 # Find a good install program.  We prefer a C program (faster),
   11583 # so one script is as good as another.  But avoid the broken or
   11584 # incompatible versions:
   11585 # SysV /etc/install, /usr/sbin/install
   11586 # SunOS /usr/etc/install
   11587 # IRIX /sbin/install
   11588 # AIX /bin/install
   11589 # AmigaOS /C/install, which installs bootblocks on floppy discs
   11590 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11593 # OS/2's system install, which has a completely different semantic
   11594 # ./install, which can be erroneously created by make from ./install.sh.
   11595 # Reject install programs that cannot install multiple files.
   11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   11597 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   11598 if test -z "$INSTALL"; then
   11599 if ${ac_cv_path_install+:} false; then :
   11600   $as_echo_n "(cached) " >&6
   11601 else
   11602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11603 for as_dir in $PATH
   11604 do
   11605   IFS=$as_save_IFS
   11606   test -z "$as_dir" && as_dir=.
   11607     # Account for people who put trailing slashes in PATH elements.
   11608 case $as_dir/ in #((
   11609   ./ | .// | /[cC]/* | \
   11610   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11611   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   11612   /usr/ucb/* ) ;;
   11613   *)
   11614     # OSF1 and SCO ODT 3.0 have their own names for install.
   11615     # Don't use installbsd from OSF since it installs stuff as root
   11616     # by default.
   11617     for ac_prog in ginstall scoinst install; do
   11618       for ac_exec_ext in '' $ac_executable_extensions; do
   11619 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   11620 	  if test $ac_prog = install &&
   11621 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11622 	    # AIX install.  It has an incompatible calling convention.
   11623 	    :
   11624 	  elif test $ac_prog = install &&
   11625 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11626 	    # program-specific install script used by HP pwplus--don't use.
   11627 	    :
   11628 	  else
   11629 	    rm -rf conftest.one conftest.two conftest.dir
   11630 	    echo one > conftest.one
   11631 	    echo two > conftest.two
   11632 	    mkdir conftest.dir
   11633 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   11634 	      test -s conftest.one && test -s conftest.two &&
   11635 	      test -s conftest.dir/conftest.one &&
   11636 	      test -s conftest.dir/conftest.two
   11637 	    then
   11638 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   11639 	      break 3
   11640 	    fi
   11641 	  fi
   11642 	fi
   11643       done
   11644     done
   11645     ;;
   11646 esac
   11647 
   11648   done
   11649 IFS=$as_save_IFS
   11650 
   11651 rm -rf conftest.one conftest.two conftest.dir
   11652 
   11653 fi
   11654   if test "${ac_cv_path_install+set}" = set; then
   11655     INSTALL=$ac_cv_path_install
   11656   else
   11657     # As a last resort, use the slow shell script.  Don't cache a
   11658     # value for INSTALL within a source directory, because that will
   11659     # break other packages using the cache if that directory is
   11660     # removed, or if the value is a relative name.
   11661     INSTALL=$ac_install_sh
   11662   fi
   11663 fi
   11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   11665 $as_echo "$INSTALL" >&6; }
   11666 
   11667 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   11668 # It thinks the first close brace ends the variable substitution.
   11669 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   11670 
   11671 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   11672 
   11673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   11674 
   11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   11676 $as_echo_n "checking whether ln -s works... " >&6; }
   11677 LN_S=$as_ln_s
   11678 if test "$LN_S" = "ln -s"; then
   11679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11680 $as_echo "yes" >&6; }
   11681 else
   11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   11683 $as_echo "no, using $LN_S" >&6; }
   11684 fi
   11685 
   11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   11687 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   11688 if ${ac_cv_prog_shell+:} false; then :
   11689   $as_echo_n "(cached) " >&6
   11690 else
   11691   ac_test_shell_script='
   11692 			  test "$(expr 1 + 1)" = "2" &&
   11693 			  test "$(( 1 + 1 ))" = "2"
   11694 			  '
   11695 
   11696 			  for ac_cv_prog_shell in \
   11697 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   11698 			    case $ac_cv_prog_shell in #(
   11699   /*) :
   11700 
   11701 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   11702   ac_cv_path_shell=$SHELL
   11703 fi
   11704 				     ;; #(
   11705   *) :
   11706      ;;
   11707 esac
   11708 			  done
   11709 
   11710 fi
   11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   11712 $as_echo "$ac_cv_prog_shell" >&6; }
   11713 	  if test "$ac_cv_prog_shell" = "no"; then :
   11714   SHELL=/bin/sh
   11715 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   11716 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   11717 
   11718 else
   11719   SHELL="$ac_cv_prog_shell"
   11720 
   11721 fi
   11722 
   11723 
   11724 
   11725 
   11726 
   11727 
   11728 
   11729 
   11730 
   11731 
   11732 #
   11733 # Use pkg-config
   11734 #
   11735 
   11736 
   11737 
   11738 
   11739 
   11740 
   11741 
   11742 
   11743 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   11744 	if test -n "$ac_tool_prefix"; then
   11745   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   11746 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11748 $as_echo_n "checking for $ac_word... " >&6; }
   11749 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   11750   $as_echo_n "(cached) " >&6
   11751 else
   11752   case $PKG_CONFIG in
   11753   [\\/]* | ?:[\\/]*)
   11754   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   11755   ;;
   11756   *)
   11757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11758 for as_dir in $PATH
   11759 do
   11760   IFS=$as_save_IFS
   11761   test -z "$as_dir" && as_dir=.
   11762     for ac_exec_ext in '' $ac_executable_extensions; do
   11763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11764     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11766     break 2
   11767   fi
   11768 done
   11769   done
   11770 IFS=$as_save_IFS
   11771 
   11772   ;;
   11773 esac
   11774 fi
   11775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   11776 if test -n "$PKG_CONFIG"; then
   11777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   11778 $as_echo "$PKG_CONFIG" >&6; }
   11779 else
   11780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11781 $as_echo "no" >&6; }
   11782 fi
   11783 
   11784 
   11785 fi
   11786 if test -z "$ac_cv_path_PKG_CONFIG"; then
   11787   ac_pt_PKG_CONFIG=$PKG_CONFIG
   11788   # Extract the first word of "pkg-config", so it can be a program name with args.
   11789 set dummy pkg-config; ac_word=$2
   11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11791 $as_echo_n "checking for $ac_word... " >&6; }
   11792 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   11793   $as_echo_n "(cached) " >&6
   11794 else
   11795   case $ac_pt_PKG_CONFIG in
   11796   [\\/]* | ?:[\\/]*)
   11797   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   11798   ;;
   11799   *)
   11800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11801 for as_dir in $PATH
   11802 do
   11803   IFS=$as_save_IFS
   11804   test -z "$as_dir" && as_dir=.
   11805     for ac_exec_ext in '' $ac_executable_extensions; do
   11806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11807     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11809     break 2
   11810   fi
   11811 done
   11812   done
   11813 IFS=$as_save_IFS
   11814 
   11815   ;;
   11816 esac
   11817 fi
   11818 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   11819 if test -n "$ac_pt_PKG_CONFIG"; then
   11820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   11821 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   11822 else
   11823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11824 $as_echo "no" >&6; }
   11825 fi
   11826 
   11827   if test "x$ac_pt_PKG_CONFIG" = x; then
   11828     PKG_CONFIG=""
   11829   else
   11830     case $cross_compiling:$ac_tool_warned in
   11831 yes:)
   11832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   11833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   11834 ac_tool_warned=yes ;;
   11835 esac
   11836     PKG_CONFIG=$ac_pt_PKG_CONFIG
   11837   fi
   11838 else
   11839   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   11840 fi
   11841 
   11842 fi
   11843 if test -n "$PKG_CONFIG"; then
   11844 	_pkg_min_version=0.9.0
   11845 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   11846 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   11847 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   11848 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11849 $as_echo "yes" >&6; }
   11850 	else
   11851 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11852 $as_echo "no" >&6; }
   11853 		PKG_CONFIG=""
   11854 	fi
   11855 fi
   11856 
   11857 # Warn if the user specified libbind, which is now deprecated
   11858 # Check whether --enable-libbind was given.
   11859 if test "${enable_libbind+set}" = set; then :
   11860   enableval=$enable_libbind;
   11861 fi
   11862 
   11863 
   11864 case "$enable_libbind" in
   11865 	yes)
   11866 		as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
   11867 It is available from http://www.isc.org as a separate download." "$LINENO" 5
   11868 		;;
   11869 	no|'')
   11870 		;;
   11871 esac
   11872 
   11873 # Check whether --enable-buffer_useinline was given.
   11874 if test "${enable_buffer_useinline+set}" = set; then :
   11875   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   11876 	      then
   11877 
   11878 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11879 
   11880 	      fi
   11881 else
   11882   $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11883 
   11884 fi
   11885 
   11886 
   11887 # Check whether --enable-warn_shadow was given.
   11888 if test "${enable_warn_shadow+set}" = set; then :
   11889   enableval=$enable_warn_shadow;
   11890 fi
   11891 
   11892 
   11893 # Check whether --enable-warn_error was given.
   11894 if test "${enable_warn_error+set}" = set; then :
   11895   enableval=$enable_warn_error;
   11896 fi
   11897 
   11898 
   11899 # Check whether --enable-developer was given.
   11900 if test "${enable_developer+set}" = set; then :
   11901   enableval=$enable_developer;
   11902 fi
   11903 
   11904 XTARGETS=
   11905 case "$enable_developer" in
   11906 yes)
   11907 	STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   11908 	test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   11909 	test "${enable_querytrace+set}" = set || enable_querytrace=yes
   11910 	test "${with_cmocka+set}" = set || with_cmocka=yes
   11911 	test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   11912 	test "${enable_symtable+set}" = set || enable_symtable=all
   11913 	test "${enable_warn_error+set}" = set || enable_warn_error=yes
   11914 	test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   11915 	test "${with_zlib+set}" = set || with_zlib=yes
   11916 	XTARGETS='${XTARGETS}'
   11917 	;;
   11918 esac
   11919 
   11920 
   11921 # Check whether --enable-fuzzing was given.
   11922 if test "${enable_fuzzing+set}" = set; then :
   11923   enableval=$enable_fuzzing;
   11924 else
   11925   enable_fuzzing=no
   11926 fi
   11927 
   11928 
   11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   11930 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   11931 case $enable_fuzzing in #(
   11932   no) :
   11933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11934 $as_echo "no" >&6; } ;; #(
   11935   afl) :
   11936 
   11937 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   11938 $as_echo "using AFL" >&6; }
   11939 
   11940 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   11941 
   11942 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   11943 	  LIBS="$LIBS -lpthread" ;; #(
   11944   libfuzzer) :
   11945 
   11946 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   11947 $as_echo "using libFuzzer" >&6; }
   11948 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   11949 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   11950   *) :
   11951     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   11952   *) :
   11953      ;;
   11954 esac
   11955 
   11956 if test "$enable_fuzzing" = "afl"; then :
   11957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   11958 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   11959        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11960 /* end confdefs.h.  */
   11961 
   11962 int
   11963 main ()
   11964 {
   11965 #ifndef __AFL_COMPILER
   11966 					   #error AFL compiler required
   11967 					   #endif
   11968 
   11969   ;
   11970   return 0;
   11971 }
   11972 _ACEOF
   11973 if ac_fn_c_try_compile "$LINENO"; then :
   11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11975 $as_echo "yes" >&6; }
   11976 else
   11977   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   11978 fi
   11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11980 
   11981 fi
   11982 
   11983 #
   11984 # Make very sure that these are the first files processed by
   11985 # config.status, since we use the processed output as the input for
   11986 # AC_SUBST_FILE() substitutions in other files.
   11987 #
   11988 ac_config_files="$ac_config_files make/rules make/includes"
   11989 
   11990 
   11991 # Extract the first word of "ar", so it can be a program name with args.
   11992 set dummy ar; ac_word=$2
   11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11994 $as_echo_n "checking for $ac_word... " >&6; }
   11995 if ${ac_cv_path_AR+:} false; then :
   11996   $as_echo_n "(cached) " >&6
   11997 else
   11998   case $AR in
   11999   [\\/]* | ?:[\\/]*)
   12000   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   12001   ;;
   12002   *)
   12003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12004 for as_dir in $PATH
   12005 do
   12006   IFS=$as_save_IFS
   12007   test -z "$as_dir" && as_dir=.
   12008     for ac_exec_ext in '' $ac_executable_extensions; do
   12009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12010     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12012     break 2
   12013   fi
   12014 done
   12015   done
   12016 IFS=$as_save_IFS
   12017 
   12018   ;;
   12019 esac
   12020 fi
   12021 AR=$ac_cv_path_AR
   12022 if test -n "$AR"; then
   12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12024 $as_echo "$AR" >&6; }
   12025 else
   12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12027 $as_echo "no" >&6; }
   12028 fi
   12029 
   12030 
   12031 ARFLAGS="cruv"
   12032 
   12033 
   12034 
   12035 # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12036 # "copy" or something.
   12037 LN=ln
   12038 
   12039 
   12040 case "$AR" in
   12041 	"")
   12042 		as_fn_error $? "
   12043 ar program not found.  Please fix your PATH to include the directory in
   12044 which ar resides, or set AR in the environment with the full path to ar.
   12045 " "$LINENO" 5
   12046 
   12047 		;;
   12048 esac
   12049 
   12050 #
   12051 # Etags.
   12052 #
   12053 for ac_prog in etags emacs-etags
   12054 do
   12055   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12056 set dummy $ac_prog; ac_word=$2
   12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12058 $as_echo_n "checking for $ac_word... " >&6; }
   12059 if ${ac_cv_path_ETAGS+:} false; then :
   12060   $as_echo_n "(cached) " >&6
   12061 else
   12062   case $ETAGS in
   12063   [\\/]* | ?:[\\/]*)
   12064   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
   12065   ;;
   12066   *)
   12067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12068 for as_dir in $PATH
   12069 do
   12070   IFS=$as_save_IFS
   12071   test -z "$as_dir" && as_dir=.
   12072     for ac_exec_ext in '' $ac_executable_extensions; do
   12073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12074     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
   12075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12076     break 2
   12077   fi
   12078 done
   12079   done
   12080 IFS=$as_save_IFS
   12081 
   12082   ;;
   12083 esac
   12084 fi
   12085 ETAGS=$ac_cv_path_ETAGS
   12086 if test -n "$ETAGS"; then
   12087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
   12088 $as_echo "$ETAGS" >&6; }
   12089 else
   12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12091 $as_echo "no" >&6; }
   12092 fi
   12093 
   12094 
   12095   test -n "$ETAGS" && break
   12096 done
   12097 
   12098 
   12099 #
   12100 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
   12101 # GNU emacs etags, and it requires the -L flag.
   12102 #
   12103 if test "X$ETAGS" != "X"; then
   12104 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
   12105 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
   12106 	if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
   12107 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12108 $as_echo "yes" >&6; }
   12109 		ETAGS="$ETAGS -L"
   12110 	else
   12111 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12112 $as_echo "no" >&6; }
   12113 	fi
   12114 fi
   12115 
   12116 
   12117 #
   12118 # Perl is optional; it is used only by some of the system test scripts.
   12119 # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12120 # but it still compiles without perl, in which case an empty table will be used.
   12121 #
   12122 for ac_prog in perl5 perl
   12123 do
   12124   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12125 set dummy $ac_prog; ac_word=$2
   12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12127 $as_echo_n "checking for $ac_word... " >&6; }
   12128 if ${ac_cv_path_PERL+:} false; then :
   12129   $as_echo_n "(cached) " >&6
   12130 else
   12131   case $PERL in
   12132   [\\/]* | ?:[\\/]*)
   12133   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12134   ;;
   12135   *)
   12136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12137 for as_dir in $PATH
   12138 do
   12139   IFS=$as_save_IFS
   12140   test -z "$as_dir" && as_dir=.
   12141     for ac_exec_ext in '' $ac_executable_extensions; do
   12142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12143     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12145     break 2
   12146   fi
   12147 done
   12148   done
   12149 IFS=$as_save_IFS
   12150 
   12151   ;;
   12152 esac
   12153 fi
   12154 PERL=$ac_cv_path_PERL
   12155 if test -n "$PERL"; then
   12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12157 $as_echo "$PERL" >&6; }
   12158 else
   12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12160 $as_echo "no" >&6; }
   12161 fi
   12162 
   12163 
   12164   test -n "$PERL" && break
   12165 done
   12166 
   12167 
   12168 
   12169 #
   12170 # Python is also optional but required by default so that dnssec-keymgr gets
   12171 # installed unless explicitly prevented by the user using --without-python.
   12172 #
   12173 testminvers='import sys
   12174 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12175    exit(1)'
   12176 
   12177 testargparse='try: import argparse
   12178 except: exit(1)'
   12179 
   12180 testply='try: import ply
   12181 except: exit(1)'
   12182 
   12183 
   12184 # Check whether --with-python was given.
   12185 if test "${with_python+set}" = set; then :
   12186   withval=$with_python;
   12187 else
   12188   with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12189 fi
   12190 
   12191 
   12192 # Check whether --with-python-install-dir was given.
   12193 if test "${with_python_install_dir+set}" = set; then :
   12194   withval=$with_python_install_dir;
   12195 else
   12196   with_python_install_dir=""
   12197 fi
   12198 
   12199 
   12200 if test "$with_python" = "no"; then :
   12201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12202 $as_echo_n "checking for Python support... " >&6; }
   12203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12204 $as_echo "disabled" >&6; }
   12205 else
   12206   for p in $with_python
   12207        do
   12208 	 case $p in #(
   12209   /*) :
   12210     PYTHON="$p" ;; #(
   12211   *) :
   12212      ;;
   12213 esac
   12214 
   12215 	 # Extract the first word of "$p", so it can be a program name with args.
   12216 set dummy $p; ac_word=$2
   12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12218 $as_echo_n "checking for $ac_word... " >&6; }
   12219 if ${ac_cv_path_PYTHON+:} false; then :
   12220   $as_echo_n "(cached) " >&6
   12221 else
   12222   case $PYTHON in
   12223   [\\/]* | ?:[\\/]*)
   12224   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12225   ;;
   12226   *)
   12227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12228 for as_dir in $PATH
   12229 do
   12230   IFS=$as_save_IFS
   12231   test -z "$as_dir" && as_dir=.
   12232     for ac_exec_ext in '' $ac_executable_extensions; do
   12233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12234     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12236     break 2
   12237   fi
   12238 done
   12239   done
   12240 IFS=$as_save_IFS
   12241 
   12242   ;;
   12243 esac
   12244 fi
   12245 PYTHON=$ac_cv_path_PYTHON
   12246 if test -n "$PYTHON"; then
   12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12248 $as_echo "$PYTHON" >&6; }
   12249 else
   12250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12251 $as_echo "no" >&6; }
   12252 fi
   12253 
   12254 
   12255 	 # Do not cache the result of the check from the previous line.  If the
   12256 	 # first found Python interpreter has missing module dependencies and
   12257 	 # the result of the above check is cached, subsequent module checks
   12258 	 # will erroneously keep on using the cached path to the first found
   12259 	 # Python interpreter instead of different ones.
   12260 	 unset ac_cv_path_PYTHON
   12261 
   12262 	 if test -z "$PYTHON"; then :
   12263   continue
   12264 fi
   12265 
   12266 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12267 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12268 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12270 $as_echo "yes" >&6; }
   12271 else
   12272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12273 $as_echo "no" >&6; }
   12274 		unset PYTHON
   12275 		continue
   12276 fi
   12277 
   12278 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12279 $as_echo_n "checking Python module 'argparse'... " >&6; }
   12280 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12282 $as_echo "yes" >&6; }
   12283 else
   12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12285 $as_echo "no" >&6; }
   12286 		unset PYTHON
   12287 		continue
   12288 fi
   12289 
   12290 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12291 $as_echo_n "checking Python module 'ply'... " >&6; }
   12292 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12294 $as_echo "yes" >&6; }
   12295 else
   12296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12297 $as_echo "no" >&6; }
   12298 		unset PYTHON
   12299 		continue
   12300 fi
   12301 
   12302 	 # Stop looking any further once we find a Python interpreter
   12303 	 # satisfying all requirements.
   12304 	 break
   12305        done
   12306 
   12307        if test "X$PYTHON" = "X"; then :
   12308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12309 $as_echo_n "checking for Python support... " >&6; }
   12310 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12311 $as_echo "no" >&6; }
   12312 	      as_fn_error $? "Python required for dnssec-keymgr" "$LINENO" 5
   12313 fi
   12314 fi
   12315 
   12316 PYTHON_TOOLS=''
   12317 CHECKDS=''
   12318 COVERAGE=''
   12319 KEYMGR=''
   12320 if test "X$PYTHON" != "X"; then :
   12321   PYTHON_TOOLS=python
   12322        CHECKDS=checkds
   12323        COVERAGE=coverage
   12324        KEYMGR=keymgr
   12325        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12326        if test -n "$with_python_install_dir"; then :
   12327   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12328 fi
   12329 fi
   12330 
   12331 
   12332 
   12333 
   12334 
   12335 
   12336 
   12337 #
   12338 # Special processing of paths depending on whether --prefix,
   12339 # --sysconfdir or --localstatedir arguments were given.  What's
   12340 # desired is some compatibility with the way previous versions
   12341 # of BIND built; they defaulted to /usr/local for most parts of
   12342 # the installation, but named.boot/named.conf was in /etc
   12343 # and named.pid was in /var/run.
   12344 #
   12345 # So ... if none of --prefix, --sysconfdir or --localstatedir are
   12346 # specified, set things up that way.  If --prefix is given, use
   12347 # it for sysconfdir and localstatedir the way configure normally
   12348 # would.  To change the prefix for everything but leave named.conf
   12349 # in /etc or named.pid in /var/run, then do this the usual configure way:
   12350 # ./configure --prefix=/somewhere --sysconfdir=/etc
   12351 # ./configure --prefix=/somewhere --localstatedir=/var
   12352 #
   12353 # To put named.conf and named.pid in /usr/local with everything else,
   12354 # set the prefix explicitly to /usr/local even though that's the default:
   12355 # ./configure --prefix=/usr/local
   12356 #
   12357 case "$prefix" in
   12358 	NONE)
   12359 		case "$sysconfdir" in
   12360 			'${prefix}/etc')
   12361 				sysconfdir=/etc
   12362 				;;
   12363 		esac
   12364 		case "$localstatedir" in
   12365 			'${prefix}/var')
   12366 				localstatedir=/var
   12367 				;;
   12368 		esac
   12369 		;;
   12370 esac
   12371 expanded_sysconfdir=`eval echo $sysconfdir`
   12372 
   12373 
   12374 #
   12375 # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12376 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12377 # configure based on the location of the file where it is substituted.
   12378 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12379 # subdirectory of install-sh, This relative path will be wrong for all
   12380 # directories more than one level down from install-sh.
   12381 #
   12382 case "$INSTALL" in
   12383 	/*)
   12384 		;;
   12385 	*)
   12386 		#
   12387 		# Not all systems have dirname.
   12388 		#
   12389 
   12390 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12391 
   12392 
   12393 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12394 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12395 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12396 		INSTALL="$ac_dir/$ac_prog"
   12397 		;;
   12398 esac
   12399 
   12400 ac_ext=c
   12401 ac_cpp='$CPP $CPPFLAGS'
   12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12405 if test -n "$ac_tool_prefix"; then
   12406   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12409 $as_echo_n "checking for $ac_word... " >&6; }
   12410 if ${ac_cv_prog_CC+:} false; then :
   12411   $as_echo_n "(cached) " >&6
   12412 else
   12413   if test -n "$CC"; then
   12414   ac_cv_prog_CC="$CC" # Let the user override the test.
   12415 else
   12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12417 for as_dir in $PATH
   12418 do
   12419   IFS=$as_save_IFS
   12420   test -z "$as_dir" && as_dir=.
   12421     for ac_exec_ext in '' $ac_executable_extensions; do
   12422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12423     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12425     break 2
   12426   fi
   12427 done
   12428   done
   12429 IFS=$as_save_IFS
   12430 
   12431 fi
   12432 fi
   12433 CC=$ac_cv_prog_CC
   12434 if test -n "$CC"; then
   12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12436 $as_echo "$CC" >&6; }
   12437 else
   12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12439 $as_echo "no" >&6; }
   12440 fi
   12441 
   12442 
   12443 fi
   12444 if test -z "$ac_cv_prog_CC"; then
   12445   ac_ct_CC=$CC
   12446   # Extract the first word of "gcc", so it can be a program name with args.
   12447 set dummy gcc; ac_word=$2
   12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12449 $as_echo_n "checking for $ac_word... " >&6; }
   12450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12451   $as_echo_n "(cached) " >&6
   12452 else
   12453   if test -n "$ac_ct_CC"; then
   12454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12455 else
   12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12457 for as_dir in $PATH
   12458 do
   12459   IFS=$as_save_IFS
   12460   test -z "$as_dir" && as_dir=.
   12461     for ac_exec_ext in '' $ac_executable_extensions; do
   12462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12463     ac_cv_prog_ac_ct_CC="gcc"
   12464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12465     break 2
   12466   fi
   12467 done
   12468   done
   12469 IFS=$as_save_IFS
   12470 
   12471 fi
   12472 fi
   12473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12474 if test -n "$ac_ct_CC"; then
   12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12476 $as_echo "$ac_ct_CC" >&6; }
   12477 else
   12478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12479 $as_echo "no" >&6; }
   12480 fi
   12481 
   12482   if test "x$ac_ct_CC" = x; then
   12483     CC=""
   12484   else
   12485     case $cross_compiling:$ac_tool_warned in
   12486 yes:)
   12487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12489 ac_tool_warned=yes ;;
   12490 esac
   12491     CC=$ac_ct_CC
   12492   fi
   12493 else
   12494   CC="$ac_cv_prog_CC"
   12495 fi
   12496 
   12497 if test -z "$CC"; then
   12498           if test -n "$ac_tool_prefix"; then
   12499     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   12500 set dummy ${ac_tool_prefix}cc; ac_word=$2
   12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12502 $as_echo_n "checking for $ac_word... " >&6; }
   12503 if ${ac_cv_prog_CC+:} false; then :
   12504   $as_echo_n "(cached) " >&6
   12505 else
   12506   if test -n "$CC"; then
   12507   ac_cv_prog_CC="$CC" # Let the user override the test.
   12508 else
   12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12510 for as_dir in $PATH
   12511 do
   12512   IFS=$as_save_IFS
   12513   test -z "$as_dir" && as_dir=.
   12514     for ac_exec_ext in '' $ac_executable_extensions; do
   12515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12516     ac_cv_prog_CC="${ac_tool_prefix}cc"
   12517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12518     break 2
   12519   fi
   12520 done
   12521   done
   12522 IFS=$as_save_IFS
   12523 
   12524 fi
   12525 fi
   12526 CC=$ac_cv_prog_CC
   12527 if test -n "$CC"; then
   12528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12529 $as_echo "$CC" >&6; }
   12530 else
   12531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12532 $as_echo "no" >&6; }
   12533 fi
   12534 
   12535 
   12536   fi
   12537 fi
   12538 if test -z "$CC"; then
   12539   # Extract the first word of "cc", so it can be a program name with args.
   12540 set dummy cc; 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_prog_CC+:} false; then :
   12544   $as_echo_n "(cached) " >&6
   12545 else
   12546   if test -n "$CC"; then
   12547   ac_cv_prog_CC="$CC" # Let the user override the test.
   12548 else
   12549   ac_prog_rejected=no
   12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12551 for as_dir in $PATH
   12552 do
   12553   IFS=$as_save_IFS
   12554   test -z "$as_dir" && as_dir=.
   12555     for ac_exec_ext in '' $ac_executable_extensions; do
   12556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12557     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   12558        ac_prog_rejected=yes
   12559        continue
   12560      fi
   12561     ac_cv_prog_CC="cc"
   12562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12563     break 2
   12564   fi
   12565 done
   12566   done
   12567 IFS=$as_save_IFS
   12568 
   12569 if test $ac_prog_rejected = yes; then
   12570   # We found a bogon in the path, so make sure we never use it.
   12571   set dummy $ac_cv_prog_CC
   12572   shift
   12573   if test $# != 0; then
   12574     # We chose a different compiler from the bogus one.
   12575     # However, it has the same basename, so the bogon will be chosen
   12576     # first if we set CC to just the basename; use the full file name.
   12577     shift
   12578     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   12579   fi
   12580 fi
   12581 fi
   12582 fi
   12583 CC=$ac_cv_prog_CC
   12584 if test -n "$CC"; then
   12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12586 $as_echo "$CC" >&6; }
   12587 else
   12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12589 $as_echo "no" >&6; }
   12590 fi
   12591 
   12592 
   12593 fi
   12594 if test -z "$CC"; then
   12595   if test -n "$ac_tool_prefix"; then
   12596   for ac_prog in cl.exe
   12597   do
   12598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   12599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12601 $as_echo_n "checking for $ac_word... " >&6; }
   12602 if ${ac_cv_prog_CC+:} false; then :
   12603   $as_echo_n "(cached) " >&6
   12604 else
   12605   if test -n "$CC"; then
   12606   ac_cv_prog_CC="$CC" # Let the user override the test.
   12607 else
   12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12609 for as_dir in $PATH
   12610 do
   12611   IFS=$as_save_IFS
   12612   test -z "$as_dir" && as_dir=.
   12613     for ac_exec_ext in '' $ac_executable_extensions; do
   12614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   12616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12617     break 2
   12618   fi
   12619 done
   12620   done
   12621 IFS=$as_save_IFS
   12622 
   12623 fi
   12624 fi
   12625 CC=$ac_cv_prog_CC
   12626 if test -n "$CC"; then
   12627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12628 $as_echo "$CC" >&6; }
   12629 else
   12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12631 $as_echo "no" >&6; }
   12632 fi
   12633 
   12634 
   12635     test -n "$CC" && break
   12636   done
   12637 fi
   12638 if test -z "$CC"; then
   12639   ac_ct_CC=$CC
   12640   for ac_prog in cl.exe
   12641 do
   12642   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12643 set dummy $ac_prog; ac_word=$2
   12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12645 $as_echo_n "checking for $ac_word... " >&6; }
   12646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12647   $as_echo_n "(cached) " >&6
   12648 else
   12649   if test -n "$ac_ct_CC"; then
   12650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12651 else
   12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12653 for as_dir in $PATH
   12654 do
   12655   IFS=$as_save_IFS
   12656   test -z "$as_dir" && as_dir=.
   12657     for ac_exec_ext in '' $ac_executable_extensions; do
   12658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12659     ac_cv_prog_ac_ct_CC="$ac_prog"
   12660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12661     break 2
   12662   fi
   12663 done
   12664   done
   12665 IFS=$as_save_IFS
   12666 
   12667 fi
   12668 fi
   12669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12670 if test -n "$ac_ct_CC"; then
   12671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12672 $as_echo "$ac_ct_CC" >&6; }
   12673 else
   12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12675 $as_echo "no" >&6; }
   12676 fi
   12677 
   12678 
   12679   test -n "$ac_ct_CC" && break
   12680 done
   12681 
   12682   if test "x$ac_ct_CC" = x; then
   12683     CC=""
   12684   else
   12685     case $cross_compiling:$ac_tool_warned in
   12686 yes:)
   12687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12689 ac_tool_warned=yes ;;
   12690 esac
   12691     CC=$ac_ct_CC
   12692   fi
   12693 fi
   12694 
   12695 fi
   12696 
   12697 
   12698 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   12699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   12700 as_fn_error $? "no acceptable C compiler found in \$PATH
   12701 See \`config.log' for more details" "$LINENO" 5; }
   12702 
   12703 # Provide some information about the compiler.
   12704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   12705 set X $ac_compile
   12706 ac_compiler=$2
   12707 for ac_option in --version -v -V -qversion; do
   12708   { { ac_try="$ac_compiler $ac_option >&5"
   12709 case "(($ac_try" in
   12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12711   *) ac_try_echo=$ac_try;;
   12712 esac
   12713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   12714 $as_echo "$ac_try_echo"; } >&5
   12715   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   12716   ac_status=$?
   12717   if test -s conftest.err; then
   12718     sed '10a\
   12719 ... rest of stderr output deleted ...
   12720          10q' conftest.err >conftest.er1
   12721     cat conftest.er1 >&5
   12722   fi
   12723   rm -f conftest.er1 conftest.err
   12724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12725   test $ac_status = 0; }
   12726 done
   12727 
   12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   12729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   12730 if ${ac_cv_c_compiler_gnu+:} false; then :
   12731   $as_echo_n "(cached) " >&6
   12732 else
   12733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12734 /* end confdefs.h.  */
   12735 
   12736 int
   12737 main ()
   12738 {
   12739 #ifndef __GNUC__
   12740        choke me
   12741 #endif
   12742 
   12743   ;
   12744   return 0;
   12745 }
   12746 _ACEOF
   12747 if ac_fn_c_try_compile "$LINENO"; then :
   12748   ac_compiler_gnu=yes
   12749 else
   12750   ac_compiler_gnu=no
   12751 fi
   12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   12754 
   12755 fi
   12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   12757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   12758 if test $ac_compiler_gnu = yes; then
   12759   GCC=yes
   12760 else
   12761   GCC=
   12762 fi
   12763 ac_test_CFLAGS=${CFLAGS+set}
   12764 ac_save_CFLAGS=$CFLAGS
   12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   12766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   12767 if ${ac_cv_prog_cc_g+:} false; then :
   12768   $as_echo_n "(cached) " >&6
   12769 else
   12770   ac_save_c_werror_flag=$ac_c_werror_flag
   12771    ac_c_werror_flag=yes
   12772    ac_cv_prog_cc_g=no
   12773    CFLAGS="-g"
   12774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12775 /* end confdefs.h.  */
   12776 
   12777 int
   12778 main ()
   12779 {
   12780 
   12781   ;
   12782   return 0;
   12783 }
   12784 _ACEOF
   12785 if ac_fn_c_try_compile "$LINENO"; then :
   12786   ac_cv_prog_cc_g=yes
   12787 else
   12788   CFLAGS=""
   12789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12790 /* end confdefs.h.  */
   12791 
   12792 int
   12793 main ()
   12794 {
   12795 
   12796   ;
   12797   return 0;
   12798 }
   12799 _ACEOF
   12800 if ac_fn_c_try_compile "$LINENO"; then :
   12801 
   12802 else
   12803   ac_c_werror_flag=$ac_save_c_werror_flag
   12804 	 CFLAGS="-g"
   12805 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12806 /* end confdefs.h.  */
   12807 
   12808 int
   12809 main ()
   12810 {
   12811 
   12812   ;
   12813   return 0;
   12814 }
   12815 _ACEOF
   12816 if ac_fn_c_try_compile "$LINENO"; then :
   12817   ac_cv_prog_cc_g=yes
   12818 fi
   12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12820 fi
   12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12822 fi
   12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12824    ac_c_werror_flag=$ac_save_c_werror_flag
   12825 fi
   12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   12827 $as_echo "$ac_cv_prog_cc_g" >&6; }
   12828 if test "$ac_test_CFLAGS" = set; then
   12829   CFLAGS=$ac_save_CFLAGS
   12830 elif test $ac_cv_prog_cc_g = yes; then
   12831   if test "$GCC" = yes; then
   12832     CFLAGS="-g -O2"
   12833   else
   12834     CFLAGS="-g"
   12835   fi
   12836 else
   12837   if test "$GCC" = yes; then
   12838     CFLAGS="-O2"
   12839   else
   12840     CFLAGS=
   12841   fi
   12842 fi
   12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   12844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   12845 if ${ac_cv_prog_cc_c89+:} false; then :
   12846   $as_echo_n "(cached) " >&6
   12847 else
   12848   ac_cv_prog_cc_c89=no
   12849 ac_save_CC=$CC
   12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12851 /* end confdefs.h.  */
   12852 #include <stdarg.h>
   12853 #include <stdio.h>
   12854 struct stat;
   12855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   12856 struct buf { int x; };
   12857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   12858 static char *e (p, i)
   12859      char **p;
   12860      int i;
   12861 {
   12862   return p[i];
   12863 }
   12864 static char *f (char * (*g) (char **, int), char **p, ...)
   12865 {
   12866   char *s;
   12867   va_list v;
   12868   va_start (v,p);
   12869   s = g (p, va_arg (v,int));
   12870   va_end (v);
   12871   return s;
   12872 }
   12873 
   12874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   12875    function prototypes and stuff, but not '\xHH' hex character constants.
   12876    These don't provoke an error unfortunately, instead are silently treated
   12877    as 'x'.  The following induces an error, until -std is added to get
   12878    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   12879    array size at least.  It's necessary to write '\x00'==0 to get something
   12880    that's true only with -std.  */
   12881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   12882 
   12883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   12884    inside strings and character constants.  */
   12885 #define FOO(x) 'x'
   12886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   12887 
   12888 int test (int i, double x);
   12889 struct s1 {int (*f) (int a);};
   12890 struct s2 {int (*f) (double a);};
   12891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   12892 int argc;
   12893 char **argv;
   12894 int
   12895 main ()
   12896 {
   12897 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   12898   ;
   12899   return 0;
   12900 }
   12901 _ACEOF
   12902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   12903 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   12904 do
   12905   CC="$ac_save_CC $ac_arg"
   12906   if ac_fn_c_try_compile "$LINENO"; then :
   12907   ac_cv_prog_cc_c89=$ac_arg
   12908 fi
   12909 rm -f core conftest.err conftest.$ac_objext
   12910   test "x$ac_cv_prog_cc_c89" != "xno" && break
   12911 done
   12912 rm -f conftest.$ac_ext
   12913 CC=$ac_save_CC
   12914 
   12915 fi
   12916 # AC_CACHE_VAL
   12917 case "x$ac_cv_prog_cc_c89" in
   12918   x)
   12919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   12920 $as_echo "none needed" >&6; } ;;
   12921   xno)
   12922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   12923 $as_echo "unsupported" >&6; } ;;
   12924   *)
   12925     CC="$CC $ac_cv_prog_cc_c89"
   12926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   12927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   12928 esac
   12929 if test "x$ac_cv_prog_cc_c89" != xno; then :
   12930 
   12931 fi
   12932 
   12933 ac_ext=c
   12934 ac_cpp='$CPP $CPPFLAGS'
   12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12938 
   12939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   12940 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   12941 if ${ac_cv_prog_cc_c99+:} false; then :
   12942   $as_echo_n "(cached) " >&6
   12943 else
   12944   ac_cv_prog_cc_c99=no
   12945 ac_save_CC=$CC
   12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12947 /* end confdefs.h.  */
   12948 #include <stdarg.h>
   12949 #include <stdbool.h>
   12950 #include <stdlib.h>
   12951 #include <wchar.h>
   12952 #include <stdio.h>
   12953 
   12954 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   12955 #define debug(...) fprintf (stderr, __VA_ARGS__)
   12956 #define showlist(...) puts (#__VA_ARGS__)
   12957 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   12958 static void
   12959 test_varargs_macros (void)
   12960 {
   12961   int x = 1234;
   12962   int y = 5678;
   12963   debug ("Flag");
   12964   debug ("X = %d\n", x);
   12965   showlist (The first, second, and third items.);
   12966   report (x>y, "x is %d but y is %d", x, y);
   12967 }
   12968 
   12969 // Check long long types.
   12970 #define BIG64 18446744073709551615ull
   12971 #define BIG32 4294967295ul
   12972 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   12973 #if !BIG_OK
   12974   your preprocessor is broken;
   12975 #endif
   12976 #if BIG_OK
   12977 #else
   12978   your preprocessor is broken;
   12979 #endif
   12980 static long long int bignum = -9223372036854775807LL;
   12981 static unsigned long long int ubignum = BIG64;
   12982 
   12983 struct incomplete_array
   12984 {
   12985   int datasize;
   12986   double data[];
   12987 };
   12988 
   12989 struct named_init {
   12990   int number;
   12991   const wchar_t *name;
   12992   double average;
   12993 };
   12994 
   12995 typedef const char *ccp;
   12996 
   12997 static inline int
   12998 test_restrict (ccp restrict text)
   12999 {
   13000   // See if C++-style comments work.
   13001   // Iterate through items via the restricted pointer.
   13002   // Also check for declarations in for loops.
   13003   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13004     continue;
   13005   return 0;
   13006 }
   13007 
   13008 // Check varargs and va_copy.
   13009 static void
   13010 test_varargs (const char *format, ...)
   13011 {
   13012   va_list args;
   13013   va_start (args, format);
   13014   va_list args_copy;
   13015   va_copy (args_copy, args);
   13016 
   13017   const char *str;
   13018   int number;
   13019   float fnumber;
   13020 
   13021   while (*format)
   13022     {
   13023       switch (*format++)
   13024 	{
   13025 	case 's': // string
   13026 	  str = va_arg (args_copy, const char *);
   13027 	  break;
   13028 	case 'd': // int
   13029 	  number = va_arg (args_copy, int);
   13030 	  break;
   13031 	case 'f': // float
   13032 	  fnumber = va_arg (args_copy, double);
   13033 	  break;
   13034 	default:
   13035 	  break;
   13036 	}
   13037     }
   13038   va_end (args_copy);
   13039   va_end (args);
   13040 }
   13041 
   13042 int
   13043 main ()
   13044 {
   13045 
   13046   // Check bool.
   13047   _Bool success = false;
   13048 
   13049   // Check restrict.
   13050   if (test_restrict ("String literal") == 0)
   13051     success = true;
   13052   char *restrict newvar = "Another string";
   13053 
   13054   // Check varargs.
   13055   test_varargs ("s, d' f .", "string", 65, 34.234);
   13056   test_varargs_macros ();
   13057 
   13058   // Check flexible array members.
   13059   struct incomplete_array *ia =
   13060     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13061   ia->datasize = 10;
   13062   for (int i = 0; i < ia->datasize; ++i)
   13063     ia->data[i] = i * 1.234;
   13064 
   13065   // Check named initializers.
   13066   struct named_init ni = {
   13067     .number = 34,
   13068     .name = L"Test wide string",
   13069     .average = 543.34343,
   13070   };
   13071 
   13072   ni.number = 58;
   13073 
   13074   int dynamic_array[ni.number];
   13075   dynamic_array[ni.number - 1] = 543;
   13076 
   13077   // work around unused variable warnings
   13078   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13079 	  || dynamic_array[ni.number - 1] != 543);
   13080 
   13081   ;
   13082   return 0;
   13083 }
   13084 _ACEOF
   13085 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13086 do
   13087   CC="$ac_save_CC $ac_arg"
   13088   if ac_fn_c_try_compile "$LINENO"; then :
   13089   ac_cv_prog_cc_c99=$ac_arg
   13090 fi
   13091 rm -f core conftest.err conftest.$ac_objext
   13092   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13093 done
   13094 rm -f conftest.$ac_ext
   13095 CC=$ac_save_CC
   13096 
   13097 fi
   13098 # AC_CACHE_VAL
   13099 case "x$ac_cv_prog_cc_c99" in
   13100   x)
   13101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13102 $as_echo "none needed" >&6; } ;;
   13103   xno)
   13104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13105 $as_echo "unsupported" >&6; } ;;
   13106   *)
   13107     CC="$CC $ac_cv_prog_cc_c99"
   13108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13109 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13110 esac
   13111 if test "x$ac_cv_prog_cc_c99" != xno; then :
   13112 
   13113 fi
   13114 
   13115 
   13116 
   13117 #
   13118 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13119 #
   13120 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13121 	CCNOOPT="-O0"
   13122 fi
   13123 
   13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13125 $as_echo_n "checking for ANSI C header files... " >&6; }
   13126 if ${ac_cv_header_stdc+:} false; then :
   13127   $as_echo_n "(cached) " >&6
   13128 else
   13129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13130 /* end confdefs.h.  */
   13131 #include <stdlib.h>
   13132 #include <stdarg.h>
   13133 #include <string.h>
   13134 #include <float.h>
   13135 
   13136 int
   13137 main ()
   13138 {
   13139 
   13140   ;
   13141   return 0;
   13142 }
   13143 _ACEOF
   13144 if ac_fn_c_try_compile "$LINENO"; then :
   13145   ac_cv_header_stdc=yes
   13146 else
   13147   ac_cv_header_stdc=no
   13148 fi
   13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13150 
   13151 if test $ac_cv_header_stdc = yes; then
   13152   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13154 /* end confdefs.h.  */
   13155 #include <string.h>
   13156 
   13157 _ACEOF
   13158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13159   $EGREP "memchr" >/dev/null 2>&1; then :
   13160 
   13161 else
   13162   ac_cv_header_stdc=no
   13163 fi
   13164 rm -f conftest*
   13165 
   13166 fi
   13167 
   13168 if test $ac_cv_header_stdc = yes; then
   13169   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13171 /* end confdefs.h.  */
   13172 #include <stdlib.h>
   13173 
   13174 _ACEOF
   13175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13176   $EGREP "free" >/dev/null 2>&1; then :
   13177 
   13178 else
   13179   ac_cv_header_stdc=no
   13180 fi
   13181 rm -f conftest*
   13182 
   13183 fi
   13184 
   13185 if test $ac_cv_header_stdc = yes; then
   13186   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13187   if test "$cross_compiling" = yes; then :
   13188   :
   13189 else
   13190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13191 /* end confdefs.h.  */
   13192 #include <ctype.h>
   13193 #include <stdlib.h>
   13194 #if ((' ' & 0x0FF) == 0x020)
   13195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13197 #else
   13198 # define ISLOWER(c) \
   13199 		   (('a' <= (c) && (c) <= 'i') \
   13200 		     || ('j' <= (c) && (c) <= 'r') \
   13201 		     || ('s' <= (c) && (c) <= 'z'))
   13202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13203 #endif
   13204 
   13205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13206 int
   13207 main ()
   13208 {
   13209   int i;
   13210   for (i = 0; i < 256; i++)
   13211     if (XOR (islower (i), ISLOWER (i))
   13212 	|| toupper (i) != TOUPPER (i))
   13213       return 2;
   13214   return 0;
   13215 }
   13216 _ACEOF
   13217 if ac_fn_c_try_run "$LINENO"; then :
   13218 
   13219 else
   13220   ac_cv_header_stdc=no
   13221 fi
   13222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13223   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13224 fi
   13225 
   13226 fi
   13227 fi
   13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13229 $as_echo "$ac_cv_header_stdc" >&6; }
   13230 if test $ac_cv_header_stdc = yes; then
   13231 
   13232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13233 
   13234 fi
   13235 
   13236 
   13237 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
   13238 do :
   13239   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13240 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13241 #ifdef HAVE_SYS_PARAM_H
   13242 # include <sys/param.h>
   13243 #endif
   13244 #ifdef HAVE_SYS_SOCKET_H
   13245 # include <sys/socket.h>
   13246 #endif
   13247 
   13248 "
   13249 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13250   cat >>confdefs.h <<_ACEOF
   13251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13252 _ACEOF
   13253 
   13254 fi
   13255 
   13256 done
   13257 
   13258 
   13259 #
   13260 # Check for thread local storage
   13261 #
   13262 for ac_header in threads.h
   13263 do :
   13264   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13265 if test "x$ac_cv_header_threads_h" = xyes; then :
   13266   cat >>confdefs.h <<_ACEOF
   13267 #define HAVE_THREADS_H 1
   13268 _ACEOF
   13269 
   13270 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13271 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13272 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13273 /* end confdefs.h.  */
   13274 
   13275 				  #include <threads.h>
   13276 
   13277 int
   13278 main ()
   13279 {
   13280 
   13281 				  static thread_local int tls = 0;
   13282 				  return (tls);
   13283 
   13284   ;
   13285   return 0;
   13286 }
   13287 
   13288 _ACEOF
   13289 if ac_fn_c_try_compile "$LINENO"; then :
   13290 
   13291 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13292 $as_echo "yes" >&6; }
   13293 
   13294 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13295 
   13296 
   13297 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13298 
   13299 
   13300 else
   13301 
   13302 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13303 $as_echo "no" >&6; }
   13304 
   13305 fi
   13306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13307 
   13308 else
   13309 
   13310 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13311 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13312 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13313 /* end confdefs.h.  */
   13314 
   13315 
   13316 int
   13317 main ()
   13318 {
   13319 
   13320 				  static __thread int tls = 0;
   13321 				  return (tls);
   13322 
   13323   ;
   13324   return 0;
   13325 }
   13326 
   13327 _ACEOF
   13328 if ac_fn_c_try_compile "$LINENO"; then :
   13329 
   13330 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13331 $as_echo "yes" >&6; }
   13332 
   13333 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13334 
   13335 
   13336 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13337 
   13338 
   13339 else
   13340 
   13341 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13342 $as_echo "no" >&6; }
   13343 
   13344 fi
   13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13346 
   13347 fi
   13348 
   13349 done
   13350 
   13351 
   13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13353 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13354 if ${ac_cv_c_const+:} false; then :
   13355   $as_echo_n "(cached) " >&6
   13356 else
   13357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13358 /* end confdefs.h.  */
   13359 
   13360 int
   13361 main ()
   13362 {
   13363 
   13364 #ifndef __cplusplus
   13365   /* Ultrix mips cc rejects this sort of thing.  */
   13366   typedef int charset[2];
   13367   const charset cs = { 0, 0 };
   13368   /* SunOS 4.1.1 cc rejects this.  */
   13369   char const *const *pcpcc;
   13370   char **ppc;
   13371   /* NEC SVR4.0.2 mips cc rejects this.  */
   13372   struct point {int x, y;};
   13373   static struct point const zero = {0,0};
   13374   /* AIX XL C 1.02.0.0 rejects this.
   13375      It does not let you subtract one const X* pointer from another in
   13376      an arm of an if-expression whose if-part is not a constant
   13377      expression */
   13378   const char *g = "string";
   13379   pcpcc = &g + (g ? g-g : 0);
   13380   /* HPUX 7.0 cc rejects these. */
   13381   ++pcpcc;
   13382   ppc = (char**) pcpcc;
   13383   pcpcc = (char const *const *) ppc;
   13384   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13385     char tx;
   13386     char *t = &tx;
   13387     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13388 
   13389     *t++ = 0;
   13390     if (s) return 0;
   13391   }
   13392   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13393     int x[] = {25, 17};
   13394     const int *foo = &x[0];
   13395     ++foo;
   13396   }
   13397   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13398     typedef const int *iptr;
   13399     iptr p = 0;
   13400     ++p;
   13401   }
   13402   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13403        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13404     struct s { int j; const int *ap[3]; } bx;
   13405     struct s *b = &bx; b->j = 5;
   13406   }
   13407   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13408     const int foo = 10;
   13409     if (!foo) return 0;
   13410   }
   13411   return !cs[0] && !zero.x;
   13412 #endif
   13413 
   13414   ;
   13415   return 0;
   13416 }
   13417 _ACEOF
   13418 if ac_fn_c_try_compile "$LINENO"; then :
   13419   ac_cv_c_const=yes
   13420 else
   13421   ac_cv_c_const=no
   13422 fi
   13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13424 fi
   13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13426 $as_echo "$ac_cv_c_const" >&6; }
   13427 if test $ac_cv_c_const = no; then
   13428 
   13429 $as_echo "#define const /**/" >>confdefs.h
   13430 
   13431 fi
   13432 
   13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13434 $as_echo_n "checking for inline... " >&6; }
   13435 if ${ac_cv_c_inline+:} false; then :
   13436   $as_echo_n "(cached) " >&6
   13437 else
   13438   ac_cv_c_inline=no
   13439 for ac_kw in inline __inline__ __inline; do
   13440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13441 /* end confdefs.h.  */
   13442 #ifndef __cplusplus
   13443 typedef int foo_t;
   13444 static $ac_kw foo_t static_foo () {return 0; }
   13445 $ac_kw foo_t foo () {return 0; }
   13446 #endif
   13447 
   13448 _ACEOF
   13449 if ac_fn_c_try_compile "$LINENO"; then :
   13450   ac_cv_c_inline=$ac_kw
   13451 fi
   13452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13453   test "$ac_cv_c_inline" != no && break
   13454 done
   13455 
   13456 fi
   13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13458 $as_echo "$ac_cv_c_inline" >&6; }
   13459 
   13460 case $ac_cv_c_inline in
   13461   inline | yes) ;;
   13462   *)
   13463     case $ac_cv_c_inline in
   13464       no) ac_val=;;
   13465       *) ac_val=$ac_cv_c_inline;;
   13466     esac
   13467     cat >>confdefs.h <<_ACEOF
   13468 #ifndef __cplusplus
   13469 #define inline $ac_val
   13470 #endif
   13471 _ACEOF
   13472     ;;
   13473 esac
   13474 
   13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   13476 $as_echo_n "checking for working volatile... " >&6; }
   13477 if ${ac_cv_c_volatile+:} false; then :
   13478   $as_echo_n "(cached) " >&6
   13479 else
   13480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13481 /* end confdefs.h.  */
   13482 
   13483 int
   13484 main ()
   13485 {
   13486 
   13487 volatile int x;
   13488 int * volatile y = (int *) 0;
   13489 return !x && !y;
   13490   ;
   13491   return 0;
   13492 }
   13493 _ACEOF
   13494 if ac_fn_c_try_compile "$LINENO"; then :
   13495   ac_cv_c_volatile=yes
   13496 else
   13497   ac_cv_c_volatile=no
   13498 fi
   13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13500 fi
   13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   13502 $as_echo "$ac_cv_c_volatile" >&6; }
   13503 if test $ac_cv_c_volatile = no; then
   13504 
   13505 $as_echo "#define volatile /**/" >>confdefs.h
   13506 
   13507 fi
   13508 
   13509 
   13510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   13511 $as_echo_n "checking for flexible array members... " >&6; }
   13512 if ${ac_cv_c_flexmember+:} false; then :
   13513   $as_echo_n "(cached) " >&6
   13514 else
   13515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13516 /* end confdefs.h.  */
   13517 #include <stdlib.h>
   13518 	    #include <stdio.h>
   13519 	    #include <stddef.h>
   13520 	    struct s { int n; double d[]; };
   13521 int
   13522 main ()
   13523 {
   13524 int m = getchar ();
   13525 	    struct s *p = malloc (offsetof (struct s, d)
   13526 				  + m * sizeof (double));
   13527 	    p->d[0] = 0.0;
   13528 	    return p->d != (double *) NULL;
   13529   ;
   13530   return 0;
   13531 }
   13532 _ACEOF
   13533 if ac_fn_c_try_compile "$LINENO"; then :
   13534   ac_cv_c_flexmember=yes
   13535 else
   13536   ac_cv_c_flexmember=no
   13537 fi
   13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13539 fi
   13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   13541 $as_echo "$ac_cv_c_flexmember" >&6; }
   13542   if test $ac_cv_c_flexmember = yes; then
   13543 
   13544 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   13545 
   13546   else
   13547     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   13548 
   13549   fi
   13550 
   13551 
   13552 #
   13553 # Check for yield support on ARM processors
   13554 #
   13555 case $host in #(
   13556   arm*) :
   13557 
   13558 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   13559 $as_echo_n "checking for yield instruction support... " >&6; }
   13560 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13561 /* end confdefs.h.  */
   13562 
   13563 int
   13564 main ()
   13565 {
   13566 __asm__ __volatile__ ("yield")
   13567 
   13568   ;
   13569   return 0;
   13570 }
   13571 _ACEOF
   13572 if ac_fn_c_try_compile "$LINENO"; then :
   13573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13574 $as_echo "yes" >&6; }
   13575 else
   13576   as_fn_error $? "no, try adding -march=native or -march=armv7-a to CFLAGS (see PLATFORM.md for more information)" "$LINENO" 5
   13577 fi
   13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   13579   *) :
   13580      ;;
   13581 esac
   13582 
   13583 for ac_func in sysctlbyname
   13584 do :
   13585   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   13586 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   13587   cat >>confdefs.h <<_ACEOF
   13588 #define HAVE_SYSCTLBYNAME 1
   13589 _ACEOF
   13590 
   13591 fi
   13592 done
   13593 
   13594 
   13595 #
   13596 # Check for the existence of mmap to enable the fast format zones
   13597 #
   13598 for ac_func in mmap
   13599 do :
   13600   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   13601 if test "x$ac_cv_func_mmap" = xyes; then :
   13602   cat >>confdefs.h <<_ACEOF
   13603 #define HAVE_MMAP 1
   13604 _ACEOF
   13605 
   13606 fi
   13607 done
   13608 
   13609 
   13610 #
   13611 # Older versions of HP/UX don't define seteuid() and setegid()
   13612 #
   13613 for ac_func in seteuid setresuid
   13614 do :
   13615   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13617 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13618   cat >>confdefs.h <<_ACEOF
   13619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13620 _ACEOF
   13621 
   13622 fi
   13623 done
   13624 
   13625 for ac_func in setegid setresgid
   13626 do :
   13627   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13628 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13629 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13630   cat >>confdefs.h <<_ACEOF
   13631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13632 _ACEOF
   13633 
   13634 fi
   13635 done
   13636 
   13637 
   13638 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   13639 if test "x$ac_cv_type_size_t" = xyes; then :
   13640 
   13641 else
   13642 
   13643 cat >>confdefs.h <<_ACEOF
   13644 #define size_t unsigned int
   13645 _ACEOF
   13646 
   13647 fi
   13648 
   13649 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   13650 if test "x$ac_cv_type_ssize_t" = xyes; then :
   13651 
   13652 else
   13653 
   13654 cat >>confdefs.h <<_ACEOF
   13655 #define ssize_t int
   13656 _ACEOF
   13657 
   13658 fi
   13659 
   13660 
   13661   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   13662 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   13663 
   13664 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   13665 
   13666 else
   13667   for ac_type in 'unsigned int' 'unsigned long int' \
   13668 	'unsigned long long int'; do
   13669        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13670 /* end confdefs.h.  */
   13671 $ac_includes_default
   13672 int
   13673 main ()
   13674 {
   13675 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   13676 test_array [0] = 0;
   13677 return test_array [0];
   13678 
   13679   ;
   13680   return 0;
   13681 }
   13682 _ACEOF
   13683 if ac_fn_c_try_compile "$LINENO"; then :
   13684 
   13685 cat >>confdefs.h <<_ACEOF
   13686 #define uintptr_t $ac_type
   13687 _ACEOF
   13688 
   13689 	  ac_type=
   13690 fi
   13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13692        test -z "$ac_type" && break
   13693      done
   13694 fi
   13695 
   13696 
   13697 
   13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   13699 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   13700 if ${ac_cv_header_time+:} false; then :
   13701   $as_echo_n "(cached) " >&6
   13702 else
   13703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13704 /* end confdefs.h.  */
   13705 #include <sys/types.h>
   13706 #include <sys/time.h>
   13707 #include <time.h>
   13708 
   13709 int
   13710 main ()
   13711 {
   13712 if ((struct tm *) 0)
   13713 return 0;
   13714   ;
   13715   return 0;
   13716 }
   13717 _ACEOF
   13718 if ac_fn_c_try_compile "$LINENO"; then :
   13719   ac_cv_header_time=yes
   13720 else
   13721   ac_cv_header_time=no
   13722 fi
   13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13724 fi
   13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   13726 $as_echo "$ac_cv_header_time" >&6; }
   13727 if test $ac_cv_header_time = yes; then
   13728 
   13729 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   13730 
   13731 fi
   13732 
   13733 
   13734 #
   13735 # check for uname library routine
   13736 #
   13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   13738 $as_echo_n "checking for uname... " >&6; }
   13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13740 /* end confdefs.h.  */
   13741 #include <sys/utsname.h>
   13742        #include <stdio.h>
   13743 
   13744 int
   13745 main ()
   13746 {
   13747 
   13748        struct utsname uts;
   13749        uname(&uts);
   13750        printf("running on %s %s %s for %s\n",
   13751 	      uts.sysname, uts.release, uts.version, uts.machine);
   13752 
   13753   ;
   13754   return 0;
   13755 }
   13756 _ACEOF
   13757 if ac_fn_c_try_compile "$LINENO"; then :
   13758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13759 $as_echo "yes" >&6; }
   13760 
   13761 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   13762 
   13763 
   13764 else
   13765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13766 $as_echo "no" >&6; }
   13767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   13768 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   13769 
   13770 fi
   13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13772 
   13773 #
   13774 # check for GCC noreturn attribute
   13775 #
   13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   13777 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13779 /* end confdefs.h.  */
   13780 
   13781 int
   13782 main ()
   13783 {
   13784 void foo() __attribute__((noreturn));
   13785   ;
   13786   return 0;
   13787 }
   13788 _ACEOF
   13789 if ac_fn_c_try_compile "$LINENO"; then :
   13790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13791 $as_echo "yes" >&6; }
   13792 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13793 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   13794 else
   13795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13796 $as_echo "no" >&6; }
   13797 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13798 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   13799 fi
   13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13801 
   13802 
   13803 
   13804 #
   13805 # check if we have kqueue
   13806 #
   13807 # Check whether --enable-kqueue was given.
   13808 if test "${enable_kqueue+set}" = set; then :
   13809   enableval=$enable_kqueue;
   13810 else
   13811   enable_kqueue="yes"
   13812 fi
   13813 
   13814 
   13815 if test "$enable_kqueue" = "yes"; then :
   13816   for ac_func in kqueue
   13817 do :
   13818   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   13819 if test "x$ac_cv_func_kqueue" = xyes; then :
   13820   cat >>confdefs.h <<_ACEOF
   13821 #define HAVE_KQUEUE 1
   13822 _ACEOF
   13823 
   13824 fi
   13825 done
   13826 
   13827 fi
   13828 
   13829 #
   13830 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   13831 # so we need to try running the code, not just test its existence.
   13832 #
   13833 # Check whether --enable-epoll was given.
   13834 if test "${enable_epoll+set}" = set; then :
   13835   enableval=$enable_epoll;
   13836 else
   13837   enable_epoll="yes"
   13838 fi
   13839 
   13840 
   13841 if test "$enable_epoll" = "yes"; then :
   13842   for ac_func in epoll_create1
   13843 do :
   13844   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   13845 if test "x$ac_cv_func_epoll_create1" = xyes; then :
   13846   cat >>confdefs.h <<_ACEOF
   13847 #define HAVE_EPOLL_CREATE1 1
   13848 _ACEOF
   13849 
   13850 fi
   13851 done
   13852 
   13853 fi
   13854 
   13855 #
   13856 # check if we support /dev/poll
   13857 #
   13858 # Check whether --enable-devpoll was given.
   13859 if test "${enable_devpoll+set}" = set; then :
   13860   enableval=$enable_devpoll;
   13861 else
   13862   enable_devpoll="yes"
   13863 fi
   13864 
   13865 if test "$enable_devpoll" = "yes"; then :
   13866   for ac_header in sys/devpoll.h devpoll.h
   13867 do :
   13868   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13869 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13871   cat >>confdefs.h <<_ACEOF
   13872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13873 _ACEOF
   13874 
   13875 fi
   13876 
   13877 done
   13878 
   13879 fi
   13880 
   13881 #
   13882 # Find the machine's endian flavor.
   13883 #
   13884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   13885 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   13886 if ${ac_cv_c_bigendian+:} false; then :
   13887   $as_echo_n "(cached) " >&6
   13888 else
   13889   ac_cv_c_bigendian=unknown
   13890     # See if we're dealing with a universal compiler.
   13891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13892 /* end confdefs.h.  */
   13893 #ifndef __APPLE_CC__
   13894 	       not a universal capable compiler
   13895 	     #endif
   13896 	     typedef int dummy;
   13897 
   13898 _ACEOF
   13899 if ac_fn_c_try_compile "$LINENO"; then :
   13900 
   13901 	# Check for potential -arch flags.  It is not universal unless
   13902 	# there are at least two -arch flags with different values.
   13903 	ac_arch=
   13904 	ac_prev=
   13905 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   13906 	 if test -n "$ac_prev"; then
   13907 	   case $ac_word in
   13908 	     i?86 | x86_64 | ppc | ppc64)
   13909 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   13910 		 ac_arch=$ac_word
   13911 	       else
   13912 		 ac_cv_c_bigendian=universal
   13913 		 break
   13914 	       fi
   13915 	       ;;
   13916 	   esac
   13917 	   ac_prev=
   13918 	 elif test "x$ac_word" = "x-arch"; then
   13919 	   ac_prev=arch
   13920 	 fi
   13921        done
   13922 fi
   13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13924     if test $ac_cv_c_bigendian = unknown; then
   13925       # See if sys/param.h defines the BYTE_ORDER macro.
   13926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13927 /* end confdefs.h.  */
   13928 #include <sys/types.h>
   13929 	     #include <sys/param.h>
   13930 
   13931 int
   13932 main ()
   13933 {
   13934 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   13935 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   13936 		     && LITTLE_ENDIAN)
   13937 	      bogus endian macros
   13938 	     #endif
   13939 
   13940   ;
   13941   return 0;
   13942 }
   13943 _ACEOF
   13944 if ac_fn_c_try_compile "$LINENO"; then :
   13945   # It does; now see whether it defined to BIG_ENDIAN or not.
   13946 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13947 /* end confdefs.h.  */
   13948 #include <sys/types.h>
   13949 		#include <sys/param.h>
   13950 
   13951 int
   13952 main ()
   13953 {
   13954 #if BYTE_ORDER != BIG_ENDIAN
   13955 		 not big endian
   13956 		#endif
   13957 
   13958   ;
   13959   return 0;
   13960 }
   13961 _ACEOF
   13962 if ac_fn_c_try_compile "$LINENO"; then :
   13963   ac_cv_c_bigendian=yes
   13964 else
   13965   ac_cv_c_bigendian=no
   13966 fi
   13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13968 fi
   13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13970     fi
   13971     if test $ac_cv_c_bigendian = unknown; then
   13972       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   13973       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13974 /* end confdefs.h.  */
   13975 #include <limits.h>
   13976 
   13977 int
   13978 main ()
   13979 {
   13980 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   13981 	      bogus endian macros
   13982 	     #endif
   13983 
   13984   ;
   13985   return 0;
   13986 }
   13987 _ACEOF
   13988 if ac_fn_c_try_compile "$LINENO"; then :
   13989   # It does; now see whether it defined to _BIG_ENDIAN or not.
   13990 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13991 /* end confdefs.h.  */
   13992 #include <limits.h>
   13993 
   13994 int
   13995 main ()
   13996 {
   13997 #ifndef _BIG_ENDIAN
   13998 		 not big endian
   13999 		#endif
   14000 
   14001   ;
   14002   return 0;
   14003 }
   14004 _ACEOF
   14005 if ac_fn_c_try_compile "$LINENO"; then :
   14006   ac_cv_c_bigendian=yes
   14007 else
   14008   ac_cv_c_bigendian=no
   14009 fi
   14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14011 fi
   14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14013     fi
   14014     if test $ac_cv_c_bigendian = unknown; then
   14015       # Compile a test program.
   14016       if test "$cross_compiling" = yes; then :
   14017   # Try to guess by grepping values from an object file.
   14018 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14019 /* end confdefs.h.  */
   14020 short int ascii_mm[] =
   14021 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14022 		short int ascii_ii[] =
   14023 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14024 		int use_ascii (int i) {
   14025 		  return ascii_mm[i] + ascii_ii[i];
   14026 		}
   14027 		short int ebcdic_ii[] =
   14028 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14029 		short int ebcdic_mm[] =
   14030 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14031 		int use_ebcdic (int i) {
   14032 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14033 		}
   14034 		extern int foo;
   14035 
   14036 int
   14037 main ()
   14038 {
   14039 return use_ascii (foo) == use_ebcdic (foo);
   14040   ;
   14041   return 0;
   14042 }
   14043 _ACEOF
   14044 if ac_fn_c_try_compile "$LINENO"; then :
   14045   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14046 	      ac_cv_c_bigendian=yes
   14047 	    fi
   14048 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14049 	      if test "$ac_cv_c_bigendian" = unknown; then
   14050 		ac_cv_c_bigendian=no
   14051 	      else
   14052 		# finding both strings is unlikely to happen, but who knows?
   14053 		ac_cv_c_bigendian=unknown
   14054 	      fi
   14055 	    fi
   14056 fi
   14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14058 else
   14059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14060 /* end confdefs.h.  */
   14061 $ac_includes_default
   14062 int
   14063 main ()
   14064 {
   14065 
   14066 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14067 	     union
   14068 	     {
   14069 	       long int l;
   14070 	       char c[sizeof (long int)];
   14071 	     } u;
   14072 	     u.l = 1;
   14073 	     return u.c[sizeof (long int) - 1] == 1;
   14074 
   14075   ;
   14076   return 0;
   14077 }
   14078 _ACEOF
   14079 if ac_fn_c_try_run "$LINENO"; then :
   14080   ac_cv_c_bigendian=no
   14081 else
   14082   ac_cv_c_bigendian=yes
   14083 fi
   14084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14085   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14086 fi
   14087 
   14088     fi
   14089 fi
   14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14091 $as_echo "$ac_cv_c_bigendian" >&6; }
   14092  case $ac_cv_c_bigendian in #(
   14093    yes)
   14094      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14095 ;; #(
   14096    no)
   14097       ;; #(
   14098    universal)
   14099 
   14100 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14101 
   14102      ;; #(
   14103    *)
   14104      as_fn_error $? "unknown endianness
   14105  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14106  esac
   14107 
   14108 
   14109 #
   14110 # GeoIP support?
   14111 #
   14112 GEOIPLINKSRCS=
   14113 GEOIPLINKOBJS=
   14114 
   14115 # Check whether --with-geoip was given.
   14116 if test "${with_geoip+set}" = set; then :
   14117   withval=$with_geoip; use_geoip="$withval"
   14118 else
   14119   use_geoip="no"
   14120 fi
   14121 
   14122 
   14123 if test "yes" = "$use_geoip"
   14124 then
   14125 	for d in /usr /usr/local /opt/local
   14126 	do
   14127 		if test -f $d/include/GeoIP.h
   14128 		then
   14129 			use_geoip=$d
   14130 			break
   14131 		fi
   14132 	done
   14133 fi
   14134 
   14135 case "$use_geoip" in
   14136 	no|'')
   14137 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14138 $as_echo_n "checking for GeoIP support... " >&6; }
   14139 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   14140 $as_echo "disabled" >&6; }
   14141 		;;
   14142 	*)
   14143 		if test -d "$use_geoip" -o -L "$use_geoip"
   14144 		then
   14145 			CFLAGS="$CFLAGS -I$use_geoip/include"
   14146 			CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
   14147 			LIBS="$LIBS -L$use_geoip/lib"
   14148 			case "$host_os" in
   14149 				netbsd*|openbsd*|solaris*)
   14150 					LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
   14151 					;;
   14152 			esac
   14153 		elif test "yes" = "$use_geoip"
   14154 		then
   14155 			as_fn_error $? "GeoIP path not found" "$LINENO" 5
   14156 		else
   14157 			as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
   14158 		fi
   14159 		ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
   14160 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
   14161 
   14162 else
   14163   as_fn_error $? "GeoIP header file not found" "$LINENO" 5
   14164 
   14165 fi
   14166 
   14167 
   14168 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
   14169 $as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
   14170 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14171   $as_echo_n "(cached) " >&6
   14172 else
   14173   ac_func_search_save_LIBS=$LIBS
   14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14175 /* end confdefs.h.  */
   14176 
   14177 /* Override any GCC internal prototype to avoid an error.
   14178    Use char because int might match the return type of a GCC
   14179    builtin and then its argument prototype would still apply.  */
   14180 #ifdef __cplusplus
   14181 extern "C"
   14182 #endif
   14183 char GeoIP_id_by_addr_gl ();
   14184 int
   14185 main ()
   14186 {
   14187 return GeoIP_id_by_addr_gl ();
   14188   ;
   14189   return 0;
   14190 }
   14191 _ACEOF
   14192 for ac_lib in '' GeoIP; do
   14193   if test -z "$ac_lib"; then
   14194     ac_res="none required"
   14195   else
   14196     ac_res=-l$ac_lib
   14197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14198   fi
   14199   if ac_fn_c_try_link "$LINENO"; then :
   14200   ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
   14201 fi
   14202 rm -f core conftest.err conftest.$ac_objext \
   14203     conftest$ac_exeext
   14204   if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14205   break
   14206 fi
   14207 done
   14208 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14209 
   14210 else
   14211   ac_cv_search_GeoIP_id_by_addr_gl=no
   14212 fi
   14213 rm conftest.$ac_ext
   14214 LIBS=$ac_func_search_save_LIBS
   14215 fi
   14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
   14217 $as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
   14218 ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
   14219 if test "$ac_res" != no; then :
   14220   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14221 
   14222 else
   14223   as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
   14224 
   14225 fi
   14226 
   14227 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
   14228 $as_echo_n "checking for library containing fabsf... " >&6; }
   14229 if ${ac_cv_search_fabsf+:} false; then :
   14230   $as_echo_n "(cached) " >&6
   14231 else
   14232   ac_func_search_save_LIBS=$LIBS
   14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14234 /* end confdefs.h.  */
   14235 
   14236 /* Override any GCC internal prototype to avoid an error.
   14237    Use char because int might match the return type of a GCC
   14238    builtin and then its argument prototype would still apply.  */
   14239 #ifdef __cplusplus
   14240 extern "C"
   14241 #endif
   14242 char fabsf ();
   14243 int
   14244 main ()
   14245 {
   14246 return fabsf ();
   14247   ;
   14248   return 0;
   14249 }
   14250 _ACEOF
   14251 for ac_lib in '' m; do
   14252   if test -z "$ac_lib"; then
   14253     ac_res="none required"
   14254   else
   14255     ac_res=-l$ac_lib
   14256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14257   fi
   14258   if ac_fn_c_try_link "$LINENO"; then :
   14259   ac_cv_search_fabsf=$ac_res
   14260 fi
   14261 rm -f core conftest.err conftest.$ac_objext \
   14262     conftest$ac_exeext
   14263   if ${ac_cv_search_fabsf+:} false; then :
   14264   break
   14265 fi
   14266 done
   14267 if ${ac_cv_search_fabsf+:} false; then :
   14268 
   14269 else
   14270   ac_cv_search_fabsf=no
   14271 fi
   14272 rm conftest.$ac_ext
   14273 LIBS=$ac_func_search_save_LIBS
   14274 fi
   14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
   14276 $as_echo "$ac_cv_search_fabsf" >&6; }
   14277 ac_res=$ac_cv_search_fabsf
   14278 if test "$ac_res" != no; then :
   14279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14280 
   14281 else
   14282   as_fn_error $? "Math library not found" "$LINENO" 5
   14283 
   14284 fi
   14285 
   14286 
   14287 $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
   14288 
   14289 		GEOIPLINKSRCS='${GEOIPLINKSRCS}'
   14290 		GEOIPLINKOBJS='${GEOIPLINKOBJS}'
   14291 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14292 $as_echo_n "checking for GeoIP support... " >&6; }
   14293 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14294 $as_echo "yes" >&6; }
   14295 
   14296 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
   14297 $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
   14298 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14299 /* end confdefs.h.  */
   14300 
   14301 				#include <GeoIP.h>
   14302 				#include <netinet/in.h>
   14303 
   14304 int
   14305 main ()
   14306 {
   14307 
   14308 				struct in6_addr in6;
   14309 				GeoIP_country_name_by_ipnum_v6(NULL, in6);
   14310 
   14311   ;
   14312   return 0;
   14313 }
   14314 _ACEOF
   14315 if ac_fn_c_try_compile "$LINENO"; then :
   14316 
   14317 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14318 $as_echo "yes" >&6; }
   14319 
   14320 $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
   14321 
   14322 
   14323 else
   14324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14325 $as_echo "no" >&6; }
   14326 
   14327 fi
   14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14329 
   14330 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
   14331 $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
   14332 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14333 /* end confdefs.h.  */
   14334 
   14335 				#include <GeoIP.h>
   14336 				#include <GeoIPCity.h>
   14337 				#include <netinet/in.h>
   14338 
   14339 int
   14340 main ()
   14341 {
   14342 
   14343 				struct in6_addr in6;
   14344 				int i = GEOIP_CITY_EDITION_REV0_V6;
   14345 				GeoIP_record_by_ipnum_v6(NULL, in6);
   14346 
   14347   ;
   14348   return 0;
   14349 }
   14350 _ACEOF
   14351 if ac_fn_c_try_compile "$LINENO"; then :
   14352 
   14353 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14354 $as_echo "yes" >&6; }
   14355 
   14356 $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
   14357 
   14358 
   14359 else
   14360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14361 $as_echo "no" >&6; }
   14362 
   14363 fi
   14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14365 		;;
   14366 esac
   14367 
   14368 
   14369 
   14370 #
   14371 # Do we have arc4random(), etc ?
   14372 #
   14373 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   14374 do :
   14375   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14376 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14377 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14378   cat >>confdefs.h <<_ACEOF
   14379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14380 _ACEOF
   14381 
   14382 fi
   14383 done
   14384 
   14385 
   14386 
   14387 
   14388 
   14389 
   14390 ac_ext=c
   14391 ac_cpp='$CPP $CPPFLAGS'
   14392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14395 
   14396 ax_pthread_ok=no
   14397 
   14398 # We used to check for pthread.h first, but this fails if pthread.h
   14399 # requires special compiler flags (e.g. on Tru64 or Sequent).
   14400 # It gets checked for in the link test anyway.
   14401 
   14402 # First of all, check if the user has set any of the PTHREAD_LIBS,
   14403 # etcetera environment variables, and if threads linking works using
   14404 # them:
   14405 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   14406         ax_pthread_save_CC="$CC"
   14407         ax_pthread_save_CFLAGS="$CFLAGS"
   14408         ax_pthread_save_LIBS="$LIBS"
   14409         if test "x$PTHREAD_CC" != "x"; then :
   14410   CC="$PTHREAD_CC"
   14411 fi
   14412         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14413         LIBS="$PTHREAD_LIBS $LIBS"
   14414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   14415 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   14416         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14417 /* end confdefs.h.  */
   14418 
   14419 /* Override any GCC internal prototype to avoid an error.
   14420    Use char because int might match the return type of a GCC
   14421    builtin and then its argument prototype would still apply.  */
   14422 #ifdef __cplusplus
   14423 extern "C"
   14424 #endif
   14425 char pthread_join ();
   14426 int
   14427 main ()
   14428 {
   14429 return pthread_join ();
   14430   ;
   14431   return 0;
   14432 }
   14433 _ACEOF
   14434 if ac_fn_c_try_link "$LINENO"; then :
   14435   ax_pthread_ok=yes
   14436 fi
   14437 rm -f core conftest.err conftest.$ac_objext \
   14438     conftest$ac_exeext conftest.$ac_ext
   14439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14440 $as_echo "$ax_pthread_ok" >&6; }
   14441         if test "x$ax_pthread_ok" = "xno"; then
   14442                 PTHREAD_LIBS=""
   14443                 PTHREAD_CFLAGS=""
   14444         fi
   14445         CC="$ax_pthread_save_CC"
   14446         CFLAGS="$ax_pthread_save_CFLAGS"
   14447         LIBS="$ax_pthread_save_LIBS"
   14448 fi
   14449 
   14450 # We must check for the threads library under a number of different
   14451 # names; the ordering is very important because some systems
   14452 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   14453 # libraries is broken (non-POSIX).
   14454 
   14455 # Create a list of thread flags to try.  Items starting with a "-" are
   14456 # C compiler flags, and other items are library names, except for "none"
   14457 # which indicates that we try without any flags at all, and "pthread-config"
   14458 # which is a program returning the flags for the Pth emulation library.
   14459 
   14460 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   14461 
   14462 # The ordering *is* (sometimes) important.  Some notes on the
   14463 # individual items follow:
   14464 
   14465 # pthreads: AIX (must check this before -lpthread)
   14466 # none: in case threads are in libc; should be tried before -Kthread and
   14467 #       other compiler flags to prevent continual compiler warnings
   14468 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   14469 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   14470 #           (Note: HP C rejects this with "bad form for `-t' option")
   14471 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   14472 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   14473 #      doesn't hurt to check since this sometimes defines pthreads and
   14474 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   14475 #      is present but should not be used directly; and before -mthreads,
   14476 #      because the compiler interprets this as "-mt" + "-hreads")
   14477 # -mthreads: Mingw32/gcc, Lynx/gcc
   14478 # pthread: Linux, etcetera
   14479 # --thread-safe: KAI C++
   14480 # pthread-config: use pthread-config program (for GNU Pth library)
   14481 
   14482 case $host_os in
   14483 
   14484         freebsd*)
   14485 
   14486         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   14487         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   14488 
   14489         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   14490         ;;
   14491 
   14492         hpux*)
   14493 
   14494         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   14495         # multi-threading and also sets -lpthread."
   14496 
   14497         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   14498         ;;
   14499 
   14500         openedition*)
   14501 
   14502         # IBM z/OS requires a feature-test macro to be defined in order to
   14503         # enable POSIX threads at all, so give the user a hint if this is
   14504         # not set. (We don't define these ourselves, as they can affect
   14505         # other portions of the system API in unpredictable ways.)
   14506 
   14507         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14508 /* end confdefs.h.  */
   14509 
   14510 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   14511              AX_PTHREAD_ZOS_MISSING
   14512 #            endif
   14513 
   14514 _ACEOF
   14515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14516   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   14517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   14518 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   14519 fi
   14520 rm -f conftest*
   14521 
   14522         ;;
   14523 
   14524         solaris*)
   14525 
   14526         # On Solaris (at least, for some versions), libc contains stubbed
   14527         # (non-functional) versions of the pthreads routines, so link-based
   14528         # tests will erroneously succeed. (N.B.: The stubs are missing
   14529         # pthread_cleanup_push, or rather a function called by this macro,
   14530         # so we could check for that, but who knows whether they'll stub
   14531         # that too in a future libc.)  So we'll check first for the
   14532         # standard Solaris way of linking pthreads (-mt -lpthread).
   14533 
   14534         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   14535         ;;
   14536 esac
   14537 
   14538 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   14539 
   14540 if test "x$GCC" = "xyes"; then :
   14541   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   14542 fi
   14543 
   14544 # The presence of a feature test macro requesting re-entrant function
   14545 # definitions is, on some systems, a strong hint that pthreads support is
   14546 # correctly enabled
   14547 
   14548 case $host_os in
   14549         darwin* | hpux* | linux* | osf* | solaris*)
   14550         ax_pthread_check_macro="_REENTRANT"
   14551         ;;
   14552 
   14553         aix*)
   14554         ax_pthread_check_macro="_THREAD_SAFE"
   14555         ;;
   14556 
   14557         *)
   14558         ax_pthread_check_macro="--"
   14559         ;;
   14560 esac
   14561 if test "x$ax_pthread_check_macro" = "x--"; then :
   14562   ax_pthread_check_cond=0
   14563 else
   14564   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   14565 fi
   14566 
   14567 # Are we compiling with Clang?
   14568 
   14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   14570 $as_echo_n "checking whether $CC is Clang... " >&6; }
   14571 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   14572   $as_echo_n "(cached) " >&6
   14573 else
   14574   ax_cv_PTHREAD_CLANG=no
   14575      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   14576      if test "x$GCC" = "xyes"; then
   14577         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14578 /* end confdefs.h.  */
   14579 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   14580 #            if defined(__clang__) && defined(__llvm__)
   14581              AX_PTHREAD_CC_IS_CLANG
   14582 #            endif
   14583 
   14584 _ACEOF
   14585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14586   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   14587   ax_cv_PTHREAD_CLANG=yes
   14588 fi
   14589 rm -f conftest*
   14590 
   14591      fi
   14592 
   14593 fi
   14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   14595 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   14596 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   14597 
   14598 ax_pthread_clang_warning=no
   14599 
   14600 # Clang needs special handling, because older versions handle the -pthread
   14601 # option in a rather... idiosyncratic way
   14602 
   14603 if test "x$ax_pthread_clang" = "xyes"; then
   14604 
   14605         # Clang takes -pthread; it has never supported any other flag
   14606 
   14607         # (Note 1: This will need to be revisited if a system that Clang
   14608         # supports has POSIX threads in a separate library.  This tends not
   14609         # to be the way of modern systems, but it's conceivable.)
   14610 
   14611         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   14612         # to get POSIX threads support; the API is always present and
   14613         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   14614         # -pthread does define _REENTRANT, and while the Darwin headers
   14615         # ignore this macro, third-party headers might not.)
   14616 
   14617         PTHREAD_CFLAGS="-pthread"
   14618         PTHREAD_LIBS=
   14619 
   14620         ax_pthread_ok=yes
   14621 
   14622         # However, older versions of Clang make a point of warning the user
   14623         # that, in an invocation where only linking and no compilation is
   14624         # taking place, the -pthread option has no effect ("argument unused
   14625         # during compilation").  They expect -pthread to be passed in only
   14626         # when source code is being compiled.
   14627         #
   14628         # Problem is, this is at odds with the way Automake and most other
   14629         # C build frameworks function, which is that the same flags used in
   14630         # compilation (CFLAGS) are also used in linking.  Many systems
   14631         # supported by AX_PTHREAD require exactly this for POSIX threads
   14632         # support, and in fact it is often not straightforward to specify a
   14633         # flag that is used only in the compilation phase and not in
   14634         # linking.  Such a scenario is extremely rare in practice.
   14635         #
   14636         # Even though use of the -pthread flag in linking would only print
   14637         # a warning, this can be a nuisance for well-run software projects
   14638         # that build with -Werror.  So if the active version of Clang has
   14639         # this misfeature, we search for an option to squash it.
   14640 
   14641         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   14642 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   14643 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   14644   $as_echo_n "(cached) " >&6
   14645 else
   14646   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   14647              # Create an alternate version of $ac_link that compiles and
   14648              # links in two steps (.c -> .o, .o -> exe) instead of one
   14649              # (.c -> exe), because the warning occurs only in the second
   14650              # step
   14651              ax_pthread_save_ac_link="$ac_link"
   14652              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   14653              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   14654              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   14655              ax_pthread_save_CFLAGS="$CFLAGS"
   14656              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   14657                 if test "x$ax_pthread_try" = "xunknown"; then :
   14658   break
   14659 fi
   14660                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   14661                 ac_link="$ax_pthread_save_ac_link"
   14662                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14663 /* end confdefs.h.  */
   14664 int main(void){return 0;}
   14665 _ACEOF
   14666 if ac_fn_c_try_link "$LINENO"; then :
   14667   ac_link="$ax_pthread_2step_ac_link"
   14668                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14669 /* end confdefs.h.  */
   14670 int main(void){return 0;}
   14671 _ACEOF
   14672 if ac_fn_c_try_link "$LINENO"; then :
   14673   break
   14674 fi
   14675 rm -f core conftest.err conftest.$ac_objext \
   14676     conftest$ac_exeext conftest.$ac_ext
   14677 
   14678 fi
   14679 rm -f core conftest.err conftest.$ac_objext \
   14680     conftest$ac_exeext conftest.$ac_ext
   14681              done
   14682              ac_link="$ax_pthread_save_ac_link"
   14683              CFLAGS="$ax_pthread_save_CFLAGS"
   14684              if test "x$ax_pthread_try" = "x"; then :
   14685   ax_pthread_try=no
   14686 fi
   14687              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   14688 
   14689 fi
   14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   14691 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   14692 
   14693         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   14694                 no | unknown) ;;
   14695                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   14696         esac
   14697 
   14698 fi # $ax_pthread_clang = yes
   14699 
   14700 if test "x$ax_pthread_ok" = "xno"; then
   14701 for ax_pthread_try_flag in $ax_pthread_flags; do
   14702 
   14703         case $ax_pthread_try_flag in
   14704                 none)
   14705                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   14706 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   14707                 ;;
   14708 
   14709                 -mt,pthread)
   14710                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   14711 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   14712                 PTHREAD_CFLAGS="-mt"
   14713                 PTHREAD_LIBS="-lpthread"
   14714                 ;;
   14715 
   14716                 -*)
   14717                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   14718 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   14719                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   14720                 ;;
   14721 
   14722                 pthread-config)
   14723                 # Extract the first word of "pthread-config", so it can be a program name with args.
   14724 set dummy pthread-config; ac_word=$2
   14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14726 $as_echo_n "checking for $ac_word... " >&6; }
   14727 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   14728   $as_echo_n "(cached) " >&6
   14729 else
   14730   if test -n "$ax_pthread_config"; then
   14731   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   14732 else
   14733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14734 for as_dir in $PATH
   14735 do
   14736   IFS=$as_save_IFS
   14737   test -z "$as_dir" && as_dir=.
   14738     for ac_exec_ext in '' $ac_executable_extensions; do
   14739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14740     ac_cv_prog_ax_pthread_config="yes"
   14741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14742     break 2
   14743   fi
   14744 done
   14745   done
   14746 IFS=$as_save_IFS
   14747 
   14748   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   14749 fi
   14750 fi
   14751 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   14752 if test -n "$ax_pthread_config"; then
   14753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   14754 $as_echo "$ax_pthread_config" >&6; }
   14755 else
   14756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14757 $as_echo "no" >&6; }
   14758 fi
   14759 
   14760 
   14761                 if test "x$ax_pthread_config" = "xno"; then :
   14762   continue
   14763 fi
   14764                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   14765                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   14766                 ;;
   14767 
   14768                 *)
   14769                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   14770 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   14771                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   14772                 ;;
   14773         esac
   14774 
   14775         ax_pthread_save_CFLAGS="$CFLAGS"
   14776         ax_pthread_save_LIBS="$LIBS"
   14777         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14778         LIBS="$PTHREAD_LIBS $LIBS"
   14779 
   14780         # Check for various functions.  We must include pthread.h,
   14781         # since some functions may be macros.  (On the Sequent, we
   14782         # need a special flag -Kthread to make this header compile.)
   14783         # We check for pthread_join because it is in -lpthread on IRIX
   14784         # while pthread_create is in libc.  We check for pthread_attr_init
   14785         # due to DEC craziness with -lpthreads.  We check for
   14786         # pthread_cleanup_push because it is one of the few pthread
   14787         # functions on Solaris that doesn't have a non-functional libc stub.
   14788         # We try pthread_create on general principles.
   14789 
   14790         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14791 /* end confdefs.h.  */
   14792 #include <pthread.h>
   14793 #                       if $ax_pthread_check_cond
   14794 #                        error "$ax_pthread_check_macro must be defined"
   14795 #                       endif
   14796                         static void routine(void *a) { a = 0; }
   14797                         static void *start_routine(void *a) { return a; }
   14798 int
   14799 main ()
   14800 {
   14801 pthread_t th; pthread_attr_t attr;
   14802                         pthread_create(&th, 0, start_routine, 0);
   14803                         pthread_join(th, 0);
   14804                         pthread_attr_init(&attr);
   14805                         pthread_cleanup_push(routine, 0);
   14806                         pthread_cleanup_pop(0) /* ; */
   14807   ;
   14808   return 0;
   14809 }
   14810 _ACEOF
   14811 if ac_fn_c_try_link "$LINENO"; then :
   14812   ax_pthread_ok=yes
   14813 fi
   14814 rm -f core conftest.err conftest.$ac_objext \
   14815     conftest$ac_exeext conftest.$ac_ext
   14816 
   14817         CFLAGS="$ax_pthread_save_CFLAGS"
   14818         LIBS="$ax_pthread_save_LIBS"
   14819 
   14820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14821 $as_echo "$ax_pthread_ok" >&6; }
   14822         if test "x$ax_pthread_ok" = "xyes"; then :
   14823   break
   14824 fi
   14825 
   14826         PTHREAD_LIBS=""
   14827         PTHREAD_CFLAGS=""
   14828 done
   14829 fi
   14830 
   14831 # Various other checks:
   14832 if test "x$ax_pthread_ok" = "xyes"; then
   14833         ax_pthread_save_CFLAGS="$CFLAGS"
   14834         ax_pthread_save_LIBS="$LIBS"
   14835         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14836         LIBS="$PTHREAD_LIBS $LIBS"
   14837 
   14838         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   14839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   14840 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   14841 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   14842   $as_echo_n "(cached) " >&6
   14843 else
   14844   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   14845              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   14846                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14847 /* end confdefs.h.  */
   14848 #include <pthread.h>
   14849 int
   14850 main ()
   14851 {
   14852 int attr = $ax_pthread_attr; return attr /* ; */
   14853   ;
   14854   return 0;
   14855 }
   14856 _ACEOF
   14857 if ac_fn_c_try_link "$LINENO"; then :
   14858   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   14859 fi
   14860 rm -f core conftest.err conftest.$ac_objext \
   14861     conftest$ac_exeext conftest.$ac_ext
   14862              done
   14863 
   14864 fi
   14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   14866 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   14867         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   14868                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   14869                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   14870 
   14871 cat >>confdefs.h <<_ACEOF
   14872 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   14873 _ACEOF
   14874 
   14875                ax_pthread_joinable_attr_defined=yes
   14876 
   14877 fi
   14878 
   14879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   14880 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   14881 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   14882   $as_echo_n "(cached) " >&6
   14883 else
   14884   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   14885              case $host_os in
   14886              solaris*)
   14887              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   14888              ;;
   14889              esac
   14890 
   14891 fi
   14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   14893 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   14894         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   14895                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   14896   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   14897                ax_pthread_special_flags_added=yes
   14898 fi
   14899 
   14900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   14901 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   14902 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   14903   $as_echo_n "(cached) " >&6
   14904 else
   14905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14906 /* end confdefs.h.  */
   14907 #include <pthread.h>
   14908 int
   14909 main ()
   14910 {
   14911 int i = PTHREAD_PRIO_INHERIT;
   14912   ;
   14913   return 0;
   14914 }
   14915 _ACEOF
   14916 if ac_fn_c_try_link "$LINENO"; then :
   14917   ax_cv_PTHREAD_PRIO_INHERIT=yes
   14918 else
   14919   ax_cv_PTHREAD_PRIO_INHERIT=no
   14920 fi
   14921 rm -f core conftest.err conftest.$ac_objext \
   14922     conftest$ac_exeext conftest.$ac_ext
   14923 
   14924 fi
   14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   14926 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   14927         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   14928                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   14929 
   14930 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   14931 
   14932                ax_pthread_prio_inherit_defined=yes
   14933 
   14934 fi
   14935 
   14936         CFLAGS="$ax_pthread_save_CFLAGS"
   14937         LIBS="$ax_pthread_save_LIBS"
   14938 
   14939         # More AIX lossage: compile with *_r variant
   14940         if test "x$GCC" != "xyes"; then
   14941             case $host_os in
   14942                 aix*)
   14943                 case "x/$CC" in #(
   14944   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   14945     #handle absolute path differently from PATH based program lookup
   14946                      case "x$CC" in #(
   14947   x/*) :
   14948     if as_fn_executable_p ${CC}_r; then :
   14949   PTHREAD_CC="${CC}_r"
   14950 fi ;; #(
   14951   *) :
   14952     for ac_prog in ${CC}_r
   14953 do
   14954   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14955 set dummy $ac_prog; ac_word=$2
   14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14957 $as_echo_n "checking for $ac_word... " >&6; }
   14958 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   14959   $as_echo_n "(cached) " >&6
   14960 else
   14961   if test -n "$PTHREAD_CC"; then
   14962   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   14963 else
   14964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14965 for as_dir in $PATH
   14966 do
   14967   IFS=$as_save_IFS
   14968   test -z "$as_dir" && as_dir=.
   14969     for ac_exec_ext in '' $ac_executable_extensions; do
   14970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14971     ac_cv_prog_PTHREAD_CC="$ac_prog"
   14972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14973     break 2
   14974   fi
   14975 done
   14976   done
   14977 IFS=$as_save_IFS
   14978 
   14979 fi
   14980 fi
   14981 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   14982 if test -n "$PTHREAD_CC"; then
   14983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   14984 $as_echo "$PTHREAD_CC" >&6; }
   14985 else
   14986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14987 $as_echo "no" >&6; }
   14988 fi
   14989 
   14990 
   14991   test -n "$PTHREAD_CC" && break
   14992 done
   14993 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   14994  ;;
   14995 esac ;; #(
   14996   *) :
   14997      ;;
   14998 esac
   14999                 ;;
   15000             esac
   15001         fi
   15002 fi
   15003 
   15004 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15005 
   15006 
   15007 
   15008 
   15009 
   15010 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15011 if test "x$ax_pthread_ok" = "xyes"; then
   15012 
   15013 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15014 
   15015         :
   15016 else
   15017         ax_pthread_ok=no
   15018 
   15019 fi
   15020 ac_ext=c
   15021 ac_cpp='$CPP $CPPFLAGS'
   15022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15025 
   15026 
   15027 
   15028 LIBS="$PTHREAD_LIBS $LIBS"
   15029 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15030 CC="$PTHREAD_CC"
   15031 
   15032 #
   15033 # We'd like to use sigwait() too
   15034 #
   15035 for ac_func in sigwait pthread_attr_getstacksize pthread_attr_setstacksize
   15036 do :
   15037   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15040   cat >>confdefs.h <<_ACEOF
   15041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15042 _ACEOF
   15043 
   15044 fi
   15045 done
   15046 
   15047 
   15048 
   15049 # Check whether --with-locktype was given.
   15050 if test "${with_locktype+set}" = set; then :
   15051   withval=$with_locktype;
   15052 else
   15053   with_locktype="adaptive"
   15054 fi
   15055 
   15056 
   15057 case $with_locktype in #(
   15058   adaptive) :
   15059 
   15060 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15061 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15062 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15063 /* end confdefs.h.  */
   15064 
   15065 		 #ifndef _GNU_SOURCE
   15066 		 #define _GNU_SOURCE
   15067 		 #endif
   15068 		 #include <pthread.h>
   15069 
   15070 int
   15071 main ()
   15072 {
   15073 
   15074 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   15075 
   15076 
   15077   ;
   15078   return 0;
   15079 }
   15080 _ACEOF
   15081 if ac_fn_c_try_compile "$LINENO"; then :
   15082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   15083 $as_echo "using adaptive lock type" >&6; }
   15084 
   15085 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   15086 
   15087 else
   15088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15089 $as_echo "using standard lock type" >&6; }
   15090 
   15091 fi
   15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   15093   standard) :
   15094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15095 $as_echo "using standard lock type" >&6; } ;; #(
   15096   *) :
   15097     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   15098         ;;
   15099 esac
   15100 
   15101 for ac_header in sched.h
   15102 do :
   15103   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15104 if test "x$ac_cv_header_sched_h" = xyes; then :
   15105   cat >>confdefs.h <<_ACEOF
   15106 #define HAVE_SCHED_H 1
   15107 _ACEOF
   15108 
   15109 fi
   15110 
   15111 done
   15112 
   15113 
   15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   15115 $as_echo_n "checking for library containing sched_yield... " >&6; }
   15116 if ${ac_cv_search_sched_yield+:} false; then :
   15117   $as_echo_n "(cached) " >&6
   15118 else
   15119   ac_func_search_save_LIBS=$LIBS
   15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15121 /* end confdefs.h.  */
   15122 
   15123 /* Override any GCC internal prototype to avoid an error.
   15124    Use char because int might match the return type of a GCC
   15125    builtin and then its argument prototype would still apply.  */
   15126 #ifdef __cplusplus
   15127 extern "C"
   15128 #endif
   15129 char sched_yield ();
   15130 int
   15131 main ()
   15132 {
   15133 return sched_yield ();
   15134   ;
   15135   return 0;
   15136 }
   15137 _ACEOF
   15138 for ac_lib in '' rt; do
   15139   if test -z "$ac_lib"; then
   15140     ac_res="none required"
   15141   else
   15142     ac_res=-l$ac_lib
   15143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15144   fi
   15145   if ac_fn_c_try_link "$LINENO"; then :
   15146   ac_cv_search_sched_yield=$ac_res
   15147 fi
   15148 rm -f core conftest.err conftest.$ac_objext \
   15149     conftest$ac_exeext
   15150   if ${ac_cv_search_sched_yield+:} false; then :
   15151   break
   15152 fi
   15153 done
   15154 if ${ac_cv_search_sched_yield+:} false; then :
   15155 
   15156 else
   15157   ac_cv_search_sched_yield=no
   15158 fi
   15159 rm conftest.$ac_ext
   15160 LIBS=$ac_func_search_save_LIBS
   15161 fi
   15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   15163 $as_echo "$ac_cv_search_sched_yield" >&6; }
   15164 ac_res=$ac_cv_search_sched_yield
   15165 if test "$ac_res" != no; then :
   15166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15167 
   15168 fi
   15169 
   15170 for ac_func in sched_yield pthread_yield pthread_yield_np
   15171 do :
   15172   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15174 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15175   cat >>confdefs.h <<_ACEOF
   15176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15177 _ACEOF
   15178 
   15179 fi
   15180 done
   15181 
   15182 
   15183 for ac_header in sys/cpuset.h
   15184 do :
   15185   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
   15186 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
   15187   cat >>confdefs.h <<_ACEOF
   15188 #define HAVE_SYS_CPUSET_H 1
   15189 _ACEOF
   15190 
   15191 fi
   15192 
   15193 done
   15194 
   15195 for ac_header in sys/procset.h
   15196 do :
   15197   ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
   15198 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
   15199   cat >>confdefs.h <<_ACEOF
   15200 #define HAVE_SYS_PROCSET_H 1
   15201 _ACEOF
   15202 
   15203 fi
   15204 
   15205 done
   15206 
   15207 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
   15208 do :
   15209   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15211 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15212   cat >>confdefs.h <<_ACEOF
   15213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15214 _ACEOF
   15215 
   15216 fi
   15217 done
   15218 
   15219 
   15220 # Look for functions relating to thread naming
   15221 for ac_func in pthread_setname_np pthread_set_name_np
   15222 do :
   15223   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15224 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15225 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15226   cat >>confdefs.h <<_ACEOF
   15227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15228 _ACEOF
   15229 
   15230 fi
   15231 done
   15232 
   15233 for ac_header in pthread_np.h
   15234 do :
   15235   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   15236 "
   15237 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   15238   cat >>confdefs.h <<_ACEOF
   15239 #define HAVE_PTHREAD_NP_H 1
   15240 _ACEOF
   15241 
   15242 fi
   15243 
   15244 done
   15245 
   15246 
   15247 #
   15248 # Look for sysconf to allow detection of the number of processors.
   15249 #
   15250 for ac_func in sysconf
   15251 do :
   15252   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   15253 if test "x$ac_cv_func_sysconf" = xyes; then :
   15254   cat >>confdefs.h <<_ACEOF
   15255 #define HAVE_SYSCONF 1
   15256 _ACEOF
   15257 
   15258 fi
   15259 done
   15260 
   15261 
   15262 
   15263 
   15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   15265 $as_echo_n "checking for libtool... " >&6; }
   15266 
   15267 # Check whether --with-libtool was given.
   15268 if test "${with_libtool+set}" = set; then :
   15269   withval=$with_libtool; use_libtool="$withval"
   15270 else
   15271   use_libtool="no"
   15272 fi
   15273 
   15274 
   15275 case $use_libtool in
   15276 	yes)
   15277 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15278 $as_echo "yes" >&6; }
   15279 
   15280 		O=lo
   15281 		A=la
   15282 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   15283 		LIBTOOL_MODE_COMPILE='--mode=compile'
   15284 		LIBTOOL_MODE_INSTALL='--mode=install'
   15285 		LIBTOOL_MODE_LINK='--mode=link'
   15286 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   15287 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   15288 		;;
   15289 	*)
   15290 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15291 $as_echo "no" >&6; }
   15292 		O=o
   15293 		A=a
   15294 		LIBTOOL=
   15295 
   15296 		LIBTOOL_MKDEP_SED=
   15297 		LIBTOOL_MODE_COMPILE=
   15298 		LIBTOOL_MODE_INSTALL=
   15299 		LIBTOOL_MODE_LINK=
   15300 		LIBTOOL_MODE_UNINSTALL=
   15301 		INSTALL_LIBRARY='${INSTALL_DATA}'
   15302 		;;
   15303 esac
   15304 
   15305 
   15306 #
   15307 # If PIC is disabled, shared libraries must also be
   15308 #
   15309 if test "$pic_mode" = "no"; then :
   15310   enable_shared="no"
   15311 fi
   15312 
   15313 CRYPTO=OpenSSL
   15314 
   15315 #
   15316 # was --with-openssl specified?
   15317 #
   15318 
   15319     found=false
   15320     default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
   15321 
   15322 # Check whether --with-openssl was given.
   15323 if test "${with_openssl+set}" = set; then :
   15324   withval=$with_openssl;
   15325 	    case $with_openssl in #(
   15326   ""|y|ye|yes) :
   15327     ssldirs="$default_ssldirs" ;; #(
   15328   n|no) :
   15329     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   15330   *) :
   15331     ssldirs="$withval" ;; #(
   15332   *) :
   15333     ssldirs="$default_ssldirs"
   15334 	     ;;
   15335 esac
   15336 
   15337 else
   15338 
   15339             # if pkg-config is installed and openssl has installed a .pc file,
   15340             # then use that information and don't search ssldirs
   15341 
   15342 pkg_failed=no
   15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   15344 $as_echo_n "checking for crypto... " >&6; }
   15345 
   15346 if test -n "$OPENSSL_CFLAGS"; then
   15347     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   15348  elif test -n "$PKG_CONFIG"; then
   15349     if test -n "$PKG_CONFIG" && \
   15350     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15351   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15352   ac_status=$?
   15353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15354   test $ac_status = 0; }; then
   15355   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   15356 		      test "x$?" != "x0" && pkg_failed=yes
   15357 else
   15358   pkg_failed=yes
   15359 fi
   15360  else
   15361     pkg_failed=untried
   15362 fi
   15363 if test -n "$OPENSSL_LIBS"; then
   15364     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   15365  elif test -n "$PKG_CONFIG"; then
   15366     if test -n "$PKG_CONFIG" && \
   15367     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15368   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15369   ac_status=$?
   15370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15371   test $ac_status = 0; }; then
   15372   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   15373 		      test "x$?" != "x0" && pkg_failed=yes
   15374 else
   15375   pkg_failed=yes
   15376 fi
   15377  else
   15378     pkg_failed=untried
   15379 fi
   15380 
   15381 
   15382 
   15383 if test $pkg_failed = yes; then
   15384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15385 $as_echo "no" >&6; }
   15386 
   15387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   15388         _pkg_short_errors_supported=yes
   15389 else
   15390         _pkg_short_errors_supported=no
   15391 fi
   15392         if test $_pkg_short_errors_supported = yes; then
   15393 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   15394         else
   15395 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   15396         fi
   15397 	# Put the nasty error message in config.log where it belongs
   15398 	echo "$OPENSSL_PKG_ERRORS" >&5
   15399 
   15400 	ssldirs="$default_ssldirs"
   15401 elif test $pkg_failed = untried; then
   15402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15403 $as_echo "no" >&6; }
   15404 	ssldirs="$default_ssldirs"
   15405 else
   15406 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   15407 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   15408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15409 $as_echo "yes" >&6; }
   15410 	found=true
   15411 fi
   15412 
   15413 
   15414 
   15415 fi
   15416 
   15417 
   15418 
   15419     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   15420     # an 'openssl' subdirectory
   15421 
   15422     if ! $found; then :
   15423 
   15424         OPENSSL_INCLUDES=
   15425         for ssldir in $ssldirs; do
   15426             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   15427 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   15428 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   15429 
   15430 		    OPENSSL_INCLUDES="-I$ssldir/include"
   15431                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   15432                     found=true
   15433                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15434 $as_echo "yes" >&6; }
   15435                     break
   15436 
   15437 else
   15438 
   15439 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15440 $as_echo "no" >&6; }
   15441 
   15442 fi
   15443         done
   15444 
   15445         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   15446         # it will just work!
   15447 
   15448 fi
   15449 
   15450     # try the preprocessor and linker with our new flags,
   15451     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   15452 
   15453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   15454 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   15455     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES])
   15456 
   15457     save_LIBS="$LIBS"
   15458     save_CPPFLAGS="$CPPFLAGS"
   15459     LIBS="$OPENSSL_LIBS $LIBS"
   15460     CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
   15461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15462 /* end confdefs.h.  */
   15463 
   15464                 #include <openssl/crypto.h>
   15465 
   15466 int
   15467 main ()
   15468 {
   15469 
   15470 	        OPENSSL_free(NULL);
   15471 
   15472   ;
   15473   return 0;
   15474 }
   15475 _ACEOF
   15476 if ac_fn_c_try_link "$LINENO"; then :
   15477 
   15478             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15479 $as_echo "yes" >&6; }
   15480             :
   15481 
   15482 else
   15483 
   15484             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15485 $as_echo "no" >&6; }
   15486             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15488 as_fn_error $? "OpenSSL/LibreSSL not found
   15489 See \`config.log' for more details" "$LINENO" 5; }
   15490 
   15491 fi
   15492 rm -f core conftest.err conftest.$ac_objext \
   15493     conftest$ac_exeext conftest.$ac_ext
   15494     CPPFLAGS="$save_CPPFLAGS"
   15495     LIBS="$save_LIBS"
   15496 
   15497 
   15498 
   15499 
   15500 
   15501 save_CFLAGS="$CFLAGS"
   15502 save_LIBS="$LIBS"
   15503 save_LDFLAGS="$LDFLAGS"
   15504 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
   15505 LIBS="$LIBS $OPENSSL_LIBS"
   15506 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
   15507 
   15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
   15509 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
   15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15511 /* end confdefs.h.  */
   15512 #include <openssl/opensslv.h>
   15513 int
   15514 main ()
   15515 {
   15516 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
   15517 		       #error OpenSSL >= 1.0.0 or LibreSSL required
   15518 		       #endif
   15519 
   15520   ;
   15521   return 0;
   15522 }
   15523 _ACEOF
   15524 if ac_fn_c_try_compile "$LINENO"; then :
   15525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15526 $as_echo "yes" >&6; }
   15527 else
   15528   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15530 as_fn_error $? "not found
   15531 See \`config.log' for more details" "$LINENO" 5; }
   15532 fi
   15533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15534 
   15535 #
   15536 # Check for functions added in OpenSSL or LibreSSL
   15537 #
   15538 
   15539 for ac_func in CRYPTO_zalloc
   15540 do :
   15541   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   15542 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   15543   cat >>confdefs.h <<_ACEOF
   15544 #define HAVE_CRYPTO_ZALLOC 1
   15545 _ACEOF
   15546 
   15547 fi
   15548 done
   15549 
   15550 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   15551 do :
   15552   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15554 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15555   cat >>confdefs.h <<_ACEOF
   15556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15557 _ACEOF
   15558 
   15559 fi
   15560 done
   15561 
   15562 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   15563 do :
   15564   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15566 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15567   cat >>confdefs.h <<_ACEOF
   15568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15569 _ACEOF
   15570 
   15571 fi
   15572 done
   15573 
   15574 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   15575 do :
   15576   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15578 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15579   cat >>confdefs.h <<_ACEOF
   15580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15581 _ACEOF
   15582 
   15583 fi
   15584 done
   15585 
   15586 
   15587 #
   15588 # Check for algorithm support in OpenSSL
   15589 #
   15590 
   15591 for ac_func in ECDSA_sign ECDSA_verify
   15592 do :
   15593   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15595 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15596   cat >>confdefs.h <<_ACEOF
   15597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15598 _ACEOF
   15599  :
   15600 else
   15601   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15603 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   15604 See \`config.log' for more details" "$LINENO" 5; }
   15605 fi
   15606 done
   15607 
   15608 
   15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   15610 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15612 /* end confdefs.h.  */
   15613 #include <openssl/evp.h>
   15614 int
   15615 main ()
   15616 {
   15617 EVP_PKEY_CTX *ctx = NID_X9_62_prime256v1;
   15618   ;
   15619   return 0;
   15620 }
   15621 _ACEOF
   15622 if ac_fn_c_try_compile "$LINENO"; then :
   15623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15624 $as_echo "yes" >&6; }
   15625 else
   15626   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15628 as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   15629 See \`config.log' for more details" "$LINENO" 5; }
   15630 fi
   15631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15632 
   15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   15634 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15636 /* end confdefs.h.  */
   15637 #include <openssl/evp.h>
   15638 int
   15639 main ()
   15640 {
   15641 EVP_PKEY_CTX *ctx = NID_secp384r1;
   15642   ;
   15643   return 0;
   15644 }
   15645 _ACEOF
   15646 if ac_fn_c_try_compile "$LINENO"; then :
   15647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15648 $as_echo "yes" >&6; }
   15649 else
   15650   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15652 as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   15653 See \`config.log' for more details" "$LINENO" 5; }
   15654 fi
   15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15656 
   15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   15658 $as_echo_n "checking for Ed25519 support... " >&6; }
   15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15660 /* end confdefs.h.  */
   15661 #include <openssl/evp.h>
   15662 int
   15663 main ()
   15664 {
   15665 EVP_PKEY_CTX *ctx = NID_ED25519;
   15666   ;
   15667   return 0;
   15668 }
   15669 _ACEOF
   15670 if ac_fn_c_try_compile "$LINENO"; then :
   15671 
   15672 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   15673 
   15674      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15675 $as_echo "yes" >&6; }
   15676 else
   15677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15678 $as_echo "no" >&6; }
   15679 fi
   15680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15681 
   15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   15683 $as_echo_n "checking for Ed448 support... " >&6; }
   15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
   15685 $as_echo "broken" >&6; }
   15686 #AC_COMPILE_IFELSE(
   15687 #    [AC_LANG_PROGRAM([[#include <openssl/evp.h>]],
   15688 #		     [[EVP_PKEY_CTX *ctx = NID_ED448;]])],
   15689 #    [AC_DEFINE([HAVE_OPENSSL_ED448], [1], [define if OpenSSL supports Ed448])
   15690 #     AC_MSG_RESULT([yes])],
   15691 #    [AC_MSG_RESULT([no])])
   15692 
   15693 #
   15694 # Check for OpenSSL SHA-1 support
   15695 #
   15696 for ac_func in EVP_sha1
   15697 do :
   15698   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   15699 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   15700   cat >>confdefs.h <<_ACEOF
   15701 #define HAVE_EVP_SHA1 1
   15702 _ACEOF
   15703  :
   15704 else
   15705   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15707 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   15708 See \`config.log' for more details" "$LINENO" 5; }
   15709 fi
   15710 done
   15711 
   15712 
   15713 #
   15714 # Check for OpenSSL SHA-2 support
   15715 #
   15716 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   15717 do :
   15718   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15719 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15720 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15721   cat >>confdefs.h <<_ACEOF
   15722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15723 _ACEOF
   15724  :
   15725 else
   15726   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15728 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   15729 See \`config.log' for more details" "$LINENO" 5; }
   15730 fi
   15731 done
   15732 
   15733 
   15734 #
   15735 # Check for OpenSSL AES support
   15736 #
   15737 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   15738 do :
   15739   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15740 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15741 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15742   cat >>confdefs.h <<_ACEOF
   15743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15744 _ACEOF
   15745  :
   15746 else
   15747   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15749 as_fn_error $? "AES support in OpenSSL is mandatory.
   15750 See \`config.log' for more details" "$LINENO" 5; }
   15751 fi
   15752 done
   15753 
   15754 
   15755 #
   15756 # Check for OpenSSL 1.1.x/LibreSSL functions
   15757 #
   15758 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   15759 do :
   15760   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15763   cat >>confdefs.h <<_ACEOF
   15764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15765 _ACEOF
   15766 
   15767 fi
   15768 done
   15769 
   15770 
   15771 #
   15772 # Check whether FIPS mode is available and whether we should enable it
   15773 #
   15774 # Check whether --enable-fips-mode was given.
   15775 if test "${enable_fips_mode+set}" = set; then :
   15776   enableval=$enable_fips_mode;
   15777 else
   15778   enable_fips_mode="no"
   15779 fi
   15780 
   15781 
   15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   15783 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   15784 case $enable_fips_mode in #(
   15785   yes) :
   15786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15787 $as_echo "yes" >&6; }
   15788 		for ac_func in FIPS_mode
   15789 do :
   15790   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   15791 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   15792   cat >>confdefs.h <<_ACEOF
   15793 #define HAVE_FIPS_MODE 1
   15794 _ACEOF
   15795 
   15796 else
   15797   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15799 as_fn_error $? "OpenSSL FIPS mode requested but not available.
   15800 See \`config.log' for more details" "$LINENO" 5; }
   15801 fi
   15802 done
   15803  ;; #(
   15804   no) :
   15805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15806 $as_echo "no" >&6; } ;; #(
   15807   *) :
   15808      ;;
   15809 esac
   15810 
   15811 CFLAGS="$save_CFLAGS"
   15812 LIBS="$save_LIBS"
   15813 LDFLAGS="$save_LDFLAGS"
   15814 
   15815 
   15816 
   15817 
   15818 
   15819 #
   15820 # Client Cookie algorithm choice
   15821 #
   15822 
   15823 # Check whether --with-cc-alg was given.
   15824 if test "${with_cc_alg+set}" = set; then :
   15825   withval=$with_cc_alg; :
   15826 else
   15827   with_cc_alg="aes"
   15828 fi
   15829 
   15830 
   15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the algorithm for Client Cookie" >&5
   15832 $as_echo_n "checking for the algorithm for Client Cookie... " >&6; }
   15833 case $with_cc_alg in #(
   15834   sha1|SHA1) :
   15835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha1" >&5
   15836 $as_echo "sha1" >&6; }
   15837 
   15838 $as_echo "#define HMAC_SHA1_CC 1" >>confdefs.h
   15839  ;; #(
   15840   sha256|SHA256) :
   15841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha256" >&5
   15842 $as_echo "sha256" >&6; }
   15843 
   15844 $as_echo "#define HMAC_SHA256_CC 1" >>confdefs.h
   15845  ;; #(
   15846   aes|AES|auto) :
   15847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: aes" >&5
   15848 $as_echo "aes" >&6; }
   15849 
   15850 $as_echo "#define AES_CC 1" >>confdefs.h
   15851  ;; #(
   15852   *) :
   15853     as_fn_error $? "Invalid $with_cc_alg algorithm for Client Cookie" "$LINENO" 5 ;;
   15854 esac
   15855 
   15856 
   15857 PKCS11_TOOLS=
   15858 PKCS11_TEST=
   15859 #
   15860 # was --enable-native-pkcs11 specified?
   15861 #
   15862 # Check whether --enable-native-pkcs11 was given.
   15863 if test "${enable_native_pkcs11+set}" = set; then :
   15864   enableval=$enable_native_pkcs11; :
   15865 else
   15866   enable_native_pkcs11="no"
   15867 fi
   15868 
   15869 
   15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   15871 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   15872 case $enable_native_pkcs11 in #(
   15873   no) :
   15874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15875 $as_echo "no" >&6; } ;; #(
   15876   yes) :
   15877     PKCS11_TOOLS=pkcs11
   15878 	       PKCS11_TEST=pkcs11
   15879 	       CRYPTO=pkcs11
   15880 	       if $use_threads; then :
   15881   :
   15882 else
   15883   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   15884 fi
   15885 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15886 $as_echo "yes" >&6; }
   15887 	       for ac_func in getpassphrase
   15888 do :
   15889   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   15890 if test "x$ac_cv_func_getpassphrase" = xyes; then :
   15891   cat >>confdefs.h <<_ACEOF
   15892 #define HAVE_GETPASSPHRASE 1
   15893 _ACEOF
   15894 
   15895 fi
   15896 done
   15897 
   15898 	       ;; #(
   15899   *) :
   15900      ;;
   15901 esac
   15902 
   15903 
   15904 
   15905 case $CRYPTO in #(
   15906   pkcs11) :
   15907 
   15908 $as_echo "#define USE_PKCS11 1" >>confdefs.h
   15909  ;; #(
   15910   *) :
   15911 
   15912 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   15913  ;;
   15914 esac
   15915 
   15916 # preparation for automake
   15917 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   15918 
   15919 #
   15920 # was --with-pkcs11 specified?
   15921 #
   15922 
   15923 # Check whether --with-pkcs11 was given.
   15924 if test "${with_pkcs11+set}" = set; then :
   15925   withval=$with_pkcs11; :
   15926 else
   15927   with_pkcs11="undefined"
   15928 fi
   15929 
   15930 
   15931 case $with_pkcs11 in #(
   15932   yes|auto) :
   15933     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   15934   no|undefined) :
   15935     with_pkcs11="undefined" ;; #(
   15936   *) :
   15937      ;;
   15938 esac
   15939 
   15940 cat >>confdefs.h <<_ACEOF
   15941 #define PK11_LIB_LOCATION "$with_pkcs11"
   15942 _ACEOF
   15943 
   15944 
   15945 # for PKCS11 benchmarks
   15946 
   15947 have_clock_gt=no
   15948 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   15949 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   15950   have_clock_gt=yes
   15951 fi
   15952 
   15953 if test "no" = "$have_clock_gt"; then
   15954 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   15955 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   15956 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   15957   $as_echo_n "(cached) " >&6
   15958 else
   15959   ac_check_lib_save_LIBS=$LIBS
   15960 LIBS="-lrt  $LIBS"
   15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15962 /* end confdefs.h.  */
   15963 
   15964 /* Override any GCC internal prototype to avoid an error.
   15965    Use char because int might match the return type of a GCC
   15966    builtin and then its argument prototype would still apply.  */
   15967 #ifdef __cplusplus
   15968 extern "C"
   15969 #endif
   15970 char clock_gettime ();
   15971 int
   15972 main ()
   15973 {
   15974 return clock_gettime ();
   15975   ;
   15976   return 0;
   15977 }
   15978 _ACEOF
   15979 if ac_fn_c_try_link "$LINENO"; then :
   15980   ac_cv_lib_rt_clock_gettime=yes
   15981 else
   15982   ac_cv_lib_rt_clock_gettime=no
   15983 fi
   15984 rm -f core conftest.err conftest.$ac_objext \
   15985     conftest$ac_exeext conftest.$ac_ext
   15986 LIBS=$ac_check_lib_save_LIBS
   15987 fi
   15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   15989 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   15990 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   15991   have_clock_gt=rt
   15992 fi
   15993 
   15994 fi
   15995 
   15996 if test "no" != "$have_clock_gt"; then
   15997 
   15998 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   15999 
   16000 fi
   16001 
   16002 if test "rt" = "$have_clock_gt"; then
   16003 	LIBS="-lrt $LIBS"
   16004 fi
   16005 
   16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   16007 $as_echo_n "checking for GSSAPI library... " >&6; }
   16008 
   16009 # Check whether --with-gssapi was given.
   16010 if test "${with_gssapi+set}" = set; then :
   16011   withval=$with_gssapi; use_gssapi="$withval"
   16012 else
   16013   use_gssapi="yes"
   16014 fi
   16015 
   16016 
   16017 # first try using krb5-config, if that does not work then fall back to "yes" method.
   16018 
   16019 case "$use_gssapi" in
   16020 */krb5-config|krb5-config)
   16021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   16022 $as_echo "trying $use_gssapi" >&6; }
   16023     if test krb5-config = "$use_gssapi"
   16024     then
   16025 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   16026 set dummy $use_gssapi; ac_word=$2
   16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16028 $as_echo_n "checking for $ac_word... " >&6; }
   16029 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   16030   $as_echo_n "(cached) " >&6
   16031 else
   16032   case $KRB5_CONFIG in
   16033   [\\/]* | ?:[\\/]*)
   16034   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   16035   ;;
   16036   *)
   16037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16038 for as_dir in $PATH
   16039 do
   16040   IFS=$as_save_IFS
   16041   test -z "$as_dir" && as_dir=.
   16042     for ac_exec_ext in '' $ac_executable_extensions; do
   16043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16044     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   16045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16046     break 2
   16047   fi
   16048 done
   16049   done
   16050 IFS=$as_save_IFS
   16051 
   16052   ;;
   16053 esac
   16054 fi
   16055 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   16056 if test -n "$KRB5_CONFIG"; then
   16057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   16058 $as_echo "$KRB5_CONFIG" >&6; }
   16059 else
   16060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16061 $as_echo "no" >&6; }
   16062 fi
   16063 
   16064 
   16065     else
   16066 	KRB5_CONFIG="$use_gssapi"
   16067     fi
   16068     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   16069     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   16070     saved_cppflags="$CPPFLAGS"
   16071     CPPFLAGS="$gssapi_cflags $CPPFLAGS"
   16072     for ac_header in gssapi.h gssapi/gssapi.h
   16073 do :
   16074   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16075 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16076 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16077   cat >>confdefs.h <<_ACEOF
   16078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16079 _ACEOF
   16080  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16081 fi
   16082 
   16083 done
   16084 
   16085     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16086 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   16087 $as_echo "krb5-config: gssapi.h not found" >&6; }
   16088 	CPPFLAGS="$saved_cppflags"
   16089 	use_gssapi="yes"
   16090     else
   16091 	for ac_header in krb5/krb5.h krb5.h
   16092 do :
   16093   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16094 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16096   cat >>confdefs.h <<_ACEOF
   16097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16098 _ACEOF
   16099  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16100 fi
   16101 
   16102 done
   16103 
   16104 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16105 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   16106 $as_echo "krb5-config: krb5.h not found" >&6; }
   16107 	    CPPFLAGS="$saved_cppflags"
   16108 	    use_gssapi="yes"
   16109 	else
   16110 	    CPPFLAGS="$saved_cppflags"
   16111 	    saved_libs="$LIBS"
   16112 	    LIBS=$gssapi_libs
   16113 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   16114 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   16115 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16116 /* end confdefs.h.  */
   16117 
   16118 int
   16119 main ()
   16120 {
   16121 gss_acquire_cred();krb5_init_context()
   16122   ;
   16123   return 0;
   16124 }
   16125 _ACEOF
   16126 if ac_fn_c_try_link "$LINENO"; then :
   16127   gssapi_linked=yes
   16128 else
   16129   gssapi_linked=no
   16130 fi
   16131 rm -f core conftest.err conftest.$ac_objext \
   16132     conftest$ac_exeext conftest.$ac_ext
   16133 	    case $gssapi_linked in
   16134 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   16135 $as_echo "krb5-config: linked" >&6; };;
   16136 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   16137 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   16138 		    use_gssapi="yes"
   16139 		    ;;
   16140 	    esac
   16141 	    LIBS=$saved_libs
   16142 	fi
   16143     fi
   16144     if test "yes" = "$use_gssapi"; then
   16145 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   16146 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   16147     fi
   16148     ;;
   16149 esac
   16150 
   16151 case "$host" in
   16152 *darwin*)
   16153 	if test "yes" = "$use_gssapi"
   16154 	then
   16155 		use_gssapi=framework
   16156 	fi
   16157 	;;
   16158 esac
   16159 
   16160 # gssapi is just the framework, we really require kerberos v5, so
   16161 # look for those headers (the gssapi headers must be there, too)
   16162 # The problem with this implementation is that it doesn't allow
   16163 # for the specification of gssapi and krb5 headers in different locations,
   16164 # which probably ought to be fixed although fixing might raise the issue of
   16165 # trying to build with incompatible versions of gssapi and krb5.
   16166 if test "yes" = "$use_gssapi"
   16167 then
   16168 	# first, deal with the obvious
   16169 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   16170 		   -f /usr/include/krb5/krb5.h -o \
   16171 		   -f /usr/include/krb5.h \)   -a \
   16172 		\( -f /usr/include/gssapi.h -o \
   16173 		   -f /usr/include/gssapi/gssapi.h \)
   16174 	then
   16175 		use_gssapi=/usr
   16176 	else
   16177 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   16178 	    for d in $krb5dirs
   16179 	    do
   16180 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   16181 			-f $d/include/krb5.h
   16182 		then
   16183 			if test -f $d/include/gssapi/gssapi.h -o \
   16184 				-f $d/include/gssapi.h
   16185 			then
   16186 				use_gssapi=$d
   16187 				break
   16188 			fi
   16189 		fi
   16190 		use_gssapi="no"
   16191 	    done
   16192 	fi
   16193 fi
   16194 
   16195 case "$use_gssapi" in
   16196 	no)
   16197 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   16198 $as_echo "disabled" >&6; }
   16199 		USE_GSSAPI=''
   16200 		;;
   16201 	yes)
   16202 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   16203 		;;
   16204 	*/krb5-config|krb5-config)
   16205 		USE_GSSAPI='-DGSSAPI'
   16206 		DST_GSSAPI_INC="$gssapi_cflags"
   16207 		DNS_GSSAPI_LIBS="$gssapi_libs"
   16208 		;;
   16209 	framework)
   16210 		USE_GSSAPI='-DGSSAPI'
   16211 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   16212 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   16213 		DNS_GSSAPI_LIBS="-framework Kerberos"
   16214 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   16215 $as_echo "framework" >&6; }
   16216 		;;
   16217 
   16218 	*)
   16219 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   16220 $as_echo "looking in $use_gssapi/lib" >&6; }
   16221 		USE_GSSAPI='-DGSSAPI'
   16222 		saved_cppflags="$CPPFLAGS"
   16223 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   16224 		for ac_header in gssapi.h gssapi/gssapi.h
   16225 do :
   16226   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16229   cat >>confdefs.h <<_ACEOF
   16230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16231 _ACEOF
   16232  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16233 		     gssapi_hack="#include <$ac_header>"
   16234 fi
   16235 
   16236 done
   16237 
   16238 
   16239 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16240 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   16241 		fi
   16242 
   16243 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   16244 do :
   16245   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16246 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16248   cat >>confdefs.h <<_ACEOF
   16249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16250 _ACEOF
   16251  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   16252 		     gssapi_krb5_hack="#include <$ac_header>"
   16253 fi
   16254 
   16255 done
   16256 
   16257 
   16258 		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
   16259 do :
   16260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16261 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16263   cat >>confdefs.h <<_ACEOF
   16264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16265 _ACEOF
   16266  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16267 		    krb5_hack="#include <$ac_header>"
   16268 fi
   16269 
   16270 done
   16271 
   16272 
   16273 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16274 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   16275 		fi
   16276 
   16277 		#
   16278 		# XXXDCL This probably doesn't work right on all systems.
   16279 		# It will need to be worked on as problems become evident.
   16280 		#
   16281 		# Essentially the problems here relate to two different
   16282 		# areas.  The first area is building with either KTH
   16283 		# or MIT Kerberos, particularly when both are present on
   16284 		# the machine.  The other is static versus dynamic linking.
   16285 		#
   16286 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   16287 		# up the works if one implementation ends up trying to
   16288 		# use the other's krb.  This is unfortunately a situation
   16289 		# that very easily arises.
   16290 		#
   16291 		# Dynamic linking when the dependency information is built
   16292 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   16293 		# all such problems go away, but when that setup is not
   16294 		# present, because either the dynamic libraries lack
   16295 		# dependencies or static linking is being done, then the
   16296 		# problems start to show up.
   16297 		saved_libs="$LIBS"
   16298 		for TRY_LIBS in \
   16299 		    "-lgssapi_krb5" \
   16300 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   16301 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   16302 		    "-lgssapi" \
   16303 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   16304 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16305 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16306 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   16307 		    "-lgss -lkrb5"
   16308 		do
   16309 		    # Note that this does not include $saved_libs, because
   16310 		    # on FreeBSD machines this configure script has added
   16311 		    # -L/usr/local/lib to LIBS, which can make the
   16312 		    # -lgssapi_krb5 test succeed with shared libraries even
   16313 		    # when you are trying to build with KTH in /usr/lib.
   16314 		    if test "/usr" = "$use_gssapi"
   16315 		    then
   16316 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   16317 		    else
   16318 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   16319 		    fi
   16320 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   16321 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   16322 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16323 /* end confdefs.h.  */
   16324 
   16325 #include <sys/types.h>
   16326 $gssapi_hack
   16327 $gssapi_krb5_hack
   16328 $krb5_hack
   16329 
   16330 int
   16331 main ()
   16332 {
   16333 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   16334 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   16335 gsskrb5_register_acceptor_identity(NULL);
   16336 #endif
   16337   ;
   16338   return 0;
   16339 }
   16340 _ACEOF
   16341 if ac_fn_c_try_link "$LINENO"; then :
   16342   gssapi_linked=yes
   16343 else
   16344   gssapi_linked=no
   16345 fi
   16346 rm -f core conftest.err conftest.$ac_objext \
   16347     conftest$ac_exeext conftest.$ac_ext
   16348 		    case $gssapi_linked in
   16349 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16350 $as_echo "yes" >&6; }; break ;;
   16351 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16352 $as_echo "no" >&6; } ;;
   16353 		    esac
   16354 		done
   16355 
   16356 		CPPFLAGS="$saved_cppflags"
   16357 
   16358 		case $gssapi_linked in
   16359 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   16360 		esac
   16361 
   16362 		#
   16363 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   16364 		# but MIT in /usr/local/lib and trying to build with KTH.
   16365 		# /usr/local/lib can end up earlier on the link lines.
   16366 		# Like most kludges, this one is not only inelegant it
   16367 		# is also likely to be the wrong thing to do at least as
   16368 		# many times as it is the right thing.  Something better
   16369 		# needs to be done.
   16370 		#
   16371 		if test "/usr" = "$use_gssapi" -a \
   16372 			-f /usr/local/lib/libkrb5.a; then
   16373 		    FIX_KTH_VS_MIT=yes
   16374 		fi
   16375 
   16376 		case "$FIX_KTH_VS_MIT" in
   16377 		yes)
   16378 		    case "$enable_static_linking" in
   16379 		    yes) gssapi_lib_suffix=".a"  ;;
   16380 		    *)   gssapi_lib_suffix=".so" ;;
   16381 		    esac
   16382 
   16383 		    for lib in $LIBS; do
   16384 			case $lib in
   16385 			-L*)
   16386 			    ;;
   16387 			-l*)
   16388 			    new_lib=`echo $lib |
   16389 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   16390 					 -e s%$%$gssapi_lib_suffix%`
   16391 			    NEW_LIBS="$NEW_LIBS $new_lib"
   16392 			    ;;
   16393 			*)
   16394 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   16395 			    ;;
   16396 			esac
   16397 		    done
   16398 		    LIBS="$NEW_LIBS"
   16399 		    ;;
   16400 		esac
   16401 
   16402 		DST_GSSAPI_INC="-I$use_gssapi/include"
   16403 		DNS_GSSAPI_LIBS="$LIBS"
   16404 
   16405 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   16406 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   16407 		LIBS="$saved_libs"
   16408 		;;
   16409 esac
   16410 
   16411 
   16412 
   16413 
   16414 
   16415 
   16416 
   16417 
   16418 
   16419 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   16420 
   16421 #
   16422 # Applications linking with libdns also need to link with these libraries.
   16423 #
   16424 
   16425 
   16426 
   16427 #
   16428 # was --with-lmdb specified?
   16429 #
   16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   16431 $as_echo_n "checking for lmdb library... " >&6; }
   16432 
   16433 # Check whether --with-lmdb was given.
   16434 if test "${with_lmdb+set}" = set; then :
   16435   withval=$with_lmdb; use_lmdb="$withval"
   16436 else
   16437   use_lmdb="auto"
   16438 fi
   16439 
   16440 
   16441 have_lmdb=""
   16442 case "$use_lmdb" in
   16443 	no)
   16444 		lmdb_libs=""
   16445 		;;
   16446 	auto|yes)
   16447 		for d in /usr /usr/local /opt/local
   16448 		do
   16449 			if test -f "${d}/include/lmdb.h"
   16450 			then
   16451 				if test ${d} != /usr
   16452 				then
   16453 					lmdb_cflags="-I ${d}/include"
   16454 					LIBS="$LIBS -L${d}/lib"
   16455 				fi
   16456 				have_lmdb="yes"
   16457 			fi
   16458 		done
   16459 		;;
   16460 	*)
   16461 		if test -f "${use_lmdb}/include/lmdb.h"
   16462 		then
   16463 			lmdb_cflags="-I${use_lmdb}/include"
   16464 			LIBS="$LIBS -L${use_lmdb}/lib"
   16465 			have_lmdb="yes"
   16466 		else
   16467 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   16468 		fi
   16469 		;;
   16470 esac
   16471 
   16472 if test "X${have_lmdb}" != "X"
   16473 then
   16474 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16475 $as_echo "yes" >&6; }
   16476 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   16477 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   16478 if ${ac_cv_search_mdb_env_create+:} false; then :
   16479   $as_echo_n "(cached) " >&6
   16480 else
   16481   ac_func_search_save_LIBS=$LIBS
   16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16483 /* end confdefs.h.  */
   16484 
   16485 /* Override any GCC internal prototype to avoid an error.
   16486    Use char because int might match the return type of a GCC
   16487    builtin and then its argument prototype would still apply.  */
   16488 #ifdef __cplusplus
   16489 extern "C"
   16490 #endif
   16491 char mdb_env_create ();
   16492 int
   16493 main ()
   16494 {
   16495 return mdb_env_create ();
   16496   ;
   16497   return 0;
   16498 }
   16499 _ACEOF
   16500 for ac_lib in '' lmdb; do
   16501   if test -z "$ac_lib"; then
   16502     ac_res="none required"
   16503   else
   16504     ac_res=-l$ac_lib
   16505     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16506   fi
   16507   if ac_fn_c_try_link "$LINENO"; then :
   16508   ac_cv_search_mdb_env_create=$ac_res
   16509 fi
   16510 rm -f core conftest.err conftest.$ac_objext \
   16511     conftest$ac_exeext
   16512   if ${ac_cv_search_mdb_env_create+:} false; then :
   16513   break
   16514 fi
   16515 done
   16516 if ${ac_cv_search_mdb_env_create+:} false; then :
   16517 
   16518 else
   16519   ac_cv_search_mdb_env_create=no
   16520 fi
   16521 rm conftest.$ac_ext
   16522 LIBS=$ac_func_search_save_LIBS
   16523 fi
   16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   16525 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   16526 ac_res=$ac_cv_search_mdb_env_create
   16527 if test "$ac_res" != no; then :
   16528   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16529 
   16530 else
   16531   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   16532 			have_lmdb=""
   16533 fi
   16534 
   16535 elif test "X$use_lmdb" = Xyes
   16536 then
   16537 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   16538 else
   16539 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16540 $as_echo "no" >&6; }
   16541 fi
   16542 
   16543 NZD_TOOLS=""
   16544 NZDSRCS=
   16545 NZDTARGETS=
   16546 if test "X${have_lmdb}" != "X"
   16547 then
   16548 	CFLAGS="$CFLAGS $lmdb_cflags"
   16549 
   16550 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   16551 
   16552 	NZD_TOOLS="nzd"
   16553 	NZDSRCS='${NZDSRCS}'
   16554 	NZDTARGETS='${NZDTARGETS}'
   16555 fi
   16556 
   16557 
   16558 
   16559 
   16560 #
   16561 # was --with-libxml2 specified?
   16562 #
   16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
   16564 $as_echo_n "checking for libxml2 library... " >&6; }
   16565 
   16566 # Check whether --with-libxml2 was given.
   16567 if test "${with_libxml2+set}" = set; then :
   16568   withval=$with_libxml2; use_libxml2="$withval"
   16569 else
   16570   use_libxml2="auto"
   16571 fi
   16572 
   16573 
   16574 case "$use_libxml2" in
   16575 	no)
   16576 		DST_LIBXML2_INC=""
   16577 		;;
   16578 	auto|yes)
   16579 		case X`(xml2-config --version) 2>/dev/null` in
   16580 		X2.[6789].*)
   16581 			libxml2_libs=`xml2-config --libs`
   16582 			libxml2_cflags=`xml2-config --cflags`
   16583 			;;
   16584 		*)
   16585 			if test "yes" = "$use_libxml2" ; then
   16586 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16587 $as_echo "no" >&6; }
   16588 				as_fn_error $? "required libxml2 version not available" "$LINENO" 5
   16589 			else
   16590 				libxml2_libs=
   16591 				libxml2_cflags=
   16592 			fi
   16593 			;;
   16594 		esac
   16595 		;;
   16596 	*)
   16597 		if test -f "$use_libxml2/bin/xml2-config" ; then
   16598 			libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
   16599 			libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
   16600 		fi
   16601 		;;
   16602 esac
   16603 
   16604 if test "X$libxml2_libs" != "X"
   16605 then
   16606 	CFLAGS="$CFLAGS $libxml2_cflags"
   16607 	LIBS="$LIBS $libxml2_libs"
   16608 	#
   16609 	# Sanity check xml2-config output.
   16610 	#
   16611 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16612 /* end confdefs.h.  */
   16613 #include <libxml/xmlwriter.h>
   16614 int
   16615 main ()
   16616 {
   16617 return(xmlTextWriterStartElement(NULL, NULL));
   16618   ;
   16619   return 0;
   16620 }
   16621 _ACEOF
   16622 if ac_fn_c_try_link "$LINENO"; then :
   16623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16624 $as_echo "yes" >&6; }
   16625 else
   16626   as_fn_error $? "xml2-config returns badness" "$LINENO" 5
   16627 fi
   16628 rm -f core conftest.err conftest.$ac_objext \
   16629     conftest$ac_exeext conftest.$ac_ext
   16630 
   16631 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   16632 
   16633 	XMLSTATS=1
   16634 else
   16635 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16636 $as_echo "no" >&6; }
   16637 fi
   16638 
   16639 
   16640 #
   16641 # was --with-libjson specified?
   16642 #
   16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
   16644 $as_echo_n "checking for json library... " >&6; }
   16645 
   16646 # Check whether --with-libjson was given.
   16647 if test "${with_libjson+set}" = set; then :
   16648   withval=$with_libjson; use_libjson="$withval"
   16649 else
   16650   use_libjson="auto"
   16651 fi
   16652 
   16653 
   16654 have_libjson=""
   16655 have_libjson_c=""
   16656 case "$use_libjson" in
   16657 	no)
   16658 		libjson_libs=""
   16659 		;;
   16660 	auto|yes)
   16661 		for d in /usr /usr/local /opt/local
   16662 		do
   16663 			if test -f "${d}/include/json/json.h"
   16664 			then
   16665 				if test ${d} != /usr
   16666 				then
   16667 					libjson_cflags="-I ${d}/include"
   16668 					LIBS="$LIBS -L${d}/lib"
   16669 				fi
   16670 				have_libjson="yes"
   16671 			elif test -f "${d}/include/json-c/json.h"
   16672 			then
   16673 				if test ${d} != /usr
   16674 				then
   16675 					libjson_cflags="-I ${d}/include"
   16676 					LIBS="$LIBS -L${d}/lib"
   16677 				fi
   16678 				have_libjson="yes"
   16679 				have_libjson_c="yes"
   16680 			fi
   16681 		done
   16682 		;;
   16683 	*)
   16684 		if test -f "${use_libjson}/include/json/json.h"
   16685 		then
   16686 			libjson_cflags="-I${use_libjson}/include"
   16687 			LIBS="$LIBS -L${use_libjson}/lib"
   16688 			have_libjson="yes"
   16689 		elif test -f "${use_libjson}/include/json-c/json.h"
   16690 		then
   16691 			libjson_cflags="-I${use_libjson}/include"
   16692 			LIBS="$LIBS -L${use_libjson}/lib"
   16693 			have_libjson="yes"
   16694 			have_libjson_c="yes"
   16695 		else
   16696 			as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
   16697 		fi
   16698 		;;
   16699 esac
   16700 
   16701 if test "X${have_libjson}" != "X"
   16702 then
   16703 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16704 $as_echo "yes" >&6; }
   16705 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
   16706 $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
   16707 if ${ac_cv_search_json_object_new_int64+:} false; then :
   16708   $as_echo_n "(cached) " >&6
   16709 else
   16710   ac_func_search_save_LIBS=$LIBS
   16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16712 /* end confdefs.h.  */
   16713 
   16714 /* Override any GCC internal prototype to avoid an error.
   16715    Use char because int might match the return type of a GCC
   16716    builtin and then its argument prototype would still apply.  */
   16717 #ifdef __cplusplus
   16718 extern "C"
   16719 #endif
   16720 char json_object_new_int64 ();
   16721 int
   16722 main ()
   16723 {
   16724 return json_object_new_int64 ();
   16725   ;
   16726   return 0;
   16727 }
   16728 _ACEOF
   16729 for ac_lib in '' json json-c; do
   16730   if test -z "$ac_lib"; then
   16731     ac_res="none required"
   16732   else
   16733     ac_res=-l$ac_lib
   16734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16735   fi
   16736   if ac_fn_c_try_link "$LINENO"; then :
   16737   ac_cv_search_json_object_new_int64=$ac_res
   16738 fi
   16739 rm -f core conftest.err conftest.$ac_objext \
   16740     conftest$ac_exeext
   16741   if ${ac_cv_search_json_object_new_int64+:} false; then :
   16742   break
   16743 fi
   16744 done
   16745 if ${ac_cv_search_json_object_new_int64+:} false; then :
   16746 
   16747 else
   16748   ac_cv_search_json_object_new_int64=no
   16749 fi
   16750 rm conftest.$ac_ext
   16751 LIBS=$ac_func_search_save_LIBS
   16752 fi
   16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
   16754 $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
   16755 ac_res=$ac_cv_search_json_object_new_int64
   16756 if test "$ac_res" != no; then :
   16757   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16758 
   16759 else
   16760   as_fn_error $? "found libjson include but not library." "$LINENO" 5
   16761 			have_libjson=""
   16762 fi
   16763 
   16764 elif test "X$use_libjson" = Xyes
   16765 then
   16766 	as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
   16767 else
   16768 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16769 $as_echo "no" >&6; }
   16770 fi
   16771 
   16772 if test "X${have_libjson}" != "X"
   16773 then
   16774 	CFLAGS="$CFLAGS $libjson_cflags"
   16775 
   16776 $as_echo "#define HAVE_JSON 1" >>confdefs.h
   16777 
   16778 	if test "X${have_libjson_c}" = Xyes
   16779 	then
   16780 
   16781 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   16782 
   16783 	fi
   16784 	JSONSTATS=1
   16785 fi
   16786 
   16787 
   16788 #
   16789 # was --with-zlib specified?
   16790 #
   16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
   16792 $as_echo_n "checking for zlib library... " >&6; }
   16793 
   16794 # Check whether --with-zlib was given.
   16795 if test "${with_zlib+set}" = set; then :
   16796   withval=$with_zlib; with_zlib="$withval"
   16797 else
   16798   with_zlib="auto"
   16799 fi
   16800 
   16801 
   16802 have_zlib=""
   16803 case "$with_zlib" in
   16804 	no)
   16805 		zlib_libs=""
   16806 		;;
   16807 	auto|yes)
   16808 		for d in /usr /usr/local /opt/local
   16809 		do
   16810 			if test -f "${d}/include/zlib.h"
   16811 			then
   16812 				if test ${d} != /usr
   16813 				then
   16814 					zlib_cflags="-I ${d}/include"
   16815 					LIBS="$LIBS -L${d}/lib"
   16816 				fi
   16817 				have_zlib="yes"
   16818 			fi
   16819 		done
   16820 		;;
   16821 	*)
   16822 		if test -f "${with_zlib}/include/zlib.h"
   16823 		then
   16824 			zlib_cflags="-I${with_zlib}/include"
   16825 			LIBS="$LIBS -L${with_zlib}/lib"
   16826 			have_zlib="yes"
   16827 		else
   16828 			as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
   16829 		fi
   16830 		;;
   16831 esac
   16832 
   16833 if test "X${have_zlib}" != "X"
   16834 then
   16835 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16836 $as_echo "yes" >&6; }
   16837 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
   16838 $as_echo_n "checking for library containing deflate... " >&6; }
   16839 if ${ac_cv_search_deflate+:} false; then :
   16840   $as_echo_n "(cached) " >&6
   16841 else
   16842   ac_func_search_save_LIBS=$LIBS
   16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16844 /* end confdefs.h.  */
   16845 
   16846 /* Override any GCC internal prototype to avoid an error.
   16847    Use char because int might match the return type of a GCC
   16848    builtin and then its argument prototype would still apply.  */
   16849 #ifdef __cplusplus
   16850 extern "C"
   16851 #endif
   16852 char deflate ();
   16853 int
   16854 main ()
   16855 {
   16856 return deflate ();
   16857   ;
   16858   return 0;
   16859 }
   16860 _ACEOF
   16861 for ac_lib in '' z; do
   16862   if test -z "$ac_lib"; then
   16863     ac_res="none required"
   16864   else
   16865     ac_res=-l$ac_lib
   16866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16867   fi
   16868   if ac_fn_c_try_link "$LINENO"; then :
   16869   ac_cv_search_deflate=$ac_res
   16870 fi
   16871 rm -f core conftest.err conftest.$ac_objext \
   16872     conftest$ac_exeext
   16873   if ${ac_cv_search_deflate+:} false; then :
   16874   break
   16875 fi
   16876 done
   16877 if ${ac_cv_search_deflate+:} false; then :
   16878 
   16879 else
   16880   ac_cv_search_deflate=no
   16881 fi
   16882 rm conftest.$ac_ext
   16883 LIBS=$ac_func_search_save_LIBS
   16884 fi
   16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
   16886 $as_echo "$ac_cv_search_deflate" >&6; }
   16887 ac_res=$ac_cv_search_deflate
   16888 if test "$ac_res" != no; then :
   16889   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16890 
   16891 else
   16892   as_fn_error $? "found zlib include but not library." "$LINENO" 5
   16893 			have_zlib=""
   16894 fi
   16895 
   16896 elif test "X$with_zlib" = Xyes
   16897 then
   16898 	as_fn_error $? "include/zlib.h not found." "$LINENO" 5
   16899 else
   16900 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16901 $as_echo "no" >&6; }
   16902 fi
   16903 
   16904 ZLIB=
   16905 if test "X${have_zlib}" != "X"
   16906 then
   16907 	CFLAGS="$CFLAGS $zlib_cflags"
   16908 
   16909 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   16910 
   16911 	ZLIB=1
   16912 fi
   16913 
   16914 
   16915 
   16916 #
   16917 # In solaris 10, SMF can manage named service
   16918 #
   16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   16920 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   16921 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   16922   $as_echo_n "(cached) " >&6
   16923 else
   16924   ac_check_lib_save_LIBS=$LIBS
   16925 LIBS="-lscf  $LIBS"
   16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16927 /* end confdefs.h.  */
   16928 
   16929 /* Override any GCC internal prototype to avoid an error.
   16930    Use char because int might match the return type of a GCC
   16931    builtin and then its argument prototype would still apply.  */
   16932 #ifdef __cplusplus
   16933 extern "C"
   16934 #endif
   16935 char smf_enable_instance ();
   16936 int
   16937 main ()
   16938 {
   16939 return smf_enable_instance ();
   16940   ;
   16941   return 0;
   16942 }
   16943 _ACEOF
   16944 if ac_fn_c_try_link "$LINENO"; then :
   16945   ac_cv_lib_scf_smf_enable_instance=yes
   16946 else
   16947   ac_cv_lib_scf_smf_enable_instance=no
   16948 fi
   16949 rm -f core conftest.err conftest.$ac_objext \
   16950     conftest$ac_exeext conftest.$ac_ext
   16951 LIBS=$ac_check_lib_save_LIBS
   16952 fi
   16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   16954 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   16955 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   16956   cat >>confdefs.h <<_ACEOF
   16957 #define HAVE_LIBSCF 1
   16958 _ACEOF
   16959 
   16960   LIBS="-lscf $LIBS"
   16961 
   16962 fi
   16963 
   16964 
   16965 #
   16966 # Large File
   16967 #
   16968 # Check whether --enable-largefile was given.
   16969 if test "${enable_largefile+set}" = set; then :
   16970   enableval=$enable_largefile; want_largefile="yes"
   16971 else
   16972   want_largefile="no"
   16973 fi
   16974 
   16975 case $want_largefile in
   16976 	yes)
   16977 		ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
   16978 		;;
   16979 	*)
   16980 		;;
   16981 esac
   16982 
   16983 #
   16984 # Additional compiler settings.
   16985 #
   16986 MKDEPCC="$CC"
   16987 MKDEPCFLAGS="-M"
   16988 
   16989 if test "X$GCC" = "Xyes"; then
   16990 	STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
   16991 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
   16992 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
   16993 	SAVE_CFLAGS="$CFLAGS"
   16994 	CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
   16995 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16996 /* end confdefs.h.  */
   16997 
   16998 int
   16999 main ()
   17000 {
   17001 
   17002   ;
   17003   return 0;
   17004 }
   17005 _ACEOF
   17006 if ac_fn_c_try_compile "$LINENO"; then :
   17007   FNOSTRICTALIASING=yes
   17008 else
   17009   FNOSTRICTALIASING=no
   17010 fi
   17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17012 	CFLAGS="$SAVE_CFLAGS"
   17013 	if test "yes" = "$FNOSTRICTALIASING"; then
   17014 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17015 $as_echo "yes" >&6; }
   17016 		STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   17017 	else
   17018 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17019 $as_echo "no" >&6; }
   17020 	fi
   17021 	#
   17022 	# turn off delete null pointer checks
   17023 	#
   17024 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
   17025 $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
   17026 	SAVE_CFLAGS="$CFLAGS"
   17027 	CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
   17028 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17029 /* end confdefs.h.  */
   17030 
   17031 int
   17032 main ()
   17033 {
   17034 
   17035   ;
   17036   return 0;
   17037 }
   17038 _ACEOF
   17039 if ac_fn_c_try_compile "$LINENO"; then :
   17040   FNODELETENULLPOINTERCHECKS=yes
   17041 else
   17042   FNODELETENULLPOINTERCHECKS=no
   17043 fi
   17044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17045 	CFLAGS="$SAVE_CFLAGS"
   17046 	if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
   17047 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17048 $as_echo "yes" >&6; }
   17049 		STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   17050 	else
   17051 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17052 $as_echo "no" >&6; }
   17053 	fi
   17054 	if test "X$enable_warn_shadow" = Xyes; then
   17055 		STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   17056 	fi
   17057 	if test "X$enable_warn_error" = Xyes; then
   17058 		STD_CWARNINGS="$STD_CWARNINGS -Werror"
   17059 	fi
   17060 else
   17061 	case $host in
   17062 	*-solaris*)
   17063 		MKDEPCFLAGS="-xM"
   17064 		;;
   17065 	esac
   17066 fi
   17067 
   17068 
   17069 
   17070 
   17071 
   17072 #
   17073 # NLS
   17074 #
   17075 for ac_func in catgets
   17076 do :
   17077   ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
   17078 if test "x$ac_cv_func_catgets" = xyes; then :
   17079   cat >>confdefs.h <<_ACEOF
   17080 #define HAVE_CATGETS 1
   17081 _ACEOF
   17082 
   17083 fi
   17084 done
   17085 
   17086 
   17087 #
   17088 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   17089 #
   17090 # AC_CHECK_LIB(xnet, socket, ,
   17091 #    AC_CHECK_LIB(socket, socket)
   17092 # )
   17093 #
   17094 # Use this for now, instead:
   17095 #
   17096 case "$host" in
   17097 	*-linux*)
   17098 		;;
   17099 	*)
   17100 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   17101 $as_echo_n "checking for socket in -lsocket... " >&6; }
   17102 if ${ac_cv_lib_socket_socket+:} false; then :
   17103   $as_echo_n "(cached) " >&6
   17104 else
   17105   ac_check_lib_save_LIBS=$LIBS
   17106 LIBS="-lsocket  $LIBS"
   17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17108 /* end confdefs.h.  */
   17109 
   17110 /* Override any GCC internal prototype to avoid an error.
   17111    Use char because int might match the return type of a GCC
   17112    builtin and then its argument prototype would still apply.  */
   17113 #ifdef __cplusplus
   17114 extern "C"
   17115 #endif
   17116 char socket ();
   17117 int
   17118 main ()
   17119 {
   17120 return socket ();
   17121   ;
   17122   return 0;
   17123 }
   17124 _ACEOF
   17125 if ac_fn_c_try_link "$LINENO"; then :
   17126   ac_cv_lib_socket_socket=yes
   17127 else
   17128   ac_cv_lib_socket_socket=no
   17129 fi
   17130 rm -f core conftest.err conftest.$ac_objext \
   17131     conftest$ac_exeext conftest.$ac_ext
   17132 LIBS=$ac_check_lib_save_LIBS
   17133 fi
   17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   17135 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   17136 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   17137   cat >>confdefs.h <<_ACEOF
   17138 #define HAVE_LIBSOCKET 1
   17139 _ACEOF
   17140 
   17141   LIBS="-lsocket $LIBS"
   17142 
   17143 fi
   17144 
   17145 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   17146 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   17147 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   17148   $as_echo_n "(cached) " >&6
   17149 else
   17150   ac_check_lib_save_LIBS=$LIBS
   17151 LIBS="-lnsl  $LIBS"
   17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17153 /* end confdefs.h.  */
   17154 
   17155 /* Override any GCC internal prototype to avoid an error.
   17156    Use char because int might match the return type of a GCC
   17157    builtin and then its argument prototype would still apply.  */
   17158 #ifdef __cplusplus
   17159 extern "C"
   17160 #endif
   17161 char inet_addr ();
   17162 int
   17163 main ()
   17164 {
   17165 return inet_addr ();
   17166   ;
   17167   return 0;
   17168 }
   17169 _ACEOF
   17170 if ac_fn_c_try_link "$LINENO"; then :
   17171   ac_cv_lib_nsl_inet_addr=yes
   17172 else
   17173   ac_cv_lib_nsl_inet_addr=no
   17174 fi
   17175 rm -f core conftest.err conftest.$ac_objext \
   17176     conftest$ac_exeext conftest.$ac_ext
   17177 LIBS=$ac_check_lib_save_LIBS
   17178 fi
   17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   17180 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   17181 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   17182   cat >>confdefs.h <<_ACEOF
   17183 #define HAVE_LIBNSL 1
   17184 _ACEOF
   17185 
   17186   LIBS="-lnsl $LIBS"
   17187 
   17188 fi
   17189 
   17190 		;;
   17191 esac
   17192 
   17193 #
   17194 # Work around Solaris's select() limitations.
   17195 #
   17196 case "$host" in
   17197 	*-solaris2.[89]|*-solaris2.1?)
   17198 
   17199 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   17200 
   17201 	;;
   17202 esac
   17203 
   17204 #
   17205 # Purify support
   17206 #
   17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   17208 $as_echo_n "checking whether to use purify... " >&6; }
   17209 
   17210 # Check whether --with-purify was given.
   17211 if test "${with_purify+set}" = set; then :
   17212   withval=$with_purify; use_purify="$withval"
   17213 else
   17214   use_purify="no"
   17215 fi
   17216 
   17217 
   17218 case "$use_purify" in
   17219 	no)
   17220 		;;
   17221 	yes)
   17222 		# Extract the first word of "purify", so it can be a program name with args.
   17223 set dummy purify; ac_word=$2
   17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17225 $as_echo_n "checking for $ac_word... " >&6; }
   17226 if ${ac_cv_path_purify_path+:} false; then :
   17227   $as_echo_n "(cached) " >&6
   17228 else
   17229   case $purify_path in
   17230   [\\/]* | ?:[\\/]*)
   17231   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   17232   ;;
   17233   *)
   17234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17235 for as_dir in $PATH
   17236 do
   17237   IFS=$as_save_IFS
   17238   test -z "$as_dir" && as_dir=.
   17239     for ac_exec_ext in '' $ac_executable_extensions; do
   17240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17241     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   17242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17243     break 2
   17244   fi
   17245 done
   17246   done
   17247 IFS=$as_save_IFS
   17248 
   17249   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   17250   ;;
   17251 esac
   17252 fi
   17253 purify_path=$ac_cv_path_purify_path
   17254 if test -n "$purify_path"; then
   17255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17256 $as_echo "$purify_path" >&6; }
   17257 else
   17258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17259 $as_echo "no" >&6; }
   17260 fi
   17261 
   17262 
   17263 		;;
   17264 	*)
   17265 		purify_path="$use_purify"
   17266 		;;
   17267 esac
   17268 
   17269 case "$use_purify" in
   17270 	no)
   17271 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17272 $as_echo "no" >&6; }
   17273 		PURIFY=""
   17274 		;;
   17275 	*)
   17276 		if test -f "$purify_path" || test purify = "$purify_path"; then
   17277 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17278 $as_echo "$purify_path" >&6; }
   17279 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   17280 			PURIFY="$purify_path $PURIFYFLAGS"
   17281 		else
   17282 			as_fn_error $? "$purify_path not found.
   17283 
   17284 Please choose the proper path with the following command:
   17285 
   17286     configure --with-purify=PATH
   17287 " "$LINENO" 5
   17288 		fi
   17289 		;;
   17290 esac
   17291 
   17292 
   17293 
   17294 #
   17295 # Google/Great Performance Tools CPU Profiler
   17296 #
   17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   17298 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   17299 
   17300 # Check whether --with-gperftools-profiler was given.
   17301 if test "${with_gperftools_profiler+set}" = set; then :
   17302   withval=$with_gperftools_profiler; use_profiler="$withval"
   17303 else
   17304   use_profiler="no"
   17305 fi
   17306 
   17307 
   17308 case $use_profiler in
   17309 	yes)
   17310 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17311 $as_echo "yes" >&6; }
   17312 
   17313 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   17314 
   17315 		LIBS="$LIBS -lprofiler"
   17316 		;;
   17317 	*)
   17318 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17319 $as_echo "no" >&6; }
   17320 		;;
   17321 esac
   17322 
   17323 #
   17324 # enable/disable dumping stack backtrace.  Also check if the system supports
   17325 # glibc-compatible backtrace() function.
   17326 #
   17327 # Check whether --enable-backtrace was given.
   17328 if test "${enable_backtrace+set}" = set; then :
   17329   enableval=$enable_backtrace;
   17330 else
   17331   enable_backtrace="yes"
   17332 fi
   17333 
   17334 
   17335 if test "$enable_backtrace" = "yes"; then :
   17336 
   17337 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   17338 
   17339        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17340 /* end confdefs.h.  */
   17341 #include <execinfo.h>
   17342 int
   17343 main ()
   17344 {
   17345 return (backtrace((void **)0, 0));
   17346 
   17347   ;
   17348   return 0;
   17349 }
   17350 _ACEOF
   17351 if ac_fn_c_try_link "$LINENO"; then :
   17352 
   17353 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   17354 
   17355 
   17356 fi
   17357 rm -f core conftest.err conftest.$ac_objext \
   17358     conftest$ac_exeext conftest.$ac_ext
   17359 fi
   17360 
   17361 # Check whether --enable-symtable was given.
   17362 if test "${enable_symtable+set}" = set; then :
   17363   enableval=$enable_symtable; want_symtable="$enableval"
   17364 else
   17365   want_symtable="minimal"
   17366 fi
   17367 
   17368 case $want_symtable in
   17369 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   17370 	if test "" = "$PERL"
   17371 	then
   17372 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   17373 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   17374 	fi
   17375 	if test "yes" = "$use_libtool"; then
   17376 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   17377 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   17378 	else
   17379 		# we generate the internal symbol table only for those systems
   17380 		# known to work to avoid unexpected build failure.  Also, warn
   17381 		# about unsupported systems when the feature is enabled
   17382 		#  manually.
   17383 		case $host_os in
   17384 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   17385 			MKSYMTBL_PROGRAM="$PERL"
   17386 			if test "all" = "$want_symtable"; then
   17387 				ALWAYS_MAKE_SYMTABLE="yes"
   17388 			fi
   17389 			;;
   17390 		*)
   17391 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   17392 			then
   17393 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
   17394 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   17395 			fi
   17396 		esac
   17397 	fi
   17398 	;;
   17399 *)
   17400 	;;
   17401 esac
   17402 
   17403 
   17404 
   17405 #
   17406 # File name extension for static archive files, for those few places
   17407 # where they are treated differently from dynamic ones.
   17408 #
   17409 SA=a
   17410 
   17411 
   17412 
   17413 
   17414 
   17415 
   17416 
   17417 
   17418 
   17419 
   17420 BIND9_CO_RULE=".c.$O:"
   17421 
   17422 
   17423 #
   17424 # Here begins a very long section to determine the system's networking
   17425 # capabilities.  The order of the tests is significant.
   17426 #
   17427 
   17428 #
   17429 # We do the IPv6 compilation checking after libtool so that we can put
   17430 # the right suffix on the files.
   17431 #
   17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   17433 $as_echo_n "checking for IPv6 structures... " >&6; }
   17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17435 /* end confdefs.h.  */
   17436 
   17437        #include <sys/types.h>
   17438        #include <sys/socket.h>
   17439        #include <netinet/in.h>
   17440 
   17441 int
   17442 main ()
   17443 {
   17444 
   17445        struct sockaddr_in6 sin6;
   17446        struct in6_addr in6;
   17447        struct in6_pktinfo in6_pi;
   17448        struct sockaddr_storage storage;
   17449        in6 = in6addr_any;
   17450        in6 = in6addr_loopback;
   17451        sin6.sin6_scope_id = 0;
   17452        return (0);
   17453 
   17454   ;
   17455   return 0;
   17456 }
   17457 _ACEOF
   17458 if ac_fn_c_try_compile "$LINENO"; then :
   17459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17460 $as_echo "yes" >&6; }
   17461 else
   17462   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17464 as_fn_error $? "IPv6 support is mandatory
   17465 See \`config.log' for more details" "$LINENO" 5; }
   17466 fi
   17467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17468 
   17469 #
   17470 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   17471 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   17472 # comment in lib/isc/unix/socket.c).
   17473 #
   17474 
   17475 # Check whether --enable-tcp_fastopen was given.
   17476 if test "${enable_tcp_fastopen+set}" = set; then :
   17477   enableval=$enable_tcp_fastopen;
   17478 else
   17479   enable_tcp_fastopen="yes"
   17480 fi
   17481 
   17482 
   17483 if test "$enable_tcp_fastopen" = "yes"; then :
   17484 
   17485 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   17486 
   17487 fi
   17488 
   17489 #
   17490 # Check for some other useful functions that are not ever-present.
   17491 #
   17492 for ac_func in strlcpy strlcat
   17493 do :
   17494   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17496 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17497   cat >>confdefs.h <<_ACEOF
   17498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17499 _ACEOF
   17500 
   17501 fi
   17502 done
   17503 
   17504 
   17505 
   17506 
   17507 # Check whether --with-readline was given.
   17508 if test "${with_readline+set}" = set; then :
   17509   withval=$with_readline; use_readline="$withval"
   17510 else
   17511   use_readline="auto"
   17512 fi
   17513 
   17514 case "$use_readline" in
   17515 no)	;;
   17516 *)
   17517 	saved_LIBS="$LIBS"
   17518 	case "$use_readline" in
   17519 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   17520 	*) try_readline="$use_readline"
   17521 	esac
   17522 	for readline in "$try_readline" $or_readline
   17523 	do
   17524 		LIBS="$readline"
   17525 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   17526 $as_echo "$as_me: checking for readline with $readline" >&6;}
   17527 		for ac_func in readline
   17528 do :
   17529   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17530 if test "x$ac_cv_func_readline" = xyes; then :
   17531   cat >>confdefs.h <<_ACEOF
   17532 #define HAVE_READLINE 1
   17533 _ACEOF
   17534 
   17535 fi
   17536 done
   17537 
   17538 		if test "yes" = "$ac_cv_func_readline"
   17539 		then
   17540 			READLINE_LIB="$readline"
   17541 			break
   17542 		fi
   17543 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   17544 		do
   17545 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   17546 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   17547 			unset ac_cv_func_readline
   17548 			LIBS="$readline $lib"
   17549 			for ac_func in readline
   17550 do :
   17551   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17552 if test "x$ac_cv_func_readline" = xyes; then :
   17553   cat >>confdefs.h <<_ACEOF
   17554 #define HAVE_READLINE 1
   17555 _ACEOF
   17556 
   17557 fi
   17558 done
   17559 
   17560 			if test "yes" = "$ac_cv_func_readline"
   17561 			then
   17562 				READLINE_LIB="$readline $lib"
   17563 				break
   17564 			fi
   17565 		done
   17566 		if test "yes" = "$ac_cv_func_readline"
   17567 		then
   17568 			break
   17569 		fi
   17570 	done
   17571 	if test "auto" != "$use_readline" &&
   17572 	   test "X$READLINE_LIB" = "X"
   17573 	then
   17574 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   17575 	fi
   17576 	LIBS="$saved_LIBS"
   17577 	;;
   17578 esac
   17579 if test "yes" = "$ac_cv_func_readline"
   17580 then
   17581 	case "$READLINE_LIB" in
   17582 	*edit*)
   17583 		for ac_header in editline/readline.h
   17584 do :
   17585   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   17586 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   17587   cat >>confdefs.h <<_ACEOF
   17588 #define HAVE_EDITLINE_READLINE_H 1
   17589 _ACEOF
   17590 
   17591 fi
   17592 
   17593 done
   17594 
   17595 		for ac_header in edit/readline/readline.h
   17596 do :
   17597   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   17598 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   17599   cat >>confdefs.h <<_ACEOF
   17600 #define HAVE_EDIT_READLINE_READLINE_H 1
   17601 _ACEOF
   17602 
   17603 fi
   17604 
   17605 done
   17606 
   17607 		for ac_header in edit/readline/history.h
   17608 do :
   17609   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   17610 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   17611   cat >>confdefs.h <<_ACEOF
   17612 #define HAVE_EDIT_READLINE_HISTORY_H 1
   17613 _ACEOF
   17614 
   17615 fi
   17616 
   17617 done
   17618 
   17619 		;;
   17620 	esac
   17621 	for ac_header in readline/readline.h
   17622 do :
   17623   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   17624 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   17625   cat >>confdefs.h <<_ACEOF
   17626 #define HAVE_READLINE_READLINE_H 1
   17627 _ACEOF
   17628 
   17629 fi
   17630 
   17631 done
   17632 
   17633 	for ac_header in readline/history.h
   17634 do :
   17635   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   17636 if test "x$ac_cv_header_readline_history_h" = xyes; then :
   17637   cat >>confdefs.h <<_ACEOF
   17638 #define HAVE_READLINE_HISTORY_H 1
   17639 _ACEOF
   17640 
   17641 fi
   17642 
   17643 done
   17644 
   17645 fi
   17646 
   17647 #
   17648 # Use our own SPNEGO implementation?
   17649 #
   17650 # Check whether --enable-isc-spnego was given.
   17651 if test "${enable_isc_spnego+set}" = set; then :
   17652   enableval=$enable_isc_spnego;
   17653 fi
   17654 
   17655 
   17656 if test -n "$USE_GSSAPI"
   17657 then
   17658 	case "$enable_isc_spnego" in
   17659 		yes|'')
   17660 			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
   17661 			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
   17662 			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
   17663 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
   17664 $as_echo "using SPNEGO from lib/dns" >&6; }
   17665 			;;
   17666 		no)
   17667 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
   17668 $as_echo "using SPNEGO from GSSAPI library" >&6; }
   17669 			;;
   17670 	esac
   17671 fi
   17672 
   17673 
   17674 
   17675 
   17676 
   17677 
   17678 #
   17679 # Security Stuff
   17680 #
   17681 # Note it is very recommended to *not* disable chroot(),
   17682 # this is only because chroot() was made obsolete by Posix.
   17683 # Check whether --enable-chroot was given.
   17684 if test "${enable_chroot+set}" = set; then :
   17685   enableval=$enable_chroot;
   17686 fi
   17687 
   17688 case "$enable_chroot" in
   17689 	yes|'')
   17690 		for ac_func in chroot
   17691 do :
   17692   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   17693 if test "x$ac_cv_func_chroot" = xyes; then :
   17694   cat >>confdefs.h <<_ACEOF
   17695 #define HAVE_CHROOT 1
   17696 _ACEOF
   17697 
   17698 fi
   17699 done
   17700 
   17701 		;;
   17702 	no)
   17703 		;;
   17704 esac
   17705 
   17706 LIBCAP_LIBS=""
   17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   17708 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   17709 # Check whether --enable-linux-caps was given.
   17710 if test "${enable_linux_caps+set}" = set; then :
   17711   enableval=$enable_linux_caps;
   17712 else
   17713   case $host in #(
   17714   *-linux*) :
   17715     enable_linux_caps=yes ;; #(
   17716   *) :
   17717     enable_linux_caps=no ;;
   17718 esac
   17719 fi
   17720 
   17721 
   17722 if test "$enable_linux_caps" = "yes"; then :
   17723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17724 $as_echo "yes" >&6; }
   17725        for ac_header in sys/capability.h
   17726 do :
   17727   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   17728 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   17729   cat >>confdefs.h <<_ACEOF
   17730 #define HAVE_SYS_CAPABILITY_H 1
   17731 _ACEOF
   17732 
   17733 else
   17734   as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17735 fi
   17736 
   17737 done
   17738 
   17739        save_LIBS="$LIBS"
   17740        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   17741 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   17742 if ${ac_cv_search_cap_set_proc+:} false; then :
   17743   $as_echo_n "(cached) " >&6
   17744 else
   17745   ac_func_search_save_LIBS=$LIBS
   17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17747 /* end confdefs.h.  */
   17748 
   17749 /* Override any GCC internal prototype to avoid an error.
   17750    Use char because int might match the return type of a GCC
   17751    builtin and then its argument prototype would still apply.  */
   17752 #ifdef __cplusplus
   17753 extern "C"
   17754 #endif
   17755 char cap_set_proc ();
   17756 int
   17757 main ()
   17758 {
   17759 return cap_set_proc ();
   17760   ;
   17761   return 0;
   17762 }
   17763 _ACEOF
   17764 for ac_lib in '' cap; do
   17765   if test -z "$ac_lib"; then
   17766     ac_res="none required"
   17767   else
   17768     ac_res=-l$ac_lib
   17769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17770   fi
   17771   if ac_fn_c_try_link "$LINENO"; then :
   17772   ac_cv_search_cap_set_proc=$ac_res
   17773 fi
   17774 rm -f core conftest.err conftest.$ac_objext \
   17775     conftest$ac_exeext
   17776   if ${ac_cv_search_cap_set_proc+:} false; then :
   17777   break
   17778 fi
   17779 done
   17780 if ${ac_cv_search_cap_set_proc+:} false; then :
   17781 
   17782 else
   17783   ac_cv_search_cap_set_proc=no
   17784 fi
   17785 rm conftest.$ac_ext
   17786 LIBS=$ac_func_search_save_LIBS
   17787 fi
   17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   17789 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   17790 ac_res=$ac_cv_search_cap_set_proc
   17791 if test "$ac_res" != no; then :
   17792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17793   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   17794 else
   17795   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17796 fi
   17797 
   17798        LIBS="$save_LIBS"
   17799 else
   17800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17801 $as_echo "no" >&6; }
   17802 fi
   17803 
   17804 
   17805 for ac_header in sys/un.h
   17806 do :
   17807   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   17808 if test "x$ac_cv_header_sys_un_h" = xyes; then :
   17809   cat >>confdefs.h <<_ACEOF
   17810 #define HAVE_SYS_UN_H 1
   17811 _ACEOF
   17812  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   17813 
   17814 else
   17815   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   17816 
   17817 fi
   17818 
   17819 done
   17820 
   17821 
   17822 
   17823 case "$host" in
   17824 *-solaris*)
   17825 
   17826 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   17827 
   17828 	;;
   17829 esac
   17830 
   17831 #
   17832 # Time Zone Stuff
   17833 #
   17834 for ac_func in tzset
   17835 do :
   17836   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   17837 if test "x$ac_cv_func_tzset" = xyes; then :
   17838   cat >>confdefs.h <<_ACEOF
   17839 #define HAVE_TZSET 1
   17840 _ACEOF
   17841 
   17842 fi
   17843 done
   17844 
   17845 
   17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   17847 $as_echo_n "checking for optarg declaration... " >&6; }
   17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17849 /* end confdefs.h.  */
   17850 
   17851 #include <unistd.h>
   17852 
   17853 int
   17854 main ()
   17855 {
   17856 optarg = 0;
   17857   ;
   17858   return 0;
   17859 }
   17860 _ACEOF
   17861 if ac_fn_c_try_compile "$LINENO"; then :
   17862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17863 $as_echo "yes" >&6; }
   17864 else
   17865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17866 $as_echo "no" >&6; }
   17867 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   17868 
   17869 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   17870 
   17871 fi
   17872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17873 
   17874 #
   17875 # Check for nanoseconds in file stats
   17876 #
   17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   17878 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17880 /* end confdefs.h.  */
   17881 #include <sys/fcntl.h>
   17882 int
   17883 main ()
   17884 {
   17885 struct stat s;
   17886        return(s.st_mtim.tv_nsec);
   17887 
   17888   ;
   17889   return 0;
   17890 }
   17891 _ACEOF
   17892 if ac_fn_c_try_compile "$LINENO"; then :
   17893 
   17894 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   17895 
   17896 fi
   17897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17898 
   17899 #
   17900 # Check for if_nametoindex() for IPv6 scoped addresses support
   17901 #
   17902 for ac_func in if_nametoindex
   17903 do :
   17904   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   17905 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   17906   cat >>confdefs.h <<_ACEOF
   17907 #define HAVE_IF_NAMETOINDEX 1
   17908 _ACEOF
   17909 
   17910 fi
   17911 done
   17912 
   17913 
   17914 for ac_func in nanosleep usleep explicit_bzero
   17915 do :
   17916   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17918 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17919   cat >>confdefs.h <<_ACEOF
   17920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17921 _ACEOF
   17922 
   17923 fi
   17924 done
   17925 
   17926 
   17927 ISC_ATOMIC_LIBS=""
   17928 for ac_header in stdatomic.h
   17929 do :
   17930   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   17931 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   17932   cat >>confdefs.h <<_ACEOF
   17933 #define HAVE_STDATOMIC_H 1
   17934 _ACEOF
   17935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17936 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17937    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17938 /* end confdefs.h.  */
   17939 #include <stdatomic.h>
   17940 int
   17941 main ()
   17942 {
   17943 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17944 
   17945   ;
   17946   return 0;
   17947 }
   17948 _ACEOF
   17949 if ac_fn_c_try_compile "$LINENO"; then :
   17950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   17951 $as_echo "stdatomic.h" >&6; }
   17952       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   17953 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   17954       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17955 /* end confdefs.h.  */
   17956 #include <stdatomic.h>
   17957 int
   17958 main ()
   17959 {
   17960 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17961 
   17962   ;
   17963   return 0;
   17964 }
   17965 _ACEOF
   17966 if ac_fn_c_try_link "$LINENO"; then :
   17967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17968 $as_echo "no" >&6; }
   17969 else
   17970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17971 $as_echo "yes" >&6; }
   17972 	 ISC_ATOMIC_LIBS="-latomic"
   17973 
   17974 fi
   17975 rm -f core conftest.err conftest.$ac_objext \
   17976     conftest$ac_exeext conftest.$ac_ext
   17977 
   17978 else
   17979   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17981 as_fn_error $? "stdatomic.h header found, but compilation failed, fix your toolchaing.
   17982 See \`config.log' for more details" "$LINENO" 5; }
   17983 
   17984 fi
   17985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17986 else
   17987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17988 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17989    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17990 /* end confdefs.h.  */
   17991 #include <inttypes.h>
   17992 int
   17993 main ()
   17994 {
   17995 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   17996 
   17997   ;
   17998   return 0;
   17999 }
   18000 _ACEOF
   18001 if ac_fn_c_try_compile "$LINENO"; then :
   18002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   18003 $as_echo "__atomic builtins" >&6; }
   18004 
   18005 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   18006 
   18007       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   18008 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   18009       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18010 /* end confdefs.h.  */
   18011 #include <inttypes.h>
   18012 int
   18013 main ()
   18014 {
   18015 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   18016 
   18017   ;
   18018   return 0;
   18019 }
   18020 _ACEOF
   18021 if ac_fn_c_try_link "$LINENO"; then :
   18022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18023 $as_echo "no" >&6; }
   18024 else
   18025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18026 $as_echo "yes" >&6; }
   18027 	 ISC_ATOMIC_LIBS="-latomic"
   18028 
   18029 fi
   18030 rm -f core conftest.err conftest.$ac_objext \
   18031     conftest$ac_exeext conftest.$ac_ext
   18032 
   18033 else
   18034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   18035 $as_echo "__sync builtins" >&6; }
   18036 
   18037 fi
   18038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18039 
   18040 fi
   18041 
   18042 done
   18043 
   18044 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   18045 
   18046 for ac_header in uchar.h
   18047 do :
   18048   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   18049 if test "x$ac_cv_header_uchar_h" = xyes; then :
   18050   cat >>confdefs.h <<_ACEOF
   18051 #define HAVE_UCHAR_H 1
   18052 _ACEOF
   18053 
   18054 fi
   18055 
   18056 done
   18057 
   18058 
   18059 #
   18060 # Check for __builtin_unreachable
   18061 #
   18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   18063 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   18064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18065 /* end confdefs.h.  */
   18066 
   18067 int
   18068 main ()
   18069 {
   18070 __builtin_unreachable();
   18071 
   18072   ;
   18073   return 0;
   18074 }
   18075 _ACEOF
   18076 if ac_fn_c_try_link "$LINENO"; then :
   18077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18078 $as_echo "yes" >&6; }
   18079 
   18080 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   18081 
   18082 
   18083 else
   18084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18085 $as_echo "no" >&6; }
   18086 
   18087 fi
   18088 rm -f core conftest.err conftest.$ac_objext \
   18089     conftest$ac_exeext conftest.$ac_ext
   18090 
   18091 #
   18092 # Check for __builtin_expect
   18093 #
   18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   18095 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18097 /* end confdefs.h.  */
   18098 
   18099 int
   18100 main ()
   18101 {
   18102 
   18103 	return (__builtin_expect(1, 1) ? 1 : 0);
   18104 
   18105   ;
   18106   return 0;
   18107 }
   18108 _ACEOF
   18109 if ac_fn_c_try_link "$LINENO"; then :
   18110 
   18111 	have_builtin_expect=yes
   18112 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18113 $as_echo "yes" >&6; }
   18114 
   18115 else
   18116 
   18117 	have_builtin_expect=no
   18118 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18119 $as_echo "no" >&6; }
   18120 
   18121 fi
   18122 rm -f core conftest.err conftest.$ac_objext \
   18123     conftest$ac_exeext conftest.$ac_ext
   18124 if test "yes" = "$have_builtin_expect"; then
   18125 
   18126 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   18127 
   18128 fi
   18129 
   18130 #
   18131 # Check for __builtin_clz
   18132 #
   18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   18134 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18136 /* end confdefs.h.  */
   18137 
   18138 int
   18139 main ()
   18140 {
   18141 
   18142 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   18143 
   18144   ;
   18145   return 0;
   18146 }
   18147 _ACEOF
   18148 if ac_fn_c_try_link "$LINENO"; then :
   18149 
   18150 	have_builtin_clz=yes
   18151 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18152 $as_echo "yes" >&6; }
   18153 
   18154 else
   18155 
   18156 	have_builtin_clz=no
   18157 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18158 $as_echo "no" >&6; }
   18159 
   18160 fi
   18161 rm -f core conftest.err conftest.$ac_objext \
   18162     conftest$ac_exeext conftest.$ac_ext
   18163 if test "yes" = "$have_builtin_clz"; then
   18164 
   18165 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   18166 
   18167 fi
   18168 
   18169 #
   18170 # Activate "rrset-order fixed" or not?
   18171 #
   18172 # Check whether --enable-fixed-rrset was given.
   18173 if test "${enable_fixed_rrset+set}" = set; then :
   18174   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   18175 else
   18176   enable_fixed="no"
   18177 fi
   18178 
   18179 case "$enable_fixed" in
   18180 	yes)
   18181 
   18182 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   18183 
   18184 		;;
   18185 	no)
   18186 		;;
   18187 	*)
   18188 		;;
   18189 esac
   18190 
   18191 #
   18192 # Enable response policy rewriting using NS IP addresses
   18193 #
   18194 # Check whether --enable-rpz-nsip was given.
   18195 if test "${enable_rpz_nsip+set}" = set; then :
   18196   enableval=$enable_rpz_nsip; enable_nsip="$enableval"
   18197 else
   18198   enable_nsip="yes"
   18199 fi
   18200 
   18201 case "$enable_nsip" in
   18202 	yes)
   18203 
   18204 $as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h
   18205 
   18206 		;;
   18207 	no)
   18208 		;;
   18209 	*)
   18210 		;;
   18211 esac
   18212 
   18213 #
   18214 # Enable response policy rewriting using NS name
   18215 #
   18216 # Check whether --enable-rpz-nsdname was given.
   18217 if test "${enable_rpz_nsdname+set}" = set; then :
   18218   enableval=$enable_rpz_nsdname; enable_nsdname="$enableval"
   18219 else
   18220   enable_nsdname="yes"
   18221 fi
   18222 
   18223 case "$enable_nsdname" in
   18224 	yes)
   18225 
   18226 $as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h
   18227 
   18228 		;;
   18229 	no)
   18230 		;;
   18231 	*)
   18232 		;;
   18233 esac
   18234 
   18235 #
   18236 # Activate dnstap?
   18237 #
   18238 # Check whether --enable-dnstap was given.
   18239 if test "${enable_dnstap+set}" = set; then :
   18240   enableval=$enable_dnstap; use_dnstap=$enableval
   18241 else
   18242   use_dnstap=no
   18243 fi
   18244 
   18245 
   18246 DNSTAP=
   18247 DNSTAPSRCS=
   18248 DNSTAPOBJS=
   18249 DNSTAPTARGETS=
   18250 DNSTAP_PB_C_H=
   18251 if test "x$use_dnstap" != "xno"; then
   18252 
   18253 # Check whether --with-protobuf-c was given.
   18254 if test "${with_protobuf_c+set}" = set; then :
   18255   withval=$with_protobuf_c;
   18256 	    # workaround for protobuf-c includes at old dir
   18257 	    # before protobuf-c-1.0.0
   18258 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   18259 	    then
   18260 		CFLAGS="$CFLAGS -I$withval/include/google"
   18261 	    else
   18262 		CFLAGS="$CFLAGS -I$withval/include"
   18263 	    fi
   18264 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18265 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18266 set dummy protoc-c; ac_word=$2
   18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18268 $as_echo_n "checking for $ac_word... " >&6; }
   18269 if ${ac_cv_path_PROTOC_C+:} false; then :
   18270   $as_echo_n "(cached) " >&6
   18271 else
   18272   case $PROTOC_C in
   18273   [\\/]* | ?:[\\/]*)
   18274   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18275   ;;
   18276   *)
   18277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18278 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18279 do
   18280   IFS=$as_save_IFS
   18281   test -z "$as_dir" && as_dir=.
   18282     for ac_exec_ext in '' $ac_executable_extensions; do
   18283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18284     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18286     break 2
   18287   fi
   18288 done
   18289   done
   18290 IFS=$as_save_IFS
   18291 
   18292   ;;
   18293 esac
   18294 fi
   18295 PROTOC_C=$ac_cv_path_PROTOC_C
   18296 if test -n "$PROTOC_C"; then
   18297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18298 $as_echo "$PROTOC_C" >&6; }
   18299 else
   18300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18301 $as_echo "no" >&6; }
   18302 fi
   18303 
   18304 
   18305 
   18306 else
   18307 
   18308 	    # workaround for protobuf-c includes at old dir
   18309 	    # before protobuf-c-1.0.0
   18310 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   18311 	    then
   18312 		CFLAGS="$CFLAGS -I/usr/include/google"
   18313 	    else
   18314 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   18315 		then
   18316 		    CFLAGS="$CFLAGS -I/usr/local/include/google"
   18317 		    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   18318 		fi
   18319 	    fi
   18320 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18321 set dummy protoc-c; ac_word=$2
   18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18323 $as_echo_n "checking for $ac_word... " >&6; }
   18324 if ${ac_cv_path_PROTOC_C+:} false; then :
   18325   $as_echo_n "(cached) " >&6
   18326 else
   18327   case $PROTOC_C in
   18328   [\\/]* | ?:[\\/]*)
   18329   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18330   ;;
   18331   *)
   18332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18333 for as_dir in $PATH
   18334 do
   18335   IFS=$as_save_IFS
   18336   test -z "$as_dir" && as_dir=.
   18337     for ac_exec_ext in '' $ac_executable_extensions; do
   18338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18339     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18341     break 2
   18342   fi
   18343 done
   18344   done
   18345 IFS=$as_save_IFS
   18346 
   18347   ;;
   18348 esac
   18349 fi
   18350 PROTOC_C=$ac_cv_path_PROTOC_C
   18351 if test -n "$PROTOC_C"; then
   18352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18353 $as_echo "$PROTOC_C" >&6; }
   18354 else
   18355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18356 $as_echo "no" >&6; }
   18357 fi
   18358 
   18359 
   18360 
   18361 fi
   18362 
   18363 	if test -z "$PROTOC_C"; then
   18364 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   18365 	fi
   18366 
   18367 # Check whether --with-libfstrm was given.
   18368 if test "${with_libfstrm+set}" = set; then :
   18369   withval=$with_libfstrm;
   18370 	    CFLAGS="$CFLAGS -I$withval/include"
   18371 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18372 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18373 set dummy fstrm_capture; ac_word=$2
   18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18375 $as_echo_n "checking for $ac_word... " >&6; }
   18376 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18377   $as_echo_n "(cached) " >&6
   18378 else
   18379   case $FSTRM_CAPTURE in
   18380   [\\/]* | ?:[\\/]*)
   18381   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18382   ;;
   18383   *)
   18384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18385 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18386 do
   18387   IFS=$as_save_IFS
   18388   test -z "$as_dir" && as_dir=.
   18389     for ac_exec_ext in '' $ac_executable_extensions; do
   18390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18391     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18393     break 2
   18394   fi
   18395 done
   18396   done
   18397 IFS=$as_save_IFS
   18398 
   18399   ;;
   18400 esac
   18401 fi
   18402 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18403 if test -n "$FSTRM_CAPTURE"; then
   18404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18405 $as_echo "$FSTRM_CAPTURE" >&6; }
   18406 else
   18407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18408 $as_echo "no" >&6; }
   18409 fi
   18410 
   18411 
   18412 
   18413 else
   18414 
   18415 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18416 set dummy fstrm_capture; ac_word=$2
   18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18418 $as_echo_n "checking for $ac_word... " >&6; }
   18419 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18420   $as_echo_n "(cached) " >&6
   18421 else
   18422   case $FSTRM_CAPTURE in
   18423   [\\/]* | ?:[\\/]*)
   18424   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18425   ;;
   18426   *)
   18427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18428 for as_dir in $PATH
   18429 do
   18430   IFS=$as_save_IFS
   18431   test -z "$as_dir" && as_dir=.
   18432     for ac_exec_ext in '' $ac_executable_extensions; do
   18433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18434     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18436     break 2
   18437   fi
   18438 done
   18439   done
   18440 IFS=$as_save_IFS
   18441 
   18442   ;;
   18443 esac
   18444 fi
   18445 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18446 if test -n "$FSTRM_CAPTURE"; then
   18447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18448 $as_echo "$FSTRM_CAPTURE" >&6; }
   18449 else
   18450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18451 $as_echo "no" >&6; }
   18452 fi
   18453 
   18454 
   18455 
   18456 fi
   18457 
   18458 
   18459 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   18460 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   18461 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18462   $as_echo_n "(cached) " >&6
   18463 else
   18464   ac_func_search_save_LIBS=$LIBS
   18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18466 /* end confdefs.h.  */
   18467 
   18468 /* Override any GCC internal prototype to avoid an error.
   18469    Use char because int might match the return type of a GCC
   18470    builtin and then its argument prototype would still apply.  */
   18471 #ifdef __cplusplus
   18472 extern "C"
   18473 #endif
   18474 char fstrm_iothr_init ();
   18475 int
   18476 main ()
   18477 {
   18478 return fstrm_iothr_init ();
   18479   ;
   18480   return 0;
   18481 }
   18482 _ACEOF
   18483 for ac_lib in '' fstrm; do
   18484   if test -z "$ac_lib"; then
   18485     ac_res="none required"
   18486   else
   18487     ac_res=-l$ac_lib
   18488     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18489   fi
   18490   if ac_fn_c_try_link "$LINENO"; then :
   18491   ac_cv_search_fstrm_iothr_init=$ac_res
   18492 fi
   18493 rm -f core conftest.err conftest.$ac_objext \
   18494     conftest$ac_exeext
   18495   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18496   break
   18497 fi
   18498 done
   18499 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18500 
   18501 else
   18502   ac_cv_search_fstrm_iothr_init=no
   18503 fi
   18504 rm conftest.$ac_ext
   18505 LIBS=$ac_func_search_save_LIBS
   18506 fi
   18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   18508 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   18509 ac_res=$ac_cv_search_fstrm_iothr_init
   18510 if test "$ac_res" != no; then :
   18511   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18512 
   18513 else
   18514   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   18515 fi
   18516 
   18517 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   18518 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   18519 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18520   $as_echo_n "(cached) " >&6
   18521 else
   18522   ac_func_search_save_LIBS=$LIBS
   18523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18524 /* end confdefs.h.  */
   18525 
   18526 /* Override any GCC internal prototype to avoid an error.
   18527    Use char because int might match the return type of a GCC
   18528    builtin and then its argument prototype would still apply.  */
   18529 #ifdef __cplusplus
   18530 extern "C"
   18531 #endif
   18532 char protobuf_c_message_pack ();
   18533 int
   18534 main ()
   18535 {
   18536 return protobuf_c_message_pack ();
   18537   ;
   18538   return 0;
   18539 }
   18540 _ACEOF
   18541 for ac_lib in '' protobuf-c; do
   18542   if test -z "$ac_lib"; then
   18543     ac_res="none required"
   18544   else
   18545     ac_res=-l$ac_lib
   18546     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18547   fi
   18548   if ac_fn_c_try_link "$LINENO"; then :
   18549   ac_cv_search_protobuf_c_message_pack=$ac_res
   18550 fi
   18551 rm -f core conftest.err conftest.$ac_objext \
   18552     conftest$ac_exeext
   18553   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18554   break
   18555 fi
   18556 done
   18557 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18558 
   18559 else
   18560   ac_cv_search_protobuf_c_message_pack=no
   18561 fi
   18562 rm conftest.$ac_ext
   18563 LIBS=$ac_func_search_save_LIBS
   18564 fi
   18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   18566 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   18567 ac_res=$ac_cv_search_protobuf_c_message_pack
   18568 if test "$ac_res" != no; then :
   18569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18570 
   18571 else
   18572   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   18573 fi
   18574 
   18575 
   18576 
   18577 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   18578 
   18579 	DNSTAP=dnstap
   18580 	DNSTAPSRCS='${DNSTAPSRCS}'
   18581 	DNSTAPOBJS='${DNSTAPOBJS}'
   18582 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   18583 	DNSTAP_PB_C_H="dnstap.pb-c.h"
   18584 fi
   18585 
   18586 
   18587 
   18588 
   18589 
   18590 
   18591 #
   18592 #  The following sets up how non-blocking i/o is established.
   18593 #  cygwin and solaris 2.x (x<5) require special handling.
   18594 #
   18595 case "$host" in
   18596 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   18597 ;;
   18598 *-solaris2.[01234])
   18599 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18600 
   18601 
   18602 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   18603 
   18604 	;;
   18605 *)
   18606 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18607 
   18608 	;;
   18609 esac
   18610 #
   18611 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   18612 # This prevents the source address being set.
   18613 #
   18614 case "$host" in
   18615 *-solaris2.[012345]|*-solaris2.5.1)
   18616 
   18617 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   18618 
   18619 	;;
   18620 esac
   18621 #
   18622 # The following sections deal with tools used for formatting
   18623 # the documentation.  They are all optional, unless you are
   18624 # a developer editing the documentation source.
   18625 #
   18626 
   18627 #
   18628 # Look for TeX.
   18629 #
   18630 
   18631 for ac_prog in latex
   18632 do
   18633   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18634 set dummy $ac_prog; ac_word=$2
   18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18636 $as_echo_n "checking for $ac_word... " >&6; }
   18637 if ${ac_cv_path_LATEX+:} false; then :
   18638   $as_echo_n "(cached) " >&6
   18639 else
   18640   case $LATEX in
   18641   [\\/]* | ?:[\\/]*)
   18642   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
   18643   ;;
   18644   *)
   18645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18646 for as_dir in $PATH
   18647 do
   18648   IFS=$as_save_IFS
   18649   test -z "$as_dir" && as_dir=.
   18650     for ac_exec_ext in '' $ac_executable_extensions; do
   18651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18652     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
   18653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18654     break 2
   18655   fi
   18656 done
   18657   done
   18658 IFS=$as_save_IFS
   18659 
   18660   ;;
   18661 esac
   18662 fi
   18663 LATEX=$ac_cv_path_LATEX
   18664 if test -n "$LATEX"; then
   18665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
   18666 $as_echo "$LATEX" >&6; }
   18667 else
   18668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18669 $as_echo "no" >&6; }
   18670 fi
   18671 
   18672 
   18673   test -n "$LATEX" && break
   18674 done
   18675 test -n "$LATEX" || LATEX="latex"
   18676 
   18677 
   18678 
   18679 for ac_prog in pdflatex
   18680 do
   18681   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18682 set dummy $ac_prog; ac_word=$2
   18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18684 $as_echo_n "checking for $ac_word... " >&6; }
   18685 if ${ac_cv_path_PDFLATEX+:} false; then :
   18686   $as_echo_n "(cached) " >&6
   18687 else
   18688   case $PDFLATEX in
   18689   [\\/]* | ?:[\\/]*)
   18690   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   18691   ;;
   18692   *)
   18693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18694 for as_dir in $PATH
   18695 do
   18696   IFS=$as_save_IFS
   18697   test -z "$as_dir" && as_dir=.
   18698     for ac_exec_ext in '' $ac_executable_extensions; do
   18699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18700     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   18701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18702     break 2
   18703   fi
   18704 done
   18705   done
   18706 IFS=$as_save_IFS
   18707 
   18708   ;;
   18709 esac
   18710 fi
   18711 PDFLATEX=$ac_cv_path_PDFLATEX
   18712 if test -n "$PDFLATEX"; then
   18713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   18714 $as_echo "$PDFLATEX" >&6; }
   18715 else
   18716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18717 $as_echo "no" >&6; }
   18718 fi
   18719 
   18720 
   18721   test -n "$PDFLATEX" && break
   18722 done
   18723 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
   18724 
   18725 
   18726 
   18727 for ac_prog in dblatex
   18728 do
   18729   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18730 set dummy $ac_prog; ac_word=$2
   18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18732 $as_echo_n "checking for $ac_word... " >&6; }
   18733 if ${ac_cv_path_DBLATEX+:} false; then :
   18734   $as_echo_n "(cached) " >&6
   18735 else
   18736   case $DBLATEX in
   18737   [\\/]* | ?:[\\/]*)
   18738   ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
   18739   ;;
   18740   *)
   18741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18742 for as_dir in $PATH
   18743 do
   18744   IFS=$as_save_IFS
   18745   test -z "$as_dir" && as_dir=.
   18746     for ac_exec_ext in '' $ac_executable_extensions; do
   18747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18748     ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
   18749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18750     break 2
   18751   fi
   18752 done
   18753   done
   18754 IFS=$as_save_IFS
   18755 
   18756   ;;
   18757 esac
   18758 fi
   18759 DBLATEX=$ac_cv_path_DBLATEX
   18760 if test -n "$DBLATEX"; then
   18761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
   18762 $as_echo "$DBLATEX" >&6; }
   18763 else
   18764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18765 $as_echo "no" >&6; }
   18766 fi
   18767 
   18768 
   18769   test -n "$DBLATEX" && break
   18770 done
   18771 test -n "$DBLATEX" || DBLATEX="dblatex"
   18772 
   18773 
   18774 
   18775 #
   18776 # Look for w3m
   18777 #
   18778 
   18779 for ac_prog in w3m
   18780 do
   18781   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18782 set dummy $ac_prog; ac_word=$2
   18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18784 $as_echo_n "checking for $ac_word... " >&6; }
   18785 if ${ac_cv_path_W3M+:} false; then :
   18786   $as_echo_n "(cached) " >&6
   18787 else
   18788   case $W3M in
   18789   [\\/]* | ?:[\\/]*)
   18790   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
   18791   ;;
   18792   *)
   18793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18794 for as_dir in $PATH
   18795 do
   18796   IFS=$as_save_IFS
   18797   test -z "$as_dir" && as_dir=.
   18798     for ac_exec_ext in '' $ac_executable_extensions; do
   18799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18800     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
   18801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18802     break 2
   18803   fi
   18804 done
   18805   done
   18806 IFS=$as_save_IFS
   18807 
   18808   ;;
   18809 esac
   18810 fi
   18811 W3M=$ac_cv_path_W3M
   18812 if test -n "$W3M"; then
   18813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
   18814 $as_echo "$W3M" >&6; }
   18815 else
   18816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18817 $as_echo "no" >&6; }
   18818 fi
   18819 
   18820 
   18821   test -n "$W3M" && break
   18822 done
   18823 test -n "$W3M" || W3M="w3m"
   18824 
   18825 
   18826 
   18827 #
   18828 # Look for pandoc
   18829 #
   18830 # Extract the first word of "pandoc", so it can be a program name with args.
   18831 set dummy pandoc; ac_word=$2
   18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18833 $as_echo_n "checking for $ac_word... " >&6; }
   18834 if ${ac_cv_path_PANDOC+:} false; then :
   18835   $as_echo_n "(cached) " >&6
   18836 else
   18837   case $PANDOC in
   18838   [\\/]* | ?:[\\/]*)
   18839   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
   18840   ;;
   18841   *)
   18842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18843 for as_dir in $PATH
   18844 do
   18845   IFS=$as_save_IFS
   18846   test -z "$as_dir" && as_dir=.
   18847     for ac_exec_ext in '' $ac_executable_extensions; do
   18848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18849     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
   18850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18851     break 2
   18852   fi
   18853 done
   18854   done
   18855 IFS=$as_save_IFS
   18856 
   18857   test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
   18858   ;;
   18859 esac
   18860 fi
   18861 PANDOC=$ac_cv_path_PANDOC
   18862 if test -n "$PANDOC"; then
   18863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
   18864 $as_echo "$PANDOC" >&6; }
   18865 else
   18866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18867 $as_echo "no" >&6; }
   18868 fi
   18869 
   18870 
   18871 
   18872 
   18873 
   18874 #
   18875 # Look for xsltproc (libxslt)
   18876 #
   18877 
   18878 # Extract the first word of "xsltproc", so it can be a program name with args.
   18879 set dummy xsltproc; ac_word=$2
   18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18881 $as_echo_n "checking for $ac_word... " >&6; }
   18882 if ${ac_cv_path_XSLTPROC+:} false; then :
   18883   $as_echo_n "(cached) " >&6
   18884 else
   18885   case $XSLTPROC in
   18886   [\\/]* | ?:[\\/]*)
   18887   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   18888   ;;
   18889   *)
   18890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18891 for as_dir in $PATH
   18892 do
   18893   IFS=$as_save_IFS
   18894   test -z "$as_dir" && as_dir=.
   18895     for ac_exec_ext in '' $ac_executable_extensions; do
   18896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18897     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   18898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18899     break 2
   18900   fi
   18901 done
   18902   done
   18903 IFS=$as_save_IFS
   18904 
   18905   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
   18906   ;;
   18907 esac
   18908 fi
   18909 XSLTPROC=$ac_cv_path_XSLTPROC
   18910 if test -n "$XSLTPROC"; then
   18911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   18912 $as_echo "$XSLTPROC" >&6; }
   18913 else
   18914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18915 $as_echo "no" >&6; }
   18916 fi
   18917 
   18918 
   18919 
   18920 
   18921 #
   18922 # Look for xmllint (libxml2)
   18923 #
   18924 
   18925 # Extract the first word of "xmllint", so it can be a program name with args.
   18926 set dummy xmllint; ac_word=$2
   18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18928 $as_echo_n "checking for $ac_word... " >&6; }
   18929 if ${ac_cv_path_XMLLINT+:} false; then :
   18930   $as_echo_n "(cached) " >&6
   18931 else
   18932   case $XMLLINT in
   18933   [\\/]* | ?:[\\/]*)
   18934   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
   18935   ;;
   18936   *)
   18937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18938 for as_dir in $PATH
   18939 do
   18940   IFS=$as_save_IFS
   18941   test -z "$as_dir" && as_dir=.
   18942     for ac_exec_ext in '' $ac_executable_extensions; do
   18943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18944     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
   18945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18946     break 2
   18947   fi
   18948 done
   18949   done
   18950 IFS=$as_save_IFS
   18951 
   18952   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
   18953   ;;
   18954 esac
   18955 fi
   18956 XMLLINT=$ac_cv_path_XMLLINT
   18957 if test -n "$XMLLINT"; then
   18958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
   18959 $as_echo "$XMLLINT" >&6; }
   18960 else
   18961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18962 $as_echo "no" >&6; }
   18963 fi
   18964 
   18965 
   18966 
   18967 
   18968 #
   18969 # Look for Doxygen
   18970 #
   18971 
   18972 # Extract the first word of "doxygen", so it can be a program name with args.
   18973 set dummy doxygen; ac_word=$2
   18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18975 $as_echo_n "checking for $ac_word... " >&6; }
   18976 if ${ac_cv_path_DOXYGEN+:} false; then :
   18977   $as_echo_n "(cached) " >&6
   18978 else
   18979   case $DOXYGEN in
   18980   [\\/]* | ?:[\\/]*)
   18981   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   18982   ;;
   18983   *)
   18984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18985 for as_dir in $PATH
   18986 do
   18987   IFS=$as_save_IFS
   18988   test -z "$as_dir" && as_dir=.
   18989     for ac_exec_ext in '' $ac_executable_extensions; do
   18990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18991     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   18992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18993     break 2
   18994   fi
   18995 done
   18996   done
   18997 IFS=$as_save_IFS
   18998 
   18999   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
   19000   ;;
   19001 esac
   19002 fi
   19003 DOXYGEN=$ac_cv_path_DOXYGEN
   19004 if test -n "$DOXYGEN"; then
   19005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   19006 $as_echo "$DOXYGEN" >&6; }
   19007 else
   19008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19009 $as_echo "no" >&6; }
   19010 fi
   19011 
   19012 
   19013 
   19014 
   19015 #
   19016 # Look for curl
   19017 #
   19018 
   19019 # Extract the first word of "curl", so it can be a program name with args.
   19020 set dummy curl; ac_word=$2
   19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19022 $as_echo_n "checking for $ac_word... " >&6; }
   19023 if ${ac_cv_path_CURL+:} false; then :
   19024   $as_echo_n "(cached) " >&6
   19025 else
   19026   case $CURL in
   19027   [\\/]* | ?:[\\/]*)
   19028   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   19029   ;;
   19030   *)
   19031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19032 for as_dir in $PATH
   19033 do
   19034   IFS=$as_save_IFS
   19035   test -z "$as_dir" && as_dir=.
   19036     for ac_exec_ext in '' $ac_executable_extensions; do
   19037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19038     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   19039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19040     break 2
   19041   fi
   19042 done
   19043   done
   19044 IFS=$as_save_IFS
   19045 
   19046   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   19047   ;;
   19048 esac
   19049 fi
   19050 CURL=$ac_cv_path_CURL
   19051 if test -n "$CURL"; then
   19052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   19053 $as_echo "$CURL" >&6; }
   19054 else
   19055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19056 $as_echo "no" >&6; }
   19057 fi
   19058 
   19059 
   19060 
   19061 
   19062 #
   19063 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
   19064 # in a number of directories:
   19065 #
   19066 #   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
   19067 #
   19068 # If the file FILENAME is found in one of the DIRECTORIES, the shell
   19069 # variable VARIABLE is defined to its absolute pathname.  Otherwise,
   19070 # it is set to FILENAME, with no directory prefix (that's not terribly
   19071 # useful, but looks less confusing in substitutions than leaving it
   19072 # empty).  The variable VARIABLE will be substituted into output files.
   19073 #
   19074 
   19075 
   19076 
   19077 #
   19078 # Look for Docbook-XSL stylesheets.  Location probably varies by system.
   19079 # If it's not explicitly specified, guess where it might be found, based on
   19080 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
   19081 # of at the moment).
   19082 #
   19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
   19084 $as_echo_n "checking for Docbook-XSL path... " >&6; }
   19085 
   19086 # Check whether --with-docbook-xsl was given.
   19087 if test "${with_docbook_xsl+set}" = set; then :
   19088   withval=$with_docbook_xsl; docbook_path="$withval"
   19089 else
   19090   docbook_path="auto"
   19091 fi
   19092 
   19093 case "$docbook_path" in
   19094 auto)
   19095 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
   19096 $as_echo "auto" >&6; }
   19097 	docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl"
   19098 	;;
   19099 *)
   19100 	docbook_xsl_trees="$withval"
   19101 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
   19102 $as_echo "$docbook_xsl_trees" >&6; }
   19103 	;;
   19104 esac
   19105 
   19106 #
   19107 # Look for stylesheets we need.
   19108 #
   19109 
   19110 
   19111 XSLT_DOCBOOK_STYLE_HTML=""
   19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
   19113 $as_echo_n "checking for html/docbook.xsl... " >&6; }
   19114 for d in $docbook_xsl_trees
   19115 do
   19116 	f=$d/html/docbook.xsl
   19117 	if test -f $f
   19118 	then
   19119 		XSLT_DOCBOOK_STYLE_HTML=$f
   19120 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19121 $as_echo "$f" >&6; }
   19122 		break
   19123 	fi
   19124 done
   19125 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
   19126 then
   19127 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19128 $as_echo "\"not found\"" >&6; };
   19129 	XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
   19130 fi
   19131 
   19132 
   19133 
   19134 XSLT_DOCBOOK_STYLE_XHTML=""
   19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
   19136 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
   19137 for d in $docbook_xsl_trees
   19138 do
   19139 	f=$d/xhtml/docbook.xsl
   19140 	if test -f $f
   19141 	then
   19142 		XSLT_DOCBOOK_STYLE_XHTML=$f
   19143 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19144 $as_echo "$f" >&6; }
   19145 		break
   19146 	fi
   19147 done
   19148 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
   19149 then
   19150 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19151 $as_echo "\"not found\"" >&6; };
   19152 	XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
   19153 fi
   19154 
   19155 
   19156 
   19157 XSLT_DOCBOOK_STYLE_MAN=""
   19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
   19159 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
   19160 for d in $docbook_xsl_trees
   19161 do
   19162 	f=$d/manpages/docbook.xsl
   19163 	if test -f $f
   19164 	then
   19165 		XSLT_DOCBOOK_STYLE_MAN=$f
   19166 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19167 $as_echo "$f" >&6; }
   19168 		break
   19169 	fi
   19170 done
   19171 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
   19172 then
   19173 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19174 $as_echo "\"not found\"" >&6; };
   19175 	XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
   19176 fi
   19177 
   19178 
   19179 
   19180 XSLT_DOCBOOK_CHUNK_HTML=""
   19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
   19182 $as_echo_n "checking for html/chunk.xsl... " >&6; }
   19183 for d in $docbook_xsl_trees
   19184 do
   19185 	f=$d/html/chunk.xsl
   19186 	if test -f $f
   19187 	then
   19188 		XSLT_DOCBOOK_CHUNK_HTML=$f
   19189 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19190 $as_echo "$f" >&6; }
   19191 		break
   19192 	fi
   19193 done
   19194 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
   19195 then
   19196 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19197 $as_echo "\"not found\"" >&6; };
   19198 	XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
   19199 fi
   19200 
   19201 
   19202 
   19203 XSLT_DOCBOOK_CHUNK_XHTML=""
   19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
   19205 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
   19206 for d in $docbook_xsl_trees
   19207 do
   19208 	f=$d/xhtml/chunk.xsl
   19209 	if test -f $f
   19210 	then
   19211 		XSLT_DOCBOOK_CHUNK_XHTML=$f
   19212 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19213 $as_echo "$f" >&6; }
   19214 		break
   19215 	fi
   19216 done
   19217 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
   19218 then
   19219 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19220 $as_echo "\"not found\"" >&6; };
   19221 	XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
   19222 fi
   19223 
   19224 
   19225 
   19226 XSLT_DOCBOOK_CHUNKTOC_HTML=""
   19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
   19228 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
   19229 for d in $docbook_xsl_trees
   19230 do
   19231 	f=$d/html/chunktoc.xsl
   19232 	if test -f $f
   19233 	then
   19234 		XSLT_DOCBOOK_CHUNKTOC_HTML=$f
   19235 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19236 $as_echo "$f" >&6; }
   19237 		break
   19238 	fi
   19239 done
   19240 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
   19241 then
   19242 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19243 $as_echo "\"not found\"" >&6; };
   19244 	XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
   19245 fi
   19246 
   19247 
   19248 
   19249 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
   19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
   19251 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
   19252 for d in $docbook_xsl_trees
   19253 do
   19254 	f=$d/xhtml/chunktoc.xsl
   19255 	if test -f $f
   19256 	then
   19257 		XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
   19258 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19259 $as_echo "$f" >&6; }
   19260 		break
   19261 	fi
   19262 done
   19263 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
   19264 then
   19265 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19266 $as_echo "\"not found\"" >&6; };
   19267 	XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
   19268 fi
   19269 
   19270 
   19271 
   19272 XSLT_DOCBOOK_MAKETOC_HTML=""
   19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
   19274 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
   19275 for d in $docbook_xsl_trees
   19276 do
   19277 	f=$d/html/maketoc.xsl
   19278 	if test -f $f
   19279 	then
   19280 		XSLT_DOCBOOK_MAKETOC_HTML=$f
   19281 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19282 $as_echo "$f" >&6; }
   19283 		break
   19284 	fi
   19285 done
   19286 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
   19287 then
   19288 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19289 $as_echo "\"not found\"" >&6; };
   19290 	XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
   19291 fi
   19292 
   19293 
   19294 
   19295 XSLT_DOCBOOK_MAKETOC_XHTML=""
   19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
   19297 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
   19298 for d in $docbook_xsl_trees
   19299 do
   19300 	f=$d/xhtml/maketoc.xsl
   19301 	if test -f $f
   19302 	then
   19303 		XSLT_DOCBOOK_MAKETOC_XHTML=$f
   19304 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19305 $as_echo "$f" >&6; }
   19306 		break
   19307 	fi
   19308 done
   19309 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
   19310 then
   19311 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19312 $as_echo "\"not found\"" >&6; };
   19313 	XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
   19314 fi
   19315 
   19316 
   19317 
   19318 #
   19319 # Same dance for dblatex
   19320 #
   19321 dblatex_xsl_trees="/usr/local/share/xml/docbook/stylesheet/dblatex /usr/pkg/share/xml/docbook/stylesheet/dblatex /usr/share/xml/docbook/stylesheet/dblatex"
   19322 
   19323 XSLT_DBLATEX_STYLE=""
   19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/docbook.xsl" >&5
   19325 $as_echo_n "checking for xsl/docbook.xsl... " >&6; }
   19326 for d in $dblatex_xsl_trees
   19327 do
   19328 	f=$d/xsl/docbook.xsl
   19329 	if test -f $f
   19330 	then
   19331 		XSLT_DBLATEX_STYLE=$f
   19332 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19333 $as_echo "$f" >&6; }
   19334 		break
   19335 	fi
   19336 done
   19337 if test "X$XSLT_DBLATEX_STYLE" = "X"
   19338 then
   19339 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19340 $as_echo "\"not found\"" >&6; };
   19341 	XSLT_DBLATEX_STYLE=xsl/docbook.xsl
   19342 fi
   19343 
   19344 
   19345 
   19346 XSLT_DBLATEX_FASTBOOK=""
   19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/latex_book_fast.xsl" >&5
   19348 $as_echo_n "checking for xsl/latex_book_fast.xsl... " >&6; }
   19349 for d in $dblatex_xsl_trees
   19350 do
   19351 	f=$d/xsl/latex_book_fast.xsl
   19352 	if test -f $f
   19353 	then
   19354 		XSLT_DBLATEX_FASTBOOK=$f
   19355 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19356 $as_echo "$f" >&6; }
   19357 		break
   19358 	fi
   19359 done
   19360 if test "X$XSLT_DBLATEX_FASTBOOK" = "X"
   19361 then
   19362 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19363 $as_echo "\"not found\"" >&6; };
   19364 	XSLT_DBLATEX_FASTBOOK=xsl/latex_book_fast.xsl
   19365 fi
   19366 
   19367 
   19368 
   19369 #
   19370 # IDN support using libidn2
   19371 #
   19372 
   19373 LIBIDN2_CFLAGS=
   19374 LIBIDN2_LDFLAGS=
   19375 LIBIDN2_LIBS=
   19376 
   19377 # Check whether --with-libidn2 was given.
   19378 if test "${with_libidn2+set}" = set; then :
   19379   withval=$with_libidn2; with_libidn2="$withval"
   19380 else
   19381   with_libidn2="no"
   19382 fi
   19383 
   19384 case $with_libidn2 in #(
   19385   yes) :
   19386 
   19387 pkg_failed=no
   19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   19389 $as_echo_n "checking for libidn2... " >&6; }
   19390 
   19391 if test -n "$LIBIDN2_CFLAGS"; then
   19392     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   19393  elif test -n "$PKG_CONFIG"; then
   19394     if test -n "$PKG_CONFIG" && \
   19395     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19396   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19397   ac_status=$?
   19398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19399   test $ac_status = 0; }; then
   19400   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   19401 		      test "x$?" != "x0" && pkg_failed=yes
   19402 else
   19403   pkg_failed=yes
   19404 fi
   19405  else
   19406     pkg_failed=untried
   19407 fi
   19408 if test -n "$LIBIDN2_LIBS"; then
   19409     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   19410  elif test -n "$PKG_CONFIG"; then
   19411     if test -n "$PKG_CONFIG" && \
   19412     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19413   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19414   ac_status=$?
   19415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19416   test $ac_status = 0; }; then
   19417   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   19418 		      test "x$?" != "x0" && pkg_failed=yes
   19419 else
   19420   pkg_failed=yes
   19421 fi
   19422  else
   19423     pkg_failed=untried
   19424 fi
   19425 
   19426 
   19427 
   19428 if test $pkg_failed = yes; then
   19429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19430 $as_echo "no" >&6; }
   19431 
   19432 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19433         _pkg_short_errors_supported=yes
   19434 else
   19435         _pkg_short_errors_supported=no
   19436 fi
   19437         if test $_pkg_short_errors_supported = yes; then
   19438 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   19439         else
   19440 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   19441         fi
   19442 	# Put the nasty error message in config.log where it belongs
   19443 	echo "$LIBIDN2_PKG_ERRORS" >&5
   19444 
   19445 	as_fn_error $? "Package requirements (libidn2) were not met:
   19446 
   19447 $LIBIDN2_PKG_ERRORS
   19448 
   19449 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19450 installed software in a non-standard prefix.
   19451 
   19452 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19453 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19454 See the pkg-config man page for more details." "$LINENO" 5
   19455 elif test $pkg_failed = untried; then
   19456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19457 $as_echo "no" >&6; }
   19458 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19460 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19461 is in your PATH or set the PKG_CONFIG environment variable to the full
   19462 path to pkg-config.
   19463 
   19464 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19465 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19466 See the pkg-config man page for more details.
   19467 
   19468 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19469 See \`config.log' for more details" "$LINENO" 5; }
   19470 else
   19471 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   19472 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   19473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19474 $as_echo "yes" >&6; }
   19475 
   19476 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19477 
   19478 fi ;; #(
   19479   no) :
   19480      ;; #(
   19481   *) :
   19482     save_CFLAGS="$CFLAGS"
   19483 		 save_CPPFLAGS="$CPPFLAGS"
   19484 		 save_LDFLAGS="$LDFLAGS"
   19485 		 save_LIBS="$LIBS"
   19486 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   19487 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   19488 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   19489 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   19490 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   19491 		 for ac_header in idn2.h
   19492 do :
   19493   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   19494 if test "x$ac_cv_header_idn2_h" = xyes; then :
   19495   cat >>confdefs.h <<_ACEOF
   19496 #define HAVE_IDN2_H 1
   19497 _ACEOF
   19498 
   19499 else
   19500   as_fn_error $? "idn2.h not found" "$LINENO" 5
   19501 fi
   19502 
   19503 done
   19504 
   19505 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   19506 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   19507 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19508   $as_echo_n "(cached) " >&6
   19509 else
   19510   ac_func_search_save_LIBS=$LIBS
   19511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19512 /* end confdefs.h.  */
   19513 
   19514 /* Override any GCC internal prototype to avoid an error.
   19515    Use char because int might match the return type of a GCC
   19516    builtin and then its argument prototype would still apply.  */
   19517 #ifdef __cplusplus
   19518 extern "C"
   19519 #endif
   19520 char idn2_to_ascii_lz ();
   19521 int
   19522 main ()
   19523 {
   19524 return idn2_to_ascii_lz ();
   19525   ;
   19526   return 0;
   19527 }
   19528 _ACEOF
   19529 for ac_lib in '' idn2; do
   19530   if test -z "$ac_lib"; then
   19531     ac_res="none required"
   19532   else
   19533     ac_res=-l$ac_lib
   19534     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19535   fi
   19536   if ac_fn_c_try_link "$LINENO"; then :
   19537   ac_cv_search_idn2_to_ascii_lz=$ac_res
   19538 fi
   19539 rm -f core conftest.err conftest.$ac_objext \
   19540     conftest$ac_exeext
   19541   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19542   break
   19543 fi
   19544 done
   19545 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19546 
   19547 else
   19548   ac_cv_search_idn2_to_ascii_lz=no
   19549 fi
   19550 rm conftest.$ac_ext
   19551 LIBS=$ac_func_search_save_LIBS
   19552 fi
   19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   19554 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   19555 ac_res=$ac_cv_search_idn2_to_ascii_lz
   19556 if test "$ac_res" != no; then :
   19557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19558   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   19559 
   19560 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19561 
   19562 else
   19563   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   19564 fi
   19565 
   19566 		 CFLAGS="$save_CFLAGS"
   19567 		 CPPFLAGS="$save_CPPFLAGS"
   19568 		 LDFLAGS="$save_LDFLAGS"
   19569 		 LIBS="$save_LIBS" ;; #(
   19570   *) :
   19571      ;;
   19572 esac
   19573 
   19574 
   19575 
   19576 
   19577 #
   19578 # Check whether to build with cmocka unit testing framework
   19579 #
   19580 
   19581 
   19582 # Check whether --with-cmocka was given.
   19583 if test "${with_cmocka+set}" = set; then :
   19584   withval=$with_cmocka; :
   19585 else
   19586   with_cmocka=no
   19587 fi
   19588 
   19589 
   19590 case $with_cmocka in #(
   19591   no) :
   19592     : ;; #(
   19593   yes) :
   19594 
   19595 
   19596 pkg_failed=no
   19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   19598 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   19599 
   19600 if test -n "$CMOCKA_CFLAGS"; then
   19601     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   19602  elif test -n "$PKG_CONFIG"; then
   19603     if test -n "$PKG_CONFIG" && \
   19604     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19605   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19606   ac_status=$?
   19607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19608   test $ac_status = 0; }; then
   19609   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   19610 		      test "x$?" != "x0" && pkg_failed=yes
   19611 else
   19612   pkg_failed=yes
   19613 fi
   19614  else
   19615     pkg_failed=untried
   19616 fi
   19617 if test -n "$CMOCKA_LIBS"; then
   19618     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   19619  elif test -n "$PKG_CONFIG"; then
   19620     if test -n "$PKG_CONFIG" && \
   19621     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19622   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19623   ac_status=$?
   19624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19625   test $ac_status = 0; }; then
   19626   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   19627 		      test "x$?" != "x0" && pkg_failed=yes
   19628 else
   19629   pkg_failed=yes
   19630 fi
   19631  else
   19632     pkg_failed=untried
   19633 fi
   19634 
   19635 
   19636 
   19637 if test $pkg_failed = yes; then
   19638         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19639 $as_echo "no" >&6; }
   19640 
   19641 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19642         _pkg_short_errors_supported=yes
   19643 else
   19644         _pkg_short_errors_supported=no
   19645 fi
   19646         if test $_pkg_short_errors_supported = yes; then
   19647 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19648         else
   19649 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19650         fi
   19651 	# Put the nasty error message in config.log where it belongs
   19652 	echo "$CMOCKA_PKG_ERRORS" >&5
   19653 
   19654 	as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
   19655 
   19656 $CMOCKA_PKG_ERRORS
   19657 
   19658 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19659 installed software in a non-standard prefix.
   19660 
   19661 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19662 and CMOCKA_LIBS to avoid the need to call pkg-config.
   19663 See the pkg-config man page for more details." "$LINENO" 5
   19664 elif test $pkg_failed = untried; then
   19665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19666 $as_echo "no" >&6; }
   19667 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19669 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19670 is in your PATH or set the PKG_CONFIG environment variable to the full
   19671 path to pkg-config.
   19672 
   19673 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19674 and CMOCKA_LIBS to avoid the need to call pkg-config.
   19675 See the pkg-config man page for more details.
   19676 
   19677 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19678 See \`config.log' for more details" "$LINENO" 5; }
   19679 else
   19680 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   19681 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   19682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19683 $as_echo "yes" >&6; }
   19684 
   19685 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19686 
   19687 fi
   19688             UNITTESTS=tests
   19689              ;; #(
   19690   *) :
   19691 
   19692 	    save_CFLAGS="$CFLAGS"
   19693 	    save_LIBS="$LIBS"
   19694 	    CFLAGS="$CFLAGS -I$with_cmocka/include"
   19695 	    LIBS="$LIBS -L$with_cmocka/lib"
   19696 	    for ac_header in cmocka.h
   19697 do :
   19698   ac_fn_c_check_header_compile "$LINENO" "cmocka.h" "ac_cv_header_cmocka_h" "#include <stdarg.h>
   19699 			      #include <stddef.h>
   19700 			      #include <setjmp.h>
   19701 
   19702 "
   19703 if test "x$ac_cv_header_cmocka_h" = xyes; then :
   19704   cat >>confdefs.h <<_ACEOF
   19705 #define HAVE_CMOCKA_H 1
   19706 _ACEOF
   19707  :
   19708 else
   19709   as_fn_error $? "cmocka.h not found" "$LINENO" 5
   19710 fi
   19711 
   19712 done
   19713 
   19714 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmocka_set_message_output" >&5
   19715 $as_echo_n "checking for library containing cmocka_set_message_output... " >&6; }
   19716 if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   19717   $as_echo_n "(cached) " >&6
   19718 else
   19719   ac_func_search_save_LIBS=$LIBS
   19720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19721 /* end confdefs.h.  */
   19722 
   19723 /* Override any GCC internal prototype to avoid an error.
   19724    Use char because int might match the return type of a GCC
   19725    builtin and then its argument prototype would still apply.  */
   19726 #ifdef __cplusplus
   19727 extern "C"
   19728 #endif
   19729 char cmocka_set_message_output ();
   19730 int
   19731 main ()
   19732 {
   19733 return cmocka_set_message_output ();
   19734   ;
   19735   return 0;
   19736 }
   19737 _ACEOF
   19738 for ac_lib in '' cmocka; do
   19739   if test -z "$ac_lib"; then
   19740     ac_res="none required"
   19741   else
   19742     ac_res=-l$ac_lib
   19743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19744   fi
   19745   if ac_fn_c_try_link "$LINENO"; then :
   19746   ac_cv_search_cmocka_set_message_output=$ac_res
   19747 fi
   19748 rm -f core conftest.err conftest.$ac_objext \
   19749     conftest$ac_exeext
   19750   if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   19751   break
   19752 fi
   19753 done
   19754 if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   19755 
   19756 else
   19757   ac_cv_search_cmocka_set_message_output=no
   19758 fi
   19759 rm conftest.$ac_ext
   19760 LIBS=$ac_func_search_save_LIBS
   19761 fi
   19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmocka_set_message_output" >&5
   19763 $as_echo "$ac_cv_search_cmocka_set_message_output" >&6; }
   19764 ac_res=$ac_cv_search_cmocka_set_message_output
   19765 if test "$ac_res" != no; then :
   19766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19767 
   19768 			       CMOCKA_CFLAGS="-I$with_cmocka/include"
   19769 			       CMOCKA_LIBS="-L$with_cmocka/lib -lcmocka"
   19770                                UNITTESTS=tests
   19771 
   19772 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19773 
   19774 
   19775 else
   19776   as_fn_error $? "cmocka unit testing framework not found in $with_cmocka path" "$LINENO" 5
   19777 fi
   19778 
   19779 	     ;; #(
   19780   *) :
   19781      ;;
   19782 esac
   19783 
   19784 
   19785 
   19786 
   19787 #
   19788 # Check for kyua execution engine if CMocka was requested
   19789 # and bail out if execution engine was not found
   19790 #
   19791 
   19792 if test "$with_cmocka" != "no"; then :
   19793   for ac_prog in kyua
   19794 do
   19795   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19796 set dummy $ac_prog; ac_word=$2
   19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19798 $as_echo_n "checking for $ac_word... " >&6; }
   19799 if ${ac_cv_path_KYUA+:} false; then :
   19800   $as_echo_n "(cached) " >&6
   19801 else
   19802   case $KYUA in
   19803   [\\/]* | ?:[\\/]*)
   19804   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   19805   ;;
   19806   *)
   19807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19808 for as_dir in $PATH
   19809 do
   19810   IFS=$as_save_IFS
   19811   test -z "$as_dir" && as_dir=.
   19812     for ac_exec_ext in '' $ac_executable_extensions; do
   19813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19814     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   19815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19816     break 2
   19817   fi
   19818 done
   19819   done
   19820 IFS=$as_save_IFS
   19821 
   19822   ;;
   19823 esac
   19824 fi
   19825 KYUA=$ac_cv_path_KYUA
   19826 if test -n "$KYUA"; then
   19827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   19828 $as_echo "$KYUA" >&6; }
   19829 else
   19830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19831 $as_echo "no" >&6; }
   19832 fi
   19833 
   19834 
   19835   test -n "$KYUA" && break
   19836 done
   19837 
   19838        if test -z "$KYUA"; then :
   19839   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   19840 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   19841 fi
   19842 fi
   19843 
   19844 
   19845 
   19846 #
   19847 # Check for -Wl,--wrap= support
   19848 #
   19849 
   19850 save_LDFLAGS=$LDFLAGS
   19851 LDFLAGS="--wrap=printf"
   19852 
   19853 LD_WRAP_TESTS=false
   19854 enable_ld_wrap=no
   19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   19856 $as_echo_n "checking for linker support for --wrap option... " >&6; }
   19857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19858 /* end confdefs.h.  */
   19859 #include <stdio.h>
   19860 int
   19861 main ()
   19862 {
   19863 __wrap_printf("success"); return (0);
   19864   ;
   19865   return 0;
   19866 }
   19867 _ACEOF
   19868 if ac_fn_c_try_link "$LINENO"; then :
   19869   enable_ld_wrap=yes
   19870      LD_WRAP_TESTS=true
   19871 
   19872 $as_echo "#define LD_WRAP 1" >>confdefs.h
   19873 
   19874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19875 $as_echo "yes" >&6; }
   19876 else
   19877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19878 $as_echo "no" >&6; }
   19879 fi
   19880 rm -f core conftest.err conftest.$ac_objext \
   19881     conftest$ac_exeext conftest.$ac_ext
   19882 # AM_CONDITIONAL([LD_WRAP], [test $enable_ld_wrap = yes])
   19883 
   19884 
   19885 LDFLAGS=$save_LDFLAGS
   19886 
   19887 #
   19888 # Check for i18n
   19889 #
   19890 for ac_header in locale.h
   19891 do :
   19892   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   19893 if test "x$ac_cv_header_locale_h" = xyes; then :
   19894   cat >>confdefs.h <<_ACEOF
   19895 #define HAVE_LOCALE_H 1
   19896 _ACEOF
   19897 
   19898 fi
   19899 
   19900 done
   19901 
   19902 for ac_func in setlocale
   19903 do :
   19904   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   19905 if test "x$ac_cv_func_setlocale" = xyes; then :
   19906   cat >>confdefs.h <<_ACEOF
   19907 #define HAVE_SETLOCALE 1
   19908 _ACEOF
   19909 
   19910 fi
   19911 done
   19912 
   19913 
   19914 #
   19915 # was --with-tuning specified?
   19916 #
   19917 
   19918 # Check whether --with-tuning was given.
   19919 if test "${with_tuning+set}" = set; then :
   19920   withval=$with_tuning; use_tuning="$withval"
   19921 else
   19922   use_tuning="no"
   19923 fi
   19924 
   19925 
   19926 case "$use_tuning" in
   19927 	large)
   19928 
   19929 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   19930 
   19931 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
   19932 $as_echo "using large-system tuning" >&6; }
   19933 		;;
   19934 	no|default)
   19935 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
   19936 $as_echo "using default tuning" >&6; }
   19937 		;;
   19938 	yes|*)
   19939 		as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
   19940 		;;
   19941 esac
   19942 
   19943 #
   19944 # was --enable-querytrace specified?
   19945 #
   19946 # Check whether --enable-querytrace was given.
   19947 if test "${enable_querytrace+set}" = set; then :
   19948   enableval=$enable_querytrace; want_querytrace="$enableval"
   19949 else
   19950   want_querytrace="no"
   19951 fi
   19952 
   19953 
   19954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   19955 $as_echo_n "checking whether to enable query trace logging... " >&6; }
   19956 case "$want_querytrace" in
   19957 yes)
   19958 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19959 $as_echo "yes" >&6; }
   19960 
   19961 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   19962 
   19963 	;;
   19964 no)
   19965 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19966 $as_echo "no" >&6; }
   19967 	;;
   19968 *)
   19969 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   19970 	;;
   19971 esac
   19972 
   19973 #
   19974 # Was --disable-auto-validation specified?
   19975 #
   19976 validation_default=auto
   19977 # Check whether --enable-auto-validation was given.
   19978 if test "${enable_auto_validation+set}" = set; then :
   19979   enableval=$enable_auto_validation; :
   19980 else
   19981   enable_auto_validation=yes
   19982 fi
   19983 
   19984 if test "$enable_auto_validation" = "no"; then :
   19985   validation_default=yes
   19986 fi
   19987 
   19988 cat >>confdefs.h <<_ACEOF
   19989 #define VALIDATION_DEFAULT "$validation_default"
   19990 _ACEOF
   19991 
   19992 
   19993 #
   19994 # Substitutions
   19995 #
   19996 
   19997 BIND9_TOP_BUILDDIR=`pwd`
   19998 
   19999 
   20000 
   20001 
   20002 
   20003 
   20004 
   20005 
   20006 if test "X$srcdir" != "X"; then
   20007 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   20008 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   20009 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   20010 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   20011 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   20012 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   20013 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   20014 else
   20015 	BIND9_ISC_BUILDINCLUDE=""
   20016 	BIND9_ISCCC_BUILDINCLUDE=""
   20017 	BIND9_ISCCFG_BUILDINCLUDE=""
   20018 	BIND9_DNS_BUILDINCLUDE=""
   20019 	BIND9_NS_BUILDINCLUDE=""
   20020 	BIND9_BIND9_BUILDINCLUDE=""
   20021 	BIND9_IRS_BUILDINCLUDE=""
   20022 fi
   20023 
   20024 
   20025 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   20026 
   20027 
   20028 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   20029 
   20030 . "$srcdir/version"
   20031 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   20032 
   20033 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   20034 
   20035 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   20036 
   20037 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   20038 
   20039 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   20040 
   20041 BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   20042 
   20043 
   20044 BIND9_SRCID="SRCID=unset_id"
   20045 if test -f "${srcdir}/srcid"; then
   20046 	. "${srcdir}/srcid"
   20047 	BIND9_SRCID="SRCID=$SRCID"
   20048 elif test -d "${srcdir}/.git"; then
   20049 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   20050 fi
   20051 
   20052 
   20053 
   20054 if test -z "$ac_configure_args"; then
   20055 	BIND9_CONFIGARGS="defaults"
   20056 else
   20057 	for a in $ac_configure_args
   20058 	do
   20059 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   20060 	done
   20061 fi
   20062 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   20063 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   20064 
   20065 
   20066 
   20067 LIBISC_API="$srcdir/lib/isc/api"
   20068 
   20069 
   20070 LIBISCCC_API="$srcdir/lib/isccc/api"
   20071 
   20072 
   20073 LIBISCCFG_API="$srcdir/lib/isccfg/api"
   20074 
   20075 
   20076 LIBDNS_API="$srcdir/lib/dns/api"
   20077 
   20078 
   20079 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   20080 
   20081 
   20082 LIBBIND9_API="$srcdir/lib/bind9/api"
   20083 
   20084 
   20085 LIBIRS_API="$srcdir/lib/irs/api"
   20086 
   20087 
   20088 LIBNS_API="$srcdir/lib/ns/api"
   20089 
   20090 #
   20091 # Configure any DLZ drivers.
   20092 #
   20093 # If config.dlz.in selects one or more DLZ drivers, it will set
   20094 # CONTRIB_DLZ to a non-empty value, which will be our clue to
   20095 # build DLZ drivers in contrib.
   20096 #
   20097 # This section has to come after the libtool stuff because it needs to
   20098 # know how to name the driver object files.
   20099 #
   20100 
   20101 CONTRIB_DLZ=""
   20102 DLZ_DRIVER_INCLUDES=""
   20103 DLZ_DRIVER_LIBS=""
   20104 DLZ_DRIVER_SRCS=""
   20105 DLZ_DRIVER_OBJS=""
   20106 DLZ_SYSTEM_TEST=""
   20107 DLZ_DRIVER_MYSQL_INCLUDES=""
   20108 DLZ_DRIVER_MYSQL_LIBS=""
   20109 
   20110 #
   20111 # Configure support for building a shared library object
   20112 #
   20113 # Even when libtool is available it can't always be relied upon
   20114 # to build an object that can be dlopen()'ed, but this is necessary
   20115 # for building the dlzexternal system test, so we'll try it the
   20116 # old-fashioned way.
   20117 #
   20118 SO="so"
   20119 SO_CFLAGS=""
   20120 SO_LDFLAGS=""
   20121 SO_LD=""
   20122 SO_TARGETS=""
   20123 SO_STRIP="cat"
   20124 
   20125 
   20126 # Check whether --with-dlopen was given.
   20127 if test "${with_dlopen+set}" = set; then :
   20128   withval=$with_dlopen;
   20129 else
   20130   with_dlopen="auto"
   20131 fi
   20132 
   20133 
   20134 
   20135 #
   20136 # If PIC is disabled, dlopen must also be
   20137 #
   20138 if test "$pic_mode" = "no"; then :
   20139   case $with_dlopen in #(
   20140   auto) :
   20141     with_dlopen="no" ;; #(
   20142   yes) :
   20143     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   20144   *) :
   20145      ;;
   20146 esac
   20147 fi
   20148 
   20149 case $with_dlopen in #(
   20150   auto|yes) :
   20151 
   20152 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   20153 $as_echo_n "checking for library containing dlopen... " >&6; }
   20154 if ${ac_cv_search_dlopen+:} false; then :
   20155   $as_echo_n "(cached) " >&6
   20156 else
   20157   ac_func_search_save_LIBS=$LIBS
   20158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20159 /* end confdefs.h.  */
   20160 
   20161 /* Override any GCC internal prototype to avoid an error.
   20162    Use char because int might match the return type of a GCC
   20163    builtin and then its argument prototype would still apply.  */
   20164 #ifdef __cplusplus
   20165 extern "C"
   20166 #endif
   20167 char dlopen ();
   20168 int
   20169 main ()
   20170 {
   20171 return dlopen ();
   20172   ;
   20173   return 0;
   20174 }
   20175 _ACEOF
   20176 for ac_lib in '' dl; do
   20177   if test -z "$ac_lib"; then
   20178     ac_res="none required"
   20179   else
   20180     ac_res=-l$ac_lib
   20181     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20182   fi
   20183   if ac_fn_c_try_link "$LINENO"; then :
   20184   ac_cv_search_dlopen=$ac_res
   20185 fi
   20186 rm -f core conftest.err conftest.$ac_objext \
   20187     conftest$ac_exeext
   20188   if ${ac_cv_search_dlopen+:} false; then :
   20189   break
   20190 fi
   20191 done
   20192 if ${ac_cv_search_dlopen+:} false; then :
   20193 
   20194 else
   20195   ac_cv_search_dlopen=no
   20196 fi
   20197 rm conftest.$ac_ext
   20198 LIBS=$ac_func_search_save_LIBS
   20199 fi
   20200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   20201 $as_echo "$ac_cv_search_dlopen" >&6; }
   20202 ac_res=$ac_cv_search_dlopen
   20203 if test "$ac_res" != no; then :
   20204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20205 
   20206 fi
   20207 
   20208 	  for ac_func in dlopen dlclose dlsym
   20209 do :
   20210   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   20212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   20213   cat >>confdefs.h <<_ACEOF
   20214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20215 _ACEOF
   20216  with_dlopen="yes"
   20217 else
   20218   with_dlopen="no"
   20219 fi
   20220 done
   20221 
   20222 	 ;; #(
   20223   *) :
   20224      ;;
   20225 esac
   20226 
   20227 if test "$with_dlopen" = "yes"; then :
   20228   case $host in #(
   20229   *-linux*|*-gnu*) :
   20230 
   20231 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   20232 		 SO_CFLAGS="-fPIC"
   20233 		 SO_LDFLAGS=""
   20234 		 if test "$use_libtool" = "yes"; then :
   20235 
   20236 			 SO_LDFLAGS="-Xcompiler -shared"
   20237 			 SO_LD="${CC}"
   20238 
   20239 else
   20240 
   20241 			 SO_LDFLAGS="-shared"
   20242 			 SO_LD="${CC}"
   20243 
   20244 fi
   20245 	        ;; #(
   20246   *-freebsd*|*-openbsd*|*-netbsd*) :
   20247 
   20248 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   20249 		 SO_CFLAGS="-fpic"
   20250 		 if test "$use_libtool" = "yes"; then :
   20251 
   20252 			 SO_LDFLAGS="-Xcompiler -shared"
   20253 			 SO_LD="${CC}"
   20254 
   20255 else
   20256 
   20257 			 SO_LDFLAGS="-shared"
   20258 			 SO_LD="${CC}"
   20259 
   20260 fi
   20261 	        ;; #(
   20262   *-darwin*) :
   20263 
   20264 		 SO_CFLAGS="-fPIC"
   20265                  SO_LD="${CC}"
   20266 		 if test "$use_libtool" = "yes"; then :
   20267 
   20268 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   20269 
   20270 else
   20271 
   20272 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   20273 
   20274 fi
   20275 	        ;; #(
   20276   *-solaris*) :
   20277 
   20278 		 SO_CFLAGS="-KPIC"
   20279 		 SO_LDFLAGS="-G -z text"
   20280 		 SO_LD="ld"
   20281 	        ;; #(
   20282   *) :
   20283 
   20284 		 SO_CFLAGS="-fPIC"
   20285 	        ;;
   20286 esac
   20287        if test "$GCC" = "yes"; then :
   20288 
   20289 	       SO_CFLAGS="-fPIC"
   20290 	       if test -z "$SO_LD"; then :
   20291   if test "$use_libtool" = "yes"; then :
   20292 
   20293 			      SO_LDFLAGS="-Xcompiler -shared"
   20294 			      SO_LD="${CC}"
   20295 
   20296 else
   20297 
   20298 			      SO_LDFLAGS="-shared"
   20299 			      SO_LD="${CC}"
   20300 
   20301 fi
   20302 
   20303 fi
   20304 
   20305 fi
   20306        # If we still don't know how to make shared objects, don't make any.
   20307        if test -n "$SO_LD"; then :
   20308   SO_TARGETS="\${SO_TARGETS}"
   20309 
   20310 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   20311 
   20312 
   20313 fi
   20314 
   20315 fi
   20316 
   20317 CFLAGS="$CFLAGS $SO_CFLAGS"
   20318 
   20319 
   20320 
   20321 
   20322 
   20323 
   20324 
   20325 
   20326 #
   20327 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   20328 # interface.
   20329 #
   20330 # DNSRPS can be compiled into BIND everywhere with a reasonably
   20331 # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   20332 #
   20333 dnsrps_avail=yes
   20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   20335 $as_echo_n "checking for librpz __attribute__s... " >&6; }
   20336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20337 /* end confdefs.h.  */
   20338 
   20339 int
   20340 main ()
   20341 {
   20342 
   20343        extern void f(char *p __attribute__((unused)), ...)
   20344        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   20345 
   20346   ;
   20347   return 0;
   20348 }
   20349 _ACEOF
   20350 if ac_fn_c_try_compile "$LINENO"; then :
   20351 
   20352     librpz_have_attr=yes
   20353 
   20354 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   20355 
   20356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20357 $as_echo "yes" >&6; }
   20358 
   20359 else
   20360 
   20361     librpz_have_attr=no
   20362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20363 $as_echo "no" >&6; }
   20364 
   20365 fi
   20366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20367 
   20368 # Check whether --enable-dnsrps-dl was given.
   20369 if test "${enable_dnsrps_dl+set}" = set; then :
   20370   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   20371 else
   20372   enable_librpz_dl="$with_dlopen"
   20373 fi
   20374 
   20375 
   20376 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   20377   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   20378 fi
   20379 
   20380 
   20381 # Check whether --with-dnsrps-libname was given.
   20382 if test "${with_dnsrps_libname+set}" = set; then :
   20383   withval=$with_dnsrps_libname; librpz_name="$withval"
   20384 else
   20385   librpz_name="librpz.so"
   20386 fi
   20387 
   20388 
   20389 # Check whether --with-dnsrps-dir was given.
   20390 if test "${with_dnsrps_dir+set}" = set; then :
   20391   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   20392 else
   20393   librpz_path="$librpz_name"
   20394 fi
   20395 
   20396 
   20397 cat >>confdefs.h <<_ACEOF
   20398 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   20399 _ACEOF
   20400 
   20401 if test "$enable_librpz_dl" = "yes"; then :
   20402 
   20403 	dnsrps_lib_open=2
   20404 
   20405 else
   20406 
   20407 	dnsrps_lib_open=1
   20408 	# Add librpz.so to linked libraries if we are not using dlopen()
   20409 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   20410 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   20411 if ${ac_cv_search_librpz_client_create+:} false; then :
   20412   $as_echo_n "(cached) " >&6
   20413 else
   20414   ac_func_search_save_LIBS=$LIBS
   20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20416 /* end confdefs.h.  */
   20417 
   20418 /* Override any GCC internal prototype to avoid an error.
   20419    Use char because int might match the return type of a GCC
   20420    builtin and then its argument prototype would still apply.  */
   20421 #ifdef __cplusplus
   20422 extern "C"
   20423 #endif
   20424 char librpz_client_create ();
   20425 int
   20426 main ()
   20427 {
   20428 return librpz_client_create ();
   20429   ;
   20430   return 0;
   20431 }
   20432 _ACEOF
   20433 for ac_lib in '' rpz; do
   20434   if test -z "$ac_lib"; then
   20435     ac_res="none required"
   20436   else
   20437     ac_res=-l$ac_lib
   20438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20439   fi
   20440   if ac_fn_c_try_link "$LINENO"; then :
   20441   ac_cv_search_librpz_client_create=$ac_res
   20442 fi
   20443 rm -f core conftest.err conftest.$ac_objext \
   20444     conftest$ac_exeext
   20445   if ${ac_cv_search_librpz_client_create+:} false; then :
   20446   break
   20447 fi
   20448 done
   20449 if ${ac_cv_search_librpz_client_create+:} false; then :
   20450 
   20451 else
   20452   ac_cv_search_librpz_client_create=no
   20453 fi
   20454 rm conftest.$ac_ext
   20455 LIBS=$ac_func_search_save_LIBS
   20456 fi
   20457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   20458 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   20459 ac_res=$ac_cv_search_librpz_client_create
   20460 if test "$ac_res" != no; then :
   20461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20462 
   20463 else
   20464   dnsrps_lib_open=0
   20465 		 dnsrps_avail=no
   20466 fi
   20467 
   20468 
   20469 fi
   20470 
   20471 cat >>confdefs.h <<_ACEOF
   20472 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   20473 _ACEOF
   20474 
   20475 
   20476 # Check whether --enable-dnsrps was given.
   20477 if test "${enable_dnsrps+set}" = set; then :
   20478   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   20479 else
   20480   enable_dnsrps=no
   20481 fi
   20482 
   20483 
   20484 if test "$enable_dnsrps" != "no"; then :
   20485 
   20486 	if test "$dnsrps_avail" != "yes"; then :
   20487   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20488 fi
   20489 	if test "$dnsrps_lib_open" = "0"; then :
   20490   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20491 fi
   20492 
   20493 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   20494 
   20495 
   20496 fi
   20497 
   20498 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   20499 #
   20500 # Permission to use, copy, modify, and distribute this software for any
   20501 # purpose with or without fee is hereby granted, provided that the above
   20502 # copyright notice and this permission notice appear in all copies.
   20503 #
   20504 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   20505 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   20506 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   20507 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   20508 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   20509 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   20510 # PERFORMANCE OF THIS SOFTWARE.
   20511 
   20512 #
   20513 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   20514 #
   20515 dlzdir='${DLZ_DRIVER_DIR}'
   20516 
   20517 #
   20518 # Private autoconf macro to simplify configuring drivers:
   20519 #
   20520 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   20521 #
   20522 # where:
   20523 #   DEFINE is FOO (to define -DDLZ_FOO)
   20524 #   DRIVER is dlz_foo_driver (sources without the .c)
   20525 #   INCLUDES is any necessary include definitions
   20526 #   LIBS is any necessary library definitions
   20527 #
   20528 
   20529 
   20530 #
   20531 # Check for the various DLZ drivers
   20532 #
   20533 
   20534 #
   20535 # Was --with-dlz-postgres specified?
   20536 #
   20537 
   20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   20539 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   20540 
   20541 # Check whether --with-dlz_postgres was given.
   20542 if test "${with_dlz_postgres+set}" = set; then :
   20543   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   20544 else
   20545   use_dlz_postgres="no"
   20546 fi
   20547 
   20548 
   20549 if test "$use_dlz_postgres" != "no"
   20550 then
   20551 	if test "$use_dlz_postgres" != "yes"
   20552         then
   20553                 for ac_prog in pg_config
   20554 do
   20555   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20556 set dummy $ac_prog; ac_word=$2
   20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20558 $as_echo_n "checking for $ac_word... " >&6; }
   20559 if ${ac_cv_path_PG_CONFIG+:} false; then :
   20560   $as_echo_n "(cached) " >&6
   20561 else
   20562   case $PG_CONFIG in
   20563   [\\/]* | ?:[\\/]*)
   20564   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20565   ;;
   20566   *)
   20567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20568 for as_dir in $use_dlz_postgres/bin
   20569 do
   20570   IFS=$as_save_IFS
   20571   test -z "$as_dir" && as_dir=.
   20572     for ac_exec_ext in '' $ac_executable_extensions; do
   20573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20574     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20576     break 2
   20577   fi
   20578 done
   20579   done
   20580 IFS=$as_save_IFS
   20581 
   20582   ;;
   20583 esac
   20584 fi
   20585 PG_CONFIG=$ac_cv_path_PG_CONFIG
   20586 if test -n "$PG_CONFIG"; then
   20587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20588 $as_echo "$PG_CONFIG" >&6; }
   20589 else
   20590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20591 $as_echo "no" >&6; }
   20592 fi
   20593 
   20594 
   20595   test -n "$PG_CONFIG" && break
   20596 done
   20597 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20598 
   20599 	else
   20600                 for ac_prog in pg_config
   20601 do
   20602   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20603 set dummy $ac_prog; ac_word=$2
   20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20605 $as_echo_n "checking for $ac_word... " >&6; }
   20606 if ${ac_cv_path_PG_CONFIG+:} false; then :
   20607   $as_echo_n "(cached) " >&6
   20608 else
   20609   case $PG_CONFIG in
   20610   [\\/]* | ?:[\\/]*)
   20611   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20612   ;;
   20613   *)
   20614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20615 for as_dir in $PATH
   20616 do
   20617   IFS=$as_save_IFS
   20618   test -z "$as_dir" && as_dir=.
   20619     for ac_exec_ext in '' $ac_executable_extensions; do
   20620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20621     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20623     break 2
   20624   fi
   20625 done
   20626   done
   20627 IFS=$as_save_IFS
   20628 
   20629   ;;
   20630 esac
   20631 fi
   20632 PG_CONFIG=$ac_cv_path_PG_CONFIG
   20633 if test -n "$PG_CONFIG"; then
   20634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20635 $as_echo "$PG_CONFIG" >&6; }
   20636 else
   20637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20638 $as_echo "no" >&6; }
   20639 fi
   20640 
   20641 
   20642   test -n "$PG_CONFIG" && break
   20643 done
   20644 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20645 
   20646 	fi
   20647 
   20648 	if test "$PG_CONFIG" != "not found"
   20649 	then
   20650 		use_dlz_postgres=`$PG_CONFIG --includedir`
   20651 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   20652 	else
   20653 		pgprefix="$use_dlz_postgres"
   20654 		use_dlz_postgres="$pgprefix/include"
   20655 		use_dlz_postgres_lib="$pgprefix/lib"
   20656 	fi
   20657 fi
   20658 
   20659 if test "$use_dlz_postgres" = "yes/include"
   20660 then
   20661 	# User did not specify path and Postgres didn't say - guess it
   20662 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   20663 	for d in $pgdirs
   20664 	do
   20665 		if test -f $d/include/libpq-fe.h
   20666 		then
   20667 			use_dlz_postgres=$d/include
   20668 			use_dlz_postgres_lib=$d/lib
   20669 			break
   20670 		fi
   20671 	done
   20672 fi
   20673 
   20674 if test "$use_dlz_postgres" = "yes/include"
   20675 then
   20676 	# Still no joy, give up
   20677 
   20678 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20679 $as_echo "not found" >&6; }
   20680 	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
   20681 fi
   20682 
   20683 case "$use_dlz_postgres" in
   20684 	no)
   20685 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20686 $as_echo "no" >&6; }
   20687 		;;
   20688 	*)
   20689 
   20690 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   20691 	for i in dlz_postgres_driver
   20692 	do
   20693 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20694 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20695 	done
   20696 	if test -n "-I$use_dlz_postgres"
   20697 	then
   20698 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   20699 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   20700 	fi
   20701 	if test -n "-L$use_dlz_postgres_lib -lpq"
   20702 	then
   20703 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   20704 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   20705 	fi
   20706 
   20707 
   20708 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   20709 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   20710 		;;
   20711 esac
   20712 
   20713 
   20714 #
   20715 # Was --with-dlz-mysql specified?
   20716 #
   20717 
   20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   20719 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   20720 
   20721 # Check whether --with-dlz_mysql was given.
   20722 if test "${with_dlz_mysql+set}" = set; then :
   20723   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   20724 else
   20725   use_dlz_mysql="no"
   20726 fi
   20727 
   20728 
   20729 mysql_include=""
   20730 mysql_lib=""
   20731 if test "$use_dlz_mysql" = "yes"
   20732 then
   20733 	for ac_prog in mysql_config
   20734 do
   20735   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20736 set dummy $ac_prog; ac_word=$2
   20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20738 $as_echo_n "checking for $ac_word... " >&6; }
   20739 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   20740   $as_echo_n "(cached) " >&6
   20741 else
   20742   if test -n "$MYSQL_CONFIG"; then
   20743   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   20744 else
   20745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20746 for as_dir in $PATH
   20747 do
   20748   IFS=$as_save_IFS
   20749   test -z "$as_dir" && as_dir=.
   20750     for ac_exec_ext in '' $ac_executable_extensions; do
   20751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20752     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   20753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20754     break 2
   20755   fi
   20756 done
   20757   done
   20758 IFS=$as_save_IFS
   20759 
   20760 fi
   20761 fi
   20762 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   20763 if test -n "$MYSQL_CONFIG"; then
   20764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   20765 $as_echo "$MYSQL_CONFIG" >&6; }
   20766 else
   20767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20768 $as_echo "no" >&6; }
   20769 fi
   20770 
   20771 
   20772   test -n "$MYSQL_CONFIG" && break
   20773 done
   20774 
   20775 	if test -n "$MYSQL_CONFIG"
   20776 	then
   20777 		mysql_include=`${MYSQL_CONFIG} --include`
   20778 		mysql_lib=`${MYSQL_CONFIG} --libs`
   20779 		use_dlz_mysql="config"
   20780 
   20781 	else
   20782 		# User did not specify a path - guess it
   20783 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   20784 		for d in $mysqldirs
   20785 		do
   20786 			if test -f $d/include/mysql/mysql.h
   20787 			then
   20788 				use_dlz_mysql=$d
   20789 				mysql_include=$d/include/mysql
   20790 				break
   20791 			elif test -f $d/include/mysql.h
   20792 			then
   20793 				use_dlz_mysql=$d
   20794 				mysql_include=$d/include
   20795 				break
   20796 			fi
   20797 		done
   20798 	fi
   20799 elif test "$use_dlz_mysql" != "no"
   20800 then
   20801 	d=$use_dlz_mysql
   20802 	if test -f $d/include/mysql/mysql.h
   20803 	then
   20804 		mysql_include=$d/include/mysql
   20805 	elif test -f $d/include/mysql.h
   20806 	then
   20807 		mysql_include=$d/include
   20808 	fi
   20809 fi
   20810 
   20811 if test "$use_dlz_mysql" = "yes"
   20812 then
   20813 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20814 $as_echo "not found" >&6; }
   20815 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   20816 fi
   20817 
   20818 case "$use_dlz_mysql" in
   20819 	no)
   20820 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20821 $as_echo "no" >&6; }
   20822 		;;
   20823 	config)
   20824 
   20825 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20826 	for i in dlz_mysql_driver
   20827 	do
   20828 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20829 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20830 	done
   20831 	if test -n "${mysql_include}"
   20832 	then
   20833 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   20834 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   20835 	fi
   20836 	if test -n "${mysql_lib}"
   20837 	then
   20838 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   20839 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   20840 	fi
   20841 
   20842 
   20843 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   20844 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   20845 		;;
   20846 	*)
   20847 		if test -d "$use_dlz_mysql/lib/mysql"
   20848 		then
   20849 			mysql_lib="$use_dlz_mysql/lib/mysql"
   20850 		else
   20851 			mysql_lib="$use_dlz_mysql/lib"
   20852 		fi
   20853 
   20854 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20855 	for i in dlz_mysql_driver
   20856 	do
   20857 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20858 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20859 	done
   20860 	if test -n "-I${mysql_include}"
   20861 	then
   20862 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   20863 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   20864 	fi
   20865 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20866 	then
   20867 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20868 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20869 	fi
   20870 
   20871 
   20872 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   20873 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   20874 		;;
   20875 esac
   20876 
   20877 
   20878 #
   20879 # Was --with-dlz-bdb specified?
   20880 #
   20881 
   20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   20883 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   20884 
   20885 # Check whether --with-dlz_bdb was given.
   20886 if test "${with_dlz_bdb+set}" = set; then :
   20887   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   20888 else
   20889   use_dlz_bdb="no"
   20890 fi
   20891 
   20892 
   20893 case "$use_dlz_bdb" in
   20894 	no)
   20895 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20896 $as_echo "no" >&6; }
   20897 		;;
   20898 	*)
   20899 		if test "$use_dlz_bdb" = "yes"
   20900 		then
   20901 			# User did not specify a path - guess directories
   20902 			bdbdirs="/usr/local /usr/pkg /usr"
   20903 		elif test -d "$use_dlz_bdb"
   20904 		then
   20905 			# User specified directory and it exists
   20906 			bdbdirs="$use_dlz_bdb"
   20907 		else
   20908 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20909 $as_echo "not found" >&6; }
   20910 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   20911 			bdbdirs=""
   20912 		fi
   20913 
   20914 		# Use path we were given or guessed.  This is insanely
   20915 		# complicated because we have to search for a bunch of
   20916 		# platform-specific variations and have to check
   20917 		# separately for include and library directories.
   20918 
   20919 		# Set both to yes, so we can check them later
   20920 		dlz_bdb_inc="yes"
   20921 		dlz_bdb_libs="yes"
   20922 
   20923                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   20924 $as_echo "" >&6; }
   20925 		for dd in $bdbdirs
   20926 		do
   20927 			# Skip nonexistant directories
   20928 			if test ! -d "$dd"
   20929 			then
   20930 				continue
   20931 			fi
   20932 
   20933 			# Check other locations for includes.
   20934 			# Order is important (sigh).
   20935 
   20936 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   20937 			# include a blank element first
   20938 			for d in "" $bdb_incdirs
   20939 			do
   20940 				if test -f "$dd/include${d}/db.h"
   20941 				then
   20942 					dlz_bdb_inc="-I$dd/include${d}"
   20943 					break
   20944 				fi
   20945 			done
   20946 
   20947 			# Give up on this directory if we couldn't
   20948 			# find the include subdir
   20949 
   20950 			if test "$dlz_bdb_inc" = "yes"
   20951 			then
   20952 				continue
   20953 			fi
   20954 
   20955 			# Look for libname other than libdb.so.
   20956 			# Order is important (sigh).
   20957 
   20958 			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"
   20959 			for d in $bdb_libnames
   20960 			do
   20961 				if test "$dd" = "/usr"
   20962 				then
   20963 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   20965 $as_echo_n "checking for db_create in -l$d... " >&6; }
   20966 if eval \${$as_ac_Lib+:} false; then :
   20967   $as_echo_n "(cached) " >&6
   20968 else
   20969   ac_check_lib_save_LIBS=$LIBS
   20970 LIBS="-l$d  $LIBS"
   20971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20972 /* end confdefs.h.  */
   20973 
   20974 /* Override any GCC internal prototype to avoid an error.
   20975    Use char because int might match the return type of a GCC
   20976    builtin and then its argument prototype would still apply.  */
   20977 #ifdef __cplusplus
   20978 extern "C"
   20979 #endif
   20980 char db_create ();
   20981 int
   20982 main ()
   20983 {
   20984 return db_create ();
   20985   ;
   20986   return 0;
   20987 }
   20988 _ACEOF
   20989 if ac_fn_c_try_link "$LINENO"; then :
   20990   eval "$as_ac_Lib=yes"
   20991 else
   20992   eval "$as_ac_Lib=no"
   20993 fi
   20994 rm -f core conftest.err conftest.$ac_objext \
   20995     conftest$ac_exeext conftest.$ac_ext
   20996 LIBS=$ac_check_lib_save_LIBS
   20997 fi
   20998 eval ac_res=\$$as_ac_Lib
   20999 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   21000 $as_echo "$ac_res" >&6; }
   21001 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   21002   dlz_bdb_libs="-l${d}"
   21003 fi
   21004 
   21005 					if test $dlz_bdb_libs != "yes"
   21006 					then
   21007 						break
   21008 					fi
   21009 				elif test -f "$dd/lib/lib${d}.so"
   21010 				then
   21011 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   21012 					break
   21013 				fi
   21014 			done
   21015 
   21016 			# If we found both incdir and lib, we're done
   21017 			if test "$dlz_bdb_libs" != "yes"
   21018 			then
   21019 				break
   21020 			fi
   21021 
   21022 			# Otherwise, we're starting over
   21023 
   21024 			dlz_bdb_inc="yes"
   21025 			dlz_bdb_libs="yes"
   21026 		done
   21027 
   21028 		# Done searching, now make sure we got everything.
   21029 
   21030 		if test "$dlz_bdb_inc" = "yes"
   21031 		then
   21032 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   21033 		fi
   21034 
   21035 		if test "$dlz_bdb_libs" = "yes"
   21036 		then
   21037 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21038 $as_echo "not found" >&6; }
   21039 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   21040 		fi
   21041 
   21042 
   21043 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   21044 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   21045 	do
   21046 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21047 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21048 	done
   21049 	if test -n "$dlz_bdb_inc"
   21050 	then
   21051 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   21052 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   21053 	fi
   21054 	if test -n "$dlz_bdb_libs"
   21055 	then
   21056 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   21057 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   21058 	fi
   21059 
   21060 
   21061 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   21062 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   21063 
   21064 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   21065 
   21066 		;;
   21067 esac
   21068 
   21069 
   21070 #
   21071 # Was --with-dlz-filesystem specified?
   21072 #
   21073 
   21074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   21075 $as_echo_n "checking for file system DLZ driver... " >&6; }
   21076 
   21077 # Check whether --with-dlz_filesystem was given.
   21078 if test "${with_dlz_filesystem+set}" = set; then :
   21079   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   21080 else
   21081   use_dlz_filesystem="no"
   21082 fi
   21083 
   21084 
   21085 case "$use_dlz_filesystem" in
   21086 	no)
   21087 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21088 $as_echo "no" >&6; }
   21089 		;;
   21090 	*)
   21091 
   21092 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   21093 	for i in dlz_filesystem_driver
   21094 	do
   21095 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21096 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21097 	done
   21098 	if test -n ""
   21099 	then
   21100 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21101 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   21102 	fi
   21103 	if test -n ""
   21104 	then
   21105 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21106 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   21107 	fi
   21108 
   21109 		DLZ_SYSTEM_TEST=filesystem
   21110 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21111 $as_echo "yes" >&6; }
   21112 		;;
   21113 esac
   21114 
   21115 
   21116 #
   21117 # Was --with-dlz-ldap specified?
   21118 #
   21119 
   21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   21121 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   21122 
   21123 # Check whether --with-dlz_ldap was given.
   21124 if test "${with_dlz_ldap+set}" = set; then :
   21125   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   21126 else
   21127   use_dlz_ldap="no"
   21128 fi
   21129 
   21130 
   21131 if test "$use_dlz_ldap" = "yes"
   21132 then
   21133 	# User did not specify a path - guess it
   21134 	ldapdirs="/usr /usr/local /usr/pkg"
   21135 	for d in $ldapdirs
   21136 	do
   21137 		if test -f $d/include/ldap.h
   21138 		then
   21139 			use_dlz_ldap=$d
   21140 			break
   21141 		fi
   21142 	done
   21143 fi
   21144 
   21145 if test "$use_dlz_ldap" = "yes"
   21146 then
   21147 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21148 $as_echo "not found" >&6; }
   21149 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   21150 fi
   21151 
   21152 case "$use_dlz_ldap" in
   21153 	no)
   21154 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21155 $as_echo "no" >&6; }
   21156 		;;
   21157 	*)
   21158 
   21159 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   21160 	for i in dlz_ldap_driver
   21161 	do
   21162 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21163 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21164 	done
   21165 	if test -n "-I$use_dlz_ldap/include"
   21166 	then
   21167 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   21168 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   21169 	fi
   21170 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   21171 	then
   21172 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   21173 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   21174 	fi
   21175 
   21176 
   21177 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   21178 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   21179 		;;
   21180 esac
   21181 
   21182 
   21183 #
   21184 # Was --with-dlz-odbc specified?
   21185 #
   21186 
   21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   21188 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   21189 
   21190 # Check whether --with-dlz_odbc was given.
   21191 if test "${with_dlz_odbc+set}" = set; then :
   21192   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   21193 else
   21194   use_dlz_odbc="no"
   21195 fi
   21196 
   21197 
   21198 if test "$use_dlz_odbc" = "yes"
   21199 then
   21200 	# User did not specify a path - guess it
   21201 	libodbc_found=no
   21202 	sql_h_found=no
   21203 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   21204 if test "x$ac_cv_header_sql_h" = xyes; then :
   21205   sql_h_found=yes
   21206 fi
   21207 
   21208 
   21209 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   21210 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   21211 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   21212   $as_echo_n "(cached) " >&6
   21213 else
   21214   ac_check_lib_save_LIBS=$LIBS
   21215 LIBS="-lodbc  $LIBS"
   21216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21217 /* end confdefs.h.  */
   21218 
   21219 /* Override any GCC internal prototype to avoid an error.
   21220    Use char because int might match the return type of a GCC
   21221    builtin and then its argument prototype would still apply.  */
   21222 #ifdef __cplusplus
   21223 extern "C"
   21224 #endif
   21225 char SQLConnect ();
   21226 int
   21227 main ()
   21228 {
   21229 return SQLConnect ();
   21230   ;
   21231   return 0;
   21232 }
   21233 _ACEOF
   21234 if ac_fn_c_try_link "$LINENO"; then :
   21235   ac_cv_lib_odbc_SQLConnect=yes
   21236 else
   21237   ac_cv_lib_odbc_SQLConnect=no
   21238 fi
   21239 rm -f core conftest.err conftest.$ac_objext \
   21240     conftest$ac_exeext conftest.$ac_ext
   21241 LIBS=$ac_check_lib_save_LIBS
   21242 fi
   21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   21244 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   21245 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   21246   libodbc_found=yes
   21247 fi
   21248 
   21249 
   21250 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   21251 	then
   21252 		use_dlz_odbc=system
   21253 		dlz_odbc_include=""
   21254 		dlz_odbc_libs="-lodbc"
   21255 	else
   21256 		odbcdirs="/usr /usr/local /usr/pkg"
   21257 		for d in $odbcdirs
   21258 		do
   21259 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   21260 			then
   21261 				use_dlz_odbc=$d
   21262 				dlz_odbc_include="-I$use_dlz_odbc/include"
   21263 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   21264 				break
   21265 			fi
   21266 		done
   21267 	fi
   21268 fi
   21269 
   21270 case "$use_dlz_odbc" in
   21271 	no)
   21272 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21273 $as_echo "no" >&6; }
   21274 		;;
   21275 	yes)
   21276 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21277 $as_echo "not found" >&6; }
   21278 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   21279 		;;
   21280 	*)
   21281 
   21282 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   21283 	for i in dlz_odbc_driver
   21284 	do
   21285 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21286 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21287 	done
   21288 	if test -n "$dlz_odbc_include"
   21289 	then
   21290 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   21291 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   21292 	fi
   21293 	if test -n "$dlz_odbc_libs"
   21294 	then
   21295 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   21296 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   21297 	fi
   21298 
   21299 
   21300 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   21301 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   21302 		;;
   21303 esac
   21304 
   21305 
   21306 #
   21307 # Was --with-dlz-stub specified?
   21308 #
   21309 
   21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   21311 $as_echo_n "checking for stub DLZ driver... " >&6; }
   21312 
   21313 # Check whether --with-dlz_stub was given.
   21314 if test "${with_dlz_stub+set}" = set; then :
   21315   withval=$with_dlz_stub; use_dlz_stub="$withval"
   21316 else
   21317   use_dlz_stub="no"
   21318 fi
   21319 
   21320 
   21321 case "$use_dlz_stub" in
   21322 	no)
   21323 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21324 $as_echo "no" >&6; }
   21325 		;;
   21326 	*)
   21327 
   21328 
   21329 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   21330 	for i in dlz_stub_driver
   21331 	do
   21332 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21333 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21334 	done
   21335 	if test -n ""
   21336 	then
   21337 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21338 		DLZ_DRIVER_STUB_INCLUDES=""
   21339 	fi
   21340 	if test -n ""
   21341 	then
   21342 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21343 		DLZ_DRIVER_STUB_LIBS=""
   21344 	fi
   21345 
   21346 
   21347 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21348 $as_echo "yes" >&6; }
   21349 		;;
   21350 esac
   21351 
   21352 # Add any additional DLZ drivers here.
   21353 
   21354 #
   21355 # Finally, some generic stuff that applies to all drivers, assuming
   21356 # we're compiling contrib DLZ drivers at all.
   21357 #
   21358 if test -n "$CONTRIB_DLZ"
   21359 then
   21360 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   21361 
   21362 	#
   21363 	# Where to find DLZ driver header files.
   21364 	#
   21365 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   21366 
   21367 	#
   21368 	# Initialization and shutdown wrappers, helper functions.
   21369 	#
   21370 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   21371 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   21372 fi
   21373 
   21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   21375 $as_echo_n "checking contributed DLZ drivers... " >&6; }
   21376 
   21377 if test -n "$CONTRIB_DLZ"
   21378 then
   21379 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21380 $as_echo "yes" >&6; }
   21381 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   21382 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   21383 
   21384 else
   21385 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21386 $as_echo "no" >&6; }
   21387 	DLZ_DRIVER_RULES=/dev/null
   21388 fi
   21389 
   21390 
   21391 
   21392 
   21393 
   21394 
   21395 
   21396 
   21397 
   21398 
   21399 
   21400 if test "yes" = "$cross_compiling"; then
   21401 	if test -z "$BUILD_CC"; then
   21402 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   21403 	fi
   21404 	BUILD_CFLAGS="$BUILD_CFLAGS"
   21405 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   21406 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   21407 	BUILD_LIBS="$BUILD_LIBS"
   21408 else
   21409 	BUILD_CC="$CC"
   21410 	BUILD_CFLAGS="$CFLAGS"
   21411 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   21412 	BUILD_LDFLAGS="$LDFLAGS"
   21413 	BUILD_LIBS="$LIBS"
   21414 fi
   21415 
   21416 NEWFLAGS=""
   21417 for e in $BUILD_LDFLAGS ; do
   21418     case $e in
   21419 	-L*)
   21420 	    case $host_os in
   21421 		netbsd*)
   21422 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21423 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21424 		    ;;
   21425 		freebsd*)
   21426 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21427 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21428 		    ;;
   21429 		solaris*)
   21430 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21431 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21432 		    ;;
   21433 		*)
   21434 		    NEWFLAGS="$NEWFLAGS $e"
   21435 		    ;;
   21436 		esac
   21437 	    ;;
   21438 	*)
   21439 	    NEWFLAGS="$NEWFLAGS $e"
   21440 	    ;;
   21441     esac
   21442 done
   21443 BUILD_LDFLAGS="$NEWFLAGS"
   21444 
   21445 NEWFLAGS=""
   21446 for e in $DNS_GSSAPI_LIBS ; do
   21447     case $e in
   21448 	-L*)
   21449 	    case $host_os in
   21450 		netbsd*)
   21451 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21452 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21453 		    ;;
   21454 		freebsd*)
   21455 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21456 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21457 		    ;;
   21458 		solaris*)
   21459 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21460 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21461 		    ;;
   21462 		*)
   21463 		    NEWFLAGS="$NEWFLAGS $e"
   21464 		    ;;
   21465 		esac
   21466 	    ;;
   21467 	*)
   21468 	    NEWFLAGS="$NEWFLAGS $e"
   21469 	    ;;
   21470     esac
   21471 done
   21472 DNS_GSSAPI_LIBS="$NEWFLAGS"
   21473 
   21474 NEWFLAGS=""
   21475 for e in $ISC_OPENSSL_LIBS ; do
   21476     case $e in
   21477 	-L*)
   21478 	    case $host_os in
   21479 		netbsd*)
   21480 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21481 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21482 		    ;;
   21483 		freebsd*)
   21484 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21485 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21486 		    ;;
   21487 		solaris*)
   21488 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21489 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21490 		    ;;
   21491 		*)
   21492 		    NEWFLAGS="$NEWFLAGS $e"
   21493 		    ;;
   21494 		esac
   21495 	    ;;
   21496 	*)
   21497 	    NEWFLAGS="$NEWFLAGS $e"
   21498 	    ;;
   21499     esac
   21500 done
   21501 ISC_OPENSSL_LIBS="$NEWFLAGS"
   21502 
   21503 NEWFLAGS=""
   21504 for e in $DNS_CRYPTO_LIBS ; do
   21505     case $e in
   21506 	-L*)
   21507 	    case $host_os in
   21508 		netbsd*)
   21509 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21510 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21511 		    ;;
   21512 		freebsd*)
   21513 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21514 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21515 		    ;;
   21516 		solaris*)
   21517 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21518 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21519 		    ;;
   21520 		*)
   21521 		    NEWFLAGS="$NEWFLAGS $e"
   21522 		    ;;
   21523 		esac
   21524 	    ;;
   21525 	*)
   21526 	    NEWFLAGS="$NEWFLAGS $e"
   21527 	    ;;
   21528     esac
   21529 done
   21530 DNS_CRYPTO_LIBS="$NEWFLAGS"
   21531 
   21532 
   21533 
   21534 
   21535 
   21536 
   21537 
   21538 #
   21539 # Commands to run at the end of config.status.
   21540 # Don't just put these into configure, it won't work right if somebody
   21541 # runs config.status directly (which autoconf allows).
   21542 #
   21543 
   21544 ac_config_commands="$ac_config_commands chmod"
   21545 
   21546 
   21547 #
   21548 # Files to configure.  These are listed here because we used to
   21549 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   21550 # elsewhere if there's a good reason for doing so.
   21551 #
   21552 
   21553 ac_config_files="$ac_config_files make/Makefile make/mkdep 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/isc/Makefile bin/python/isc/utils.py bin/python/isc/tests/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py 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/dnskey_test.py bin/python/isc/tests/policy_test.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/dlz/prereq.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/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh 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 isc-config.sh 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/pthreads/Makefile lib/isc/pthreads/include/Makefile lib/isc/pthreads/include/isc/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/tests/Makefile lib/isc/nls/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/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 unit/unittest.sh fuzz/Makefile"
   21554 
   21555 
   21556 #
   21557 # Do it
   21558 #
   21559 
   21560 cat >confcache <<\_ACEOF
   21561 # This file is a shell script that caches the results of configure
   21562 # tests run on this system so they can be shared between configure
   21563 # scripts and configure runs, see configure's option --config-cache.
   21564 # It is not useful on other systems.  If it contains results you don't
   21565 # want to keep, you may remove or edit it.
   21566 #
   21567 # config.status only pays attention to the cache file if you give it
   21568 # the --recheck option to rerun configure.
   21569 #
   21570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   21571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21572 # following values.
   21573 
   21574 _ACEOF
   21575 
   21576 # The following way of writing the cache mishandles newlines in values,
   21577 # but we know of no workaround that is simple, portable, and efficient.
   21578 # So, we kill variables containing newlines.
   21579 # Ultrix sh set writes to stderr and can't be redirected directly,
   21580 # and sets the high bit in the cache file unless we assign to the vars.
   21581 (
   21582   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   21583     eval ac_val=\$$ac_var
   21584     case $ac_val in #(
   21585     *${as_nl}*)
   21586       case $ac_var in #(
   21587       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   21588 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   21589       esac
   21590       case $ac_var in #(
   21591       _ | IFS | as_nl) ;; #(
   21592       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   21593       *) { eval $ac_var=; unset $ac_var;} ;;
   21594       esac ;;
   21595     esac
   21596   done
   21597 
   21598   (set) 2>&1 |
   21599     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   21600     *${as_nl}ac_space=\ *)
   21601       # `set' does not quote correctly, so add quotes: double-quote
   21602       # substitution turns \\\\ into \\, and sed turns \\ into \.
   21603       sed -n \
   21604 	"s/'/'\\\\''/g;
   21605 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   21606       ;; #(
   21607     *)
   21608       # `set' quotes correctly as required by POSIX, so do not add quotes.
   21609       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   21610       ;;
   21611     esac |
   21612     sort
   21613 ) |
   21614   sed '
   21615      /^ac_cv_env_/b end
   21616      t clear
   21617      :clear
   21618      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   21619      t end
   21620      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   21621      :end' >>confcache
   21622 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   21623   if test -w "$cache_file"; then
   21624     if test "x$cache_file" != "x/dev/null"; then
   21625       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   21626 $as_echo "$as_me: updating cache $cache_file" >&6;}
   21627       if test ! -f "$cache_file" || test -h "$cache_file"; then
   21628 	cat confcache >"$cache_file"
   21629       else
   21630         case $cache_file in #(
   21631         */* | ?:*)
   21632 	  mv -f confcache "$cache_file"$$ &&
   21633 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   21634         *)
   21635 	  mv -f confcache "$cache_file" ;;
   21636 	esac
   21637       fi
   21638     fi
   21639   else
   21640     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   21641 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   21642   fi
   21643 fi
   21644 rm -f confcache
   21645 
   21646 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   21647 # Let make expand exec_prefix.
   21648 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   21649 
   21650 DEFS=-DHAVE_CONFIG_H
   21651 
   21652 ac_libobjs=
   21653 ac_ltlibobjs=
   21654 U=
   21655 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21656   # 1. Remove the extension, and $U if already installed.
   21657   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21658   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   21659   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21660   #    will be set to the directory where LIBOBJS objects are built.
   21661   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21662   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   21663 done
   21664 LIBOBJS=$ac_libobjs
   21665 
   21666 LTLIBOBJS=$ac_ltlibobjs
   21667 
   21668 
   21669 
   21670 
   21671 : "${CONFIG_STATUS=./config.status}"
   21672 ac_write_fail=0
   21673 ac_clean_files_save=$ac_clean_files
   21674 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   21676 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21677 as_write_fail=0
   21678 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   21679 #! $SHELL
   21680 # Generated by $as_me.
   21681 # Run this file to recreate the current configuration.
   21682 # Compiler output produced by configure, useful for debugging
   21683 # configure, is in config.log if it exists.
   21684 
   21685 debug=false
   21686 ac_cs_recheck=false
   21687 ac_cs_silent=false
   21688 
   21689 SHELL=\${CONFIG_SHELL-$SHELL}
   21690 export SHELL
   21691 _ASEOF
   21692 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   21693 ## -------------------- ##
   21694 ## M4sh Initialization. ##
   21695 ## -------------------- ##
   21696 
   21697 # Be more Bourne compatible
   21698 DUALCASE=1; export DUALCASE # for MKS sh
   21699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   21700   emulate sh
   21701   NULLCMD=:
   21702   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21703   # is contrary to our usage.  Disable this feature.
   21704   alias -g '${1+"$@"}'='"$@"'
   21705   setopt NO_GLOB_SUBST
   21706 else
   21707   case `(set -o) 2>/dev/null` in #(
   21708   *posix*) :
   21709     set -o posix ;; #(
   21710   *) :
   21711      ;;
   21712 esac
   21713 fi
   21714 
   21715 
   21716 as_nl='
   21717 '
   21718 export as_nl
   21719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   21720 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   21721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   21722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   21723 # Prefer a ksh shell builtin over an external printf program on Solaris,
   21724 # but without wasting forks for bash or zsh.
   21725 if test -z "$BASH_VERSION$ZSH_VERSION" \
   21726     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   21727   as_echo='print -r --'
   21728   as_echo_n='print -rn --'
   21729 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   21730   as_echo='printf %s\n'
   21731   as_echo_n='printf %s'
   21732 else
   21733   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   21734     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   21735     as_echo_n='/usr/ucb/echo -n'
   21736   else
   21737     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   21738     as_echo_n_body='eval
   21739       arg=$1;
   21740       case $arg in #(
   21741       *"$as_nl"*)
   21742 	expr "X$arg" : "X\\(.*\\)$as_nl";
   21743 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   21744       esac;
   21745       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   21746     '
   21747     export as_echo_n_body
   21748     as_echo_n='sh -c $as_echo_n_body as_echo'
   21749   fi
   21750   export as_echo_body
   21751   as_echo='sh -c $as_echo_body as_echo'
   21752 fi
   21753 
   21754 # The user is always right.
   21755 if test "${PATH_SEPARATOR+set}" != set; then
   21756   PATH_SEPARATOR=:
   21757   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   21758     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   21759       PATH_SEPARATOR=';'
   21760   }
   21761 fi
   21762 
   21763 
   21764 # IFS
   21765 # We need space, tab and new line, in precisely that order.  Quoting is
   21766 # there to prevent editors from complaining about space-tab.
   21767 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21768 # splitting by setting IFS to empty value.)
   21769 IFS=" ""	$as_nl"
   21770 
   21771 # Find who we are.  Look in the path if we contain no directory separator.
   21772 as_myself=
   21773 case $0 in #((
   21774   *[\\/]* ) as_myself=$0 ;;
   21775   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21776 for as_dir in $PATH
   21777 do
   21778   IFS=$as_save_IFS
   21779   test -z "$as_dir" && as_dir=.
   21780     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21781   done
   21782 IFS=$as_save_IFS
   21783 
   21784      ;;
   21785 esac
   21786 # We did not find ourselves, most probably we were run as `sh COMMAND'
   21787 # in which case we are not to be found in the path.
   21788 if test "x$as_myself" = x; then
   21789   as_myself=$0
   21790 fi
   21791 if test ! -f "$as_myself"; then
   21792   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21793   exit 1
   21794 fi
   21795 
   21796 # Unset variables that we do not need and which cause bugs (e.g. in
   21797 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   21798 # suppresses any "Segmentation fault" message there.  '((' could
   21799 # trigger a bug in pdksh 5.2.14.
   21800 for as_var in BASH_ENV ENV MAIL MAILPATH
   21801 do eval test x\${$as_var+set} = xset \
   21802   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   21803 done
   21804 PS1='$ '
   21805 PS2='> '
   21806 PS4='+ '
   21807 
   21808 # NLS nuisances.
   21809 LC_ALL=C
   21810 export LC_ALL
   21811 LANGUAGE=C
   21812 export LANGUAGE
   21813 
   21814 # CDPATH.
   21815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   21816 
   21817 
   21818 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   21819 # ----------------------------------------
   21820 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   21821 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   21822 # script with STATUS, using 1 if that was 0.
   21823 as_fn_error ()
   21824 {
   21825   as_status=$1; test $as_status -eq 0 && as_status=1
   21826   if test "$4"; then
   21827     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   21828     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   21829   fi
   21830   $as_echo "$as_me: error: $2" >&2
   21831   as_fn_exit $as_status
   21832 } # as_fn_error
   21833 
   21834 
   21835 # as_fn_set_status STATUS
   21836 # -----------------------
   21837 # Set $? to STATUS, without forking.
   21838 as_fn_set_status ()
   21839 {
   21840   return $1
   21841 } # as_fn_set_status
   21842 
   21843 # as_fn_exit STATUS
   21844 # -----------------
   21845 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   21846 as_fn_exit ()
   21847 {
   21848   set +e
   21849   as_fn_set_status $1
   21850   exit $1
   21851 } # as_fn_exit
   21852 
   21853 # as_fn_unset VAR
   21854 # ---------------
   21855 # Portably unset VAR.
   21856 as_fn_unset ()
   21857 {
   21858   { eval $1=; unset $1;}
   21859 }
   21860 as_unset=as_fn_unset
   21861 # as_fn_append VAR VALUE
   21862 # ----------------------
   21863 # Append the text in VALUE to the end of the definition contained in VAR. Take
   21864 # advantage of any shell optimizations that allow amortized linear growth over
   21865 # repeated appends, instead of the typical quadratic growth present in naive
   21866 # implementations.
   21867 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   21868   eval 'as_fn_append ()
   21869   {
   21870     eval $1+=\$2
   21871   }'
   21872 else
   21873   as_fn_append ()
   21874   {
   21875     eval $1=\$$1\$2
   21876   }
   21877 fi # as_fn_append
   21878 
   21879 # as_fn_arith ARG...
   21880 # ------------------
   21881 # Perform arithmetic evaluation on the ARGs, and store the result in the
   21882 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   21883 # must be portable across $(()) and expr.
   21884 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   21885   eval 'as_fn_arith ()
   21886   {
   21887     as_val=$(( $* ))
   21888   }'
   21889 else
   21890   as_fn_arith ()
   21891   {
   21892     as_val=`expr "$@" || test $? -eq 1`
   21893   }
   21894 fi # as_fn_arith
   21895 
   21896 
   21897 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21898    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21899   as_expr=expr
   21900 else
   21901   as_expr=false
   21902 fi
   21903 
   21904 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21905   as_basename=basename
   21906 else
   21907   as_basename=false
   21908 fi
   21909 
   21910 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21911   as_dirname=dirname
   21912 else
   21913   as_dirname=false
   21914 fi
   21915 
   21916 as_me=`$as_basename -- "$0" ||
   21917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21918 	 X"$0" : 'X\(//\)$' \| \
   21919 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21920 $as_echo X/"$0" |
   21921     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21922 	    s//\1/
   21923 	    q
   21924 	  }
   21925 	  /^X\/\(\/\/\)$/{
   21926 	    s//\1/
   21927 	    q
   21928 	  }
   21929 	  /^X\/\(\/\).*/{
   21930 	    s//\1/
   21931 	    q
   21932 	  }
   21933 	  s/.*/./; q'`
   21934 
   21935 # Avoid depending upon Character Ranges.
   21936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21939 as_cr_digits='0123456789'
   21940 as_cr_alnum=$as_cr_Letters$as_cr_digits
   21941 
   21942 ECHO_C= ECHO_N= ECHO_T=
   21943 case `echo -n x` in #(((((
   21944 -n*)
   21945   case `echo 'xy\c'` in
   21946   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21947   xy)  ECHO_C='\c';;
   21948   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   21949        ECHO_T='	';;
   21950   esac;;
   21951 *)
   21952   ECHO_N='-n';;
   21953 esac
   21954 
   21955 rm -f conf$$ conf$$.exe conf$$.file
   21956 if test -d conf$$.dir; then
   21957   rm -f conf$$.dir/conf$$.file
   21958 else
   21959   rm -f conf$$.dir
   21960   mkdir conf$$.dir 2>/dev/null
   21961 fi
   21962 if (echo >conf$$.file) 2>/dev/null; then
   21963   if ln -s conf$$.file conf$$ 2>/dev/null; then
   21964     as_ln_s='ln -s'
   21965     # ... but there are two gotchas:
   21966     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21967     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21968     # In both cases, we have to default to `cp -pR'.
   21969     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21970       as_ln_s='cp -pR'
   21971   elif ln conf$$.file conf$$ 2>/dev/null; then
   21972     as_ln_s=ln
   21973   else
   21974     as_ln_s='cp -pR'
   21975   fi
   21976 else
   21977   as_ln_s='cp -pR'
   21978 fi
   21979 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21980 rmdir conf$$.dir 2>/dev/null
   21981 
   21982 
   21983 # as_fn_mkdir_p
   21984 # -------------
   21985 # Create "$as_dir" as a directory, including parents if necessary.
   21986 as_fn_mkdir_p ()
   21987 {
   21988 
   21989   case $as_dir in #(
   21990   -*) as_dir=./$as_dir;;
   21991   esac
   21992   test -d "$as_dir" || eval $as_mkdir_p || {
   21993     as_dirs=
   21994     while :; do
   21995       case $as_dir in #(
   21996       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   21997       *) as_qdir=$as_dir;;
   21998       esac
   21999       as_dirs="'$as_qdir' $as_dirs"
   22000       as_dir=`$as_dirname -- "$as_dir" ||
   22001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22002 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   22003 	 X"$as_dir" : 'X\(//\)$' \| \
   22004 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   22005 $as_echo X"$as_dir" |
   22006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22007 	    s//\1/
   22008 	    q
   22009 	  }
   22010 	  /^X\(\/\/\)[^/].*/{
   22011 	    s//\1/
   22012 	    q
   22013 	  }
   22014 	  /^X\(\/\/\)$/{
   22015 	    s//\1/
   22016 	    q
   22017 	  }
   22018 	  /^X\(\/\).*/{
   22019 	    s//\1/
   22020 	    q
   22021 	  }
   22022 	  s/.*/./; q'`
   22023       test -d "$as_dir" && break
   22024     done
   22025     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22026   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   22027 
   22028 
   22029 } # as_fn_mkdir_p
   22030 if mkdir -p . 2>/dev/null; then
   22031   as_mkdir_p='mkdir -p "$as_dir"'
   22032 else
   22033   test -d ./-p && rmdir ./-p
   22034   as_mkdir_p=false
   22035 fi
   22036 
   22037 
   22038 # as_fn_executable_p FILE
   22039 # -----------------------
   22040 # Test if FILE is an executable regular file.
   22041 as_fn_executable_p ()
   22042 {
   22043   test -f "$1" && test -x "$1"
   22044 } # as_fn_executable_p
   22045 as_test_x='test -x'
   22046 as_executable_p=as_fn_executable_p
   22047 
   22048 # Sed expression to map a string onto a valid CPP name.
   22049 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   22050 
   22051 # Sed expression to map a string onto a valid variable name.
   22052 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   22053 
   22054 
   22055 exec 6>&1
   22056 ## ----------------------------------- ##
   22057 ## Main body of $CONFIG_STATUS script. ##
   22058 ## ----------------------------------- ##
   22059 _ASEOF
   22060 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   22061 
   22062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22063 # Save the log message, to keep $0 and so on meaningful, and to
   22064 # report actual input values of CONFIG_FILES etc. instead of their
   22065 # values after options handling.
   22066 ac_log="
   22067 This file was extended by BIND $as_me 9.13, which was
   22068 generated by GNU Autoconf 2.69.  Invocation command line was
   22069 
   22070   CONFIG_FILES    = $CONFIG_FILES
   22071   CONFIG_HEADERS  = $CONFIG_HEADERS
   22072   CONFIG_LINKS    = $CONFIG_LINKS
   22073   CONFIG_COMMANDS = $CONFIG_COMMANDS
   22074   $ $0 $@
   22075 
   22076 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   22077 "
   22078 
   22079 _ACEOF
   22080 
   22081 case $ac_config_files in *"
   22082 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   22083 esac
   22084 
   22085 case $ac_config_headers in *"
   22086 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   22087 esac
   22088 
   22089 
   22090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22091 # Files that config.status was made for.
   22092 config_files="$ac_config_files"
   22093 config_headers="$ac_config_headers"
   22094 config_commands="$ac_config_commands"
   22095 
   22096 _ACEOF
   22097 
   22098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22099 ac_cs_usage="\
   22100 \`$as_me' instantiates files and other configuration actions
   22101 from templates according to the current configuration.  Unless the files
   22102 and actions are specified as TAGs, all are instantiated by default.
   22103 
   22104 Usage: $0 [OPTION]... [TAG]...
   22105 
   22106   -h, --help       print this help, then exit
   22107   -V, --version    print version number and configuration settings, then exit
   22108       --config     print configuration, then exit
   22109   -q, --quiet, --silent
   22110                    do not print progress messages
   22111   -d, --debug      don't remove temporary files
   22112       --recheck    update $as_me by reconfiguring in the same conditions
   22113       --file=FILE[:TEMPLATE]
   22114                    instantiate the configuration file FILE
   22115       --header=FILE[:TEMPLATE]
   22116                    instantiate the configuration header FILE
   22117 
   22118 Configuration files:
   22119 $config_files
   22120 
   22121 Configuration headers:
   22122 $config_headers
   22123 
   22124 Configuration commands:
   22125 $config_commands
   22126 
   22127 Report bugs to <info@isc.org>.
   22128 BIND home page: <https://www.isc.org/downloads/BIND/>."
   22129 
   22130 _ACEOF
   22131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22132 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   22133 ac_cs_version="\\
   22134 BIND config.status 9.13
   22135 configured by $0, generated by GNU Autoconf 2.69,
   22136   with options \\"\$ac_cs_config\\"
   22137 
   22138 Copyright (C) 2012 Free Software Foundation, Inc.
   22139 This config.status script is free software; the Free Software Foundation
   22140 gives unlimited permission to copy, distribute and modify it."
   22141 
   22142 ac_pwd='$ac_pwd'
   22143 srcdir='$srcdir'
   22144 INSTALL='$INSTALL'
   22145 AWK='$AWK'
   22146 test -n "\$AWK" || AWK=awk
   22147 _ACEOF
   22148 
   22149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22150 # The default lists apply if the user does not specify any file.
   22151 ac_need_defaults=:
   22152 while test $# != 0
   22153 do
   22154   case $1 in
   22155   --*=?*)
   22156     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22157     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   22158     ac_shift=:
   22159     ;;
   22160   --*=)
   22161     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22162     ac_optarg=
   22163     ac_shift=:
   22164     ;;
   22165   *)
   22166     ac_option=$1
   22167     ac_optarg=$2
   22168     ac_shift=shift
   22169     ;;
   22170   esac
   22171 
   22172   case $ac_option in
   22173   # Handling of the options.
   22174   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   22175     ac_cs_recheck=: ;;
   22176   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   22177     $as_echo "$ac_cs_version"; exit ;;
   22178   --config | --confi | --conf | --con | --co | --c )
   22179     $as_echo "$ac_cs_config"; exit ;;
   22180   --debug | --debu | --deb | --de | --d | -d )
   22181     debug=: ;;
   22182   --file | --fil | --fi | --f )
   22183     $ac_shift
   22184     case $ac_optarg in
   22185     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22186     '') as_fn_error $? "missing file argument" ;;
   22187     esac
   22188     as_fn_append CONFIG_FILES " '$ac_optarg'"
   22189     ac_need_defaults=false;;
   22190   --header | --heade | --head | --hea )
   22191     $ac_shift
   22192     case $ac_optarg in
   22193     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22194     esac
   22195     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   22196     ac_need_defaults=false;;
   22197   --he | --h)
   22198     # Conflict between --help and --header
   22199     as_fn_error $? "ambiguous option: \`$1'
   22200 Try \`$0 --help' for more information.";;
   22201   --help | --hel | -h )
   22202     $as_echo "$ac_cs_usage"; exit ;;
   22203   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   22204   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   22205     ac_cs_silent=: ;;
   22206 
   22207   # This is an error.
   22208   -*) as_fn_error $? "unrecognized option: \`$1'
   22209 Try \`$0 --help' for more information." ;;
   22210 
   22211   *) as_fn_append ac_config_targets " $1"
   22212      ac_need_defaults=false ;;
   22213 
   22214   esac
   22215   shift
   22216 done
   22217 
   22218 ac_configure_extra_args=
   22219 
   22220 if $ac_cs_silent; then
   22221   exec 6>/dev/null
   22222   ac_configure_extra_args="$ac_configure_extra_args --silent"
   22223 fi
   22224 
   22225 _ACEOF
   22226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22227 if \$ac_cs_recheck; then
   22228   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   22229   shift
   22230   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   22231   CONFIG_SHELL='$SHELL'
   22232   export CONFIG_SHELL
   22233   exec "\$@"
   22234 fi
   22235 
   22236 _ACEOF
   22237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22238 exec 5>>config.log
   22239 {
   22240   echo
   22241   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   22242 ## Running $as_me. ##
   22243 _ASBOX
   22244   $as_echo "$ac_log"
   22245 } >&5
   22246 
   22247 _ACEOF
   22248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22249 #
   22250 # INIT-COMMANDS
   22251 #
   22252 
   22253 
   22254 # The HP-UX ksh and POSIX shell print the target directory to stdout
   22255 # if CDPATH is set.
   22256 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   22257 
   22258 sed_quote_subst='$sed_quote_subst'
   22259 double_quote_subst='$double_quote_subst'
   22260 delay_variable_subst='$delay_variable_subst'
   22261 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   22262 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   22263 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   22264 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   22265 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   22266 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   22267 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   22268 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   22269 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   22270 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   22271 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   22272 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   22273 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   22274 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   22275 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   22276 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   22277 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   22278 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   22279 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   22280 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   22281 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   22282 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   22283 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   22284 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   22285 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   22286 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   22287 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   22288 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   22289 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   22290 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   22291 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   22292 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   22293 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   22294 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   22295 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   22296 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   22297 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   22298 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   22299 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   22300 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   22301 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   22302 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   22303 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   22304 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   22305 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   22306 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   22307 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22308 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22309 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   22310 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   22311 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   22312 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   22313 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   22314 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   22315 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   22316 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   22317 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   22318 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   22319 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"`'
   22320 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   22321 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   22322 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   22323 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   22324 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   22325 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   22326 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   22327 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   22328 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   22329 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   22330 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   22331 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   22332 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   22333 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   22334 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   22335 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   22336 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   22337 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   22338 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   22339 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   22340 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22341 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   22342 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   22343 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   22344 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   22345 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   22346 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   22347 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22348 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   22349 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22350 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   22351 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22352 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   22353 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22354 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22355 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   22356 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   22357 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   22358 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   22359 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   22360 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22361 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   22362 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   22363 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   22364 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   22365 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   22366 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   22367 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   22368 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   22369 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   22370 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   22371 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   22372 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   22373 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   22374 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   22375 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   22376 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22377 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   22378 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   22379 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   22380 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   22381 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   22382 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22383 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22384 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   22385 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   22386 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   22387 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   22388 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   22389 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   22390 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   22391 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   22392 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   22393 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   22394 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   22395 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   22396 
   22397 LTCC='$LTCC'
   22398 LTCFLAGS='$LTCFLAGS'
   22399 compiler='$compiler_DEFAULT'
   22400 
   22401 # A function that is used when there is no print builtin or printf.
   22402 func_fallback_echo ()
   22403 {
   22404   eval 'cat <<_LTECHO_EOF
   22405 \$1
   22406 _LTECHO_EOF'
   22407 }
   22408 
   22409 # Quote evaled strings.
   22410 for var in SHELL \
   22411 ECHO \
   22412 PATH_SEPARATOR \
   22413 SED \
   22414 GREP \
   22415 EGREP \
   22416 FGREP \
   22417 LD \
   22418 NM \
   22419 LN_S \
   22420 lt_SP2NL \
   22421 lt_NL2SP \
   22422 reload_flag \
   22423 OBJDUMP \
   22424 deplibs_check_method \
   22425 file_magic_cmd \
   22426 file_magic_glob \
   22427 want_nocaseglob \
   22428 DLLTOOL \
   22429 sharedlib_from_linklib_cmd \
   22430 AR \
   22431 AR_FLAGS \
   22432 archiver_list_spec \
   22433 STRIP \
   22434 RANLIB \
   22435 CC \
   22436 CFLAGS \
   22437 compiler \
   22438 lt_cv_sys_global_symbol_pipe \
   22439 lt_cv_sys_global_symbol_to_cdecl \
   22440 lt_cv_sys_global_symbol_to_import \
   22441 lt_cv_sys_global_symbol_to_c_name_address \
   22442 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   22443 lt_cv_nm_interface \
   22444 nm_file_list_spec \
   22445 lt_cv_truncate_bin \
   22446 lt_prog_compiler_no_builtin_flag \
   22447 lt_prog_compiler_pic \
   22448 lt_prog_compiler_wl \
   22449 lt_prog_compiler_static \
   22450 lt_cv_prog_compiler_c_o \
   22451 need_locks \
   22452 MANIFEST_TOOL \
   22453 DSYMUTIL \
   22454 NMEDIT \
   22455 LIPO \
   22456 OTOOL \
   22457 OTOOL64 \
   22458 shrext_cmds \
   22459 export_dynamic_flag_spec \
   22460 whole_archive_flag_spec \
   22461 compiler_needs_object \
   22462 with_gnu_ld \
   22463 allow_undefined_flag \
   22464 no_undefined_flag \
   22465 hardcode_libdir_flag_spec \
   22466 hardcode_libdir_separator \
   22467 exclude_expsyms \
   22468 include_expsyms \
   22469 file_list_spec \
   22470 variables_saved_for_relink \
   22471 libname_spec \
   22472 library_names_spec \
   22473 soname_spec \
   22474 install_override_mode \
   22475 finish_eval \
   22476 old_striplib \
   22477 striplib; do
   22478     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22479     *[\\\\\\\`\\"\\\$]*)
   22480       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22481       ;;
   22482     *)
   22483       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22484       ;;
   22485     esac
   22486 done
   22487 
   22488 # Double-quote double-evaled strings.
   22489 for var in reload_cmds \
   22490 old_postinstall_cmds \
   22491 old_postuninstall_cmds \
   22492 old_archive_cmds \
   22493 extract_expsyms_cmds \
   22494 old_archive_from_new_cmds \
   22495 old_archive_from_expsyms_cmds \
   22496 archive_cmds \
   22497 archive_expsym_cmds \
   22498 module_cmds \
   22499 module_expsym_cmds \
   22500 export_symbols_cmds \
   22501 prelink_cmds \
   22502 postlink_cmds \
   22503 postinstall_cmds \
   22504 postuninstall_cmds \
   22505 finish_cmds \
   22506 sys_lib_search_path_spec \
   22507 configure_time_dlsearch_path \
   22508 configure_time_lt_sys_library_path; do
   22509     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22510     *[\\\\\\\`\\"\\\$]*)
   22511       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22512       ;;
   22513     *)
   22514       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22515       ;;
   22516     esac
   22517 done
   22518 
   22519 ac_aux_dir='$ac_aux_dir'
   22520 
   22521 # See if we are running on zsh, and set the options that allow our
   22522 # commands through without removal of \ escapes INIT.
   22523 if test -n "\${ZSH_VERSION+set}"; then
   22524    setopt NO_GLOB_SUBST
   22525 fi
   22526 
   22527 
   22528     PACKAGE='$PACKAGE'
   22529     VERSION='$VERSION'
   22530     RM='$RM'
   22531     ofile='$ofile'
   22532 
   22533 
   22534 
   22535 
   22536 _ACEOF
   22537 
   22538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22539 
   22540 # Handling of arguments.
   22541 for ac_config_target in $ac_config_targets
   22542 do
   22543   case $ac_config_target in
   22544     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   22545     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   22546     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   22547     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   22548     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   22549     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   22550     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   22551     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   22552     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   22553     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   22554     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   22555     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   22556     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   22557     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   22558     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   22559     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   22560     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   22561     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   22562     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   22563     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   22564     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   22565     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   22566     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   22567     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   22568     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   22569     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   22570     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   22571     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   22572     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   22573     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   22574     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   22575     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   22576     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   22577     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   22578     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   22579     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   22580     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   22581     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   22582     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   22583     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   22584     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   22585     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   22586     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   22587     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   22588     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   22589     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   22590     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   22591     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   22592     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   22593     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   22594     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   22595     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   22596     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   22597     "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;;
   22598     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   22599     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   22600     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   22601     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   22602     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   22603     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   22604     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   22605     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   22606     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   22607     "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
   22608     "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
   22609     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   22610     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   22611     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   22612     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   22613     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   22614     "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
   22615     "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
   22616     "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
   22617     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   22618     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   22619     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   22620     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   22621     "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
   22622     "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
   22623     "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
   22624     "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
   22625     "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
   22626     "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
   22627     "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
   22628     "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
   22629     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   22630     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   22631     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   22632     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   22633     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   22634     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   22635     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   22636     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   22637     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   22638     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   22639     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   22640     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   22641     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   22642     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   22643     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   22644     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   22645     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   22646     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   22647     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   22648     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   22649     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   22650     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   22651     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   22652     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   22653     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   22654     "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
   22655     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   22656     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   22657     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   22658     "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
   22659     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   22660     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   22661     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   22662     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   22663     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   22664     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   22665     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   22666     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   22667     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   22668     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   22669     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   22670     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   22671     "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
   22672     "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
   22673     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   22674     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   22675 
   22676   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   22677   esac
   22678 done
   22679 
   22680 
   22681 # If the user did not use the arguments to specify the items to instantiate,
   22682 # then the envvar interface is used.  Set only those that are not.
   22683 # We use the long form for the default assignment because of an extremely
   22684 # bizarre bug on SunOS 4.1.3.
   22685 if $ac_need_defaults; then
   22686   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   22687   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   22688   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   22689 fi
   22690 
   22691 # Have a temporary directory for convenience.  Make it in the build tree
   22692 # simply because there is no reason against having it here, and in addition,
   22693 # creating and moving files from /tmp can sometimes cause problems.
   22694 # Hook for its removal unless debugging.
   22695 # Note that there is a small window in which the directory will not be cleaned:
   22696 # after its creation but before its name has been assigned to `$tmp'.
   22697 $debug ||
   22698 {
   22699   tmp= ac_tmp=
   22700   trap 'exit_status=$?
   22701   : "${ac_tmp:=$tmp}"
   22702   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   22703 ' 0
   22704   trap 'as_fn_exit 1' 1 2 13 15
   22705 }
   22706 # Create a (secure) tmp directory for tmp files.
   22707 
   22708 {
   22709   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   22710   test -d "$tmp"
   22711 }  ||
   22712 {
   22713   tmp=./conf$$-$RANDOM
   22714   (umask 077 && mkdir "$tmp")
   22715 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   22716 ac_tmp=$tmp
   22717 
   22718 # Set up the scripts for CONFIG_FILES section.
   22719 # No need to generate them if there are no CONFIG_FILES.
   22720 # This happens for instance with `./config.status config.h'.
   22721 if test -n "$CONFIG_FILES"; then
   22722 
   22723 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   22724   ac_cs_awk_getline=:
   22725   ac_cs_awk_pipe_init=
   22726   ac_cs_awk_read_file='
   22727       while ((getline aline < (F[key])) > 0)
   22728 	print(aline)
   22729       close(F[key])'
   22730   ac_cs_awk_pipe_fini=
   22731 else
   22732   ac_cs_awk_getline=false
   22733   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   22734   ac_cs_awk_read_file='
   22735       print "|#_!!_#|"
   22736       print "cat " F[key] " &&"
   22737       '$ac_cs_awk_pipe_init
   22738   # The final `:' finishes the AND list.
   22739   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   22740 fi
   22741 ac_cr=`echo X | tr X '\015'`
   22742 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   22743 # But we know of no other shell where ac_cr would be empty at this
   22744 # point, so we can use a bashism as a fallback.
   22745 if test "x$ac_cr" = x; then
   22746   eval ac_cr=\$\'\\r\'
   22747 fi
   22748 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   22749 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   22750   ac_cs_awk_cr='\\r'
   22751 else
   22752   ac_cs_awk_cr=$ac_cr
   22753 fi
   22754 
   22755 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   22756 _ACEOF
   22757 
   22758 # Create commands to substitute file output variables.
   22759 {
   22760   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   22761   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   22762   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   22763   echo "_ACAWK" &&
   22764   echo "_ACEOF"
   22765 } >conf$$files.sh &&
   22766 . ./conf$$files.sh ||
   22767   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22768 rm -f conf$$files.sh
   22769 
   22770 {
   22771   echo "cat >conf$$subs.awk <<_ACEOF" &&
   22772   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   22773   echo "_ACEOF"
   22774 } >conf$$subs.sh ||
   22775   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22776 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   22777 ac_delim='%!_!# '
   22778 for ac_last_try in false false false false false :; do
   22779   . ./conf$$subs.sh ||
   22780     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22781 
   22782   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   22783   if test $ac_delim_n = $ac_delim_num; then
   22784     break
   22785   elif $ac_last_try; then
   22786     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22787   else
   22788     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22789   fi
   22790 done
   22791 rm -f conf$$subs.sh
   22792 
   22793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22794 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   22795 _ACEOF
   22796 sed -n '
   22797 h
   22798 s/^/S["/; s/!.*/"]=/
   22799 p
   22800 g
   22801 s/^[^!]*!//
   22802 :repl
   22803 t repl
   22804 s/'"$ac_delim"'$//
   22805 t delim
   22806 :nl
   22807 h
   22808 s/\(.\{148\}\)..*/\1/
   22809 t more1
   22810 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   22811 p
   22812 n
   22813 b repl
   22814 :more1
   22815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22816 p
   22817 g
   22818 s/.\{148\}//
   22819 t nl
   22820 :delim
   22821 h
   22822 s/\(.\{148\}\)..*/\1/
   22823 t more2
   22824 s/["\\]/\\&/g; s/^/"/; s/$/"/
   22825 p
   22826 b
   22827 :more2
   22828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22829 p
   22830 g
   22831 s/.\{148\}//
   22832 t delim
   22833 ' <conf$$subs.awk | sed '
   22834 /^[^""]/{
   22835   N
   22836   s/\n//
   22837 }
   22838 ' >>$CONFIG_STATUS || ac_write_fail=1
   22839 rm -f conf$$subs.awk
   22840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22841 _ACAWK
   22842 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   22843   for (key in S) S_is_set[key] = 1
   22844   FS = ""
   22845   \$ac_cs_awk_pipe_init
   22846 }
   22847 {
   22848   line = $ 0
   22849   nfields = split(line, field, "@")
   22850   substed = 0
   22851   len = length(field[1])
   22852   for (i = 2; i < nfields; i++) {
   22853     key = field[i]
   22854     keylen = length(key)
   22855     if (S_is_set[key]) {
   22856       value = S[key]
   22857       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   22858       len += length(value) + length(field[++i])
   22859       substed = 1
   22860     } else
   22861       len += 1 + keylen
   22862   }
   22863   if (nfields == 3 && !substed) {
   22864     key = field[2]
   22865     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   22866       \$ac_cs_awk_read_file
   22867       next
   22868     }
   22869   }
   22870   print line
   22871 }
   22872 \$ac_cs_awk_pipe_fini
   22873 _ACAWK
   22874 _ACEOF
   22875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22876 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   22877   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   22878 else
   22879   cat
   22880 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   22881   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   22882 _ACEOF
   22883 
   22884 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   22885 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   22886 # trailing colons and then remove the whole line if VPATH becomes empty
   22887 # (actually we leave an empty line to preserve line numbers).
   22888 if test "x$srcdir" = x.; then
   22889   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   22890 h
   22891 s///
   22892 s/^/:/
   22893 s/[	 ]*$/:/
   22894 s/:\$(srcdir):/:/g
   22895 s/:\${srcdir}:/:/g
   22896 s/:@srcdir@:/:/g
   22897 s/^:*//
   22898 s/:*$//
   22899 x
   22900 s/\(=[	 ]*\).*/\1/
   22901 G
   22902 s/\n//
   22903 s/^[^=]*=[	 ]*$//
   22904 }'
   22905 fi
   22906 
   22907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22908 fi # test -n "$CONFIG_FILES"
   22909 
   22910 # Set up the scripts for CONFIG_HEADERS section.
   22911 # No need to generate them if there are no CONFIG_HEADERS.
   22912 # This happens for instance with `./config.status Makefile'.
   22913 if test -n "$CONFIG_HEADERS"; then
   22914 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   22915 BEGIN {
   22916 _ACEOF
   22917 
   22918 # Transform confdefs.h into an awk script `defines.awk', embedded as
   22919 # here-document in config.status, that substitutes the proper values into
   22920 # config.h.in to produce config.h.
   22921 
   22922 # Create a delimiter string that does not exist in confdefs.h, to ease
   22923 # handling of long lines.
   22924 ac_delim='%!_!# '
   22925 for ac_last_try in false false :; do
   22926   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   22927   if test -z "$ac_tt"; then
   22928     break
   22929   elif $ac_last_try; then
   22930     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   22931   else
   22932     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22933   fi
   22934 done
   22935 
   22936 # For the awk script, D is an array of macro values keyed by name,
   22937 # likewise P contains macro parameters if any.  Preserve backslash
   22938 # newline sequences.
   22939 
   22940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   22941 sed -n '
   22942 s/.\{148\}/&'"$ac_delim"'/g
   22943 t rset
   22944 :rset
   22945 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   22946 t def
   22947 d
   22948 :def
   22949 s/\\$//
   22950 t bsnl
   22951 s/["\\]/\\&/g
   22952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22953 D["\1"]=" \3"/p
   22954 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   22955 d
   22956 :bsnl
   22957 s/["\\]/\\&/g
   22958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22959 D["\1"]=" \3\\\\\\n"\\/p
   22960 t cont
   22961 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   22962 t cont
   22963 d
   22964 :cont
   22965 n
   22966 s/.\{148\}/&'"$ac_delim"'/g
   22967 t clear
   22968 :clear
   22969 s/\\$//
   22970 t bsnlc
   22971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   22972 d
   22973 :bsnlc
   22974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   22975 b cont
   22976 ' <confdefs.h | sed '
   22977 s/'"$ac_delim"'/"\\\
   22978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   22979 
   22980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22981   for (key in D) D_is_set[key] = 1
   22982   FS = ""
   22983 }
   22984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   22985   line = \$ 0
   22986   split(line, arg, " ")
   22987   if (arg[1] == "#") {
   22988     defundef = arg[2]
   22989     mac1 = arg[3]
   22990   } else {
   22991     defundef = substr(arg[1], 2)
   22992     mac1 = arg[2]
   22993   }
   22994   split(mac1, mac2, "(") #)
   22995   macro = mac2[1]
   22996   prefix = substr(line, 1, index(line, defundef) - 1)
   22997   if (D_is_set[macro]) {
   22998     # Preserve the white space surrounding the "#".
   22999     print prefix "define", macro P[macro] D[macro]
   23000     next
   23001   } else {
   23002     # Replace #undef with comments.  This is necessary, for example,
   23003     # in the case of _POSIX_SOURCE, which is predefined and required
   23004     # on some systems where configure will not decide to define it.
   23005     if (defundef == "undef") {
   23006       print "/*", prefix defundef, macro, "*/"
   23007       next
   23008     }
   23009   }
   23010 }
   23011 { print }
   23012 _ACAWK
   23013 _ACEOF
   23014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23015   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   23016 fi # test -n "$CONFIG_HEADERS"
   23017 
   23018 
   23019 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   23020 shift
   23021 for ac_tag
   23022 do
   23023   case $ac_tag in
   23024   :[FHLC]) ac_mode=$ac_tag; continue;;
   23025   esac
   23026   case $ac_mode$ac_tag in
   23027   :[FHL]*:*);;
   23028   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   23029   :[FH]-) ac_tag=-:-;;
   23030   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   23031   esac
   23032   ac_save_IFS=$IFS
   23033   IFS=:
   23034   set x $ac_tag
   23035   IFS=$ac_save_IFS
   23036   shift
   23037   ac_file=$1
   23038   shift
   23039 
   23040   case $ac_mode in
   23041   :L) ac_source=$1;;
   23042   :[FH])
   23043     ac_file_inputs=
   23044     for ac_f
   23045     do
   23046       case $ac_f in
   23047       -) ac_f="$ac_tmp/stdin";;
   23048       *) # Look for the file first in the build tree, then in the source tree
   23049 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   23050 	 # because $ac_f cannot contain `:'.
   23051 	 test -f "$ac_f" ||
   23052 	   case $ac_f in
   23053 	   [\\/$]*) false;;
   23054 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   23055 	   esac ||
   23056 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   23057       esac
   23058       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   23059       as_fn_append ac_file_inputs " '$ac_f'"
   23060     done
   23061 
   23062     # Let's still pretend it is `configure' which instantiates (i.e., don't
   23063     # use $as_me), people would be surprised to read:
   23064     #    /* config.h.  Generated by config.status.  */
   23065     configure_input='Generated from '`
   23066 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   23067 	`' by configure.'
   23068     if test x"$ac_file" != x-; then
   23069       configure_input="$ac_file.  $configure_input"
   23070       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   23071 $as_echo "$as_me: creating $ac_file" >&6;}
   23072     fi
   23073     # Neutralize special characters interpreted by sed in replacement strings.
   23074     case $configure_input in #(
   23075     *\&* | *\|* | *\\* )
   23076        ac_sed_conf_input=`$as_echo "$configure_input" |
   23077        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   23078     *) ac_sed_conf_input=$configure_input;;
   23079     esac
   23080 
   23081     case $ac_tag in
   23082     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   23083       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   23084     esac
   23085     ;;
   23086   esac
   23087 
   23088   ac_dir=`$as_dirname -- "$ac_file" ||
   23089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   23090 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   23091 	 X"$ac_file" : 'X\(//\)$' \| \
   23092 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   23093 $as_echo X"$ac_file" |
   23094     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   23095 	    s//\1/
   23096 	    q
   23097 	  }
   23098 	  /^X\(\/\/\)[^/].*/{
   23099 	    s//\1/
   23100 	    q
   23101 	  }
   23102 	  /^X\(\/\/\)$/{
   23103 	    s//\1/
   23104 	    q
   23105 	  }
   23106 	  /^X\(\/\).*/{
   23107 	    s//\1/
   23108 	    q
   23109 	  }
   23110 	  s/.*/./; q'`
   23111   as_dir="$ac_dir"; as_fn_mkdir_p
   23112   ac_builddir=.
   23113 
   23114 case "$ac_dir" in
   23115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23116 *)
   23117   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   23118   # A ".." for each directory in $ac_dir_suffix.
   23119   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   23120   case $ac_top_builddir_sub in
   23121   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23122   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   23123   esac ;;
   23124 esac
   23125 ac_abs_top_builddir=$ac_pwd
   23126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   23127 # for backward compatibility:
   23128 ac_top_builddir=$ac_top_build_prefix
   23129 
   23130 case $srcdir in
   23131   .)  # We are building in place.
   23132     ac_srcdir=.
   23133     ac_top_srcdir=$ac_top_builddir_sub
   23134     ac_abs_top_srcdir=$ac_pwd ;;
   23135   [\\/]* | ?:[\\/]* )  # Absolute name.
   23136     ac_srcdir=$srcdir$ac_dir_suffix;
   23137     ac_top_srcdir=$srcdir
   23138     ac_abs_top_srcdir=$srcdir ;;
   23139   *) # Relative name.
   23140     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   23141     ac_top_srcdir=$ac_top_build_prefix$srcdir
   23142     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   23143 esac
   23144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   23145 
   23146 
   23147   case $ac_mode in
   23148   :F)
   23149   #
   23150   # CONFIG_FILE
   23151   #
   23152 
   23153   case $INSTALL in
   23154   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   23155   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   23156   esac
   23157 _ACEOF
   23158 
   23159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23160 # If the template does not know about datarootdir, expand it.
   23161 # FIXME: This hack should be removed a few years after 2.60.
   23162 ac_datarootdir_hack=; ac_datarootdir_seen=
   23163 ac_sed_dataroot='
   23164 /datarootdir/ {
   23165   p
   23166   q
   23167 }
   23168 /@datadir@/p
   23169 /@docdir@/p
   23170 /@infodir@/p
   23171 /@localedir@/p
   23172 /@mandir@/p'
   23173 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   23174 *datarootdir*) ac_datarootdir_seen=yes;;
   23175 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   23176   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   23177 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   23178 _ACEOF
   23179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23180   ac_datarootdir_hack='
   23181   s&@datadir@&$datadir&g
   23182   s&@docdir@&$docdir&g
   23183   s&@infodir@&$infodir&g
   23184   s&@localedir@&$localedir&g
   23185   s&@mandir@&$mandir&g
   23186   s&\\\${datarootdir}&$datarootdir&g' ;;
   23187 esac
   23188 _ACEOF
   23189 
   23190 # Neutralize VPATH when `$srcdir' = `.'.
   23191 # Shell code in configure.ac might set extrasub.
   23192 # FIXME: do we really want to maintain this feature?
   23193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23194 ac_sed_extra="$ac_vpsub
   23195 $extrasub
   23196 _ACEOF
   23197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23198 :t
   23199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   23200 s|@configure_input@|$ac_sed_conf_input|;t t
   23201 s&@top_builddir@&$ac_top_builddir_sub&;t t
   23202 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   23203 s&@srcdir@&$ac_srcdir&;t t
   23204 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   23205 s&@top_srcdir@&$ac_top_srcdir&;t t
   23206 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   23207 s&@builddir@&$ac_builddir&;t t
   23208 s&@abs_builddir@&$ac_abs_builddir&;t t
   23209 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   23210 s&@INSTALL@&$ac_INSTALL&;t t
   23211 $ac_datarootdir_hack
   23212 "
   23213 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   23214 if $ac_cs_awk_getline; then
   23215   $AWK -f "$ac_tmp/subs.awk"
   23216 else
   23217   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   23218 fi \
   23219   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23220 
   23221 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   23222   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   23223   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   23224       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   23225   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23226 which seems to be undefined.  Please make sure it is defined" >&5
   23227 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23228 which seems to be undefined.  Please make sure it is defined" >&2;}
   23229 
   23230   rm -f "$ac_tmp/stdin"
   23231   case $ac_file in
   23232   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   23233   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   23234   esac \
   23235   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23236  ;;
   23237   :H)
   23238   #
   23239   # CONFIG_HEADER
   23240   #
   23241   if test x"$ac_file" != x-; then
   23242     {
   23243       $as_echo "/* $configure_input  */" \
   23244       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   23245     } >"$ac_tmp/config.h" \
   23246       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23247     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   23248       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   23249 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   23250     else
   23251       rm -f "$ac_file"
   23252       mv "$ac_tmp/config.h" "$ac_file" \
   23253 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23254     fi
   23255   else
   23256     $as_echo "/* $configure_input  */" \
   23257       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   23258       || as_fn_error $? "could not create -" "$LINENO" 5
   23259   fi
   23260  ;;
   23261 
   23262   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   23263 $as_echo "$as_me: executing $ac_file commands" >&6;}
   23264  ;;
   23265   esac
   23266 
   23267 
   23268   case $ac_file$ac_mode in
   23269     "libtool":C)
   23270 
   23271     # See if we are running on zsh, and set the options that allow our
   23272     # commands through without removal of \ escapes.
   23273     if test -n "${ZSH_VERSION+set}"; then
   23274       setopt NO_GLOB_SUBST
   23275     fi
   23276 
   23277     cfgfile=${ofile}T
   23278     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   23279     $RM "$cfgfile"
   23280 
   23281     cat <<_LT_EOF >> "$cfgfile"
   23282 #! $SHELL
   23283 # Generated automatically by $as_me ($PACKAGE) $VERSION
   23284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   23285 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   23286 
   23287 # Provide generalized library-building support services.
   23288 # Written by Gordon Matzigkeit, 1996
   23289 
   23290 # Copyright (C) 2014 Free Software Foundation, Inc.
   23291 # This is free software; see the source for copying conditions.  There is NO
   23292 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   23293 
   23294 # GNU Libtool is free software; you can redistribute it and/or modify
   23295 # it under the terms of the GNU General Public License as published by
   23296 # the Free Software Foundation; either version 2 of of the License, or
   23297 # (at your option) any later version.
   23298 #
   23299 # As a special exception to the GNU General Public License, if you
   23300 # distribute this file as part of a program or library that is built
   23301 # using GNU Libtool, you may include this file under the  same
   23302 # distribution terms that you use for the rest of that program.
   23303 #
   23304 # GNU Libtool is distributed in the hope that it will be useful, but
   23305 # WITHOUT ANY WARRANTY; without even the implied warranty of
   23306 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   23307 # GNU General Public License for more details.
   23308 #
   23309 # You should have received a copy of the GNU General Public License
   23310 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   23311 
   23312 
   23313 # The names of the tagged configurations supported by this script.
   23314 available_tags=''
   23315 
   23316 # Configured defaults for sys_lib_dlsearch_path munging.
   23317 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   23318 
   23319 # ### BEGIN LIBTOOL CONFIG
   23320 
   23321 # Which release of libtool.m4 was used?
   23322 macro_version=$macro_version
   23323 macro_revision=$macro_revision
   23324 
   23325 # Whether or not to build shared libraries.
   23326 build_libtool_libs=$enable_shared
   23327 
   23328 # Whether or not to build static libraries.
   23329 build_old_libs=$enable_static
   23330 
   23331 # What type of objects to build.
   23332 pic_mode=$pic_mode
   23333 
   23334 # Whether or not to optimize for fast installation.
   23335 fast_install=$enable_fast_install
   23336 
   23337 # Shared archive member basename,for filename based shared library versioning on AIX.
   23338 shared_archive_member_spec=$shared_archive_member_spec
   23339 
   23340 # Shell to use when invoking shell scripts.
   23341 SHELL=$lt_SHELL
   23342 
   23343 # An echo program that protects backslashes.
   23344 ECHO=$lt_ECHO
   23345 
   23346 # The PATH separator for the build system.
   23347 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   23348 
   23349 # The host system.
   23350 host_alias=$host_alias
   23351 host=$host
   23352 host_os=$host_os
   23353 
   23354 # The build system.
   23355 build_alias=$build_alias
   23356 build=$build
   23357 build_os=$build_os
   23358 
   23359 # A sed program that does not truncate output.
   23360 SED=$lt_SED
   23361 
   23362 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   23363 Xsed="\$SED -e 1s/^X//"
   23364 
   23365 # A grep program that handles long lines.
   23366 GREP=$lt_GREP
   23367 
   23368 # An ERE matcher.
   23369 EGREP=$lt_EGREP
   23370 
   23371 # A literal string matcher.
   23372 FGREP=$lt_FGREP
   23373 
   23374 # A BSD- or MS-compatible name lister.
   23375 NM=$lt_NM
   23376 
   23377 # Whether we need soft or hard links.
   23378 LN_S=$lt_LN_S
   23379 
   23380 # What is the maximum length of a command?
   23381 max_cmd_len=$max_cmd_len
   23382 
   23383 # Object file suffix (normally "o").
   23384 objext=$ac_objext
   23385 
   23386 # Executable file suffix (normally "").
   23387 exeext=$exeext
   23388 
   23389 # whether the shell understands "unset".
   23390 lt_unset=$lt_unset
   23391 
   23392 # turn spaces into newlines.
   23393 SP2NL=$lt_lt_SP2NL
   23394 
   23395 # turn newlines into spaces.
   23396 NL2SP=$lt_lt_NL2SP
   23397 
   23398 # convert \$build file names to \$host format.
   23399 to_host_file_cmd=$lt_cv_to_host_file_cmd
   23400 
   23401 # convert \$build files to toolchain format.
   23402 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   23403 
   23404 # An object symbol dumper.
   23405 OBJDUMP=$lt_OBJDUMP
   23406 
   23407 # Method to check whether dependent libraries are shared objects.
   23408 deplibs_check_method=$lt_deplibs_check_method
   23409 
   23410 # Command to use when deplibs_check_method = "file_magic".
   23411 file_magic_cmd=$lt_file_magic_cmd
   23412 
   23413 # How to find potential files when deplibs_check_method = "file_magic".
   23414 file_magic_glob=$lt_file_magic_glob
   23415 
   23416 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   23417 want_nocaseglob=$lt_want_nocaseglob
   23418 
   23419 # DLL creation program.
   23420 DLLTOOL=$lt_DLLTOOL
   23421 
   23422 # Command to associate shared and link libraries.
   23423 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   23424 
   23425 # The archiver.
   23426 AR=$lt_AR
   23427 
   23428 # Flags to create an archive.
   23429 AR_FLAGS=$lt_AR_FLAGS
   23430 
   23431 # How to feed a file listing to the archiver.
   23432 archiver_list_spec=$lt_archiver_list_spec
   23433 
   23434 # A symbol stripping program.
   23435 STRIP=$lt_STRIP
   23436 
   23437 # Commands used to install an old-style archive.
   23438 RANLIB=$lt_RANLIB
   23439 old_postinstall_cmds=$lt_old_postinstall_cmds
   23440 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   23441 
   23442 # Whether to use a lock for old archive extraction.
   23443 lock_old_archive_extraction=$lock_old_archive_extraction
   23444 
   23445 # A C compiler.
   23446 LTCC=$lt_CC
   23447 
   23448 # LTCC compiler flags.
   23449 LTCFLAGS=$lt_CFLAGS
   23450 
   23451 # Take the output of nm and produce a listing of raw symbols and C names.
   23452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   23453 
   23454 # Transform the output of nm in a proper C declaration.
   23455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   23456 
   23457 # Transform the output of nm into a list of symbols to manually relocate.
   23458 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   23459 
   23460 # Transform the output of nm in a C name address pair.
   23461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   23462 
   23463 # Transform the output of nm in a C name address pair when lib prefix is needed.
   23464 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   23465 
   23466 # The name lister interface.
   23467 nm_interface=$lt_lt_cv_nm_interface
   23468 
   23469 # Specify filename containing input files for \$NM.
   23470 nm_file_list_spec=$lt_nm_file_list_spec
   23471 
   23472 # The root where to search for dependent libraries,and where our libraries should be installed.
   23473 lt_sysroot=$lt_sysroot
   23474 
   23475 # Command to truncate a binary pipe.
   23476 lt_truncate_bin=$lt_lt_cv_truncate_bin
   23477 
   23478 # The name of the directory that contains temporary libtool files.
   23479 objdir=$objdir
   23480 
   23481 # Used to examine libraries when file_magic_cmd begins with "file".
   23482 MAGIC_CMD=$MAGIC_CMD
   23483 
   23484 # Must we lock files when doing compilation?
   23485 need_locks=$lt_need_locks
   23486 
   23487 # Manifest tool.
   23488 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   23489 
   23490 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   23491 DSYMUTIL=$lt_DSYMUTIL
   23492 
   23493 # Tool to change global to local symbols on Mac OS X.
   23494 NMEDIT=$lt_NMEDIT
   23495 
   23496 # Tool to manipulate fat objects and archives on Mac OS X.
   23497 LIPO=$lt_LIPO
   23498 
   23499 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   23500 OTOOL=$lt_OTOOL
   23501 
   23502 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   23503 OTOOL64=$lt_OTOOL64
   23504 
   23505 # Old archive suffix (normally "a").
   23506 libext=$libext
   23507 
   23508 # Shared library suffix (normally ".so").
   23509 shrext_cmds=$lt_shrext_cmds
   23510 
   23511 # The commands to extract the exported symbol list from a shared archive.
   23512 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   23513 
   23514 # Variables whose values should be saved in libtool wrapper scripts and
   23515 # restored at link time.
   23516 variables_saved_for_relink=$lt_variables_saved_for_relink
   23517 
   23518 # Do we need the "lib" prefix for modules?
   23519 need_lib_prefix=$need_lib_prefix
   23520 
   23521 # Do we need a version for libraries?
   23522 need_version=$need_version
   23523 
   23524 # Library versioning type.
   23525 version_type=$version_type
   23526 
   23527 # Shared library runtime path variable.
   23528 runpath_var=$runpath_var
   23529 
   23530 # Shared library path variable.
   23531 shlibpath_var=$shlibpath_var
   23532 
   23533 # Is shlibpath searched before the hard-coded library search path?
   23534 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   23535 
   23536 # Format of library name prefix.
   23537 libname_spec=$lt_libname_spec
   23538 
   23539 # List of archive names.  First name is the real one, the rest are links.
   23540 # The last name is the one that the linker finds with -lNAME
   23541 library_names_spec=$lt_library_names_spec
   23542 
   23543 # The coded name of the library, if different from the real name.
   23544 soname_spec=$lt_soname_spec
   23545 
   23546 # Permission mode override for installation of shared libraries.
   23547 install_override_mode=$lt_install_override_mode
   23548 
   23549 # Command to use after installation of a shared archive.
   23550 postinstall_cmds=$lt_postinstall_cmds
   23551 
   23552 # Command to use after uninstallation of a shared archive.
   23553 postuninstall_cmds=$lt_postuninstall_cmds
   23554 
   23555 # Commands used to finish a libtool library installation in a directory.
   23556 finish_cmds=$lt_finish_cmds
   23557 
   23558 # As "finish_cmds", except a single script fragment to be evaled but
   23559 # not shown.
   23560 finish_eval=$lt_finish_eval
   23561 
   23562 # Whether we should hardcode library paths into libraries.
   23563 hardcode_into_libs=$hardcode_into_libs
   23564 
   23565 # Compile-time system search path for libraries.
   23566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   23567 
   23568 # Detected run-time system search path for libraries.
   23569 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   23570 
   23571 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   23572 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   23573 
   23574 # Whether dlopen is supported.
   23575 dlopen_support=$enable_dlopen
   23576 
   23577 # Whether dlopen of programs is supported.
   23578 dlopen_self=$enable_dlopen_self
   23579 
   23580 # Whether dlopen of statically linked programs is supported.
   23581 dlopen_self_static=$enable_dlopen_self_static
   23582 
   23583 # Commands to strip libraries.
   23584 old_striplib=$lt_old_striplib
   23585 striplib=$lt_striplib
   23586 
   23587 
   23588 # The linker used to build libraries.
   23589 LD=$lt_LD
   23590 
   23591 # How to create reloadable object files.
   23592 reload_flag=$lt_reload_flag
   23593 reload_cmds=$lt_reload_cmds
   23594 
   23595 # Commands used to build an old-style archive.
   23596 old_archive_cmds=$lt_old_archive_cmds
   23597 
   23598 # A language specific compiler.
   23599 CC=$lt_compiler
   23600 
   23601 # Is the compiler the GNU compiler?
   23602 with_gcc=$GCC
   23603 
   23604 # Compiler flag to turn off builtin functions.
   23605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   23606 
   23607 # Additional compiler flags for building library objects.
   23608 pic_flag=$lt_lt_prog_compiler_pic
   23609 
   23610 # How to pass a linker flag through the compiler.
   23611 wl=$lt_lt_prog_compiler_wl
   23612 
   23613 # Compiler flag to prevent dynamic linking.
   23614 link_static_flag=$lt_lt_prog_compiler_static
   23615 
   23616 # Does compiler simultaneously support -c and -o options?
   23617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   23618 
   23619 # Whether or not to add -lc for building shared libraries.
   23620 build_libtool_need_lc=$archive_cmds_need_lc
   23621 
   23622 # Whether or not to disallow shared libs when runtime libs are static.
   23623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   23624 
   23625 # Compiler flag to allow reflexive dlopens.
   23626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   23627 
   23628 # Compiler flag to generate shared objects directly from archives.
   23629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   23630 
   23631 # Whether the compiler copes with passing no objects directly.
   23632 compiler_needs_object=$lt_compiler_needs_object
   23633 
   23634 # Create an old-style archive from a shared archive.
   23635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   23636 
   23637 # Create a temporary old-style archive to link instead of a shared archive.
   23638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   23639 
   23640 # Commands used to build a shared archive.
   23641 archive_cmds=$lt_archive_cmds
   23642 archive_expsym_cmds=$lt_archive_expsym_cmds
   23643 
   23644 # Commands used to build a loadable module if different from building
   23645 # a shared archive.
   23646 module_cmds=$lt_module_cmds
   23647 module_expsym_cmds=$lt_module_expsym_cmds
   23648 
   23649 # Whether we are building with GNU ld or not.
   23650 with_gnu_ld=$lt_with_gnu_ld
   23651 
   23652 # Flag that allows shared libraries with undefined symbols to be built.
   23653 allow_undefined_flag=$lt_allow_undefined_flag
   23654 
   23655 # Flag that enforces no undefined symbols.
   23656 no_undefined_flag=$lt_no_undefined_flag
   23657 
   23658 # Flag to hardcode \$libdir into a binary during linking.
   23659 # This must work even if \$libdir does not exist
   23660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   23661 
   23662 # Whether we need a single "-rpath" flag with a separated argument.
   23663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   23664 
   23665 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23666 # DIR into the resulting binary.
   23667 hardcode_direct=$hardcode_direct
   23668 
   23669 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23670 # DIR into the resulting binary and the resulting library dependency is
   23671 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   23672 # library is relocated.
   23673 hardcode_direct_absolute=$hardcode_direct_absolute
   23674 
   23675 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   23676 # into the resulting binary.
   23677 hardcode_minus_L=$hardcode_minus_L
   23678 
   23679 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   23680 # into the resulting binary.
   23681 hardcode_shlibpath_var=$hardcode_shlibpath_var
   23682 
   23683 # Set to "yes" if building a shared library automatically hardcodes DIR
   23684 # into the library and all subsequent libraries and executables linked
   23685 # against it.
   23686 hardcode_automatic=$hardcode_automatic
   23687 
   23688 # Set to yes if linker adds runtime paths of dependent libraries
   23689 # to runtime path list.
   23690 inherit_rpath=$inherit_rpath
   23691 
   23692 # Whether libtool must link a program against all its dependency libraries.
   23693 link_all_deplibs=$link_all_deplibs
   23694 
   23695 # Set to "yes" if exported symbols are required.
   23696 always_export_symbols=$always_export_symbols
   23697 
   23698 # The commands to list exported symbols.
   23699 export_symbols_cmds=$lt_export_symbols_cmds
   23700 
   23701 # Symbols that should not be listed in the preloaded symbols.
   23702 exclude_expsyms=$lt_exclude_expsyms
   23703 
   23704 # Symbols that must always be exported.
   23705 include_expsyms=$lt_include_expsyms
   23706 
   23707 # Commands necessary for linking programs (against libraries) with templates.
   23708 prelink_cmds=$lt_prelink_cmds
   23709 
   23710 # Commands necessary for finishing linking programs.
   23711 postlink_cmds=$lt_postlink_cmds
   23712 
   23713 # Specify filename containing input files.
   23714 file_list_spec=$lt_file_list_spec
   23715 
   23716 # How to hardcode a shared library path into an executable.
   23717 hardcode_action=$hardcode_action
   23718 
   23719 # ### END LIBTOOL CONFIG
   23720 
   23721 _LT_EOF
   23722 
   23723     cat <<'_LT_EOF' >> "$cfgfile"
   23724 
   23725 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   23726 
   23727 # func_munge_path_list VARIABLE PATH
   23728 # -----------------------------------
   23729 # VARIABLE is name of variable containing _space_ separated list of
   23730 # directories to be munged by the contents of PATH, which is string
   23731 # having a format:
   23732 # "DIR[:DIR]:"
   23733 #       string "DIR[ DIR]" will be prepended to VARIABLE
   23734 # ":DIR[:DIR]"
   23735 #       string "DIR[ DIR]" will be appended to VARIABLE
   23736 # "DIRP[:DIRP]::[DIRA:]DIRA"
   23737 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   23738 #       "DIRA[ DIRA]" will be appended to VARIABLE
   23739 # "DIR[:DIR]"
   23740 #       VARIABLE will be replaced by "DIR[ DIR]"
   23741 func_munge_path_list ()
   23742 {
   23743     case x$2 in
   23744     x)
   23745         ;;
   23746     *:)
   23747         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   23748         ;;
   23749     x:*)
   23750         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   23751         ;;
   23752     *::*)
   23753         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   23754         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   23755         ;;
   23756     *)
   23757         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   23758         ;;
   23759     esac
   23760 }
   23761 
   23762 
   23763 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   23764 func_cc_basename ()
   23765 {
   23766     for cc_temp in $*""; do
   23767       case $cc_temp in
   23768         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   23769         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   23770         \-*) ;;
   23771         *) break;;
   23772       esac
   23773     done
   23774     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   23775 }
   23776 
   23777 
   23778 # ### END FUNCTIONS SHARED WITH CONFIGURE
   23779 
   23780 _LT_EOF
   23781 
   23782   case $host_os in
   23783   aix3*)
   23784     cat <<\_LT_EOF >> "$cfgfile"
   23785 # AIX sometimes has problems with the GCC collect2 program.  For some
   23786 # reason, if we set the COLLECT_NAMES environment variable, the problems
   23787 # vanish in a puff of smoke.
   23788 if test set != "${COLLECT_NAMES+set}"; then
   23789   COLLECT_NAMES=
   23790   export COLLECT_NAMES
   23791 fi
   23792 _LT_EOF
   23793     ;;
   23794   esac
   23795 
   23796 
   23797 ltmain=$ac_aux_dir/ltmain.sh
   23798 
   23799 
   23800   # We use sed instead of cat because bash on DJGPP gets confused if
   23801   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   23802   # text mode, it properly converts lines to CR/LF.  This bash problem
   23803   # is reportedly fixed, but why not run on old versions too?
   23804   sed '$q' "$ltmain" >> "$cfgfile" \
   23805      || (rm -f "$cfgfile"; exit 1)
   23806 
   23807    mv -f "$cfgfile" "$ofile" ||
   23808     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   23809   chmod +x "$ofile"
   23810 
   23811  ;;
   23812     "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
   23813 
   23814   esac
   23815 done # for ac_tag
   23816 
   23817 
   23818 as_fn_exit 0
   23819 _ACEOF
   23820 ac_clean_files=$ac_clean_files_save
   23821 
   23822 test $ac_write_fail = 0 ||
   23823   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   23824 
   23825 
   23826 # configure is writing to config.log, and then calls config.status.
   23827 # config.status does its own redirection, appending to config.log.
   23828 # Unfortunately, on DOS this fails, as config.log is still kept open
   23829 # by configure, so config.status won't be able to write to it; its
   23830 # output is simply discarded.  So we exec the FD to /dev/null,
   23831 # effectively closing config.log, so it can be properly (re)opened and
   23832 # appended to by config.status.  When coming back to configure, we
   23833 # need to make the FD available again.
   23834 if test "$no_create" != yes; then
   23835   ac_cs_success=:
   23836   ac_config_status_args=
   23837   test "$silent" = yes &&
   23838     ac_config_status_args="$ac_config_status_args --quiet"
   23839   exec 5>/dev/null
   23840   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   23841   exec 5>>config.log
   23842   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   23843   # would make configure fail if this is the last instruction.
   23844   $ac_cs_success || as_fn_exit 1
   23845 fi
   23846 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   23847   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   23848 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   23849 fi
   23850 
   23851 
   23852 #
   23853 # Now that the Makefiles exist we can ensure that everything is rebuilt.
   23854 #
   23855 
   23856 # Check whether --with-make-clean was given.
   23857 if test "${with_make_clean+set}" = set; then :
   23858   withval=$with_make_clean; make_clean="$withval"
   23859 else
   23860   make_clean="yes"
   23861 fi
   23862 
   23863 case "$make_clean" in
   23864 yes)
   23865 	if test "yes" != "$no_create"
   23866 	then
   23867 		if test "yes" = "$silent"
   23868 		then
   23869 			make clean > /dev/null
   23870 		else
   23871 			make clean
   23872 		fi
   23873 	fi
   23874 	;;
   23875 esac
   23876 
   23877 # Check whether --enable-full-report was given.
   23878 if test "${enable_full_report+set}" = set; then :
   23879   enableval=$enable_full_report;
   23880 fi
   23881 
   23882 
   23883 report() {
   23884     echo "==============================================================================="
   23885     echo "Configuration summary:"
   23886     echo "-------------------------------------------------------------------------------"
   23887     echo "Optional features enabled:"
   23888     if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
   23889 	echo "        Mutex lock type: $locktype"
   23890     fi
   23891     test "large" = "$use_tuning" && echo "    Large-system tuning (--with-tuning)"
   23892     test "no" = "$use_dnstap" || \
   23893 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23894     test "no" = "$use_geoip" || echo "    GeoIP access control (--with-geoip)"
   23895     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   23896     if test "yes" = "$enable_full_report" -o "aes" != "$with_cc_alg"; then
   23897 	echo "        Algorithm: $with_cc_alg"
   23898     fi
   23899 
   23900     # these lines are only printed if run with --enable-full-report
   23901     if test "yes" = "$enable_full_report"; then
   23902 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   23903 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   23904 	test "X$XMLSTATS" = "X" || echo "    XML statistics (--with-libxml2)"
   23905 	test "X$JSONSTATS" = "X" || echo "    JSON statistics (--with-libjson)"
   23906 	test "X$ZLIB" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   23907 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23908 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   23909     fi
   23910 
   23911     test "yes" = "$enable_dnsrps" && \
   23912 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23913     test "yes" = "$enable_fixed" && \
   23914 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23915     test "yes" = "$enable_backtrace" && \
   23916 	echo "    Print backtrace on crash (--enable-backtrace)"
   23917     test "minimal" = "$want_symtable" && \
   23918 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   23919     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   23920 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   23921     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23922     test "yes" = "$want_querytrace" && \
   23923 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23924     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   23925 
   23926     test "no" = "$want_autoval" || echo "    DNSSEC validation active by default (--enable-auto-validation)"
   23927 
   23928     test "$CRYPTO" = "pkcs11" && (
   23929 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   23930 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   23931     )
   23932 
   23933     echo "    Dynamically loadable zone (DLZ) drivers:"
   23934     test "no" = "$use_dlz_bdb" || \
   23935 	echo "        Berkeley DB (--with-dlz-bdb)"
   23936     test "no" = "$use_dlz_ldap" || \
   23937 	echo "        LDAP (--with-dlz-ldap)"
   23938     test "no" = "$use_dlz_mysql" || \
   23939 	echo "        MySQL (--with-dlz-mysql)"
   23940     test "no" = "$use_dlz_odbc" || \
   23941 	echo "        ODBC (--with-dlz-odbc)"
   23942     test "no" = "$use_dlz_postgres" || \
   23943 	echo "        Postgres (--with-dlz-postgres)"
   23944     test "no" = "$use_dlz_filesystem" || \
   23945 	echo "        Filesystem (--with-dlz-filesystem)"
   23946     test "no" = "$use_dlz_stub" || \
   23947 	echo "        Stub (--with-dlz-stub)"
   23948     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"
   23949 
   23950     echo "-------------------------------------------------------------------------------"
   23951 
   23952     echo "Features disabled or unavailable on this platform:"
   23953     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   23954     test "large" = "$use_tuning" || echo "    Large-system tuning (--with-tuning)"
   23955 
   23956     test "no" = "$use_dnstap" && \
   23957 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23958     test "no" = "$use_geoip" && echo "    GeoIP access control (--with-geoip)"
   23959     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   23960 
   23961     test "no" = "$enable_dnsrps" && \
   23962 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23963 
   23964     test "yes" = "$enable_fixed" || \
   23965 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23966 
   23967     test "no" = "$want_autoval" && echo "    DNSSEC validation requires configuration (--disable-auto-validation)"
   23968 
   23969     test "$CRYPTO" = "pkcs11" || (
   23970 	echo "    Using PKCS#11 for Public-Key Cryptography (--without-native-pkcs11)"
   23971     )
   23972 
   23973     test "yes" = "$enable_backtrace" || \
   23974 	echo "    Print backtrace on crash (--enable-backtrace)"
   23975     test "yes" = "$want_querytrace" || \
   23976 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23977 
   23978     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23979     test "no" = "$with_cmocka" && echo "    CMocka Unit Testng Framework (--with-cmocka)"
   23980 
   23981     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   23982     test "X$XMLSTATS" = "X" && echo "    XML statistics (--with-libxml2)"
   23983     test "X$JSONSTATS" = "X" && echo "    JSON statistics (--with-libjson)"
   23984     test "X$ZLIB" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   23985     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23986     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   23987 
   23988     echo "-------------------------------------------------------------------------------"
   23989     echo "Configured paths:"
   23990     echo "    prefix: $prefix"
   23991     echo "    sysconfdir: $sysconfdir"
   23992     echo "    localstatedir: $localstatedir"
   23993     echo "-------------------------------------------------------------------------------"
   23994     echo "Compiler: $CC"
   23995     $CC --version 2>&1 | sed 's/^/    /'
   23996 
   23997     if test "X$ac_unrecognized_opts" != "X"; then
   23998 	echo "Unrecognized options:"
   23999 	echo "    $ac_unrecognized_opts"
   24000     fi
   24001 
   24002     if test "yes" != "$enable_full_report"; then
   24003 	echo "-------------------------------------------------------------------------------"
   24004 	echo "For more detail, use --enable-full-report."
   24005     fi
   24006     echo "==============================================================================="
   24007 }
   24008 
   24009 if test "yes" != "$silent"; then
   24010 	report
   24011 fi
   24012 
   24013 # Tell Emacs to edit this file in shell mode.
   24014 # Local Variables:
   24015 # mode: sh
   24016 # End:
   24017