Home | History | Annotate | Line # | Download | only in dist
configure revision 1.3
      1  1.1  christos #! /bin/sh
      2  1.1  christos # Guess values for system-dependent variables and create Makefiles.
      3  1.3  christos # Generated by GNU Autoconf 2.69 for BIND 9.13.
      4  1.1  christos #
      5  1.1  christos # Report bugs to <info (at] isc.org>.
      6  1.1  christos #
      7  1.1  christos #
      8  1.1  christos # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      9  1.1  christos #
     10  1.1  christos #
     11  1.1  christos # This configure script is free software; the Free Software Foundation
     12  1.1  christos # gives unlimited permission to copy, distribute and modify it.
     13  1.1  christos ## -------------------- ##
     14  1.1  christos ## M4sh Initialization. ##
     15  1.1  christos ## -------------------- ##
     16  1.1  christos 
     17  1.1  christos # Be more Bourne compatible
     18  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
     19  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     20  1.1  christos   emulate sh
     21  1.1  christos   NULLCMD=:
     22  1.1  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     23  1.1  christos   # is contrary to our usage.  Disable this feature.
     24  1.1  christos   alias -g '${1+"$@"}'='"$@"'
     25  1.1  christos   setopt NO_GLOB_SUBST
     26  1.1  christos else
     27  1.1  christos   case `(set -o) 2>/dev/null` in #(
     28  1.1  christos   *posix*) :
     29  1.1  christos     set -o posix ;; #(
     30  1.1  christos   *) :
     31  1.1  christos      ;;
     32  1.1  christos esac
     33  1.1  christos fi
     34  1.1  christos 
     35  1.1  christos 
     36  1.1  christos as_nl='
     37  1.1  christos '
     38  1.1  christos export as_nl
     39  1.1  christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
     40  1.1  christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41  1.1  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42  1.1  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     43  1.1  christos # Prefer a ksh shell builtin over an external printf program on Solaris,
     44  1.1  christos # but without wasting forks for bash or zsh.
     45  1.1  christos if test -z "$BASH_VERSION$ZSH_VERSION" \
     46  1.1  christos     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     47  1.1  christos   as_echo='print -r --'
     48  1.1  christos   as_echo_n='print -rn --'
     49  1.1  christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50  1.1  christos   as_echo='printf %s\n'
     51  1.1  christos   as_echo_n='printf %s'
     52  1.1  christos else
     53  1.1  christos   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54  1.1  christos     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55  1.1  christos     as_echo_n='/usr/ucb/echo -n'
     56  1.1  christos   else
     57  1.1  christos     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58  1.1  christos     as_echo_n_body='eval
     59  1.1  christos       arg=$1;
     60  1.1  christos       case $arg in #(
     61  1.1  christos       *"$as_nl"*)
     62  1.1  christos 	expr "X$arg" : "X\\(.*\\)$as_nl";
     63  1.1  christos 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64  1.1  christos       esac;
     65  1.1  christos       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66  1.1  christos     '
     67  1.1  christos     export as_echo_n_body
     68  1.1  christos     as_echo_n='sh -c $as_echo_n_body as_echo'
     69  1.1  christos   fi
     70  1.1  christos   export as_echo_body
     71  1.1  christos   as_echo='sh -c $as_echo_body as_echo'
     72  1.1  christos fi
     73  1.1  christos 
     74  1.1  christos # The user is always right.
     75  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
     76  1.1  christos   PATH_SEPARATOR=:
     77  1.1  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78  1.1  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79  1.1  christos       PATH_SEPARATOR=';'
     80  1.1  christos   }
     81  1.1  christos fi
     82  1.1  christos 
     83  1.1  christos 
     84  1.1  christos # IFS
     85  1.1  christos # We need space, tab and new line, in precisely that order.  Quoting is
     86  1.1  christos # there to prevent editors from complaining about space-tab.
     87  1.1  christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     88  1.1  christos # splitting by setting IFS to empty value.)
     89  1.1  christos IFS=" ""	$as_nl"
     90  1.1  christos 
     91  1.1  christos # Find who we are.  Look in the path if we contain no directory separator.
     92  1.1  christos as_myself=
     93  1.1  christos case $0 in #((
     94  1.1  christos   *[\\/]* ) as_myself=$0 ;;
     95  1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     96  1.1  christos for as_dir in $PATH
     97  1.1  christos do
     98  1.1  christos   IFS=$as_save_IFS
     99  1.1  christos   test -z "$as_dir" && as_dir=.
    100  1.1  christos     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    101  1.1  christos   done
    102  1.1  christos IFS=$as_save_IFS
    103  1.1  christos 
    104  1.1  christos      ;;
    105  1.1  christos esac
    106  1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
    107  1.1  christos # in which case we are not to be found in the path.
    108  1.1  christos if test "x$as_myself" = x; then
    109  1.1  christos   as_myself=$0
    110  1.1  christos fi
    111  1.1  christos if test ! -f "$as_myself"; then
    112  1.1  christos   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113  1.1  christos   exit 1
    114  1.1  christos fi
    115  1.1  christos 
    116  1.1  christos # Unset variables that we do not need and which cause bugs (e.g. in
    117  1.1  christos # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    118  1.1  christos # suppresses any "Segmentation fault" message there.  '((' could
    119  1.1  christos # trigger a bug in pdksh 5.2.14.
    120  1.1  christos for as_var in BASH_ENV ENV MAIL MAILPATH
    121  1.1  christos do eval test x\${$as_var+set} = xset \
    122  1.1  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    123  1.1  christos done
    124  1.1  christos PS1='$ '
    125  1.1  christos PS2='> '
    126  1.1  christos PS4='+ '
    127  1.1  christos 
    128  1.1  christos # NLS nuisances.
    129  1.1  christos LC_ALL=C
    130  1.1  christos export LC_ALL
    131  1.1  christos LANGUAGE=C
    132  1.1  christos export LANGUAGE
    133  1.1  christos 
    134  1.1  christos # CDPATH.
    135  1.1  christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    136  1.1  christos 
    137  1.1  christos # Use a proper internal environment variable to ensure we don't fall
    138  1.1  christos   # into an infinite loop, continuously re-executing ourselves.
    139  1.1  christos   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    140  1.1  christos     _as_can_reexec=no; export _as_can_reexec;
    141  1.1  christos     # We cannot yet assume a decent shell, so we have to provide a
    142  1.1  christos # neutralization value for shells without unset; and this also
    143  1.1  christos # works around shells that cannot unset nonexistent variables.
    144  1.1  christos # Preserve -v and -x to the replacement shell.
    145  1.1  christos BASH_ENV=/dev/null
    146  1.1  christos ENV=/dev/null
    147  1.1  christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148  1.1  christos case $- in # ((((
    149  1.1  christos   *v*x* | *x*v* ) as_opts=-vx ;;
    150  1.1  christos   *v* ) as_opts=-v ;;
    151  1.1  christos   *x* ) as_opts=-x ;;
    152  1.1  christos   * ) as_opts= ;;
    153  1.1  christos esac
    154  1.1  christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    155  1.1  christos # Admittedly, this is quite paranoid, since all the known shells bail
    156  1.1  christos # out after a failed `exec'.
    157  1.1  christos $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    158  1.1  christos as_fn_exit 255
    159  1.1  christos   fi
    160  1.1  christos   # We don't want this to propagate to other subprocesses.
    161  1.1  christos           { _as_can_reexec=; unset _as_can_reexec;}
    162  1.1  christos if test "x$CONFIG_SHELL" = x; then
    163  1.1  christos   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    164  1.1  christos   emulate sh
    165  1.1  christos   NULLCMD=:
    166  1.1  christos   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    167  1.1  christos   # is contrary to our usage.  Disable this feature.
    168  1.1  christos   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    169  1.1  christos   setopt NO_GLOB_SUBST
    170  1.1  christos else
    171  1.1  christos   case \`(set -o) 2>/dev/null\` in #(
    172  1.1  christos   *posix*) :
    173  1.1  christos     set -o posix ;; #(
    174  1.1  christos   *) :
    175  1.1  christos      ;;
    176  1.1  christos esac
    177  1.1  christos fi
    178  1.1  christos "
    179  1.1  christos   as_required="as_fn_return () { (exit \$1); }
    180  1.1  christos as_fn_success () { as_fn_return 0; }
    181  1.1  christos as_fn_failure () { as_fn_return 1; }
    182  1.1  christos as_fn_ret_success () { return 0; }
    183  1.1  christos as_fn_ret_failure () { return 1; }
    184  1.1  christos 
    185  1.1  christos exitcode=0
    186  1.1  christos as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187  1.1  christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188  1.1  christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189  1.1  christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190  1.1  christos if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191  1.1  christos 
    192  1.1  christos else
    193  1.1  christos   exitcode=1; echo positional parameters were not saved.
    194  1.1  christos fi
    195  1.1  christos test x\$exitcode = x0 || exit 1
    196  1.1  christos test -x / || exit 1"
    197  1.1  christos   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    198  1.1  christos   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    199  1.1  christos   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    200  1.1  christos   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    201  1.3  christos test \$(( 1 + 1 )) = 2 || exit 1
    202  1.1  christos 
    203  1.1  christos   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    204  1.1  christos     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    205  1.1  christos     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    206  1.1  christos     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    207  1.1  christos     PATH=/empty FPATH=/empty; export PATH FPATH
    208  1.1  christos     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    209  1.3  christos       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    210  1.1  christos   if (eval "$as_required") 2>/dev/null; then :
    211  1.1  christos   as_have_required=yes
    212  1.1  christos else
    213  1.1  christos   as_have_required=no
    214  1.1  christos fi
    215  1.1  christos   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    216  1.1  christos 
    217  1.1  christos else
    218  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    219  1.1  christos as_found=false
    220  1.1  christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    221  1.1  christos do
    222  1.1  christos   IFS=$as_save_IFS
    223  1.1  christos   test -z "$as_dir" && as_dir=.
    224  1.1  christos   as_found=:
    225  1.1  christos   case $as_dir in #(
    226  1.1  christos 	 /*)
    227  1.1  christos 	   for as_base in sh bash ksh sh5; do
    228  1.1  christos 	     # Try only shells that exist, to save several forks.
    229  1.1  christos 	     as_shell=$as_dir/$as_base
    230  1.1  christos 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    231  1.1  christos 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    232  1.1  christos   CONFIG_SHELL=$as_shell as_have_required=yes
    233  1.1  christos 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    234  1.1  christos   break 2
    235  1.1  christos fi
    236  1.1  christos fi
    237  1.1  christos 	   done;;
    238  1.1  christos        esac
    239  1.1  christos   as_found=false
    240  1.1  christos done
    241  1.1  christos $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    242  1.1  christos 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    243  1.1  christos   CONFIG_SHELL=$SHELL as_have_required=yes
    244  1.1  christos fi; }
    245  1.1  christos IFS=$as_save_IFS
    246  1.1  christos 
    247  1.1  christos 
    248  1.1  christos       if test "x$CONFIG_SHELL" != x; then :
    249  1.1  christos   export CONFIG_SHELL
    250  1.1  christos              # We cannot yet assume a decent shell, so we have to provide a
    251  1.1  christos # neutralization value for shells without unset; and this also
    252  1.1  christos # works around shells that cannot unset nonexistent variables.
    253  1.1  christos # Preserve -v and -x to the replacement shell.
    254  1.1  christos BASH_ENV=/dev/null
    255  1.1  christos ENV=/dev/null
    256  1.1  christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    257  1.1  christos case $- in # ((((
    258  1.1  christos   *v*x* | *x*v* ) as_opts=-vx ;;
    259  1.1  christos   *v* ) as_opts=-v ;;
    260  1.1  christos   *x* ) as_opts=-x ;;
    261  1.1  christos   * ) as_opts= ;;
    262  1.1  christos esac
    263  1.1  christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    264  1.1  christos # Admittedly, this is quite paranoid, since all the known shells bail
    265  1.1  christos # out after a failed `exec'.
    266  1.1  christos $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    267  1.1  christos exit 255
    268  1.1  christos fi
    269  1.1  christos 
    270  1.1  christos     if test x$as_have_required = xno; then :
    271  1.1  christos   $as_echo "$0: This script requires a shell more modern than all"
    272  1.1  christos   $as_echo "$0: the shells that I found on your system."
    273  1.1  christos   if test x${ZSH_VERSION+set} = xset ; then
    274  1.1  christos     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    275  1.1  christos     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    276  1.1  christos   else
    277  1.1  christos     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and info (at] isc.org about
    278  1.1  christos $0: your system, including any error possibly output before
    279  1.1  christos $0: this message. Then install a modern shell, or manually
    280  1.1  christos $0: run the script under such a shell if you do have one."
    281  1.1  christos   fi
    282  1.1  christos   exit 1
    283  1.1  christos fi
    284  1.1  christos fi
    285  1.1  christos fi
    286  1.1  christos SHELL=${CONFIG_SHELL-/bin/sh}
    287  1.1  christos export SHELL
    288  1.1  christos # Unset more variables known to interfere with behavior of common tools.
    289  1.1  christos CLICOLOR_FORCE= GREP_OPTIONS=
    290  1.1  christos unset CLICOLOR_FORCE GREP_OPTIONS
    291  1.1  christos 
    292  1.1  christos ## --------------------- ##
    293  1.1  christos ## M4sh Shell Functions. ##
    294  1.1  christos ## --------------------- ##
    295  1.1  christos # as_fn_unset VAR
    296  1.1  christos # ---------------
    297  1.1  christos # Portably unset VAR.
    298  1.1  christos as_fn_unset ()
    299  1.1  christos {
    300  1.1  christos   { eval $1=; unset $1;}
    301  1.1  christos }
    302  1.1  christos as_unset=as_fn_unset
    303  1.1  christos 
    304  1.1  christos # as_fn_set_status STATUS
    305  1.1  christos # -----------------------
    306  1.1  christos # Set $? to STATUS, without forking.
    307  1.1  christos as_fn_set_status ()
    308  1.1  christos {
    309  1.1  christos   return $1
    310  1.1  christos } # as_fn_set_status
    311  1.1  christos 
    312  1.1  christos # as_fn_exit STATUS
    313  1.1  christos # -----------------
    314  1.1  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    315  1.1  christos as_fn_exit ()
    316  1.1  christos {
    317  1.1  christos   set +e
    318  1.1  christos   as_fn_set_status $1
    319  1.1  christos   exit $1
    320  1.1  christos } # as_fn_exit
    321  1.1  christos 
    322  1.1  christos # as_fn_mkdir_p
    323  1.1  christos # -------------
    324  1.1  christos # Create "$as_dir" as a directory, including parents if necessary.
    325  1.1  christos as_fn_mkdir_p ()
    326  1.1  christos {
    327  1.1  christos 
    328  1.1  christos   case $as_dir in #(
    329  1.1  christos   -*) as_dir=./$as_dir;;
    330  1.1  christos   esac
    331  1.1  christos   test -d "$as_dir" || eval $as_mkdir_p || {
    332  1.1  christos     as_dirs=
    333  1.1  christos     while :; do
    334  1.1  christos       case $as_dir in #(
    335  1.1  christos       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    336  1.1  christos       *) as_qdir=$as_dir;;
    337  1.1  christos       esac
    338  1.1  christos       as_dirs="'$as_qdir' $as_dirs"
    339  1.1  christos       as_dir=`$as_dirname -- "$as_dir" ||
    340  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    341  1.1  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    342  1.1  christos 	 X"$as_dir" : 'X\(//\)$' \| \
    343  1.1  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    344  1.1  christos $as_echo X"$as_dir" |
    345  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    346  1.1  christos 	    s//\1/
    347  1.1  christos 	    q
    348  1.1  christos 	  }
    349  1.1  christos 	  /^X\(\/\/\)[^/].*/{
    350  1.1  christos 	    s//\1/
    351  1.1  christos 	    q
    352  1.1  christos 	  }
    353  1.1  christos 	  /^X\(\/\/\)$/{
    354  1.1  christos 	    s//\1/
    355  1.1  christos 	    q
    356  1.1  christos 	  }
    357  1.1  christos 	  /^X\(\/\).*/{
    358  1.1  christos 	    s//\1/
    359  1.1  christos 	    q
    360  1.1  christos 	  }
    361  1.1  christos 	  s/.*/./; q'`
    362  1.1  christos       test -d "$as_dir" && break
    363  1.1  christos     done
    364  1.1  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
    365  1.1  christos   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    366  1.1  christos 
    367  1.1  christos 
    368  1.1  christos } # as_fn_mkdir_p
    369  1.1  christos 
    370  1.1  christos # as_fn_executable_p FILE
    371  1.1  christos # -----------------------
    372  1.1  christos # Test if FILE is an executable regular file.
    373  1.1  christos as_fn_executable_p ()
    374  1.1  christos {
    375  1.1  christos   test -f "$1" && test -x "$1"
    376  1.1  christos } # as_fn_executable_p
    377  1.1  christos # as_fn_append VAR VALUE
    378  1.1  christos # ----------------------
    379  1.1  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
    380  1.1  christos # advantage of any shell optimizations that allow amortized linear growth over
    381  1.1  christos # repeated appends, instead of the typical quadratic growth present in naive
    382  1.1  christos # implementations.
    383  1.1  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    384  1.1  christos   eval 'as_fn_append ()
    385  1.1  christos   {
    386  1.1  christos     eval $1+=\$2
    387  1.1  christos   }'
    388  1.1  christos else
    389  1.1  christos   as_fn_append ()
    390  1.1  christos   {
    391  1.1  christos     eval $1=\$$1\$2
    392  1.1  christos   }
    393  1.1  christos fi # as_fn_append
    394  1.1  christos 
    395  1.1  christos # as_fn_arith ARG...
    396  1.1  christos # ------------------
    397  1.1  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
    398  1.1  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
    399  1.1  christos # must be portable across $(()) and expr.
    400  1.1  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    401  1.1  christos   eval 'as_fn_arith ()
    402  1.1  christos   {
    403  1.1  christos     as_val=$(( $* ))
    404  1.1  christos   }'
    405  1.1  christos else
    406  1.1  christos   as_fn_arith ()
    407  1.1  christos   {
    408  1.1  christos     as_val=`expr "$@" || test $? -eq 1`
    409  1.1  christos   }
    410  1.1  christos fi # as_fn_arith
    411  1.1  christos 
    412  1.1  christos 
    413  1.1  christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
    414  1.1  christos # ----------------------------------------
    415  1.1  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    416  1.1  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    417  1.1  christos # script with STATUS, using 1 if that was 0.
    418  1.1  christos as_fn_error ()
    419  1.1  christos {
    420  1.1  christos   as_status=$1; test $as_status -eq 0 && as_status=1
    421  1.1  christos   if test "$4"; then
    422  1.1  christos     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    423  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    424  1.1  christos   fi
    425  1.1  christos   $as_echo "$as_me: error: $2" >&2
    426  1.1  christos   as_fn_exit $as_status
    427  1.1  christos } # as_fn_error
    428  1.1  christos 
    429  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
    430  1.1  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    431  1.1  christos   as_expr=expr
    432  1.1  christos else
    433  1.1  christos   as_expr=false
    434  1.1  christos fi
    435  1.1  christos 
    436  1.1  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    437  1.1  christos   as_basename=basename
    438  1.1  christos else
    439  1.1  christos   as_basename=false
    440  1.1  christos fi
    441  1.1  christos 
    442  1.1  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    443  1.1  christos   as_dirname=dirname
    444  1.1  christos else
    445  1.1  christos   as_dirname=false
    446  1.1  christos fi
    447  1.1  christos 
    448  1.1  christos as_me=`$as_basename -- "$0" ||
    449  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    450  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
    451  1.1  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    452  1.1  christos $as_echo X/"$0" |
    453  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
    454  1.1  christos 	    s//\1/
    455  1.1  christos 	    q
    456  1.1  christos 	  }
    457  1.1  christos 	  /^X\/\(\/\/\)$/{
    458  1.1  christos 	    s//\1/
    459  1.1  christos 	    q
    460  1.1  christos 	  }
    461  1.1  christos 	  /^X\/\(\/\).*/{
    462  1.1  christos 	    s//\1/
    463  1.1  christos 	    q
    464  1.1  christos 	  }
    465  1.1  christos 	  s/.*/./; q'`
    466  1.1  christos 
    467  1.1  christos # Avoid depending upon Character Ranges.
    468  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    469  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    470  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    471  1.1  christos as_cr_digits='0123456789'
    472  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
    473  1.1  christos 
    474  1.1  christos 
    475  1.1  christos   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    476  1.1  christos   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    477  1.1  christos   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    478  1.1  christos   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    479  1.1  christos   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    480  1.1  christos   sed -n '
    481  1.1  christos     p
    482  1.1  christos     /[$]LINENO/=
    483  1.1  christos   ' <$as_myself |
    484  1.1  christos     sed '
    485  1.1  christos       s/[$]LINENO.*/&-/
    486  1.1  christos       t lineno
    487  1.1  christos       b
    488  1.1  christos       :lineno
    489  1.1  christos       N
    490  1.1  christos       :loop
    491  1.1  christos       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    492  1.1  christos       t loop
    493  1.1  christos       s/-\n.*//
    494  1.1  christos     ' >$as_me.lineno &&
    495  1.1  christos   chmod +x "$as_me.lineno" ||
    496  1.1  christos     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    497  1.1  christos 
    498  1.1  christos   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    499  1.1  christos   # already done that, so ensure we don't try to do so again and fall
    500  1.1  christos   # in an infinite loop.  This has already happened in practice.
    501  1.1  christos   _as_can_reexec=no; export _as_can_reexec
    502  1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
    503  1.1  christos   # (the dirname of $[0] is not the place where we might find the
    504  1.1  christos   # original and so on.  Autoconf is especially sensitive to this).
    505  1.1  christos   . "./$as_me.lineno"
    506  1.1  christos   # Exit status is that of the last command.
    507  1.1  christos   exit
    508  1.1  christos }
    509  1.1  christos 
    510  1.1  christos ECHO_C= ECHO_N= ECHO_T=
    511  1.1  christos case `echo -n x` in #(((((
    512  1.1  christos -n*)
    513  1.1  christos   case `echo 'xy\c'` in
    514  1.1  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    515  1.1  christos   xy)  ECHO_C='\c';;
    516  1.1  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    517  1.1  christos        ECHO_T='	';;
    518  1.1  christos   esac;;
    519  1.1  christos *)
    520  1.1  christos   ECHO_N='-n';;
    521  1.1  christos esac
    522  1.1  christos 
    523  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
    524  1.1  christos if test -d conf$$.dir; then
    525  1.1  christos   rm -f conf$$.dir/conf$$.file
    526  1.1  christos else
    527  1.1  christos   rm -f conf$$.dir
    528  1.1  christos   mkdir conf$$.dir 2>/dev/null
    529  1.1  christos fi
    530  1.1  christos if (echo >conf$$.file) 2>/dev/null; then
    531  1.1  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
    532  1.1  christos     as_ln_s='ln -s'
    533  1.1  christos     # ... but there are two gotchas:
    534  1.1  christos     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    535  1.1  christos     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    536  1.1  christos     # In both cases, we have to default to `cp -pR'.
    537  1.1  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    538  1.1  christos       as_ln_s='cp -pR'
    539  1.1  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
    540  1.1  christos     as_ln_s=ln
    541  1.1  christos   else
    542  1.1  christos     as_ln_s='cp -pR'
    543  1.1  christos   fi
    544  1.1  christos else
    545  1.1  christos   as_ln_s='cp -pR'
    546  1.1  christos fi
    547  1.1  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    548  1.1  christos rmdir conf$$.dir 2>/dev/null
    549  1.1  christos 
    550  1.1  christos if mkdir -p . 2>/dev/null; then
    551  1.1  christos   as_mkdir_p='mkdir -p "$as_dir"'
    552  1.1  christos else
    553  1.1  christos   test -d ./-p && rmdir ./-p
    554  1.1  christos   as_mkdir_p=false
    555  1.1  christos fi
    556  1.1  christos 
    557  1.1  christos as_test_x='test -x'
    558  1.1  christos as_executable_p=as_fn_executable_p
    559  1.1  christos 
    560  1.1  christos # Sed expression to map a string onto a valid CPP name.
    561  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    562  1.1  christos 
    563  1.1  christos # Sed expression to map a string onto a valid variable name.
    564  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    565  1.1  christos 
    566  1.1  christos SHELL=${CONFIG_SHELL-/bin/sh}
    567  1.1  christos 
    568  1.1  christos 
    569  1.1  christos test -n "$DJDIR" || exec 7<&0 </dev/null
    570  1.1  christos exec 6>&1
    571  1.1  christos 
    572  1.1  christos # Name of the host.
    573  1.1  christos # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    574  1.1  christos # so uname gets run too.
    575  1.1  christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    576  1.1  christos 
    577  1.1  christos #
    578  1.1  christos # Initializations.
    579  1.1  christos #
    580  1.1  christos ac_default_prefix=/usr/local
    581  1.1  christos ac_clean_files=
    582  1.1  christos ac_config_libobj_dir=.
    583  1.1  christos LIBOBJS=
    584  1.1  christos cross_compiling=no
    585  1.1  christos subdirs=
    586  1.1  christos MFLAGS=
    587  1.1  christos MAKEFLAGS=
    588  1.1  christos 
    589  1.1  christos # Identity of this package.
    590  1.1  christos PACKAGE_NAME='BIND'
    591  1.1  christos PACKAGE_TARNAME='bind'
    592  1.3  christos PACKAGE_VERSION='9.13'
    593  1.3  christos PACKAGE_STRING='BIND 9.13'
    594  1.1  christos PACKAGE_BUGREPORT='info (at] isc.org'
    595  1.1  christos PACKAGE_URL='https://www.isc.org/downloads/BIND/'
    596  1.1  christos 
    597  1.1  christos # Factoring default headers for most tests.
    598  1.1  christos ac_includes_default="\
    599  1.1  christos #include <stdio.h>
    600  1.1  christos #ifdef HAVE_SYS_TYPES_H
    601  1.1  christos # include <sys/types.h>
    602  1.1  christos #endif
    603  1.1  christos #ifdef HAVE_SYS_STAT_H
    604  1.1  christos # include <sys/stat.h>
    605  1.1  christos #endif
    606  1.1  christos #ifdef STDC_HEADERS
    607  1.1  christos # include <stdlib.h>
    608  1.1  christos # include <stddef.h>
    609  1.1  christos #else
    610  1.1  christos # ifdef HAVE_STDLIB_H
    611  1.1  christos #  include <stdlib.h>
    612  1.1  christos # endif
    613  1.1  christos #endif
    614  1.1  christos #ifdef HAVE_STRING_H
    615  1.1  christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    616  1.1  christos #  include <memory.h>
    617  1.1  christos # endif
    618  1.1  christos # include <string.h>
    619  1.1  christos #endif
    620  1.1  christos #ifdef HAVE_STRINGS_H
    621  1.1  christos # include <strings.h>
    622  1.1  christos #endif
    623  1.1  christos #ifdef HAVE_INTTYPES_H
    624  1.1  christos # include <inttypes.h>
    625  1.1  christos #endif
    626  1.1  christos #ifdef HAVE_STDINT_H
    627  1.1  christos # include <stdint.h>
    628  1.1  christos #endif
    629  1.1  christos #ifdef HAVE_UNISTD_H
    630  1.1  christos # include <unistd.h>
    631  1.1  christos #endif"
    632  1.1  christos 
    633  1.1  christos ac_subst_vars='LTLIBOBJS
    634  1.1  christos LIBOBJS
    635  1.1  christos BUILD_LIBS
    636  1.1  christos BUILD_LDFLAGS
    637  1.1  christos BUILD_CPPFLAGS
    638  1.1  christos BUILD_CFLAGS
    639  1.1  christos BUILD_CC
    640  1.1  christos DLZ_DRIVER_MYSQL_LIBS
    641  1.1  christos DLZ_DRIVER_MYSQL_INCLUDES
    642  1.1  christos DLZ_SYSTEM_TEST
    643  1.1  christos DLZ_DRIVER_OBJS
    644  1.1  christos DLZ_DRIVER_SRCS
    645  1.1  christos DLZ_DRIVER_LIBS
    646  1.1  christos DLZ_DRIVER_INCLUDES
    647  1.1  christos CONTRIB_DLZ
    648  1.1  christos MYSQL_CONFIG
    649  1.1  christos PG_CONFIG
    650  1.1  christos SO_TARGETS
    651  1.1  christos SO_STRIP
    652  1.1  christos SO_LD
    653  1.1  christos SO_LDFLAGS
    654  1.1  christos SO_CFLAGS
    655  1.1  christos SO
    656  1.1  christos BIND9_CONFIGARGS
    657  1.1  christos BIND9_SRCID
    658  1.1  christos BIND9_VERSIONSHORT
    659  1.1  christos BIND9_VERSIONSTRING
    660  1.1  christos BIND9_MAJOR
    661  1.1  christos BIND9_VERSION
    662  1.1  christos BIND9_DESCRIPTION
    663  1.1  christos BIND9_PRODUCT
    664  1.1  christos BIND9_IRS_BUILDINCLUDE
    665  1.1  christos BIND9_BIND9_BUILDINCLUDE
    666  1.1  christos BIND9_NS_BUILDINCLUDE
    667  1.1  christos BIND9_DNS_BUILDINCLUDE
    668  1.1  christos BIND9_ISCCFG_BUILDINCLUDE
    669  1.1  christos BIND9_ISCCC_BUILDINCLUDE
    670  1.1  christos BIND9_ISC_BUILDINCLUDE
    671  1.1  christos BIND9_TOP_BUILDDIR
    672  1.3  christos LD_WRAP_TESTS
    673  1.3  christos KYUA
    674  1.1  christos UNITTESTS
    675  1.3  christos CMOCKA_LIBS
    676  1.3  christos CMOCKA_CFLAGS
    677  1.3  christos LIBIDN2_LDFLAGS
    678  1.1  christos LIBIDN2_LIBS
    679  1.1  christos LIBIDN2_CFLAGS
    680  1.1  christos XSLT_DBLATEX_FASTBOOK
    681  1.1  christos XSLT_DBLATEX_STYLE
    682  1.1  christos XSLT_DOCBOOK_MAKETOC_XHTML
    683  1.1  christos XSLT_DOCBOOK_MAKETOC_HTML
    684  1.1  christos XSLT_DOCBOOK_CHUNKTOC_XHTML
    685  1.1  christos XSLT_DOCBOOK_CHUNKTOC_HTML
    686  1.1  christos XSLT_DOCBOOK_CHUNK_XHTML
    687  1.1  christos XSLT_DOCBOOK_CHUNK_HTML
    688  1.1  christos XSLT_DOCBOOK_STYLE_MAN
    689  1.1  christos XSLT_DOCBOOK_STYLE_XHTML
    690  1.1  christos XSLT_DOCBOOK_STYLE_HTML
    691  1.1  christos CURL
    692  1.1  christos DOXYGEN
    693  1.1  christos XMLLINT
    694  1.1  christos XSLTPROC
    695  1.1  christos PANDOC
    696  1.1  christos W3M
    697  1.1  christos DBLATEX
    698  1.1  christos PDFLATEX
    699  1.1  christos LATEX
    700  1.1  christos DNSTAP_PB_C_H
    701  1.1  christos DNSTAPTARGETS
    702  1.1  christos DNSTAPOBJS
    703  1.1  christos DNSTAPSRCS
    704  1.1  christos DNSTAP
    705  1.1  christos FSTRM_CAPTURE
    706  1.1  christos PROTOC_C
    707  1.1  christos ISC_PLATFORM_HAVESYSUNH
    708  1.3  christos LIBCAP_LIBS
    709  1.1  christos DST_EXTRA_SRCS
    710  1.1  christos DST_EXTRA_OBJS
    711  1.1  christos USE_ISC_SPNEGO
    712  1.1  christos READLINE_LIB
    713  1.1  christos BIND9_CO_RULE
    714  1.1  christos LIBTOOL_MODE_UNINSTALL
    715  1.1  christos LIBTOOL_MODE_LINK
    716  1.1  christos LIBTOOL_MODE_INSTALL
    717  1.1  christos LIBTOOL_MODE_COMPILE
    718  1.1  christos LIBTOOL_MKDEP_SED
    719  1.1  christos SA
    720  1.1  christos A
    721  1.1  christos O
    722  1.1  christos ALWAYS_MAKE_SYMTABLE
    723  1.1  christos MKSYMTBL_PROGRAM
    724  1.1  christos PURIFY
    725  1.1  christos purify_path
    726  1.1  christos MKDEPPROG
    727  1.1  christos MKDEPCFLAGS
    728  1.1  christos MKDEPCC
    729  1.1  christos ZLIB
    730  1.1  christos JSONSTATS
    731  1.1  christos XMLSTATS
    732  1.1  christos NZDTARGETS
    733  1.1  christos NZDSRCS
    734  1.1  christos NZD_TOOLS
    735  1.1  christos DNS_CRYPTO_LIBS
    736  1.1  christos DNS_GSSAPI_LIBS
    737  1.1  christos DST_GSSAPI_INC
    738  1.1  christos USE_GSSAPI
    739  1.1  christos ISC_PLATFORM_KRB5HEADER
    740  1.1  christos ISC_PLATFORM_GSSAPI_KRB5_HEADER
    741  1.1  christos ISC_PLATFORM_GSSAPIHEADER
    742  1.1  christos ISC_PLATFORM_HAVEGSSAPI
    743  1.1  christos KRB5_CONFIG
    744  1.3  christos PKCS11_TOOLS
    745  1.3  christos PKCS11_TEST
    746  1.3  christos OPENSSL_LDFLAGS
    747  1.3  christos OPENSSL_INCLUDES
    748  1.3  christos OPENSSL_LIBS
    749  1.3  christos OPENSSL_CFLAGS
    750  1.3  christos INSTALL_LIBRARY
    751  1.3  christos ALWAYS_DEFINES
    752  1.3  christos PTHREAD_CFLAGS
    753  1.3  christos PTHREAD_LIBS
    754  1.3  christos PTHREAD_CC
    755  1.3  christos ax_pthread_config
    756  1.1  christos GEOIPLINKOBJS
    757  1.1  christos GEOIPLINKSRCS
    758  1.1  christos ISC_PLATFORM_NORETURN_POST
    759  1.1  christos ISC_PLATFORM_NORETURN_PRE
    760  1.1  christos expanded_sysconfdir
    761  1.1  christos PYTHON_INSTALL_LIB
    762  1.1  christos PYTHON_INSTALL_DIR
    763  1.1  christos PYTHON_TOOLS
    764  1.1  christos KEYMGR
    765  1.1  christos COVERAGE
    766  1.1  christos CHECKDS
    767  1.1  christos PYTHON
    768  1.1  christos PERL
    769  1.1  christos ETAGS
    770  1.1  christos LN
    771  1.1  christos ARFLAGS
    772  1.1  christos XTARGETS
    773  1.3  christos PKG_CONFIG_LIBDIR
    774  1.3  christos PKG_CONFIG_PATH
    775  1.3  christos PKG_CONFIG
    776  1.1  christos BACKTRACECFLAGS
    777  1.1  christos CCNOOPT
    778  1.1  christos CCOPT
    779  1.1  christos STD_CWARNINGS
    780  1.1  christos STD_CDEFINES
    781  1.1  christos STD_CINCLUDES
    782  1.1  christos INSTALL_DATA
    783  1.1  christos INSTALL_SCRIPT
    784  1.1  christos INSTALL_PROGRAM
    785  1.1  christos LT_SYS_LIBRARY_PATH
    786  1.1  christos OTOOL64
    787  1.1  christos OTOOL
    788  1.1  christos LIPO
    789  1.1  christos NMEDIT
    790  1.1  christos DSYMUTIL
    791  1.1  christos MANIFEST_TOOL
    792  1.1  christos AWK
    793  1.1  christos RANLIB
    794  1.1  christos STRIP
    795  1.1  christos ac_ct_AR
    796  1.1  christos AR
    797  1.1  christos DLLTOOL
    798  1.1  christos OBJDUMP
    799  1.1  christos LN_S
    800  1.1  christos NM
    801  1.1  christos ac_ct_DUMPBIN
    802  1.1  christos DUMPBIN
    803  1.1  christos LD
    804  1.1  christos FGREP
    805  1.3  christos SED
    806  1.3  christos LIBTOOL
    807  1.3  christos SET_MAKE
    808  1.1  christos EGREP
    809  1.1  christos GREP
    810  1.3  christos CPP
    811  1.1  christos OBJEXT
    812  1.1  christos EXEEXT
    813  1.1  christos ac_ct_CC
    814  1.1  christos CPPFLAGS
    815  1.1  christos LDFLAGS
    816  1.1  christos CFLAGS
    817  1.1  christos CC
    818  1.1  christos host_os
    819  1.1  christos host_vendor
    820  1.1  christos host_cpu
    821  1.1  christos host
    822  1.1  christos build_os
    823  1.1  christos build_vendor
    824  1.1  christos build_cpu
    825  1.1  christos build
    826  1.1  christos target_alias
    827  1.1  christos host_alias
    828  1.1  christos build_alias
    829  1.1  christos LIBS
    830  1.1  christos ECHO_T
    831  1.1  christos ECHO_N
    832  1.1  christos ECHO_C
    833  1.1  christos DEFS
    834  1.1  christos mandir
    835  1.1  christos localedir
    836  1.1  christos libdir
    837  1.1  christos psdir
    838  1.1  christos pdfdir
    839  1.1  christos dvidir
    840  1.1  christos htmldir
    841  1.1  christos infodir
    842  1.1  christos docdir
    843  1.1  christos oldincludedir
    844  1.1  christos includedir
    845  1.1  christos localstatedir
    846  1.1  christos sharedstatedir
    847  1.1  christos sysconfdir
    848  1.1  christos datadir
    849  1.1  christos datarootdir
    850  1.1  christos libexecdir
    851  1.1  christos sbindir
    852  1.1  christos bindir
    853  1.1  christos program_transform_name
    854  1.1  christos prefix
    855  1.1  christos exec_prefix
    856  1.1  christos PACKAGE_URL
    857  1.1  christos PACKAGE_BUGREPORT
    858  1.1  christos PACKAGE_STRING
    859  1.1  christos PACKAGE_VERSION
    860  1.1  christos PACKAGE_TARNAME
    861  1.1  christos PACKAGE_NAME
    862  1.1  christos PATH_SEPARATOR
    863  1.1  christos SHELL'
    864  1.1  christos ac_subst_files='BIND9_MAKE_INCLUDES
    865  1.1  christos BIND9_MAKE_RULES
    866  1.1  christos LIBISC_API
    867  1.1  christos LIBISCCC_API
    868  1.1  christos LIBISCCFG_API
    869  1.1  christos LIBDNS_API
    870  1.1  christos LIBDNS_MAPAPI
    871  1.1  christos LIBBIND9_API
    872  1.1  christos LIBIRS_API
    873  1.1  christos LIBNS_API
    874  1.1  christos DLZ_DRIVER_RULES'
    875  1.1  christos ac_user_opts='
    876  1.1  christos enable_option_checking
    877  1.1  christos enable_shared
    878  1.1  christos enable_static
    879  1.1  christos with_pic
    880  1.1  christos enable_fast_install
    881  1.1  christos with_aix_soname
    882  1.1  christos with_gnu_ld
    883  1.1  christos with_sysroot
    884  1.1  christos enable_libtool_lock
    885  1.1  christos enable_libbind
    886  1.1  christos enable_buffer_useinline
    887  1.1  christos enable_warn_shadow
    888  1.1  christos enable_warn_error
    889  1.1  christos enable_developer
    890  1.3  christos enable_fuzzing
    891  1.1  christos with_python
    892  1.1  christos with_python_install_dir
    893  1.1  christos enable_kqueue
    894  1.1  christos enable_epoll
    895  1.1  christos enable_devpoll
    896  1.1  christos with_geoip
    897  1.1  christos with_locktype
    898  1.1  christos with_libtool
    899  1.3  christos with_openssl
    900  1.3  christos enable_fips_mode
    901  1.3  christos with_cc_alg
    902  1.1  christos enable_native_pkcs11
    903  1.1  christos with_pkcs11
    904  1.3  christos with_gssapi
    905  1.1  christos with_lmdb
    906  1.1  christos with_libxml2
    907  1.1  christos with_libjson
    908  1.1  christos with_zlib
    909  1.1  christos enable_largefile
    910  1.1  christos with_purify
    911  1.1  christos with_gperftools_profiler
    912  1.1  christos enable_backtrace
    913  1.1  christos enable_symtable
    914  1.1  christos enable_tcp_fastopen
    915  1.1  christos with_readline
    916  1.1  christos enable_isc_spnego
    917  1.1  christos enable_chroot
    918  1.1  christos enable_linux_caps
    919  1.1  christos enable_fixed_rrset
    920  1.1  christos enable_rpz_nsip
    921  1.1  christos enable_rpz_nsdname
    922  1.1  christos enable_dnstap
    923  1.1  christos with_protobuf_c
    924  1.1  christos with_libfstrm
    925  1.1  christos with_docbook_xsl
    926  1.1  christos with_libidn2
    927  1.3  christos with_cmocka
    928  1.1  christos with_tuning
    929  1.1  christos enable_querytrace
    930  1.3  christos enable_auto_validation
    931  1.1  christos with_dlopen
    932  1.3  christos enable_dnsrps_dl
    933  1.3  christos with_dnsrps_libname
    934  1.3  christos with_dnsrps_dir
    935  1.3  christos enable_dnsrps
    936  1.1  christos with_dlz_postgres
    937  1.1  christos with_dlz_mysql
    938  1.1  christos with_dlz_bdb
    939  1.1  christos with_dlz_filesystem
    940  1.1  christos with_dlz_ldap
    941  1.1  christos with_dlz_odbc
    942  1.1  christos with_dlz_stub
    943  1.1  christos with_make_clean
    944  1.1  christos enable_full_report
    945  1.1  christos '
    946  1.1  christos       ac_precious_vars='build_alias
    947  1.1  christos host_alias
    948  1.1  christos target_alias
    949  1.1  christos CC
    950  1.1  christos CFLAGS
    951  1.1  christos LDFLAGS
    952  1.1  christos LIBS
    953  1.1  christos CPPFLAGS
    954  1.3  christos CPP
    955  1.1  christos LT_SYS_LIBRARY_PATH
    956  1.3  christos PKG_CONFIG
    957  1.3  christos PKG_CONFIG_PATH
    958  1.3  christos PKG_CONFIG_LIBDIR
    959  1.3  christos OPENSSL_CFLAGS
    960  1.3  christos OPENSSL_LIBS
    961  1.3  christos LIBIDN2_CFLAGS
    962  1.3  christos LIBIDN2_LIBS
    963  1.3  christos CMOCKA_CFLAGS
    964  1.3  christos CMOCKA_LIBS
    965  1.3  christos KYUA'
    966  1.1  christos 
    967  1.1  christos 
    968  1.1  christos # Initialize some variables set by options.
    969  1.1  christos ac_init_help=
    970  1.1  christos ac_init_version=false
    971  1.1  christos ac_unrecognized_opts=
    972  1.1  christos ac_unrecognized_sep=
    973  1.1  christos # The variables have the same names as the options, with
    974  1.1  christos # dashes changed to underlines.
    975  1.1  christos cache_file=/dev/null
    976  1.1  christos exec_prefix=NONE
    977  1.1  christos no_create=
    978  1.1  christos no_recursion=
    979  1.1  christos prefix=NONE
    980  1.1  christos program_prefix=NONE
    981  1.1  christos program_suffix=NONE
    982  1.1  christos program_transform_name=s,x,x,
    983  1.1  christos silent=
    984  1.1  christos site=
    985  1.1  christos srcdir=
    986  1.1  christos verbose=
    987  1.1  christos x_includes=NONE
    988  1.1  christos x_libraries=NONE
    989  1.1  christos 
    990  1.1  christos # Installation directory options.
    991  1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    992  1.1  christos # and all the variables that are supposed to be based on exec_prefix
    993  1.1  christos # by default will actually change.
    994  1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    995  1.1  christos # (The list follows the same order as the GNU Coding Standards.)
    996  1.1  christos bindir='${exec_prefix}/bin'
    997  1.1  christos sbindir='${exec_prefix}/sbin'
    998  1.1  christos libexecdir='${exec_prefix}/libexec'
    999  1.1  christos datarootdir='${prefix}/share'
   1000  1.1  christos datadir='${datarootdir}'
   1001  1.1  christos sysconfdir='${prefix}/etc'
   1002  1.1  christos sharedstatedir='${prefix}/com'
   1003  1.1  christos localstatedir='${prefix}/var'
   1004  1.1  christos includedir='${prefix}/include'
   1005  1.1  christos oldincludedir='/usr/include'
   1006  1.1  christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1007  1.1  christos infodir='${datarootdir}/info'
   1008  1.1  christos htmldir='${docdir}'
   1009  1.1  christos dvidir='${docdir}'
   1010  1.1  christos pdfdir='${docdir}'
   1011  1.1  christos psdir='${docdir}'
   1012  1.1  christos libdir='${exec_prefix}/lib'
   1013  1.1  christos localedir='${datarootdir}/locale'
   1014  1.1  christos mandir='${datarootdir}/man'
   1015  1.1  christos 
   1016  1.1  christos ac_prev=
   1017  1.1  christos ac_dashdash=
   1018  1.1  christos for ac_option
   1019  1.1  christos do
   1020  1.1  christos   # If the previous option needs an argument, assign it.
   1021  1.1  christos   if test -n "$ac_prev"; then
   1022  1.1  christos     eval $ac_prev=\$ac_option
   1023  1.1  christos     ac_prev=
   1024  1.1  christos     continue
   1025  1.1  christos   fi
   1026  1.1  christos 
   1027  1.1  christos   case $ac_option in
   1028  1.1  christos   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1029  1.1  christos   *=)   ac_optarg= ;;
   1030  1.1  christos   *)    ac_optarg=yes ;;
   1031  1.1  christos   esac
   1032  1.1  christos 
   1033  1.1  christos   # Accept the important Cygnus configure options, so we can diagnose typos.
   1034  1.1  christos 
   1035  1.1  christos   case $ac_dashdash$ac_option in
   1036  1.1  christos   --)
   1037  1.1  christos     ac_dashdash=yes ;;
   1038  1.1  christos 
   1039  1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1040  1.1  christos     ac_prev=bindir ;;
   1041  1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1042  1.1  christos     bindir=$ac_optarg ;;
   1043  1.1  christos 
   1044  1.1  christos   -build | --build | --buil | --bui | --bu)
   1045  1.1  christos     ac_prev=build_alias ;;
   1046  1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1047  1.1  christos     build_alias=$ac_optarg ;;
   1048  1.1  christos 
   1049  1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1050  1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1051  1.1  christos     ac_prev=cache_file ;;
   1052  1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1053  1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1054  1.1  christos     cache_file=$ac_optarg ;;
   1055  1.1  christos 
   1056  1.1  christos   --config-cache | -C)
   1057  1.1  christos     cache_file=config.cache ;;
   1058  1.1  christos 
   1059  1.1  christos   -datadir | --datadir | --datadi | --datad)
   1060  1.1  christos     ac_prev=datadir ;;
   1061  1.1  christos   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1062  1.1  christos     datadir=$ac_optarg ;;
   1063  1.1  christos 
   1064  1.1  christos   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1065  1.1  christos   | --dataroo | --dataro | --datar)
   1066  1.1  christos     ac_prev=datarootdir ;;
   1067  1.1  christos   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1068  1.1  christos   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1069  1.1  christos     datarootdir=$ac_optarg ;;
   1070  1.1  christos 
   1071  1.1  christos   -disable-* | --disable-*)
   1072  1.1  christos     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1073  1.1  christos     # Reject names that are not valid shell variable names.
   1074  1.1  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1075  1.1  christos       as_fn_error $? "invalid feature name: $ac_useropt"
   1076  1.1  christos     ac_useropt_orig=$ac_useropt
   1077  1.1  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1078  1.1  christos     case $ac_user_opts in
   1079  1.1  christos       *"
   1080  1.1  christos "enable_$ac_useropt"
   1081  1.1  christos "*) ;;
   1082  1.1  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1083  1.1  christos 	 ac_unrecognized_sep=', ';;
   1084  1.1  christos     esac
   1085  1.1  christos     eval enable_$ac_useropt=no ;;
   1086  1.1  christos 
   1087  1.1  christos   -docdir | --docdir | --docdi | --doc | --do)
   1088  1.1  christos     ac_prev=docdir ;;
   1089  1.1  christos   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1090  1.1  christos     docdir=$ac_optarg ;;
   1091  1.1  christos 
   1092  1.1  christos   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1093  1.1  christos     ac_prev=dvidir ;;
   1094  1.1  christos   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1095  1.1  christos     dvidir=$ac_optarg ;;
   1096  1.1  christos 
   1097  1.1  christos   -enable-* | --enable-*)
   1098  1.1  christos     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1099  1.1  christos     # Reject names that are not valid shell variable names.
   1100  1.1  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1101  1.1  christos       as_fn_error $? "invalid feature name: $ac_useropt"
   1102  1.1  christos     ac_useropt_orig=$ac_useropt
   1103  1.1  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1104  1.1  christos     case $ac_user_opts in
   1105  1.1  christos       *"
   1106  1.1  christos "enable_$ac_useropt"
   1107  1.1  christos "*) ;;
   1108  1.1  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1109  1.1  christos 	 ac_unrecognized_sep=', ';;
   1110  1.1  christos     esac
   1111  1.1  christos     eval enable_$ac_useropt=\$ac_optarg ;;
   1112  1.1  christos 
   1113  1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1114  1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1115  1.1  christos   | --exec | --exe | --ex)
   1116  1.1  christos     ac_prev=exec_prefix ;;
   1117  1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1118  1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1119  1.1  christos   | --exec=* | --exe=* | --ex=*)
   1120  1.1  christos     exec_prefix=$ac_optarg ;;
   1121  1.1  christos 
   1122  1.1  christos   -gas | --gas | --ga | --g)
   1123  1.1  christos     # Obsolete; use --with-gas.
   1124  1.1  christos     with_gas=yes ;;
   1125  1.1  christos 
   1126  1.1  christos   -help | --help | --hel | --he | -h)
   1127  1.1  christos     ac_init_help=long ;;
   1128  1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1129  1.1  christos     ac_init_help=recursive ;;
   1130  1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1131  1.1  christos     ac_init_help=short ;;
   1132  1.1  christos 
   1133  1.1  christos   -host | --host | --hos | --ho)
   1134  1.1  christos     ac_prev=host_alias ;;
   1135  1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
   1136  1.1  christos     host_alias=$ac_optarg ;;
   1137  1.1  christos 
   1138  1.1  christos   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1139  1.1  christos     ac_prev=htmldir ;;
   1140  1.1  christos   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1141  1.1  christos   | --ht=*)
   1142  1.1  christos     htmldir=$ac_optarg ;;
   1143  1.1  christos 
   1144  1.1  christos   -includedir | --includedir | --includedi | --included | --include \
   1145  1.1  christos   | --includ | --inclu | --incl | --inc)
   1146  1.1  christos     ac_prev=includedir ;;
   1147  1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1148  1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1149  1.1  christos     includedir=$ac_optarg ;;
   1150  1.1  christos 
   1151  1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1152  1.1  christos     ac_prev=infodir ;;
   1153  1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1154  1.1  christos     infodir=$ac_optarg ;;
   1155  1.1  christos 
   1156  1.1  christos   -libdir | --libdir | --libdi | --libd)
   1157  1.1  christos     ac_prev=libdir ;;
   1158  1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1159  1.1  christos     libdir=$ac_optarg ;;
   1160  1.1  christos 
   1161  1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1162  1.1  christos   | --libexe | --libex | --libe)
   1163  1.1  christos     ac_prev=libexecdir ;;
   1164  1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1165  1.1  christos   | --libexe=* | --libex=* | --libe=*)
   1166  1.1  christos     libexecdir=$ac_optarg ;;
   1167  1.1  christos 
   1168  1.1  christos   -localedir | --localedir | --localedi | --localed | --locale)
   1169  1.1  christos     ac_prev=localedir ;;
   1170  1.1  christos   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1171  1.1  christos     localedir=$ac_optarg ;;
   1172  1.1  christos 
   1173  1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1174  1.1  christos   | --localstate | --localstat | --localsta | --localst | --locals)
   1175  1.1  christos     ac_prev=localstatedir ;;
   1176  1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1177  1.1  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1178  1.1  christos     localstatedir=$ac_optarg ;;
   1179  1.1  christos 
   1180  1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1181  1.1  christos     ac_prev=mandir ;;
   1182  1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1183  1.1  christos     mandir=$ac_optarg ;;
   1184  1.1  christos 
   1185  1.1  christos   -nfp | --nfp | --nf)
   1186  1.1  christos     # Obsolete; use --without-fp.
   1187  1.1  christos     with_fp=no ;;
   1188  1.1  christos 
   1189  1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1190  1.1  christos   | --no-cr | --no-c | -n)
   1191  1.1  christos     no_create=yes ;;
   1192  1.1  christos 
   1193  1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1194  1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1195  1.1  christos     no_recursion=yes ;;
   1196  1.1  christos 
   1197  1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1198  1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1199  1.1  christos   | --oldin | --oldi | --old | --ol | --o)
   1200  1.1  christos     ac_prev=oldincludedir ;;
   1201  1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1202  1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1203  1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1204  1.1  christos     oldincludedir=$ac_optarg ;;
   1205  1.1  christos 
   1206  1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1207  1.1  christos     ac_prev=prefix ;;
   1208  1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1209  1.1  christos     prefix=$ac_optarg ;;
   1210  1.1  christos 
   1211  1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1212  1.1  christos   | --program-pre | --program-pr | --program-p)
   1213  1.1  christos     ac_prev=program_prefix ;;
   1214  1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1215  1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1216  1.1  christos     program_prefix=$ac_optarg ;;
   1217  1.1  christos 
   1218  1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1219  1.1  christos   | --program-suf | --program-su | --program-s)
   1220  1.1  christos     ac_prev=program_suffix ;;
   1221  1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1222  1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1223  1.1  christos     program_suffix=$ac_optarg ;;
   1224  1.1  christos 
   1225  1.1  christos   -program-transform-name | --program-transform-name \
   1226  1.1  christos   | --program-transform-nam | --program-transform-na \
   1227  1.1  christos   | --program-transform-n | --program-transform- \
   1228  1.1  christos   | --program-transform | --program-transfor \
   1229  1.1  christos   | --program-transfo | --program-transf \
   1230  1.1  christos   | --program-trans | --program-tran \
   1231  1.1  christos   | --progr-tra | --program-tr | --program-t)
   1232  1.1  christos     ac_prev=program_transform_name ;;
   1233  1.1  christos   -program-transform-name=* | --program-transform-name=* \
   1234  1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
   1235  1.1  christos   | --program-transform-n=* | --program-transform-=* \
   1236  1.1  christos   | --program-transform=* | --program-transfor=* \
   1237  1.1  christos   | --program-transfo=* | --program-transf=* \
   1238  1.1  christos   | --program-trans=* | --program-tran=* \
   1239  1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
   1240  1.1  christos     program_transform_name=$ac_optarg ;;
   1241  1.1  christos 
   1242  1.1  christos   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1243  1.1  christos     ac_prev=pdfdir ;;
   1244  1.1  christos   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1245  1.1  christos     pdfdir=$ac_optarg ;;
   1246  1.1  christos 
   1247  1.1  christos   -psdir | --psdir | --psdi | --psd | --ps)
   1248  1.1  christos     ac_prev=psdir ;;
   1249  1.1  christos   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1250  1.1  christos     psdir=$ac_optarg ;;
   1251  1.1  christos 
   1252  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1253  1.1  christos   | -silent | --silent | --silen | --sile | --sil)
   1254  1.1  christos     silent=yes ;;
   1255  1.1  christos 
   1256  1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1257  1.1  christos     ac_prev=sbindir ;;
   1258  1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1259  1.1  christos   | --sbi=* | --sb=*)
   1260  1.1  christos     sbindir=$ac_optarg ;;
   1261  1.1  christos 
   1262  1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1263  1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1264  1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
   1265  1.1  christos   | --sha | --sh)
   1266  1.1  christos     ac_prev=sharedstatedir ;;
   1267  1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1268  1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1269  1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1270  1.1  christos   | --sha=* | --sh=*)
   1271  1.1  christos     sharedstatedir=$ac_optarg ;;
   1272  1.1  christos 
   1273  1.1  christos   -site | --site | --sit)
   1274  1.1  christos     ac_prev=site ;;
   1275  1.1  christos   -site=* | --site=* | --sit=*)
   1276  1.1  christos     site=$ac_optarg ;;
   1277  1.1  christos 
   1278  1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1279  1.1  christos     ac_prev=srcdir ;;
   1280  1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1281  1.1  christos     srcdir=$ac_optarg ;;
   1282  1.1  christos 
   1283  1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1284  1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
   1285  1.1  christos     ac_prev=sysconfdir ;;
   1286  1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1287  1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1288  1.1  christos     sysconfdir=$ac_optarg ;;
   1289  1.1  christos 
   1290  1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
   1291  1.1  christos     ac_prev=target_alias ;;
   1292  1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1293  1.1  christos     target_alias=$ac_optarg ;;
   1294  1.1  christos 
   1295  1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1296  1.1  christos     verbose=yes ;;
   1297  1.1  christos 
   1298  1.1  christos   -version | --version | --versio | --versi | --vers | -V)
   1299  1.1  christos     ac_init_version=: ;;
   1300  1.1  christos 
   1301  1.1  christos   -with-* | --with-*)
   1302  1.1  christos     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1303  1.1  christos     # Reject names that are not valid shell variable names.
   1304  1.1  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1305  1.1  christos       as_fn_error $? "invalid package name: $ac_useropt"
   1306  1.1  christos     ac_useropt_orig=$ac_useropt
   1307  1.1  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1308  1.1  christos     case $ac_user_opts in
   1309  1.1  christos       *"
   1310  1.1  christos "with_$ac_useropt"
   1311  1.1  christos "*) ;;
   1312  1.1  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1313  1.1  christos 	 ac_unrecognized_sep=', ';;
   1314  1.1  christos     esac
   1315  1.1  christos     eval with_$ac_useropt=\$ac_optarg ;;
   1316  1.1  christos 
   1317  1.1  christos   -without-* | --without-*)
   1318  1.1  christos     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1319  1.1  christos     # Reject names that are not valid shell variable names.
   1320  1.1  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1321  1.1  christos       as_fn_error $? "invalid package name: $ac_useropt"
   1322  1.1  christos     ac_useropt_orig=$ac_useropt
   1323  1.1  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1324  1.1  christos     case $ac_user_opts in
   1325  1.1  christos       *"
   1326  1.1  christos "with_$ac_useropt"
   1327  1.1  christos "*) ;;
   1328  1.1  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1329  1.1  christos 	 ac_unrecognized_sep=', ';;
   1330  1.1  christos     esac
   1331  1.1  christos     eval with_$ac_useropt=no ;;
   1332  1.1  christos 
   1333  1.1  christos   --x)
   1334  1.1  christos     # Obsolete; use --with-x.
   1335  1.1  christos     with_x=yes ;;
   1336  1.1  christos 
   1337  1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1338  1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
   1339  1.1  christos     ac_prev=x_includes ;;
   1340  1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1341  1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1342  1.1  christos     x_includes=$ac_optarg ;;
   1343  1.1  christos 
   1344  1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1345  1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1346  1.1  christos     ac_prev=x_libraries ;;
   1347  1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1348  1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1349  1.1  christos     x_libraries=$ac_optarg ;;
   1350  1.1  christos 
   1351  1.1  christos   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1352  1.1  christos Try \`$0 --help' for more information"
   1353  1.1  christos     ;;
   1354  1.1  christos 
   1355  1.1  christos   *=*)
   1356  1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1357  1.1  christos     # Reject names that are not valid shell variable names.
   1358  1.1  christos     case $ac_envvar in #(
   1359  1.1  christos       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1360  1.1  christos       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1361  1.1  christos     esac
   1362  1.1  christos     eval $ac_envvar=\$ac_optarg
   1363  1.1  christos     export $ac_envvar ;;
   1364  1.1  christos 
   1365  1.1  christos   *)
   1366  1.1  christos     # FIXME: should be removed in autoconf 3.0.
   1367  1.1  christos     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1368  1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1369  1.1  christos       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1370  1.1  christos     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1371  1.1  christos     ;;
   1372  1.1  christos 
   1373  1.1  christos   esac
   1374  1.1  christos done
   1375  1.1  christos 
   1376  1.1  christos if test -n "$ac_prev"; then
   1377  1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1378  1.1  christos   as_fn_error $? "missing argument to $ac_option"
   1379  1.1  christos fi
   1380  1.1  christos 
   1381  1.1  christos if test -n "$ac_unrecognized_opts"; then
   1382  1.1  christos   case $enable_option_checking in
   1383  1.1  christos     no) ;;
   1384  1.1  christos     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1385  1.1  christos     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1386  1.1  christos   esac
   1387  1.1  christos fi
   1388  1.1  christos 
   1389  1.1  christos # Check all directory arguments for consistency.
   1390  1.1  christos for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1391  1.1  christos 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1392  1.1  christos 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1393  1.1  christos 		libdir localedir mandir
   1394  1.1  christos do
   1395  1.1  christos   eval ac_val=\$$ac_var
   1396  1.1  christos   # Remove trailing slashes.
   1397  1.1  christos   case $ac_val in
   1398  1.1  christos     */ )
   1399  1.1  christos       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1400  1.1  christos       eval $ac_var=\$ac_val;;
   1401  1.1  christos   esac
   1402  1.1  christos   # Be sure to have absolute directory names.
   1403  1.1  christos   case $ac_val in
   1404  1.1  christos     [\\/$]* | ?:[\\/]* )  continue;;
   1405  1.1  christos     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1406  1.1  christos   esac
   1407  1.1  christos   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1408  1.1  christos done
   1409  1.1  christos 
   1410  1.1  christos # There might be people who depend on the old broken behavior: `$host'
   1411  1.1  christos # used to hold the argument of --host etc.
   1412  1.1  christos # FIXME: To remove some day.
   1413  1.1  christos build=$build_alias
   1414  1.1  christos host=$host_alias
   1415  1.1  christos target=$target_alias
   1416  1.1  christos 
   1417  1.1  christos # FIXME: To remove some day.
   1418  1.1  christos if test "x$host_alias" != x; then
   1419  1.1  christos   if test "x$build_alias" = x; then
   1420  1.1  christos     cross_compiling=maybe
   1421  1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
   1422  1.1  christos     cross_compiling=yes
   1423  1.1  christos   fi
   1424  1.1  christos fi
   1425  1.1  christos 
   1426  1.1  christos ac_tool_prefix=
   1427  1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1428  1.1  christos 
   1429  1.1  christos test "$silent" = yes && exec 6>/dev/null
   1430  1.1  christos 
   1431  1.1  christos 
   1432  1.1  christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1433  1.1  christos ac_ls_di=`ls -di .` &&
   1434  1.1  christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1435  1.1  christos   as_fn_error $? "working directory cannot be determined"
   1436  1.1  christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1437  1.1  christos   as_fn_error $? "pwd does not report name of working directory"
   1438  1.1  christos 
   1439  1.1  christos 
   1440  1.1  christos # Find the source files, if location was not specified.
   1441  1.1  christos if test -z "$srcdir"; then
   1442  1.1  christos   ac_srcdir_defaulted=yes
   1443  1.1  christos   # Try the directory containing this script, then the parent directory.
   1444  1.1  christos   ac_confdir=`$as_dirname -- "$as_myself" ||
   1445  1.1  christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1446  1.1  christos 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1447  1.1  christos 	 X"$as_myself" : 'X\(//\)$' \| \
   1448  1.1  christos 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1449  1.1  christos $as_echo X"$as_myself" |
   1450  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1451  1.1  christos 	    s//\1/
   1452  1.1  christos 	    q
   1453  1.1  christos 	  }
   1454  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   1455  1.1  christos 	    s//\1/
   1456  1.1  christos 	    q
   1457  1.1  christos 	  }
   1458  1.1  christos 	  /^X\(\/\/\)$/{
   1459  1.1  christos 	    s//\1/
   1460  1.1  christos 	    q
   1461  1.1  christos 	  }
   1462  1.1  christos 	  /^X\(\/\).*/{
   1463  1.1  christos 	    s//\1/
   1464  1.1  christos 	    q
   1465  1.1  christos 	  }
   1466  1.1  christos 	  s/.*/./; q'`
   1467  1.1  christos   srcdir=$ac_confdir
   1468  1.1  christos   if test ! -r "$srcdir/$ac_unique_file"; then
   1469  1.1  christos     srcdir=..
   1470  1.1  christos   fi
   1471  1.1  christos else
   1472  1.1  christos   ac_srcdir_defaulted=no
   1473  1.1  christos fi
   1474  1.1  christos if test ! -r "$srcdir/$ac_unique_file"; then
   1475  1.1  christos   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1476  1.1  christos   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1477  1.1  christos fi
   1478  1.1  christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1479  1.1  christos ac_abs_confdir=`(
   1480  1.1  christos 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1481  1.1  christos 	pwd)`
   1482  1.1  christos # When building in place, set srcdir=.
   1483  1.1  christos if test "$ac_abs_confdir" = "$ac_pwd"; then
   1484  1.1  christos   srcdir=.
   1485  1.1  christos fi
   1486  1.1  christos # Remove unnecessary trailing slashes from srcdir.
   1487  1.1  christos # Double slashes in file names in object file debugging info
   1488  1.1  christos # mess up M-x gdb in Emacs.
   1489  1.1  christos case $srcdir in
   1490  1.1  christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1491  1.1  christos esac
   1492  1.1  christos for ac_var in $ac_precious_vars; do
   1493  1.1  christos   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1494  1.1  christos   eval ac_env_${ac_var}_value=\$${ac_var}
   1495  1.1  christos   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1496  1.1  christos   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1497  1.1  christos done
   1498  1.1  christos 
   1499  1.1  christos #
   1500  1.1  christos # Report the --help message.
   1501  1.1  christos #
   1502  1.1  christos if test "$ac_init_help" = "long"; then
   1503  1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
   1504  1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
   1505  1.1  christos   cat <<_ACEOF
   1506  1.3  christos \`configure' configures BIND 9.13 to adapt to many kinds of systems.
   1507  1.1  christos 
   1508  1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
   1509  1.1  christos 
   1510  1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1511  1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
   1512  1.1  christos 
   1513  1.1  christos Defaults for the options are specified in brackets.
   1514  1.1  christos 
   1515  1.1  christos Configuration:
   1516  1.1  christos   -h, --help              display this help and exit
   1517  1.1  christos       --help=short        display options specific to this package
   1518  1.1  christos       --help=recursive    display the short help of all the included packages
   1519  1.1  christos   -V, --version           display version information and exit
   1520  1.1  christos   -q, --quiet, --silent   do not print \`checking ...' messages
   1521  1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
   1522  1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
   1523  1.1  christos   -n, --no-create         do not create output files
   1524  1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1525  1.1  christos 
   1526  1.1  christos Installation directories:
   1527  1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
   1528  1.1  christos                           [$ac_default_prefix]
   1529  1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1530  1.1  christos                           [PREFIX]
   1531  1.1  christos 
   1532  1.1  christos By default, \`make install' will install all the files in
   1533  1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1534  1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1535  1.1  christos for instance \`--prefix=\$HOME'.
   1536  1.1  christos 
   1537  1.1  christos For better control, use the options below.
   1538  1.1  christos 
   1539  1.1  christos Fine tuning of the installation directories:
   1540  1.1  christos   --bindir=DIR            user executables [EPREFIX/bin]
   1541  1.1  christos   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1542  1.1  christos   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1543  1.1  christos   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1544  1.1  christos   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1545  1.1  christos   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1546  1.1  christos   --libdir=DIR            object code libraries [EPREFIX/lib]
   1547  1.1  christos   --includedir=DIR        C header files [PREFIX/include]
   1548  1.1  christos   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1549  1.1  christos   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1550  1.1  christos   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1551  1.1  christos   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1552  1.1  christos   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1553  1.1  christos   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1554  1.1  christos   --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
   1555  1.1  christos   --htmldir=DIR           html documentation [DOCDIR]
   1556  1.1  christos   --dvidir=DIR            dvi documentation [DOCDIR]
   1557  1.1  christos   --pdfdir=DIR            pdf documentation [DOCDIR]
   1558  1.1  christos   --psdir=DIR             ps documentation [DOCDIR]
   1559  1.1  christos _ACEOF
   1560  1.1  christos 
   1561  1.1  christos   cat <<\_ACEOF
   1562  1.1  christos 
   1563  1.1  christos System types:
   1564  1.1  christos   --build=BUILD     configure for building on BUILD [guessed]
   1565  1.1  christos   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1566  1.1  christos _ACEOF
   1567  1.1  christos fi
   1568  1.1  christos 
   1569  1.1  christos if test -n "$ac_init_help"; then
   1570  1.1  christos   case $ac_init_help in
   1571  1.3  christos      short | recursive ) echo "Configuration of BIND 9.13:";;
   1572  1.1  christos    esac
   1573  1.1  christos   cat <<\_ACEOF
   1574  1.1  christos 
   1575  1.1  christos Optional Features:
   1576  1.1  christos   --disable-option-checking  ignore unrecognized --enable/--with options
   1577  1.1  christos   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1578  1.1  christos   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1579  1.1  christos   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1580  1.1  christos   --enable-static[=PKGS]  build static libraries [default=yes]
   1581  1.1  christos   --enable-fast-install[=PKGS]
   1582  1.1  christos                           optimize for fast installation [default=yes]
   1583  1.1  christos   --disable-libtool-lock  avoid locking (might break parallel builds)
   1584  1.1  christos   --enable-libbind        deprecated
   1585  1.1  christos   --enable-buffer-useinline
   1586  1.1  christos                           define ISC_BUFFER_USEINLINE when compiling
   1587  1.1  christos                           [default=yes]
   1588  1.1  christos   --enable-warn-shadow    turn on -Wshadow when compiling
   1589  1.1  christos   --enable-warn-error     turn on -Werror when compiling
   1590  1.1  christos   --enable-developer      enable developer build settings
   1591  1.3  christos   --enable-fuzzing=<afl|libfuzzer>
   1592  1.3  christos                           Enable fuzzing using American Fuzzy Lop or libFuzzer
   1593  1.3  christos                           (default=no)
   1594  1.1  christos   --enable-kqueue         use BSD kqueue when available [default=yes]
   1595  1.1  christos   --enable-epoll          use Linux epoll when available [default=auto]
   1596  1.1  christos   --enable-devpoll        use /dev/poll when available [default=yes]
   1597  1.3  christos   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1598  1.3  christos   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1599  1.1  christos   --enable-largefile      64-bit file support
   1600  1.1  christos   --enable-backtrace      log stack backtrace on abort [default=yes]
   1601  1.1  christos   --enable-symtable       use internal symbol table for backtrace
   1602  1.1  christos                           [all|minimal(default)|none]
   1603  1.3  christos   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1604  1.1  christos   --disable-isc-spnego    use SPNEGO from GSSAPI library
   1605  1.1  christos   --disable-chroot        disable chroot
   1606  1.3  christos   --disable-linux-caps    disable Linux capabilities
   1607  1.1  christos   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1608  1.1  christos   --disable-rpz-nsip      disable rpz nsip rules [default=enabled]
   1609  1.1  christos   --disable-rpz-nsdname   disable rpz nsdname rules [default=enabled]
   1610  1.3  christos   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1611  1.3  christos   --enable-querytrace     enable very verbose query trace logging [default=no]
   1612  1.3  christos   --enable-auto-validation
   1613  1.3  christos                           turn on DNSSEC validation by default, using the IANA
   1614  1.3  christos                           root key [default=yes]
   1615  1.1  christos   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1616  1.1  christos                           [default=$librpz_dl]
   1617  1.1  christos   --enable-dnsrps         enable DNS Response Policy Service API
   1618  1.1  christos   --enable-full-report    report values of all configure options
   1619  1.1  christos 
   1620  1.1  christos Optional Packages:
   1621  1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1622  1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1623  1.1  christos   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1624  1.1  christos                           both]
   1625  1.1  christos   --with-aix-soname=aix|svr4|both
   1626  1.1  christos                           shared library versioning (aka "SONAME") variant to
   1627  1.1  christos                           provide on AIX, [default=aix].
   1628  1.1  christos   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1629  1.1  christos   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1630  1.1  christos                           compiler's sysroot if not specified).
   1631  1.3  christos   --with-python=PATH      specify path to Python interpreter
   1632  1.1  christos   --with-python-install-dir=PATH
   1633  1.1  christos                           installation directory for Python modules
   1634  1.1  christos   --with-geoip=PATH       Build with GeoIP support (yes|no|path)
   1635  1.3  christos   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1636  1.3  christos   --with-libtool          use GNU libtool
   1637  1.3  christos   --with-openssl=DIR      root of the OpenSSL directory
   1638  1.3  christos   --with-cc-alg=ALG       choose the algorithm for Client Cookie
   1639  1.3  christos                           [aes|sha1|sha256] (default is aes)
   1640  1.3  christos   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1641  1.3  christos                           PKCS11 provider)
   1642  1.1  christos   --with-gssapi=PATH|/path/krb5-config
   1643  1.1  christos                           Specify path for system-supplied GSSAPI
   1644  1.1  christos                           [default=yes]
   1645  1.1  christos   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1646  1.1  christos   --with-libxml2=PATH     build with libxml2 library [yes|no|path]
   1647  1.1  christos   --with-libjson=PATH     build with libjson0 library [yes|no|path]
   1648  1.1  christos   --with-zlib=PATH        build with zlib for HTTP compression [default=yes]
   1649  1.1  christos   --with-purify=PATH      use Rational purify
   1650  1.1  christos   --with-gperftools-profiler
   1651  1.1  christos                           use gperftools CPU profiler
   1652  1.1  christos   --with-readline=LIBSPEC specify readline library [default auto]
   1653  1.1  christos   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1654  1.1  christos   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1655  1.1  christos   --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
   1656  1.3  christos   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1657  1.3  christos                           [yes|no(default)|path]
   1658  1.3  christos   --with-cmocka=no        enable cmocka based tests (default is no)
   1659  1.1  christos   --with-tuning=ARG       Specify server tuning (large or default)
   1660  1.3  christos   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1661  1.3  christos   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1662  1.3  christos   --with-dnsrps-dir       path to DNSRPS provider library
   1663  1.1  christos   --with-dlz-postgres=PATH
   1664  1.1  christos                           Build with Postgres DLZ driver [yes|no|path].
   1665  1.1  christos                           (Required to use Postgres with DLZ)
   1666  1.1  christos   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1667  1.1  christos                           to use MySQL with DLZ)
   1668  1.1  christos   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1669  1.1  christos                           (Required to use Berkeley DB with DLZ)
   1670  1.1  christos   --with-dlz-filesystem=ARG
   1671  1.1  christos                           Build with filesystem DLZ driver [yes|no]. (Required
   1672  1.1  christos                           to use file system driver with DLZ)
   1673  1.1  christos   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1674  1.1  christos                           to use LDAP with DLZ)
   1675  1.1  christos   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1676  1.1  christos                           to use ODBC with DLZ)
   1677  1.1  christos   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1678  1.1  christos                           use stub driver with DLZ)
   1679  1.1  christos   --with-make-clean       run "make clean" at end of configure [yes|no]
   1680  1.1  christos 
   1681  1.1  christos Some influential environment variables:
   1682  1.1  christos   CC          C compiler command
   1683  1.1  christos   CFLAGS      C compiler flags
   1684  1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1685  1.1  christos               nonstandard directory <lib dir>
   1686  1.1  christos   LIBS        libraries to pass to the linker, e.g. -l<library>
   1687  1.1  christos   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1688  1.1  christos               you have headers in a nonstandard directory <include dir>
   1689  1.3  christos   CPP         C preprocessor
   1690  1.1  christos   LT_SYS_LIBRARY_PATH
   1691  1.1  christos               User-defined run-time library search path.
   1692  1.3  christos   PKG_CONFIG  path to pkg-config utility
   1693  1.3  christos   PKG_CONFIG_PATH
   1694  1.3  christos               directories to add to pkg-config's search path
   1695  1.3  christos   PKG_CONFIG_LIBDIR
   1696  1.3  christos               path overriding pkg-config's built-in search path
   1697  1.3  christos   OPENSSL_CFLAGS
   1698  1.3  christos               C compiler flags for OPENSSL, overriding pkg-config
   1699  1.3  christos   OPENSSL_LIBS
   1700  1.3  christos               linker flags for OPENSSL, overriding pkg-config
   1701  1.3  christos   LIBIDN2_CFLAGS
   1702  1.3  christos               C compiler flags for LIBIDN2, overriding pkg-config
   1703  1.3  christos   LIBIDN2_LIBS
   1704  1.3  christos               linker flags for LIBIDN2, overriding pkg-config
   1705  1.3  christos   CMOCKA_CFLAGS
   1706  1.3  christos               C compiler flags for CMOCKA, overriding pkg-config
   1707  1.3  christos   CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
   1708  1.3  christos   KYUA        path to kyua execution engine
   1709  1.1  christos 
   1710  1.1  christos Use these variables to override the choices made by `configure' or to help
   1711  1.1  christos it to find libraries and programs with nonstandard names/locations.
   1712  1.1  christos 
   1713  1.1  christos Report bugs to <info (at] isc.org>.
   1714  1.1  christos BIND home page: <https://www.isc.org/downloads/BIND/>.
   1715  1.1  christos _ACEOF
   1716  1.1  christos ac_status=$?
   1717  1.1  christos fi
   1718  1.1  christos 
   1719  1.1  christos if test "$ac_init_help" = "recursive"; then
   1720  1.1  christos   # If there are subdirs, report their specific --help.
   1721  1.1  christos   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1722  1.1  christos     test -d "$ac_dir" ||
   1723  1.1  christos       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1724  1.1  christos       continue
   1725  1.1  christos     ac_builddir=.
   1726  1.1  christos 
   1727  1.1  christos case "$ac_dir" in
   1728  1.1  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1729  1.1  christos *)
   1730  1.1  christos   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1731  1.1  christos   # A ".." for each directory in $ac_dir_suffix.
   1732  1.1  christos   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1733  1.1  christos   case $ac_top_builddir_sub in
   1734  1.1  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1735  1.1  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1736  1.1  christos   esac ;;
   1737  1.1  christos esac
   1738  1.1  christos ac_abs_top_builddir=$ac_pwd
   1739  1.1  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1740  1.1  christos # for backward compatibility:
   1741  1.1  christos ac_top_builddir=$ac_top_build_prefix
   1742  1.1  christos 
   1743  1.1  christos case $srcdir in
   1744  1.1  christos   .)  # We are building in place.
   1745  1.1  christos     ac_srcdir=.
   1746  1.1  christos     ac_top_srcdir=$ac_top_builddir_sub
   1747  1.1  christos     ac_abs_top_srcdir=$ac_pwd ;;
   1748  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   1749  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   1750  1.1  christos     ac_top_srcdir=$srcdir
   1751  1.1  christos     ac_abs_top_srcdir=$srcdir ;;
   1752  1.1  christos   *) # Relative name.
   1753  1.1  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1754  1.1  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1755  1.1  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1756  1.1  christos esac
   1757  1.1  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1758  1.1  christos 
   1759  1.1  christos     cd "$ac_dir" || { ac_status=$?; continue; }
   1760  1.1  christos     # Check for guested configure.
   1761  1.1  christos     if test -f "$ac_srcdir/configure.gnu"; then
   1762  1.1  christos       echo &&
   1763  1.1  christos       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1764  1.1  christos     elif test -f "$ac_srcdir/configure"; then
   1765  1.1  christos       echo &&
   1766  1.1  christos       $SHELL "$ac_srcdir/configure" --help=recursive
   1767  1.1  christos     else
   1768  1.1  christos       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1769  1.1  christos     fi || ac_status=$?
   1770  1.1  christos     cd "$ac_pwd" || { ac_status=$?; break; }
   1771  1.1  christos   done
   1772  1.1  christos fi
   1773  1.1  christos 
   1774  1.1  christos test -n "$ac_init_help" && exit $ac_status
   1775  1.1  christos if $ac_init_version; then
   1776  1.1  christos   cat <<\_ACEOF
   1777  1.3  christos BIND configure 9.13
   1778  1.1  christos generated by GNU Autoconf 2.69
   1779  1.1  christos 
   1780  1.1  christos Copyright (C) 2012 Free Software Foundation, Inc.
   1781  1.1  christos This configure script is free software; the Free Software Foundation
   1782  1.1  christos gives unlimited permission to copy, distribute and modify it.
   1783  1.1  christos _ACEOF
   1784  1.1  christos   exit
   1785  1.1  christos fi
   1786  1.1  christos 
   1787  1.1  christos ## ------------------------ ##
   1788  1.1  christos ## Autoconf initialization. ##
   1789  1.1  christos ## ------------------------ ##
   1790  1.1  christos 
   1791  1.1  christos # ac_fn_c_try_compile LINENO
   1792  1.1  christos # --------------------------
   1793  1.1  christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1794  1.1  christos ac_fn_c_try_compile ()
   1795  1.1  christos {
   1796  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1797  1.1  christos   rm -f conftest.$ac_objext
   1798  1.1  christos   if { { ac_try="$ac_compile"
   1799  1.1  christos case "(($ac_try" in
   1800  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1801  1.1  christos   *) ac_try_echo=$ac_try;;
   1802  1.1  christos esac
   1803  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1804  1.1  christos $as_echo "$ac_try_echo"; } >&5
   1805  1.1  christos   (eval "$ac_compile") 2>conftest.err
   1806  1.1  christos   ac_status=$?
   1807  1.1  christos   if test -s conftest.err; then
   1808  1.1  christos     grep -v '^ *+' conftest.err >conftest.er1
   1809  1.1  christos     cat conftest.er1 >&5
   1810  1.1  christos     mv -f conftest.er1 conftest.err
   1811  1.1  christos   fi
   1812  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1813  1.1  christos   test $ac_status = 0; } && {
   1814  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   1815  1.1  christos 	 test ! -s conftest.err
   1816  1.1  christos        } && test -s conftest.$ac_objext; then :
   1817  1.1  christos   ac_retval=0
   1818  1.1  christos else
   1819  1.1  christos   $as_echo "$as_me: failed program was:" >&5
   1820  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   1821  1.1  christos 
   1822  1.1  christos 	ac_retval=1
   1823  1.1  christos fi
   1824  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1825  1.1  christos   as_fn_set_status $ac_retval
   1826  1.1  christos 
   1827  1.1  christos } # ac_fn_c_try_compile
   1828  1.1  christos 
   1829  1.3  christos # ac_fn_c_try_cpp LINENO
   1830  1.3  christos # ----------------------
   1831  1.3  christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1832  1.3  christos ac_fn_c_try_cpp ()
   1833  1.1  christos {
   1834  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1835  1.3  christos   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1836  1.1  christos case "(($ac_try" in
   1837  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1838  1.1  christos   *) ac_try_echo=$ac_try;;
   1839  1.1  christos esac
   1840  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1841  1.1  christos $as_echo "$ac_try_echo"; } >&5
   1842  1.3  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1843  1.1  christos   ac_status=$?
   1844  1.1  christos   if test -s conftest.err; then
   1845  1.1  christos     grep -v '^ *+' conftest.err >conftest.er1
   1846  1.1  christos     cat conftest.er1 >&5
   1847  1.1  christos     mv -f conftest.er1 conftest.err
   1848  1.1  christos   fi
   1849  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1850  1.3  christos   test $ac_status = 0; } > conftest.i && {
   1851  1.3  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1852  1.1  christos 	 test ! -s conftest.err
   1853  1.1  christos        }; then :
   1854  1.1  christos   ac_retval=0
   1855  1.1  christos else
   1856  1.1  christos   $as_echo "$as_me: failed program was:" >&5
   1857  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   1858  1.1  christos 
   1859  1.3  christos     ac_retval=1
   1860  1.1  christos fi
   1861  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1862  1.1  christos   as_fn_set_status $ac_retval
   1863  1.1  christos 
   1864  1.3  christos } # ac_fn_c_try_cpp
   1865  1.1  christos 
   1866  1.3  christos # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1867  1.1  christos # -------------------------------------------------------
   1868  1.3  christos # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1869  1.3  christos # the include files in INCLUDES and setting the cache variable VAR
   1870  1.3  christos # accordingly.
   1871  1.3  christos ac_fn_c_check_header_mongrel ()
   1872  1.1  christos {
   1873  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1874  1.3  christos   if eval \${$3+:} false; then :
   1875  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1876  1.1  christos $as_echo_n "checking for $2... " >&6; }
   1877  1.1  christos if eval \${$3+:} false; then :
   1878  1.1  christos   $as_echo_n "(cached) " >&6
   1879  1.3  christos fi
   1880  1.3  christos eval ac_res=\$$3
   1881  1.3  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1882  1.3  christos $as_echo "$ac_res" >&6; }
   1883  1.1  christos else
   1884  1.3  christos   # Is the header compilable?
   1885  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1886  1.3  christos $as_echo_n "checking $2 usability... " >&6; }
   1887  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1888  1.1  christos /* end confdefs.h.  */
   1889  1.1  christos $4
   1890  1.1  christos #include <$2>
   1891  1.1  christos _ACEOF
   1892  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   1893  1.3  christos   ac_header_compiler=yes
   1894  1.1  christos else
   1895  1.3  christos   ac_header_compiler=no
   1896  1.1  christos fi
   1897  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1898  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1899  1.3  christos $as_echo "$ac_header_compiler" >&6; }
   1900  1.3  christos 
   1901  1.3  christos # Is the header present?
   1902  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1903  1.3  christos $as_echo_n "checking $2 presence... " >&6; }
   1904  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1905  1.3  christos /* end confdefs.h.  */
   1906  1.3  christos #include <$2>
   1907  1.3  christos _ACEOF
   1908  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   1909  1.3  christos   ac_header_preproc=yes
   1910  1.3  christos else
   1911  1.3  christos   ac_header_preproc=no
   1912  1.3  christos fi
   1913  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   1914  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1915  1.3  christos $as_echo "$ac_header_preproc" >&6; }
   1916  1.3  christos 
   1917  1.3  christos # So?  What about this header?
   1918  1.3  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1919  1.3  christos   yes:no: )
   1920  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1921  1.3  christos $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1922  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1923  1.3  christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1924  1.3  christos     ;;
   1925  1.3  christos   no:yes:* )
   1926  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1927  1.3  christos $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1928  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1929  1.3  christos $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1930  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1931  1.3  christos $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1932  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1933  1.3  christos $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1934  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1935  1.3  christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1936  1.3  christos ( $as_echo "## --------------------------- ##
   1937  1.3  christos ## Report this to info (at] isc.org ##
   1938  1.3  christos ## --------------------------- ##"
   1939  1.3  christos      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1940  1.3  christos     ;;
   1941  1.3  christos esac
   1942  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1943  1.3  christos $as_echo_n "checking for $2... " >&6; }
   1944  1.3  christos if eval \${$3+:} false; then :
   1945  1.3  christos   $as_echo_n "(cached) " >&6
   1946  1.3  christos else
   1947  1.3  christos   eval "$3=\$ac_header_compiler"
   1948  1.1  christos fi
   1949  1.1  christos eval ac_res=\$$3
   1950  1.1  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1951  1.1  christos $as_echo "$ac_res" >&6; }
   1952  1.1  christos fi
   1953  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1954  1.1  christos 
   1955  1.3  christos } # ac_fn_c_check_header_mongrel
   1956  1.1  christos 
   1957  1.1  christos # ac_fn_c_try_run LINENO
   1958  1.1  christos # ----------------------
   1959  1.1  christos # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1960  1.1  christos # that executables *can* be run.
   1961  1.1  christos ac_fn_c_try_run ()
   1962  1.1  christos {
   1963  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1964  1.1  christos   if { { ac_try="$ac_link"
   1965  1.1  christos case "(($ac_try" in
   1966  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1967  1.1  christos   *) ac_try_echo=$ac_try;;
   1968  1.1  christos esac
   1969  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1970  1.1  christos $as_echo "$ac_try_echo"; } >&5
   1971  1.1  christos   (eval "$ac_link") 2>&5
   1972  1.1  christos   ac_status=$?
   1973  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1974  1.1  christos   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1975  1.1  christos   { { case "(($ac_try" in
   1976  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1977  1.1  christos   *) ac_try_echo=$ac_try;;
   1978  1.1  christos esac
   1979  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1980  1.1  christos $as_echo "$ac_try_echo"; } >&5
   1981  1.1  christos   (eval "$ac_try") 2>&5
   1982  1.1  christos   ac_status=$?
   1983  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1984  1.1  christos   test $ac_status = 0; }; }; then :
   1985  1.1  christos   ac_retval=0
   1986  1.1  christos else
   1987  1.1  christos   $as_echo "$as_me: program exited with status $ac_status" >&5
   1988  1.1  christos        $as_echo "$as_me: failed program was:" >&5
   1989  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   1990  1.1  christos 
   1991  1.1  christos        ac_retval=$ac_status
   1992  1.1  christos fi
   1993  1.1  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1994  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1995  1.1  christos   as_fn_set_status $ac_retval
   1996  1.1  christos 
   1997  1.1  christos } # ac_fn_c_try_run
   1998  1.1  christos 
   1999  1.3  christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2000  1.3  christos # -------------------------------------------------------
   2001  1.3  christos # Tests whether HEADER exists and can be compiled using the include files in
   2002  1.3  christos # INCLUDES, setting the cache variable VAR accordingly.
   2003  1.3  christos ac_fn_c_check_header_compile ()
   2004  1.1  christos {
   2005  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2006  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2007  1.1  christos $as_echo_n "checking for $2... " >&6; }
   2008  1.1  christos if eval \${$3+:} false; then :
   2009  1.1  christos   $as_echo_n "(cached) " >&6
   2010  1.1  christos else
   2011  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2012  1.1  christos /* end confdefs.h.  */
   2013  1.3  christos $4
   2014  1.3  christos #include <$2>
   2015  1.1  christos _ACEOF
   2016  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   2017  1.1  christos   eval "$3=yes"
   2018  1.1  christos else
   2019  1.1  christos   eval "$3=no"
   2020  1.1  christos fi
   2021  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2022  1.1  christos fi
   2023  1.1  christos eval ac_res=\$$3
   2024  1.1  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2025  1.1  christos $as_echo "$ac_res" >&6; }
   2026  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2027  1.1  christos 
   2028  1.3  christos } # ac_fn_c_check_header_compile
   2029  1.3  christos 
   2030  1.3  christos # ac_fn_c_try_link LINENO
   2031  1.3  christos # -----------------------
   2032  1.3  christos # Try to link conftest.$ac_ext, and return whether this succeeded.
   2033  1.3  christos ac_fn_c_try_link ()
   2034  1.3  christos {
   2035  1.3  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2036  1.3  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   2037  1.3  christos   if { { ac_try="$ac_link"
   2038  1.3  christos case "(($ac_try" in
   2039  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2040  1.3  christos   *) ac_try_echo=$ac_try;;
   2041  1.3  christos esac
   2042  1.3  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2043  1.3  christos $as_echo "$ac_try_echo"; } >&5
   2044  1.3  christos   (eval "$ac_link") 2>conftest.err
   2045  1.3  christos   ac_status=$?
   2046  1.3  christos   if test -s conftest.err; then
   2047  1.3  christos     grep -v '^ *+' conftest.err >conftest.er1
   2048  1.3  christos     cat conftest.er1 >&5
   2049  1.3  christos     mv -f conftest.er1 conftest.err
   2050  1.3  christos   fi
   2051  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2052  1.3  christos   test $ac_status = 0; } && {
   2053  1.3  christos 	 test -z "$ac_c_werror_flag" ||
   2054  1.3  christos 	 test ! -s conftest.err
   2055  1.3  christos        } && test -s conftest$ac_exeext && {
   2056  1.3  christos 	 test "$cross_compiling" = yes ||
   2057  1.3  christos 	 test -x conftest$ac_exeext
   2058  1.3  christos        }; then :
   2059  1.3  christos   ac_retval=0
   2060  1.3  christos else
   2061  1.3  christos   $as_echo "$as_me: failed program was:" >&5
   2062  1.3  christos sed 's/^/| /' conftest.$ac_ext >&5
   2063  1.3  christos 
   2064  1.3  christos 	ac_retval=1
   2065  1.3  christos fi
   2066  1.3  christos   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2067  1.3  christos   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2068  1.3  christos   # interfere with the next link command; also delete a directory that is
   2069  1.3  christos   # left behind by Apple's compiler.  We do this before executing the actions.
   2070  1.3  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2071  1.3  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2072  1.3  christos   as_fn_set_status $ac_retval
   2073  1.3  christos 
   2074  1.3  christos } # ac_fn_c_try_link
   2075  1.3  christos 
   2076  1.3  christos # ac_fn_c_check_func LINENO FUNC VAR
   2077  1.3  christos # ----------------------------------
   2078  1.3  christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2079  1.3  christos ac_fn_c_check_func ()
   2080  1.3  christos {
   2081  1.3  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2082  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2083  1.3  christos $as_echo_n "checking for $2... " >&6; }
   2084  1.3  christos if eval \${$3+:} false; then :
   2085  1.3  christos   $as_echo_n "(cached) " >&6
   2086  1.3  christos else
   2087  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2088  1.3  christos /* end confdefs.h.  */
   2089  1.3  christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2090  1.3  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2091  1.3  christos #define $2 innocuous_$2
   2092  1.3  christos 
   2093  1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   2094  1.3  christos     which can conflict with char $2 (); below.
   2095  1.3  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2096  1.3  christos     <limits.h> exists even on freestanding compilers.  */
   2097  1.3  christos 
   2098  1.3  christos #ifdef __STDC__
   2099  1.3  christos # include <limits.h>
   2100  1.3  christos #else
   2101  1.3  christos # include <assert.h>
   2102  1.3  christos #endif
   2103  1.3  christos 
   2104  1.3  christos #undef $2
   2105  1.3  christos 
   2106  1.3  christos /* Override any GCC internal prototype to avoid an error.
   2107  1.3  christos    Use char because int might match the return type of a GCC
   2108  1.3  christos    builtin and then its argument prototype would still apply.  */
   2109  1.3  christos #ifdef __cplusplus
   2110  1.3  christos extern "C"
   2111  1.3  christos #endif
   2112  1.3  christos char $2 ();
   2113  1.3  christos /* The GNU C library defines this for functions which it implements
   2114  1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   2115  1.3  christos     something starting with __ and the normal name is an alias.  */
   2116  1.3  christos #if defined __stub_$2 || defined __stub___$2
   2117  1.3  christos choke me
   2118  1.3  christos #endif
   2119  1.3  christos 
   2120  1.3  christos int
   2121  1.3  christos main ()
   2122  1.3  christos {
   2123  1.3  christos return $2 ();
   2124  1.3  christos   ;
   2125  1.3  christos   return 0;
   2126  1.3  christos }
   2127  1.3  christos _ACEOF
   2128  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   2129  1.3  christos   eval "$3=yes"
   2130  1.3  christos else
   2131  1.3  christos   eval "$3=no"
   2132  1.3  christos fi
   2133  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   2134  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   2135  1.3  christos fi
   2136  1.3  christos eval ac_res=\$$3
   2137  1.3  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2138  1.3  christos $as_echo "$ac_res" >&6; }
   2139  1.3  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2140  1.3  christos 
   2141  1.3  christos } # ac_fn_c_check_func
   2142  1.1  christos 
   2143  1.1  christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2144  1.1  christos # -------------------------------------------
   2145  1.1  christos # Tests whether TYPE exists after having included INCLUDES, setting cache
   2146  1.1  christos # variable VAR accordingly.
   2147  1.1  christos ac_fn_c_check_type ()
   2148  1.1  christos {
   2149  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2150  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2151  1.1  christos $as_echo_n "checking for $2... " >&6; }
   2152  1.1  christos if eval \${$3+:} false; then :
   2153  1.1  christos   $as_echo_n "(cached) " >&6
   2154  1.1  christos else
   2155  1.1  christos   eval "$3=no"
   2156  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2157  1.1  christos /* end confdefs.h.  */
   2158  1.1  christos $4
   2159  1.1  christos int
   2160  1.1  christos main ()
   2161  1.1  christos {
   2162  1.1  christos if (sizeof ($2))
   2163  1.1  christos 	 return 0;
   2164  1.1  christos   ;
   2165  1.1  christos   return 0;
   2166  1.1  christos }
   2167  1.1  christos _ACEOF
   2168  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   2169  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2170  1.1  christos /* end confdefs.h.  */
   2171  1.1  christos $4
   2172  1.1  christos int
   2173  1.1  christos main ()
   2174  1.1  christos {
   2175  1.1  christos if (sizeof (($2)))
   2176  1.1  christos 	    return 0;
   2177  1.1  christos   ;
   2178  1.1  christos   return 0;
   2179  1.1  christos }
   2180  1.1  christos _ACEOF
   2181  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   2182  1.1  christos 
   2183  1.1  christos else
   2184  1.1  christos   eval "$3=yes"
   2185  1.1  christos fi
   2186  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2187  1.1  christos fi
   2188  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2189  1.1  christos fi
   2190  1.1  christos eval ac_res=\$$3
   2191  1.1  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2192  1.1  christos $as_echo "$ac_res" >&6; }
   2193  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2194  1.1  christos 
   2195  1.1  christos } # ac_fn_c_check_type
   2196  1.3  christos cat >config.log <<_ACEOF
   2197  1.3  christos This file contains any messages produced by compilers while
   2198  1.3  christos running configure, to aid debugging if configure makes a mistake.
   2199  1.3  christos 
   2200  1.3  christos It was created by BIND $as_me 9.13, which was
   2201  1.3  christos generated by GNU Autoconf 2.69.  Invocation command line was
   2202  1.3  christos 
   2203  1.3  christos   $ $0 $@
   2204  1.1  christos 
   2205  1.3  christos _ACEOF
   2206  1.3  christos exec 5>>config.log
   2207  1.1  christos {
   2208  1.3  christos cat <<_ASUNAME
   2209  1.3  christos ## --------- ##
   2210  1.3  christos ## Platform. ##
   2211  1.3  christos ## --------- ##
   2212  1.3  christos 
   2213  1.3  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2214  1.3  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2215  1.3  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2216  1.3  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2217  1.3  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2218  1.3  christos 
   2219  1.3  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2220  1.3  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2221  1.3  christos 
   2222  1.3  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2223  1.3  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2224  1.3  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2225  1.3  christos /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2226  1.3  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2227  1.3  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2228  1.3  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2229  1.3  christos 
   2230  1.3  christos _ASUNAME
   2231  1.3  christos 
   2232  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2233  1.3  christos for as_dir in $PATH
   2234  1.3  christos do
   2235  1.3  christos   IFS=$as_save_IFS
   2236  1.3  christos   test -z "$as_dir" && as_dir=.
   2237  1.3  christos     $as_echo "PATH: $as_dir"
   2238  1.3  christos   done
   2239  1.3  christos IFS=$as_save_IFS
   2240  1.1  christos 
   2241  1.3  christos } >&5
   2242  1.1  christos 
   2243  1.3  christos cat >&5 <<_ACEOF
   2244  1.1  christos 
   2245  1.1  christos 
   2246  1.3  christos ## ----------- ##
   2247  1.3  christos ## Core tests. ##
   2248  1.3  christos ## ----------- ##
   2249  1.1  christos 
   2250  1.1  christos _ACEOF
   2251  1.3  christos 
   2252  1.3  christos 
   2253  1.3  christos # Keep a trace of the command line.
   2254  1.1  christos # Strip out --no-create and --no-recursion so they do not pile up.
   2255  1.1  christos # Strip out --silent because we don't want to record it for future runs.
   2256  1.1  christos # Also quote any args containing shell meta-characters.
   2257  1.1  christos # Make two passes to allow for proper duplicate-argument suppression.
   2258  1.1  christos ac_configure_args=
   2259  1.1  christos ac_configure_args0=
   2260  1.1  christos ac_configure_args1=
   2261  1.1  christos ac_must_keep_next=false
   2262  1.1  christos for ac_pass in 1 2
   2263  1.1  christos do
   2264  1.1  christos   for ac_arg
   2265  1.1  christos   do
   2266  1.1  christos     case $ac_arg in
   2267  1.1  christos     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2268  1.1  christos     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2269  1.1  christos     | -silent | --silent | --silen | --sile | --sil)
   2270  1.1  christos       continue ;;
   2271  1.1  christos     *\'*)
   2272  1.1  christos       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2273  1.1  christos     esac
   2274  1.1  christos     case $ac_pass in
   2275  1.1  christos     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2276  1.1  christos     2)
   2277  1.1  christos       as_fn_append ac_configure_args1 " '$ac_arg'"
   2278  1.1  christos       if test $ac_must_keep_next = true; then
   2279  1.1  christos 	ac_must_keep_next=false # Got value, back to normal.
   2280  1.1  christos       else
   2281  1.1  christos 	case $ac_arg in
   2282  1.1  christos 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2283  1.1  christos 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2284  1.1  christos 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2285  1.1  christos 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2286  1.1  christos 	    case "$ac_configure_args0 " in
   2287  1.1  christos 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2288  1.1  christos 	    esac
   2289  1.1  christos 	    ;;
   2290  1.1  christos 	  -* ) ac_must_keep_next=true ;;
   2291  1.1  christos 	esac
   2292  1.1  christos       fi
   2293  1.1  christos       as_fn_append ac_configure_args " '$ac_arg'"
   2294  1.1  christos       ;;
   2295  1.1  christos     esac
   2296  1.1  christos   done
   2297  1.1  christos done
   2298  1.1  christos { ac_configure_args0=; unset ac_configure_args0;}
   2299  1.1  christos { ac_configure_args1=; unset ac_configure_args1;}
   2300  1.1  christos 
   2301  1.1  christos # When interrupted or exit'd, cleanup temporary files, and complete
   2302  1.1  christos # config.log.  We remove comments because anyway the quotes in there
   2303  1.1  christos # would cause problems or look ugly.
   2304  1.1  christos # WARNING: Use '\'' to represent an apostrophe within the trap.
   2305  1.1  christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2306  1.1  christos trap 'exit_status=$?
   2307  1.1  christos   # Save into config.log some information that might help in debugging.
   2308  1.1  christos   {
   2309  1.1  christos     echo
   2310  1.1  christos 
   2311  1.1  christos     $as_echo "## ---------------- ##
   2312  1.1  christos ## Cache variables. ##
   2313  1.1  christos ## ---------------- ##"
   2314  1.1  christos     echo
   2315  1.1  christos     # The following way of writing the cache mishandles newlines in values,
   2316  1.1  christos (
   2317  1.1  christos   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2318  1.1  christos     eval ac_val=\$$ac_var
   2319  1.1  christos     case $ac_val in #(
   2320  1.1  christos     *${as_nl}*)
   2321  1.1  christos       case $ac_var in #(
   2322  1.1  christos       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2323  1.1  christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2324  1.1  christos       esac
   2325  1.1  christos       case $ac_var in #(
   2326  1.1  christos       _ | IFS | as_nl) ;; #(
   2327  1.1  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2328  1.1  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   2329  1.1  christos       esac ;;
   2330  1.1  christos     esac
   2331  1.1  christos   done
   2332  1.1  christos   (set) 2>&1 |
   2333  1.1  christos     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2334  1.1  christos     *${as_nl}ac_space=\ *)
   2335  1.1  christos       sed -n \
   2336  1.1  christos 	"s/'\''/'\''\\\\'\'''\''/g;
   2337  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2338  1.1  christos       ;; #(
   2339  1.1  christos     *)
   2340  1.1  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2341  1.1  christos       ;;
   2342  1.1  christos     esac |
   2343  1.1  christos     sort
   2344  1.1  christos )
   2345  1.1  christos     echo
   2346  1.1  christos 
   2347  1.1  christos     $as_echo "## ----------------- ##
   2348  1.1  christos ## Output variables. ##
   2349  1.1  christos ## ----------------- ##"
   2350  1.1  christos     echo
   2351  1.1  christos     for ac_var in $ac_subst_vars
   2352  1.1  christos     do
   2353  1.1  christos       eval ac_val=\$$ac_var
   2354  1.1  christos       case $ac_val in
   2355  1.1  christos       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2356  1.1  christos       esac
   2357  1.1  christos       $as_echo "$ac_var='\''$ac_val'\''"
   2358  1.1  christos     done | sort
   2359  1.1  christos     echo
   2360  1.1  christos 
   2361  1.1  christos     if test -n "$ac_subst_files"; then
   2362  1.1  christos       $as_echo "## ------------------- ##
   2363  1.1  christos ## File substitutions. ##
   2364  1.1  christos ## ------------------- ##"
   2365  1.1  christos       echo
   2366  1.1  christos       for ac_var in $ac_subst_files
   2367  1.1  christos       do
   2368  1.1  christos 	eval ac_val=\$$ac_var
   2369  1.1  christos 	case $ac_val in
   2370  1.1  christos 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2371  1.1  christos 	esac
   2372  1.1  christos 	$as_echo "$ac_var='\''$ac_val'\''"
   2373  1.1  christos       done | sort
   2374  1.1  christos       echo
   2375  1.1  christos     fi
   2376  1.1  christos 
   2377  1.1  christos     if test -s confdefs.h; then
   2378  1.1  christos       $as_echo "## ----------- ##
   2379  1.1  christos ## confdefs.h. ##
   2380  1.1  christos ## ----------- ##"
   2381  1.1  christos       echo
   2382  1.1  christos       cat confdefs.h
   2383  1.1  christos       echo
   2384  1.1  christos     fi
   2385  1.1  christos     test "$ac_signal" != 0 &&
   2386  1.1  christos       $as_echo "$as_me: caught signal $ac_signal"
   2387  1.1  christos     $as_echo "$as_me: exit $exit_status"
   2388  1.1  christos   } >&5
   2389  1.1  christos   rm -f core *.core core.conftest.* &&
   2390  1.1  christos     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2391  1.1  christos     exit $exit_status
   2392  1.1  christos ' 0
   2393  1.1  christos for ac_signal in 1 2 13 15; do
   2394  1.1  christos   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2395  1.1  christos done
   2396  1.1  christos ac_signal=0
   2397  1.1  christos 
   2398  1.1  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2399  1.1  christos rm -f -r conftest* confdefs.h
   2400  1.1  christos 
   2401  1.1  christos $as_echo "/* confdefs.h */" > confdefs.h
   2402  1.1  christos 
   2403  1.1  christos # Predefined preprocessor variables.
   2404  1.1  christos 
   2405  1.1  christos cat >>confdefs.h <<_ACEOF
   2406  1.1  christos #define PACKAGE_NAME "$PACKAGE_NAME"
   2407  1.1  christos _ACEOF
   2408  1.1  christos 
   2409  1.1  christos cat >>confdefs.h <<_ACEOF
   2410  1.1  christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2411  1.1  christos _ACEOF
   2412  1.1  christos 
   2413  1.1  christos cat >>confdefs.h <<_ACEOF
   2414  1.1  christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2415  1.1  christos _ACEOF
   2416  1.1  christos 
   2417  1.1  christos cat >>confdefs.h <<_ACEOF
   2418  1.1  christos #define PACKAGE_STRING "$PACKAGE_STRING"
   2419  1.1  christos _ACEOF
   2420  1.1  christos 
   2421  1.1  christos cat >>confdefs.h <<_ACEOF
   2422  1.1  christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2423  1.1  christos _ACEOF
   2424  1.1  christos 
   2425  1.1  christos cat >>confdefs.h <<_ACEOF
   2426  1.1  christos #define PACKAGE_URL "$PACKAGE_URL"
   2427  1.1  christos _ACEOF
   2428  1.1  christos 
   2429  1.1  christos 
   2430  1.1  christos # Let the site file select an alternate cache file if it wants to.
   2431  1.1  christos # Prefer an explicitly selected file to automatically selected ones.
   2432  1.1  christos ac_site_file1=NONE
   2433  1.1  christos ac_site_file2=NONE
   2434  1.1  christos if test -n "$CONFIG_SITE"; then
   2435  1.1  christos   # We do not want a PATH search for config.site.
   2436  1.1  christos   case $CONFIG_SITE in #((
   2437  1.1  christos     -*)  ac_site_file1=./$CONFIG_SITE;;
   2438  1.1  christos     */*) ac_site_file1=$CONFIG_SITE;;
   2439  1.1  christos     *)   ac_site_file1=./$CONFIG_SITE;;
   2440  1.1  christos   esac
   2441  1.1  christos elif test "x$prefix" != xNONE; then
   2442  1.1  christos   ac_site_file1=$prefix/share/config.site
   2443  1.1  christos   ac_site_file2=$prefix/etc/config.site
   2444  1.1  christos else
   2445  1.1  christos   ac_site_file1=$ac_default_prefix/share/config.site
   2446  1.1  christos   ac_site_file2=$ac_default_prefix/etc/config.site
   2447  1.1  christos fi
   2448  1.1  christos for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2449  1.1  christos do
   2450  1.1  christos   test "x$ac_site_file" = xNONE && continue
   2451  1.1  christos   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2452  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2453  1.1  christos $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2454  1.1  christos     sed 's/^/| /' "$ac_site_file" >&5
   2455  1.1  christos     . "$ac_site_file" \
   2456  1.1  christos       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2457  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2458  1.1  christos as_fn_error $? "failed to load site script $ac_site_file
   2459  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   2460  1.1  christos   fi
   2461  1.1  christos done
   2462  1.1  christos 
   2463  1.1  christos if test -r "$cache_file"; then
   2464  1.1  christos   # Some versions of bash will fail to source /dev/null (special files
   2465  1.1  christos   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2466  1.1  christos   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2467  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2468  1.1  christos $as_echo "$as_me: loading cache $cache_file" >&6;}
   2469  1.1  christos     case $cache_file in
   2470  1.1  christos       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2471  1.1  christos       *)                      . "./$cache_file";;
   2472  1.1  christos     esac
   2473  1.1  christos   fi
   2474  1.1  christos else
   2475  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2476  1.1  christos $as_echo "$as_me: creating cache $cache_file" >&6;}
   2477  1.1  christos   >$cache_file
   2478  1.1  christos fi
   2479  1.1  christos 
   2480  1.1  christos # Check that the precious variables saved in the cache have kept the same
   2481  1.1  christos # value.
   2482  1.1  christos ac_cache_corrupted=false
   2483  1.1  christos for ac_var in $ac_precious_vars; do
   2484  1.1  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2485  1.1  christos   eval ac_new_set=\$ac_env_${ac_var}_set
   2486  1.1  christos   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2487  1.1  christos   eval ac_new_val=\$ac_env_${ac_var}_value
   2488  1.1  christos   case $ac_old_set,$ac_new_set in
   2489  1.1  christos     set,)
   2490  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2491  1.1  christos $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2492  1.1  christos       ac_cache_corrupted=: ;;
   2493  1.1  christos     ,set)
   2494  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2495  1.1  christos $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2496  1.1  christos       ac_cache_corrupted=: ;;
   2497  1.1  christos     ,);;
   2498  1.1  christos     *)
   2499  1.1  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
   2500  1.1  christos 	# differences in whitespace do not lead to failure.
   2501  1.1  christos 	ac_old_val_w=`echo x $ac_old_val`
   2502  1.1  christos 	ac_new_val_w=`echo x $ac_new_val`
   2503  1.1  christos 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2504  1.1  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2505  1.1  christos $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2506  1.1  christos 	  ac_cache_corrupted=:
   2507  1.1  christos 	else
   2508  1.1  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2509  1.1  christos $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2510  1.1  christos 	  eval $ac_var=\$ac_old_val
   2511  1.1  christos 	fi
   2512  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2513  1.1  christos $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2514  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2515  1.1  christos $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2516  1.1  christos       fi;;
   2517  1.1  christos   esac
   2518  1.1  christos   # Pass precious variables to config.status.
   2519  1.1  christos   if test "$ac_new_set" = set; then
   2520  1.1  christos     case $ac_new_val in
   2521  1.1  christos     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2522  1.1  christos     *) ac_arg=$ac_var=$ac_new_val ;;
   2523  1.1  christos     esac
   2524  1.1  christos     case " $ac_configure_args " in
   2525  1.1  christos       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2526  1.1  christos       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2527  1.1  christos     esac
   2528  1.1  christos   fi
   2529  1.1  christos done
   2530  1.1  christos if $ac_cache_corrupted; then
   2531  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2532  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2533  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2534  1.1  christos $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2535  1.1  christos   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2536  1.1  christos fi
   2537  1.1  christos ## -------------------- ##
   2538  1.1  christos ## Main body of script. ##
   2539  1.1  christos ## -------------------- ##
   2540  1.1  christos 
   2541  1.1  christos ac_ext=c
   2542  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   2543  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2544  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2545  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2546  1.1  christos 
   2547  1.1  christos 
   2548  1.1  christos 
   2549  1.1  christos 
   2550  1.1  christos ac_config_headers="$ac_config_headers config.h"
   2551  1.1  christos 
   2552  1.1  christos 
   2553  1.1  christos 
   2554  1.1  christos ac_aux_dir=
   2555  1.1  christos for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2556  1.1  christos   if test -f "$ac_dir/install-sh"; then
   2557  1.1  christos     ac_aux_dir=$ac_dir
   2558  1.1  christos     ac_install_sh="$ac_aux_dir/install-sh -c"
   2559  1.1  christos     break
   2560  1.1  christos   elif test -f "$ac_dir/install.sh"; then
   2561  1.1  christos     ac_aux_dir=$ac_dir
   2562  1.1  christos     ac_install_sh="$ac_aux_dir/install.sh -c"
   2563  1.1  christos     break
   2564  1.1  christos   elif test -f "$ac_dir/shtool"; then
   2565  1.1  christos     ac_aux_dir=$ac_dir
   2566  1.1  christos     ac_install_sh="$ac_aux_dir/shtool install -c"
   2567  1.1  christos     break
   2568  1.1  christos   fi
   2569  1.1  christos done
   2570  1.1  christos if test -z "$ac_aux_dir"; then
   2571  1.1  christos   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2572  1.1  christos fi
   2573  1.1  christos 
   2574  1.1  christos # These three variables are undocumented and unsupported,
   2575  1.1  christos # and are intended to be withdrawn in a future Autoconf release.
   2576  1.1  christos # They can cause serious problems if a builder's source tree is in a directory
   2577  1.1  christos # whose full name contains unusual characters.
   2578  1.1  christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2579  1.1  christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2580  1.1  christos ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2581  1.1  christos 
   2582  1.1  christos 
   2583  1.1  christos # Make sure we can run config.sub.
   2584  1.1  christos $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2585  1.1  christos   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2586  1.1  christos 
   2587  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2588  1.1  christos $as_echo_n "checking build system type... " >&6; }
   2589  1.1  christos if ${ac_cv_build+:} false; then :
   2590  1.1  christos   $as_echo_n "(cached) " >&6
   2591  1.1  christos else
   2592  1.1  christos   ac_build_alias=$build_alias
   2593  1.1  christos test "x$ac_build_alias" = x &&
   2594  1.1  christos   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2595  1.1  christos test "x$ac_build_alias" = x &&
   2596  1.1  christos   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2597  1.1  christos ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2598  1.1  christos   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2599  1.1  christos 
   2600  1.1  christos fi
   2601  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2602  1.1  christos $as_echo "$ac_cv_build" >&6; }
   2603  1.1  christos case $ac_cv_build in
   2604  1.1  christos *-*-*) ;;
   2605  1.1  christos *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2606  1.1  christos esac
   2607  1.1  christos build=$ac_cv_build
   2608  1.1  christos ac_save_IFS=$IFS; IFS='-'
   2609  1.1  christos set x $ac_cv_build
   2610  1.1  christos shift
   2611  1.1  christos build_cpu=$1
   2612  1.1  christos build_vendor=$2
   2613  1.1  christos shift; shift
   2614  1.1  christos # Remember, the first character of IFS is used to create $*,
   2615  1.1  christos # except with old shells:
   2616  1.1  christos build_os=$*
   2617  1.1  christos IFS=$ac_save_IFS
   2618  1.1  christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2619  1.1  christos 
   2620  1.1  christos 
   2621  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2622  1.1  christos $as_echo_n "checking host system type... " >&6; }
   2623  1.1  christos if ${ac_cv_host+:} false; then :
   2624  1.1  christos   $as_echo_n "(cached) " >&6
   2625  1.1  christos else
   2626  1.1  christos   if test "x$host_alias" = x; then
   2627  1.1  christos   ac_cv_host=$ac_cv_build
   2628  1.1  christos else
   2629  1.1  christos   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2630  1.1  christos     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2631  1.1  christos fi
   2632  1.1  christos 
   2633  1.1  christos fi
   2634  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2635  1.1  christos $as_echo "$ac_cv_host" >&6; }
   2636  1.1  christos case $ac_cv_host in
   2637  1.1  christos *-*-*) ;;
   2638  1.1  christos *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2639  1.1  christos esac
   2640  1.1  christos host=$ac_cv_host
   2641  1.1  christos ac_save_IFS=$IFS; IFS='-'
   2642  1.1  christos set x $ac_cv_host
   2643  1.1  christos shift
   2644  1.1  christos host_cpu=$1
   2645  1.1  christos host_vendor=$2
   2646  1.1  christos shift; shift
   2647  1.1  christos # Remember, the first character of IFS is used to create $*,
   2648  1.1  christos # except with old shells:
   2649  1.1  christos host_os=$*
   2650  1.1  christos IFS=$ac_save_IFS
   2651  1.1  christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2652  1.1  christos 
   2653  1.1  christos 
   2654  1.3  christos ac_ext=c
   2655  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   2656  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2657  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2658  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2659  1.3  christos if test -n "$ac_tool_prefix"; then
   2660  1.3  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2661  1.3  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2662  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2663  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   2664  1.3  christos if ${ac_cv_prog_CC+:} false; then :
   2665  1.1  christos   $as_echo_n "(cached) " >&6
   2666  1.1  christos else
   2667  1.3  christos   if test -n "$CC"; then
   2668  1.3  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2669  1.3  christos else
   2670  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2671  1.3  christos for as_dir in $PATH
   2672  1.3  christos do
   2673  1.3  christos   IFS=$as_save_IFS
   2674  1.3  christos   test -z "$as_dir" && as_dir=.
   2675  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2676  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2677  1.3  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2678  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2679  1.3  christos     break 2
   2680  1.3  christos   fi
   2681  1.3  christos done
   2682  1.3  christos   done
   2683  1.3  christos IFS=$as_save_IFS
   2684  1.3  christos 
   2685  1.3  christos fi
   2686  1.1  christos fi
   2687  1.3  christos CC=$ac_cv_prog_CC
   2688  1.3  christos if test -n "$CC"; then
   2689  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2690  1.3  christos $as_echo "$CC" >&6; }
   2691  1.1  christos else
   2692  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2693  1.1  christos $as_echo "no" >&6; }
   2694  1.1  christos fi
   2695  1.1  christos 
   2696  1.1  christos 
   2697  1.3  christos fi
   2698  1.3  christos if test -z "$ac_cv_prog_CC"; then
   2699  1.3  christos   ac_ct_CC=$CC
   2700  1.3  christos   # Extract the first word of "gcc", so it can be a program name with args.
   2701  1.3  christos set dummy gcc; ac_word=$2
   2702  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2703  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   2704  1.3  christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2705  1.3  christos   $as_echo_n "(cached) " >&6
   2706  1.3  christos else
   2707  1.3  christos   if test -n "$ac_ct_CC"; then
   2708  1.3  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2709  1.3  christos else
   2710  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2711  1.3  christos for as_dir in $PATH
   2712  1.3  christos do
   2713  1.3  christos   IFS=$as_save_IFS
   2714  1.3  christos   test -z "$as_dir" && as_dir=.
   2715  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2716  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2717  1.3  christos     ac_cv_prog_ac_ct_CC="gcc"
   2718  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2719  1.3  christos     break 2
   2720  1.3  christos   fi
   2721  1.3  christos done
   2722  1.3  christos   done
   2723  1.3  christos IFS=$as_save_IFS
   2724  1.1  christos 
   2725  1.3  christos fi
   2726  1.3  christos fi
   2727  1.3  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2728  1.1  christos if test -n "$ac_ct_CC"; then
   2729  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2730  1.1  christos $as_echo "$ac_ct_CC" >&6; }
   2731  1.1  christos else
   2732  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2733  1.1  christos $as_echo "no" >&6; }
   2734  1.1  christos fi
   2735  1.1  christos 
   2736  1.1  christos   if test "x$ac_ct_CC" = x; then
   2737  1.1  christos     CC=""
   2738  1.1  christos   else
   2739  1.1  christos     case $cross_compiling:$ac_tool_warned in
   2740  1.1  christos yes:)
   2741  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2742  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2743  1.1  christos ac_tool_warned=yes ;;
   2744  1.1  christos esac
   2745  1.1  christos     CC=$ac_ct_CC
   2746  1.1  christos   fi
   2747  1.1  christos else
   2748  1.1  christos   CC="$ac_cv_prog_CC"
   2749  1.1  christos fi
   2750  1.1  christos 
   2751  1.1  christos if test -z "$CC"; then
   2752  1.1  christos           if test -n "$ac_tool_prefix"; then
   2753  1.1  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2754  1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   2755  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2756  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   2757  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   2758  1.1  christos   $as_echo_n "(cached) " >&6
   2759  1.1  christos else
   2760  1.1  christos   if test -n "$CC"; then
   2761  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2762  1.1  christos else
   2763  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2764  1.1  christos for as_dir in $PATH
   2765  1.1  christos do
   2766  1.1  christos   IFS=$as_save_IFS
   2767  1.1  christos   test -z "$as_dir" && as_dir=.
   2768  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2769  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2770  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2771  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2772  1.1  christos     break 2
   2773  1.1  christos   fi
   2774  1.1  christos done
   2775  1.1  christos   done
   2776  1.1  christos IFS=$as_save_IFS
   2777  1.1  christos 
   2778  1.1  christos fi
   2779  1.1  christos fi
   2780  1.1  christos CC=$ac_cv_prog_CC
   2781  1.1  christos if test -n "$CC"; then
   2782  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2783  1.1  christos $as_echo "$CC" >&6; }
   2784  1.1  christos else
   2785  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2786  1.1  christos $as_echo "no" >&6; }
   2787  1.1  christos fi
   2788  1.1  christos 
   2789  1.1  christos 
   2790  1.1  christos   fi
   2791  1.1  christos fi
   2792  1.1  christos if test -z "$CC"; then
   2793  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   2794  1.1  christos set dummy cc; ac_word=$2
   2795  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2796  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   2797  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   2798  1.1  christos   $as_echo_n "(cached) " >&6
   2799  1.1  christos else
   2800  1.1  christos   if test -n "$CC"; then
   2801  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2802  1.1  christos else
   2803  1.1  christos   ac_prog_rejected=no
   2804  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2805  1.1  christos for as_dir in $PATH
   2806  1.1  christos do
   2807  1.1  christos   IFS=$as_save_IFS
   2808  1.1  christos   test -z "$as_dir" && as_dir=.
   2809  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2810  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2811  1.1  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2812  1.1  christos        ac_prog_rejected=yes
   2813  1.1  christos        continue
   2814  1.1  christos      fi
   2815  1.1  christos     ac_cv_prog_CC="cc"
   2816  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2817  1.1  christos     break 2
   2818  1.1  christos   fi
   2819  1.1  christos done
   2820  1.1  christos   done
   2821  1.1  christos IFS=$as_save_IFS
   2822  1.1  christos 
   2823  1.1  christos if test $ac_prog_rejected = yes; then
   2824  1.1  christos   # We found a bogon in the path, so make sure we never use it.
   2825  1.1  christos   set dummy $ac_cv_prog_CC
   2826  1.1  christos   shift
   2827  1.1  christos   if test $# != 0; then
   2828  1.1  christos     # We chose a different compiler from the bogus one.
   2829  1.1  christos     # However, it has the same basename, so the bogon will be chosen
   2830  1.1  christos     # first if we set CC to just the basename; use the full file name.
   2831  1.1  christos     shift
   2832  1.1  christos     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2833  1.1  christos   fi
   2834  1.1  christos fi
   2835  1.1  christos fi
   2836  1.1  christos fi
   2837  1.1  christos CC=$ac_cv_prog_CC
   2838  1.1  christos if test -n "$CC"; then
   2839  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2840  1.1  christos $as_echo "$CC" >&6; }
   2841  1.1  christos else
   2842  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2843  1.1  christos $as_echo "no" >&6; }
   2844  1.1  christos fi
   2845  1.1  christos 
   2846  1.1  christos 
   2847  1.1  christos fi
   2848  1.1  christos if test -z "$CC"; then
   2849  1.1  christos   if test -n "$ac_tool_prefix"; then
   2850  1.1  christos   for ac_prog in cl.exe
   2851  1.1  christos   do
   2852  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2853  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2854  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2855  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   2856  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   2857  1.1  christos   $as_echo_n "(cached) " >&6
   2858  1.1  christos else
   2859  1.1  christos   if test -n "$CC"; then
   2860  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2861  1.1  christos else
   2862  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2863  1.1  christos for as_dir in $PATH
   2864  1.1  christos do
   2865  1.1  christos   IFS=$as_save_IFS
   2866  1.1  christos   test -z "$as_dir" && as_dir=.
   2867  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2868  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2869  1.1  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2870  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2871  1.1  christos     break 2
   2872  1.1  christos   fi
   2873  1.1  christos done
   2874  1.1  christos   done
   2875  1.1  christos IFS=$as_save_IFS
   2876  1.1  christos 
   2877  1.1  christos fi
   2878  1.1  christos fi
   2879  1.1  christos CC=$ac_cv_prog_CC
   2880  1.1  christos if test -n "$CC"; then
   2881  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2882  1.1  christos $as_echo "$CC" >&6; }
   2883  1.1  christos else
   2884  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2885  1.1  christos $as_echo "no" >&6; }
   2886  1.1  christos fi
   2887  1.1  christos 
   2888  1.1  christos 
   2889  1.1  christos     test -n "$CC" && break
   2890  1.1  christos   done
   2891  1.1  christos fi
   2892  1.1  christos if test -z "$CC"; then
   2893  1.1  christos   ac_ct_CC=$CC
   2894  1.1  christos   for ac_prog in cl.exe
   2895  1.1  christos do
   2896  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2897  1.1  christos set dummy $ac_prog; ac_word=$2
   2898  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2899  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   2900  1.1  christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2901  1.1  christos   $as_echo_n "(cached) " >&6
   2902  1.1  christos else
   2903  1.1  christos   if test -n "$ac_ct_CC"; then
   2904  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2905  1.1  christos else
   2906  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2907  1.1  christos for as_dir in $PATH
   2908  1.1  christos do
   2909  1.1  christos   IFS=$as_save_IFS
   2910  1.1  christos   test -z "$as_dir" && as_dir=.
   2911  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2912  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2913  1.1  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   2914  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2915  1.1  christos     break 2
   2916  1.1  christos   fi
   2917  1.1  christos done
   2918  1.1  christos   done
   2919  1.1  christos IFS=$as_save_IFS
   2920  1.1  christos 
   2921  1.1  christos fi
   2922  1.1  christos fi
   2923  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2924  1.1  christos if test -n "$ac_ct_CC"; then
   2925  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2926  1.1  christos $as_echo "$ac_ct_CC" >&6; }
   2927  1.1  christos else
   2928  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2929  1.1  christos $as_echo "no" >&6; }
   2930  1.1  christos fi
   2931  1.1  christos 
   2932  1.1  christos 
   2933  1.1  christos   test -n "$ac_ct_CC" && break
   2934  1.1  christos done
   2935  1.1  christos 
   2936  1.1  christos   if test "x$ac_ct_CC" = x; then
   2937  1.1  christos     CC=""
   2938  1.1  christos   else
   2939  1.1  christos     case $cross_compiling:$ac_tool_warned in
   2940  1.1  christos yes:)
   2941  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2942  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2943  1.1  christos ac_tool_warned=yes ;;
   2944  1.1  christos esac
   2945  1.1  christos     CC=$ac_ct_CC
   2946  1.1  christos   fi
   2947  1.1  christos fi
   2948  1.1  christos 
   2949  1.1  christos fi
   2950  1.1  christos 
   2951  1.1  christos 
   2952  1.1  christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2953  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2954  1.1  christos as_fn_error $? "no acceptable C compiler found in \$PATH
   2955  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   2956  1.1  christos 
   2957  1.1  christos # Provide some information about the compiler.
   2958  1.1  christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   2959  1.1  christos set X $ac_compile
   2960  1.1  christos ac_compiler=$2
   2961  1.1  christos for ac_option in --version -v -V -qversion; do
   2962  1.1  christos   { { ac_try="$ac_compiler $ac_option >&5"
   2963  1.1  christos case "(($ac_try" in
   2964  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2965  1.1  christos   *) ac_try_echo=$ac_try;;
   2966  1.1  christos esac
   2967  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2968  1.1  christos $as_echo "$ac_try_echo"; } >&5
   2969  1.1  christos   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   2970  1.1  christos   ac_status=$?
   2971  1.1  christos   if test -s conftest.err; then
   2972  1.1  christos     sed '10a\
   2973  1.1  christos ... rest of stderr output deleted ...
   2974  1.1  christos          10q' conftest.err >conftest.er1
   2975  1.1  christos     cat conftest.er1 >&5
   2976  1.1  christos   fi
   2977  1.1  christos   rm -f conftest.er1 conftest.err
   2978  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2979  1.1  christos   test $ac_status = 0; }
   2980  1.1  christos done
   2981  1.1  christos 
   2982  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2983  1.1  christos /* end confdefs.h.  */
   2984  1.1  christos 
   2985  1.1  christos int
   2986  1.1  christos main ()
   2987  1.1  christos {
   2988  1.1  christos 
   2989  1.1  christos   ;
   2990  1.1  christos   return 0;
   2991  1.1  christos }
   2992  1.1  christos _ACEOF
   2993  1.1  christos ac_clean_files_save=$ac_clean_files
   2994  1.1  christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   2995  1.1  christos # Try to create an executable without -o first, disregard a.out.
   2996  1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   2997  1.1  christos # of exeext.
   2998  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   2999  1.1  christos $as_echo_n "checking whether the C compiler works... " >&6; }
   3000  1.1  christos ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3001  1.1  christos 
   3002  1.1  christos # The possible output files:
   3003  1.1  christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3004  1.1  christos 
   3005  1.1  christos ac_rmfiles=
   3006  1.1  christos for ac_file in $ac_files
   3007  1.1  christos do
   3008  1.1  christos   case $ac_file in
   3009  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3010  1.1  christos     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3011  1.1  christos   esac
   3012  1.1  christos done
   3013  1.1  christos rm -f $ac_rmfiles
   3014  1.1  christos 
   3015  1.1  christos if { { ac_try="$ac_link_default"
   3016  1.1  christos case "(($ac_try" in
   3017  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3018  1.1  christos   *) ac_try_echo=$ac_try;;
   3019  1.1  christos esac
   3020  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3021  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3022  1.1  christos   (eval "$ac_link_default") 2>&5
   3023  1.1  christos   ac_status=$?
   3024  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3025  1.1  christos   test $ac_status = 0; }; then :
   3026  1.1  christos   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3027  1.1  christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3028  1.1  christos # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3029  1.1  christos # so that the user can short-circuit this test for compilers unknown to
   3030  1.1  christos # Autoconf.
   3031  1.1  christos for ac_file in $ac_files ''
   3032  1.1  christos do
   3033  1.1  christos   test -f "$ac_file" || continue
   3034  1.1  christos   case $ac_file in
   3035  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3036  1.1  christos 	;;
   3037  1.1  christos     [ab].out )
   3038  1.1  christos 	# We found the default executable, but exeext='' is most
   3039  1.1  christos 	# certainly right.
   3040  1.1  christos 	break;;
   3041  1.1  christos     *.* )
   3042  1.1  christos 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3043  1.1  christos 	then :; else
   3044  1.1  christos 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3045  1.1  christos 	fi
   3046  1.1  christos 	# We set ac_cv_exeext here because the later test for it is not
   3047  1.1  christos 	# safe: cross compilers may not add the suffix if given an `-o'
   3048  1.1  christos 	# argument, so we may need to know it at that point already.
   3049  1.1  christos 	# Even if this section looks crufty: it has the advantage of
   3050  1.1  christos 	# actually working.
   3051  1.1  christos 	break;;
   3052  1.1  christos     * )
   3053  1.1  christos 	break;;
   3054  1.1  christos   esac
   3055  1.1  christos done
   3056  1.1  christos test "$ac_cv_exeext" = no && ac_cv_exeext=
   3057  1.1  christos 
   3058  1.1  christos else
   3059  1.1  christos   ac_file=''
   3060  1.1  christos fi
   3061  1.1  christos if test -z "$ac_file"; then :
   3062  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3063  1.1  christos $as_echo "no" >&6; }
   3064  1.1  christos $as_echo "$as_me: failed program was:" >&5
   3065  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3066  1.1  christos 
   3067  1.1  christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3068  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3069  1.1  christos as_fn_error 77 "C compiler cannot create executables
   3070  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   3071  1.1  christos else
   3072  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3073  1.1  christos $as_echo "yes" >&6; }
   3074  1.1  christos fi
   3075  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3076  1.1  christos $as_echo_n "checking for C compiler default output file name... " >&6; }
   3077  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3078  1.1  christos $as_echo "$ac_file" >&6; }
   3079  1.1  christos ac_exeext=$ac_cv_exeext
   3080  1.1  christos 
   3081  1.1  christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3082  1.1  christos ac_clean_files=$ac_clean_files_save
   3083  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3084  1.1  christos $as_echo_n "checking for suffix of executables... " >&6; }
   3085  1.1  christos if { { ac_try="$ac_link"
   3086  1.1  christos case "(($ac_try" in
   3087  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3088  1.1  christos   *) ac_try_echo=$ac_try;;
   3089  1.1  christos esac
   3090  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3091  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3092  1.1  christos   (eval "$ac_link") 2>&5
   3093  1.1  christos   ac_status=$?
   3094  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3095  1.1  christos   test $ac_status = 0; }; then :
   3096  1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3097  1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3098  1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   3099  1.1  christos # `rm'.
   3100  1.1  christos for ac_file in conftest.exe conftest conftest.*; do
   3101  1.1  christos   test -f "$ac_file" || continue
   3102  1.1  christos   case $ac_file in
   3103  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3104  1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3105  1.1  christos 	  break;;
   3106  1.1  christos     * ) break;;
   3107  1.1  christos   esac
   3108  1.1  christos done
   3109  1.1  christos else
   3110  1.1  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3111  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3112  1.1  christos as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3113  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   3114  1.1  christos fi
   3115  1.1  christos rm -f conftest conftest$ac_cv_exeext
   3116  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3117  1.1  christos $as_echo "$ac_cv_exeext" >&6; }
   3118  1.1  christos 
   3119  1.1  christos rm -f conftest.$ac_ext
   3120  1.1  christos EXEEXT=$ac_cv_exeext
   3121  1.1  christos ac_exeext=$EXEEXT
   3122  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3123  1.1  christos /* end confdefs.h.  */
   3124  1.1  christos #include <stdio.h>
   3125  1.1  christos int
   3126  1.1  christos main ()
   3127  1.1  christos {
   3128  1.1  christos FILE *f = fopen ("conftest.out", "w");
   3129  1.1  christos  return ferror (f) || fclose (f) != 0;
   3130  1.1  christos 
   3131  1.1  christos   ;
   3132  1.1  christos   return 0;
   3133  1.1  christos }
   3134  1.1  christos _ACEOF
   3135  1.1  christos ac_clean_files="$ac_clean_files conftest.out"
   3136  1.1  christos # Check that the compiler produces executables we can run.  If not, either
   3137  1.1  christos # the compiler is broken, or we cross compile.
   3138  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3139  1.1  christos $as_echo_n "checking whether we are cross compiling... " >&6; }
   3140  1.1  christos if test "$cross_compiling" != yes; then
   3141  1.1  christos   { { ac_try="$ac_link"
   3142  1.1  christos case "(($ac_try" in
   3143  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3144  1.1  christos   *) ac_try_echo=$ac_try;;
   3145  1.1  christos esac
   3146  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3147  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3148  1.1  christos   (eval "$ac_link") 2>&5
   3149  1.1  christos   ac_status=$?
   3150  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3151  1.1  christos   test $ac_status = 0; }
   3152  1.1  christos   if { ac_try='./conftest$ac_cv_exeext'
   3153  1.1  christos   { { case "(($ac_try" in
   3154  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3155  1.1  christos   *) ac_try_echo=$ac_try;;
   3156  1.1  christos esac
   3157  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3158  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3159  1.1  christos   (eval "$ac_try") 2>&5
   3160  1.1  christos   ac_status=$?
   3161  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3162  1.1  christos   test $ac_status = 0; }; }; then
   3163  1.1  christos     cross_compiling=no
   3164  1.1  christos   else
   3165  1.1  christos     if test "$cross_compiling" = maybe; then
   3166  1.1  christos 	cross_compiling=yes
   3167  1.1  christos     else
   3168  1.1  christos 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3169  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3170  1.1  christos as_fn_error $? "cannot run C compiled programs.
   3171  1.1  christos If you meant to cross compile, use \`--host'.
   3172  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   3173  1.1  christos     fi
   3174  1.1  christos   fi
   3175  1.1  christos fi
   3176  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3177  1.1  christos $as_echo "$cross_compiling" >&6; }
   3178  1.1  christos 
   3179  1.1  christos rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3180  1.1  christos ac_clean_files=$ac_clean_files_save
   3181  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3182  1.1  christos $as_echo_n "checking for suffix of object files... " >&6; }
   3183  1.1  christos if ${ac_cv_objext+:} false; then :
   3184  1.1  christos   $as_echo_n "(cached) " >&6
   3185  1.1  christos else
   3186  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3187  1.1  christos /* end confdefs.h.  */
   3188  1.1  christos 
   3189  1.1  christos int
   3190  1.1  christos main ()
   3191  1.1  christos {
   3192  1.1  christos 
   3193  1.1  christos   ;
   3194  1.1  christos   return 0;
   3195  1.1  christos }
   3196  1.1  christos _ACEOF
   3197  1.1  christos rm -f conftest.o conftest.obj
   3198  1.1  christos if { { ac_try="$ac_compile"
   3199  1.1  christos case "(($ac_try" in
   3200  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3201  1.1  christos   *) ac_try_echo=$ac_try;;
   3202  1.1  christos esac
   3203  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3204  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3205  1.1  christos   (eval "$ac_compile") 2>&5
   3206  1.1  christos   ac_status=$?
   3207  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3208  1.1  christos   test $ac_status = 0; }; then :
   3209  1.1  christos   for ac_file in conftest.o conftest.obj conftest.*; do
   3210  1.1  christos   test -f "$ac_file" || continue;
   3211  1.1  christos   case $ac_file in
   3212  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3213  1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3214  1.1  christos        break;;
   3215  1.1  christos   esac
   3216  1.1  christos done
   3217  1.1  christos else
   3218  1.1  christos   $as_echo "$as_me: failed program was:" >&5
   3219  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3220  1.1  christos 
   3221  1.1  christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3222  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3223  1.1  christos as_fn_error $? "cannot compute suffix of object files: cannot compile
   3224  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   3225  1.1  christos fi
   3226  1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3227  1.1  christos fi
   3228  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3229  1.1  christos $as_echo "$ac_cv_objext" >&6; }
   3230  1.1  christos OBJEXT=$ac_cv_objext
   3231  1.1  christos ac_objext=$OBJEXT
   3232  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3233  1.1  christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3234  1.1  christos if ${ac_cv_c_compiler_gnu+:} false; then :
   3235  1.1  christos   $as_echo_n "(cached) " >&6
   3236  1.1  christos else
   3237  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3238  1.1  christos /* end confdefs.h.  */
   3239  1.1  christos 
   3240  1.1  christos int
   3241  1.1  christos main ()
   3242  1.1  christos {
   3243  1.1  christos #ifndef __GNUC__
   3244  1.1  christos        choke me
   3245  1.1  christos #endif
   3246  1.1  christos 
   3247  1.1  christos   ;
   3248  1.1  christos   return 0;
   3249  1.1  christos }
   3250  1.1  christos _ACEOF
   3251  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   3252  1.1  christos   ac_compiler_gnu=yes
   3253  1.1  christos else
   3254  1.1  christos   ac_compiler_gnu=no
   3255  1.1  christos fi
   3256  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3257  1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3258  1.1  christos 
   3259  1.1  christos fi
   3260  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3261  1.1  christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3262  1.1  christos if test $ac_compiler_gnu = yes; then
   3263  1.1  christos   GCC=yes
   3264  1.1  christos else
   3265  1.1  christos   GCC=
   3266  1.1  christos fi
   3267  1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   3268  1.1  christos ac_save_CFLAGS=$CFLAGS
   3269  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3270  1.1  christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3271  1.1  christos if ${ac_cv_prog_cc_g+:} false; then :
   3272  1.1  christos   $as_echo_n "(cached) " >&6
   3273  1.1  christos else
   3274  1.1  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   3275  1.1  christos    ac_c_werror_flag=yes
   3276  1.1  christos    ac_cv_prog_cc_g=no
   3277  1.1  christos    CFLAGS="-g"
   3278  1.1  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3279  1.1  christos /* end confdefs.h.  */
   3280  1.1  christos 
   3281  1.1  christos int
   3282  1.1  christos main ()
   3283  1.1  christos {
   3284  1.1  christos 
   3285  1.1  christos   ;
   3286  1.1  christos   return 0;
   3287  1.1  christos }
   3288  1.1  christos _ACEOF
   3289  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   3290  1.1  christos   ac_cv_prog_cc_g=yes
   3291  1.1  christos else
   3292  1.1  christos   CFLAGS=""
   3293  1.1  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3294  1.1  christos /* end confdefs.h.  */
   3295  1.1  christos 
   3296  1.1  christos int
   3297  1.1  christos main ()
   3298  1.1  christos {
   3299  1.1  christos 
   3300  1.1  christos   ;
   3301  1.1  christos   return 0;
   3302  1.1  christos }
   3303  1.1  christos _ACEOF
   3304  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   3305  1.1  christos 
   3306  1.1  christos else
   3307  1.1  christos   ac_c_werror_flag=$ac_save_c_werror_flag
   3308  1.1  christos 	 CFLAGS="-g"
   3309  1.1  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3310  1.1  christos /* end confdefs.h.  */
   3311  1.1  christos 
   3312  1.1  christos int
   3313  1.1  christos main ()
   3314  1.1  christos {
   3315  1.1  christos 
   3316  1.1  christos   ;
   3317  1.1  christos   return 0;
   3318  1.1  christos }
   3319  1.1  christos _ACEOF
   3320  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   3321  1.1  christos   ac_cv_prog_cc_g=yes
   3322  1.1  christos fi
   3323  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3324  1.1  christos fi
   3325  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3326  1.1  christos fi
   3327  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3328  1.1  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   3329  1.1  christos fi
   3330  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3331  1.1  christos $as_echo "$ac_cv_prog_cc_g" >&6; }
   3332  1.1  christos if test "$ac_test_CFLAGS" = set; then
   3333  1.1  christos   CFLAGS=$ac_save_CFLAGS
   3334  1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   3335  1.1  christos   if test "$GCC" = yes; then
   3336  1.1  christos     CFLAGS="-g -O2"
   3337  1.1  christos   else
   3338  1.1  christos     CFLAGS="-g"
   3339  1.1  christos   fi
   3340  1.1  christos else
   3341  1.1  christos   if test "$GCC" = yes; then
   3342  1.1  christos     CFLAGS="-O2"
   3343  1.1  christos   else
   3344  1.1  christos     CFLAGS=
   3345  1.1  christos   fi
   3346  1.1  christos fi
   3347  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3348  1.1  christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3349  1.1  christos if ${ac_cv_prog_cc_c89+:} false; then :
   3350  1.1  christos   $as_echo_n "(cached) " >&6
   3351  1.1  christos else
   3352  1.1  christos   ac_cv_prog_cc_c89=no
   3353  1.1  christos ac_save_CC=$CC
   3354  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3355  1.1  christos /* end confdefs.h.  */
   3356  1.1  christos #include <stdarg.h>
   3357  1.1  christos #include <stdio.h>
   3358  1.1  christos struct stat;
   3359  1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3360  1.1  christos struct buf { int x; };
   3361  1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3362  1.1  christos static char *e (p, i)
   3363  1.1  christos      char **p;
   3364  1.1  christos      int i;
   3365  1.1  christos {
   3366  1.1  christos   return p[i];
   3367  1.1  christos }
   3368  1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   3369  1.1  christos {
   3370  1.1  christos   char *s;
   3371  1.1  christos   va_list v;
   3372  1.1  christos   va_start (v,p);
   3373  1.1  christos   s = g (p, va_arg (v,int));
   3374  1.1  christos   va_end (v);
   3375  1.1  christos   return s;
   3376  1.1  christos }
   3377  1.1  christos 
   3378  1.1  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3379  1.1  christos    function prototypes and stuff, but not '\xHH' hex character constants.
   3380  1.1  christos    These don't provoke an error unfortunately, instead are silently treated
   3381  1.1  christos    as 'x'.  The following induces an error, until -std is added to get
   3382  1.1  christos    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3383  1.1  christos    array size at least.  It's necessary to write '\x00'==0 to get something
   3384  1.1  christos    that's true only with -std.  */
   3385  1.1  christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3386  1.1  christos 
   3387  1.1  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3388  1.1  christos    inside strings and character constants.  */
   3389  1.1  christos #define FOO(x) 'x'
   3390  1.1  christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3391  1.1  christos 
   3392  1.1  christos int test (int i, double x);
   3393  1.1  christos struct s1 {int (*f) (int a);};
   3394  1.1  christos struct s2 {int (*f) (double a);};
   3395  1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3396  1.1  christos int argc;
   3397  1.1  christos char **argv;
   3398  1.1  christos int
   3399  1.1  christos main ()
   3400  1.1  christos {
   3401  1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3402  1.1  christos   ;
   3403  1.1  christos   return 0;
   3404  1.1  christos }
   3405  1.1  christos _ACEOF
   3406  1.1  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3407  1.1  christos 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3408  1.1  christos do
   3409  1.1  christos   CC="$ac_save_CC $ac_arg"
   3410  1.1  christos   if ac_fn_c_try_compile "$LINENO"; then :
   3411  1.1  christos   ac_cv_prog_cc_c89=$ac_arg
   3412  1.1  christos fi
   3413  1.1  christos rm -f core conftest.err conftest.$ac_objext
   3414  1.1  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3415  1.1  christos done
   3416  1.1  christos rm -f conftest.$ac_ext
   3417  1.1  christos CC=$ac_save_CC
   3418  1.1  christos 
   3419  1.1  christos fi
   3420  1.1  christos # AC_CACHE_VAL
   3421  1.1  christos case "x$ac_cv_prog_cc_c89" in
   3422  1.1  christos   x)
   3423  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3424  1.1  christos $as_echo "none needed" >&6; } ;;
   3425  1.1  christos   xno)
   3426  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3427  1.1  christos $as_echo "unsupported" >&6; } ;;
   3428  1.1  christos   *)
   3429  1.1  christos     CC="$CC $ac_cv_prog_cc_c89"
   3430  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3431  1.1  christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3432  1.1  christos esac
   3433  1.1  christos if test "x$ac_cv_prog_cc_c89" != xno; then :
   3434  1.1  christos 
   3435  1.1  christos fi
   3436  1.1  christos 
   3437  1.1  christos ac_ext=c
   3438  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3439  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3440  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3441  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3442  1.1  christos 
   3443  1.3  christos 
   3444  1.3  christos ac_ext=c
   3445  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   3446  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3447  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3448  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3449  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3450  1.3  christos $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3451  1.3  christos # On Suns, sometimes $CPP names a directory.
   3452  1.3  christos if test -n "$CPP" && test -d "$CPP"; then
   3453  1.3  christos   CPP=
   3454  1.3  christos fi
   3455  1.3  christos if test -z "$CPP"; then
   3456  1.3  christos   if ${ac_cv_prog_CPP+:} false; then :
   3457  1.1  christos   $as_echo_n "(cached) " >&6
   3458  1.1  christos else
   3459  1.3  christos       # Double quotes because CPP needs to be expanded
   3460  1.3  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3461  1.3  christos     do
   3462  1.3  christos       ac_preproc_ok=false
   3463  1.3  christos for ac_c_preproc_warn_flag in '' yes
   3464  1.1  christos do
   3465  1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   3466  1.3  christos   # with a fresh cross-compiler works.
   3467  1.3  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3468  1.3  christos   # <limits.h> exists even on freestanding compilers.
   3469  1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3470  1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3471  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3472  1.3  christos /* end confdefs.h.  */
   3473  1.3  christos #ifdef __STDC__
   3474  1.3  christos # include <limits.h>
   3475  1.3  christos #else
   3476  1.3  christos # include <assert.h>
   3477  1.3  christos #endif
   3478  1.3  christos 		     Syntax error
   3479  1.3  christos _ACEOF
   3480  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   3481  1.1  christos 
   3482  1.1  christos else
   3483  1.3  christos   # Broken: fails on valid input.
   3484  1.3  christos continue
   3485  1.3  christos fi
   3486  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3487  1.3  christos 
   3488  1.3  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   3489  1.3  christos   # can be detected and how.
   3490  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3491  1.3  christos /* end confdefs.h.  */
   3492  1.3  christos #include <ac_nonexistent.h>
   3493  1.3  christos _ACEOF
   3494  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   3495  1.3  christos   # Broken: success on invalid input.
   3496  1.3  christos continue
   3497  1.3  christos else
   3498  1.3  christos   # Passes both tests.
   3499  1.3  christos ac_preproc_ok=:
   3500  1.3  christos break
   3501  1.1  christos fi
   3502  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3503  1.1  christos 
   3504  1.3  christos done
   3505  1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3506  1.3  christos rm -f conftest.i conftest.err conftest.$ac_ext
   3507  1.3  christos if $ac_preproc_ok; then :
   3508  1.3  christos   break
   3509  1.1  christos fi
   3510  1.1  christos 
   3511  1.3  christos     done
   3512  1.3  christos     ac_cv_prog_CPP=$CPP
   3513  1.1  christos 
   3514  1.3  christos fi
   3515  1.3  christos   CPP=$ac_cv_prog_CPP
   3516  1.3  christos else
   3517  1.3  christos   ac_cv_prog_CPP=$CPP
   3518  1.3  christos fi
   3519  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3520  1.3  christos $as_echo "$CPP" >&6; }
   3521  1.3  christos ac_preproc_ok=false
   3522  1.3  christos for ac_c_preproc_warn_flag in '' yes
   3523  1.3  christos do
   3524  1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   3525  1.3  christos   # with a fresh cross-compiler works.
   3526  1.3  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3527  1.3  christos   # <limits.h> exists even on freestanding compilers.
   3528  1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3529  1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3530  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3531  1.3  christos /* end confdefs.h.  */
   3532  1.3  christos #ifdef __STDC__
   3533  1.3  christos # include <limits.h>
   3534  1.3  christos #else
   3535  1.3  christos # include <assert.h>
   3536  1.3  christos #endif
   3537  1.3  christos 		     Syntax error
   3538  1.3  christos _ACEOF
   3539  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   3540  1.1  christos 
   3541  1.3  christos else
   3542  1.3  christos   # Broken: fails on valid input.
   3543  1.3  christos continue
   3544  1.3  christos fi
   3545  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3546  1.1  christos 
   3547  1.3  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   3548  1.3  christos   # can be detected and how.
   3549  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3550  1.3  christos /* end confdefs.h.  */
   3551  1.3  christos #include <ac_nonexistent.h>
   3552  1.3  christos _ACEOF
   3553  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   3554  1.3  christos   # Broken: success on invalid input.
   3555  1.3  christos continue
   3556  1.3  christos else
   3557  1.3  christos   # Passes both tests.
   3558  1.3  christos ac_preproc_ok=:
   3559  1.3  christos break
   3560  1.3  christos fi
   3561  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3562  1.1  christos 
   3563  1.3  christos done
   3564  1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3565  1.3  christos rm -f conftest.i conftest.err conftest.$ac_ext
   3566  1.3  christos if $ac_preproc_ok; then :
   3567  1.1  christos 
   3568  1.3  christos else
   3569  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3570  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3571  1.3  christos as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3572  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   3573  1.3  christos fi
   3574  1.1  christos 
   3575  1.3  christos ac_ext=c
   3576  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   3577  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3578  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3579  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3580  1.1  christos 
   3581  1.1  christos 
   3582  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3583  1.1  christos $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3584  1.1  christos if ${ac_cv_path_GREP+:} false; then :
   3585  1.1  christos   $as_echo_n "(cached) " >&6
   3586  1.1  christos else
   3587  1.1  christos   if test -z "$GREP"; then
   3588  1.1  christos   ac_path_GREP_found=false
   3589  1.1  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   3590  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3591  1.1  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3592  1.1  christos do
   3593  1.1  christos   IFS=$as_save_IFS
   3594  1.1  christos   test -z "$as_dir" && as_dir=.
   3595  1.1  christos     for ac_prog in grep ggrep; do
   3596  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3597  1.1  christos       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3598  1.1  christos       as_fn_executable_p "$ac_path_GREP" || continue
   3599  1.1  christos # Check for GNU ac_path_GREP and select it if it is found.
   3600  1.1  christos   # Check for GNU $ac_path_GREP
   3601  1.1  christos case `"$ac_path_GREP" --version 2>&1` in
   3602  1.1  christos *GNU*)
   3603  1.1  christos   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3604  1.1  christos *)
   3605  1.1  christos   ac_count=0
   3606  1.1  christos   $as_echo_n 0123456789 >"conftest.in"
   3607  1.1  christos   while :
   3608  1.1  christos   do
   3609  1.1  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3610  1.1  christos     mv "conftest.tmp" "conftest.in"
   3611  1.1  christos     cp "conftest.in" "conftest.nl"
   3612  1.1  christos     $as_echo 'GREP' >> "conftest.nl"
   3613  1.1  christos     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3614  1.1  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3615  1.1  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3616  1.1  christos     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3617  1.1  christos       # Best one so far, save it but keep looking for a better one
   3618  1.1  christos       ac_cv_path_GREP="$ac_path_GREP"
   3619  1.1  christos       ac_path_GREP_max=$ac_count
   3620  1.1  christos     fi
   3621  1.1  christos     # 10*(2^10) chars as input seems more than enough
   3622  1.1  christos     test $ac_count -gt 10 && break
   3623  1.1  christos   done
   3624  1.1  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3625  1.1  christos esac
   3626  1.1  christos 
   3627  1.1  christos       $ac_path_GREP_found && break 3
   3628  1.1  christos     done
   3629  1.1  christos   done
   3630  1.1  christos   done
   3631  1.1  christos IFS=$as_save_IFS
   3632  1.1  christos   if test -z "$ac_cv_path_GREP"; then
   3633  1.1  christos     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3634  1.1  christos   fi
   3635  1.1  christos else
   3636  1.1  christos   ac_cv_path_GREP=$GREP
   3637  1.1  christos fi
   3638  1.1  christos 
   3639  1.1  christos fi
   3640  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3641  1.1  christos $as_echo "$ac_cv_path_GREP" >&6; }
   3642  1.1  christos  GREP="$ac_cv_path_GREP"
   3643  1.1  christos 
   3644  1.1  christos 
   3645  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3646  1.1  christos $as_echo_n "checking for egrep... " >&6; }
   3647  1.1  christos if ${ac_cv_path_EGREP+:} false; then :
   3648  1.1  christos   $as_echo_n "(cached) " >&6
   3649  1.1  christos else
   3650  1.1  christos   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3651  1.1  christos    then ac_cv_path_EGREP="$GREP -E"
   3652  1.1  christos    else
   3653  1.1  christos      if test -z "$EGREP"; then
   3654  1.1  christos   ac_path_EGREP_found=false
   3655  1.1  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   3656  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3657  1.1  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3658  1.1  christos do
   3659  1.1  christos   IFS=$as_save_IFS
   3660  1.1  christos   test -z "$as_dir" && as_dir=.
   3661  1.1  christos     for ac_prog in egrep; do
   3662  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3663  1.1  christos       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3664  1.1  christos       as_fn_executable_p "$ac_path_EGREP" || continue
   3665  1.1  christos # Check for GNU ac_path_EGREP and select it if it is found.
   3666  1.1  christos   # Check for GNU $ac_path_EGREP
   3667  1.1  christos case `"$ac_path_EGREP" --version 2>&1` in
   3668  1.1  christos *GNU*)
   3669  1.1  christos   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3670  1.1  christos *)
   3671  1.1  christos   ac_count=0
   3672  1.1  christos   $as_echo_n 0123456789 >"conftest.in"
   3673  1.1  christos   while :
   3674  1.1  christos   do
   3675  1.1  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3676  1.1  christos     mv "conftest.tmp" "conftest.in"
   3677  1.1  christos     cp "conftest.in" "conftest.nl"
   3678  1.1  christos     $as_echo 'EGREP' >> "conftest.nl"
   3679  1.1  christos     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3680  1.1  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3681  1.1  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3682  1.1  christos     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3683  1.1  christos       # Best one so far, save it but keep looking for a better one
   3684  1.1  christos       ac_cv_path_EGREP="$ac_path_EGREP"
   3685  1.1  christos       ac_path_EGREP_max=$ac_count
   3686  1.1  christos     fi
   3687  1.1  christos     # 10*(2^10) chars as input seems more than enough
   3688  1.1  christos     test $ac_count -gt 10 && break
   3689  1.1  christos   done
   3690  1.1  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3691  1.1  christos esac
   3692  1.1  christos 
   3693  1.1  christos       $ac_path_EGREP_found && break 3
   3694  1.1  christos     done
   3695  1.1  christos   done
   3696  1.1  christos   done
   3697  1.1  christos IFS=$as_save_IFS
   3698  1.1  christos   if test -z "$ac_cv_path_EGREP"; then
   3699  1.1  christos     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3700  1.1  christos   fi
   3701  1.1  christos else
   3702  1.1  christos   ac_cv_path_EGREP=$EGREP
   3703  1.1  christos fi
   3704  1.1  christos 
   3705  1.1  christos    fi
   3706  1.1  christos fi
   3707  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3708  1.1  christos $as_echo "$ac_cv_path_EGREP" >&6; }
   3709  1.1  christos  EGREP="$ac_cv_path_EGREP"
   3710  1.1  christos 
   3711  1.1  christos 
   3712  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3713  1.3  christos $as_echo_n "checking for ANSI C header files... " >&6; }
   3714  1.3  christos if ${ac_cv_header_stdc+:} false; then :
   3715  1.1  christos   $as_echo_n "(cached) " >&6
   3716  1.1  christos else
   3717  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3718  1.3  christos /* end confdefs.h.  */
   3719  1.3  christos #include <stdlib.h>
   3720  1.3  christos #include <stdarg.h>
   3721  1.3  christos #include <string.h>
   3722  1.3  christos #include <float.h>
   3723  1.3  christos 
   3724  1.3  christos int
   3725  1.3  christos main ()
   3726  1.3  christos {
   3727  1.1  christos 
   3728  1.3  christos   ;
   3729  1.3  christos   return 0;
   3730  1.3  christos }
   3731  1.3  christos _ACEOF
   3732  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   3733  1.3  christos   ac_cv_header_stdc=yes
   3734  1.1  christos else
   3735  1.3  christos   ac_cv_header_stdc=no
   3736  1.1  christos fi
   3737  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3738  1.1  christos 
   3739  1.3  christos if test $ac_cv_header_stdc = yes; then
   3740  1.3  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3741  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3742  1.3  christos /* end confdefs.h.  */
   3743  1.3  christos #include <string.h>
   3744  1.1  christos 
   3745  1.3  christos _ACEOF
   3746  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3747  1.3  christos   $EGREP "memchr" >/dev/null 2>&1; then :
   3748  1.1  christos 
   3749  1.3  christos else
   3750  1.3  christos   ac_cv_header_stdc=no
   3751  1.3  christos fi
   3752  1.3  christos rm -f conftest*
   3753  1.1  christos 
   3754  1.3  christos fi
   3755  1.1  christos 
   3756  1.3  christos if test $ac_cv_header_stdc = yes; then
   3757  1.3  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3758  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3759  1.3  christos /* end confdefs.h.  */
   3760  1.3  christos #include <stdlib.h>
   3761  1.1  christos 
   3762  1.3  christos _ACEOF
   3763  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3764  1.3  christos   $EGREP "free" >/dev/null 2>&1; then :
   3765  1.1  christos 
   3766  1.3  christos else
   3767  1.3  christos   ac_cv_header_stdc=no
   3768  1.3  christos fi
   3769  1.3  christos rm -f conftest*
   3770  1.1  christos 
   3771  1.3  christos fi
   3772  1.1  christos 
   3773  1.3  christos if test $ac_cv_header_stdc = yes; then
   3774  1.3  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3775  1.3  christos   if test "$cross_compiling" = yes; then :
   3776  1.3  christos   :
   3777  1.3  christos else
   3778  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3779  1.3  christos /* end confdefs.h.  */
   3780  1.3  christos #include <ctype.h>
   3781  1.3  christos #include <stdlib.h>
   3782  1.3  christos #if ((' ' & 0x0FF) == 0x020)
   3783  1.3  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3784  1.3  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3785  1.3  christos #else
   3786  1.3  christos # define ISLOWER(c) \
   3787  1.3  christos 		   (('a' <= (c) && (c) <= 'i') \
   3788  1.3  christos 		     || ('j' <= (c) && (c) <= 'r') \
   3789  1.3  christos 		     || ('s' <= (c) && (c) <= 'z'))
   3790  1.3  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3791  1.3  christos #endif
   3792  1.1  christos 
   3793  1.3  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3794  1.3  christos int
   3795  1.3  christos main ()
   3796  1.3  christos {
   3797  1.3  christos   int i;
   3798  1.3  christos   for (i = 0; i < 256; i++)
   3799  1.3  christos     if (XOR (islower (i), ISLOWER (i))
   3800  1.3  christos 	|| toupper (i) != TOUPPER (i))
   3801  1.3  christos       return 2;
   3802  1.3  christos   return 0;
   3803  1.3  christos }
   3804  1.3  christos _ACEOF
   3805  1.3  christos if ac_fn_c_try_run "$LINENO"; then :
   3806  1.1  christos 
   3807  1.3  christos else
   3808  1.3  christos   ac_cv_header_stdc=no
   3809  1.3  christos fi
   3810  1.3  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3811  1.3  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3812  1.3  christos fi
   3813  1.1  christos 
   3814  1.3  christos fi
   3815  1.3  christos fi
   3816  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3817  1.3  christos $as_echo "$ac_cv_header_stdc" >&6; }
   3818  1.3  christos if test $ac_cv_header_stdc = yes; then
   3819  1.1  christos 
   3820  1.3  christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3821  1.1  christos 
   3822  1.3  christos fi
   3823  1.1  christos 
   3824  1.3  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3825  1.3  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3826  1.3  christos 		  inttypes.h stdint.h unistd.h
   3827  1.3  christos do :
   3828  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3829  1.3  christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3830  1.3  christos "
   3831  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3832  1.3  christos   cat >>confdefs.h <<_ACEOF
   3833  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3834  1.3  christos _ACEOF
   3835  1.3  christos 
   3836  1.3  christos fi
   3837  1.3  christos 
   3838  1.3  christos done
   3839  1.3  christos 
   3840  1.3  christos 
   3841  1.3  christos 
   3842  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3843  1.3  christos if test "x$ac_cv_header_minix_config_h" = xyes; then :
   3844  1.3  christos   MINIX=yes
   3845  1.3  christos else
   3846  1.3  christos   MINIX=
   3847  1.3  christos fi
   3848  1.3  christos 
   3849  1.3  christos 
   3850  1.3  christos   if test "$MINIX" = yes; then
   3851  1.1  christos 
   3852  1.3  christos $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3853  1.1  christos 
   3854  1.1  christos 
   3855  1.3  christos $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3856  1.1  christos 
   3857  1.1  christos 
   3858  1.3  christos $as_echo "#define _MINIX 1" >>confdefs.h
   3859  1.1  christos 
   3860  1.3  christos   fi
   3861  1.1  christos 
   3862  1.1  christos 
   3863  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3864  1.3  christos $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3865  1.3  christos if ${ac_cv_safe_to_define___extensions__+:} false; then :
   3866  1.1  christos   $as_echo_n "(cached) " >&6
   3867  1.1  christos else
   3868  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3869  1.3  christos /* end confdefs.h.  */
   3870  1.3  christos 
   3871  1.3  christos #         define __EXTENSIONS__ 1
   3872  1.3  christos           $ac_includes_default
   3873  1.3  christos int
   3874  1.3  christos main ()
   3875  1.3  christos {
   3876  1.3  christos 
   3877  1.3  christos   ;
   3878  1.3  christos   return 0;
   3879  1.3  christos }
   3880  1.3  christos _ACEOF
   3881  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   3882  1.3  christos   ac_cv_safe_to_define___extensions__=yes
   3883  1.1  christos else
   3884  1.3  christos   ac_cv_safe_to_define___extensions__=no
   3885  1.1  christos fi
   3886  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3887  1.1  christos fi
   3888  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3889  1.3  christos $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   3890  1.3  christos   test $ac_cv_safe_to_define___extensions__ = yes &&
   3891  1.3  christos     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   3892  1.1  christos 
   3893  1.3  christos   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   3894  1.1  christos 
   3895  1.3  christos   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3896  1.1  christos 
   3897  1.3  christos   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3898  1.1  christos 
   3899  1.3  christos   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   3900  1.1  christos 
   3901  1.1  christos 
   3902  1.1  christos 
   3903  1.3  christos # Enable RFC 3542 APIs on macOS
   3904  1.1  christos 
   3905  1.3  christos $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
   3906  1.1  christos 
   3907  1.1  christos 
   3908  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3909  1.3  christos $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3910  1.3  christos set x ${MAKE-make}
   3911  1.3  christos ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3912  1.3  christos if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3913  1.1  christos   $as_echo_n "(cached) " >&6
   3914  1.1  christos else
   3915  1.3  christos   cat >conftest.make <<\_ACEOF
   3916  1.3  christos SHELL = /bin/sh
   3917  1.3  christos all:
   3918  1.3  christos 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3919  1.3  christos _ACEOF
   3920  1.3  christos # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3921  1.3  christos case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3922  1.3  christos   *@@@%%%=?*=@@@%%%*)
   3923  1.3  christos     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3924  1.3  christos   *)
   3925  1.3  christos     eval ac_cv_prog_make_${ac_make}_set=no;;
   3926  1.3  christos esac
   3927  1.3  christos rm -f conftest.make
   3928  1.1  christos fi
   3929  1.3  christos if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3930  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3931  1.3  christos $as_echo "yes" >&6; }
   3932  1.3  christos   SET_MAKE=
   3933  1.1  christos else
   3934  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3935  1.1  christos $as_echo "no" >&6; }
   3936  1.3  christos   SET_MAKE="MAKE=${MAKE-make}"
   3937  1.1  christos fi
   3938  1.1  christos 
   3939  1.1  christos 
   3940  1.3  christos case `pwd` in
   3941  1.3  christos   *\ * | *\	*)
   3942  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   3943  1.3  christos $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   3944  1.3  christos esac
   3945  1.3  christos 
   3946  1.3  christos 
   3947  1.3  christos 
   3948  1.3  christos macro_version='2.4.6'
   3949  1.3  christos macro_revision='2.4.6'
   3950  1.3  christos 
   3951  1.3  christos 
   3952  1.3  christos 
   3953  1.3  christos 
   3954  1.3  christos 
   3955  1.3  christos 
   3956  1.3  christos 
   3957  1.3  christos 
   3958  1.3  christos 
   3959  1.3  christos 
   3960  1.3  christos 
   3961  1.3  christos 
   3962  1.3  christos 
   3963  1.3  christos ltmain=$ac_aux_dir/ltmain.sh
   3964  1.3  christos 
   3965  1.3  christos # Backslashify metacharacters that are still active within
   3966  1.3  christos # double-quoted strings.
   3967  1.3  christos sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   3968  1.3  christos 
   3969  1.3  christos # Same as above, but do not quote variable references.
   3970  1.3  christos double_quote_subst='s/\(["`\\]\)/\\\1/g'
   3971  1.3  christos 
   3972  1.3  christos # Sed substitution to delay expansion of an escaped shell variable in a
   3973  1.3  christos # double_quote_subst'ed string.
   3974  1.3  christos delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   3975  1.3  christos 
   3976  1.3  christos # Sed substitution to delay expansion of an escaped single quote.
   3977  1.3  christos delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   3978  1.3  christos 
   3979  1.3  christos # Sed substitution to avoid accidental globbing in evaled expressions
   3980  1.3  christos no_glob_subst='s/\*/\\\*/g'
   3981  1.3  christos 
   3982  1.3  christos ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   3983  1.3  christos ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   3984  1.3  christos ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   3985  1.3  christos 
   3986  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   3987  1.3  christos $as_echo_n "checking how to print strings... " >&6; }
   3988  1.3  christos # Test print first, because it will be a builtin if present.
   3989  1.3  christos if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   3990  1.3  christos    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   3991  1.3  christos   ECHO='print -r --'
   3992  1.3  christos elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   3993  1.3  christos   ECHO='printf %s\n'
   3994  1.3  christos else
   3995  1.3  christos   # Use this function as a fallback that always works.
   3996  1.3  christos   func_fallback_echo ()
   3997  1.3  christos   {
   3998  1.3  christos     eval 'cat <<_LTECHO_EOF
   3999  1.3  christos $1
   4000  1.3  christos _LTECHO_EOF'
   4001  1.3  christos   }
   4002  1.3  christos   ECHO='func_fallback_echo'
   4003  1.1  christos fi
   4004  1.3  christos 
   4005  1.3  christos # func_echo_all arg...
   4006  1.3  christos # Invoke $ECHO with all args, space-separated.
   4007  1.3  christos func_echo_all ()
   4008  1.3  christos {
   4009  1.3  christos     $ECHO ""
   4010  1.3  christos }
   4011  1.3  christos 
   4012  1.3  christos case $ECHO in
   4013  1.3  christos   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4014  1.3  christos $as_echo "printf" >&6; } ;;
   4015  1.3  christos   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4016  1.3  christos $as_echo "print -r" >&6; } ;;
   4017  1.3  christos   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4018  1.3  christos $as_echo "cat" >&6; } ;;
   4019  1.3  christos esac
   4020  1.3  christos 
   4021  1.3  christos 
   4022  1.3  christos 
   4023  1.3  christos 
   4024  1.3  christos 
   4025  1.3  christos 
   4026  1.3  christos 
   4027  1.3  christos 
   4028  1.3  christos 
   4029  1.3  christos 
   4030  1.3  christos 
   4031  1.3  christos 
   4032  1.3  christos 
   4033  1.3  christos 
   4034  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4035  1.3  christos $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4036  1.3  christos if ${ac_cv_path_SED+:} false; then :
   4037  1.1  christos   $as_echo_n "(cached) " >&6
   4038  1.1  christos else
   4039  1.3  christos             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4040  1.3  christos      for ac_i in 1 2 3 4 5 6 7; do
   4041  1.3  christos        ac_script="$ac_script$as_nl$ac_script"
   4042  1.3  christos      done
   4043  1.3  christos      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4044  1.3  christos      { ac_script=; unset ac_script;}
   4045  1.3  christos      if test -z "$SED"; then
   4046  1.3  christos   ac_path_SED_found=false
   4047  1.3  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   4048  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4049  1.1  christos for as_dir in $PATH
   4050  1.1  christos do
   4051  1.1  christos   IFS=$as_save_IFS
   4052  1.1  christos   test -z "$as_dir" && as_dir=.
   4053  1.3  christos     for ac_prog in sed gsed; do
   4054  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4055  1.3  christos       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4056  1.3  christos       as_fn_executable_p "$ac_path_SED" || continue
   4057  1.3  christos # Check for GNU ac_path_SED and select it if it is found.
   4058  1.3  christos   # Check for GNU $ac_path_SED
   4059  1.3  christos case `"$ac_path_SED" --version 2>&1` in
   4060  1.3  christos *GNU*)
   4061  1.3  christos   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4062  1.3  christos *)
   4063  1.3  christos   ac_count=0
   4064  1.3  christos   $as_echo_n 0123456789 >"conftest.in"
   4065  1.3  christos   while :
   4066  1.3  christos   do
   4067  1.3  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4068  1.3  christos     mv "conftest.tmp" "conftest.in"
   4069  1.3  christos     cp "conftest.in" "conftest.nl"
   4070  1.3  christos     $as_echo '' >> "conftest.nl"
   4071  1.3  christos     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4072  1.3  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4073  1.3  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4074  1.3  christos     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4075  1.3  christos       # Best one so far, save it but keep looking for a better one
   4076  1.3  christos       ac_cv_path_SED="$ac_path_SED"
   4077  1.3  christos       ac_path_SED_max=$ac_count
   4078  1.3  christos     fi
   4079  1.3  christos     # 10*(2^10) chars as input seems more than enough
   4080  1.3  christos     test $ac_count -gt 10 && break
   4081  1.3  christos   done
   4082  1.3  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4083  1.3  christos esac
   4084  1.3  christos 
   4085  1.3  christos       $ac_path_SED_found && break 3
   4086  1.3  christos     done
   4087  1.3  christos   done
   4088  1.1  christos   done
   4089  1.1  christos IFS=$as_save_IFS
   4090  1.3  christos   if test -z "$ac_cv_path_SED"; then
   4091  1.3  christos     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4092  1.3  christos   fi
   4093  1.1  christos else
   4094  1.3  christos   ac_cv_path_SED=$SED
   4095  1.1  christos fi
   4096  1.1  christos 
   4097  1.3  christos fi
   4098  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4099  1.3  christos $as_echo "$ac_cv_path_SED" >&6; }
   4100  1.3  christos  SED="$ac_cv_path_SED"
   4101  1.3  christos   rm -f conftest.sed
   4102  1.1  christos 
   4103  1.3  christos test -z "$SED" && SED=sed
   4104  1.3  christos Xsed="$SED -e 1s/^X//"
   4105  1.1  christos 
   4106  1.1  christos 
   4107  1.1  christos 
   4108  1.1  christos 
   4109  1.1  christos 
   4110  1.1  christos 
   4111  1.1  christos 
   4112  1.1  christos 
   4113  1.1  christos 
   4114  1.1  christos 
   4115  1.1  christos 
   4116  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   4117  1.3  christos $as_echo_n "checking for fgrep... " >&6; }
   4118  1.3  christos if ${ac_cv_path_FGREP+:} false; then :
   4119  1.1  christos   $as_echo_n "(cached) " >&6
   4120  1.1  christos else
   4121  1.3  christos   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   4122  1.3  christos    then ac_cv_path_FGREP="$GREP -F"
   4123  1.3  christos    else
   4124  1.3  christos      if test -z "$FGREP"; then
   4125  1.3  christos   ac_path_FGREP_found=false
   4126  1.3  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   4127  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4128  1.3  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4129  1.3  christos do
   4130  1.3  christos   IFS=$as_save_IFS
   4131  1.3  christos   test -z "$as_dir" && as_dir=.
   4132  1.3  christos     for ac_prog in fgrep; do
   4133  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4134  1.3  christos       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   4135  1.3  christos       as_fn_executable_p "$ac_path_FGREP" || continue
   4136  1.3  christos # Check for GNU ac_path_FGREP and select it if it is found.
   4137  1.3  christos   # Check for GNU $ac_path_FGREP
   4138  1.3  christos case `"$ac_path_FGREP" --version 2>&1` in
   4139  1.3  christos *GNU*)
   4140  1.3  christos   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   4141  1.3  christos *)
   4142  1.3  christos   ac_count=0
   4143  1.3  christos   $as_echo_n 0123456789 >"conftest.in"
   4144  1.3  christos   while :
   4145  1.3  christos   do
   4146  1.3  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4147  1.3  christos     mv "conftest.tmp" "conftest.in"
   4148  1.3  christos     cp "conftest.in" "conftest.nl"
   4149  1.3  christos     $as_echo 'FGREP' >> "conftest.nl"
   4150  1.3  christos     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4151  1.3  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4152  1.3  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4153  1.3  christos     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   4154  1.3  christos       # Best one so far, save it but keep looking for a better one
   4155  1.3  christos       ac_cv_path_FGREP="$ac_path_FGREP"
   4156  1.3  christos       ac_path_FGREP_max=$ac_count
   4157  1.1  christos     fi
   4158  1.3  christos     # 10*(2^10) chars as input seems more than enough
   4159  1.3  christos     test $ac_count -gt 10 && break
   4160  1.3  christos   done
   4161  1.3  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4162  1.3  christos esac
   4163  1.1  christos 
   4164  1.3  christos       $ac_path_FGREP_found && break 3
   4165  1.3  christos     done
   4166  1.3  christos   done
   4167  1.3  christos   done
   4168  1.3  christos IFS=$as_save_IFS
   4169  1.3  christos   if test -z "$ac_cv_path_FGREP"; then
   4170  1.3  christos     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4171  1.3  christos   fi
   4172  1.3  christos else
   4173  1.3  christos   ac_cv_path_FGREP=$FGREP
   4174  1.1  christos fi
   4175  1.1  christos 
   4176  1.3  christos    fi
   4177  1.1  christos fi
   4178  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   4179  1.3  christos $as_echo "$ac_cv_path_FGREP" >&6; }
   4180  1.3  christos  FGREP="$ac_cv_path_FGREP"
   4181  1.1  christos 
   4182  1.1  christos 
   4183  1.3  christos test -z "$GREP" && GREP=grep
   4184  1.1  christos 
   4185  1.1  christos 
   4186  1.1  christos 
   4187  1.1  christos 
   4188  1.1  christos 
   4189  1.1  christos 
   4190  1.1  christos 
   4191  1.1  christos 
   4192  1.1  christos 
   4193  1.1  christos 
   4194  1.1  christos 
   4195  1.1  christos 
   4196  1.1  christos 
   4197  1.1  christos 
   4198  1.1  christos 
   4199  1.1  christos 
   4200  1.1  christos 
   4201  1.1  christos 
   4202  1.1  christos 
   4203  1.3  christos # Check whether --with-gnu-ld was given.
   4204  1.3  christos if test "${with_gnu_ld+set}" = set; then :
   4205  1.3  christos   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   4206  1.1  christos else
   4207  1.3  christos   with_gnu_ld=no
   4208  1.3  christos fi
   4209  1.3  christos 
   4210  1.3  christos ac_prog=ld
   4211  1.3  christos if test yes = "$GCC"; then
   4212  1.3  christos   # Check if gcc -print-prog-name=ld gives a path.
   4213  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   4214  1.3  christos $as_echo_n "checking for ld used by $CC... " >&6; }
   4215  1.1  christos   case $host in
   4216  1.3  christos   *-*-mingw*)
   4217  1.3  christos     # gcc leaves a trailing carriage return, which upsets mingw
   4218  1.3  christos     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4219  1.3  christos   *)
   4220  1.3  christos     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4221  1.3  christos   esac
   4222  1.3  christos   case $ac_prog in
   4223  1.3  christos     # Accept absolute paths.
   4224  1.3  christos     [\\/]* | ?:[\\/]*)
   4225  1.3  christos       re_direlt='/[^/][^/]*/\.\./'
   4226  1.3  christos       # Canonicalize the pathname of ld
   4227  1.3  christos       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4228  1.3  christos       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4229  1.3  christos 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4230  1.3  christos       done
   4231  1.3  christos       test -z "$LD" && LD=$ac_prog
   4232  1.3  christos       ;;
   4233  1.3  christos   "")
   4234  1.3  christos     # If it fails, then pretend we aren't using GCC.
   4235  1.3  christos     ac_prog=ld
   4236  1.1  christos     ;;
   4237  1.3  christos   *)
   4238  1.3  christos     # If it is relative, then search for the first ld in PATH.
   4239  1.3  christos     with_gnu_ld=unknown
   4240  1.1  christos     ;;
   4241  1.3  christos   esac
   4242  1.3  christos elif test yes = "$with_gnu_ld"; then
   4243  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   4244  1.3  christos $as_echo_n "checking for GNU ld... " >&6; }
   4245  1.3  christos else
   4246  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   4247  1.3  christos $as_echo_n "checking for non-GNU ld... " >&6; }
   4248  1.3  christos fi
   4249  1.3  christos if ${lt_cv_path_LD+:} false; then :
   4250  1.3  christos   $as_echo_n "(cached) " >&6
   4251  1.3  christos else
   4252  1.3  christos   if test -z "$LD"; then
   4253  1.3  christos   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4254  1.3  christos   for ac_dir in $PATH; do
   4255  1.3  christos     IFS=$lt_save_ifs
   4256  1.3  christos     test -z "$ac_dir" && ac_dir=.
   4257  1.3  christos     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4258  1.3  christos       lt_cv_path_LD=$ac_dir/$ac_prog
   4259  1.3  christos       # Check to see if the program is GNU ld.  I'd rather use --version,
   4260  1.3  christos       # but apparently some variants of GNU ld only accept -v.
   4261  1.3  christos       # Break only if it was the GNU/non-GNU ld that we prefer.
   4262  1.3  christos       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4263  1.3  christos       *GNU* | *'with BFD'*)
   4264  1.3  christos 	test no != "$with_gnu_ld" && break
   4265  1.3  christos 	;;
   4266  1.3  christos       *)
   4267  1.3  christos 	test yes != "$with_gnu_ld" && break
   4268  1.3  christos 	;;
   4269  1.3  christos       esac
   4270  1.3  christos     fi
   4271  1.3  christos   done
   4272  1.3  christos   IFS=$lt_save_ifs
   4273  1.3  christos else
   4274  1.3  christos   lt_cv_path_LD=$LD # Let the user override the test with a path.
   4275  1.3  christos fi
   4276  1.1  christos fi
   4277  1.1  christos 
   4278  1.3  christos LD=$lt_cv_path_LD
   4279  1.3  christos if test -n "$LD"; then
   4280  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4281  1.3  christos $as_echo "$LD" >&6; }
   4282  1.1  christos else
   4283  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4284  1.3  christos $as_echo "no" >&6; }
   4285  1.1  christos fi
   4286  1.3  christos test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4287  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4288  1.3  christos $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4289  1.3  christos if ${lt_cv_prog_gnu_ld+:} false; then :
   4290  1.1  christos   $as_echo_n "(cached) " >&6
   4291  1.1  christos else
   4292  1.3  christos   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4293  1.3  christos case `$LD -v 2>&1 </dev/null` in
   4294  1.3  christos *GNU* | *'with BFD'*)
   4295  1.3  christos   lt_cv_prog_gnu_ld=yes
   4296  1.3  christos   ;;
   4297  1.3  christos *)
   4298  1.3  christos   lt_cv_prog_gnu_ld=no
   4299  1.3  christos   ;;
   4300  1.3  christos esac
   4301  1.1  christos fi
   4302  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4303  1.3  christos $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4304  1.3  christos with_gnu_ld=$lt_cv_prog_gnu_ld
   4305  1.1  christos 
   4306  1.1  christos 
   4307  1.1  christos 
   4308  1.1  christos 
   4309  1.1  christos 
   4310  1.1  christos 
   4311  1.1  christos 
   4312  1.1  christos 
   4313  1.1  christos 
   4314  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4315  1.3  christos $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4316  1.3  christos if ${lt_cv_path_NM+:} false; then :
   4317  1.3  christos   $as_echo_n "(cached) " >&6
   4318  1.3  christos else
   4319  1.3  christos   if test -n "$NM"; then
   4320  1.3  christos   # Let the user override the test.
   4321  1.3  christos   lt_cv_path_NM=$NM
   4322  1.3  christos else
   4323  1.3  christos   lt_nm_to_check=${ac_tool_prefix}nm
   4324  1.3  christos   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4325  1.3  christos     lt_nm_to_check="$lt_nm_to_check nm"
   4326  1.3  christos   fi
   4327  1.3  christos   for lt_tmp_nm in $lt_nm_to_check; do
   4328  1.3  christos     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4329  1.3  christos     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4330  1.3  christos       IFS=$lt_save_ifs
   4331  1.3  christos       test -z "$ac_dir" && ac_dir=.
   4332  1.3  christos       tmp_nm=$ac_dir/$lt_tmp_nm
   4333  1.3  christos       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   4334  1.3  christos 	# Check to see if the nm accepts a BSD-compat flag.
   4335  1.3  christos 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   4336  1.3  christos 	#   nm: unknown option "B" ignored
   4337  1.3  christos 	# Tru64's nm complains that /dev/null is an invalid object file
   4338  1.3  christos 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   4339  1.3  christos 	case $build_os in
   4340  1.3  christos 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   4341  1.3  christos 	*) lt_bad_file=/dev/null ;;
   4342  1.3  christos 	esac
   4343  1.3  christos 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   4344  1.3  christos 	*$lt_bad_file* | *'Invalid file or object type'*)
   4345  1.3  christos 	  lt_cv_path_NM="$tmp_nm -B"
   4346  1.3  christos 	  break 2
   4347  1.3  christos 	  ;;
   4348  1.3  christos 	*)
   4349  1.3  christos 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4350  1.3  christos 	  */dev/null*)
   4351  1.3  christos 	    lt_cv_path_NM="$tmp_nm -p"
   4352  1.3  christos 	    break 2
   4353  1.3  christos 	    ;;
   4354  1.3  christos 	  *)
   4355  1.3  christos 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4356  1.3  christos 	    continue # so that we can try to find one that supports BSD flags
   4357  1.3  christos 	    ;;
   4358  1.3  christos 	  esac
   4359  1.3  christos 	  ;;
   4360  1.3  christos 	esac
   4361  1.3  christos       fi
   4362  1.3  christos     done
   4363  1.3  christos     IFS=$lt_save_ifs
   4364  1.3  christos   done
   4365  1.3  christos   : ${lt_cv_path_NM=no}
   4366  1.3  christos fi
   4367  1.3  christos fi
   4368  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4369  1.3  christos $as_echo "$lt_cv_path_NM" >&6; }
   4370  1.3  christos if test no != "$lt_cv_path_NM"; then
   4371  1.3  christos   NM=$lt_cv_path_NM
   4372  1.3  christos else
   4373  1.3  christos   # Didn't find any BSD compatible name lister, look for dumpbin.
   4374  1.3  christos   if test -n "$DUMPBIN"; then :
   4375  1.3  christos     # Let the user override the test.
   4376  1.3  christos   else
   4377  1.3  christos     if test -n "$ac_tool_prefix"; then
   4378  1.3  christos   for ac_prog in dumpbin "link -dump"
   4379  1.3  christos   do
   4380  1.3  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4381  1.3  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4382  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4383  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   4384  1.3  christos if ${ac_cv_prog_DUMPBIN+:} false; then :
   4385  1.1  christos   $as_echo_n "(cached) " >&6
   4386  1.1  christos else
   4387  1.3  christos   if test -n "$DUMPBIN"; then
   4388  1.3  christos   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4389  1.1  christos else
   4390  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4391  1.1  christos for as_dir in $PATH
   4392  1.1  christos do
   4393  1.1  christos   IFS=$as_save_IFS
   4394  1.1  christos   test -z "$as_dir" && as_dir=.
   4395  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4396  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4397  1.3  christos     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4398  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4399  1.1  christos     break 2
   4400  1.1  christos   fi
   4401  1.1  christos done
   4402  1.1  christos   done
   4403  1.1  christos IFS=$as_save_IFS
   4404  1.1  christos 
   4405  1.1  christos fi
   4406  1.1  christos fi
   4407  1.3  christos DUMPBIN=$ac_cv_prog_DUMPBIN
   4408  1.3  christos if test -n "$DUMPBIN"; then
   4409  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4410  1.3  christos $as_echo "$DUMPBIN" >&6; }
   4411  1.1  christos else
   4412  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4413  1.1  christos $as_echo "no" >&6; }
   4414  1.1  christos fi
   4415  1.1  christos 
   4416  1.1  christos 
   4417  1.3  christos     test -n "$DUMPBIN" && break
   4418  1.3  christos   done
   4419  1.1  christos fi
   4420  1.3  christos if test -z "$DUMPBIN"; then
   4421  1.3  christos   ac_ct_DUMPBIN=$DUMPBIN
   4422  1.3  christos   for ac_prog in dumpbin "link -dump"
   4423  1.3  christos do
   4424  1.3  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4425  1.3  christos set dummy $ac_prog; ac_word=$2
   4426  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4427  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   4428  1.3  christos if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4429  1.1  christos   $as_echo_n "(cached) " >&6
   4430  1.1  christos else
   4431  1.3  christos   if test -n "$ac_ct_DUMPBIN"; then
   4432  1.3  christos   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4433  1.1  christos else
   4434  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4435  1.1  christos for as_dir in $PATH
   4436  1.1  christos do
   4437  1.1  christos   IFS=$as_save_IFS
   4438  1.1  christos   test -z "$as_dir" && as_dir=.
   4439  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4440  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4441  1.3  christos     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4442  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4443  1.1  christos     break 2
   4444  1.1  christos   fi
   4445  1.1  christos done
   4446  1.1  christos   done
   4447  1.1  christos IFS=$as_save_IFS
   4448  1.1  christos 
   4449  1.1  christos fi
   4450  1.1  christos fi
   4451  1.3  christos ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4452  1.3  christos if test -n "$ac_ct_DUMPBIN"; then
   4453  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4454  1.3  christos $as_echo "$ac_ct_DUMPBIN" >&6; }
   4455  1.1  christos else
   4456  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4457  1.1  christos $as_echo "no" >&6; }
   4458  1.1  christos fi
   4459  1.1  christos 
   4460  1.3  christos 
   4461  1.3  christos   test -n "$ac_ct_DUMPBIN" && break
   4462  1.3  christos done
   4463  1.3  christos 
   4464  1.3  christos   if test "x$ac_ct_DUMPBIN" = x; then
   4465  1.3  christos     DUMPBIN=":"
   4466  1.1  christos   else
   4467  1.1  christos     case $cross_compiling:$ac_tool_warned in
   4468  1.1  christos yes:)
   4469  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4470  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4471  1.1  christos ac_tool_warned=yes ;;
   4472  1.1  christos esac
   4473  1.3  christos     DUMPBIN=$ac_ct_DUMPBIN
   4474  1.1  christos   fi
   4475  1.1  christos fi
   4476  1.1  christos 
   4477  1.3  christos     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   4478  1.3  christos     *COFF*)
   4479  1.3  christos       DUMPBIN="$DUMPBIN -symbols -headers"
   4480  1.3  christos       ;;
   4481  1.3  christos     *)
   4482  1.3  christos       DUMPBIN=:
   4483  1.3  christos       ;;
   4484  1.3  christos     esac
   4485  1.3  christos   fi
   4486  1.1  christos 
   4487  1.3  christos   if test : != "$DUMPBIN"; then
   4488  1.3  christos     NM=$DUMPBIN
   4489  1.3  christos   fi
   4490  1.3  christos fi
   4491  1.3  christos test -z "$NM" && NM=nm
   4492  1.1  christos 
   4493  1.1  christos 
   4494  1.1  christos 
   4495  1.1  christos 
   4496  1.1  christos 
   4497  1.1  christos 
   4498  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4499  1.3  christos $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4500  1.3  christos if ${lt_cv_nm_interface+:} false; then :
   4501  1.3  christos   $as_echo_n "(cached) " >&6
   4502  1.3  christos else
   4503  1.3  christos   lt_cv_nm_interface="BSD nm"
   4504  1.3  christos   echo "int some_variable = 0;" > conftest.$ac_ext
   4505  1.3  christos   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4506  1.3  christos   (eval "$ac_compile" 2>conftest.err)
   4507  1.3  christos   cat conftest.err >&5
   4508  1.3  christos   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4509  1.3  christos   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4510  1.3  christos   cat conftest.err >&5
   4511  1.3  christos   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4512  1.3  christos   cat conftest.out >&5
   4513  1.3  christos   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4514  1.3  christos     lt_cv_nm_interface="MS dumpbin"
   4515  1.3  christos   fi
   4516  1.3  christos   rm -f conftest*
   4517  1.3  christos fi
   4518  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4519  1.3  christos $as_echo "$lt_cv_nm_interface" >&6; }
   4520  1.1  christos 
   4521  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4522  1.3  christos $as_echo_n "checking whether ln -s works... " >&6; }
   4523  1.3  christos LN_S=$as_ln_s
   4524  1.3  christos if test "$LN_S" = "ln -s"; then
   4525  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4526  1.3  christos $as_echo "yes" >&6; }
   4527  1.3  christos else
   4528  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4529  1.3  christos $as_echo "no, using $LN_S" >&6; }
   4530  1.3  christos fi
   4531  1.1  christos 
   4532  1.3  christos # find the maximum length of command line arguments
   4533  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4534  1.3  christos $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4535  1.3  christos if ${lt_cv_sys_max_cmd_len+:} false; then :
   4536  1.1  christos   $as_echo_n "(cached) " >&6
   4537  1.1  christos else
   4538  1.3  christos     i=0
   4539  1.3  christos   teststring=ABCD
   4540  1.1  christos 
   4541  1.3  christos   case $build_os in
   4542  1.3  christos   msdosdjgpp*)
   4543  1.3  christos     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4544  1.3  christos     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4545  1.3  christos     # during glob expansion).  Even if it were fixed, the result of this
   4546  1.3  christos     # check would be larger than it should be.
   4547  1.3  christos     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4548  1.3  christos     ;;
   4549  1.1  christos 
   4550  1.3  christos   gnu*)
   4551  1.3  christos     # Under GNU Hurd, this test is not required because there is
   4552  1.3  christos     # no limit to the length of command line arguments.
   4553  1.3  christos     # Libtool will interpret -1 as no limit whatsoever
   4554  1.3  christos     lt_cv_sys_max_cmd_len=-1;
   4555  1.3  christos     ;;
   4556  1.1  christos 
   4557  1.3  christos   cygwin* | mingw* | cegcc*)
   4558  1.3  christos     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4559  1.3  christos     # about 5 minutes as the teststring grows exponentially.
   4560  1.3  christos     # Worse, since 9x/ME are not pre-emptively multitasking,
   4561  1.3  christos     # you end up with a "frozen" computer, even though with patience
   4562  1.3  christos     # the test eventually succeeds (with a max line length of 256k).
   4563  1.3  christos     # Instead, let's just punt: use the minimum linelength reported by
   4564  1.3  christos     # all of the supported platforms: 8192 (on NT/2K/XP).
   4565  1.3  christos     lt_cv_sys_max_cmd_len=8192;
   4566  1.3  christos     ;;
   4567  1.1  christos 
   4568  1.3  christos   mint*)
   4569  1.3  christos     # On MiNT this can take a long time and run out of memory.
   4570  1.3  christos     lt_cv_sys_max_cmd_len=8192;
   4571  1.3  christos     ;;
   4572  1.1  christos 
   4573  1.3  christos   amigaos*)
   4574  1.3  christos     # On AmigaOS with pdksh, this test takes hours, literally.
   4575  1.3  christos     # So we just punt and use a minimum line length of 8192.
   4576  1.3  christos     lt_cv_sys_max_cmd_len=8192;
   4577  1.3  christos     ;;
   4578  1.1  christos 
   4579  1.3  christos   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   4580  1.3  christos     # This has been around since 386BSD, at least.  Likely further.
   4581  1.3  christos     if test -x /sbin/sysctl; then
   4582  1.3  christos       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4583  1.3  christos     elif test -x /usr/sbin/sysctl; then
   4584  1.3  christos       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4585  1.3  christos     else
   4586  1.3  christos       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4587  1.3  christos     fi
   4588  1.3  christos     # And add a safety zone
   4589  1.3  christos     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4590  1.3  christos     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4591  1.3  christos     ;;
   4592  1.1  christos 
   4593  1.3  christos   interix*)
   4594  1.3  christos     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4595  1.3  christos     lt_cv_sys_max_cmd_len=196608
   4596  1.3  christos     ;;
   4597  1.1  christos 
   4598  1.3  christos   os2*)
   4599  1.3  christos     # The test takes a long time on OS/2.
   4600  1.3  christos     lt_cv_sys_max_cmd_len=8192
   4601  1.3  christos     ;;
   4602  1.1  christos 
   4603  1.3  christos   osf*)
   4604  1.3  christos     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4605  1.3  christos     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4606  1.3  christos     # nice to cause kernel panics so lets avoid the loop below.
   4607  1.3  christos     # First set a reasonable default.
   4608  1.3  christos     lt_cv_sys_max_cmd_len=16384
   4609  1.3  christos     #
   4610  1.3  christos     if test -x /sbin/sysconfig; then
   4611  1.3  christos       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4612  1.3  christos         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4613  1.3  christos       esac
   4614  1.3  christos     fi
   4615  1.3  christos     ;;
   4616  1.3  christos   sco3.2v5*)
   4617  1.3  christos     lt_cv_sys_max_cmd_len=102400
   4618  1.1  christos     ;;
   4619  1.3  christos   sysv5* | sco5v6* | sysv4.2uw2*)
   4620  1.3  christos     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4621  1.3  christos     if test -n "$kargmax"; then
   4622  1.3  christos       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4623  1.3  christos     else
   4624  1.3  christos       lt_cv_sys_max_cmd_len=32768
   4625  1.3  christos     fi
   4626  1.1  christos     ;;
   4627  1.1  christos   *)
   4628  1.3  christos     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4629  1.3  christos     if test -n "$lt_cv_sys_max_cmd_len" && \
   4630  1.3  christos        test undefined != "$lt_cv_sys_max_cmd_len"; then
   4631  1.3  christos       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4632  1.3  christos       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4633  1.3  christos     else
   4634  1.3  christos       # Make teststring a little bigger before we do anything with it.
   4635  1.3  christos       # a 1K string should be a reasonable start.
   4636  1.3  christos       for i in 1 2 3 4 5 6 7 8; do
   4637  1.3  christos         teststring=$teststring$teststring
   4638  1.3  christos       done
   4639  1.3  christos       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4640  1.3  christos       # If test is not a shell built-in, we'll probably end up computing a
   4641  1.3  christos       # maximum length that is only half of the actual maximum length, but
   4642  1.3  christos       # we can't tell.
   4643  1.3  christos       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   4644  1.3  christos 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   4645  1.3  christos 	      test 17 != "$i" # 1/2 MB should be enough
   4646  1.3  christos       do
   4647  1.3  christos         i=`expr $i + 1`
   4648  1.3  christos         teststring=$teststring$teststring
   4649  1.3  christos       done
   4650  1.3  christos       # Only check the string length outside the loop.
   4651  1.3  christos       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   4652  1.3  christos       teststring=
   4653  1.3  christos       # Add a significant safety factor because C++ compilers can tack on
   4654  1.3  christos       # massive amounts of additional arguments before passing them to the
   4655  1.3  christos       # linker.  It appears as though 1/2 is a usable value.
   4656  1.3  christos       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4657  1.3  christos     fi
   4658  1.1  christos     ;;
   4659  1.1  christos   esac
   4660  1.1  christos 
   4661  1.3  christos fi
   4662  1.3  christos 
   4663  1.3  christos if test -n "$lt_cv_sys_max_cmd_len"; then
   4664  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   4665  1.3  christos $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   4666  1.3  christos else
   4667  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   4668  1.3  christos $as_echo "none" >&6; }
   4669  1.3  christos fi
   4670  1.3  christos max_cmd_len=$lt_cv_sys_max_cmd_len
   4671  1.3  christos 
   4672  1.1  christos 
   4673  1.1  christos 
   4674  1.1  christos 
   4675  1.3  christos 
   4676  1.3  christos 
   4677  1.3  christos : ${CP="cp -f"}
   4678  1.3  christos : ${MV="mv -f"}
   4679  1.3  christos : ${RM="rm -f"}
   4680  1.3  christos 
   4681  1.3  christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   4682  1.3  christos   lt_unset=unset
   4683  1.3  christos else
   4684  1.3  christos   lt_unset=false
   4685  1.3  christos fi
   4686  1.3  christos 
   4687  1.3  christos 
   4688  1.3  christos 
   4689  1.3  christos 
   4690  1.3  christos 
   4691  1.3  christos # test EBCDIC or ASCII
   4692  1.3  christos case `echo X|tr X '\101'` in
   4693  1.3  christos  A) # ASCII based system
   4694  1.3  christos     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   4695  1.3  christos   lt_SP2NL='tr \040 \012'
   4696  1.3  christos   lt_NL2SP='tr \015\012 \040\040'
   4697  1.3  christos   ;;
   4698  1.3  christos  *) # EBCDIC based system
   4699  1.3  christos   lt_SP2NL='tr \100 \n'
   4700  1.3  christos   lt_NL2SP='tr \r\n \100\100'
   4701  1.1  christos   ;;
   4702  1.3  christos esac
   4703  1.3  christos 
   4704  1.1  christos 
   4705  1.1  christos 
   4706  1.1  christos 
   4707  1.1  christos 
   4708  1.1  christos 
   4709  1.1  christos 
   4710  1.1  christos 
   4711  1.1  christos 
   4712  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   4713  1.3  christos $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   4714  1.3  christos if ${lt_cv_to_host_file_cmd+:} false; then :
   4715  1.3  christos   $as_echo_n "(cached) " >&6
   4716  1.3  christos else
   4717  1.3  christos   case $host in
   4718  1.3  christos   *-*-mingw* )
   4719  1.3  christos     case $build in
   4720  1.3  christos       *-*-mingw* ) # actually msys
   4721  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   4722  1.3  christos         ;;
   4723  1.3  christos       *-*-cygwin* )
   4724  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   4725  1.3  christos         ;;
   4726  1.3  christos       * ) # otherwise, assume *nix
   4727  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   4728  1.3  christos         ;;
   4729  1.3  christos     esac
   4730  1.1  christos     ;;
   4731  1.3  christos   *-*-cygwin* )
   4732  1.3  christos     case $build in
   4733  1.3  christos       *-*-mingw* ) # actually msys
   4734  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   4735  1.3  christos         ;;
   4736  1.3  christos       *-*-cygwin* )
   4737  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_noop
   4738  1.3  christos         ;;
   4739  1.3  christos       * ) # otherwise, assume *nix
   4740  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   4741  1.3  christos         ;;
   4742  1.3  christos     esac
   4743  1.1  christos     ;;
   4744  1.3  christos   * ) # unhandled hosts (and "normal" native builds)
   4745  1.3  christos     lt_cv_to_host_file_cmd=func_convert_file_noop
   4746  1.1  christos     ;;
   4747  1.1  christos esac
   4748  1.1  christos 
   4749  1.1  christos fi
   4750  1.1  christos 
   4751  1.3  christos to_host_file_cmd=$lt_cv_to_host_file_cmd
   4752  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   4753  1.3  christos $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   4754  1.1  christos 
   4755  1.1  christos 
   4756  1.1  christos 
   4757  1.1  christos 
   4758  1.1  christos 
   4759  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   4760  1.3  christos $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   4761  1.3  christos if ${lt_cv_to_tool_file_cmd+:} false; then :
   4762  1.3  christos   $as_echo_n "(cached) " >&6
   4763  1.3  christos else
   4764  1.3  christos   #assume ordinary cross tools, or native build.
   4765  1.3  christos lt_cv_to_tool_file_cmd=func_convert_file_noop
   4766  1.3  christos case $host in
   4767  1.3  christos   *-*-mingw* )
   4768  1.3  christos     case $build in
   4769  1.3  christos       *-*-mingw* ) # actually msys
   4770  1.3  christos         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   4771  1.3  christos         ;;
   4772  1.3  christos     esac
   4773  1.3  christos     ;;
   4774  1.3  christos esac
   4775  1.1  christos 
   4776  1.3  christos fi
   4777  1.1  christos 
   4778  1.3  christos to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   4779  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   4780  1.3  christos $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   4781  1.1  christos 
   4782  1.1  christos 
   4783  1.1  christos 
   4784  1.1  christos 
   4785  1.1  christos 
   4786  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   4787  1.3  christos $as_echo_n "checking for $LD option to reload object files... " >&6; }
   4788  1.3  christos if ${lt_cv_ld_reload_flag+:} false; then :
   4789  1.3  christos   $as_echo_n "(cached) " >&6
   4790  1.3  christos else
   4791  1.3  christos   lt_cv_ld_reload_flag='-r'
   4792  1.3  christos fi
   4793  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   4794  1.3  christos $as_echo "$lt_cv_ld_reload_flag" >&6; }
   4795  1.3  christos reload_flag=$lt_cv_ld_reload_flag
   4796  1.3  christos case $reload_flag in
   4797  1.3  christos "" | " "*) ;;
   4798  1.3  christos *) reload_flag=" $reload_flag" ;;
   4799  1.3  christos esac
   4800  1.3  christos reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4801  1.3  christos case $host_os in
   4802  1.3  christos   cygwin* | mingw* | pw32* | cegcc*)
   4803  1.3  christos     if test yes != "$GCC"; then
   4804  1.3  christos       reload_cmds=false
   4805  1.3  christos     fi
   4806  1.3  christos     ;;
   4807  1.3  christos   darwin*)
   4808  1.3  christos     if test yes = "$GCC"; then
   4809  1.3  christos       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   4810  1.3  christos     else
   4811  1.3  christos       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4812  1.3  christos     fi
   4813  1.3  christos     ;;
   4814  1.3  christos esac
   4815  1.1  christos 
   4816  1.1  christos 
   4817  1.1  christos 
   4818  1.1  christos 
   4819  1.1  christos 
   4820  1.1  christos 
   4821  1.1  christos 
   4822  1.1  christos 
   4823  1.1  christos 
   4824  1.1  christos if test -n "$ac_tool_prefix"; then
   4825  1.3  christos   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   4826  1.3  christos set dummy ${ac_tool_prefix}objdump; ac_word=$2
   4827  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4828  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   4829  1.3  christos if ${ac_cv_prog_OBJDUMP+:} false; then :
   4830  1.1  christos   $as_echo_n "(cached) " >&6
   4831  1.1  christos else
   4832  1.3  christos   if test -n "$OBJDUMP"; then
   4833  1.3  christos   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   4834  1.1  christos else
   4835  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4836  1.1  christos for as_dir in $PATH
   4837  1.1  christos do
   4838  1.1  christos   IFS=$as_save_IFS
   4839  1.1  christos   test -z "$as_dir" && as_dir=.
   4840  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4841  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4842  1.3  christos     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   4843  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4844  1.1  christos     break 2
   4845  1.1  christos   fi
   4846  1.1  christos done
   4847  1.1  christos   done
   4848  1.1  christos IFS=$as_save_IFS
   4849  1.1  christos 
   4850  1.1  christos fi
   4851  1.1  christos fi
   4852  1.3  christos OBJDUMP=$ac_cv_prog_OBJDUMP
   4853  1.3  christos if test -n "$OBJDUMP"; then
   4854  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   4855  1.3  christos $as_echo "$OBJDUMP" >&6; }
   4856  1.1  christos else
   4857  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4858  1.1  christos $as_echo "no" >&6; }
   4859  1.1  christos fi
   4860  1.1  christos 
   4861  1.1  christos 
   4862  1.1  christos fi
   4863  1.3  christos if test -z "$ac_cv_prog_OBJDUMP"; then
   4864  1.3  christos   ac_ct_OBJDUMP=$OBJDUMP
   4865  1.3  christos   # Extract the first word of "objdump", so it can be a program name with args.
   4866  1.3  christos set dummy objdump; ac_word=$2
   4867  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4868  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   4869  1.3  christos if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   4870  1.1  christos   $as_echo_n "(cached) " >&6
   4871  1.1  christos else
   4872  1.3  christos   if test -n "$ac_ct_OBJDUMP"; then
   4873  1.3  christos   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   4874  1.1  christos else
   4875  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4876  1.1  christos for as_dir in $PATH
   4877  1.1  christos do
   4878  1.1  christos   IFS=$as_save_IFS
   4879  1.1  christos   test -z "$as_dir" && as_dir=.
   4880  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4881  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4882  1.3  christos     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   4883  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4884  1.1  christos     break 2
   4885  1.1  christos   fi
   4886  1.1  christos done
   4887  1.1  christos   done
   4888  1.1  christos IFS=$as_save_IFS
   4889  1.1  christos 
   4890  1.1  christos fi
   4891  1.1  christos fi
   4892  1.3  christos ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   4893  1.3  christos if test -n "$ac_ct_OBJDUMP"; then
   4894  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   4895  1.3  christos $as_echo "$ac_ct_OBJDUMP" >&6; }
   4896  1.1  christos else
   4897  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4898  1.1  christos $as_echo "no" >&6; }
   4899  1.1  christos fi
   4900  1.1  christos 
   4901  1.3  christos   if test "x$ac_ct_OBJDUMP" = x; then
   4902  1.3  christos     OBJDUMP="false"
   4903  1.1  christos   else
   4904  1.1  christos     case $cross_compiling:$ac_tool_warned in
   4905  1.1  christos yes:)
   4906  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4907  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4908  1.1  christos ac_tool_warned=yes ;;
   4909  1.1  christos esac
   4910  1.3  christos     OBJDUMP=$ac_ct_OBJDUMP
   4911  1.1  christos   fi
   4912  1.1  christos else
   4913  1.3  christos   OBJDUMP="$ac_cv_prog_OBJDUMP"
   4914  1.1  christos fi
   4915  1.1  christos 
   4916  1.3  christos test -z "$OBJDUMP" && OBJDUMP=objdump
   4917  1.1  christos 
   4918  1.1  christos 
   4919  1.1  christos 
   4920  1.1  christos 
   4921  1.1  christos 
   4922  1.1  christos 
   4923  1.1  christos 
   4924  1.1  christos 
   4925  1.1  christos 
   4926  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   4927  1.3  christos $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   4928  1.3  christos if ${lt_cv_deplibs_check_method+:} false; then :
   4929  1.1  christos   $as_echo_n "(cached) " >&6
   4930  1.1  christos else
   4931  1.3  christos   lt_cv_file_magic_cmd='$MAGIC_CMD'
   4932  1.3  christos lt_cv_file_magic_test_file=
   4933  1.3  christos lt_cv_deplibs_check_method='unknown'
   4934  1.3  christos # Need to set the preceding variable on all platforms that support
   4935  1.3  christos # interlibrary dependencies.
   4936  1.3  christos # 'none' -- dependencies not supported.
   4937  1.3  christos # 'unknown' -- same as none, but documents that we really don't know.
   4938  1.3  christos # 'pass_all' -- all dependencies passed with no checks.
   4939  1.3  christos # 'test_compile' -- check by making test program.
   4940  1.3  christos # 'file_magic [[regex]]' -- check by looking for files in library path
   4941  1.3  christos # that responds to the $file_magic_cmd with a given extended regex.
   4942  1.3  christos # If you have 'file' or equivalent on your system and you're not sure
   4943  1.3  christos # whether 'pass_all' will *always* work, you probably want this one.
   4944  1.1  christos 
   4945  1.1  christos case $host_os in
   4946  1.3  christos aix[4-9]*)
   4947  1.3  christos   lt_cv_deplibs_check_method=pass_all
   4948  1.3  christos   ;;
   4949  1.3  christos 
   4950  1.3  christos beos*)
   4951  1.3  christos   lt_cv_deplibs_check_method=pass_all
   4952  1.3  christos   ;;
   4953  1.3  christos 
   4954  1.3  christos bsdi[45]*)
   4955  1.3  christos   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4956  1.3  christos   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4957  1.3  christos   lt_cv_file_magic_test_file=/shlib/libc.so
   4958  1.3  christos   ;;
   4959  1.3  christos 
   4960  1.3  christos cygwin*)
   4961  1.3  christos   # func_win32_libid is a shell function defined in ltmain.sh
   4962  1.3  christos   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4963  1.3  christos   lt_cv_file_magic_cmd='func_win32_libid'
   4964  1.3  christos   ;;
   4965  1.3  christos 
   4966  1.3  christos mingw* | pw32*)
   4967  1.3  christos   # Base MSYS/MinGW do not provide the 'file' command needed by
   4968  1.3  christos   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   4969  1.3  christos   # unless we find 'file', for example because we are cross-compiling.
   4970  1.3  christos   if ( file / ) >/dev/null 2>&1; then
   4971  1.3  christos     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4972  1.3  christos     lt_cv_file_magic_cmd='func_win32_libid'
   4973  1.3  christos   else
   4974  1.3  christos     # Keep this pattern in sync with the one in func_win32_libid.
   4975  1.3  christos     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   4976  1.3  christos     lt_cv_file_magic_cmd='$OBJDUMP -f'
   4977  1.3  christos   fi
   4978  1.3  christos   ;;
   4979  1.3  christos 
   4980  1.3  christos cegcc*)
   4981  1.3  christos   # use the weaker test based on 'objdump'. See mingw*.
   4982  1.3  christos   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   4983  1.3  christos   lt_cv_file_magic_cmd='$OBJDUMP -f'
   4984  1.3  christos   ;;
   4985  1.3  christos 
   4986  1.3  christos darwin* | rhapsody*)
   4987  1.3  christos   lt_cv_deplibs_check_method=pass_all
   4988  1.3  christos   ;;
   4989  1.3  christos 
   4990  1.3  christos freebsd* | dragonfly*)
   4991  1.3  christos   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4992  1.3  christos     case $host_cpu in
   4993  1.3  christos     i*86 )
   4994  1.3  christos       # Not sure whether the presence of OpenBSD here was a mistake.
   4995  1.3  christos       # Let's accept both of them until this is cleared up.
   4996  1.3  christos       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   4997  1.3  christos       lt_cv_file_magic_cmd=/usr/bin/file
   4998  1.3  christos       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4999  1.3  christos       ;;
   5000  1.3  christos     esac
   5001  1.3  christos   else
   5002  1.3  christos     lt_cv_deplibs_check_method=pass_all
   5003  1.3  christos   fi
   5004  1.3  christos   ;;
   5005  1.3  christos 
   5006  1.3  christos haiku*)
   5007  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5008  1.3  christos   ;;
   5009  1.3  christos 
   5010  1.3  christos hpux10.20* | hpux11*)
   5011  1.3  christos   lt_cv_file_magic_cmd=/usr/bin/file
   5012  1.3  christos   case $host_cpu in
   5013  1.3  christos   ia64*)
   5014  1.3  christos     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   5015  1.3  christos     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   5016  1.3  christos     ;;
   5017  1.3  christos   hppa*64*)
   5018  1.3  christos     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  1.3  christos     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   5020  1.1  christos     ;;
   5021  1.1  christos   *)
   5022  1.3  christos     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   5023  1.3  christos     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   5024  1.3  christos     ;;
   5025  1.3  christos   esac
   5026  1.3  christos   ;;
   5027  1.3  christos 
   5028  1.3  christos interix[3-9]*)
   5029  1.3  christos   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   5030  1.3  christos   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   5031  1.3  christos   ;;
   5032  1.3  christos 
   5033  1.3  christos irix5* | irix6* | nonstopux*)
   5034  1.3  christos   case $LD in
   5035  1.3  christos   *-32|*"-32 ") libmagic=32-bit;;
   5036  1.3  christos   *-n32|*"-n32 ") libmagic=N32;;
   5037  1.3  christos   *-64|*"-64 ") libmagic=64-bit;;
   5038  1.3  christos   *) libmagic=never-match;;
   5039  1.3  christos   esac
   5040  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5041  1.3  christos   ;;
   5042  1.3  christos 
   5043  1.3  christos # This must be glibc/ELF.
   5044  1.3  christos linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   5045  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5046  1.3  christos   ;;
   5047  1.3  christos 
   5048  1.3  christos netbsd*)
   5049  1.3  christos   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5050  1.3  christos     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5051  1.3  christos   else
   5052  1.3  christos     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   5053  1.3  christos   fi
   5054  1.3  christos   ;;
   5055  1.3  christos 
   5056  1.3  christos newos6*)
   5057  1.3  christos   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   5058  1.3  christos   lt_cv_file_magic_cmd=/usr/bin/file
   5059  1.3  christos   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   5060  1.3  christos   ;;
   5061  1.3  christos 
   5062  1.3  christos *nto* | *qnx*)
   5063  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5064  1.3  christos   ;;
   5065  1.3  christos 
   5066  1.3  christos openbsd* | bitrig*)
   5067  1.3  christos   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   5068  1.3  christos     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   5069  1.3  christos   else
   5070  1.3  christos     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5071  1.3  christos   fi
   5072  1.3  christos   ;;
   5073  1.3  christos 
   5074  1.3  christos osf3* | osf4* | osf5*)
   5075  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5076  1.3  christos   ;;
   5077  1.3  christos 
   5078  1.3  christos rdos*)
   5079  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5080  1.3  christos   ;;
   5081  1.3  christos 
   5082  1.3  christos solaris*)
   5083  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5084  1.3  christos   ;;
   5085  1.3  christos 
   5086  1.3  christos sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   5087  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5088  1.3  christos   ;;
   5089  1.3  christos 
   5090  1.3  christos sysv4 | sysv4.3*)
   5091  1.3  christos   case $host_vendor in
   5092  1.3  christos   motorola)
   5093  1.3  christos     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  1.3  christos     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   5095  1.3  christos     ;;
   5096  1.3  christos   ncr)
   5097  1.3  christos     lt_cv_deplibs_check_method=pass_all
   5098  1.3  christos     ;;
   5099  1.3  christos   sequent)
   5100  1.3  christos     lt_cv_file_magic_cmd='/bin/file'
   5101  1.3  christos     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   5102  1.3  christos     ;;
   5103  1.3  christos   sni)
   5104  1.3  christos     lt_cv_file_magic_cmd='/bin/file'
   5105  1.3  christos     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   5106  1.3  christos     lt_cv_file_magic_test_file=/lib/libc.so
   5107  1.3  christos     ;;
   5108  1.3  christos   siemens)
   5109  1.3  christos     lt_cv_deplibs_check_method=pass_all
   5110  1.3  christos     ;;
   5111  1.3  christos   pc)
   5112  1.3  christos     lt_cv_deplibs_check_method=pass_all
   5113  1.1  christos     ;;
   5114  1.1  christos   esac
   5115  1.1  christos   ;;
   5116  1.3  christos 
   5117  1.3  christos tpf*)
   5118  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5119  1.3  christos   ;;
   5120  1.3  christos os2*)
   5121  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5122  1.1  christos   ;;
   5123  1.1  christos esac
   5124  1.1  christos 
   5125  1.1  christos fi
   5126  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   5127  1.3  christos $as_echo "$lt_cv_deplibs_check_method" >&6; }
   5128  1.3  christos 
   5129  1.3  christos file_magic_glob=
   5130  1.3  christos want_nocaseglob=no
   5131  1.3  christos if test "$build" = "$host"; then
   5132  1.3  christos   case $host_os in
   5133  1.3  christos   mingw* | pw32*)
   5134  1.3  christos     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   5135  1.3  christos       want_nocaseglob=yes
   5136  1.3  christos     else
   5137  1.3  christos       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   5138  1.3  christos     fi
   5139  1.3  christos     ;;
   5140  1.3  christos   esac
   5141  1.3  christos fi
   5142  1.3  christos 
   5143  1.3  christos file_magic_cmd=$lt_cv_file_magic_cmd
   5144  1.3  christos deplibs_check_method=$lt_cv_deplibs_check_method
   5145  1.3  christos test -z "$deplibs_check_method" && deplibs_check_method=unknown
   5146  1.3  christos 
   5147  1.3  christos 
   5148  1.3  christos 
   5149  1.3  christos 
   5150  1.3  christos 
   5151  1.3  christos 
   5152  1.3  christos 
   5153  1.3  christos 
   5154  1.3  christos 
   5155  1.3  christos 
   5156  1.3  christos 
   5157  1.3  christos 
   5158  1.3  christos 
   5159  1.3  christos 
   5160  1.1  christos 
   5161  1.1  christos 
   5162  1.1  christos 
   5163  1.1  christos 
   5164  1.1  christos 
   5165  1.1  christos 
   5166  1.1  christos 
   5167  1.1  christos 
   5168  1.1  christos if test -n "$ac_tool_prefix"; then
   5169  1.3  christos   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   5170  1.3  christos set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   5171  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5172  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5173  1.3  christos if ${ac_cv_prog_DLLTOOL+:} false; then :
   5174  1.1  christos   $as_echo_n "(cached) " >&6
   5175  1.1  christos else
   5176  1.3  christos   if test -n "$DLLTOOL"; then
   5177  1.3  christos   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   5178  1.1  christos else
   5179  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5180  1.1  christos for as_dir in $PATH
   5181  1.1  christos do
   5182  1.1  christos   IFS=$as_save_IFS
   5183  1.1  christos   test -z "$as_dir" && as_dir=.
   5184  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5185  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5186  1.3  christos     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   5187  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5188  1.1  christos     break 2
   5189  1.1  christos   fi
   5190  1.1  christos done
   5191  1.1  christos   done
   5192  1.1  christos IFS=$as_save_IFS
   5193  1.1  christos 
   5194  1.1  christos fi
   5195  1.1  christos fi
   5196  1.3  christos DLLTOOL=$ac_cv_prog_DLLTOOL
   5197  1.3  christos if test -n "$DLLTOOL"; then
   5198  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   5199  1.3  christos $as_echo "$DLLTOOL" >&6; }
   5200  1.3  christos else
   5201  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5202  1.3  christos $as_echo "no" >&6; }
   5203  1.3  christos fi
   5204  1.3  christos 
   5205  1.3  christos 
   5206  1.3  christos fi
   5207  1.3  christos if test -z "$ac_cv_prog_DLLTOOL"; then
   5208  1.3  christos   ac_ct_DLLTOOL=$DLLTOOL
   5209  1.3  christos   # Extract the first word of "dlltool", so it can be a program name with args.
   5210  1.3  christos set dummy dlltool; ac_word=$2
   5211  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5212  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5213  1.3  christos if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   5214  1.3  christos   $as_echo_n "(cached) " >&6
   5215  1.3  christos else
   5216  1.3  christos   if test -n "$ac_ct_DLLTOOL"; then
   5217  1.3  christos   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   5218  1.3  christos else
   5219  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5220  1.3  christos for as_dir in $PATH
   5221  1.3  christos do
   5222  1.3  christos   IFS=$as_save_IFS
   5223  1.3  christos   test -z "$as_dir" && as_dir=.
   5224  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5225  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5226  1.3  christos     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   5227  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5228  1.3  christos     break 2
   5229  1.3  christos   fi
   5230  1.3  christos done
   5231  1.3  christos   done
   5232  1.3  christos IFS=$as_save_IFS
   5233  1.3  christos 
   5234  1.3  christos fi
   5235  1.3  christos fi
   5236  1.3  christos ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5237  1.3  christos if test -n "$ac_ct_DLLTOOL"; then
   5238  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5239  1.3  christos $as_echo "$ac_ct_DLLTOOL" >&6; }
   5240  1.3  christos else
   5241  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5242  1.3  christos $as_echo "no" >&6; }
   5243  1.3  christos fi
   5244  1.3  christos 
   5245  1.3  christos   if test "x$ac_ct_DLLTOOL" = x; then
   5246  1.3  christos     DLLTOOL="false"
   5247  1.3  christos   else
   5248  1.3  christos     case $cross_compiling:$ac_tool_warned in
   5249  1.3  christos yes:)
   5250  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5251  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5252  1.3  christos ac_tool_warned=yes ;;
   5253  1.3  christos esac
   5254  1.3  christos     DLLTOOL=$ac_ct_DLLTOOL
   5255  1.3  christos   fi
   5256  1.3  christos else
   5257  1.3  christos   DLLTOOL="$ac_cv_prog_DLLTOOL"
   5258  1.3  christos fi
   5259  1.3  christos 
   5260  1.3  christos test -z "$DLLTOOL" && DLLTOOL=dlltool
   5261  1.3  christos 
   5262  1.3  christos 
   5263  1.3  christos 
   5264  1.3  christos 
   5265  1.3  christos 
   5266  1.3  christos 
   5267  1.3  christos 
   5268  1.3  christos 
   5269  1.3  christos 
   5270  1.3  christos 
   5271  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5272  1.3  christos $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5273  1.3  christos if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5274  1.3  christos   $as_echo_n "(cached) " >&6
   5275  1.3  christos else
   5276  1.3  christos   lt_cv_sharedlib_from_linklib_cmd='unknown'
   5277  1.3  christos 
   5278  1.3  christos case $host_os in
   5279  1.3  christos cygwin* | mingw* | pw32* | cegcc*)
   5280  1.3  christos   # two different shell functions defined in ltmain.sh;
   5281  1.3  christos   # decide which one to use based on capabilities of $DLLTOOL
   5282  1.3  christos   case `$DLLTOOL --help 2>&1` in
   5283  1.3  christos   *--identify-strict*)
   5284  1.3  christos     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5285  1.3  christos     ;;
   5286  1.3  christos   *)
   5287  1.3  christos     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5288  1.3  christos     ;;
   5289  1.3  christos   esac
   5290  1.3  christos   ;;
   5291  1.3  christos *)
   5292  1.3  christos   # fallback: assume linklib IS sharedlib
   5293  1.3  christos   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   5294  1.3  christos   ;;
   5295  1.3  christos esac
   5296  1.3  christos 
   5297  1.3  christos fi
   5298  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5299  1.3  christos $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5300  1.3  christos sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5301  1.3  christos test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5302  1.3  christos 
   5303  1.3  christos 
   5304  1.3  christos 
   5305  1.3  christos 
   5306  1.3  christos 
   5307  1.3  christos 
   5308  1.3  christos 
   5309  1.3  christos if test -n "$ac_tool_prefix"; then
   5310  1.3  christos   for ac_prog in ar
   5311  1.3  christos   do
   5312  1.3  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5313  1.3  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5314  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5315  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5316  1.3  christos if ${ac_cv_prog_AR+:} false; then :
   5317  1.3  christos   $as_echo_n "(cached) " >&6
   5318  1.3  christos else
   5319  1.3  christos   if test -n "$AR"; then
   5320  1.3  christos   ac_cv_prog_AR="$AR" # Let the user override the test.
   5321  1.3  christos else
   5322  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5323  1.3  christos for as_dir in $PATH
   5324  1.3  christos do
   5325  1.3  christos   IFS=$as_save_IFS
   5326  1.3  christos   test -z "$as_dir" && as_dir=.
   5327  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5328  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5329  1.3  christos     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5330  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5331  1.3  christos     break 2
   5332  1.3  christos   fi
   5333  1.3  christos done
   5334  1.3  christos   done
   5335  1.3  christos IFS=$as_save_IFS
   5336  1.3  christos 
   5337  1.3  christos fi
   5338  1.3  christos fi
   5339  1.3  christos AR=$ac_cv_prog_AR
   5340  1.3  christos if test -n "$AR"; then
   5341  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5342  1.3  christos $as_echo "$AR" >&6; }
   5343  1.1  christos else
   5344  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5345  1.1  christos $as_echo "no" >&6; }
   5346  1.1  christos fi
   5347  1.1  christos 
   5348  1.1  christos 
   5349  1.1  christos     test -n "$AR" && break
   5350  1.1  christos   done
   5351  1.1  christos fi
   5352  1.1  christos if test -z "$AR"; then
   5353  1.1  christos   ac_ct_AR=$AR
   5354  1.1  christos   for ac_prog in ar
   5355  1.1  christos do
   5356  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5357  1.1  christos set dummy $ac_prog; ac_word=$2
   5358  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5359  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5360  1.1  christos if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5361  1.1  christos   $as_echo_n "(cached) " >&6
   5362  1.1  christos else
   5363  1.1  christos   if test -n "$ac_ct_AR"; then
   5364  1.1  christos   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5365  1.1  christos else
   5366  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5367  1.1  christos for as_dir in $PATH
   5368  1.1  christos do
   5369  1.1  christos   IFS=$as_save_IFS
   5370  1.1  christos   test -z "$as_dir" && as_dir=.
   5371  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5372  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5373  1.1  christos     ac_cv_prog_ac_ct_AR="$ac_prog"
   5374  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5375  1.1  christos     break 2
   5376  1.1  christos   fi
   5377  1.1  christos done
   5378  1.1  christos   done
   5379  1.1  christos IFS=$as_save_IFS
   5380  1.1  christos 
   5381  1.1  christos fi
   5382  1.1  christos fi
   5383  1.1  christos ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5384  1.1  christos if test -n "$ac_ct_AR"; then
   5385  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5386  1.1  christos $as_echo "$ac_ct_AR" >&6; }
   5387  1.1  christos else
   5388  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5389  1.1  christos $as_echo "no" >&6; }
   5390  1.1  christos fi
   5391  1.1  christos 
   5392  1.1  christos 
   5393  1.1  christos   test -n "$ac_ct_AR" && break
   5394  1.1  christos done
   5395  1.1  christos 
   5396  1.1  christos   if test "x$ac_ct_AR" = x; then
   5397  1.1  christos     AR="false"
   5398  1.1  christos   else
   5399  1.1  christos     case $cross_compiling:$ac_tool_warned in
   5400  1.1  christos yes:)
   5401  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5402  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5403  1.1  christos ac_tool_warned=yes ;;
   5404  1.1  christos esac
   5405  1.1  christos     AR=$ac_ct_AR
   5406  1.1  christos   fi
   5407  1.1  christos fi
   5408  1.1  christos 
   5409  1.1  christos : ${AR=ar}
   5410  1.1  christos : ${AR_FLAGS=cru}
   5411  1.1  christos 
   5412  1.1  christos 
   5413  1.1  christos 
   5414  1.1  christos 
   5415  1.1  christos 
   5416  1.1  christos 
   5417  1.1  christos 
   5418  1.1  christos 
   5419  1.1  christos 
   5420  1.1  christos 
   5421  1.1  christos 
   5422  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5423  1.1  christos $as_echo_n "checking for archiver @FILE support... " >&6; }
   5424  1.1  christos if ${lt_cv_ar_at_file+:} false; then :
   5425  1.1  christos   $as_echo_n "(cached) " >&6
   5426  1.1  christos else
   5427  1.1  christos   lt_cv_ar_at_file=no
   5428  1.1  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5429  1.1  christos /* end confdefs.h.  */
   5430  1.1  christos 
   5431  1.1  christos int
   5432  1.1  christos main ()
   5433  1.1  christos {
   5434  1.1  christos 
   5435  1.1  christos   ;
   5436  1.1  christos   return 0;
   5437  1.1  christos }
   5438  1.1  christos _ACEOF
   5439  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   5440  1.1  christos   echo conftest.$ac_objext > conftest.lst
   5441  1.1  christos       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5442  1.1  christos       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5443  1.1  christos   (eval $lt_ar_try) 2>&5
   5444  1.1  christos   ac_status=$?
   5445  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5446  1.1  christos   test $ac_status = 0; }
   5447  1.1  christos       if test 0 -eq "$ac_status"; then
   5448  1.1  christos 	# Ensure the archiver fails upon bogus file names.
   5449  1.1  christos 	rm -f conftest.$ac_objext libconftest.a
   5450  1.1  christos 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5451  1.1  christos   (eval $lt_ar_try) 2>&5
   5452  1.1  christos   ac_status=$?
   5453  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5454  1.1  christos   test $ac_status = 0; }
   5455  1.1  christos 	if test 0 -ne "$ac_status"; then
   5456  1.1  christos           lt_cv_ar_at_file=@
   5457  1.1  christos         fi
   5458  1.1  christos       fi
   5459  1.1  christos       rm -f conftest.* libconftest.a
   5460  1.1  christos 
   5461  1.1  christos fi
   5462  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5463  1.1  christos 
   5464  1.1  christos fi
   5465  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5466  1.1  christos $as_echo "$lt_cv_ar_at_file" >&6; }
   5467  1.1  christos 
   5468  1.1  christos if test no = "$lt_cv_ar_at_file"; then
   5469  1.1  christos   archiver_list_spec=
   5470  1.1  christos else
   5471  1.1  christos   archiver_list_spec=$lt_cv_ar_at_file
   5472  1.1  christos fi
   5473  1.1  christos 
   5474  1.1  christos 
   5475  1.1  christos 
   5476  1.1  christos 
   5477  1.1  christos 
   5478  1.1  christos 
   5479  1.1  christos 
   5480  1.1  christos if test -n "$ac_tool_prefix"; then
   5481  1.1  christos   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5482  1.1  christos set dummy ${ac_tool_prefix}strip; ac_word=$2
   5483  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5484  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5485  1.1  christos if ${ac_cv_prog_STRIP+:} false; then :
   5486  1.1  christos   $as_echo_n "(cached) " >&6
   5487  1.1  christos else
   5488  1.1  christos   if test -n "$STRIP"; then
   5489  1.1  christos   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5490  1.1  christos else
   5491  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5492  1.1  christos for as_dir in $PATH
   5493  1.1  christos do
   5494  1.1  christos   IFS=$as_save_IFS
   5495  1.1  christos   test -z "$as_dir" && as_dir=.
   5496  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5497  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5498  1.1  christos     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5499  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5500  1.1  christos     break 2
   5501  1.1  christos   fi
   5502  1.1  christos done
   5503  1.1  christos   done
   5504  1.1  christos IFS=$as_save_IFS
   5505  1.1  christos 
   5506  1.1  christos fi
   5507  1.1  christos fi
   5508  1.1  christos STRIP=$ac_cv_prog_STRIP
   5509  1.1  christos if test -n "$STRIP"; then
   5510  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5511  1.1  christos $as_echo "$STRIP" >&6; }
   5512  1.1  christos else
   5513  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5514  1.1  christos $as_echo "no" >&6; }
   5515  1.1  christos fi
   5516  1.1  christos 
   5517  1.1  christos 
   5518  1.1  christos fi
   5519  1.1  christos if test -z "$ac_cv_prog_STRIP"; then
   5520  1.1  christos   ac_ct_STRIP=$STRIP
   5521  1.1  christos   # Extract the first word of "strip", so it can be a program name with args.
   5522  1.1  christos set dummy strip; ac_word=$2
   5523  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5524  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5525  1.1  christos if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5526  1.1  christos   $as_echo_n "(cached) " >&6
   5527  1.1  christos else
   5528  1.1  christos   if test -n "$ac_ct_STRIP"; then
   5529  1.1  christos   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5530  1.1  christos else
   5531  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5532  1.1  christos for as_dir in $PATH
   5533  1.1  christos do
   5534  1.1  christos   IFS=$as_save_IFS
   5535  1.1  christos   test -z "$as_dir" && as_dir=.
   5536  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5537  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5538  1.1  christos     ac_cv_prog_ac_ct_STRIP="strip"
   5539  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5540  1.1  christos     break 2
   5541  1.1  christos   fi
   5542  1.1  christos done
   5543  1.1  christos   done
   5544  1.1  christos IFS=$as_save_IFS
   5545  1.1  christos 
   5546  1.1  christos fi
   5547  1.1  christos fi
   5548  1.1  christos ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5549  1.1  christos if test -n "$ac_ct_STRIP"; then
   5550  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5551  1.1  christos $as_echo "$ac_ct_STRIP" >&6; }
   5552  1.1  christos else
   5553  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5554  1.1  christos $as_echo "no" >&6; }
   5555  1.1  christos fi
   5556  1.1  christos 
   5557  1.1  christos   if test "x$ac_ct_STRIP" = x; then
   5558  1.1  christos     STRIP=":"
   5559  1.1  christos   else
   5560  1.1  christos     case $cross_compiling:$ac_tool_warned in
   5561  1.1  christos yes:)
   5562  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5563  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5564  1.1  christos ac_tool_warned=yes ;;
   5565  1.1  christos esac
   5566  1.1  christos     STRIP=$ac_ct_STRIP
   5567  1.1  christos   fi
   5568  1.1  christos else
   5569  1.1  christos   STRIP="$ac_cv_prog_STRIP"
   5570  1.1  christos fi
   5571  1.1  christos 
   5572  1.1  christos test -z "$STRIP" && STRIP=:
   5573  1.1  christos 
   5574  1.1  christos 
   5575  1.1  christos 
   5576  1.1  christos 
   5577  1.1  christos 
   5578  1.1  christos 
   5579  1.1  christos if test -n "$ac_tool_prefix"; then
   5580  1.1  christos   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5581  1.1  christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5582  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5583  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5584  1.1  christos if ${ac_cv_prog_RANLIB+:} false; then :
   5585  1.1  christos   $as_echo_n "(cached) " >&6
   5586  1.1  christos else
   5587  1.1  christos   if test -n "$RANLIB"; then
   5588  1.1  christos   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5589  1.1  christos else
   5590  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5591  1.1  christos for as_dir in $PATH
   5592  1.1  christos do
   5593  1.1  christos   IFS=$as_save_IFS
   5594  1.1  christos   test -z "$as_dir" && as_dir=.
   5595  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5596  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5597  1.1  christos     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5598  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5599  1.1  christos     break 2
   5600  1.1  christos   fi
   5601  1.1  christos done
   5602  1.1  christos   done
   5603  1.1  christos IFS=$as_save_IFS
   5604  1.1  christos 
   5605  1.1  christos fi
   5606  1.1  christos fi
   5607  1.1  christos RANLIB=$ac_cv_prog_RANLIB
   5608  1.1  christos if test -n "$RANLIB"; then
   5609  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5610  1.1  christos $as_echo "$RANLIB" >&6; }
   5611  1.1  christos else
   5612  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5613  1.1  christos $as_echo "no" >&6; }
   5614  1.1  christos fi
   5615  1.1  christos 
   5616  1.1  christos 
   5617  1.1  christos fi
   5618  1.1  christos if test -z "$ac_cv_prog_RANLIB"; then
   5619  1.1  christos   ac_ct_RANLIB=$RANLIB
   5620  1.1  christos   # Extract the first word of "ranlib", so it can be a program name with args.
   5621  1.1  christos set dummy ranlib; ac_word=$2
   5622  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5623  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5624  1.1  christos if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5625  1.1  christos   $as_echo_n "(cached) " >&6
   5626  1.1  christos else
   5627  1.1  christos   if test -n "$ac_ct_RANLIB"; then
   5628  1.1  christos   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5629  1.1  christos else
   5630  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5631  1.1  christos for as_dir in $PATH
   5632  1.1  christos do
   5633  1.1  christos   IFS=$as_save_IFS
   5634  1.1  christos   test -z "$as_dir" && as_dir=.
   5635  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5636  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5637  1.1  christos     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5638  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5639  1.1  christos     break 2
   5640  1.1  christos   fi
   5641  1.1  christos done
   5642  1.1  christos   done
   5643  1.1  christos IFS=$as_save_IFS
   5644  1.1  christos 
   5645  1.1  christos fi
   5646  1.1  christos fi
   5647  1.1  christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5648  1.1  christos if test -n "$ac_ct_RANLIB"; then
   5649  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5650  1.1  christos $as_echo "$ac_ct_RANLIB" >&6; }
   5651  1.1  christos else
   5652  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5653  1.1  christos $as_echo "no" >&6; }
   5654  1.1  christos fi
   5655  1.1  christos 
   5656  1.1  christos   if test "x$ac_ct_RANLIB" = x; then
   5657  1.1  christos     RANLIB=":"
   5658  1.1  christos   else
   5659  1.1  christos     case $cross_compiling:$ac_tool_warned in
   5660  1.1  christos yes:)
   5661  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5662  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5663  1.1  christos ac_tool_warned=yes ;;
   5664  1.1  christos esac
   5665  1.1  christos     RANLIB=$ac_ct_RANLIB
   5666  1.1  christos   fi
   5667  1.1  christos else
   5668  1.1  christos   RANLIB="$ac_cv_prog_RANLIB"
   5669  1.1  christos fi
   5670  1.1  christos 
   5671  1.1  christos test -z "$RANLIB" && RANLIB=:
   5672  1.1  christos 
   5673  1.1  christos 
   5674  1.1  christos 
   5675  1.1  christos 
   5676  1.1  christos 
   5677  1.1  christos 
   5678  1.1  christos # Determine commands to create old-style static archives.
   5679  1.1  christos old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   5680  1.1  christos old_postinstall_cmds='chmod 644 $oldlib'
   5681  1.1  christos old_postuninstall_cmds=
   5682  1.1  christos 
   5683  1.1  christos if test -n "$RANLIB"; then
   5684  1.1  christos   case $host_os in
   5685  1.1  christos   bitrig* | openbsd*)
   5686  1.1  christos     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   5687  1.1  christos     ;;
   5688  1.1  christos   *)
   5689  1.1  christos     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   5690  1.1  christos     ;;
   5691  1.1  christos   esac
   5692  1.1  christos   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   5693  1.1  christos fi
   5694  1.1  christos 
   5695  1.1  christos case $host_os in
   5696  1.1  christos   darwin*)
   5697  1.1  christos     lock_old_archive_extraction=yes ;;
   5698  1.1  christos   *)
   5699  1.1  christos     lock_old_archive_extraction=no ;;
   5700  1.1  christos esac
   5701  1.1  christos 
   5702  1.1  christos 
   5703  1.1  christos 
   5704  1.1  christos 
   5705  1.1  christos 
   5706  1.1  christos 
   5707  1.1  christos 
   5708  1.1  christos 
   5709  1.1  christos 
   5710  1.1  christos 
   5711  1.1  christos 
   5712  1.1  christos 
   5713  1.1  christos 
   5714  1.1  christos 
   5715  1.1  christos 
   5716  1.1  christos 
   5717  1.1  christos 
   5718  1.1  christos 
   5719  1.1  christos 
   5720  1.1  christos 
   5721  1.1  christos 
   5722  1.1  christos for ac_prog in gawk mawk nawk awk
   5723  1.1  christos do
   5724  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5725  1.1  christos set dummy $ac_prog; ac_word=$2
   5726  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5727  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5728  1.1  christos if ${ac_cv_prog_AWK+:} false; then :
   5729  1.1  christos   $as_echo_n "(cached) " >&6
   5730  1.1  christos else
   5731  1.1  christos   if test -n "$AWK"; then
   5732  1.1  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   5733  1.1  christos else
   5734  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5735  1.1  christos for as_dir in $PATH
   5736  1.1  christos do
   5737  1.1  christos   IFS=$as_save_IFS
   5738  1.1  christos   test -z "$as_dir" && as_dir=.
   5739  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5740  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5741  1.1  christos     ac_cv_prog_AWK="$ac_prog"
   5742  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5743  1.1  christos     break 2
   5744  1.1  christos   fi
   5745  1.1  christos done
   5746  1.1  christos   done
   5747  1.1  christos IFS=$as_save_IFS
   5748  1.1  christos 
   5749  1.1  christos fi
   5750  1.1  christos fi
   5751  1.1  christos AWK=$ac_cv_prog_AWK
   5752  1.1  christos if test -n "$AWK"; then
   5753  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   5754  1.1  christos $as_echo "$AWK" >&6; }
   5755  1.1  christos else
   5756  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5757  1.1  christos $as_echo "no" >&6; }
   5758  1.1  christos fi
   5759  1.1  christos 
   5760  1.1  christos 
   5761  1.1  christos   test -n "$AWK" && break
   5762  1.1  christos done
   5763  1.1  christos 
   5764  1.1  christos 
   5765  1.1  christos 
   5766  1.1  christos 
   5767  1.1  christos 
   5768  1.1  christos 
   5769  1.1  christos 
   5770  1.1  christos 
   5771  1.1  christos 
   5772  1.1  christos 
   5773  1.1  christos 
   5774  1.1  christos 
   5775  1.1  christos 
   5776  1.1  christos 
   5777  1.1  christos 
   5778  1.1  christos 
   5779  1.1  christos 
   5780  1.1  christos 
   5781  1.1  christos 
   5782  1.1  christos # If no C compiler was specified, use CC.
   5783  1.1  christos LTCC=${LTCC-"$CC"}
   5784  1.1  christos 
   5785  1.1  christos # If no C compiler flags were specified, use CFLAGS.
   5786  1.1  christos LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   5787  1.1  christos 
   5788  1.1  christos # Allow CC to be a program name with arguments.
   5789  1.1  christos compiler=$CC
   5790  1.1  christos 
   5791  1.1  christos 
   5792  1.1  christos # Check for command to grab the raw symbol name followed by C symbol from nm.
   5793  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   5794  1.1  christos $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   5795  1.1  christos if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   5796  1.1  christos   $as_echo_n "(cached) " >&6
   5797  1.1  christos else
   5798  1.1  christos 
   5799  1.1  christos # These are sane defaults that work on at least a few old systems.
   5800  1.1  christos # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5801  1.1  christos 
   5802  1.1  christos # Character class describing NM global symbol codes.
   5803  1.1  christos symcode='[BCDEGRST]'
   5804  1.1  christos 
   5805  1.1  christos # Regexp to match symbols that can be accessed directly from C.
   5806  1.1  christos sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5807  1.1  christos 
   5808  1.1  christos # Define system-specific variables.
   5809  1.1  christos case $host_os in
   5810  1.1  christos aix*)
   5811  1.1  christos   symcode='[BCDT]'
   5812  1.1  christos   ;;
   5813  1.1  christos cygwin* | mingw* | pw32* | cegcc*)
   5814  1.1  christos   symcode='[ABCDGISTW]'
   5815  1.1  christos   ;;
   5816  1.1  christos hpux*)
   5817  1.1  christos   if test ia64 = "$host_cpu"; then
   5818  1.1  christos     symcode='[ABCDEGRST]'
   5819  1.1  christos   fi
   5820  1.1  christos   ;;
   5821  1.1  christos irix* | nonstopux*)
   5822  1.1  christos   symcode='[BCDEGRST]'
   5823  1.1  christos   ;;
   5824  1.1  christos osf*)
   5825  1.1  christos   symcode='[BCDEGQRST]'
   5826  1.1  christos   ;;
   5827  1.1  christos solaris*)
   5828  1.1  christos   symcode='[BDRT]'
   5829  1.1  christos   ;;
   5830  1.1  christos sco3.2v5*)
   5831  1.1  christos   symcode='[DT]'
   5832  1.1  christos   ;;
   5833  1.1  christos sysv4.2uw2*)
   5834  1.1  christos   symcode='[DT]'
   5835  1.1  christos   ;;
   5836  1.1  christos sysv5* | sco5v6* | unixware* | OpenUNIX*)
   5837  1.1  christos   symcode='[ABDT]'
   5838  1.1  christos   ;;
   5839  1.1  christos sysv4)
   5840  1.1  christos   symcode='[DFNSTU]'
   5841  1.1  christos   ;;
   5842  1.1  christos esac
   5843  1.1  christos 
   5844  1.1  christos # If we're using GNU nm, then use its standard symbol codes.
   5845  1.1  christos case `$NM -V 2>&1` in
   5846  1.1  christos *GNU* | *'with BFD'*)
   5847  1.1  christos   symcode='[ABCDGIRSTW]' ;;
   5848  1.1  christos esac
   5849  1.1  christos 
   5850  1.1  christos if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5851  1.1  christos   # Gets list of data symbols to import.
   5852  1.1  christos   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   5853  1.1  christos   # Adjust the below global symbol transforms to fixup imported variables.
   5854  1.1  christos   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   5855  1.1  christos   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   5856  1.1  christos   lt_c_name_lib_hook="\
   5857  1.1  christos   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   5858  1.1  christos   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   5859  1.1  christos else
   5860  1.1  christos   # Disable hooks by default.
   5861  1.1  christos   lt_cv_sys_global_symbol_to_import=
   5862  1.1  christos   lt_cdecl_hook=
   5863  1.1  christos   lt_c_name_hook=
   5864  1.1  christos   lt_c_name_lib_hook=
   5865  1.1  christos fi
   5866  1.1  christos 
   5867  1.1  christos # Transform an extracted symbol line into a proper C declaration.
   5868  1.1  christos # Some systems (esp. on ia64) link data and code symbols differently,
   5869  1.1  christos # so use this general approach.
   5870  1.1  christos lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   5871  1.1  christos $lt_cdecl_hook\
   5872  1.1  christos " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   5873  1.1  christos " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   5874  1.1  christos 
   5875  1.1  christos # Transform an extracted symbol line into symbol name and symbol address
   5876  1.1  christos lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   5877  1.1  christos $lt_c_name_hook\
   5878  1.1  christos " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5879  1.1  christos " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   5880  1.1  christos 
   5881  1.1  christos # Transform an extracted symbol line into symbol name with lib prefix and
   5882  1.1  christos # symbol address.
   5883  1.1  christos lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   5884  1.1  christos $lt_c_name_lib_hook\
   5885  1.1  christos " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5886  1.1  christos " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   5887  1.1  christos " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   5888  1.1  christos 
   5889  1.1  christos # Handle CRLF in mingw tool chain
   5890  1.1  christos opt_cr=
   5891  1.1  christos case $build_os in
   5892  1.1  christos mingw*)
   5893  1.1  christos   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5894  1.1  christos   ;;
   5895  1.1  christos esac
   5896  1.1  christos 
   5897  1.1  christos # Try without a prefix underscore, then with it.
   5898  1.1  christos for ac_symprfx in "" "_"; do
   5899  1.1  christos 
   5900  1.1  christos   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   5901  1.1  christos   symxfrm="\\1 $ac_symprfx\\2 \\2"
   5902  1.1  christos 
   5903  1.1  christos   # Write the raw and C identifiers.
   5904  1.1  christos   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5905  1.1  christos     # Fake it for dumpbin and say T for any non-static function,
   5906  1.1  christos     # D for any global variable and I for any imported variable.
   5907  1.1  christos     # Also find C++ and __fastcall symbols from MSVC++,
   5908  1.1  christos     # which start with @ or ?.
   5909  1.1  christos     lt_cv_sys_global_symbol_pipe="$AWK '"\
   5910  1.1  christos "     {last_section=section; section=\$ 3};"\
   5911  1.1  christos "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   5912  1.1  christos "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   5913  1.1  christos "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   5914  1.1  christos "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   5915  1.1  christos "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   5916  1.1  christos "     \$ 0!~/External *\|/{next};"\
   5917  1.1  christos "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   5918  1.1  christos "     {if(hide[section]) next};"\
   5919  1.1  christos "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   5920  1.1  christos "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   5921  1.1  christos "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   5922  1.1  christos "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   5923  1.1  christos "     ' prfx=^$ac_symprfx"
   5924  1.1  christos   else
   5925  1.1  christos     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   5926  1.1  christos   fi
   5927  1.1  christos   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   5928  1.1  christos 
   5929  1.1  christos   # Check to see that the pipe works correctly.
   5930  1.1  christos   pipe_works=no
   5931  1.1  christos 
   5932  1.1  christos   rm -f conftest*
   5933  1.1  christos   cat > conftest.$ac_ext <<_LT_EOF
   5934  1.1  christos #ifdef __cplusplus
   5935  1.1  christos extern "C" {
   5936  1.1  christos #endif
   5937  1.1  christos char nm_test_var;
   5938  1.1  christos void nm_test_func(void);
   5939  1.1  christos void nm_test_func(void){}
   5940  1.1  christos #ifdef __cplusplus
   5941  1.1  christos }
   5942  1.1  christos #endif
   5943  1.1  christos int main(){nm_test_var='a';nm_test_func();return(0);}
   5944  1.1  christos _LT_EOF
   5945  1.1  christos 
   5946  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5947  1.1  christos   (eval $ac_compile) 2>&5
   5948  1.1  christos   ac_status=$?
   5949  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5950  1.1  christos   test $ac_status = 0; }; then
   5951  1.1  christos     # Now try to grab the symbols.
   5952  1.1  christos     nlist=conftest.nm
   5953  1.1  christos     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   5954  1.1  christos   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   5955  1.1  christos   ac_status=$?
   5956  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5957  1.1  christos   test $ac_status = 0; } && test -s "$nlist"; then
   5958  1.1  christos       # Try sorting and uniquifying the output.
   5959  1.1  christos       if sort "$nlist" | uniq > "$nlist"T; then
   5960  1.1  christos 	mv -f "$nlist"T "$nlist"
   5961  1.1  christos       else
   5962  1.1  christos 	rm -f "$nlist"T
   5963  1.1  christos       fi
   5964  1.1  christos 
   5965  1.1  christos       # Make sure that we snagged all the symbols we need.
   5966  1.1  christos       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   5967  1.1  christos 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   5968  1.1  christos 	  cat <<_LT_EOF > conftest.$ac_ext
   5969  1.1  christos /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   5970  1.1  christos #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   5971  1.1  christos /* DATA imports from DLLs on WIN32 can't be const, because runtime
   5972  1.1  christos    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   5973  1.1  christos # define LT_DLSYM_CONST
   5974  1.1  christos #elif defined __osf__
   5975  1.1  christos /* This system does not cope well with relocations in const data.  */
   5976  1.1  christos # define LT_DLSYM_CONST
   5977  1.1  christos #else
   5978  1.1  christos # define LT_DLSYM_CONST const
   5979  1.1  christos #endif
   5980  1.1  christos 
   5981  1.1  christos #ifdef __cplusplus
   5982  1.1  christos extern "C" {
   5983  1.1  christos #endif
   5984  1.1  christos 
   5985  1.1  christos _LT_EOF
   5986  1.1  christos 	  # Now generate the symbol file.
   5987  1.1  christos 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   5988  1.1  christos 
   5989  1.1  christos 	  cat <<_LT_EOF >> conftest.$ac_ext
   5990  1.1  christos 
   5991  1.1  christos /* The mapping between symbol names and symbols.  */
   5992  1.1  christos LT_DLSYM_CONST struct {
   5993  1.1  christos   const char *name;
   5994  1.1  christos   void       *address;
   5995  1.1  christos }
   5996  1.1  christos lt__PROGRAM__LTX_preloaded_symbols[] =
   5997  1.1  christos {
   5998  1.1  christos   { "@PROGRAM@", (void *) 0 },
   5999  1.1  christos _LT_EOF
   6000  1.1  christos 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   6001  1.1  christos 	  cat <<\_LT_EOF >> conftest.$ac_ext
   6002  1.1  christos   {0, (void *) 0}
   6003  1.1  christos };
   6004  1.1  christos 
   6005  1.1  christos /* This works around a problem in FreeBSD linker */
   6006  1.1  christos #ifdef FREEBSD_WORKAROUND
   6007  1.1  christos static const void *lt_preloaded_setup() {
   6008  1.1  christos   return lt__PROGRAM__LTX_preloaded_symbols;
   6009  1.1  christos }
   6010  1.1  christos #endif
   6011  1.1  christos 
   6012  1.1  christos #ifdef __cplusplus
   6013  1.1  christos }
   6014  1.1  christos #endif
   6015  1.1  christos _LT_EOF
   6016  1.1  christos 	  # Now try linking the two files.
   6017  1.1  christos 	  mv conftest.$ac_objext conftstm.$ac_objext
   6018  1.1  christos 	  lt_globsym_save_LIBS=$LIBS
   6019  1.1  christos 	  lt_globsym_save_CFLAGS=$CFLAGS
   6020  1.1  christos 	  LIBS=conftstm.$ac_objext
   6021  1.1  christos 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   6022  1.1  christos 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   6023  1.1  christos   (eval $ac_link) 2>&5
   6024  1.1  christos   ac_status=$?
   6025  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6026  1.1  christos   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   6027  1.1  christos 	    pipe_works=yes
   6028  1.1  christos 	  fi
   6029  1.1  christos 	  LIBS=$lt_globsym_save_LIBS
   6030  1.1  christos 	  CFLAGS=$lt_globsym_save_CFLAGS
   6031  1.1  christos 	else
   6032  1.1  christos 	  echo "cannot find nm_test_func in $nlist" >&5
   6033  1.1  christos 	fi
   6034  1.1  christos       else
   6035  1.1  christos 	echo "cannot find nm_test_var in $nlist" >&5
   6036  1.1  christos       fi
   6037  1.1  christos     else
   6038  1.1  christos       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   6039  1.1  christos     fi
   6040  1.1  christos   else
   6041  1.1  christos     echo "$progname: failed program was:" >&5
   6042  1.1  christos     cat conftest.$ac_ext >&5
   6043  1.1  christos   fi
   6044  1.1  christos   rm -rf conftest* conftst*
   6045  1.1  christos 
   6046  1.1  christos   # Do not use the global_symbol_pipe unless it works.
   6047  1.1  christos   if test yes = "$pipe_works"; then
   6048  1.1  christos     break
   6049  1.1  christos   else
   6050  1.1  christos     lt_cv_sys_global_symbol_pipe=
   6051  1.1  christos   fi
   6052  1.1  christos done
   6053  1.1  christos 
   6054  1.1  christos fi
   6055  1.1  christos 
   6056  1.1  christos if test -z "$lt_cv_sys_global_symbol_pipe"; then
   6057  1.1  christos   lt_cv_sys_global_symbol_to_cdecl=
   6058  1.1  christos fi
   6059  1.1  christos if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   6060  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6061  1.1  christos $as_echo "failed" >&6; }
   6062  1.1  christos else
   6063  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   6064  1.1  christos $as_echo "ok" >&6; }
   6065  1.1  christos fi
   6066  1.1  christos 
   6067  1.1  christos # Response file support.
   6068  1.1  christos if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6069  1.1  christos   nm_file_list_spec='@'
   6070  1.1  christos elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   6071  1.1  christos   nm_file_list_spec='@'
   6072  1.1  christos fi
   6073  1.1  christos 
   6074  1.1  christos 
   6075  1.1  christos 
   6076  1.1  christos 
   6077  1.1  christos 
   6078  1.1  christos 
   6079  1.1  christos 
   6080  1.1  christos 
   6081  1.1  christos 
   6082  1.1  christos 
   6083  1.1  christos 
   6084  1.1  christos 
   6085  1.1  christos 
   6086  1.1  christos 
   6087  1.1  christos 
   6088  1.1  christos 
   6089  1.1  christos 
   6090  1.1  christos 
   6091  1.1  christos 
   6092  1.1  christos 
   6093  1.1  christos 
   6094  1.1  christos 
   6095  1.1  christos 
   6096  1.1  christos 
   6097  1.1  christos 
   6098  1.1  christos 
   6099  1.1  christos 
   6100  1.1  christos 
   6101  1.1  christos 
   6102  1.1  christos 
   6103  1.1  christos 
   6104  1.1  christos 
   6105  1.1  christos 
   6106  1.1  christos 
   6107  1.1  christos 
   6108  1.1  christos 
   6109  1.1  christos 
   6110  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   6111  1.1  christos $as_echo_n "checking for sysroot... " >&6; }
   6112  1.1  christos 
   6113  1.1  christos # Check whether --with-sysroot was given.
   6114  1.1  christos if test "${with_sysroot+set}" = set; then :
   6115  1.1  christos   withval=$with_sysroot;
   6116  1.1  christos else
   6117  1.1  christos   with_sysroot=no
   6118  1.1  christos fi
   6119  1.1  christos 
   6120  1.1  christos 
   6121  1.1  christos lt_sysroot=
   6122  1.1  christos case $with_sysroot in #(
   6123  1.1  christos  yes)
   6124  1.1  christos    if test yes = "$GCC"; then
   6125  1.1  christos      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6126  1.1  christos    fi
   6127  1.1  christos    ;; #(
   6128  1.1  christos  /*)
   6129  1.1  christos    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6130  1.1  christos    ;; #(
   6131  1.1  christos  no|'')
   6132  1.1  christos    ;; #(
   6133  1.1  christos  *)
   6134  1.1  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   6135  1.1  christos $as_echo "$with_sysroot" >&6; }
   6136  1.1  christos    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   6137  1.1  christos    ;;
   6138  1.1  christos esac
   6139  1.1  christos 
   6140  1.1  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   6141  1.1  christos $as_echo "${lt_sysroot:-no}" >&6; }
   6142  1.1  christos 
   6143  1.1  christos 
   6144  1.1  christos 
   6145  1.1  christos 
   6146  1.1  christos 
   6147  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   6148  1.1  christos $as_echo_n "checking for a working dd... " >&6; }
   6149  1.1  christos if ${ac_cv_path_lt_DD+:} false; then :
   6150  1.1  christos   $as_echo_n "(cached) " >&6
   6151  1.1  christos else
   6152  1.1  christos   printf 0123456789abcdef0123456789abcdef >conftest.i
   6153  1.1  christos cat conftest.i conftest.i >conftest2.i
   6154  1.1  christos : ${lt_DD:=$DD}
   6155  1.1  christos if test -z "$lt_DD"; then
   6156  1.1  christos   ac_path_lt_DD_found=false
   6157  1.1  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   6158  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6159  1.1  christos for as_dir in $PATH
   6160  1.1  christos do
   6161  1.1  christos   IFS=$as_save_IFS
   6162  1.1  christos   test -z "$as_dir" && as_dir=.
   6163  1.1  christos     for ac_prog in dd; do
   6164  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6165  1.1  christos       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   6166  1.1  christos       as_fn_executable_p "$ac_path_lt_DD" || continue
   6167  1.1  christos if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6168  1.1  christos   cmp -s conftest.i conftest.out \
   6169  1.1  christos   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   6170  1.1  christos fi
   6171  1.1  christos       $ac_path_lt_DD_found && break 3
   6172  1.1  christos     done
   6173  1.1  christos   done
   6174  1.1  christos   done
   6175  1.1  christos IFS=$as_save_IFS
   6176  1.1  christos   if test -z "$ac_cv_path_lt_DD"; then
   6177  1.1  christos     :
   6178  1.1  christos   fi
   6179  1.1  christos else
   6180  1.1  christos   ac_cv_path_lt_DD=$lt_DD
   6181  1.1  christos fi
   6182  1.1  christos 
   6183  1.1  christos rm -f conftest.i conftest2.i conftest.out
   6184  1.1  christos fi
   6185  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   6186  1.1  christos $as_echo "$ac_cv_path_lt_DD" >&6; }
   6187  1.1  christos 
   6188  1.1  christos 
   6189  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   6190  1.1  christos $as_echo_n "checking how to truncate binary pipes... " >&6; }
   6191  1.1  christos if ${lt_cv_truncate_bin+:} false; then :
   6192  1.1  christos   $as_echo_n "(cached) " >&6
   6193  1.1  christos else
   6194  1.1  christos   printf 0123456789abcdef0123456789abcdef >conftest.i
   6195  1.1  christos cat conftest.i conftest.i >conftest2.i
   6196  1.1  christos lt_cv_truncate_bin=
   6197  1.1  christos if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6198  1.1  christos   cmp -s conftest.i conftest.out \
   6199  1.1  christos   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   6200  1.1  christos fi
   6201  1.1  christos rm -f conftest.i conftest2.i conftest.out
   6202  1.1  christos test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   6203  1.1  christos fi
   6204  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   6205  1.1  christos $as_echo "$lt_cv_truncate_bin" >&6; }
   6206  1.1  christos 
   6207  1.1  christos 
   6208  1.1  christos 
   6209  1.1  christos 
   6210  1.1  christos 
   6211  1.1  christos 
   6212  1.1  christos 
   6213  1.1  christos # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   6214  1.1  christos func_cc_basename ()
   6215  1.1  christos {
   6216  1.1  christos     for cc_temp in $*""; do
   6217  1.1  christos       case $cc_temp in
   6218  1.1  christos         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   6219  1.1  christos         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   6220  1.1  christos         \-*) ;;
   6221  1.1  christos         *) break;;
   6222  1.1  christos       esac
   6223  1.1  christos     done
   6224  1.1  christos     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   6225  1.1  christos }
   6226  1.1  christos 
   6227  1.1  christos # Check whether --enable-libtool-lock was given.
   6228  1.1  christos if test "${enable_libtool_lock+set}" = set; then :
   6229  1.1  christos   enableval=$enable_libtool_lock;
   6230  1.1  christos fi
   6231  1.1  christos 
   6232  1.1  christos test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   6233  1.1  christos 
   6234  1.1  christos # Some flags need to be propagated to the compiler or linker for good
   6235  1.1  christos # libtool support.
   6236  1.1  christos case $host in
   6237  1.1  christos ia64-*-hpux*)
   6238  1.1  christos   # Find out what ABI is being produced by ac_compile, and set mode
   6239  1.1  christos   # options accordingly.
   6240  1.1  christos   echo 'int i;' > conftest.$ac_ext
   6241  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6242  1.1  christos   (eval $ac_compile) 2>&5
   6243  1.1  christos   ac_status=$?
   6244  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6245  1.1  christos   test $ac_status = 0; }; then
   6246  1.1  christos     case `/usr/bin/file conftest.$ac_objext` in
   6247  1.1  christos       *ELF-32*)
   6248  1.1  christos 	HPUX_IA64_MODE=32
   6249  1.1  christos 	;;
   6250  1.1  christos       *ELF-64*)
   6251  1.1  christos 	HPUX_IA64_MODE=64
   6252  1.1  christos 	;;
   6253  1.1  christos     esac
   6254  1.1  christos   fi
   6255  1.1  christos   rm -rf conftest*
   6256  1.1  christos   ;;
   6257  1.1  christos *-*-irix6*)
   6258  1.1  christos   # Find out what ABI is being produced by ac_compile, and set linker
   6259  1.1  christos   # options accordingly.
   6260  1.1  christos   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6261  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6262  1.1  christos   (eval $ac_compile) 2>&5
   6263  1.1  christos   ac_status=$?
   6264  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6265  1.1  christos   test $ac_status = 0; }; then
   6266  1.1  christos     if test yes = "$lt_cv_prog_gnu_ld"; then
   6267  1.1  christos       case `/usr/bin/file conftest.$ac_objext` in
   6268  1.1  christos 	*32-bit*)
   6269  1.1  christos 	  LD="${LD-ld} -melf32bsmip"
   6270  1.1  christos 	  ;;
   6271  1.1  christos 	*N32*)
   6272  1.1  christos 	  LD="${LD-ld} -melf32bmipn32"
   6273  1.1  christos 	  ;;
   6274  1.1  christos 	*64-bit*)
   6275  1.1  christos 	  LD="${LD-ld} -melf64bmip"
   6276  1.1  christos 	;;
   6277  1.1  christos       esac
   6278  1.1  christos     else
   6279  1.1  christos       case `/usr/bin/file conftest.$ac_objext` in
   6280  1.1  christos 	*32-bit*)
   6281  1.1  christos 	  LD="${LD-ld} -32"
   6282  1.1  christos 	  ;;
   6283  1.1  christos 	*N32*)
   6284  1.1  christos 	  LD="${LD-ld} -n32"
   6285  1.1  christos 	  ;;
   6286  1.1  christos 	*64-bit*)
   6287  1.1  christos 	  LD="${LD-ld} -64"
   6288  1.1  christos 	  ;;
   6289  1.1  christos       esac
   6290  1.1  christos     fi
   6291  1.1  christos   fi
   6292  1.1  christos   rm -rf conftest*
   6293  1.1  christos   ;;
   6294  1.1  christos 
   6295  1.1  christos mips64*-*linux*)
   6296  1.1  christos   # Find out what ABI is being produced by ac_compile, and set linker
   6297  1.1  christos   # options accordingly.
   6298  1.1  christos   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6299  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6300  1.1  christos   (eval $ac_compile) 2>&5
   6301  1.1  christos   ac_status=$?
   6302  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6303  1.1  christos   test $ac_status = 0; }; then
   6304  1.1  christos     emul=elf
   6305  1.1  christos     case `/usr/bin/file conftest.$ac_objext` in
   6306  1.1  christos       *32-bit*)
   6307  1.1  christos 	emul="${emul}32"
   6308  1.1  christos 	;;
   6309  1.1  christos       *64-bit*)
   6310  1.1  christos 	emul="${emul}64"
   6311  1.1  christos 	;;
   6312  1.1  christos     esac
   6313  1.1  christos     case `/usr/bin/file conftest.$ac_objext` in
   6314  1.1  christos       *MSB*)
   6315  1.1  christos 	emul="${emul}btsmip"
   6316  1.1  christos 	;;
   6317  1.1  christos       *LSB*)
   6318  1.1  christos 	emul="${emul}ltsmip"
   6319  1.1  christos 	;;
   6320  1.1  christos     esac
   6321  1.1  christos     case `/usr/bin/file conftest.$ac_objext` in
   6322  1.1  christos       *N32*)
   6323  1.1  christos 	emul="${emul}n32"
   6324  1.1  christos 	;;
   6325  1.1  christos     esac
   6326  1.1  christos     LD="${LD-ld} -m $emul"
   6327  1.1  christos   fi
   6328  1.1  christos   rm -rf conftest*
   6329  1.1  christos   ;;
   6330  1.1  christos 
   6331  1.1  christos x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   6332  1.1  christos s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   6333  1.1  christos   # Find out what ABI is being produced by ac_compile, and set linker
   6334  1.1  christos   # options accordingly.  Note that the listed cases only cover the
   6335  1.1  christos   # situations where additional linker options are needed (such as when
   6336  1.1  christos   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   6337  1.1  christos   # vice versa); the common cases where no linker options are needed do
   6338  1.1  christos   # not appear in the list.
   6339  1.1  christos   echo 'int i;' > conftest.$ac_ext
   6340  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6341  1.1  christos   (eval $ac_compile) 2>&5
   6342  1.1  christos   ac_status=$?
   6343  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6344  1.1  christos   test $ac_status = 0; }; then
   6345  1.1  christos     case `/usr/bin/file conftest.o` in
   6346  1.1  christos       *32-bit*)
   6347  1.1  christos 	case $host in
   6348  1.1  christos 	  x86_64-*kfreebsd*-gnu)
   6349  1.1  christos 	    LD="${LD-ld} -m elf_i386_fbsd"
   6350  1.1  christos 	    ;;
   6351  1.1  christos 	  x86_64-*linux*)
   6352  1.1  christos 	    case `/usr/bin/file conftest.o` in
   6353  1.1  christos 	      *x86-64*)
   6354  1.1  christos 		LD="${LD-ld} -m elf32_x86_64"
   6355  1.1  christos 		;;
   6356  1.1  christos 	      *)
   6357  1.1  christos 		LD="${LD-ld} -m elf_i386"
   6358  1.1  christos 		;;
   6359  1.1  christos 	    esac
   6360  1.1  christos 	    ;;
   6361  1.1  christos 	  powerpc64le-*linux*)
   6362  1.1  christos 	    LD="${LD-ld} -m elf32lppclinux"
   6363  1.1  christos 	    ;;
   6364  1.1  christos 	  powerpc64-*linux*)
   6365  1.1  christos 	    LD="${LD-ld} -m elf32ppclinux"
   6366  1.1  christos 	    ;;
   6367  1.1  christos 	  s390x-*linux*)
   6368  1.1  christos 	    LD="${LD-ld} -m elf_s390"
   6369  1.1  christos 	    ;;
   6370  1.1  christos 	  sparc64-*linux*)
   6371  1.1  christos 	    LD="${LD-ld} -m elf32_sparc"
   6372  1.1  christos 	    ;;
   6373  1.1  christos 	esac
   6374  1.1  christos 	;;
   6375  1.1  christos       *64-bit*)
   6376  1.1  christos 	case $host in
   6377  1.1  christos 	  x86_64-*kfreebsd*-gnu)
   6378  1.1  christos 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   6379  1.1  christos 	    ;;
   6380  1.1  christos 	  x86_64-*linux*)
   6381  1.1  christos 	    LD="${LD-ld} -m elf_x86_64"
   6382  1.1  christos 	    ;;
   6383  1.1  christos 	  powerpcle-*linux*)
   6384  1.1  christos 	    LD="${LD-ld} -m elf64lppc"
   6385  1.1  christos 	    ;;
   6386  1.1  christos 	  powerpc-*linux*)
   6387  1.1  christos 	    LD="${LD-ld} -m elf64ppc"
   6388  1.1  christos 	    ;;
   6389  1.1  christos 	  s390*-*linux*|s390*-*tpf*)
   6390  1.1  christos 	    LD="${LD-ld} -m elf64_s390"
   6391  1.1  christos 	    ;;
   6392  1.1  christos 	  sparc*-*linux*)
   6393  1.1  christos 	    LD="${LD-ld} -m elf64_sparc"
   6394  1.1  christos 	    ;;
   6395  1.1  christos 	esac
   6396  1.1  christos 	;;
   6397  1.1  christos     esac
   6398  1.1  christos   fi
   6399  1.1  christos   rm -rf conftest*
   6400  1.1  christos   ;;
   6401  1.1  christos 
   6402  1.1  christos *-*-sco3.2v5*)
   6403  1.1  christos   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   6404  1.1  christos   SAVE_CFLAGS=$CFLAGS
   6405  1.1  christos   CFLAGS="$CFLAGS -belf"
   6406  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   6407  1.1  christos $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   6408  1.1  christos if ${lt_cv_cc_needs_belf+:} false; then :
   6409  1.1  christos   $as_echo_n "(cached) " >&6
   6410  1.1  christos else
   6411  1.1  christos   ac_ext=c
   6412  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6413  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6414  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6415  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6416  1.1  christos 
   6417  1.1  christos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6418  1.1  christos /* end confdefs.h.  */
   6419  1.1  christos 
   6420  1.1  christos int
   6421  1.1  christos main ()
   6422  1.1  christos {
   6423  1.1  christos 
   6424  1.1  christos   ;
   6425  1.1  christos   return 0;
   6426  1.1  christos }
   6427  1.1  christos _ACEOF
   6428  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   6429  1.1  christos   lt_cv_cc_needs_belf=yes
   6430  1.1  christos else
   6431  1.1  christos   lt_cv_cc_needs_belf=no
   6432  1.1  christos fi
   6433  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   6434  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   6435  1.1  christos      ac_ext=c
   6436  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6437  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6438  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6439  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6440  1.1  christos 
   6441  1.1  christos fi
   6442  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6443  1.1  christos $as_echo "$lt_cv_cc_needs_belf" >&6; }
   6444  1.1  christos   if test yes != "$lt_cv_cc_needs_belf"; then
   6445  1.1  christos     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6446  1.1  christos     CFLAGS=$SAVE_CFLAGS
   6447  1.1  christos   fi
   6448  1.1  christos   ;;
   6449  1.1  christos *-*solaris*)
   6450  1.1  christos   # Find out what ABI is being produced by ac_compile, and set linker
   6451  1.1  christos   # options accordingly.
   6452  1.1  christos   echo 'int i;' > conftest.$ac_ext
   6453  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6454  1.1  christos   (eval $ac_compile) 2>&5
   6455  1.1  christos   ac_status=$?
   6456  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6457  1.1  christos   test $ac_status = 0; }; then
   6458  1.1  christos     case `/usr/bin/file conftest.o` in
   6459  1.1  christos     *64-bit*)
   6460  1.1  christos       case $lt_cv_prog_gnu_ld in
   6461  1.1  christos       yes*)
   6462  1.1  christos         case $host in
   6463  1.1  christos         i?86-*-solaris*|x86_64-*-solaris*)
   6464  1.1  christos           LD="${LD-ld} -m elf_x86_64"
   6465  1.1  christos           ;;
   6466  1.1  christos         sparc*-*-solaris*)
   6467  1.1  christos           LD="${LD-ld} -m elf64_sparc"
   6468  1.1  christos           ;;
   6469  1.1  christos         esac
   6470  1.1  christos         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6471  1.1  christos         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6472  1.1  christos           LD=${LD-ld}_sol2
   6473  1.1  christos         fi
   6474  1.1  christos         ;;
   6475  1.1  christos       *)
   6476  1.1  christos 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6477  1.1  christos 	  LD="${LD-ld} -64"
   6478  1.1  christos 	fi
   6479  1.1  christos 	;;
   6480  1.1  christos       esac
   6481  1.1  christos       ;;
   6482  1.1  christos     esac
   6483  1.1  christos   fi
   6484  1.1  christos   rm -rf conftest*
   6485  1.1  christos   ;;
   6486  1.1  christos esac
   6487  1.1  christos 
   6488  1.1  christos need_locks=$enable_libtool_lock
   6489  1.1  christos 
   6490  1.1  christos if test -n "$ac_tool_prefix"; then
   6491  1.1  christos   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6492  1.1  christos set dummy ${ac_tool_prefix}mt; ac_word=$2
   6493  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6494  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6495  1.1  christos if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6496  1.1  christos   $as_echo_n "(cached) " >&6
   6497  1.1  christos else
   6498  1.1  christos   if test -n "$MANIFEST_TOOL"; then
   6499  1.1  christos   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6500  1.1  christos else
   6501  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6502  1.1  christos for as_dir in $PATH
   6503  1.1  christos do
   6504  1.1  christos   IFS=$as_save_IFS
   6505  1.1  christos   test -z "$as_dir" && as_dir=.
   6506  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6507  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6508  1.1  christos     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6509  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6510  1.1  christos     break 2
   6511  1.1  christos   fi
   6512  1.1  christos done
   6513  1.1  christos   done
   6514  1.1  christos IFS=$as_save_IFS
   6515  1.1  christos 
   6516  1.1  christos fi
   6517  1.1  christos fi
   6518  1.1  christos MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6519  1.1  christos if test -n "$MANIFEST_TOOL"; then
   6520  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6521  1.1  christos $as_echo "$MANIFEST_TOOL" >&6; }
   6522  1.1  christos else
   6523  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6524  1.1  christos $as_echo "no" >&6; }
   6525  1.1  christos fi
   6526  1.1  christos 
   6527  1.1  christos 
   6528  1.1  christos fi
   6529  1.1  christos if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6530  1.1  christos   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6531  1.1  christos   # Extract the first word of "mt", so it can be a program name with args.
   6532  1.1  christos set dummy mt; ac_word=$2
   6533  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6534  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6535  1.1  christos if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6536  1.1  christos   $as_echo_n "(cached) " >&6
   6537  1.1  christos else
   6538  1.1  christos   if test -n "$ac_ct_MANIFEST_TOOL"; then
   6539  1.1  christos   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6540  1.1  christos else
   6541  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6542  1.1  christos for as_dir in $PATH
   6543  1.1  christos do
   6544  1.1  christos   IFS=$as_save_IFS
   6545  1.1  christos   test -z "$as_dir" && as_dir=.
   6546  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6547  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6548  1.1  christos     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6549  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6550  1.1  christos     break 2
   6551  1.1  christos   fi
   6552  1.1  christos done
   6553  1.1  christos   done
   6554  1.1  christos IFS=$as_save_IFS
   6555  1.1  christos 
   6556  1.1  christos fi
   6557  1.1  christos fi
   6558  1.1  christos ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6559  1.1  christos if test -n "$ac_ct_MANIFEST_TOOL"; then
   6560  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6561  1.1  christos $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6562  1.1  christos else
   6563  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6564  1.1  christos $as_echo "no" >&6; }
   6565  1.1  christos fi
   6566  1.1  christos 
   6567  1.1  christos   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6568  1.1  christos     MANIFEST_TOOL=":"
   6569  1.1  christos   else
   6570  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6571  1.1  christos yes:)
   6572  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6573  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6574  1.1  christos ac_tool_warned=yes ;;
   6575  1.1  christos esac
   6576  1.1  christos     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6577  1.1  christos   fi
   6578  1.1  christos else
   6579  1.1  christos   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6580  1.1  christos fi
   6581  1.1  christos 
   6582  1.1  christos test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6583  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6584  1.1  christos $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6585  1.1  christos if ${lt_cv_path_mainfest_tool+:} false; then :
   6586  1.1  christos   $as_echo_n "(cached) " >&6
   6587  1.1  christos else
   6588  1.1  christos   lt_cv_path_mainfest_tool=no
   6589  1.1  christos   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6590  1.1  christos   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6591  1.1  christos   cat conftest.err >&5
   6592  1.1  christos   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   6593  1.1  christos     lt_cv_path_mainfest_tool=yes
   6594  1.1  christos   fi
   6595  1.1  christos   rm -f conftest*
   6596  1.1  christos fi
   6597  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   6598  1.1  christos $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   6599  1.1  christos if test yes != "$lt_cv_path_mainfest_tool"; then
   6600  1.1  christos   MANIFEST_TOOL=:
   6601  1.1  christos fi
   6602  1.1  christos 
   6603  1.1  christos 
   6604  1.1  christos 
   6605  1.1  christos 
   6606  1.1  christos 
   6607  1.1  christos 
   6608  1.1  christos   case $host_os in
   6609  1.1  christos     rhapsody* | darwin*)
   6610  1.1  christos     if test -n "$ac_tool_prefix"; then
   6611  1.1  christos   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   6612  1.1  christos set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   6613  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6614  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6615  1.1  christos if ${ac_cv_prog_DSYMUTIL+:} false; then :
   6616  1.1  christos   $as_echo_n "(cached) " >&6
   6617  1.1  christos else
   6618  1.1  christos   if test -n "$DSYMUTIL"; then
   6619  1.1  christos   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   6620  1.1  christos else
   6621  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6622  1.1  christos for as_dir in $PATH
   6623  1.1  christos do
   6624  1.1  christos   IFS=$as_save_IFS
   6625  1.1  christos   test -z "$as_dir" && as_dir=.
   6626  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6627  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6628  1.1  christos     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   6629  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6630  1.1  christos     break 2
   6631  1.1  christos   fi
   6632  1.1  christos done
   6633  1.1  christos   done
   6634  1.1  christos IFS=$as_save_IFS
   6635  1.1  christos 
   6636  1.1  christos fi
   6637  1.1  christos fi
   6638  1.1  christos DSYMUTIL=$ac_cv_prog_DSYMUTIL
   6639  1.1  christos if test -n "$DSYMUTIL"; then
   6640  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   6641  1.1  christos $as_echo "$DSYMUTIL" >&6; }
   6642  1.1  christos else
   6643  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6644  1.1  christos $as_echo "no" >&6; }
   6645  1.1  christos fi
   6646  1.1  christos 
   6647  1.1  christos 
   6648  1.1  christos fi
   6649  1.1  christos if test -z "$ac_cv_prog_DSYMUTIL"; then
   6650  1.1  christos   ac_ct_DSYMUTIL=$DSYMUTIL
   6651  1.1  christos   # Extract the first word of "dsymutil", so it can be a program name with args.
   6652  1.1  christos set dummy dsymutil; ac_word=$2
   6653  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6654  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6655  1.1  christos if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   6656  1.1  christos   $as_echo_n "(cached) " >&6
   6657  1.1  christos else
   6658  1.1  christos   if test -n "$ac_ct_DSYMUTIL"; then
   6659  1.1  christos   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   6660  1.1  christos else
   6661  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6662  1.1  christos for as_dir in $PATH
   6663  1.1  christos do
   6664  1.1  christos   IFS=$as_save_IFS
   6665  1.1  christos   test -z "$as_dir" && as_dir=.
   6666  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6667  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6668  1.1  christos     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   6669  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6670  1.1  christos     break 2
   6671  1.1  christos   fi
   6672  1.1  christos done
   6673  1.1  christos   done
   6674  1.1  christos IFS=$as_save_IFS
   6675  1.1  christos 
   6676  1.1  christos fi
   6677  1.1  christos fi
   6678  1.1  christos ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   6679  1.1  christos if test -n "$ac_ct_DSYMUTIL"; then
   6680  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   6681  1.1  christos $as_echo "$ac_ct_DSYMUTIL" >&6; }
   6682  1.1  christos else
   6683  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6684  1.1  christos $as_echo "no" >&6; }
   6685  1.1  christos fi
   6686  1.1  christos 
   6687  1.1  christos   if test "x$ac_ct_DSYMUTIL" = x; then
   6688  1.1  christos     DSYMUTIL=":"
   6689  1.1  christos   else
   6690  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6691  1.1  christos yes:)
   6692  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6693  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6694  1.1  christos ac_tool_warned=yes ;;
   6695  1.1  christos esac
   6696  1.1  christos     DSYMUTIL=$ac_ct_DSYMUTIL
   6697  1.1  christos   fi
   6698  1.1  christos else
   6699  1.1  christos   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   6700  1.1  christos fi
   6701  1.1  christos 
   6702  1.1  christos     if test -n "$ac_tool_prefix"; then
   6703  1.1  christos   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   6704  1.1  christos set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   6705  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6706  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6707  1.1  christos if ${ac_cv_prog_NMEDIT+:} false; then :
   6708  1.1  christos   $as_echo_n "(cached) " >&6
   6709  1.1  christos else
   6710  1.1  christos   if test -n "$NMEDIT"; then
   6711  1.1  christos   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   6712  1.1  christos else
   6713  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6714  1.1  christos for as_dir in $PATH
   6715  1.1  christos do
   6716  1.1  christos   IFS=$as_save_IFS
   6717  1.1  christos   test -z "$as_dir" && as_dir=.
   6718  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6719  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6720  1.1  christos     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   6721  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6722  1.1  christos     break 2
   6723  1.1  christos   fi
   6724  1.1  christos done
   6725  1.1  christos   done
   6726  1.1  christos IFS=$as_save_IFS
   6727  1.1  christos 
   6728  1.1  christos fi
   6729  1.1  christos fi
   6730  1.1  christos NMEDIT=$ac_cv_prog_NMEDIT
   6731  1.1  christos if test -n "$NMEDIT"; then
   6732  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   6733  1.1  christos $as_echo "$NMEDIT" >&6; }
   6734  1.1  christos else
   6735  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6736  1.1  christos $as_echo "no" >&6; }
   6737  1.1  christos fi
   6738  1.1  christos 
   6739  1.1  christos 
   6740  1.1  christos fi
   6741  1.1  christos if test -z "$ac_cv_prog_NMEDIT"; then
   6742  1.1  christos   ac_ct_NMEDIT=$NMEDIT
   6743  1.1  christos   # Extract the first word of "nmedit", so it can be a program name with args.
   6744  1.1  christos set dummy nmedit; ac_word=$2
   6745  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6746  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6747  1.1  christos if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   6748  1.1  christos   $as_echo_n "(cached) " >&6
   6749  1.1  christos else
   6750  1.1  christos   if test -n "$ac_ct_NMEDIT"; then
   6751  1.1  christos   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   6752  1.1  christos else
   6753  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6754  1.1  christos for as_dir in $PATH
   6755  1.1  christos do
   6756  1.1  christos   IFS=$as_save_IFS
   6757  1.1  christos   test -z "$as_dir" && as_dir=.
   6758  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6759  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6760  1.1  christos     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   6761  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6762  1.1  christos     break 2
   6763  1.1  christos   fi
   6764  1.1  christos done
   6765  1.1  christos   done
   6766  1.1  christos IFS=$as_save_IFS
   6767  1.1  christos 
   6768  1.1  christos fi
   6769  1.1  christos fi
   6770  1.1  christos ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   6771  1.1  christos if test -n "$ac_ct_NMEDIT"; then
   6772  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   6773  1.1  christos $as_echo "$ac_ct_NMEDIT" >&6; }
   6774  1.1  christos else
   6775  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6776  1.1  christos $as_echo "no" >&6; }
   6777  1.1  christos fi
   6778  1.1  christos 
   6779  1.1  christos   if test "x$ac_ct_NMEDIT" = x; then
   6780  1.1  christos     NMEDIT=":"
   6781  1.1  christos   else
   6782  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6783  1.1  christos yes:)
   6784  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6785  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6786  1.1  christos ac_tool_warned=yes ;;
   6787  1.1  christos esac
   6788  1.1  christos     NMEDIT=$ac_ct_NMEDIT
   6789  1.1  christos   fi
   6790  1.1  christos else
   6791  1.1  christos   NMEDIT="$ac_cv_prog_NMEDIT"
   6792  1.1  christos fi
   6793  1.1  christos 
   6794  1.1  christos     if test -n "$ac_tool_prefix"; then
   6795  1.1  christos   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   6796  1.1  christos set dummy ${ac_tool_prefix}lipo; ac_word=$2
   6797  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6798  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6799  1.1  christos if ${ac_cv_prog_LIPO+:} false; then :
   6800  1.1  christos   $as_echo_n "(cached) " >&6
   6801  1.1  christos else
   6802  1.1  christos   if test -n "$LIPO"; then
   6803  1.1  christos   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   6804  1.1  christos else
   6805  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6806  1.1  christos for as_dir in $PATH
   6807  1.1  christos do
   6808  1.1  christos   IFS=$as_save_IFS
   6809  1.1  christos   test -z "$as_dir" && as_dir=.
   6810  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6811  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6812  1.1  christos     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   6813  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6814  1.1  christos     break 2
   6815  1.1  christos   fi
   6816  1.1  christos done
   6817  1.1  christos   done
   6818  1.1  christos IFS=$as_save_IFS
   6819  1.1  christos 
   6820  1.1  christos fi
   6821  1.1  christos fi
   6822  1.1  christos LIPO=$ac_cv_prog_LIPO
   6823  1.1  christos if test -n "$LIPO"; then
   6824  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   6825  1.1  christos $as_echo "$LIPO" >&6; }
   6826  1.1  christos else
   6827  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6828  1.1  christos $as_echo "no" >&6; }
   6829  1.1  christos fi
   6830  1.1  christos 
   6831  1.1  christos 
   6832  1.1  christos fi
   6833  1.1  christos if test -z "$ac_cv_prog_LIPO"; then
   6834  1.1  christos   ac_ct_LIPO=$LIPO
   6835  1.1  christos   # Extract the first word of "lipo", so it can be a program name with args.
   6836  1.1  christos set dummy lipo; ac_word=$2
   6837  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6838  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6839  1.1  christos if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   6840  1.1  christos   $as_echo_n "(cached) " >&6
   6841  1.1  christos else
   6842  1.1  christos   if test -n "$ac_ct_LIPO"; then
   6843  1.1  christos   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   6844  1.1  christos else
   6845  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6846  1.1  christos for as_dir in $PATH
   6847  1.1  christos do
   6848  1.1  christos   IFS=$as_save_IFS
   6849  1.1  christos   test -z "$as_dir" && as_dir=.
   6850  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6851  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6852  1.1  christos     ac_cv_prog_ac_ct_LIPO="lipo"
   6853  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6854  1.1  christos     break 2
   6855  1.1  christos   fi
   6856  1.1  christos done
   6857  1.1  christos   done
   6858  1.1  christos IFS=$as_save_IFS
   6859  1.1  christos 
   6860  1.1  christos fi
   6861  1.1  christos fi
   6862  1.1  christos ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   6863  1.1  christos if test -n "$ac_ct_LIPO"; then
   6864  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   6865  1.1  christos $as_echo "$ac_ct_LIPO" >&6; }
   6866  1.1  christos else
   6867  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6868  1.1  christos $as_echo "no" >&6; }
   6869  1.1  christos fi
   6870  1.1  christos 
   6871  1.1  christos   if test "x$ac_ct_LIPO" = x; then
   6872  1.1  christos     LIPO=":"
   6873  1.1  christos   else
   6874  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6875  1.1  christos yes:)
   6876  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6877  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6878  1.1  christos ac_tool_warned=yes ;;
   6879  1.1  christos esac
   6880  1.1  christos     LIPO=$ac_ct_LIPO
   6881  1.1  christos   fi
   6882  1.1  christos else
   6883  1.1  christos   LIPO="$ac_cv_prog_LIPO"
   6884  1.1  christos fi
   6885  1.1  christos 
   6886  1.1  christos     if test -n "$ac_tool_prefix"; then
   6887  1.1  christos   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   6888  1.1  christos set dummy ${ac_tool_prefix}otool; ac_word=$2
   6889  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6890  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6891  1.1  christos if ${ac_cv_prog_OTOOL+:} false; then :
   6892  1.1  christos   $as_echo_n "(cached) " >&6
   6893  1.1  christos else
   6894  1.1  christos   if test -n "$OTOOL"; then
   6895  1.1  christos   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   6896  1.1  christos else
   6897  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6898  1.1  christos for as_dir in $PATH
   6899  1.1  christos do
   6900  1.1  christos   IFS=$as_save_IFS
   6901  1.1  christos   test -z "$as_dir" && as_dir=.
   6902  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6903  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6904  1.1  christos     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   6905  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6906  1.1  christos     break 2
   6907  1.1  christos   fi
   6908  1.1  christos done
   6909  1.1  christos   done
   6910  1.1  christos IFS=$as_save_IFS
   6911  1.1  christos 
   6912  1.1  christos fi
   6913  1.1  christos fi
   6914  1.1  christos OTOOL=$ac_cv_prog_OTOOL
   6915  1.1  christos if test -n "$OTOOL"; then
   6916  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   6917  1.1  christos $as_echo "$OTOOL" >&6; }
   6918  1.1  christos else
   6919  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6920  1.1  christos $as_echo "no" >&6; }
   6921  1.1  christos fi
   6922  1.1  christos 
   6923  1.1  christos 
   6924  1.1  christos fi
   6925  1.1  christos if test -z "$ac_cv_prog_OTOOL"; then
   6926  1.1  christos   ac_ct_OTOOL=$OTOOL
   6927  1.1  christos   # Extract the first word of "otool", so it can be a program name with args.
   6928  1.1  christos set dummy otool; ac_word=$2
   6929  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6930  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6931  1.1  christos if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   6932  1.1  christos   $as_echo_n "(cached) " >&6
   6933  1.1  christos else
   6934  1.1  christos   if test -n "$ac_ct_OTOOL"; then
   6935  1.1  christos   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   6936  1.1  christos else
   6937  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6938  1.1  christos for as_dir in $PATH
   6939  1.1  christos do
   6940  1.1  christos   IFS=$as_save_IFS
   6941  1.1  christos   test -z "$as_dir" && as_dir=.
   6942  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6943  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6944  1.1  christos     ac_cv_prog_ac_ct_OTOOL="otool"
   6945  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6946  1.1  christos     break 2
   6947  1.1  christos   fi
   6948  1.1  christos done
   6949  1.1  christos   done
   6950  1.1  christos IFS=$as_save_IFS
   6951  1.1  christos 
   6952  1.1  christos fi
   6953  1.1  christos fi
   6954  1.1  christos ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   6955  1.1  christos if test -n "$ac_ct_OTOOL"; then
   6956  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   6957  1.1  christos $as_echo "$ac_ct_OTOOL" >&6; }
   6958  1.1  christos else
   6959  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6960  1.1  christos $as_echo "no" >&6; }
   6961  1.1  christos fi
   6962  1.1  christos 
   6963  1.1  christos   if test "x$ac_ct_OTOOL" = x; then
   6964  1.1  christos     OTOOL=":"
   6965  1.1  christos   else
   6966  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6967  1.1  christos yes:)
   6968  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6969  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6970  1.1  christos ac_tool_warned=yes ;;
   6971  1.1  christos esac
   6972  1.1  christos     OTOOL=$ac_ct_OTOOL
   6973  1.1  christos   fi
   6974  1.1  christos else
   6975  1.1  christos   OTOOL="$ac_cv_prog_OTOOL"
   6976  1.1  christos fi
   6977  1.1  christos 
   6978  1.1  christos     if test -n "$ac_tool_prefix"; then
   6979  1.1  christos   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   6980  1.1  christos set dummy ${ac_tool_prefix}otool64; ac_word=$2
   6981  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6982  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6983  1.1  christos if ${ac_cv_prog_OTOOL64+:} false; then :
   6984  1.1  christos   $as_echo_n "(cached) " >&6
   6985  1.1  christos else
   6986  1.1  christos   if test -n "$OTOOL64"; then
   6987  1.1  christos   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   6988  1.1  christos else
   6989  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6990  1.1  christos for as_dir in $PATH
   6991  1.1  christos do
   6992  1.1  christos   IFS=$as_save_IFS
   6993  1.1  christos   test -z "$as_dir" && as_dir=.
   6994  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6995  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6996  1.1  christos     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   6997  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6998  1.1  christos     break 2
   6999  1.1  christos   fi
   7000  1.1  christos done
   7001  1.1  christos   done
   7002  1.1  christos IFS=$as_save_IFS
   7003  1.1  christos 
   7004  1.1  christos fi
   7005  1.1  christos fi
   7006  1.1  christos OTOOL64=$ac_cv_prog_OTOOL64
   7007  1.1  christos if test -n "$OTOOL64"; then
   7008  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7009  1.1  christos $as_echo "$OTOOL64" >&6; }
   7010  1.1  christos else
   7011  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7012  1.1  christos $as_echo "no" >&6; }
   7013  1.1  christos fi
   7014  1.1  christos 
   7015  1.1  christos 
   7016  1.1  christos fi
   7017  1.1  christos if test -z "$ac_cv_prog_OTOOL64"; then
   7018  1.1  christos   ac_ct_OTOOL64=$OTOOL64
   7019  1.1  christos   # Extract the first word of "otool64", so it can be a program name with args.
   7020  1.1  christos set dummy otool64; ac_word=$2
   7021  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7022  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   7023  1.1  christos if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7024  1.1  christos   $as_echo_n "(cached) " >&6
   7025  1.1  christos else
   7026  1.1  christos   if test -n "$ac_ct_OTOOL64"; then
   7027  1.1  christos   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7028  1.1  christos else
   7029  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7030  1.1  christos for as_dir in $PATH
   7031  1.1  christos do
   7032  1.1  christos   IFS=$as_save_IFS
   7033  1.1  christos   test -z "$as_dir" && as_dir=.
   7034  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   7035  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7036  1.1  christos     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7037  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7038  1.1  christos     break 2
   7039  1.1  christos   fi
   7040  1.1  christos done
   7041  1.1  christos   done
   7042  1.1  christos IFS=$as_save_IFS
   7043  1.1  christos 
   7044  1.1  christos fi
   7045  1.1  christos fi
   7046  1.1  christos ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7047  1.1  christos if test -n "$ac_ct_OTOOL64"; then
   7048  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7049  1.1  christos $as_echo "$ac_ct_OTOOL64" >&6; }
   7050  1.1  christos else
   7051  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7052  1.1  christos $as_echo "no" >&6; }
   7053  1.1  christos fi
   7054  1.1  christos 
   7055  1.1  christos   if test "x$ac_ct_OTOOL64" = x; then
   7056  1.1  christos     OTOOL64=":"
   7057  1.1  christos   else
   7058  1.1  christos     case $cross_compiling:$ac_tool_warned in
   7059  1.1  christos yes:)
   7060  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7061  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7062  1.1  christos ac_tool_warned=yes ;;
   7063  1.1  christos esac
   7064  1.1  christos     OTOOL64=$ac_ct_OTOOL64
   7065  1.1  christos   fi
   7066  1.1  christos else
   7067  1.1  christos   OTOOL64="$ac_cv_prog_OTOOL64"
   7068  1.1  christos fi
   7069  1.1  christos 
   7070  1.1  christos 
   7071  1.1  christos 
   7072  1.1  christos 
   7073  1.1  christos 
   7074  1.1  christos 
   7075  1.1  christos 
   7076  1.1  christos 
   7077  1.1  christos 
   7078  1.1  christos 
   7079  1.1  christos 
   7080  1.1  christos 
   7081  1.1  christos 
   7082  1.1  christos 
   7083  1.1  christos 
   7084  1.1  christos 
   7085  1.1  christos 
   7086  1.1  christos 
   7087  1.1  christos 
   7088  1.1  christos 
   7089  1.1  christos 
   7090  1.1  christos 
   7091  1.1  christos 
   7092  1.1  christos 
   7093  1.1  christos 
   7094  1.1  christos 
   7095  1.1  christos 
   7096  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7097  1.1  christos $as_echo_n "checking for -single_module linker flag... " >&6; }
   7098  1.1  christos if ${lt_cv_apple_cc_single_mod+:} false; then :
   7099  1.1  christos   $as_echo_n "(cached) " >&6
   7100  1.1  christos else
   7101  1.1  christos   lt_cv_apple_cc_single_mod=no
   7102  1.1  christos       if test -z "$LT_MULTI_MODULE"; then
   7103  1.1  christos 	# By default we will add the -single_module flag. You can override
   7104  1.1  christos 	# by either setting the environment variable LT_MULTI_MODULE
   7105  1.1  christos 	# non-empty at configure time, or by adding -multi_module to the
   7106  1.1  christos 	# link flags.
   7107  1.1  christos 	rm -rf libconftest.dylib*
   7108  1.1  christos 	echo "int foo(void){return 1;}" > conftest.c
   7109  1.1  christos 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7110  1.1  christos -dynamiclib -Wl,-single_module conftest.c" >&5
   7111  1.1  christos 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7112  1.1  christos 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7113  1.1  christos         _lt_result=$?
   7114  1.1  christos 	# If there is a non-empty error log, and "single_module"
   7115  1.1  christos 	# appears in it, assume the flag caused a linker warning
   7116  1.1  christos         if test -s conftest.err && $GREP single_module conftest.err; then
   7117  1.1  christos 	  cat conftest.err >&5
   7118  1.1  christos 	# Otherwise, if the output was created with a 0 exit code from
   7119  1.1  christos 	# the compiler, it worked.
   7120  1.1  christos 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   7121  1.1  christos 	  lt_cv_apple_cc_single_mod=yes
   7122  1.1  christos 	else
   7123  1.1  christos 	  cat conftest.err >&5
   7124  1.1  christos 	fi
   7125  1.1  christos 	rm -rf libconftest.dylib*
   7126  1.1  christos 	rm -f conftest.*
   7127  1.1  christos       fi
   7128  1.1  christos fi
   7129  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7130  1.1  christos $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7131  1.1  christos 
   7132  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7133  1.1  christos $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7134  1.1  christos if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7135  1.1  christos   $as_echo_n "(cached) " >&6
   7136  1.1  christos else
   7137  1.1  christos   lt_cv_ld_exported_symbols_list=no
   7138  1.1  christos       save_LDFLAGS=$LDFLAGS
   7139  1.1  christos       echo "_main" > conftest.sym
   7140  1.1  christos       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7141  1.1  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7142  1.1  christos /* end confdefs.h.  */
   7143  1.1  christos 
   7144  1.1  christos int
   7145  1.1  christos main ()
   7146  1.1  christos {
   7147  1.1  christos 
   7148  1.1  christos   ;
   7149  1.1  christos   return 0;
   7150  1.1  christos }
   7151  1.1  christos _ACEOF
   7152  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   7153  1.1  christos   lt_cv_ld_exported_symbols_list=yes
   7154  1.1  christos else
   7155  1.1  christos   lt_cv_ld_exported_symbols_list=no
   7156  1.1  christos fi
   7157  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   7158  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   7159  1.1  christos 	LDFLAGS=$save_LDFLAGS
   7160  1.1  christos 
   7161  1.1  christos fi
   7162  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   7163  1.1  christos $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   7164  1.1  christos 
   7165  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   7166  1.1  christos $as_echo_n "checking for -force_load linker flag... " >&6; }
   7167  1.1  christos if ${lt_cv_ld_force_load+:} false; then :
   7168  1.1  christos   $as_echo_n "(cached) " >&6
   7169  1.1  christos else
   7170  1.1  christos   lt_cv_ld_force_load=no
   7171  1.1  christos       cat > conftest.c << _LT_EOF
   7172  1.1  christos int forced_loaded() { return 2;}
   7173  1.1  christos _LT_EOF
   7174  1.1  christos       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   7175  1.1  christos       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   7176  1.1  christos       echo "$AR cru libconftest.a conftest.o" >&5
   7177  1.1  christos       $AR cru libconftest.a conftest.o 2>&5
   7178  1.1  christos       echo "$RANLIB libconftest.a" >&5
   7179  1.1  christos       $RANLIB libconftest.a 2>&5
   7180  1.1  christos       cat > conftest.c << _LT_EOF
   7181  1.1  christos int main() { return 0;}
   7182  1.1  christos _LT_EOF
   7183  1.1  christos       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   7184  1.1  christos       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   7185  1.1  christos       _lt_result=$?
   7186  1.1  christos       if test -s conftest.err && $GREP force_load conftest.err; then
   7187  1.1  christos 	cat conftest.err >&5
   7188  1.1  christos       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   7189  1.1  christos 	lt_cv_ld_force_load=yes
   7190  1.1  christos       else
   7191  1.1  christos 	cat conftest.err >&5
   7192  1.1  christos       fi
   7193  1.1  christos         rm -f conftest.err libconftest.a conftest conftest.c
   7194  1.1  christos         rm -rf conftest.dSYM
   7195  1.1  christos 
   7196  1.1  christos fi
   7197  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   7198  1.1  christos $as_echo "$lt_cv_ld_force_load" >&6; }
   7199  1.1  christos     case $host_os in
   7200  1.1  christos     rhapsody* | darwin1.[012])
   7201  1.1  christos       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   7202  1.1  christos     darwin1.*)
   7203  1.1  christos       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7204  1.1  christos     darwin*) # darwin 5.x on
   7205  1.1  christos       # if running on 10.5 or later, the deployment target defaults
   7206  1.1  christos       # to the OS version, if on x86, and 10.4, the deployment
   7207  1.1  christos       # target defaults to 10.4. Don't you love it?
   7208  1.1  christos       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   7209  1.1  christos 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   7210  1.1  christos 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7211  1.1  christos 	10.[012][,.]*)
   7212  1.1  christos 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7213  1.1  christos 	10.*)
   7214  1.1  christos 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7215  1.1  christos       esac
   7216  1.1  christos     ;;
   7217  1.1  christos   esac
   7218  1.1  christos     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7219  1.1  christos       _lt_dar_single_mod='$single_module'
   7220  1.1  christos     fi
   7221  1.1  christos     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7222  1.1  christos       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7223  1.1  christos     else
   7224  1.1  christos       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7225  1.1  christos     fi
   7226  1.1  christos     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7227  1.1  christos       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7228  1.1  christos     else
   7229  1.1  christos       _lt_dsymutil=
   7230  1.1  christos     fi
   7231  1.1  christos     ;;
   7232  1.1  christos   esac
   7233  1.1  christos 
   7234  1.1  christos # func_munge_path_list VARIABLE PATH
   7235  1.1  christos # -----------------------------------
   7236  1.1  christos # VARIABLE is name of variable containing _space_ separated list of
   7237  1.1  christos # directories to be munged by the contents of PATH, which is string
   7238  1.1  christos # having a format:
   7239  1.1  christos # "DIR[:DIR]:"
   7240  1.1  christos #       string "DIR[ DIR]" will be prepended to VARIABLE
   7241  1.1  christos # ":DIR[:DIR]"
   7242  1.1  christos #       string "DIR[ DIR]" will be appended to VARIABLE
   7243  1.1  christos # "DIRP[:DIRP]::[DIRA:]DIRA"
   7244  1.1  christos #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7245  1.1  christos #       "DIRA[ DIRA]" will be appended to VARIABLE
   7246  1.1  christos # "DIR[:DIR]"
   7247  1.1  christos #       VARIABLE will be replaced by "DIR[ DIR]"
   7248  1.1  christos func_munge_path_list ()
   7249  1.1  christos {
   7250  1.1  christos     case x$2 in
   7251  1.1  christos     x)
   7252  1.1  christos         ;;
   7253  1.1  christos     *:)
   7254  1.1  christos         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7255  1.1  christos         ;;
   7256  1.1  christos     x:*)
   7257  1.1  christos         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7258  1.1  christos         ;;
   7259  1.1  christos     *::*)
   7260  1.1  christos         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7261  1.1  christos         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7262  1.1  christos         ;;
   7263  1.1  christos     *)
   7264  1.1  christos         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7265  1.1  christos         ;;
   7266  1.1  christos     esac
   7267  1.1  christos }
   7268  1.1  christos 
   7269  1.3  christos for ac_header in dlfcn.h
   7270  1.3  christos do :
   7271  1.3  christos   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7272  1.3  christos "
   7273  1.3  christos if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7274  1.3  christos   cat >>confdefs.h <<_ACEOF
   7275  1.3  christos #define HAVE_DLFCN_H 1
   7276  1.1  christos _ACEOF
   7277  1.1  christos 
   7278  1.1  christos fi
   7279  1.1  christos 
   7280  1.3  christos done
   7281  1.3  christos 
   7282  1.3  christos 
   7283  1.3  christos 
   7284  1.3  christos 
   7285  1.3  christos 
   7286  1.3  christos # Set options
   7287  1.3  christos 
   7288  1.3  christos 
   7289  1.3  christos 
   7290  1.3  christos         enable_dlopen=no
   7291  1.3  christos 
   7292  1.3  christos 
   7293  1.3  christos   enable_win32_dll=no
   7294  1.3  christos 
   7295  1.3  christos 
   7296  1.3  christos             # Check whether --enable-shared was given.
   7297  1.3  christos if test "${enable_shared+set}" = set; then :
   7298  1.3  christos   enableval=$enable_shared; p=${PACKAGE-default}
   7299  1.3  christos     case $enableval in
   7300  1.3  christos     yes) enable_shared=yes ;;
   7301  1.3  christos     no) enable_shared=no ;;
   7302  1.3  christos     *)
   7303  1.3  christos       enable_shared=no
   7304  1.3  christos       # Look at the argument we got.  We use all the common list separators.
   7305  1.3  christos       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7306  1.3  christos       for pkg in $enableval; do
   7307  1.3  christos 	IFS=$lt_save_ifs
   7308  1.3  christos 	if test "X$pkg" = "X$p"; then
   7309  1.3  christos 	  enable_shared=yes
   7310  1.3  christos 	fi
   7311  1.3  christos       done
   7312  1.3  christos       IFS=$lt_save_ifs
   7313  1.3  christos       ;;
   7314  1.3  christos     esac
   7315  1.1  christos else
   7316  1.3  christos   enable_shared=yes
   7317  1.1  christos fi
   7318  1.1  christos 
   7319  1.1  christos 
   7320  1.1  christos 
   7321  1.3  christos 
   7322  1.3  christos 
   7323  1.3  christos 
   7324  1.3  christos 
   7325  1.3  christos 
   7326  1.3  christos 
   7327  1.3  christos   # Check whether --enable-static was given.
   7328  1.3  christos if test "${enable_static+set}" = set; then :
   7329  1.3  christos   enableval=$enable_static; p=${PACKAGE-default}
   7330  1.3  christos     case $enableval in
   7331  1.3  christos     yes) enable_static=yes ;;
   7332  1.3  christos     no) enable_static=no ;;
   7333  1.3  christos     *)
   7334  1.3  christos      enable_static=no
   7335  1.3  christos       # Look at the argument we got.  We use all the common list separators.
   7336  1.3  christos       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7337  1.3  christos       for pkg in $enableval; do
   7338  1.3  christos 	IFS=$lt_save_ifs
   7339  1.3  christos 	if test "X$pkg" = "X$p"; then
   7340  1.3  christos 	  enable_static=yes
   7341  1.3  christos 	fi
   7342  1.3  christos       done
   7343  1.3  christos       IFS=$lt_save_ifs
   7344  1.3  christos       ;;
   7345  1.3  christos     esac
   7346  1.1  christos else
   7347  1.3  christos   enable_static=yes
   7348  1.1  christos fi
   7349  1.1  christos 
   7350  1.1  christos 
   7351  1.1  christos 
   7352  1.1  christos 
   7353  1.1  christos 
   7354  1.1  christos 
   7355  1.1  christos 
   7356  1.1  christos 
   7357  1.1  christos 
   7358  1.1  christos 
   7359  1.3  christos # Check whether --with-pic was given.
   7360  1.3  christos if test "${with_pic+set}" = set; then :
   7361  1.3  christos   withval=$with_pic; lt_p=${PACKAGE-default}
   7362  1.3  christos     case $withval in
   7363  1.3  christos     yes|no) pic_mode=$withval ;;
   7364  1.3  christos     *)
   7365  1.3  christos       pic_mode=default
   7366  1.3  christos       # Look at the argument we got.  We use all the common list separators.
   7367  1.3  christos       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7368  1.3  christos       for lt_pkg in $withval; do
   7369  1.3  christos 	IFS=$lt_save_ifs
   7370  1.3  christos 	if test "X$lt_pkg" = "X$lt_p"; then
   7371  1.3  christos 	  pic_mode=yes
   7372  1.3  christos 	fi
   7373  1.3  christos       done
   7374  1.3  christos       IFS=$lt_save_ifs
   7375  1.3  christos       ;;
   7376  1.3  christos     esac
   7377  1.1  christos else
   7378  1.3  christos   pic_mode=default
   7379  1.1  christos fi
   7380  1.1  christos 
   7381  1.1  christos 
   7382  1.1  christos 
   7383  1.1  christos 
   7384  1.1  christos 
   7385  1.1  christos 
   7386  1.1  christos 
   7387  1.1  christos 
   7388  1.3  christos   # Check whether --enable-fast-install was given.
   7389  1.3  christos if test "${enable_fast_install+set}" = set; then :
   7390  1.3  christos   enableval=$enable_fast_install; p=${PACKAGE-default}
   7391  1.1  christos     case $enableval in
   7392  1.3  christos     yes) enable_fast_install=yes ;;
   7393  1.3  christos     no) enable_fast_install=no ;;
   7394  1.1  christos     *)
   7395  1.3  christos       enable_fast_install=no
   7396  1.1  christos       # Look at the argument we got.  We use all the common list separators.
   7397  1.1  christos       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7398  1.1  christos       for pkg in $enableval; do
   7399  1.1  christos 	IFS=$lt_save_ifs
   7400  1.1  christos 	if test "X$pkg" = "X$p"; then
   7401  1.3  christos 	  enable_fast_install=yes
   7402  1.1  christos 	fi
   7403  1.1  christos       done
   7404  1.1  christos       IFS=$lt_save_ifs
   7405  1.1  christos       ;;
   7406  1.1  christos     esac
   7407  1.1  christos else
   7408  1.3  christos   enable_fast_install=yes
   7409  1.1  christos fi
   7410  1.1  christos 
   7411  1.1  christos 
   7412  1.1  christos 
   7413  1.1  christos 
   7414  1.1  christos 
   7415  1.1  christos 
   7416  1.1  christos 
   7417  1.1  christos 
   7418  1.3  christos   shared_archive_member_spec=
   7419  1.3  christos case $host,$enable_shared in
   7420  1.3  christos power*-*-aix[5-9]*,yes)
   7421  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7422  1.1  christos $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7423  1.1  christos 
   7424  1.1  christos # Check whether --with-aix-soname was given.
   7425  1.1  christos if test "${with_aix_soname+set}" = set; then :
   7426  1.1  christos   withval=$with_aix_soname; case $withval in
   7427  1.1  christos     aix|svr4|both)
   7428  1.1  christos       ;;
   7429  1.1  christos     *)
   7430  1.1  christos       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7431  1.1  christos       ;;
   7432  1.1  christos     esac
   7433  1.1  christos     lt_cv_with_aix_soname=$with_aix_soname
   7434  1.1  christos else
   7435  1.1  christos   if ${lt_cv_with_aix_soname+:} false; then :
   7436  1.1  christos   $as_echo_n "(cached) " >&6
   7437  1.1  christos else
   7438  1.1  christos   lt_cv_with_aix_soname=aix
   7439  1.1  christos fi
   7440  1.1  christos 
   7441  1.1  christos     with_aix_soname=$lt_cv_with_aix_soname
   7442  1.1  christos fi
   7443  1.1  christos 
   7444  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7445  1.1  christos $as_echo "$with_aix_soname" >&6; }
   7446  1.1  christos   if test aix != "$with_aix_soname"; then
   7447  1.1  christos     # For the AIX way of multilib, we name the shared archive member
   7448  1.1  christos     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7449  1.1  christos     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7450  1.1  christos     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7451  1.1  christos     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7452  1.1  christos     if test 64 = "${OBJECT_MODE-32}"; then
   7453  1.1  christos       shared_archive_member_spec=shr_64
   7454  1.1  christos     else
   7455  1.1  christos       shared_archive_member_spec=shr
   7456  1.1  christos     fi
   7457  1.1  christos   fi
   7458  1.1  christos   ;;
   7459  1.1  christos *)
   7460  1.1  christos   with_aix_soname=aix
   7461  1.1  christos   ;;
   7462  1.1  christos esac
   7463  1.1  christos 
   7464  1.1  christos 
   7465  1.1  christos 
   7466  1.1  christos 
   7467  1.1  christos 
   7468  1.1  christos 
   7469  1.1  christos 
   7470  1.1  christos 
   7471  1.1  christos 
   7472  1.1  christos 
   7473  1.1  christos # This can be used to rebuild libtool when needed
   7474  1.1  christos LIBTOOL_DEPS=$ltmain
   7475  1.1  christos 
   7476  1.1  christos # Always use our own libtool.
   7477  1.1  christos LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7478  1.1  christos 
   7479  1.1  christos 
   7480  1.1  christos 
   7481  1.1  christos 
   7482  1.1  christos 
   7483  1.1  christos 
   7484  1.1  christos 
   7485  1.1  christos 
   7486  1.1  christos 
   7487  1.1  christos 
   7488  1.1  christos 
   7489  1.1  christos 
   7490  1.1  christos 
   7491  1.1  christos 
   7492  1.1  christos 
   7493  1.1  christos 
   7494  1.1  christos 
   7495  1.1  christos 
   7496  1.1  christos 
   7497  1.1  christos 
   7498  1.1  christos 
   7499  1.1  christos 
   7500  1.1  christos 
   7501  1.1  christos 
   7502  1.1  christos 
   7503  1.1  christos 
   7504  1.1  christos 
   7505  1.1  christos 
   7506  1.1  christos 
   7507  1.1  christos 
   7508  1.1  christos test -z "$LN_S" && LN_S="ln -s"
   7509  1.1  christos 
   7510  1.1  christos 
   7511  1.1  christos 
   7512  1.1  christos 
   7513  1.1  christos 
   7514  1.1  christos 
   7515  1.1  christos 
   7516  1.1  christos 
   7517  1.1  christos 
   7518  1.1  christos 
   7519  1.1  christos 
   7520  1.1  christos 
   7521  1.1  christos 
   7522  1.1  christos 
   7523  1.1  christos if test -n "${ZSH_VERSION+set}"; then
   7524  1.1  christos    setopt NO_GLOB_SUBST
   7525  1.1  christos fi
   7526  1.1  christos 
   7527  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7528  1.1  christos $as_echo_n "checking for objdir... " >&6; }
   7529  1.1  christos if ${lt_cv_objdir+:} false; then :
   7530  1.1  christos   $as_echo_n "(cached) " >&6
   7531  1.1  christos else
   7532  1.1  christos   rm -f .libs 2>/dev/null
   7533  1.1  christos mkdir .libs 2>/dev/null
   7534  1.1  christos if test -d .libs; then
   7535  1.1  christos   lt_cv_objdir=.libs
   7536  1.1  christos else
   7537  1.1  christos   # MS-DOS does not allow filenames that begin with a dot.
   7538  1.1  christos   lt_cv_objdir=_libs
   7539  1.1  christos fi
   7540  1.1  christos rmdir .libs 2>/dev/null
   7541  1.1  christos fi
   7542  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7543  1.1  christos $as_echo "$lt_cv_objdir" >&6; }
   7544  1.1  christos objdir=$lt_cv_objdir
   7545  1.1  christos 
   7546  1.1  christos 
   7547  1.1  christos 
   7548  1.1  christos 
   7549  1.1  christos 
   7550  1.1  christos cat >>confdefs.h <<_ACEOF
   7551  1.1  christos #define LT_OBJDIR "$lt_cv_objdir/"
   7552  1.1  christos _ACEOF
   7553  1.1  christos 
   7554  1.1  christos 
   7555  1.1  christos 
   7556  1.1  christos 
   7557  1.1  christos case $host_os in
   7558  1.1  christos aix3*)
   7559  1.1  christos   # AIX sometimes has problems with the GCC collect2 program.  For some
   7560  1.1  christos   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7561  1.1  christos   # vanish in a puff of smoke.
   7562  1.1  christos   if test set != "${COLLECT_NAMES+set}"; then
   7563  1.1  christos     COLLECT_NAMES=
   7564  1.1  christos     export COLLECT_NAMES
   7565  1.1  christos   fi
   7566  1.1  christos   ;;
   7567  1.1  christos esac
   7568  1.1  christos 
   7569  1.1  christos # Global variables:
   7570  1.1  christos ofile=libtool
   7571  1.1  christos can_build_shared=yes
   7572  1.1  christos 
   7573  1.1  christos # All known linkers require a '.a' archive for static linking (except MSVC,
   7574  1.1  christos # which needs '.lib').
   7575  1.1  christos libext=a
   7576  1.1  christos 
   7577  1.1  christos with_gnu_ld=$lt_cv_prog_gnu_ld
   7578  1.1  christos 
   7579  1.1  christos old_CC=$CC
   7580  1.1  christos old_CFLAGS=$CFLAGS
   7581  1.1  christos 
   7582  1.1  christos # Set sane defaults for various variables
   7583  1.1  christos test -z "$CC" && CC=cc
   7584  1.1  christos test -z "$LTCC" && LTCC=$CC
   7585  1.1  christos test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7586  1.1  christos test -z "$LD" && LD=ld
   7587  1.1  christos test -z "$ac_objext" && ac_objext=o
   7588  1.1  christos 
   7589  1.1  christos func_cc_basename $compiler
   7590  1.1  christos cc_basename=$func_cc_basename_result
   7591  1.1  christos 
   7592  1.1  christos 
   7593  1.1  christos # Only perform the check for file, if the check method requires it
   7594  1.1  christos test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7595  1.1  christos case $deplibs_check_method in
   7596  1.1  christos file_magic*)
   7597  1.1  christos   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7598  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7599  1.1  christos $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7600  1.1  christos if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7601  1.1  christos   $as_echo_n "(cached) " >&6
   7602  1.1  christos else
   7603  1.1  christos   case $MAGIC_CMD in
   7604  1.1  christos [\\/*] |  ?:[\\/]*)
   7605  1.1  christos   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7606  1.1  christos   ;;
   7607  1.1  christos *)
   7608  1.1  christos   lt_save_MAGIC_CMD=$MAGIC_CMD
   7609  1.1  christos   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7610  1.1  christos   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7611  1.1  christos   for ac_dir in $ac_dummy; do
   7612  1.1  christos     IFS=$lt_save_ifs
   7613  1.1  christos     test -z "$ac_dir" && ac_dir=.
   7614  1.1  christos     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   7615  1.1  christos       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   7616  1.1  christos       if test -n "$file_magic_test_file"; then
   7617  1.1  christos 	case $deplibs_check_method in
   7618  1.1  christos 	"file_magic "*)
   7619  1.1  christos 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7620  1.1  christos 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7621  1.1  christos 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7622  1.1  christos 	    $EGREP "$file_magic_regex" > /dev/null; then
   7623  1.1  christos 	    :
   7624  1.1  christos 	  else
   7625  1.1  christos 	    cat <<_LT_EOF 1>&2
   7626  1.1  christos 
   7627  1.1  christos *** Warning: the command libtool uses to detect shared libraries,
   7628  1.1  christos *** $file_magic_cmd, produces output that libtool cannot recognize.
   7629  1.1  christos *** The result is that libtool may fail to recognize shared libraries
   7630  1.1  christos *** as such.  This will affect the creation of libtool libraries that
   7631  1.1  christos *** depend on shared libraries, but programs linked with such libtool
   7632  1.1  christos *** libraries will work regardless of this problem.  Nevertheless, you
   7633  1.1  christos *** may want to report the problem to your system manager and/or to
   7634  1.1  christos *** bug-libtool (at] gnu.org
   7635  1.1  christos 
   7636  1.1  christos _LT_EOF
   7637  1.1  christos 	  fi ;;
   7638  1.1  christos 	esac
   7639  1.1  christos       fi
   7640  1.1  christos       break
   7641  1.1  christos     fi
   7642  1.1  christos   done
   7643  1.1  christos   IFS=$lt_save_ifs
   7644  1.1  christos   MAGIC_CMD=$lt_save_MAGIC_CMD
   7645  1.1  christos   ;;
   7646  1.1  christos esac
   7647  1.1  christos fi
   7648  1.1  christos 
   7649  1.1  christos MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7650  1.1  christos if test -n "$MAGIC_CMD"; then
   7651  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7652  1.1  christos $as_echo "$MAGIC_CMD" >&6; }
   7653  1.1  christos else
   7654  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7655  1.1  christos $as_echo "no" >&6; }
   7656  1.1  christos fi
   7657  1.1  christos 
   7658  1.1  christos 
   7659  1.1  christos 
   7660  1.1  christos 
   7661  1.1  christos 
   7662  1.1  christos if test -z "$lt_cv_path_MAGIC_CMD"; then
   7663  1.1  christos   if test -n "$ac_tool_prefix"; then
   7664  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   7665  1.1  christos $as_echo_n "checking for file... " >&6; }
   7666  1.1  christos if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7667  1.1  christos   $as_echo_n "(cached) " >&6
   7668  1.1  christos else
   7669  1.1  christos   case $MAGIC_CMD in
   7670  1.1  christos [\\/*] |  ?:[\\/]*)
   7671  1.1  christos   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7672  1.1  christos   ;;
   7673  1.1  christos *)
   7674  1.1  christos   lt_save_MAGIC_CMD=$MAGIC_CMD
   7675  1.1  christos   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7676  1.1  christos   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7677  1.1  christos   for ac_dir in $ac_dummy; do
   7678  1.1  christos     IFS=$lt_save_ifs
   7679  1.1  christos     test -z "$ac_dir" && ac_dir=.
   7680  1.1  christos     if test -f "$ac_dir/file"; then
   7681  1.1  christos       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   7682  1.1  christos       if test -n "$file_magic_test_file"; then
   7683  1.1  christos 	case $deplibs_check_method in
   7684  1.1  christos 	"file_magic "*)
   7685  1.1  christos 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7686  1.1  christos 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7687  1.1  christos 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7688  1.1  christos 	    $EGREP "$file_magic_regex" > /dev/null; then
   7689  1.1  christos 	    :
   7690  1.1  christos 	  else
   7691  1.1  christos 	    cat <<_LT_EOF 1>&2
   7692  1.1  christos 
   7693  1.1  christos *** Warning: the command libtool uses to detect shared libraries,
   7694  1.1  christos *** $file_magic_cmd, produces output that libtool cannot recognize.
   7695  1.1  christos *** The result is that libtool may fail to recognize shared libraries
   7696  1.1  christos *** as such.  This will affect the creation of libtool libraries that
   7697  1.1  christos *** depend on shared libraries, but programs linked with such libtool
   7698  1.1  christos *** libraries will work regardless of this problem.  Nevertheless, you
   7699  1.1  christos *** may want to report the problem to your system manager and/or to
   7700  1.1  christos *** bug-libtool (at] gnu.org
   7701  1.1  christos 
   7702  1.1  christos _LT_EOF
   7703  1.1  christos 	  fi ;;
   7704  1.1  christos 	esac
   7705  1.1  christos       fi
   7706  1.1  christos       break
   7707  1.1  christos     fi
   7708  1.1  christos   done
   7709  1.1  christos   IFS=$lt_save_ifs
   7710  1.1  christos   MAGIC_CMD=$lt_save_MAGIC_CMD
   7711  1.1  christos   ;;
   7712  1.1  christos esac
   7713  1.1  christos fi
   7714  1.1  christos 
   7715  1.1  christos MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7716  1.1  christos if test -n "$MAGIC_CMD"; then
   7717  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7718  1.1  christos $as_echo "$MAGIC_CMD" >&6; }
   7719  1.1  christos else
   7720  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7721  1.1  christos $as_echo "no" >&6; }
   7722  1.1  christos fi
   7723  1.1  christos 
   7724  1.1  christos 
   7725  1.1  christos   else
   7726  1.1  christos     MAGIC_CMD=:
   7727  1.1  christos   fi
   7728  1.1  christos fi
   7729  1.1  christos 
   7730  1.1  christos   fi
   7731  1.1  christos   ;;
   7732  1.1  christos esac
   7733  1.1  christos 
   7734  1.1  christos # Use C for the default configuration in the libtool script
   7735  1.1  christos 
   7736  1.1  christos lt_save_CC=$CC
   7737  1.1  christos ac_ext=c
   7738  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7739  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7740  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7741  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7742  1.1  christos 
   7743  1.1  christos 
   7744  1.1  christos # Source file extension for C test sources.
   7745  1.1  christos ac_ext=c
   7746  1.1  christos 
   7747  1.1  christos # Object file extension for compiled C test sources.
   7748  1.1  christos objext=o
   7749  1.1  christos objext=$objext
   7750  1.1  christos 
   7751  1.1  christos # Code to be used in simple compile tests
   7752  1.1  christos lt_simple_compile_test_code="int some_variable = 0;"
   7753  1.1  christos 
   7754  1.1  christos # Code to be used in simple link tests
   7755  1.1  christos lt_simple_link_test_code='int main(){return(0);}'
   7756  1.1  christos 
   7757  1.1  christos 
   7758  1.1  christos 
   7759  1.1  christos 
   7760  1.1  christos 
   7761  1.1  christos 
   7762  1.1  christos 
   7763  1.1  christos # If no C compiler was specified, use CC.
   7764  1.1  christos LTCC=${LTCC-"$CC"}
   7765  1.1  christos 
   7766  1.1  christos # If no C compiler flags were specified, use CFLAGS.
   7767  1.1  christos LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   7768  1.1  christos 
   7769  1.1  christos # Allow CC to be a program name with arguments.
   7770  1.1  christos compiler=$CC
   7771  1.1  christos 
   7772  1.1  christos # Save the default compiler, since it gets overwritten when the other
   7773  1.1  christos # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   7774  1.1  christos compiler_DEFAULT=$CC
   7775  1.1  christos 
   7776  1.1  christos # save warnings/boilerplate of simple test code
   7777  1.1  christos ac_outfile=conftest.$ac_objext
   7778  1.1  christos echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   7779  1.1  christos eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7780  1.1  christos _lt_compiler_boilerplate=`cat conftest.err`
   7781  1.1  christos $RM conftest*
   7782  1.1  christos 
   7783  1.1  christos ac_outfile=conftest.$ac_objext
   7784  1.1  christos echo "$lt_simple_link_test_code" >conftest.$ac_ext
   7785  1.1  christos eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7786  1.1  christos _lt_linker_boilerplate=`cat conftest.err`
   7787  1.1  christos $RM -r conftest*
   7788  1.1  christos 
   7789  1.1  christos 
   7790  1.1  christos ## CAVEAT EMPTOR:
   7791  1.1  christos ## There is no encapsulation within the following macros, do not change
   7792  1.1  christos ## the running order or otherwise move them around unless you know exactly
   7793  1.1  christos ## what you are doing...
   7794  1.1  christos if test -n "$compiler"; then
   7795  1.1  christos 
   7796  1.1  christos lt_prog_compiler_no_builtin_flag=
   7797  1.1  christos 
   7798  1.1  christos if test yes = "$GCC"; then
   7799  1.1  christos   case $cc_basename in
   7800  1.1  christos   nvcc*)
   7801  1.1  christos     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   7802  1.1  christos   *)
   7803  1.1  christos     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   7804  1.1  christos   esac
   7805  1.1  christos 
   7806  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   7807  1.1  christos $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   7808  1.1  christos if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   7809  1.1  christos   $as_echo_n "(cached) " >&6
   7810  1.1  christos else
   7811  1.1  christos   lt_cv_prog_compiler_rtti_exceptions=no
   7812  1.1  christos    ac_outfile=conftest.$ac_objext
   7813  1.1  christos    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7814  1.1  christos    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   7815  1.1  christos    # Insert the option either (1) after the last *FLAGS variable, or
   7816  1.1  christos    # (2) before a word containing "conftest.", or (3) at the end.
   7817  1.1  christos    # Note that $ac_compile itself does not contain backslashes and begins
   7818  1.1  christos    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7819  1.1  christos    # The option is referenced via a variable to avoid confusing sed.
   7820  1.1  christos    lt_compile=`echo "$ac_compile" | $SED \
   7821  1.1  christos    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7822  1.1  christos    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7823  1.1  christos    -e 's:$: $lt_compiler_flag:'`
   7824  1.1  christos    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   7825  1.1  christos    (eval "$lt_compile" 2>conftest.err)
   7826  1.1  christos    ac_status=$?
   7827  1.1  christos    cat conftest.err >&5
   7828  1.1  christos    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7829  1.1  christos    if (exit $ac_status) && test -s "$ac_outfile"; then
   7830  1.1  christos      # The compiler can only warn and ignore the option if not recognized
   7831  1.1  christos      # So say no if there are warnings other than the usual output.
   7832  1.1  christos      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   7833  1.1  christos      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7834  1.1  christos      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   7835  1.1  christos        lt_cv_prog_compiler_rtti_exceptions=yes
   7836  1.1  christos      fi
   7837  1.1  christos    fi
   7838  1.1  christos    $RM conftest*
   7839  1.1  christos 
   7840  1.1  christos fi
   7841  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   7842  1.1  christos $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   7843  1.1  christos 
   7844  1.1  christos if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   7845  1.1  christos     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   7846  1.1  christos else
   7847  1.1  christos     :
   7848  1.1  christos fi
   7849  1.1  christos 
   7850  1.1  christos fi
   7851  1.1  christos 
   7852  1.1  christos 
   7853  1.1  christos 
   7854  1.1  christos 
   7855  1.1  christos 
   7856  1.1  christos 
   7857  1.1  christos   lt_prog_compiler_wl=
   7858  1.1  christos lt_prog_compiler_pic=
   7859  1.1  christos lt_prog_compiler_static=
   7860  1.1  christos 
   7861  1.1  christos 
   7862  1.1  christos   if test yes = "$GCC"; then
   7863  1.1  christos     lt_prog_compiler_wl='-Wl,'
   7864  1.1  christos     lt_prog_compiler_static='-static'
   7865  1.1  christos 
   7866  1.1  christos     case $host_os in
   7867  1.1  christos       aix*)
   7868  1.1  christos       # All AIX code is PIC.
   7869  1.1  christos       if test ia64 = "$host_cpu"; then
   7870  1.1  christos 	# AIX 5 now supports IA64 processor
   7871  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   7872  1.1  christos       fi
   7873  1.1  christos       lt_prog_compiler_pic='-fPIC'
   7874  1.1  christos       ;;
   7875  1.1  christos 
   7876  1.1  christos     amigaos*)
   7877  1.1  christos       case $host_cpu in
   7878  1.1  christos       powerpc)
   7879  1.1  christos             # see comment about AmigaOS4 .so support
   7880  1.1  christos             lt_prog_compiler_pic='-fPIC'
   7881  1.1  christos         ;;
   7882  1.1  christos       m68k)
   7883  1.1  christos             # FIXME: we need at least 68020 code to build shared libraries, but
   7884  1.1  christos             # adding the '-m68020' flag to GCC prevents building anything better,
   7885  1.1  christos             # like '-m68040'.
   7886  1.1  christos             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   7887  1.1  christos         ;;
   7888  1.1  christos       esac
   7889  1.1  christos       ;;
   7890  1.1  christos 
   7891  1.1  christos     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   7892  1.1  christos       # PIC is the default for these OSes.
   7893  1.1  christos       ;;
   7894  1.1  christos 
   7895  1.1  christos     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7896  1.1  christos       # This hack is so that the source file can tell whether it is being
   7897  1.1  christos       # built for inclusion in a dll (and should export symbols for example).
   7898  1.1  christos       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   7899  1.1  christos       # (--disable-auto-import) libraries
   7900  1.1  christos       lt_prog_compiler_pic='-DDLL_EXPORT'
   7901  1.1  christos       case $host_os in
   7902  1.1  christos       os2*)
   7903  1.1  christos 	lt_prog_compiler_static='$wl-static'
   7904  1.1  christos 	;;
   7905  1.1  christos       esac
   7906  1.1  christos       ;;
   7907  1.1  christos 
   7908  1.1  christos     darwin* | rhapsody*)
   7909  1.1  christos       # PIC is the default on this platform
   7910  1.1  christos       # Common symbols not allowed in MH_DYLIB files
   7911  1.1  christos       lt_prog_compiler_pic='-fno-common'
   7912  1.1  christos       ;;
   7913  1.1  christos 
   7914  1.1  christos     haiku*)
   7915  1.1  christos       # PIC is the default for Haiku.
   7916  1.1  christos       # The "-static" flag exists, but is broken.
   7917  1.1  christos       lt_prog_compiler_static=
   7918  1.1  christos       ;;
   7919  1.1  christos 
   7920  1.1  christos     hpux*)
   7921  1.1  christos       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   7922  1.1  christos       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   7923  1.1  christos       # sets the default TLS model and affects inlining.
   7924  1.1  christos       case $host_cpu in
   7925  1.1  christos       hppa*64*)
   7926  1.1  christos 	# +Z the default
   7927  1.1  christos 	;;
   7928  1.1  christos       *)
   7929  1.1  christos 	lt_prog_compiler_pic='-fPIC'
   7930  1.1  christos 	;;
   7931  1.1  christos       esac
   7932  1.1  christos       ;;
   7933  1.1  christos 
   7934  1.1  christos     interix[3-9]*)
   7935  1.1  christos       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   7936  1.1  christos       # Instead, we relocate shared libraries at runtime.
   7937  1.1  christos       ;;
   7938  1.1  christos 
   7939  1.1  christos     msdosdjgpp*)
   7940  1.1  christos       # Just because we use GCC doesn't mean we suddenly get shared libraries
   7941  1.1  christos       # on systems that don't support them.
   7942  1.1  christos       lt_prog_compiler_can_build_shared=no
   7943  1.1  christos       enable_shared=no
   7944  1.1  christos       ;;
   7945  1.1  christos 
   7946  1.1  christos     *nto* | *qnx*)
   7947  1.1  christos       # QNX uses GNU C++, but need to define -shared option too, otherwise
   7948  1.1  christos       # it will coredump.
   7949  1.1  christos       lt_prog_compiler_pic='-fPIC -shared'
   7950  1.1  christos       ;;
   7951  1.1  christos 
   7952  1.1  christos     sysv4*MP*)
   7953  1.1  christos       if test -d /usr/nec; then
   7954  1.1  christos 	lt_prog_compiler_pic=-Kconform_pic
   7955  1.1  christos       fi
   7956  1.1  christos       ;;
   7957  1.1  christos 
   7958  1.1  christos     *)
   7959  1.1  christos       lt_prog_compiler_pic='-fPIC'
   7960  1.1  christos       ;;
   7961  1.1  christos     esac
   7962  1.1  christos 
   7963  1.1  christos     case $cc_basename in
   7964  1.1  christos     nvcc*) # Cuda Compiler Driver 2.2
   7965  1.1  christos       lt_prog_compiler_wl='-Xlinker '
   7966  1.1  christos       if test -n "$lt_prog_compiler_pic"; then
   7967  1.1  christos         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   7968  1.1  christos       fi
   7969  1.1  christos       ;;
   7970  1.1  christos     esac
   7971  1.1  christos   else
   7972  1.1  christos     # PORTME Check for flag to pass linker flags through the system compiler.
   7973  1.1  christos     case $host_os in
   7974  1.1  christos     aix*)
   7975  1.1  christos       lt_prog_compiler_wl='-Wl,'
   7976  1.1  christos       if test ia64 = "$host_cpu"; then
   7977  1.1  christos 	# AIX 5 now supports IA64 processor
   7978  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   7979  1.1  christos       else
   7980  1.1  christos 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   7981  1.1  christos       fi
   7982  1.1  christos       ;;
   7983  1.1  christos 
   7984  1.1  christos     darwin* | rhapsody*)
   7985  1.1  christos       # PIC is the default on this platform
   7986  1.1  christos       # Common symbols not allowed in MH_DYLIB files
   7987  1.1  christos       lt_prog_compiler_pic='-fno-common'
   7988  1.1  christos       case $cc_basename in
   7989  1.1  christos       nagfor*)
   7990  1.1  christos         # NAG Fortran compiler
   7991  1.1  christos         lt_prog_compiler_wl='-Wl,-Wl,,'
   7992  1.1  christos         lt_prog_compiler_pic='-PIC'
   7993  1.1  christos         lt_prog_compiler_static='-Bstatic'
   7994  1.1  christos         ;;
   7995  1.1  christos       esac
   7996  1.1  christos       ;;
   7997  1.1  christos 
   7998  1.1  christos     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7999  1.1  christos       # This hack is so that the source file can tell whether it is being
   8000  1.1  christos       # built for inclusion in a dll (and should export symbols for example).
   8001  1.1  christos       lt_prog_compiler_pic='-DDLL_EXPORT'
   8002  1.1  christos       case $host_os in
   8003  1.1  christos       os2*)
   8004  1.1  christos 	lt_prog_compiler_static='$wl-static'
   8005  1.1  christos 	;;
   8006  1.1  christos       esac
   8007  1.1  christos       ;;
   8008  1.1  christos 
   8009  1.1  christos     hpux9* | hpux10* | hpux11*)
   8010  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8011  1.1  christos       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8012  1.1  christos       # not for PA HP-UX.
   8013  1.1  christos       case $host_cpu in
   8014  1.1  christos       hppa*64*|ia64*)
   8015  1.1  christos 	# +Z the default
   8016  1.1  christos 	;;
   8017  1.1  christos       *)
   8018  1.1  christos 	lt_prog_compiler_pic='+Z'
   8019  1.1  christos 	;;
   8020  1.1  christos       esac
   8021  1.1  christos       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8022  1.1  christos       lt_prog_compiler_static='$wl-a ${wl}archive'
   8023  1.1  christos       ;;
   8024  1.1  christos 
   8025  1.1  christos     irix5* | irix6* | nonstopux*)
   8026  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8027  1.1  christos       # PIC (with -KPIC) is the default.
   8028  1.1  christos       lt_prog_compiler_static='-non_shared'
   8029  1.1  christos       ;;
   8030  1.1  christos 
   8031  1.1  christos     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8032  1.1  christos       case $cc_basename in
   8033  1.1  christos       # old Intel for x86_64, which still supported -KPIC.
   8034  1.1  christos       ecc*)
   8035  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8036  1.1  christos 	lt_prog_compiler_pic='-KPIC'
   8037  1.1  christos 	lt_prog_compiler_static='-static'
   8038  1.1  christos         ;;
   8039  1.1  christos       # icc used to be incompatible with GCC.
   8040  1.1  christos       # ICC 10 doesn't accept -KPIC any more.
   8041  1.1  christos       icc* | ifort*)
   8042  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8043  1.1  christos 	lt_prog_compiler_pic='-fPIC'
   8044  1.1  christos 	lt_prog_compiler_static='-static'
   8045  1.1  christos         ;;
   8046  1.1  christos       # Lahey Fortran 8.1.
   8047  1.1  christos       lf95*)
   8048  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8049  1.1  christos 	lt_prog_compiler_pic='--shared'
   8050  1.1  christos 	lt_prog_compiler_static='--static'
   8051  1.1  christos 	;;
   8052  1.1  christos       nagfor*)
   8053  1.1  christos 	# NAG Fortran compiler
   8054  1.1  christos 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8055  1.1  christos 	lt_prog_compiler_pic='-PIC'
   8056  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   8057  1.1  christos 	;;
   8058  1.1  christos       tcc*)
   8059  1.1  christos 	# Fabrice Bellard et al's Tiny C Compiler
   8060  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8061  1.1  christos 	lt_prog_compiler_pic='-fPIC'
   8062  1.1  christos 	lt_prog_compiler_static='-static'
   8063  1.1  christos 	;;
   8064  1.1  christos       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8065  1.1  christos         # Portland Group compilers (*not* the Pentium gcc compiler,
   8066  1.1  christos 	# which looks to be a dead project)
   8067  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8068  1.1  christos 	lt_prog_compiler_pic='-fpic'
   8069  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   8070  1.1  christos         ;;
   8071  1.1  christos       ccc*)
   8072  1.1  christos         lt_prog_compiler_wl='-Wl,'
   8073  1.1  christos         # All Alpha code is PIC.
   8074  1.1  christos         lt_prog_compiler_static='-non_shared'
   8075  1.1  christos         ;;
   8076  1.1  christos       xl* | bgxl* | bgf* | mpixl*)
   8077  1.1  christos 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8078  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8079  1.1  christos 	lt_prog_compiler_pic='-qpic'
   8080  1.1  christos 	lt_prog_compiler_static='-qstaticlink'
   8081  1.1  christos 	;;
   8082  1.1  christos       *)
   8083  1.1  christos 	case `$CC -V 2>&1 | sed 5q` in
   8084  1.1  christos 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8085  1.1  christos 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8086  1.1  christos 	  lt_prog_compiler_pic='-KPIC'
   8087  1.1  christos 	  lt_prog_compiler_static='-Bstatic'
   8088  1.1  christos 	  lt_prog_compiler_wl=''
   8089  1.1  christos 	  ;;
   8090  1.1  christos 	*Sun\ F* | *Sun*Fortran*)
   8091  1.1  christos 	  lt_prog_compiler_pic='-KPIC'
   8092  1.1  christos 	  lt_prog_compiler_static='-Bstatic'
   8093  1.1  christos 	  lt_prog_compiler_wl='-Qoption ld '
   8094  1.1  christos 	  ;;
   8095  1.1  christos 	*Sun\ C*)
   8096  1.1  christos 	  # Sun C 5.9
   8097  1.1  christos 	  lt_prog_compiler_pic='-KPIC'
   8098  1.1  christos 	  lt_prog_compiler_static='-Bstatic'
   8099  1.1  christos 	  lt_prog_compiler_wl='-Wl,'
   8100  1.1  christos 	  ;;
   8101  1.1  christos         *Intel*\ [CF]*Compiler*)
   8102  1.1  christos 	  lt_prog_compiler_wl='-Wl,'
   8103  1.1  christos 	  lt_prog_compiler_pic='-fPIC'
   8104  1.1  christos 	  lt_prog_compiler_static='-static'
   8105  1.1  christos 	  ;;
   8106  1.1  christos 	*Portland\ Group*)
   8107  1.1  christos 	  lt_prog_compiler_wl='-Wl,'
   8108  1.1  christos 	  lt_prog_compiler_pic='-fpic'
   8109  1.1  christos 	  lt_prog_compiler_static='-Bstatic'
   8110  1.1  christos 	  ;;
   8111  1.1  christos 	esac
   8112  1.1  christos 	;;
   8113  1.1  christos       esac
   8114  1.1  christos       ;;
   8115  1.1  christos 
   8116  1.1  christos     newsos6)
   8117  1.1  christos       lt_prog_compiler_pic='-KPIC'
   8118  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8119  1.1  christos       ;;
   8120  1.1  christos 
   8121  1.1  christos     *nto* | *qnx*)
   8122  1.1  christos       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8123  1.1  christos       # it will coredump.
   8124  1.1  christos       lt_prog_compiler_pic='-fPIC -shared'
   8125  1.1  christos       ;;
   8126  1.1  christos 
   8127  1.1  christos     osf3* | osf4* | osf5*)
   8128  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8129  1.1  christos       # All OSF/1 code is PIC.
   8130  1.1  christos       lt_prog_compiler_static='-non_shared'
   8131  1.1  christos       ;;
   8132  1.1  christos 
   8133  1.1  christos     rdos*)
   8134  1.1  christos       lt_prog_compiler_static='-non_shared'
   8135  1.1  christos       ;;
   8136  1.1  christos 
   8137  1.1  christos     solaris*)
   8138  1.1  christos       lt_prog_compiler_pic='-KPIC'
   8139  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8140  1.1  christos       case $cc_basename in
   8141  1.1  christos       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8142  1.1  christos 	lt_prog_compiler_wl='-Qoption ld ';;
   8143  1.1  christos       *)
   8144  1.1  christos 	lt_prog_compiler_wl='-Wl,';;
   8145  1.1  christos       esac
   8146  1.1  christos       ;;
   8147  1.1  christos 
   8148  1.1  christos     sunos4*)
   8149  1.1  christos       lt_prog_compiler_wl='-Qoption ld '
   8150  1.1  christos       lt_prog_compiler_pic='-PIC'
   8151  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8152  1.1  christos       ;;
   8153  1.1  christos 
   8154  1.1  christos     sysv4 | sysv4.2uw2* | sysv4.3*)
   8155  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8156  1.1  christos       lt_prog_compiler_pic='-KPIC'
   8157  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8158  1.1  christos       ;;
   8159  1.1  christos 
   8160  1.1  christos     sysv4*MP*)
   8161  1.1  christos       if test -d /usr/nec; then
   8162  1.1  christos 	lt_prog_compiler_pic='-Kconform_pic'
   8163  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   8164  1.1  christos       fi
   8165  1.1  christos       ;;
   8166  1.1  christos 
   8167  1.1  christos     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8168  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8169  1.1  christos       lt_prog_compiler_pic='-KPIC'
   8170  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8171  1.1  christos       ;;
   8172  1.1  christos 
   8173  1.1  christos     unicos*)
   8174  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8175  1.1  christos       lt_prog_compiler_can_build_shared=no
   8176  1.1  christos       ;;
   8177  1.1  christos 
   8178  1.1  christos     uts4*)
   8179  1.1  christos       lt_prog_compiler_pic='-pic'
   8180  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8181  1.1  christos       ;;
   8182  1.1  christos 
   8183  1.1  christos     *)
   8184  1.1  christos       lt_prog_compiler_can_build_shared=no
   8185  1.1  christos       ;;
   8186  1.1  christos     esac
   8187  1.1  christos   fi
   8188  1.1  christos 
   8189  1.1  christos case $host_os in
   8190  1.1  christos   # For platforms that do not support PIC, -DPIC is meaningless:
   8191  1.1  christos   *djgpp*)
   8192  1.1  christos     lt_prog_compiler_pic=
   8193  1.1  christos     ;;
   8194  1.1  christos   *)
   8195  1.1  christos     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8196  1.1  christos     ;;
   8197  1.1  christos esac
   8198  1.1  christos 
   8199  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8200  1.1  christos $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8201  1.1  christos if ${lt_cv_prog_compiler_pic+:} false; then :
   8202  1.1  christos   $as_echo_n "(cached) " >&6
   8203  1.1  christos else
   8204  1.1  christos   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8205  1.1  christos fi
   8206  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8207  1.1  christos $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8208  1.1  christos lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8209  1.1  christos 
   8210  1.1  christos #
   8211  1.1  christos # Check to make sure the PIC flag actually works.
   8212  1.1  christos #
   8213  1.1  christos if test -n "$lt_prog_compiler_pic"; then
   8214  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8215  1.1  christos $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8216  1.1  christos if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8217  1.1  christos   $as_echo_n "(cached) " >&6
   8218  1.1  christos else
   8219  1.1  christos   lt_cv_prog_compiler_pic_works=no
   8220  1.1  christos    ac_outfile=conftest.$ac_objext
   8221  1.1  christos    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8222  1.1  christos    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8223  1.1  christos    # Insert the option either (1) after the last *FLAGS variable, or
   8224  1.1  christos    # (2) before a word containing "conftest.", or (3) at the end.
   8225  1.1  christos    # Note that $ac_compile itself does not contain backslashes and begins
   8226  1.1  christos    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8227  1.1  christos    # The option is referenced via a variable to avoid confusing sed.
   8228  1.1  christos    lt_compile=`echo "$ac_compile" | $SED \
   8229  1.1  christos    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8230  1.1  christos    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8231  1.1  christos    -e 's:$: $lt_compiler_flag:'`
   8232  1.1  christos    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8233  1.1  christos    (eval "$lt_compile" 2>conftest.err)
   8234  1.1  christos    ac_status=$?
   8235  1.1  christos    cat conftest.err >&5
   8236  1.1  christos    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8237  1.1  christos    if (exit $ac_status) && test -s "$ac_outfile"; then
   8238  1.1  christos      # The compiler can only warn and ignore the option if not recognized
   8239  1.1  christos      # So say no if there are warnings other than the usual output.
   8240  1.1  christos      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8241  1.1  christos      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8242  1.1  christos      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8243  1.1  christos        lt_cv_prog_compiler_pic_works=yes
   8244  1.1  christos      fi
   8245  1.1  christos    fi
   8246  1.1  christos    $RM conftest*
   8247  1.1  christos 
   8248  1.1  christos fi
   8249  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8250  1.1  christos $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8251  1.1  christos 
   8252  1.1  christos if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8253  1.1  christos     case $lt_prog_compiler_pic in
   8254  1.1  christos      "" | " "*) ;;
   8255  1.1  christos      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8256  1.1  christos      esac
   8257  1.1  christos else
   8258  1.1  christos     lt_prog_compiler_pic=
   8259  1.1  christos      lt_prog_compiler_can_build_shared=no
   8260  1.1  christos fi
   8261  1.1  christos 
   8262  1.1  christos fi
   8263  1.1  christos 
   8264  1.1  christos 
   8265  1.1  christos 
   8266  1.1  christos 
   8267  1.1  christos 
   8268  1.1  christos 
   8269  1.1  christos 
   8270  1.1  christos 
   8271  1.1  christos 
   8272  1.1  christos 
   8273  1.1  christos 
   8274  1.1  christos #
   8275  1.1  christos # Check to make sure the static flag actually works.
   8276  1.1  christos #
   8277  1.1  christos wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8278  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8279  1.1  christos $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8280  1.1  christos if ${lt_cv_prog_compiler_static_works+:} false; then :
   8281  1.1  christos   $as_echo_n "(cached) " >&6
   8282  1.1  christos else
   8283  1.1  christos   lt_cv_prog_compiler_static_works=no
   8284  1.1  christos    save_LDFLAGS=$LDFLAGS
   8285  1.1  christos    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8286  1.1  christos    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8287  1.1  christos    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8288  1.1  christos      # The linker can only warn and ignore the option if not recognized
   8289  1.1  christos      # So say no if there are warnings
   8290  1.1  christos      if test -s conftest.err; then
   8291  1.1  christos        # Append any errors to the config.log.
   8292  1.1  christos        cat conftest.err 1>&5
   8293  1.1  christos        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8294  1.1  christos        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8295  1.1  christos        if diff conftest.exp conftest.er2 >/dev/null; then
   8296  1.1  christos          lt_cv_prog_compiler_static_works=yes
   8297  1.1  christos        fi
   8298  1.1  christos      else
   8299  1.1  christos        lt_cv_prog_compiler_static_works=yes
   8300  1.1  christos      fi
   8301  1.1  christos    fi
   8302  1.1  christos    $RM -r conftest*
   8303  1.1  christos    LDFLAGS=$save_LDFLAGS
   8304  1.1  christos 
   8305  1.1  christos fi
   8306  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8307  1.1  christos $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8308  1.1  christos 
   8309  1.1  christos if test yes = "$lt_cv_prog_compiler_static_works"; then
   8310  1.1  christos     :
   8311  1.1  christos else
   8312  1.1  christos     lt_prog_compiler_static=
   8313  1.1  christos fi
   8314  1.1  christos 
   8315  1.1  christos 
   8316  1.1  christos 
   8317  1.1  christos 
   8318  1.1  christos 
   8319  1.1  christos 
   8320  1.1  christos 
   8321  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8322  1.1  christos $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8323  1.1  christos if ${lt_cv_prog_compiler_c_o+:} false; then :
   8324  1.1  christos   $as_echo_n "(cached) " >&6
   8325  1.1  christos else
   8326  1.1  christos   lt_cv_prog_compiler_c_o=no
   8327  1.1  christos    $RM -r conftest 2>/dev/null
   8328  1.1  christos    mkdir conftest
   8329  1.1  christos    cd conftest
   8330  1.1  christos    mkdir out
   8331  1.1  christos    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8332  1.1  christos 
   8333  1.1  christos    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8334  1.1  christos    # Insert the option either (1) after the last *FLAGS variable, or
   8335  1.1  christos    # (2) before a word containing "conftest.", or (3) at the end.
   8336  1.1  christos    # Note that $ac_compile itself does not contain backslashes and begins
   8337  1.1  christos    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8338  1.1  christos    lt_compile=`echo "$ac_compile" | $SED \
   8339  1.1  christos    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8340  1.1  christos    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8341  1.1  christos    -e 's:$: $lt_compiler_flag:'`
   8342  1.1  christos    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8343  1.1  christos    (eval "$lt_compile" 2>out/conftest.err)
   8344  1.1  christos    ac_status=$?
   8345  1.1  christos    cat out/conftest.err >&5
   8346  1.1  christos    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8347  1.1  christos    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8348  1.1  christos    then
   8349  1.1  christos      # The compiler can only warn and ignore the option if not recognized
   8350  1.1  christos      # So say no if there are warnings
   8351  1.1  christos      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8352  1.1  christos      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8353  1.1  christos      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8354  1.1  christos        lt_cv_prog_compiler_c_o=yes
   8355  1.1  christos      fi
   8356  1.1  christos    fi
   8357  1.1  christos    chmod u+w . 2>&5
   8358  1.1  christos    $RM conftest*
   8359  1.1  christos    # SGI C++ compiler will create directory out/ii_files/ for
   8360  1.1  christos    # template instantiation
   8361  1.1  christos    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8362  1.1  christos    $RM out/* && rmdir out
   8363  1.1  christos    cd ..
   8364  1.1  christos    $RM -r conftest
   8365  1.1  christos    $RM conftest*
   8366  1.1  christos 
   8367  1.1  christos fi
   8368  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8369  1.1  christos $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8370  1.1  christos 
   8371  1.1  christos 
   8372  1.1  christos 
   8373  1.1  christos 
   8374  1.1  christos 
   8375  1.1  christos 
   8376  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8377  1.1  christos $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8378  1.1  christos if ${lt_cv_prog_compiler_c_o+:} false; then :
   8379  1.1  christos   $as_echo_n "(cached) " >&6
   8380  1.1  christos else
   8381  1.1  christos   lt_cv_prog_compiler_c_o=no
   8382  1.1  christos    $RM -r conftest 2>/dev/null
   8383  1.1  christos    mkdir conftest
   8384  1.1  christos    cd conftest
   8385  1.1  christos    mkdir out
   8386  1.1  christos    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8387  1.1  christos 
   8388  1.1  christos    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8389  1.1  christos    # Insert the option either (1) after the last *FLAGS variable, or
   8390  1.1  christos    # (2) before a word containing "conftest.", or (3) at the end.
   8391  1.1  christos    # Note that $ac_compile itself does not contain backslashes and begins
   8392  1.1  christos    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8393  1.1  christos    lt_compile=`echo "$ac_compile" | $SED \
   8394  1.1  christos    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8395  1.1  christos    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8396  1.1  christos    -e 's:$: $lt_compiler_flag:'`
   8397  1.1  christos    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8398  1.1  christos    (eval "$lt_compile" 2>out/conftest.err)
   8399  1.1  christos    ac_status=$?
   8400  1.1  christos    cat out/conftest.err >&5
   8401  1.1  christos    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8402  1.1  christos    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8403  1.1  christos    then
   8404  1.1  christos      # The compiler can only warn and ignore the option if not recognized
   8405  1.1  christos      # So say no if there are warnings
   8406  1.1  christos      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8407  1.1  christos      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8408  1.1  christos      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8409  1.1  christos        lt_cv_prog_compiler_c_o=yes
   8410  1.1  christos      fi
   8411  1.1  christos    fi
   8412  1.1  christos    chmod u+w . 2>&5
   8413  1.1  christos    $RM conftest*
   8414  1.1  christos    # SGI C++ compiler will create directory out/ii_files/ for
   8415  1.1  christos    # template instantiation
   8416  1.1  christos    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8417  1.1  christos    $RM out/* && rmdir out
   8418  1.1  christos    cd ..
   8419  1.1  christos    $RM -r conftest
   8420  1.1  christos    $RM conftest*
   8421  1.1  christos 
   8422  1.1  christos fi
   8423  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8424  1.1  christos $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8425  1.1  christos 
   8426  1.1  christos 
   8427  1.1  christos 
   8428  1.1  christos 
   8429  1.1  christos hard_links=nottested
   8430  1.1  christos if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8431  1.1  christos   # do not overwrite the value of need_locks provided by the user
   8432  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8433  1.1  christos $as_echo_n "checking if we can lock with hard links... " >&6; }
   8434  1.1  christos   hard_links=yes
   8435  1.1  christos   $RM conftest*
   8436  1.1  christos   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8437  1.1  christos   touch conftest.a
   8438  1.1  christos   ln conftest.a conftest.b 2>&5 || hard_links=no
   8439  1.1  christos   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8440  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8441  1.1  christos $as_echo "$hard_links" >&6; }
   8442  1.1  christos   if test no = "$hard_links"; then
   8443  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8444  1.1  christos $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8445  1.1  christos     need_locks=warn
   8446  1.1  christos   fi
   8447  1.1  christos else
   8448  1.1  christos   need_locks=no
   8449  1.1  christos fi
   8450  1.1  christos 
   8451  1.1  christos 
   8452  1.1  christos 
   8453  1.1  christos 
   8454  1.1  christos 
   8455  1.1  christos 
   8456  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8457  1.1  christos $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8458  1.1  christos 
   8459  1.1  christos   runpath_var=
   8460  1.1  christos   allow_undefined_flag=
   8461  1.1  christos   always_export_symbols=no
   8462  1.1  christos   archive_cmds=
   8463  1.1  christos   archive_expsym_cmds=
   8464  1.1  christos   compiler_needs_object=no
   8465  1.1  christos   enable_shared_with_static_runtimes=no
   8466  1.1  christos   export_dynamic_flag_spec=
   8467  1.1  christos   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8468  1.1  christos   hardcode_automatic=no
   8469  1.1  christos   hardcode_direct=no
   8470  1.1  christos   hardcode_direct_absolute=no
   8471  1.1  christos   hardcode_libdir_flag_spec=
   8472  1.1  christos   hardcode_libdir_separator=
   8473  1.1  christos   hardcode_minus_L=no
   8474  1.1  christos   hardcode_shlibpath_var=unsupported
   8475  1.1  christos   inherit_rpath=no
   8476  1.1  christos   link_all_deplibs=unknown
   8477  1.1  christos   module_cmds=
   8478  1.1  christos   module_expsym_cmds=
   8479  1.1  christos   old_archive_from_new_cmds=
   8480  1.1  christos   old_archive_from_expsyms_cmds=
   8481  1.1  christos   thread_safe_flag_spec=
   8482  1.1  christos   whole_archive_flag_spec=
   8483  1.1  christos   # include_expsyms should be a list of space-separated symbols to be *always*
   8484  1.1  christos   # included in the symbol list
   8485  1.1  christos   include_expsyms=
   8486  1.1  christos   # exclude_expsyms can be an extended regexp of symbols to exclude
   8487  1.1  christos   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8488  1.1  christos   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8489  1.1  christos   # as well as any symbol that contains 'd'.
   8490  1.1  christos   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8491  1.1  christos   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8492  1.1  christos   # platforms (ab)use it in PIC code, but their linkers get confused if
   8493  1.1  christos   # the symbol is explicitly referenced.  Since portable code cannot
   8494  1.1  christos   # rely on this symbol name, it's probably fine to never include it in
   8495  1.1  christos   # preloaded symbol tables.
   8496  1.1  christos   # Exclude shared library initialization/finalization symbols.
   8497  1.1  christos   extract_expsyms_cmds=
   8498  1.1  christos 
   8499  1.1  christos   case $host_os in
   8500  1.1  christos   cygwin* | mingw* | pw32* | cegcc*)
   8501  1.1  christos     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8502  1.1  christos     # When not using gcc, we currently assume that we are using
   8503  1.1  christos     # Microsoft Visual C++.
   8504  1.1  christos     if test yes != "$GCC"; then
   8505  1.1  christos       with_gnu_ld=no
   8506  1.1  christos     fi
   8507  1.1  christos     ;;
   8508  1.1  christos   interix*)
   8509  1.1  christos     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8510  1.1  christos     with_gnu_ld=yes
   8511  1.1  christos     ;;
   8512  1.1  christos   openbsd* | bitrig*)
   8513  1.1  christos     with_gnu_ld=no
   8514  1.1  christos     ;;
   8515  1.1  christos   esac
   8516  1.1  christos 
   8517  1.1  christos   ld_shlibs=yes
   8518  1.1  christos 
   8519  1.1  christos   # On some targets, GNU ld is compatible enough with the native linker
   8520  1.1  christos   # that we're better off using the native interface for both.
   8521  1.1  christos   lt_use_gnu_ld_interface=no
   8522  1.1  christos   if test yes = "$with_gnu_ld"; then
   8523  1.1  christos     case $host_os in
   8524  1.1  christos       aix*)
   8525  1.1  christos 	# The AIX port of GNU ld has always aspired to compatibility
   8526  1.1  christos 	# with the native linker.  However, as the warning in the GNU ld
   8527  1.1  christos 	# block says, versions before 2.19.5* couldn't really create working
   8528  1.1  christos 	# shared libraries, regardless of the interface used.
   8529  1.1  christos 	case `$LD -v 2>&1` in
   8530  1.1  christos 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8531  1.1  christos 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8532  1.1  christos 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8533  1.1  christos 	  *)
   8534  1.1  christos 	    lt_use_gnu_ld_interface=yes
   8535  1.1  christos 	    ;;
   8536  1.1  christos 	esac
   8537  1.1  christos 	;;
   8538  1.1  christos       *)
   8539  1.1  christos 	lt_use_gnu_ld_interface=yes
   8540  1.1  christos 	;;
   8541  1.1  christos     esac
   8542  1.1  christos   fi
   8543  1.1  christos 
   8544  1.1  christos   if test yes = "$lt_use_gnu_ld_interface"; then
   8545  1.1  christos     # If archive_cmds runs LD, not CC, wlarc should be empty
   8546  1.1  christos     wlarc='$wl'
   8547  1.1  christos 
   8548  1.1  christos     # Set some defaults for GNU ld with shared library support. These
   8549  1.1  christos     # are reset later if shared libraries are not supported. Putting them
   8550  1.1  christos     # here allows them to be overridden if necessary.
   8551  1.1  christos     runpath_var=LD_RUN_PATH
   8552  1.1  christos     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8553  1.1  christos     export_dynamic_flag_spec='$wl--export-dynamic'
   8554  1.1  christos     # ancient GNU ld didn't support --whole-archive et. al.
   8555  1.1  christos     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8556  1.1  christos       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8557  1.1  christos     else
   8558  1.1  christos       whole_archive_flag_spec=
   8559  1.1  christos     fi
   8560  1.1  christos     supports_anon_versioning=no
   8561  1.1  christos     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8562  1.1  christos       *GNU\ gold*) supports_anon_versioning=yes ;;
   8563  1.1  christos       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8564  1.1  christos       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8565  1.1  christos       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8566  1.1  christos       *\ 2.11.*) ;; # other 2.11 versions
   8567  1.1  christos       *) supports_anon_versioning=yes ;;
   8568  1.1  christos     esac
   8569  1.1  christos 
   8570  1.1  christos     # See if GNU ld supports shared libraries.
   8571  1.1  christos     case $host_os in
   8572  1.1  christos     aix[3-9]*)
   8573  1.1  christos       # On AIX/PPC, the GNU linker is very broken
   8574  1.1  christos       if test ia64 != "$host_cpu"; then
   8575  1.1  christos 	ld_shlibs=no
   8576  1.1  christos 	cat <<_LT_EOF 1>&2
   8577  1.1  christos 
   8578  1.1  christos *** Warning: the GNU linker, at least up to release 2.19, is reported
   8579  1.1  christos *** to be unable to reliably create shared libraries on AIX.
   8580  1.1  christos *** Therefore, libtool is disabling shared libraries support.  If you
   8581  1.1  christos *** really care for shared libraries, you may want to install binutils
   8582  1.1  christos *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8583  1.1  christos *** You will then need to restart the configuration process.
   8584  1.1  christos 
   8585  1.1  christos _LT_EOF
   8586  1.1  christos       fi
   8587  1.1  christos       ;;
   8588  1.1  christos 
   8589  1.1  christos     amigaos*)
   8590  1.1  christos       case $host_cpu in
   8591  1.1  christos       powerpc)
   8592  1.1  christos             # see comment about AmigaOS4 .so support
   8593  1.1  christos             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8594  1.1  christos             archive_expsym_cmds=''
   8595  1.1  christos         ;;
   8596  1.1  christos       m68k)
   8597  1.1  christos             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  1.1  christos             hardcode_libdir_flag_spec='-L$libdir'
   8599  1.1  christos             hardcode_minus_L=yes
   8600  1.1  christos         ;;
   8601  1.1  christos       esac
   8602  1.1  christos       ;;
   8603  1.1  christos 
   8604  1.1  christos     beos*)
   8605  1.1  christos       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8606  1.1  christos 	allow_undefined_flag=unsupported
   8607  1.1  christos 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8608  1.1  christos 	# support --undefined.  This deserves some investigation.  FIXME
   8609  1.1  christos 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8610  1.1  christos       else
   8611  1.1  christos 	ld_shlibs=no
   8612  1.1  christos       fi
   8613  1.1  christos       ;;
   8614  1.1  christos 
   8615  1.1  christos     cygwin* | mingw* | pw32* | cegcc*)
   8616  1.1  christos       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8617  1.1  christos       # as there is no search path for DLLs.
   8618  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   8619  1.1  christos       export_dynamic_flag_spec='$wl--export-all-symbols'
   8620  1.1  christos       allow_undefined_flag=unsupported
   8621  1.1  christos       always_export_symbols=no
   8622  1.1  christos       enable_shared_with_static_runtimes=yes
   8623  1.1  christos       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  1.1  christos       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8625  1.1  christos 
   8626  1.1  christos       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8627  1.1  christos         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8628  1.1  christos 	# If the export-symbols file already is a .def file, use it as
   8629  1.1  christos 	# is; otherwise, prepend EXPORTS...
   8630  1.1  christos 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   8631  1.1  christos           cp $export_symbols $output_objdir/$soname.def;
   8632  1.1  christos         else
   8633  1.1  christos           echo EXPORTS > $output_objdir/$soname.def;
   8634  1.1  christos           cat $export_symbols >> $output_objdir/$soname.def;
   8635  1.1  christos         fi~
   8636  1.1  christos         $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  1.1  christos       else
   8638  1.1  christos 	ld_shlibs=no
   8639  1.1  christos       fi
   8640  1.1  christos       ;;
   8641  1.1  christos 
   8642  1.1  christos     haiku*)
   8643  1.1  christos       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8644  1.1  christos       link_all_deplibs=yes
   8645  1.1  christos       ;;
   8646  1.1  christos 
   8647  1.1  christos     os2*)
   8648  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   8649  1.1  christos       hardcode_minus_L=yes
   8650  1.1  christos       allow_undefined_flag=unsupported
   8651  1.1  christos       shrext_cmds=.dll
   8652  1.1  christos       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8653  1.1  christos 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8654  1.1  christos 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8655  1.1  christos 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8656  1.1  christos 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   8657  1.1  christos 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8658  1.1  christos 	emximp -o $lib $output_objdir/$libname.def'
   8659  1.1  christos       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8660  1.1  christos 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8661  1.1  christos 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8662  1.1  christos 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8663  1.1  christos 	prefix_cmds="$SED"~
   8664  1.1  christos 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   8665  1.1  christos 	  prefix_cmds="$prefix_cmds -e 1d";
   8666  1.1  christos 	fi~
   8667  1.1  christos 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   8668  1.1  christos 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   8669  1.1  christos 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8670  1.1  christos 	emximp -o $lib $output_objdir/$libname.def'
   8671  1.1  christos       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   8672  1.1  christos       enable_shared_with_static_runtimes=yes
   8673  1.1  christos       ;;
   8674  1.1  christos 
   8675  1.1  christos     interix[3-9]*)
   8676  1.1  christos       hardcode_direct=no
   8677  1.1  christos       hardcode_shlibpath_var=no
   8678  1.1  christos       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   8679  1.1  christos       export_dynamic_flag_spec='$wl-E'
   8680  1.1  christos       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   8681  1.1  christos       # Instead, shared libraries are loaded at an image base (0x10000000 by
   8682  1.1  christos       # default) and relocated if they conflict, which is a slow very memory
   8683  1.1  christos       # consuming and fragmenting process.  To avoid this, we pick a random,
   8684  1.1  christos       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   8685  1.1  christos       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   8686  1.1  christos       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  1.1  christos       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  1.1  christos       ;;
   8689  1.1  christos 
   8690  1.1  christos     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   8691  1.1  christos       tmp_diet=no
   8692  1.1  christos       if test linux-dietlibc = "$host_os"; then
   8693  1.1  christos 	case $cc_basename in
   8694  1.1  christos 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   8695  1.1  christos 	esac
   8696  1.1  christos       fi
   8697  1.1  christos       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   8698  1.1  christos 	 && test no = "$tmp_diet"
   8699  1.1  christos       then
   8700  1.1  christos 	tmp_addflag=' $pic_flag'
   8701  1.1  christos 	tmp_sharedflag='-shared'
   8702  1.1  christos 	case $cc_basename,$host_cpu in
   8703  1.1  christos         pgcc*)				# Portland Group C compiler
   8704  1.1  christos 	  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  1.1  christos 	  tmp_addflag=' $pic_flag'
   8706  1.1  christos 	  ;;
   8707  1.1  christos 	pgf77* | pgf90* | pgf95* | pgfortran*)
   8708  1.1  christos 					# Portland Group f77 and f90 compilers
   8709  1.1  christos 	  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  1.1  christos 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   8711  1.1  christos 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   8712  1.1  christos 	  tmp_addflag=' -i_dynamic' ;;
   8713  1.1  christos 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   8714  1.1  christos 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   8715  1.1  christos 	ifc* | ifort*)			# Intel Fortran compiler
   8716  1.1  christos 	  tmp_addflag=' -nofor_main' ;;
   8717  1.1  christos 	lf95*)				# Lahey Fortran 8.1
   8718  1.1  christos 	  whole_archive_flag_spec=
   8719  1.1  christos 	  tmp_sharedflag='--shared' ;;
   8720  1.1  christos         nagfor*)                        # NAGFOR 5.3
   8721  1.1  christos           tmp_sharedflag='-Wl,-shared' ;;
   8722  1.1  christos 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   8723  1.1  christos 	  tmp_sharedflag='-qmkshrobj'
   8724  1.1  christos 	  tmp_addflag= ;;
   8725  1.1  christos 	nvcc*)	# Cuda Compiler Driver 2.2
   8726  1.1  christos 	  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  1.1  christos 	  compiler_needs_object=yes
   8728  1.1  christos 	  ;;
   8729  1.1  christos 	esac
   8730  1.1  christos 	case `$CC -V 2>&1 | sed 5q` in
   8731  1.1  christos 	*Sun\ C*)			# Sun C 5.9
   8732  1.1  christos 	  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  1.1  christos 	  compiler_needs_object=yes
   8734  1.1  christos 	  tmp_sharedflag='-G' ;;
   8735  1.1  christos 	*Sun\ F*)			# Sun Fortran 8.3
   8736  1.1  christos 	  tmp_sharedflag='-G' ;;
   8737  1.1  christos 	esac
   8738  1.1  christos 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8739  1.1  christos 
   8740  1.1  christos         if test yes = "$supports_anon_versioning"; then
   8741  1.1  christos           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8742  1.1  christos             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8743  1.1  christos             echo "local: *; };" >> $output_objdir/$libname.ver~
   8744  1.1  christos             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   8745  1.1  christos         fi
   8746  1.1  christos 
   8747  1.1  christos 	case $cc_basename in
   8748  1.1  christos 	tcc*)
   8749  1.1  christos 	  export_dynamic_flag_spec='-rdynamic'
   8750  1.1  christos 	  ;;
   8751  1.1  christos 	xlf* | bgf* | bgxlf* | mpixlf*)
   8752  1.1  christos 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   8753  1.1  christos 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   8754  1.1  christos 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8755  1.1  christos 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   8756  1.1  christos 	  if test yes = "$supports_anon_versioning"; then
   8757  1.1  christos 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8758  1.1  christos               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8759  1.1  christos               echo "local: *; };" >> $output_objdir/$libname.ver~
   8760  1.1  christos               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   8761  1.1  christos 	  fi
   8762  1.1  christos 	  ;;
   8763  1.1  christos 	esac
   8764  1.1  christos       else
   8765  1.1  christos         ld_shlibs=no
   8766  1.1  christos       fi
   8767  1.1  christos       ;;
   8768  1.1  christos 
   8769  1.1  christos     netbsd*)
   8770  1.1  christos       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   8771  1.1  christos 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   8772  1.1  christos 	wlarc=
   8773  1.1  christos       else
   8774  1.1  christos 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8775  1.1  christos 	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  1.1  christos       fi
   8777  1.1  christos       ;;
   8778  1.1  christos 
   8779  1.1  christos     solaris*)
   8780  1.1  christos       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   8781  1.1  christos 	ld_shlibs=no
   8782  1.1  christos 	cat <<_LT_EOF 1>&2
   8783  1.1  christos 
   8784  1.1  christos *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   8785  1.1  christos *** create shared libraries on Solaris systems.  Therefore, libtool
   8786  1.1  christos *** is disabling shared libraries support.  We urge you to upgrade GNU
   8787  1.1  christos *** binutils to release 2.9.1 or newer.  Another option is to modify
   8788  1.1  christos *** your PATH or compiler configuration so that the native linker is
   8789  1.1  christos *** used, and then restart.
   8790  1.1  christos 
   8791  1.1  christos _LT_EOF
   8792  1.1  christos       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8793  1.1  christos 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8794  1.1  christos 	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  1.1  christos       else
   8796  1.1  christos 	ld_shlibs=no
   8797  1.1  christos       fi
   8798  1.1  christos       ;;
   8799  1.1  christos 
   8800  1.1  christos     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   8801  1.1  christos       case `$LD -v 2>&1` in
   8802  1.1  christos         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   8803  1.1  christos 	ld_shlibs=no
   8804  1.1  christos 	cat <<_LT_EOF 1>&2
   8805  1.1  christos 
   8806  1.1  christos *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   8807  1.1  christos *** reliably create shared libraries on SCO systems.  Therefore, libtool
   8808  1.1  christos *** is disabling shared libraries support.  We urge you to upgrade GNU
   8809  1.1  christos *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   8810  1.1  christos *** your PATH or compiler configuration so that the native linker is
   8811  1.1  christos *** used, and then restart.
   8812  1.1  christos 
   8813  1.1  christos _LT_EOF
   8814  1.1  christos 	;;
   8815  1.1  christos 	*)
   8816  1.1  christos 	  # For security reasons, it is highly recommended that you always
   8817  1.1  christos 	  # use absolute paths for naming shared libraries, and exclude the
   8818  1.1  christos 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   8819  1.1  christos 	  # requires that you compile everything twice, which is a pain.
   8820  1.1  christos 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8821  1.1  christos 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8822  1.1  christos 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8823  1.1  christos 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8824  1.1  christos 	  else
   8825  1.1  christos 	    ld_shlibs=no
   8826  1.1  christos 	  fi
   8827  1.1  christos 	;;
   8828  1.1  christos       esac
   8829  1.1  christos       ;;
   8830  1.1  christos 
   8831  1.1  christos     sunos4*)
   8832  1.1  christos       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8833  1.1  christos       wlarc=
   8834  1.1  christos       hardcode_direct=yes
   8835  1.1  christos       hardcode_shlibpath_var=no
   8836  1.1  christos       ;;
   8837  1.1  christos 
   8838  1.1  christos     *)
   8839  1.1  christos       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8840  1.1  christos 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8841  1.1  christos 	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  1.1  christos       else
   8843  1.1  christos 	ld_shlibs=no
   8844  1.1  christos       fi
   8845  1.1  christos       ;;
   8846  1.1  christos     esac
   8847  1.1  christos 
   8848  1.1  christos     if test no = "$ld_shlibs"; then
   8849  1.1  christos       runpath_var=
   8850  1.1  christos       hardcode_libdir_flag_spec=
   8851  1.1  christos       export_dynamic_flag_spec=
   8852  1.1  christos       whole_archive_flag_spec=
   8853  1.1  christos     fi
   8854  1.1  christos   else
   8855  1.1  christos     # PORTME fill in a description of your system's linker (not GNU ld)
   8856  1.1  christos     case $host_os in
   8857  1.1  christos     aix3*)
   8858  1.1  christos       allow_undefined_flag=unsupported
   8859  1.1  christos       always_export_symbols=yes
   8860  1.1  christos       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  1.1  christos       # Note: this linker hardcodes the directories in LIBPATH if there
   8862  1.1  christos       # are no directories specified by -L.
   8863  1.1  christos       hardcode_minus_L=yes
   8864  1.1  christos       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   8865  1.1  christos 	# Neither direct hardcoding nor static linking is supported with a
   8866  1.1  christos 	# broken collect2.
   8867  1.1  christos 	hardcode_direct=unsupported
   8868  1.1  christos       fi
   8869  1.1  christos       ;;
   8870  1.1  christos 
   8871  1.1  christos     aix[4-9]*)
   8872  1.1  christos       if test ia64 = "$host_cpu"; then
   8873  1.1  christos 	# On IA64, the linker does run time linking by default, so we don't
   8874  1.1  christos 	# have to do anything special.
   8875  1.1  christos 	aix_use_runtimelinking=no
   8876  1.1  christos 	exp_sym_flag='-Bexport'
   8877  1.1  christos 	no_entry_flag=
   8878  1.1  christos       else
   8879  1.1  christos 	# If we're using GNU nm, then we don't want the "-C" option.
   8880  1.1  christos 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   8881  1.1  christos 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   8882  1.1  christos 	# weak defined symbols like other global defined symbols, whereas
   8883  1.1  christos 	# GNU nm marks them as "W".
   8884  1.1  christos 	# While the 'weak' keyword is ignored in the Export File, we need
   8885  1.1  christos 	# it in the Import File for the 'aix-soname' feature, so we have
   8886  1.1  christos 	# to replace the "-B" option with "-P" for AIX nm.
   8887  1.1  christos 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   8888  1.1  christos 	  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  1.1  christos 	else
   8890  1.1  christos 	  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  1.1  christos 	fi
   8892  1.1  christos 	aix_use_runtimelinking=no
   8893  1.1  christos 
   8894  1.1  christos 	# Test if we are trying to use run time linking or normal
   8895  1.1  christos 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   8896  1.1  christos 	# have runtime linking enabled, and use it for executables.
   8897  1.1  christos 	# For shared libraries, we enable/disable runtime linking
   8898  1.1  christos 	# depending on the kind of the shared library created -
   8899  1.1  christos 	# when "with_aix_soname,aix_use_runtimelinking" is:
   8900  1.1  christos 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   8901  1.1  christos 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   8902  1.1  christos 	#            lib.a           static archive
   8903  1.1  christos 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   8904  1.1  christos 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   8905  1.1  christos 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   8906  1.1  christos 	#            lib.a(lib.so.V) shared, rtl:no
   8907  1.1  christos 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   8908  1.1  christos 	#            lib.a           static archive
   8909  1.1  christos 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   8910  1.1  christos 	  for ld_flag in $LDFLAGS; do
   8911  1.1  christos 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   8912  1.1  christos 	    aix_use_runtimelinking=yes
   8913  1.1  christos 	    break
   8914  1.1  christos 	  fi
   8915  1.1  christos 	  done
   8916  1.1  christos 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   8917  1.1  christos 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   8918  1.1  christos 	    # so we don't have lib.a shared libs to link our executables.
   8919  1.1  christos 	    # We have to force runtime linking in this case.
   8920  1.1  christos 	    aix_use_runtimelinking=yes
   8921  1.1  christos 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   8922  1.1  christos 	  fi
   8923  1.1  christos 	  ;;
   8924  1.1  christos 	esac
   8925  1.1  christos 
   8926  1.1  christos 	exp_sym_flag='-bexport'
   8927  1.1  christos 	no_entry_flag='-bnoentry'
   8928  1.1  christos       fi
   8929  1.1  christos 
   8930  1.1  christos       # When large executables or shared objects are built, AIX ld can
   8931  1.1  christos       # have problems creating the table of contents.  If linking a library
   8932  1.1  christos       # or program results in "error TOC overflow" add -mminimal-toc to
   8933  1.1  christos       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   8934  1.1  christos       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   8935  1.1  christos 
   8936  1.1  christos       archive_cmds=''
   8937  1.1  christos       hardcode_direct=yes
   8938  1.1  christos       hardcode_direct_absolute=yes
   8939  1.1  christos       hardcode_libdir_separator=':'
   8940  1.1  christos       link_all_deplibs=yes
   8941  1.1  christos       file_list_spec='$wl-f,'
   8942  1.1  christos       case $with_aix_soname,$aix_use_runtimelinking in
   8943  1.1  christos       aix,*) ;; # traditional, no import file
   8944  1.1  christos       svr4,* | *,yes) # use import file
   8945  1.1  christos 	# The Import File defines what to hardcode.
   8946  1.1  christos 	hardcode_direct=no
   8947  1.1  christos 	hardcode_direct_absolute=no
   8948  1.1  christos 	;;
   8949  1.1  christos       esac
   8950  1.1  christos 
   8951  1.1  christos       if test yes = "$GCC"; then
   8952  1.1  christos 	case $host_os in aix4.[012]|aix4.[012].*)
   8953  1.1  christos 	# We only want to do this on AIX 4.2 and lower, the check
   8954  1.1  christos 	# below for broken collect2 doesn't work under 4.3+
   8955  1.1  christos 	  collect2name=`$CC -print-prog-name=collect2`
   8956  1.1  christos 	  if test -f "$collect2name" &&
   8957  1.1  christos 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   8958  1.1  christos 	  then
   8959  1.1  christos 	  # We have reworked collect2
   8960  1.1  christos 	  :
   8961  1.1  christos 	  else
   8962  1.1  christos 	  # We have old collect2
   8963  1.1  christos 	  hardcode_direct=unsupported
   8964  1.1  christos 	  # It fails to find uninstalled libraries when the uninstalled
   8965  1.1  christos 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   8966  1.1  christos 	  # to unsupported forces relinking
   8967  1.1  christos 	  hardcode_minus_L=yes
   8968  1.1  christos 	  hardcode_libdir_flag_spec='-L$libdir'
   8969  1.1  christos 	  hardcode_libdir_separator=
   8970  1.1  christos 	  fi
   8971  1.1  christos 	  ;;
   8972  1.1  christos 	esac
   8973  1.1  christos 	shared_flag='-shared'
   8974  1.1  christos 	if test yes = "$aix_use_runtimelinking"; then
   8975  1.1  christos 	  shared_flag="$shared_flag "'$wl-G'
   8976  1.1  christos 	fi
   8977  1.1  christos 	# Need to ensure runtime linking is disabled for the traditional
   8978  1.1  christos 	# shared library, or the linker may eventually find shared libraries
   8979  1.1  christos 	# /with/ Import File - we do not want to mix them.
   8980  1.1  christos 	shared_flag_aix='-shared'
   8981  1.1  christos 	shared_flag_svr4='-shared $wl-G'
   8982  1.1  christos       else
   8983  1.1  christos 	# not using gcc
   8984  1.1  christos 	if test ia64 = "$host_cpu"; then
   8985  1.1  christos 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   8986  1.1  christos 	# chokes on -Wl,-G. The following line is correct:
   8987  1.1  christos 	  shared_flag='-G'
   8988  1.1  christos 	else
   8989  1.1  christos 	  if test yes = "$aix_use_runtimelinking"; then
   8990  1.1  christos 	    shared_flag='$wl-G'
   8991  1.1  christos 	  else
   8992  1.1  christos 	    shared_flag='$wl-bM:SRE'
   8993  1.1  christos 	  fi
   8994  1.1  christos 	  shared_flag_aix='$wl-bM:SRE'
   8995  1.1  christos 	  shared_flag_svr4='$wl-G'
   8996  1.1  christos 	fi
   8997  1.1  christos       fi
   8998  1.1  christos 
   8999  1.1  christos       export_dynamic_flag_spec='$wl-bexpall'
   9000  1.1  christos       # It seems that -bexpall does not export symbols beginning with
   9001  1.1  christos       # underscore (_), so it is better to generate a list of symbols to export.
   9002  1.1  christos       always_export_symbols=yes
   9003  1.1  christos       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   9004  1.1  christos 	# Warning - without using the other runtime loading flags (-brtl),
   9005  1.1  christos 	# -berok will link without error, but may produce a broken library.
   9006  1.1  christos 	allow_undefined_flag='-berok'
   9007  1.1  christos         # Determine the default libpath from the value encoded in an
   9008  1.1  christos         # empty executable.
   9009  1.1  christos         if test set = "${lt_cv_aix_libpath+set}"; then
   9010  1.1  christos   aix_libpath=$lt_cv_aix_libpath
   9011  1.1  christos else
   9012  1.1  christos   if ${lt_cv_aix_libpath_+:} false; then :
   9013  1.1  christos   $as_echo_n "(cached) " >&6
   9014  1.1  christos else
   9015  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9016  1.1  christos /* end confdefs.h.  */
   9017  1.1  christos 
   9018  1.1  christos int
   9019  1.1  christos main ()
   9020  1.1  christos {
   9021  1.1  christos 
   9022  1.1  christos   ;
   9023  1.1  christos   return 0;
   9024  1.1  christos }
   9025  1.1  christos _ACEOF
   9026  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   9027  1.1  christos 
   9028  1.1  christos   lt_aix_libpath_sed='
   9029  1.1  christos       /Import File Strings/,/^$/ {
   9030  1.1  christos 	  /^0/ {
   9031  1.1  christos 	      s/^0  *\([^ ]*\) *$/\1/
   9032  1.1  christos 	      p
   9033  1.1  christos 	  }
   9034  1.1  christos       }'
   9035  1.1  christos   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9036  1.1  christos   # Check for a 64-bit object if we didn't find anything.
   9037  1.1  christos   if test -z "$lt_cv_aix_libpath_"; then
   9038  1.1  christos     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9039  1.1  christos   fi
   9040  1.1  christos fi
   9041  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   9042  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   9043  1.1  christos   if test -z "$lt_cv_aix_libpath_"; then
   9044  1.1  christos     lt_cv_aix_libpath_=/usr/lib:/lib
   9045  1.1  christos   fi
   9046  1.1  christos 
   9047  1.1  christos fi
   9048  1.1  christos 
   9049  1.1  christos   aix_libpath=$lt_cv_aix_libpath_
   9050  1.1  christos fi
   9051  1.1  christos 
   9052  1.1  christos         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9053  1.1  christos         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  1.1  christos       else
   9055  1.1  christos 	if test ia64 = "$host_cpu"; then
   9056  1.1  christos 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9057  1.1  christos 	  allow_undefined_flag="-z nodefs"
   9058  1.1  christos 	  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  1.1  christos 	else
   9060  1.1  christos 	 # Determine the default libpath from the value encoded in an
   9061  1.1  christos 	 # empty executable.
   9062  1.1  christos 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9063  1.1  christos   aix_libpath=$lt_cv_aix_libpath
   9064  1.1  christos else
   9065  1.1  christos   if ${lt_cv_aix_libpath_+:} false; then :
   9066  1.1  christos   $as_echo_n "(cached) " >&6
   9067  1.1  christos else
   9068  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9069  1.1  christos /* end confdefs.h.  */
   9070  1.1  christos 
   9071  1.1  christos int
   9072  1.1  christos main ()
   9073  1.1  christos {
   9074  1.1  christos 
   9075  1.1  christos   ;
   9076  1.1  christos   return 0;
   9077  1.1  christos }
   9078  1.1  christos _ACEOF
   9079  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   9080  1.1  christos 
   9081  1.1  christos   lt_aix_libpath_sed='
   9082  1.1  christos       /Import File Strings/,/^$/ {
   9083  1.1  christos 	  /^0/ {
   9084  1.1  christos 	      s/^0  *\([^ ]*\) *$/\1/
   9085  1.1  christos 	      p
   9086  1.1  christos 	  }
   9087  1.1  christos       }'
   9088  1.1  christos   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9089  1.1  christos   # Check for a 64-bit object if we didn't find anything.
   9090  1.1  christos   if test -z "$lt_cv_aix_libpath_"; then
   9091  1.1  christos     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9092  1.1  christos   fi
   9093  1.1  christos fi
   9094  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   9095  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   9096  1.1  christos   if test -z "$lt_cv_aix_libpath_"; then
   9097  1.1  christos     lt_cv_aix_libpath_=/usr/lib:/lib
   9098  1.1  christos   fi
   9099  1.1  christos 
   9100  1.1  christos fi
   9101  1.1  christos 
   9102  1.1  christos   aix_libpath=$lt_cv_aix_libpath_
   9103  1.1  christos fi
   9104  1.1  christos 
   9105  1.1  christos 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9106  1.1  christos 	  # Warning - without using the other run time loading flags,
   9107  1.1  christos 	  # -berok will link without error, but may produce a broken library.
   9108  1.1  christos 	  no_undefined_flag=' $wl-bernotok'
   9109  1.1  christos 	  allow_undefined_flag=' $wl-berok'
   9110  1.1  christos 	  if test yes = "$with_gnu_ld"; then
   9111  1.1  christos 	    # We only use this code for GNU lds that support --whole-archive.
   9112  1.1  christos 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9113  1.1  christos 	  else
   9114  1.1  christos 	    # Exported symbols can be pulled into shared objects from archives
   9115  1.1  christos 	    whole_archive_flag_spec='$convenience'
   9116  1.1  christos 	  fi
   9117  1.1  christos 	  archive_cmds_need_lc=yes
   9118  1.1  christos 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9119  1.1  christos 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9120  1.1  christos 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9121  1.1  christos 	  if test svr4 != "$with_aix_soname"; then
   9122  1.1  christos 	    # This is similar to how AIX traditionally builds its shared libraries.
   9123  1.1  christos 	    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  1.1  christos 	  fi
   9125  1.1  christos 	  if test aix != "$with_aix_soname"; then
   9126  1.1  christos 	    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  1.1  christos 	  else
   9128  1.1  christos 	    # used by -dlpreopen to get the symbols
   9129  1.1  christos 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9130  1.1  christos 	  fi
   9131  1.1  christos 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9132  1.1  christos 	fi
   9133  1.1  christos       fi
   9134  1.1  christos       ;;
   9135  1.1  christos 
   9136  1.1  christos     amigaos*)
   9137  1.1  christos       case $host_cpu in
   9138  1.1  christos       powerpc)
   9139  1.1  christos             # see comment about AmigaOS4 .so support
   9140  1.1  christos             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9141  1.1  christos             archive_expsym_cmds=''
   9142  1.1  christos         ;;
   9143  1.1  christos       m68k)
   9144  1.1  christos             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  1.1  christos             hardcode_libdir_flag_spec='-L$libdir'
   9146  1.1  christos             hardcode_minus_L=yes
   9147  1.1  christos         ;;
   9148  1.1  christos       esac
   9149  1.1  christos       ;;
   9150  1.1  christos 
   9151  1.1  christos     bsdi[45]*)
   9152  1.1  christos       export_dynamic_flag_spec=-rdynamic
   9153  1.1  christos       ;;
   9154  1.1  christos 
   9155  1.1  christos     cygwin* | mingw* | pw32* | cegcc*)
   9156  1.1  christos       # When not using gcc, we currently assume that we are using
   9157  1.1  christos       # Microsoft Visual C++.
   9158  1.1  christos       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9159  1.1  christos       # no search path for DLLs.
   9160  1.1  christos       case $cc_basename in
   9161  1.1  christos       cl*)
   9162  1.1  christos 	# Native MSVC
   9163  1.1  christos 	hardcode_libdir_flag_spec=' '
   9164  1.1  christos 	allow_undefined_flag=unsupported
   9165  1.1  christos 	always_export_symbols=yes
   9166  1.1  christos 	file_list_spec='@'
   9167  1.1  christos 	# Tell ltmain to make .lib files, not .a files.
   9168  1.1  christos 	libext=lib
   9169  1.1  christos 	# Tell ltmain to make .dll files, not .so files.
   9170  1.1  christos 	shrext_cmds=.dll
   9171  1.1  christos 	# FIXME: Setting linknames here is a bad hack.
   9172  1.1  christos 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9173  1.1  christos 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9174  1.1  christos             cp "$export_symbols" "$output_objdir/$soname.def";
   9175  1.1  christos             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9176  1.1  christos           else
   9177  1.1  christos             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9178  1.1  christos           fi~
   9179  1.1  christos           $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  1.1  christos           linknames='
   9181  1.1  christos 	# The linker will not automatically build a static lib if we build a DLL.
   9182  1.1  christos 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9183  1.1  christos 	enable_shared_with_static_runtimes=yes
   9184  1.1  christos 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9185  1.1  christos 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9186  1.1  christos 	# Don't use ranlib
   9187  1.1  christos 	old_postinstall_cmds='chmod 644 $oldlib'
   9188  1.1  christos 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9189  1.1  christos           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9190  1.1  christos           case $lt_outputfile in
   9191  1.1  christos             *.exe|*.EXE) ;;
   9192  1.1  christos             *)
   9193  1.1  christos               lt_outputfile=$lt_outputfile.exe
   9194  1.1  christos               lt_tool_outputfile=$lt_tool_outputfile.exe
   9195  1.1  christos               ;;
   9196  1.1  christos           esac~
   9197  1.1  christos           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9198  1.1  christos             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9199  1.1  christos             $RM "$lt_outputfile.manifest";
   9200  1.1  christos           fi'
   9201  1.1  christos 	;;
   9202  1.1  christos       *)
   9203  1.1  christos 	# Assume MSVC wrapper
   9204  1.1  christos 	hardcode_libdir_flag_spec=' '
   9205  1.1  christos 	allow_undefined_flag=unsupported
   9206  1.1  christos 	# Tell ltmain to make .lib files, not .a files.
   9207  1.1  christos 	libext=lib
   9208  1.1  christos 	# Tell ltmain to make .dll files, not .so files.
   9209  1.1  christos 	shrext_cmds=.dll
   9210  1.1  christos 	# FIXME: Setting linknames here is a bad hack.
   9211  1.1  christos 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9212  1.1  christos 	# The linker will automatically build a .lib file if we build a DLL.
   9213  1.1  christos 	old_archive_from_new_cmds='true'
   9214  1.1  christos 	# FIXME: Should let the user specify the lib program.
   9215  1.1  christos 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9216  1.1  christos 	enable_shared_with_static_runtimes=yes
   9217  1.1  christos 	;;
   9218  1.1  christos       esac
   9219  1.1  christos       ;;
   9220  1.1  christos 
   9221  1.1  christos     darwin* | rhapsody*)
   9222  1.1  christos 
   9223  1.1  christos 
   9224  1.1  christos   archive_cmds_need_lc=no
   9225  1.1  christos   hardcode_direct=no
   9226  1.1  christos   hardcode_automatic=yes
   9227  1.1  christos   hardcode_shlibpath_var=unsupported
   9228  1.1  christos   if test yes = "$lt_cv_ld_force_load"; then
   9229  1.1  christos     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  1.1  christos 
   9231  1.1  christos   else
   9232  1.1  christos     whole_archive_flag_spec=''
   9233  1.1  christos   fi
   9234  1.1  christos   link_all_deplibs=yes
   9235  1.1  christos   allow_undefined_flag=$_lt_dar_allow_undefined
   9236  1.1  christos   case $cc_basename in
   9237  1.1  christos      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9238  1.1  christos      *) _lt_dar_can_shared=$GCC ;;
   9239  1.1  christos   esac
   9240  1.1  christos   if test yes = "$_lt_dar_can_shared"; then
   9241  1.1  christos     output_verbose_link_cmd=func_echo_all
   9242  1.1  christos     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  1.1  christos     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9244  1.1  christos     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  1.1  christos     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  1.1  christos 
   9247  1.1  christos   else
   9248  1.1  christos   ld_shlibs=no
   9249  1.1  christos   fi
   9250  1.1  christos 
   9251  1.1  christos       ;;
   9252  1.1  christos 
   9253  1.1  christos     dgux*)
   9254  1.1  christos       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9255  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   9256  1.1  christos       hardcode_shlibpath_var=no
   9257  1.1  christos       ;;
   9258  1.1  christos 
   9259  1.1  christos     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9260  1.1  christos     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9261  1.1  christos     # does not break anything, and helps significantly (at the cost of a little
   9262  1.1  christos     # extra space).
   9263  1.1  christos     freebsd2.2*)
   9264  1.1  christos       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9265  1.1  christos       hardcode_libdir_flag_spec='-R$libdir'
   9266  1.1  christos       hardcode_direct=yes
   9267  1.1  christos       hardcode_shlibpath_var=no
   9268  1.1  christos       ;;
   9269  1.1  christos 
   9270  1.1  christos     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9271  1.1  christos     freebsd2.*)
   9272  1.1  christos       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9273  1.1  christos       hardcode_direct=yes
   9274  1.1  christos       hardcode_minus_L=yes
   9275  1.1  christos       hardcode_shlibpath_var=no
   9276  1.1  christos       ;;
   9277  1.1  christos 
   9278  1.1  christos     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9279  1.1  christos     freebsd* | dragonfly*)
   9280  1.1  christos       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9281  1.1  christos       hardcode_libdir_flag_spec='-R$libdir'
   9282  1.1  christos       hardcode_direct=yes
   9283  1.1  christos       hardcode_shlibpath_var=no
   9284  1.1  christos       ;;
   9285  1.1  christos 
   9286  1.1  christos     hpux9*)
   9287  1.1  christos       if test yes = "$GCC"; then
   9288  1.1  christos 	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  1.1  christos       else
   9290  1.1  christos 	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  1.1  christos       fi
   9292  1.1  christos       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9293  1.1  christos       hardcode_libdir_separator=:
   9294  1.1  christos       hardcode_direct=yes
   9295  1.1  christos 
   9296  1.1  christos       # hardcode_minus_L: Not really in the search PATH,
   9297  1.1  christos       # but as the default location of the library.
   9298  1.1  christos       hardcode_minus_L=yes
   9299  1.1  christos       export_dynamic_flag_spec='$wl-E'
   9300  1.1  christos       ;;
   9301  1.1  christos 
   9302  1.1  christos     hpux10*)
   9303  1.1  christos       if test yes,no = "$GCC,$with_gnu_ld"; then
   9304  1.1  christos 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9305  1.1  christos       else
   9306  1.1  christos 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9307  1.1  christos       fi
   9308  1.1  christos       if test no = "$with_gnu_ld"; then
   9309  1.1  christos 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9310  1.1  christos 	hardcode_libdir_separator=:
   9311  1.1  christos 	hardcode_direct=yes
   9312  1.1  christos 	hardcode_direct_absolute=yes
   9313  1.1  christos 	export_dynamic_flag_spec='$wl-E'
   9314  1.1  christos 	# hardcode_minus_L: Not really in the search PATH,
   9315  1.1  christos 	# but as the default location of the library.
   9316  1.1  christos 	hardcode_minus_L=yes
   9317  1.1  christos       fi
   9318  1.1  christos       ;;
   9319  1.1  christos 
   9320  1.1  christos     hpux11*)
   9321  1.1  christos       if test yes,no = "$GCC,$with_gnu_ld"; then
   9322  1.1  christos 	case $host_cpu in
   9323  1.1  christos 	hppa*64*)
   9324  1.1  christos 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9325  1.1  christos 	  ;;
   9326  1.1  christos 	ia64*)
   9327  1.1  christos 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9328  1.1  christos 	  ;;
   9329  1.1  christos 	*)
   9330  1.1  christos 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9331  1.1  christos 	  ;;
   9332  1.1  christos 	esac
   9333  1.1  christos       else
   9334  1.1  christos 	case $host_cpu in
   9335  1.1  christos 	hppa*64*)
   9336  1.1  christos 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9337  1.1  christos 	  ;;
   9338  1.1  christos 	ia64*)
   9339  1.1  christos 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9340  1.1  christos 	  ;;
   9341  1.1  christos 	*)
   9342  1.1  christos 
   9343  1.1  christos 	  # Older versions of the 11.00 compiler do not understand -b yet
   9344  1.1  christos 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9345  1.1  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9346  1.1  christos $as_echo_n "checking if $CC understands -b... " >&6; }
   9347  1.1  christos if ${lt_cv_prog_compiler__b+:} false; then :
   9348  1.1  christos   $as_echo_n "(cached) " >&6
   9349  1.1  christos else
   9350  1.1  christos   lt_cv_prog_compiler__b=no
   9351  1.1  christos    save_LDFLAGS=$LDFLAGS
   9352  1.1  christos    LDFLAGS="$LDFLAGS -b"
   9353  1.1  christos    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9354  1.1  christos    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9355  1.1  christos      # The linker can only warn and ignore the option if not recognized
   9356  1.1  christos      # So say no if there are warnings
   9357  1.1  christos      if test -s conftest.err; then
   9358  1.1  christos        # Append any errors to the config.log.
   9359  1.1  christos        cat conftest.err 1>&5
   9360  1.1  christos        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9361  1.1  christos        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9362  1.1  christos        if diff conftest.exp conftest.er2 >/dev/null; then
   9363  1.1  christos          lt_cv_prog_compiler__b=yes
   9364  1.1  christos        fi
   9365  1.1  christos      else
   9366  1.1  christos        lt_cv_prog_compiler__b=yes
   9367  1.1  christos      fi
   9368  1.1  christos    fi
   9369  1.1  christos    $RM -r conftest*
   9370  1.1  christos    LDFLAGS=$save_LDFLAGS
   9371  1.1  christos 
   9372  1.1  christos fi
   9373  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9374  1.1  christos $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9375  1.1  christos 
   9376  1.1  christos if test yes = "$lt_cv_prog_compiler__b"; then
   9377  1.1  christos     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9378  1.1  christos else
   9379  1.1  christos     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9380  1.1  christos fi
   9381  1.1  christos 
   9382  1.1  christos 	  ;;
   9383  1.1  christos 	esac
   9384  1.1  christos       fi
   9385  1.1  christos       if test no = "$with_gnu_ld"; then
   9386  1.1  christos 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9387  1.1  christos 	hardcode_libdir_separator=:
   9388  1.1  christos 
   9389  1.1  christos 	case $host_cpu in
   9390  1.1  christos 	hppa*64*|ia64*)
   9391  1.1  christos 	  hardcode_direct=no
   9392  1.1  christos 	  hardcode_shlibpath_var=no
   9393  1.1  christos 	  ;;
   9394  1.1  christos 	*)
   9395  1.1  christos 	  hardcode_direct=yes
   9396  1.1  christos 	  hardcode_direct_absolute=yes
   9397  1.1  christos 	  export_dynamic_flag_spec='$wl-E'
   9398  1.1  christos 
   9399  1.1  christos 	  # hardcode_minus_L: Not really in the search PATH,
   9400  1.1  christos 	  # but as the default location of the library.
   9401  1.1  christos 	  hardcode_minus_L=yes
   9402  1.1  christos 	  ;;
   9403  1.1  christos 	esac
   9404  1.1  christos       fi
   9405  1.1  christos       ;;
   9406  1.1  christos 
   9407  1.1  christos     irix5* | irix6* | nonstopux*)
   9408  1.1  christos       if test yes = "$GCC"; then
   9409  1.1  christos 	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  1.1  christos 	# Try to use the -exported_symbol ld option, if it does not
   9411  1.1  christos 	# work, assume that -exports_file does not work either and
   9412  1.1  christos 	# implicitly export all symbols.
   9413  1.1  christos 	# This should be the same for all languages, so no per-tag cache variable.
   9414  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9415  1.1  christos $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9416  1.1  christos if ${lt_cv_irix_exported_symbol+:} false; then :
   9417  1.1  christos   $as_echo_n "(cached) " >&6
   9418  1.1  christos else
   9419  1.1  christos   save_LDFLAGS=$LDFLAGS
   9420  1.1  christos 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9421  1.1  christos 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9422  1.1  christos /* end confdefs.h.  */
   9423  1.1  christos int foo (void) { return 0; }
   9424  1.1  christos _ACEOF
   9425  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   9426  1.1  christos   lt_cv_irix_exported_symbol=yes
   9427  1.1  christos else
   9428  1.1  christos   lt_cv_irix_exported_symbol=no
   9429  1.1  christos fi
   9430  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   9431  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   9432  1.1  christos            LDFLAGS=$save_LDFLAGS
   9433  1.1  christos fi
   9434  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9435  1.1  christos $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9436  1.1  christos 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9437  1.1  christos           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  1.1  christos 	fi
   9439  1.1  christos       else
   9440  1.1  christos 	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  1.1  christos 	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  1.1  christos       fi
   9443  1.1  christos       archive_cmds_need_lc='no'
   9444  1.1  christos       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9445  1.1  christos       hardcode_libdir_separator=:
   9446  1.1  christos       inherit_rpath=yes
   9447  1.1  christos       link_all_deplibs=yes
   9448  1.1  christos       ;;
   9449  1.1  christos 
   9450  1.1  christos     linux*)
   9451  1.1  christos       case $cc_basename in
   9452  1.1  christos       tcc*)
   9453  1.1  christos 	# Fabrice Bellard et al's Tiny C Compiler
   9454  1.1  christos 	ld_shlibs=yes
   9455  1.1  christos 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9456  1.1  christos 	;;
   9457  1.1  christos       esac
   9458  1.1  christos       ;;
   9459  1.1  christos 
   9460  1.1  christos     netbsd*)
   9461  1.1  christos       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9462  1.1  christos 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9463  1.1  christos       else
   9464  1.1  christos 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9465  1.1  christos       fi
   9466  1.1  christos       hardcode_libdir_flag_spec='-R$libdir'
   9467  1.1  christos       hardcode_direct=yes
   9468  1.1  christos       hardcode_shlibpath_var=no
   9469  1.1  christos       ;;
   9470  1.1  christos 
   9471  1.1  christos     newsos6)
   9472  1.1  christos       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9473  1.1  christos       hardcode_direct=yes
   9474  1.1  christos       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9475  1.1  christos       hardcode_libdir_separator=:
   9476  1.1  christos       hardcode_shlibpath_var=no
   9477  1.1  christos       ;;
   9478  1.1  christos 
   9479  1.1  christos     *nto* | *qnx*)
   9480  1.1  christos       ;;
   9481  1.1  christos 
   9482  1.1  christos     openbsd* | bitrig*)
   9483  1.1  christos       if test -f /usr/libexec/ld.so; then
   9484  1.1  christos 	hardcode_direct=yes
   9485  1.1  christos 	hardcode_shlibpath_var=no
   9486  1.1  christos 	hardcode_direct_absolute=yes
   9487  1.1  christos 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9488  1.1  christos 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9489  1.1  christos 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9490  1.1  christos 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9491  1.1  christos 	  export_dynamic_flag_spec='$wl-E'
   9492  1.1  christos 	else
   9493  1.1  christos 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9494  1.1  christos 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9495  1.1  christos 	fi
   9496  1.1  christos       else
   9497  1.1  christos 	ld_shlibs=no
   9498  1.1  christos       fi
   9499  1.1  christos       ;;
   9500  1.1  christos 
   9501  1.1  christos     os2*)
   9502  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   9503  1.1  christos       hardcode_minus_L=yes
   9504  1.1  christos       allow_undefined_flag=unsupported
   9505  1.1  christos       shrext_cmds=.dll
   9506  1.1  christos       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9507  1.1  christos 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9508  1.1  christos 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9509  1.1  christos 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9510  1.1  christos 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9511  1.1  christos 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9512  1.1  christos 	emximp -o $lib $output_objdir/$libname.def'
   9513  1.1  christos       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9514  1.1  christos 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9515  1.1  christos 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9516  1.1  christos 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9517  1.1  christos 	prefix_cmds="$SED"~
   9518  1.1  christos 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9519  1.1  christos 	  prefix_cmds="$prefix_cmds -e 1d";
   9520  1.1  christos 	fi~
   9521  1.1  christos 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9522  1.1  christos 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9523  1.1  christos 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9524  1.1  christos 	emximp -o $lib $output_objdir/$libname.def'
   9525  1.1  christos       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9526  1.1  christos       enable_shared_with_static_runtimes=yes
   9527  1.1  christos       ;;
   9528  1.1  christos 
   9529  1.1  christos     osf3*)
   9530  1.1  christos       if test yes = "$GCC"; then
   9531  1.1  christos 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9532  1.1  christos 	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  1.1  christos       else
   9534  1.1  christos 	allow_undefined_flag=' -expect_unresolved \*'
   9535  1.1  christos 	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  1.1  christos       fi
   9537  1.1  christos       archive_cmds_need_lc='no'
   9538  1.1  christos       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9539  1.1  christos       hardcode_libdir_separator=:
   9540  1.1  christos       ;;
   9541  1.1  christos 
   9542  1.1  christos     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9543  1.1  christos       if test yes = "$GCC"; then
   9544  1.1  christos 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9545  1.1  christos 	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  1.1  christos 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9547  1.1  christos       else
   9548  1.1  christos 	allow_undefined_flag=' -expect_unresolved \*'
   9549  1.1  christos 	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  1.1  christos 	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  1.1  christos           $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  1.1  christos 
   9553  1.1  christos 	# Both c and cxx compiler support -rpath directly
   9554  1.1  christos 	hardcode_libdir_flag_spec='-rpath $libdir'
   9555  1.1  christos       fi
   9556  1.1  christos       archive_cmds_need_lc='no'
   9557  1.1  christos       hardcode_libdir_separator=:
   9558  1.1  christos       ;;
   9559  1.1  christos 
   9560  1.1  christos     solaris*)
   9561  1.1  christos       no_undefined_flag=' -z defs'
   9562  1.1  christos       if test yes = "$GCC"; then
   9563  1.1  christos 	wlarc='$wl'
   9564  1.1  christos 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9565  1.1  christos 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9566  1.1  christos           $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  1.1  christos       else
   9568  1.1  christos 	case `$CC -V 2>&1` in
   9569  1.1  christos 	*"Compilers 5.0"*)
   9570  1.1  christos 	  wlarc=''
   9571  1.1  christos 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9572  1.1  christos 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9573  1.1  christos             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9574  1.1  christos 	  ;;
   9575  1.1  christos 	*)
   9576  1.1  christos 	  wlarc='$wl'
   9577  1.1  christos 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9578  1.1  christos 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9579  1.1  christos             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9580  1.1  christos 	  ;;
   9581  1.1  christos 	esac
   9582  1.1  christos       fi
   9583  1.1  christos       hardcode_libdir_flag_spec='-R$libdir'
   9584  1.1  christos       hardcode_shlibpath_var=no
   9585  1.1  christos       case $host_os in
   9586  1.1  christos       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9587  1.1  christos       *)
   9588  1.1  christos 	# The compiler driver will combine and reorder linker options,
   9589  1.1  christos 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9590  1.1  christos 	# but is careful enough not to reorder.
   9591  1.1  christos 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9592  1.1  christos 	if test yes = "$GCC"; then
   9593  1.1  christos 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9594  1.1  christos 	else
   9595  1.1  christos 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9596  1.1  christos 	fi
   9597  1.1  christos 	;;
   9598  1.1  christos       esac
   9599  1.1  christos       link_all_deplibs=yes
   9600  1.1  christos       ;;
   9601  1.1  christos 
   9602  1.1  christos     sunos4*)
   9603  1.1  christos       if test sequent = "$host_vendor"; then
   9604  1.1  christos 	# Use $CC to link under sequent, because it throws in some extra .o
   9605  1.1  christos 	# files that make .init and .fini sections work.
   9606  1.1  christos 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9607  1.1  christos       else
   9608  1.1  christos 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9609  1.1  christos       fi
   9610  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   9611  1.1  christos       hardcode_direct=yes
   9612  1.1  christos       hardcode_minus_L=yes
   9613  1.1  christos       hardcode_shlibpath_var=no
   9614  1.1  christos       ;;
   9615  1.1  christos 
   9616  1.1  christos     sysv4)
   9617  1.1  christos       case $host_vendor in
   9618  1.1  christos 	sni)
   9619  1.1  christos 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9620  1.1  christos 	  hardcode_direct=yes # is this really true???
   9621  1.1  christos 	;;
   9622  1.1  christos 	siemens)
   9623  1.1  christos 	  ## LD is ld it makes a PLAMLIB
   9624  1.1  christos 	  ## CC just makes a GrossModule.
   9625  1.1  christos 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   9626  1.1  christos 	  reload_cmds='$CC -r -o $output$reload_objs'
   9627  1.1  christos 	  hardcode_direct=no
   9628  1.1  christos         ;;
   9629  1.1  christos 	motorola)
   9630  1.1  christos 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9631  1.1  christos 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   9632  1.1  christos 	;;
   9633  1.1  christos       esac
   9634  1.1  christos       runpath_var='LD_RUN_PATH'
   9635  1.1  christos       hardcode_shlibpath_var=no
   9636  1.1  christos       ;;
   9637  1.1  christos 
   9638  1.1  christos     sysv4.3*)
   9639  1.1  christos       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9640  1.1  christos       hardcode_shlibpath_var=no
   9641  1.1  christos       export_dynamic_flag_spec='-Bexport'
   9642  1.1  christos       ;;
   9643  1.1  christos 
   9644  1.1  christos     sysv4*MP*)
   9645  1.1  christos       if test -d /usr/nec; then
   9646  1.1  christos 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9647  1.1  christos 	hardcode_shlibpath_var=no
   9648  1.1  christos 	runpath_var=LD_RUN_PATH
   9649  1.1  christos 	hardcode_runpath_var=yes
   9650  1.1  christos 	ld_shlibs=yes
   9651  1.1  christos       fi
   9652  1.1  christos       ;;
   9653  1.1  christos 
   9654  1.1  christos     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   9655  1.1  christos       no_undefined_flag='$wl-z,text'
   9656  1.1  christos       archive_cmds_need_lc=no
   9657  1.1  christos       hardcode_shlibpath_var=no
   9658  1.1  christos       runpath_var='LD_RUN_PATH'
   9659  1.1  christos 
   9660  1.1  christos       if test yes = "$GCC"; then
   9661  1.1  christos 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9662  1.1  christos 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9663  1.1  christos       else
   9664  1.1  christos 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9665  1.1  christos 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9666  1.1  christos       fi
   9667  1.1  christos       ;;
   9668  1.1  christos 
   9669  1.1  christos     sysv5* | sco3.2v5* | sco5v6*)
   9670  1.1  christos       # Note: We CANNOT use -z defs as we might desire, because we do not
   9671  1.1  christos       # link with -lc, and that would cause any symbols used from libc to
   9672  1.1  christos       # always be unresolved, which means just about no library would
   9673  1.1  christos       # ever link correctly.  If we're not using GNU ld we use -z text
   9674  1.1  christos       # though, which does catch some bad symbols but isn't as heavy-handed
   9675  1.1  christos       # as -z defs.
   9676  1.1  christos       no_undefined_flag='$wl-z,text'
   9677  1.1  christos       allow_undefined_flag='$wl-z,nodefs'
   9678  1.1  christos       archive_cmds_need_lc=no
   9679  1.1  christos       hardcode_shlibpath_var=no
   9680  1.1  christos       hardcode_libdir_flag_spec='$wl-R,$libdir'
   9681  1.1  christos       hardcode_libdir_separator=':'
   9682  1.1  christos       link_all_deplibs=yes
   9683  1.1  christos       export_dynamic_flag_spec='$wl-Bexport'
   9684  1.1  christos       runpath_var='LD_RUN_PATH'
   9685  1.1  christos 
   9686  1.1  christos       if test yes = "$GCC"; then
   9687  1.1  christos 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9688  1.1  christos 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9689  1.1  christos       else
   9690  1.1  christos 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9691  1.1  christos 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9692  1.1  christos       fi
   9693  1.1  christos       ;;
   9694  1.1  christos 
   9695  1.1  christos     uts4*)
   9696  1.1  christos       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9697  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   9698  1.1  christos       hardcode_shlibpath_var=no
   9699  1.1  christos       ;;
   9700  1.1  christos 
   9701  1.1  christos     *)
   9702  1.1  christos       ld_shlibs=no
   9703  1.1  christos       ;;
   9704  1.1  christos     esac
   9705  1.1  christos 
   9706  1.1  christos     if test sni = "$host_vendor"; then
   9707  1.1  christos       case $host in
   9708  1.1  christos       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   9709  1.1  christos 	export_dynamic_flag_spec='$wl-Blargedynsym'
   9710  1.1  christos 	;;
   9711  1.1  christos       esac
   9712  1.1  christos     fi
   9713  1.1  christos   fi
   9714  1.1  christos 
   9715  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   9716  1.1  christos $as_echo "$ld_shlibs" >&6; }
   9717  1.1  christos test no = "$ld_shlibs" && can_build_shared=no
   9718  1.1  christos 
   9719  1.1  christos with_gnu_ld=$with_gnu_ld
   9720  1.1  christos 
   9721  1.1  christos 
   9722  1.1  christos 
   9723  1.1  christos 
   9724  1.1  christos 
   9725  1.1  christos 
   9726  1.1  christos 
   9727  1.1  christos 
   9728  1.1  christos 
   9729  1.1  christos 
   9730  1.1  christos 
   9731  1.1  christos 
   9732  1.1  christos 
   9733  1.1  christos 
   9734  1.1  christos 
   9735  1.1  christos #
   9736  1.1  christos # Do we need to explicitly link libc?
   9737  1.1  christos #
   9738  1.1  christos case "x$archive_cmds_need_lc" in
   9739  1.1  christos x|xyes)
   9740  1.1  christos   # Assume -lc should be added
   9741  1.1  christos   archive_cmds_need_lc=yes
   9742  1.1  christos 
   9743  1.1  christos   if test yes,yes = "$GCC,$enable_shared"; then
   9744  1.1  christos     case $archive_cmds in
   9745  1.1  christos     *'~'*)
   9746  1.1  christos       # FIXME: we may have to deal with multi-command sequences.
   9747  1.1  christos       ;;
   9748  1.1  christos     '$CC '*)
   9749  1.1  christos       # Test whether the compiler implicitly links with -lc since on some
   9750  1.1  christos       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   9751  1.1  christos       # to ld, don't add -lc before -lgcc.
   9752  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   9753  1.1  christos $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   9754  1.1  christos if ${lt_cv_archive_cmds_need_lc+:} false; then :
   9755  1.1  christos   $as_echo_n "(cached) " >&6
   9756  1.1  christos else
   9757  1.1  christos   $RM conftest*
   9758  1.1  christos 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9759  1.1  christos 
   9760  1.1  christos 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9761  1.1  christos   (eval $ac_compile) 2>&5
   9762  1.1  christos   ac_status=$?
   9763  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9764  1.1  christos   test $ac_status = 0; } 2>conftest.err; then
   9765  1.1  christos 	  soname=conftest
   9766  1.1  christos 	  lib=conftest
   9767  1.1  christos 	  libobjs=conftest.$ac_objext
   9768  1.1  christos 	  deplibs=
   9769  1.1  christos 	  wl=$lt_prog_compiler_wl
   9770  1.1  christos 	  pic_flag=$lt_prog_compiler_pic
   9771  1.1  christos 	  compiler_flags=-v
   9772  1.1  christos 	  linker_flags=-v
   9773  1.1  christos 	  verstring=
   9774  1.1  christos 	  output_objdir=.
   9775  1.1  christos 	  libname=conftest
   9776  1.1  christos 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   9777  1.1  christos 	  allow_undefined_flag=
   9778  1.1  christos 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   9779  1.1  christos   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   9780  1.1  christos   ac_status=$?
   9781  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9782  1.1  christos   test $ac_status = 0; }
   9783  1.1  christos 	  then
   9784  1.1  christos 	    lt_cv_archive_cmds_need_lc=no
   9785  1.1  christos 	  else
   9786  1.1  christos 	    lt_cv_archive_cmds_need_lc=yes
   9787  1.1  christos 	  fi
   9788  1.1  christos 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   9789  1.1  christos 	else
   9790  1.1  christos 	  cat conftest.err 1>&5
   9791  1.1  christos 	fi
   9792  1.1  christos 	$RM conftest*
   9793  1.1  christos 
   9794  1.1  christos fi
   9795  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   9796  1.1  christos $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   9797  1.1  christos       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   9798  1.1  christos       ;;
   9799  1.1  christos     esac
   9800  1.1  christos   fi
   9801  1.1  christos   ;;
   9802  1.1  christos esac
   9803  1.1  christos 
   9804  1.1  christos 
   9805  1.1  christos 
   9806  1.1  christos 
   9807  1.1  christos 
   9808  1.1  christos 
   9809  1.1  christos 
   9810  1.1  christos 
   9811  1.1  christos 
   9812  1.1  christos 
   9813  1.1  christos 
   9814  1.1  christos 
   9815  1.1  christos 
   9816  1.1  christos 
   9817  1.1  christos 
   9818  1.1  christos 
   9819  1.1  christos 
   9820  1.1  christos 
   9821  1.1  christos 
   9822  1.1  christos 
   9823  1.1  christos 
   9824  1.1  christos 
   9825  1.1  christos 
   9826  1.1  christos 
   9827  1.1  christos 
   9828  1.1  christos 
   9829  1.1  christos 
   9830  1.1  christos 
   9831  1.1  christos 
   9832  1.1  christos 
   9833  1.1  christos 
   9834  1.1  christos 
   9835  1.1  christos 
   9836  1.1  christos 
   9837  1.1  christos 
   9838  1.1  christos 
   9839  1.1  christos 
   9840  1.1  christos 
   9841  1.1  christos 
   9842  1.1  christos 
   9843  1.1  christos 
   9844  1.1  christos 
   9845  1.1  christos 
   9846  1.1  christos 
   9847  1.1  christos 
   9848  1.1  christos 
   9849  1.1  christos 
   9850  1.1  christos 
   9851  1.1  christos 
   9852  1.1  christos 
   9853  1.1  christos 
   9854  1.1  christos 
   9855  1.1  christos 
   9856  1.1  christos 
   9857  1.1  christos 
   9858  1.1  christos 
   9859  1.1  christos 
   9860  1.1  christos 
   9861  1.1  christos 
   9862  1.1  christos 
   9863  1.1  christos 
   9864  1.1  christos 
   9865  1.1  christos 
   9866  1.1  christos 
   9867  1.1  christos 
   9868  1.1  christos 
   9869  1.1  christos 
   9870  1.1  christos 
   9871  1.1  christos 
   9872  1.1  christos 
   9873  1.1  christos 
   9874  1.1  christos 
   9875  1.1  christos 
   9876  1.1  christos 
   9877  1.1  christos 
   9878  1.1  christos 
   9879  1.1  christos 
   9880  1.1  christos 
   9881  1.1  christos 
   9882  1.1  christos 
   9883  1.1  christos 
   9884  1.1  christos 
   9885  1.1  christos 
   9886  1.1  christos 
   9887  1.1  christos 
   9888  1.1  christos 
   9889  1.1  christos 
   9890  1.1  christos 
   9891  1.1  christos 
   9892  1.1  christos 
   9893  1.1  christos 
   9894  1.1  christos 
   9895  1.1  christos 
   9896  1.1  christos 
   9897  1.1  christos 
   9898  1.1  christos 
   9899  1.1  christos 
   9900  1.1  christos 
   9901  1.1  christos 
   9902  1.1  christos 
   9903  1.1  christos 
   9904  1.1  christos 
   9905  1.1  christos 
   9906  1.1  christos 
   9907  1.1  christos 
   9908  1.1  christos 
   9909  1.1  christos 
   9910  1.1  christos 
   9911  1.1  christos 
   9912  1.1  christos 
   9913  1.1  christos 
   9914  1.1  christos 
   9915  1.1  christos 
   9916  1.1  christos 
   9917  1.1  christos 
   9918  1.1  christos 
   9919  1.1  christos 
   9920  1.1  christos 
   9921  1.1  christos 
   9922  1.1  christos 
   9923  1.1  christos 
   9924  1.1  christos 
   9925  1.1  christos 
   9926  1.1  christos 
   9927  1.1  christos 
   9928  1.1  christos 
   9929  1.1  christos 
   9930  1.1  christos 
   9931  1.1  christos 
   9932  1.1  christos 
   9933  1.1  christos 
   9934  1.1  christos 
   9935  1.1  christos 
   9936  1.1  christos 
   9937  1.1  christos 
   9938  1.1  christos 
   9939  1.1  christos 
   9940  1.1  christos 
   9941  1.1  christos 
   9942  1.1  christos 
   9943  1.1  christos 
   9944  1.1  christos 
   9945  1.1  christos 
   9946  1.1  christos 
   9947  1.1  christos 
   9948  1.1  christos 
   9949  1.1  christos 
   9950  1.1  christos 
   9951  1.1  christos 
   9952  1.1  christos 
   9953  1.1  christos 
   9954  1.1  christos 
   9955  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   9956  1.1  christos $as_echo_n "checking dynamic linker characteristics... " >&6; }
   9957  1.1  christos 
   9958  1.1  christos if test yes = "$GCC"; then
   9959  1.1  christos   case $host_os in
   9960  1.1  christos     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   9961  1.1  christos     *) lt_awk_arg='/^libraries:/' ;;
   9962  1.1  christos   esac
   9963  1.1  christos   case $host_os in
   9964  1.1  christos     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   9965  1.1  christos     *) lt_sed_strip_eq='s|=/|/|g' ;;
   9966  1.1  christos   esac
   9967  1.1  christos   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   9968  1.1  christos   case $lt_search_path_spec in
   9969  1.1  christos   *\;*)
   9970  1.1  christos     # if the path contains ";" then we assume it to be the separator
   9971  1.1  christos     # otherwise default to the standard path separator (i.e. ":") - it is
   9972  1.1  christos     # assumed that no part of a normal pathname contains ";" but that should
   9973  1.1  christos     # okay in the real world where ";" in dirpaths is itself problematic.
   9974  1.1  christos     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   9975  1.1  christos     ;;
   9976  1.1  christos   *)
   9977  1.1  christos     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   9978  1.1  christos     ;;
   9979  1.1  christos   esac
   9980  1.1  christos   # Ok, now we have the path, separated by spaces, we can step through it
   9981  1.1  christos   # and add multilib dir if necessary...
   9982  1.1  christos   lt_tmp_lt_search_path_spec=
   9983  1.1  christos   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   9984  1.1  christos   # ...but if some path component already ends with the multilib dir we assume
   9985  1.1  christos   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   9986  1.1  christos   case "$lt_multi_os_dir; $lt_search_path_spec " in
   9987  1.1  christos   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   9988  1.1  christos     lt_multi_os_dir=
   9989  1.1  christos     ;;
   9990  1.1  christos   esac
   9991  1.1  christos   for lt_sys_path in $lt_search_path_spec; do
   9992  1.1  christos     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   9993  1.1  christos       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   9994  1.1  christos     elif test -n "$lt_multi_os_dir"; then
   9995  1.1  christos       test -d "$lt_sys_path" && \
   9996  1.1  christos 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   9997  1.1  christos     fi
   9998  1.1  christos   done
   9999  1.1  christos   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   10000  1.1  christos BEGIN {RS = " "; FS = "/|\n";} {
   10001  1.1  christos   lt_foo = "";
   10002  1.1  christos   lt_count = 0;
   10003  1.1  christos   for (lt_i = NF; lt_i > 0; lt_i--) {
   10004  1.1  christos     if ($lt_i != "" && $lt_i != ".") {
   10005  1.1  christos       if ($lt_i == "..") {
   10006  1.1  christos         lt_count++;
   10007  1.1  christos       } else {
   10008  1.1  christos         if (lt_count == 0) {
   10009  1.1  christos           lt_foo = "/" $lt_i lt_foo;
   10010  1.1  christos         } else {
   10011  1.1  christos           lt_count--;
   10012  1.1  christos         }
   10013  1.1  christos       }
   10014  1.1  christos     }
   10015  1.1  christos   }
   10016  1.1  christos   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10017  1.1  christos   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10018  1.1  christos }'`
   10019  1.1  christos   # AWK program above erroneously prepends '/' to C:/dos/paths
   10020  1.1  christos   # for these hosts.
   10021  1.1  christos   case $host_os in
   10022  1.1  christos     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10023  1.1  christos       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10024  1.1  christos   esac
   10025  1.1  christos   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10026  1.1  christos else
   10027  1.1  christos   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10028  1.1  christos fi
   10029  1.1  christos library_names_spec=
   10030  1.1  christos libname_spec='lib$name'
   10031  1.1  christos soname_spec=
   10032  1.1  christos shrext_cmds=.so
   10033  1.1  christos postinstall_cmds=
   10034  1.1  christos postuninstall_cmds=
   10035  1.1  christos finish_cmds=
   10036  1.1  christos finish_eval=
   10037  1.1  christos shlibpath_var=
   10038  1.1  christos shlibpath_overrides_runpath=unknown
   10039  1.1  christos version_type=none
   10040  1.1  christos dynamic_linker="$host_os ld.so"
   10041  1.1  christos sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10042  1.1  christos need_lib_prefix=unknown
   10043  1.1  christos hardcode_into_libs=no
   10044  1.1  christos 
   10045  1.1  christos # when you set need_version to no, make sure it does not cause -set_version
   10046  1.1  christos # flags to be left without arguments
   10047  1.1  christos need_version=unknown
   10048  1.1  christos 
   10049  1.1  christos 
   10050  1.1  christos 
   10051  1.1  christos case $host_os in
   10052  1.1  christos aix3*)
   10053  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10054  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10055  1.1  christos   shlibpath_var=LIBPATH
   10056  1.1  christos 
   10057  1.1  christos   # AIX 3 has no versioning support, so we append a major version to the name.
   10058  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10059  1.1  christos   ;;
   10060  1.1  christos 
   10061  1.1  christos aix[4-9]*)
   10062  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10063  1.1  christos   need_lib_prefix=no
   10064  1.1  christos   need_version=no
   10065  1.1  christos   hardcode_into_libs=yes
   10066  1.1  christos   if test ia64 = "$host_cpu"; then
   10067  1.1  christos     # AIX 5 supports IA64
   10068  1.1  christos     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10069  1.1  christos     shlibpath_var=LD_LIBRARY_PATH
   10070  1.1  christos   else
   10071  1.1  christos     # With GCC up to 2.95.x, collect2 would create an import file
   10072  1.1  christos     # for dependence libraries.  The import file would start with
   10073  1.1  christos     # the line '#! .'.  This would cause the generated library to
   10074  1.1  christos     # depend on '.', always an invalid library.  This was fixed in
   10075  1.1  christos     # development snapshots of GCC prior to 3.0.
   10076  1.1  christos     case $host_os in
   10077  1.1  christos       aix4 | aix4.[01] | aix4.[01].*)
   10078  1.1  christos       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10079  1.1  christos 	   echo ' yes '
   10080  1.1  christos 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10081  1.1  christos 	:
   10082  1.1  christos       else
   10083  1.1  christos 	can_build_shared=no
   10084  1.1  christos       fi
   10085  1.1  christos       ;;
   10086  1.1  christos     esac
   10087  1.1  christos     # Using Import Files as archive members, it is possible to support
   10088  1.1  christos     # filename-based versioning of shared library archives on AIX. While
   10089  1.1  christos     # this would work for both with and without runtime linking, it will
   10090  1.1  christos     # prevent static linking of such archives. So we do filename-based
   10091  1.1  christos     # shared library versioning with .so extension only, which is used
   10092  1.1  christos     # when both runtime linking and shared linking is enabled.
   10093  1.1  christos     # Unfortunately, runtime linking may impact performance, so we do
   10094  1.1  christos     # not want this to be the default eventually. Also, we use the
   10095  1.1  christos     # versioned .so libs for executables only if there is the -brtl
   10096  1.1  christos     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10097  1.1  christos     # To allow for filename-based versioning support, we need to create
   10098  1.1  christos     # libNAME.so.V as an archive file, containing:
   10099  1.1  christos     # *) an Import File, referring to the versioned filename of the
   10100  1.1  christos     #    archive as well as the shared archive member, telling the
   10101  1.1  christos     #    bitwidth (32 or 64) of that shared object, and providing the
   10102  1.1  christos     #    list of exported symbols of that shared object, eventually
   10103  1.1  christos     #    decorated with the 'weak' keyword
   10104  1.1  christos     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10105  1.1  christos     #    it being seen by the linker.
   10106  1.1  christos     # At run time we better use the real file rather than another symlink,
   10107  1.1  christos     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10108  1.1  christos 
   10109  1.1  christos     case $with_aix_soname,$aix_use_runtimelinking in
   10110  1.1  christos     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10111  1.1  christos     # soname into executable. Probably we can add versioning support to
   10112  1.1  christos     # collect2, so additional links can be useful in future.
   10113  1.1  christos     aix,yes) # traditional libtool
   10114  1.1  christos       dynamic_linker='AIX unversionable lib.so'
   10115  1.1  christos       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10116  1.1  christos       # instead of lib<name>.a to let people know that these are not
   10117  1.1  christos       # typical AIX shared libraries.
   10118  1.1  christos       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10119  1.1  christos       ;;
   10120  1.1  christos     aix,no) # traditional AIX only
   10121  1.1  christos       dynamic_linker='AIX lib.a(lib.so.V)'
   10122  1.1  christos       # We preserve .a as extension for shared libraries through AIX4.2
   10123  1.1  christos       # and later when we are not doing run time linking.
   10124  1.1  christos       library_names_spec='$libname$release.a $libname.a'
   10125  1.1  christos       soname_spec='$libname$release$shared_ext$major'
   10126  1.1  christos       ;;
   10127  1.1  christos     svr4,*) # full svr4 only
   10128  1.1  christos       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10129  1.1  christos       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10130  1.1  christos       # We do not specify a path in Import Files, so LIBPATH fires.
   10131  1.1  christos       shlibpath_overrides_runpath=yes
   10132  1.1  christos       ;;
   10133  1.1  christos     *,yes) # both, prefer svr4
   10134  1.1  christos       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10135  1.1  christos       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10136  1.1  christos       # unpreferred sharedlib libNAME.a needs extra handling
   10137  1.1  christos       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  1.1  christos       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  1.1  christos       # We do not specify a path in Import Files, so LIBPATH fires.
   10140  1.1  christos       shlibpath_overrides_runpath=yes
   10141  1.1  christos       ;;
   10142  1.1  christos     *,no) # both, prefer aix
   10143  1.1  christos       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10144  1.1  christos       library_names_spec='$libname$release.a $libname.a'
   10145  1.1  christos       soname_spec='$libname$release$shared_ext$major'
   10146  1.1  christos       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10147  1.1  christos       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  1.1  christos       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  1.1  christos       ;;
   10150  1.1  christos     esac
   10151  1.1  christos     shlibpath_var=LIBPATH
   10152  1.1  christos   fi
   10153  1.1  christos   ;;
   10154  1.1  christos 
   10155  1.1  christos amigaos*)
   10156  1.1  christos   case $host_cpu in
   10157  1.1  christos   powerpc)
   10158  1.1  christos     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10159  1.1  christos     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10160  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10161  1.1  christos     ;;
   10162  1.1  christos   m68k)
   10163  1.1  christos     library_names_spec='$libname.ixlibrary $libname.a'
   10164  1.1  christos     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10165  1.1  christos     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  1.1  christos     ;;
   10167  1.1  christos   esac
   10168  1.1  christos   ;;
   10169  1.1  christos 
   10170  1.1  christos beos*)
   10171  1.1  christos   library_names_spec='$libname$shared_ext'
   10172  1.1  christos   dynamic_linker="$host_os ld.so"
   10173  1.1  christos   shlibpath_var=LIBRARY_PATH
   10174  1.1  christos   ;;
   10175  1.1  christos 
   10176  1.1  christos bsdi[45]*)
   10177  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10178  1.1  christos   need_version=no
   10179  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10180  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10181  1.1  christos   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10182  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10183  1.1  christos   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10184  1.1  christos   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10185  1.1  christos   # the default ld.so.conf also contains /usr/contrib/lib and
   10186  1.1  christos   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10187  1.1  christos   # libtool to hard-code these into programs
   10188  1.1  christos   ;;
   10189  1.1  christos 
   10190  1.1  christos cygwin* | mingw* | pw32* | cegcc*)
   10191  1.1  christos   version_type=windows
   10192  1.1  christos   shrext_cmds=.dll
   10193  1.1  christos   need_version=no
   10194  1.1  christos   need_lib_prefix=no
   10195  1.1  christos 
   10196  1.1  christos   case $GCC,$cc_basename in
   10197  1.1  christos   yes,*)
   10198  1.1  christos     # gcc
   10199  1.1  christos     library_names_spec='$libname.dll.a'
   10200  1.1  christos     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10201  1.1  christos     postinstall_cmds='base_file=`basename \$file`~
   10202  1.1  christos       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10203  1.1  christos       dldir=$destdir/`dirname \$dlpath`~
   10204  1.1  christos       test -d \$dldir || mkdir -p \$dldir~
   10205  1.1  christos       $install_prog $dir/$dlname \$dldir/$dlname~
   10206  1.1  christos       chmod a+x \$dldir/$dlname~
   10207  1.1  christos       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10208  1.1  christos         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10209  1.1  christos       fi'
   10210  1.1  christos     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10211  1.1  christos       dlpath=$dir/\$dldll~
   10212  1.1  christos        $RM \$dlpath'
   10213  1.1  christos     shlibpath_overrides_runpath=yes
   10214  1.1  christos 
   10215  1.1  christos     case $host_os in
   10216  1.1  christos     cygwin*)
   10217  1.1  christos       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10218  1.1  christos       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10219  1.1  christos 
   10220  1.1  christos       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10221  1.1  christos       ;;
   10222  1.1  christos     mingw* | cegcc*)
   10223  1.1  christos       # MinGW DLLs use traditional 'lib' prefix
   10224  1.1  christos       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10225  1.1  christos       ;;
   10226  1.1  christos     pw32*)
   10227  1.1  christos       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10228  1.1  christos       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10229  1.1  christos       ;;
   10230  1.1  christos     esac
   10231  1.1  christos     dynamic_linker='Win32 ld.exe'
   10232  1.1  christos     ;;
   10233  1.1  christos 
   10234  1.1  christos   *,cl*)
   10235  1.1  christos     # Native MSVC
   10236  1.1  christos     libname_spec='$name'
   10237  1.1  christos     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10238  1.1  christos     library_names_spec='$libname.dll.lib'
   10239  1.1  christos 
   10240  1.1  christos     case $build_os in
   10241  1.1  christos     mingw*)
   10242  1.1  christos       sys_lib_search_path_spec=
   10243  1.1  christos       lt_save_ifs=$IFS
   10244  1.1  christos       IFS=';'
   10245  1.1  christos       for lt_path in $LIB
   10246  1.1  christos       do
   10247  1.1  christos         IFS=$lt_save_ifs
   10248  1.1  christos         # Let DOS variable expansion print the short 8.3 style file name.
   10249  1.1  christos         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10250  1.1  christos         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10251  1.1  christos       done
   10252  1.1  christos       IFS=$lt_save_ifs
   10253  1.1  christos       # Convert to MSYS style.
   10254  1.1  christos       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  1.1  christos       ;;
   10256  1.1  christos     cygwin*)
   10257  1.1  christos       # Convert to unix form, then to dos form, then back to unix form
   10258  1.1  christos       # but this time dos style (no spaces!) so that the unix form looks
   10259  1.1  christos       # like /cygdrive/c/PROGRA~1:/cygdr...
   10260  1.1  christos       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10261  1.1  christos       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10262  1.1  christos       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10263  1.1  christos       ;;
   10264  1.1  christos     *)
   10265  1.1  christos       sys_lib_search_path_spec=$LIB
   10266  1.1  christos       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10267  1.1  christos         # It is most probably a Windows format PATH.
   10268  1.1  christos         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10269  1.1  christos       else
   10270  1.1  christos         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10271  1.1  christos       fi
   10272  1.1  christos       # FIXME: find the short name or the path components, as spaces are
   10273  1.1  christos       # common. (e.g. "Program Files" -> "PROGRA~1")
   10274  1.1  christos       ;;
   10275  1.1  christos     esac
   10276  1.1  christos 
   10277  1.1  christos     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10278  1.1  christos     postinstall_cmds='base_file=`basename \$file`~
   10279  1.1  christos       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10280  1.1  christos       dldir=$destdir/`dirname \$dlpath`~
   10281  1.1  christos       test -d \$dldir || mkdir -p \$dldir~
   10282  1.1  christos       $install_prog $dir/$dlname \$dldir/$dlname'
   10283  1.1  christos     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10284  1.1  christos       dlpath=$dir/\$dldll~
   10285  1.1  christos        $RM \$dlpath'
   10286  1.1  christos     shlibpath_overrides_runpath=yes
   10287  1.1  christos     dynamic_linker='Win32 link.exe'
   10288  1.1  christos     ;;
   10289  1.1  christos 
   10290  1.1  christos   *)
   10291  1.1  christos     # Assume MSVC wrapper
   10292  1.1  christos     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10293  1.1  christos     dynamic_linker='Win32 ld.exe'
   10294  1.1  christos     ;;
   10295  1.1  christos   esac
   10296  1.1  christos   # FIXME: first we should search . and the directory the executable is in
   10297  1.1  christos   shlibpath_var=PATH
   10298  1.1  christos   ;;
   10299  1.1  christos 
   10300  1.1  christos darwin* | rhapsody*)
   10301  1.1  christos   dynamic_linker="$host_os dyld"
   10302  1.1  christos   version_type=darwin
   10303  1.1  christos   need_lib_prefix=no
   10304  1.1  christos   need_version=no
   10305  1.1  christos   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10306  1.1  christos   soname_spec='$libname$release$major$shared_ext'
   10307  1.1  christos   shlibpath_overrides_runpath=yes
   10308  1.1  christos   shlibpath_var=DYLD_LIBRARY_PATH
   10309  1.1  christos   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10310  1.1  christos 
   10311  1.1  christos   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10312  1.1  christos   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10313  1.1  christos   ;;
   10314  1.1  christos 
   10315  1.1  christos dgux*)
   10316  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10317  1.1  christos   need_lib_prefix=no
   10318  1.1  christos   need_version=no
   10319  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10320  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10321  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10322  1.1  christos   ;;
   10323  1.1  christos 
   10324  1.1  christos freebsd* | dragonfly*)
   10325  1.1  christos   # DragonFly does not have aout.  When/if they implement a new
   10326  1.1  christos   # versioning mechanism, adjust this.
   10327  1.1  christos   if test -x /usr/bin/objformat; then
   10328  1.1  christos     objformat=`/usr/bin/objformat`
   10329  1.1  christos   else
   10330  1.1  christos     case $host_os in
   10331  1.1  christos     freebsd[23].*) objformat=aout ;;
   10332  1.1  christos     *) objformat=elf ;;
   10333  1.1  christos     esac
   10334  1.1  christos   fi
   10335  1.1  christos   version_type=freebsd-$objformat
   10336  1.1  christos   case $version_type in
   10337  1.1  christos     freebsd-elf*)
   10338  1.1  christos       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10339  1.1  christos       soname_spec='$libname$release$shared_ext$major'
   10340  1.1  christos       need_version=no
   10341  1.1  christos       need_lib_prefix=no
   10342  1.1  christos       ;;
   10343  1.1  christos     freebsd-*)
   10344  1.1  christos       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10345  1.1  christos       need_version=yes
   10346  1.1  christos       ;;
   10347  1.1  christos   esac
   10348  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10349  1.1  christos   case $host_os in
   10350  1.1  christos   freebsd2.*)
   10351  1.1  christos     shlibpath_overrides_runpath=yes
   10352  1.1  christos     ;;
   10353  1.1  christos   freebsd3.[01]* | freebsdelf3.[01]*)
   10354  1.1  christos     shlibpath_overrides_runpath=yes
   10355  1.1  christos     hardcode_into_libs=yes
   10356  1.1  christos     ;;
   10357  1.1  christos   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10358  1.1  christos   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10359  1.1  christos     shlibpath_overrides_runpath=no
   10360  1.1  christos     hardcode_into_libs=yes
   10361  1.1  christos     ;;
   10362  1.1  christos   *) # from 4.6 on, and DragonFly
   10363  1.1  christos     shlibpath_overrides_runpath=yes
   10364  1.1  christos     hardcode_into_libs=yes
   10365  1.1  christos     ;;
   10366  1.1  christos   esac
   10367  1.1  christos   ;;
   10368  1.1  christos 
   10369  1.1  christos haiku*)
   10370  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10371  1.1  christos   need_lib_prefix=no
   10372  1.1  christos   need_version=no
   10373  1.1  christos   dynamic_linker="$host_os runtime_loader"
   10374  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10375  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10376  1.1  christos   shlibpath_var=LIBRARY_PATH
   10377  1.1  christos   shlibpath_overrides_runpath=no
   10378  1.1  christos   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10379  1.1  christos   hardcode_into_libs=yes
   10380  1.1  christos   ;;
   10381  1.1  christos 
   10382  1.1  christos hpux9* | hpux10* | hpux11*)
   10383  1.1  christos   # Give a soname corresponding to the major version so that dld.sl refuses to
   10384  1.1  christos   # link against other versions.
   10385  1.1  christos   version_type=sunos
   10386  1.1  christos   need_lib_prefix=no
   10387  1.1  christos   need_version=no
   10388  1.1  christos   case $host_cpu in
   10389  1.1  christos   ia64*)
   10390  1.1  christos     shrext_cmds='.so'
   10391  1.1  christos     hardcode_into_libs=yes
   10392  1.1  christos     dynamic_linker="$host_os dld.so"
   10393  1.1  christos     shlibpath_var=LD_LIBRARY_PATH
   10394  1.1  christos     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10395  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10396  1.1  christos     soname_spec='$libname$release$shared_ext$major'
   10397  1.1  christos     if test 32 = "$HPUX_IA64_MODE"; then
   10398  1.1  christos       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10399  1.1  christos       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10400  1.1  christos     else
   10401  1.1  christos       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10402  1.1  christos       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10403  1.1  christos     fi
   10404  1.1  christos     ;;
   10405  1.1  christos   hppa*64*)
   10406  1.1  christos     shrext_cmds='.sl'
   10407  1.1  christos     hardcode_into_libs=yes
   10408  1.1  christos     dynamic_linker="$host_os dld.sl"
   10409  1.1  christos     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10410  1.1  christos     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10411  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10412  1.1  christos     soname_spec='$libname$release$shared_ext$major'
   10413  1.1  christos     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10414  1.1  christos     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10415  1.1  christos     ;;
   10416  1.1  christos   *)
   10417  1.1  christos     shrext_cmds='.sl'
   10418  1.1  christos     dynamic_linker="$host_os dld.sl"
   10419  1.1  christos     shlibpath_var=SHLIB_PATH
   10420  1.1  christos     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10421  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10422  1.1  christos     soname_spec='$libname$release$shared_ext$major'
   10423  1.1  christos     ;;
   10424  1.1  christos   esac
   10425  1.1  christos   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10426  1.1  christos   postinstall_cmds='chmod 555 $lib'
   10427  1.1  christos   # or fails outright, so override atomically:
   10428  1.1  christos   install_override_mode=555
   10429  1.1  christos   ;;
   10430  1.1  christos 
   10431  1.1  christos interix[3-9]*)
   10432  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10433  1.1  christos   need_lib_prefix=no
   10434  1.1  christos   need_version=no
   10435  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10436  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10437  1.1  christos   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10438  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10439  1.1  christos   shlibpath_overrides_runpath=no
   10440  1.1  christos   hardcode_into_libs=yes
   10441  1.1  christos   ;;
   10442  1.1  christos 
   10443  1.1  christos irix5* | irix6* | nonstopux*)
   10444  1.1  christos   case $host_os in
   10445  1.1  christos     nonstopux*) version_type=nonstopux ;;
   10446  1.1  christos     *)
   10447  1.1  christos 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10448  1.1  christos 		version_type=linux # correct to gnu/linux during the next big refactor
   10449  1.1  christos 	else
   10450  1.1  christos 		version_type=irix
   10451  1.1  christos 	fi ;;
   10452  1.1  christos   esac
   10453  1.1  christos   need_lib_prefix=no
   10454  1.1  christos   need_version=no
   10455  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10456  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10457  1.1  christos   case $host_os in
   10458  1.1  christos   irix5* | nonstopux*)
   10459  1.1  christos     libsuff= shlibsuff=
   10460  1.1  christos     ;;
   10461  1.1  christos   *)
   10462  1.1  christos     case $LD in # libtool.m4 will add one of these switches to LD
   10463  1.1  christos     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10464  1.1  christos       libsuff= shlibsuff= libmagic=32-bit;;
   10465  1.1  christos     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10466  1.1  christos       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10467  1.1  christos     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10468  1.1  christos       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10469  1.1  christos     *) libsuff= shlibsuff= libmagic=never-match;;
   10470  1.1  christos     esac
   10471  1.1  christos     ;;
   10472  1.1  christos   esac
   10473  1.1  christos   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10474  1.1  christos   shlibpath_overrides_runpath=no
   10475  1.1  christos   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10476  1.1  christos   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10477  1.1  christos   hardcode_into_libs=yes
   10478  1.1  christos   ;;
   10479  1.1  christos 
   10480  1.1  christos # No shared lib support for Linux oldld, aout, or coff.
   10481  1.1  christos linux*oldld* | linux*aout* | linux*coff*)
   10482  1.1  christos   dynamic_linker=no
   10483  1.1  christos   ;;
   10484  1.1  christos 
   10485  1.1  christos linux*android*)
   10486  1.1  christos   version_type=none # Android doesn't support versioned libraries.
   10487  1.1  christos   need_lib_prefix=no
   10488  1.1  christos   need_version=no
   10489  1.1  christos   library_names_spec='$libname$release$shared_ext'
   10490  1.1  christos   soname_spec='$libname$release$shared_ext'
   10491  1.1  christos   finish_cmds=
   10492  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10493  1.1  christos   shlibpath_overrides_runpath=yes
   10494  1.1  christos 
   10495  1.1  christos   # This implies no fast_install, which is unacceptable.
   10496  1.1  christos   # Some rework will be needed to allow for fast_install
   10497  1.1  christos   # before this can be enabled.
   10498  1.1  christos   hardcode_into_libs=yes
   10499  1.1  christos 
   10500  1.1  christos   dynamic_linker='Android linker'
   10501  1.1  christos   # Don't embed -rpath directories since the linker doesn't support them.
   10502  1.1  christos   hardcode_libdir_flag_spec='-L$libdir'
   10503  1.1  christos   ;;
   10504  1.1  christos 
   10505  1.1  christos # This must be glibc/ELF.
   10506  1.1  christos linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10507  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10508  1.1  christos   need_lib_prefix=no
   10509  1.1  christos   need_version=no
   10510  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10511  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10512  1.1  christos   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10513  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10514  1.1  christos   shlibpath_overrides_runpath=no
   10515  1.1  christos 
   10516  1.1  christos   # Some binutils ld are patched to set DT_RUNPATH
   10517  1.1  christos   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10518  1.1  christos   $as_echo_n "(cached) " >&6
   10519  1.1  christos else
   10520  1.1  christos   lt_cv_shlibpath_overrides_runpath=no
   10521  1.1  christos     save_LDFLAGS=$LDFLAGS
   10522  1.1  christos     save_libdir=$libdir
   10523  1.1  christos     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10524  1.1  christos 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10525  1.1  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10526  1.1  christos /* end confdefs.h.  */
   10527  1.1  christos 
   10528  1.1  christos int
   10529  1.1  christos main ()
   10530  1.1  christos {
   10531  1.1  christos 
   10532  1.1  christos   ;
   10533  1.1  christos   return 0;
   10534  1.1  christos }
   10535  1.1  christos _ACEOF
   10536  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   10537  1.1  christos   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10538  1.1  christos   lt_cv_shlibpath_overrides_runpath=yes
   10539  1.1  christos fi
   10540  1.1  christos fi
   10541  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   10542  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   10543  1.1  christos     LDFLAGS=$save_LDFLAGS
   10544  1.1  christos     libdir=$save_libdir
   10545  1.1  christos 
   10546  1.1  christos fi
   10547  1.1  christos 
   10548  1.1  christos   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10549  1.1  christos 
   10550  1.1  christos   # This implies no fast_install, which is unacceptable.
   10551  1.1  christos   # Some rework will be needed to allow for fast_install
   10552  1.1  christos   # before this can be enabled.
   10553  1.1  christos   hardcode_into_libs=yes
   10554  1.1  christos 
   10555  1.1  christos   # Ideally, we could use ldconfig to report *all* directores which are
   10556  1.1  christos   # searched for libraries, however this is still not possible.  Aside from not
   10557  1.1  christos   # being certain /sbin/ldconfig is available, command
   10558  1.1  christos   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10559  1.1  christos   # even though it is searched at run-time.  Try to do the best guess by
   10560  1.1  christos   # appending ld.so.conf contents (and includes) to the search path.
   10561  1.1  christos   if test -f /etc/ld.so.conf; then
   10562  1.1  christos     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  1.1  christos     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10564  1.1  christos   fi
   10565  1.1  christos 
   10566  1.1  christos   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10567  1.1  christos   # powerpc, because MkLinux only supported shared libraries with the
   10568  1.1  christos   # GNU dynamic linker.  Since this was broken with cross compilers,
   10569  1.1  christos   # most powerpc-linux boxes support dynamic linking these days and
   10570  1.1  christos   # people can always --disable-shared, the test was removed, and we
   10571  1.1  christos   # assume the GNU/Linux dynamic linker is in use.
   10572  1.1  christos   dynamic_linker='GNU/Linux ld.so'
   10573  1.1  christos   ;;
   10574  1.1  christos 
   10575  1.1  christos netbsd*)
   10576  1.1  christos   version_type=sunos
   10577  1.1  christos   need_lib_prefix=no
   10578  1.1  christos   need_version=no
   10579  1.1  christos   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10580  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10581  1.1  christos     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10582  1.1  christos     dynamic_linker='NetBSD (a.out) ld.so'
   10583  1.1  christos   else
   10584  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10585  1.1  christos     soname_spec='$libname$release$shared_ext$major'
   10586  1.1  christos     dynamic_linker='NetBSD ld.elf_so'
   10587  1.1  christos   fi
   10588  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10589  1.1  christos   shlibpath_overrides_runpath=yes
   10590  1.1  christos   hardcode_into_libs=yes
   10591  1.1  christos   ;;
   10592  1.1  christos 
   10593  1.1  christos newsos6)
   10594  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10595  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10596  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10597  1.1  christos   shlibpath_overrides_runpath=yes
   10598  1.1  christos   ;;
   10599  1.1  christos 
   10600  1.1  christos *nto* | *qnx*)
   10601  1.1  christos   version_type=qnx
   10602  1.1  christos   need_lib_prefix=no
   10603  1.1  christos   need_version=no
   10604  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10605  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10606  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10607  1.1  christos   shlibpath_overrides_runpath=no
   10608  1.1  christos   hardcode_into_libs=yes
   10609  1.1  christos   dynamic_linker='ldqnx.so'
   10610  1.1  christos   ;;
   10611  1.1  christos 
   10612  1.1  christos openbsd* | bitrig*)
   10613  1.1  christos   version_type=sunos
   10614  1.1  christos   sys_lib_dlsearch_path_spec=/usr/lib
   10615  1.1  christos   need_lib_prefix=no
   10616  1.1  christos   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10617  1.1  christos     need_version=no
   10618  1.1  christos   else
   10619  1.1  christos     need_version=yes
   10620  1.1  christos   fi
   10621  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10622  1.1  christos   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10623  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10624  1.1  christos   shlibpath_overrides_runpath=yes
   10625  1.1  christos   ;;
   10626  1.1  christos 
   10627  1.1  christos os2*)
   10628  1.1  christos   libname_spec='$name'
   10629  1.1  christos   version_type=windows
   10630  1.1  christos   shrext_cmds=.dll
   10631  1.1  christos   need_version=no
   10632  1.1  christos   need_lib_prefix=no
   10633  1.1  christos   # OS/2 can only load a DLL with a base name of 8 characters or less.
   10634  1.1  christos   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   10635  1.1  christos     v=$($ECHO $release$versuffix | tr -d .-);
   10636  1.1  christos     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   10637  1.1  christos     $ECHO $n$v`$shared_ext'
   10638  1.1  christos   library_names_spec='${libname}_dll.$libext'
   10639  1.1  christos   dynamic_linker='OS/2 ld.exe'
   10640  1.1  christos   shlibpath_var=BEGINLIBPATH
   10641  1.1  christos   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10642  1.1  christos   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10643  1.1  christos   postinstall_cmds='base_file=`basename \$file`~
   10644  1.1  christos     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   10645  1.1  christos     dldir=$destdir/`dirname \$dlpath`~
   10646  1.1  christos     test -d \$dldir || mkdir -p \$dldir~
   10647  1.1  christos     $install_prog $dir/$dlname \$dldir/$dlname~
   10648  1.1  christos     chmod a+x \$dldir/$dlname~
   10649  1.1  christos     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10650  1.1  christos       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10651  1.1  christos     fi'
   10652  1.1  christos   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   10653  1.1  christos     dlpath=$dir/\$dldll~
   10654  1.1  christos     $RM \$dlpath'
   10655  1.1  christos   ;;
   10656  1.1  christos 
   10657  1.1  christos osf3* | osf4* | osf5*)
   10658  1.1  christos   version_type=osf
   10659  1.1  christos   need_lib_prefix=no
   10660  1.1  christos   need_version=no
   10661  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10662  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10663  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10664  1.1  christos   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   10665  1.1  christos   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10666  1.1  christos   ;;
   10667  1.1  christos 
   10668  1.1  christos rdos*)
   10669  1.1  christos   dynamic_linker=no
   10670  1.1  christos   ;;
   10671  1.1  christos 
   10672  1.1  christos solaris*)
   10673  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10674  1.1  christos   need_lib_prefix=no
   10675  1.1  christos   need_version=no
   10676  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10677  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10678  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10679  1.1  christos   shlibpath_overrides_runpath=yes
   10680  1.1  christos   hardcode_into_libs=yes
   10681  1.1  christos   # ldd complains unless libraries are executable
   10682  1.1  christos   postinstall_cmds='chmod +x $lib'
   10683  1.1  christos   ;;
   10684  1.1  christos 
   10685  1.1  christos sunos4*)
   10686  1.1  christos   version_type=sunos
   10687  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10688  1.1  christos   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   10689  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10690  1.1  christos   shlibpath_overrides_runpath=yes
   10691  1.1  christos   if test yes = "$with_gnu_ld"; then
   10692  1.1  christos     need_lib_prefix=no
   10693  1.1  christos   fi
   10694  1.1  christos   need_version=yes
   10695  1.1  christos   ;;
   10696  1.1  christos 
   10697  1.1  christos sysv4 | sysv4.3*)
   10698  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10699  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10700  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10701  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10702  1.1  christos   case $host_vendor in
   10703  1.1  christos     sni)
   10704  1.1  christos       shlibpath_overrides_runpath=no
   10705  1.1  christos       need_lib_prefix=no
   10706  1.1  christos       runpath_var=LD_RUN_PATH
   10707  1.1  christos       ;;
   10708  1.1  christos     siemens)
   10709  1.1  christos       need_lib_prefix=no
   10710  1.1  christos       ;;
   10711  1.1  christos     motorola)
   10712  1.1  christos       need_lib_prefix=no
   10713  1.1  christos       need_version=no
   10714  1.1  christos       shlibpath_overrides_runpath=no
   10715  1.1  christos       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   10716  1.1  christos       ;;
   10717  1.1  christos   esac
   10718  1.1  christos   ;;
   10719  1.1  christos 
   10720  1.1  christos sysv4*MP*)
   10721  1.1  christos   if test -d /usr/nec; then
   10722  1.1  christos     version_type=linux # correct to gnu/linux during the next big refactor
   10723  1.1  christos     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   10724  1.1  christos     soname_spec='$libname$shared_ext.$major'
   10725  1.1  christos     shlibpath_var=LD_LIBRARY_PATH
   10726  1.1  christos   fi
   10727  1.1  christos   ;;
   10728  1.1  christos 
   10729  1.1  christos sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10730  1.1  christos   version_type=sco
   10731  1.1  christos   need_lib_prefix=no
   10732  1.1  christos   need_version=no
   10733  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   10734  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10735  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10736  1.1  christos   shlibpath_overrides_runpath=yes
   10737  1.1  christos   hardcode_into_libs=yes
   10738  1.1  christos   if test yes = "$with_gnu_ld"; then
   10739  1.1  christos     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   10740  1.1  christos   else
   10741  1.1  christos     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   10742  1.1  christos     case $host_os in
   10743  1.1  christos       sco3.2v5*)
   10744  1.1  christos         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   10745  1.1  christos 	;;
   10746  1.1  christos     esac
   10747  1.1  christos   fi
   10748  1.1  christos   sys_lib_dlsearch_path_spec='/usr/lib'
   10749  1.1  christos   ;;
   10750  1.1  christos 
   10751  1.1  christos tpf*)
   10752  1.1  christos   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   10753  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10754  1.1  christos   need_lib_prefix=no
   10755  1.1  christos   need_version=no
   10756  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10757  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10758  1.1  christos   shlibpath_overrides_runpath=no
   10759  1.1  christos   hardcode_into_libs=yes
   10760  1.1  christos   ;;
   10761  1.1  christos 
   10762  1.1  christos uts4*)
   10763  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10764  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10765  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10766  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10767  1.1  christos   ;;
   10768  1.1  christos 
   10769  1.1  christos *)
   10770  1.1  christos   dynamic_linker=no
   10771  1.1  christos   ;;
   10772  1.1  christos esac
   10773  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   10774  1.1  christos $as_echo "$dynamic_linker" >&6; }
   10775  1.1  christos test no = "$dynamic_linker" && can_build_shared=no
   10776  1.1  christos 
   10777  1.1  christos variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   10778  1.1  christos if test yes = "$GCC"; then
   10779  1.1  christos   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   10780  1.1  christos fi
   10781  1.1  christos 
   10782  1.1  christos if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   10783  1.1  christos   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   10784  1.1  christos fi
   10785  1.1  christos 
   10786  1.1  christos if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   10787  1.1  christos   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   10788  1.1  christos fi
   10789  1.1  christos 
   10790  1.1  christos # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   10791  1.1  christos configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   10792  1.1  christos 
   10793  1.1  christos # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   10794  1.1  christos func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   10795  1.1  christos 
   10796  1.1  christos # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   10797  1.1  christos configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   10798  1.1  christos 
   10799  1.1  christos 
   10800  1.1  christos 
   10801  1.1  christos 
   10802  1.1  christos 
   10803  1.1  christos 
   10804  1.1  christos 
   10805  1.1  christos 
   10806  1.1  christos 
   10807  1.1  christos 
   10808  1.1  christos 
   10809  1.1  christos 
   10810  1.1  christos 
   10811  1.1  christos 
   10812  1.1  christos 
   10813  1.1  christos 
   10814  1.1  christos 
   10815  1.1  christos 
   10816  1.1  christos 
   10817  1.1  christos 
   10818  1.1  christos 
   10819  1.1  christos 
   10820  1.1  christos 
   10821  1.1  christos 
   10822  1.1  christos 
   10823  1.1  christos 
   10824  1.1  christos 
   10825  1.1  christos 
   10826  1.1  christos 
   10827  1.1  christos 
   10828  1.1  christos 
   10829  1.1  christos 
   10830  1.1  christos 
   10831  1.1  christos 
   10832  1.1  christos 
   10833  1.1  christos 
   10834  1.1  christos 
   10835  1.1  christos 
   10836  1.1  christos 
   10837  1.1  christos 
   10838  1.1  christos 
   10839  1.1  christos 
   10840  1.1  christos 
   10841  1.1  christos 
   10842  1.1  christos 
   10843  1.1  christos 
   10844  1.1  christos 
   10845  1.1  christos 
   10846  1.1  christos 
   10847  1.1  christos 
   10848  1.1  christos 
   10849  1.1  christos 
   10850  1.1  christos 
   10851  1.1  christos 
   10852  1.1  christos 
   10853  1.1  christos 
   10854  1.1  christos 
   10855  1.1  christos 
   10856  1.1  christos 
   10857  1.1  christos 
   10858  1.1  christos 
   10859  1.1  christos 
   10860  1.1  christos 
   10861  1.1  christos 
   10862  1.1  christos 
   10863  1.1  christos 
   10864  1.1  christos 
   10865  1.1  christos 
   10866  1.1  christos 
   10867  1.1  christos 
   10868  1.1  christos 
   10869  1.1  christos 
   10870  1.1  christos 
   10871  1.1  christos 
   10872  1.1  christos 
   10873  1.1  christos 
   10874  1.1  christos 
   10875  1.1  christos 
   10876  1.1  christos 
   10877  1.1  christos 
   10878  1.1  christos 
   10879  1.1  christos 
   10880  1.1  christos 
   10881  1.1  christos 
   10882  1.1  christos 
   10883  1.1  christos 
   10884  1.1  christos 
   10885  1.1  christos 
   10886  1.1  christos 
   10887  1.1  christos 
   10888  1.1  christos 
   10889  1.1  christos 
   10890  1.1  christos 
   10891  1.1  christos 
   10892  1.1  christos 
   10893  1.1  christos 
   10894  1.1  christos 
   10895  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   10896  1.1  christos $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   10897  1.1  christos hardcode_action=
   10898  1.1  christos if test -n "$hardcode_libdir_flag_spec" ||
   10899  1.1  christos    test -n "$runpath_var" ||
   10900  1.1  christos    test yes = "$hardcode_automatic"; then
   10901  1.1  christos 
   10902  1.1  christos   # We can hardcode non-existent directories.
   10903  1.1  christos   if test no != "$hardcode_direct" &&
   10904  1.1  christos      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   10905  1.1  christos      # have to relink, otherwise we might link with an installed library
   10906  1.1  christos      # when we should be linking with a yet-to-be-installed one
   10907  1.1  christos      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   10908  1.1  christos      test no != "$hardcode_minus_L"; then
   10909  1.1  christos     # Linking always hardcodes the temporary library directory.
   10910  1.1  christos     hardcode_action=relink
   10911  1.1  christos   else
   10912  1.1  christos     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   10913  1.1  christos     hardcode_action=immediate
   10914  1.1  christos   fi
   10915  1.1  christos else
   10916  1.1  christos   # We cannot hardcode anything, or else we can only hardcode existing
   10917  1.1  christos   # directories.
   10918  1.1  christos   hardcode_action=unsupported
   10919  1.1  christos fi
   10920  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   10921  1.1  christos $as_echo "$hardcode_action" >&6; }
   10922  1.1  christos 
   10923  1.1  christos if test relink = "$hardcode_action" ||
   10924  1.1  christos    test yes = "$inherit_rpath"; then
   10925  1.1  christos   # Fast installation is not supported
   10926  1.1  christos   enable_fast_install=no
   10927  1.1  christos elif test yes = "$shlibpath_overrides_runpath" ||
   10928  1.1  christos      test no = "$enable_shared"; then
   10929  1.1  christos   # Fast installation is not necessary
   10930  1.1  christos   enable_fast_install=needless
   10931  1.1  christos fi
   10932  1.1  christos 
   10933  1.1  christos 
   10934  1.1  christos 
   10935  1.1  christos 
   10936  1.1  christos 
   10937  1.1  christos 
   10938  1.1  christos   if test yes != "$enable_dlopen"; then
   10939  1.1  christos   enable_dlopen=unknown
   10940  1.1  christos   enable_dlopen_self=unknown
   10941  1.1  christos   enable_dlopen_self_static=unknown
   10942  1.1  christos else
   10943  1.1  christos   lt_cv_dlopen=no
   10944  1.1  christos   lt_cv_dlopen_libs=
   10945  1.1  christos 
   10946  1.1  christos   case $host_os in
   10947  1.1  christos   beos*)
   10948  1.1  christos     lt_cv_dlopen=load_add_on
   10949  1.1  christos     lt_cv_dlopen_libs=
   10950  1.1  christos     lt_cv_dlopen_self=yes
   10951  1.1  christos     ;;
   10952  1.1  christos 
   10953  1.1  christos   mingw* | pw32* | cegcc*)
   10954  1.1  christos     lt_cv_dlopen=LoadLibrary
   10955  1.1  christos     lt_cv_dlopen_libs=
   10956  1.1  christos     ;;
   10957  1.1  christos 
   10958  1.1  christos   cygwin*)
   10959  1.1  christos     lt_cv_dlopen=dlopen
   10960  1.1  christos     lt_cv_dlopen_libs=
   10961  1.1  christos     ;;
   10962  1.1  christos 
   10963  1.1  christos   darwin*)
   10964  1.1  christos     # if libdl is installed we need to link against it
   10965  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   10966  1.1  christos $as_echo_n "checking for dlopen in -ldl... " >&6; }
   10967  1.1  christos if ${ac_cv_lib_dl_dlopen+:} false; then :
   10968  1.1  christos   $as_echo_n "(cached) " >&6
   10969  1.1  christos else
   10970  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   10971  1.1  christos LIBS="-ldl  $LIBS"
   10972  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10973  1.1  christos /* end confdefs.h.  */
   10974  1.1  christos 
   10975  1.1  christos /* Override any GCC internal prototype to avoid an error.
   10976  1.1  christos    Use char because int might match the return type of a GCC
   10977  1.1  christos    builtin and then its argument prototype would still apply.  */
   10978  1.1  christos #ifdef __cplusplus
   10979  1.1  christos extern "C"
   10980  1.1  christos #endif
   10981  1.1  christos char dlopen ();
   10982  1.1  christos int
   10983  1.1  christos main ()
   10984  1.1  christos {
   10985  1.1  christos return dlopen ();
   10986  1.1  christos   ;
   10987  1.1  christos   return 0;
   10988  1.1  christos }
   10989  1.1  christos _ACEOF
   10990  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   10991  1.1  christos   ac_cv_lib_dl_dlopen=yes
   10992  1.1  christos else
   10993  1.1  christos   ac_cv_lib_dl_dlopen=no
   10994  1.1  christos fi
   10995  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   10996  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   10997  1.1  christos LIBS=$ac_check_lib_save_LIBS
   10998  1.1  christos fi
   10999  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11000  1.1  christos $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11001  1.1  christos if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11002  1.1  christos   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11003  1.1  christos else
   11004  1.1  christos 
   11005  1.1  christos     lt_cv_dlopen=dyld
   11006  1.1  christos     lt_cv_dlopen_libs=
   11007  1.1  christos     lt_cv_dlopen_self=yes
   11008  1.1  christos 
   11009  1.1  christos fi
   11010  1.1  christos 
   11011  1.1  christos     ;;
   11012  1.1  christos 
   11013  1.1  christos   tpf*)
   11014  1.1  christos     # Don't try to run any link tests for TPF.  We know it's impossible
   11015  1.1  christos     # because TPF is a cross-compiler, and we know how we open DSOs.
   11016  1.1  christos     lt_cv_dlopen=dlopen
   11017  1.1  christos     lt_cv_dlopen_libs=
   11018  1.1  christos     lt_cv_dlopen_self=no
   11019  1.1  christos     ;;
   11020  1.1  christos 
   11021  1.1  christos   *)
   11022  1.1  christos     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11023  1.1  christos if test "x$ac_cv_func_shl_load" = xyes; then :
   11024  1.1  christos   lt_cv_dlopen=shl_load
   11025  1.1  christos else
   11026  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11027  1.1  christos $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11028  1.1  christos if ${ac_cv_lib_dld_shl_load+:} false; then :
   11029  1.1  christos   $as_echo_n "(cached) " >&6
   11030  1.1  christos else
   11031  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11032  1.1  christos LIBS="-ldld  $LIBS"
   11033  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11034  1.1  christos /* end confdefs.h.  */
   11035  1.1  christos 
   11036  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11037  1.1  christos    Use char because int might match the return type of a GCC
   11038  1.1  christos    builtin and then its argument prototype would still apply.  */
   11039  1.1  christos #ifdef __cplusplus
   11040  1.1  christos extern "C"
   11041  1.1  christos #endif
   11042  1.1  christos char shl_load ();
   11043  1.1  christos int
   11044  1.1  christos main ()
   11045  1.1  christos {
   11046  1.1  christos return shl_load ();
   11047  1.1  christos   ;
   11048  1.1  christos   return 0;
   11049  1.1  christos }
   11050  1.1  christos _ACEOF
   11051  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   11052  1.1  christos   ac_cv_lib_dld_shl_load=yes
   11053  1.1  christos else
   11054  1.1  christos   ac_cv_lib_dld_shl_load=no
   11055  1.1  christos fi
   11056  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   11057  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   11058  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11059  1.1  christos fi
   11060  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11061  1.1  christos $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11062  1.1  christos if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11063  1.1  christos   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11064  1.1  christos else
   11065  1.1  christos   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11066  1.1  christos if test "x$ac_cv_func_dlopen" = xyes; then :
   11067  1.1  christos   lt_cv_dlopen=dlopen
   11068  1.1  christos else
   11069  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11070  1.1  christos $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11071  1.1  christos if ${ac_cv_lib_dl_dlopen+:} false; then :
   11072  1.1  christos   $as_echo_n "(cached) " >&6
   11073  1.1  christos else
   11074  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11075  1.1  christos LIBS="-ldl  $LIBS"
   11076  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11077  1.1  christos /* end confdefs.h.  */
   11078  1.1  christos 
   11079  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11080  1.1  christos    Use char because int might match the return type of a GCC
   11081  1.1  christos    builtin and then its argument prototype would still apply.  */
   11082  1.1  christos #ifdef __cplusplus
   11083  1.1  christos extern "C"
   11084  1.1  christos #endif
   11085  1.1  christos char dlopen ();
   11086  1.1  christos int
   11087  1.1  christos main ()
   11088  1.1  christos {
   11089  1.1  christos return dlopen ();
   11090  1.1  christos   ;
   11091  1.1  christos   return 0;
   11092  1.1  christos }
   11093  1.1  christos _ACEOF
   11094  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   11095  1.1  christos   ac_cv_lib_dl_dlopen=yes
   11096  1.1  christos else
   11097  1.1  christos   ac_cv_lib_dl_dlopen=no
   11098  1.1  christos fi
   11099  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   11100  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   11101  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11102  1.1  christos fi
   11103  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11104  1.1  christos $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11105  1.1  christos if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11106  1.1  christos   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11107  1.1  christos else
   11108  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11109  1.1  christos $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11110  1.1  christos if ${ac_cv_lib_svld_dlopen+:} false; then :
   11111  1.1  christos   $as_echo_n "(cached) " >&6
   11112  1.1  christos else
   11113  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11114  1.1  christos LIBS="-lsvld  $LIBS"
   11115  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11116  1.1  christos /* end confdefs.h.  */
   11117  1.1  christos 
   11118  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11119  1.1  christos    Use char because int might match the return type of a GCC
   11120  1.1  christos    builtin and then its argument prototype would still apply.  */
   11121  1.1  christos #ifdef __cplusplus
   11122  1.1  christos extern "C"
   11123  1.1  christos #endif
   11124  1.1  christos char dlopen ();
   11125  1.1  christos int
   11126  1.1  christos main ()
   11127  1.1  christos {
   11128  1.1  christos return dlopen ();
   11129  1.1  christos   ;
   11130  1.1  christos   return 0;
   11131  1.1  christos }
   11132  1.1  christos _ACEOF
   11133  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   11134  1.1  christos   ac_cv_lib_svld_dlopen=yes
   11135  1.1  christos else
   11136  1.1  christos   ac_cv_lib_svld_dlopen=no
   11137  1.1  christos fi
   11138  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   11139  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   11140  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11141  1.1  christos fi
   11142  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11143  1.1  christos $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11144  1.1  christos if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11145  1.1  christos   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11146  1.1  christos else
   11147  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11148  1.1  christos $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11149  1.1  christos if ${ac_cv_lib_dld_dld_link+:} false; then :
   11150  1.1  christos   $as_echo_n "(cached) " >&6
   11151  1.1  christos else
   11152  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11153  1.1  christos LIBS="-ldld  $LIBS"
   11154  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11155  1.1  christos /* end confdefs.h.  */
   11156  1.1  christos 
   11157  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11158  1.1  christos    Use char because int might match the return type of a GCC
   11159  1.1  christos    builtin and then its argument prototype would still apply.  */
   11160  1.1  christos #ifdef __cplusplus
   11161  1.1  christos extern "C"
   11162  1.1  christos #endif
   11163  1.1  christos char dld_link ();
   11164  1.1  christos int
   11165  1.1  christos main ()
   11166  1.1  christos {
   11167  1.1  christos return dld_link ();
   11168  1.1  christos   ;
   11169  1.1  christos   return 0;
   11170  1.1  christos }
   11171  1.1  christos _ACEOF
   11172  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   11173  1.1  christos   ac_cv_lib_dld_dld_link=yes
   11174  1.1  christos else
   11175  1.1  christos   ac_cv_lib_dld_dld_link=no
   11176  1.1  christos fi
   11177  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   11178  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   11179  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11180  1.1  christos fi
   11181  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11182  1.1  christos $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11183  1.1  christos if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11184  1.1  christos   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11185  1.1  christos fi
   11186  1.1  christos 
   11187  1.1  christos 
   11188  1.1  christos fi
   11189  1.1  christos 
   11190  1.1  christos 
   11191  1.1  christos fi
   11192  1.1  christos 
   11193  1.1  christos 
   11194  1.1  christos fi
   11195  1.1  christos 
   11196  1.1  christos 
   11197  1.1  christos fi
   11198  1.1  christos 
   11199  1.1  christos 
   11200  1.1  christos fi
   11201  1.1  christos 
   11202  1.1  christos     ;;
   11203  1.1  christos   esac
   11204  1.1  christos 
   11205  1.1  christos   if test no = "$lt_cv_dlopen"; then
   11206  1.1  christos     enable_dlopen=no
   11207  1.1  christos   else
   11208  1.1  christos     enable_dlopen=yes
   11209  1.1  christos   fi
   11210  1.1  christos 
   11211  1.1  christos   case $lt_cv_dlopen in
   11212  1.1  christos   dlopen)
   11213  1.1  christos     save_CPPFLAGS=$CPPFLAGS
   11214  1.1  christos     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11215  1.1  christos 
   11216  1.1  christos     save_LDFLAGS=$LDFLAGS
   11217  1.1  christos     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11218  1.1  christos 
   11219  1.1  christos     save_LIBS=$LIBS
   11220  1.1  christos     LIBS="$lt_cv_dlopen_libs $LIBS"
   11221  1.1  christos 
   11222  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11223  1.1  christos $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11224  1.1  christos if ${lt_cv_dlopen_self+:} false; then :
   11225  1.1  christos   $as_echo_n "(cached) " >&6
   11226  1.1  christos else
   11227  1.1  christos   	  if test yes = "$cross_compiling"; then :
   11228  1.1  christos   lt_cv_dlopen_self=cross
   11229  1.1  christos else
   11230  1.1  christos   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11231  1.1  christos   lt_status=$lt_dlunknown
   11232  1.1  christos   cat > conftest.$ac_ext <<_LT_EOF
   11233  1.1  christos #line $LINENO "configure"
   11234  1.1  christos #include "confdefs.h"
   11235  1.1  christos 
   11236  1.1  christos #if HAVE_DLFCN_H
   11237  1.1  christos #include <dlfcn.h>
   11238  1.1  christos #endif
   11239  1.1  christos 
   11240  1.1  christos #include <stdio.h>
   11241  1.1  christos 
   11242  1.1  christos #ifdef RTLD_GLOBAL
   11243  1.1  christos #  define LT_DLGLOBAL		RTLD_GLOBAL
   11244  1.1  christos #else
   11245  1.1  christos #  ifdef DL_GLOBAL
   11246  1.1  christos #    define LT_DLGLOBAL		DL_GLOBAL
   11247  1.1  christos #  else
   11248  1.1  christos #    define LT_DLGLOBAL		0
   11249  1.1  christos #  endif
   11250  1.1  christos #endif
   11251  1.1  christos 
   11252  1.1  christos /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11253  1.1  christos    find out it does not work in some platform. */
   11254  1.1  christos #ifndef LT_DLLAZY_OR_NOW
   11255  1.1  christos #  ifdef RTLD_LAZY
   11256  1.1  christos #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11257  1.1  christos #  else
   11258  1.1  christos #    ifdef DL_LAZY
   11259  1.1  christos #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11260  1.1  christos #    else
   11261  1.1  christos #      ifdef RTLD_NOW
   11262  1.1  christos #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11263  1.1  christos #      else
   11264  1.1  christos #        ifdef DL_NOW
   11265  1.1  christos #          define LT_DLLAZY_OR_NOW	DL_NOW
   11266  1.1  christos #        else
   11267  1.1  christos #          define LT_DLLAZY_OR_NOW	0
   11268  1.1  christos #        endif
   11269  1.1  christos #      endif
   11270  1.1  christos #    endif
   11271  1.1  christos #  endif
   11272  1.1  christos #endif
   11273  1.1  christos 
   11274  1.1  christos /* When -fvisibility=hidden is used, assume the code has been annotated
   11275  1.1  christos    correspondingly for the symbols needed.  */
   11276  1.1  christos #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11277  1.1  christos int fnord () __attribute__((visibility("default")));
   11278  1.1  christos #endif
   11279  1.1  christos 
   11280  1.1  christos int fnord () { return 42; }
   11281  1.1  christos int main ()
   11282  1.1  christos {
   11283  1.1  christos   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11284  1.1  christos   int status = $lt_dlunknown;
   11285  1.1  christos 
   11286  1.1  christos   if (self)
   11287  1.1  christos     {
   11288  1.1  christos       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11289  1.1  christos       else
   11290  1.1  christos         {
   11291  1.1  christos 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11292  1.1  christos           else puts (dlerror ());
   11293  1.1  christos 	}
   11294  1.1  christos       /* dlclose (self); */
   11295  1.1  christos     }
   11296  1.1  christos   else
   11297  1.1  christos     puts (dlerror ());
   11298  1.1  christos 
   11299  1.1  christos   return status;
   11300  1.1  christos }
   11301  1.1  christos _LT_EOF
   11302  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11303  1.1  christos   (eval $ac_link) 2>&5
   11304  1.1  christos   ac_status=$?
   11305  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11306  1.1  christos   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11307  1.1  christos     (./conftest; exit; ) >&5 2>/dev/null
   11308  1.1  christos     lt_status=$?
   11309  1.1  christos     case x$lt_status in
   11310  1.1  christos       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11311  1.1  christos       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11312  1.1  christos       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11313  1.1  christos     esac
   11314  1.1  christos   else :
   11315  1.1  christos     # compilation failed
   11316  1.1  christos     lt_cv_dlopen_self=no
   11317  1.1  christos   fi
   11318  1.1  christos fi
   11319  1.1  christos rm -fr conftest*
   11320  1.1  christos 
   11321  1.1  christos 
   11322  1.1  christos fi
   11323  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11324  1.1  christos $as_echo "$lt_cv_dlopen_self" >&6; }
   11325  1.1  christos 
   11326  1.1  christos     if test yes = "$lt_cv_dlopen_self"; then
   11327  1.1  christos       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11328  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11329  1.1  christos $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11330  1.1  christos if ${lt_cv_dlopen_self_static+:} false; then :
   11331  1.1  christos   $as_echo_n "(cached) " >&6
   11332  1.1  christos else
   11333  1.1  christos   	  if test yes = "$cross_compiling"; then :
   11334  1.1  christos   lt_cv_dlopen_self_static=cross
   11335  1.1  christos else
   11336  1.1  christos   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11337  1.1  christos   lt_status=$lt_dlunknown
   11338  1.1  christos   cat > conftest.$ac_ext <<_LT_EOF
   11339  1.1  christos #line $LINENO "configure"
   11340  1.1  christos #include "confdefs.h"
   11341  1.1  christos 
   11342  1.1  christos #if HAVE_DLFCN_H
   11343  1.1  christos #include <dlfcn.h>
   11344  1.1  christos #endif
   11345  1.1  christos 
   11346  1.1  christos #include <stdio.h>
   11347  1.1  christos 
   11348  1.1  christos #ifdef RTLD_GLOBAL
   11349  1.1  christos #  define LT_DLGLOBAL		RTLD_GLOBAL
   11350  1.1  christos #else
   11351  1.1  christos #  ifdef DL_GLOBAL
   11352  1.1  christos #    define LT_DLGLOBAL		DL_GLOBAL
   11353  1.1  christos #  else
   11354  1.1  christos #    define LT_DLGLOBAL		0
   11355  1.1  christos #  endif
   11356  1.1  christos #endif
   11357  1.1  christos 
   11358  1.1  christos /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11359  1.1  christos    find out it does not work in some platform. */
   11360  1.1  christos #ifndef LT_DLLAZY_OR_NOW
   11361  1.1  christos #  ifdef RTLD_LAZY
   11362  1.1  christos #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11363  1.1  christos #  else
   11364  1.1  christos #    ifdef DL_LAZY
   11365  1.1  christos #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11366  1.1  christos #    else
   11367  1.1  christos #      ifdef RTLD_NOW
   11368  1.1  christos #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11369  1.1  christos #      else
   11370  1.1  christos #        ifdef DL_NOW
   11371  1.1  christos #          define LT_DLLAZY_OR_NOW	DL_NOW
   11372  1.1  christos #        else
   11373  1.1  christos #          define LT_DLLAZY_OR_NOW	0
   11374  1.1  christos #        endif
   11375  1.1  christos #      endif
   11376  1.1  christos #    endif
   11377  1.1  christos #  endif
   11378  1.1  christos #endif
   11379  1.1  christos 
   11380  1.1  christos /* When -fvisibility=hidden is used, assume the code has been annotated
   11381  1.1  christos    correspondingly for the symbols needed.  */
   11382  1.1  christos #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11383  1.1  christos int fnord () __attribute__((visibility("default")));
   11384  1.1  christos #endif
   11385  1.1  christos 
   11386  1.1  christos int fnord () { return 42; }
   11387  1.1  christos int main ()
   11388  1.1  christos {
   11389  1.1  christos   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11390  1.1  christos   int status = $lt_dlunknown;
   11391  1.1  christos 
   11392  1.1  christos   if (self)
   11393  1.1  christos     {
   11394  1.1  christos       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11395  1.1  christos       else
   11396  1.1  christos         {
   11397  1.1  christos 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11398  1.1  christos           else puts (dlerror ());
   11399  1.1  christos 	}
   11400  1.1  christos       /* dlclose (self); */
   11401  1.1  christos     }
   11402  1.1  christos   else
   11403  1.1  christos     puts (dlerror ());
   11404  1.1  christos 
   11405  1.1  christos   return status;
   11406  1.1  christos }
   11407  1.1  christos _LT_EOF
   11408  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11409  1.1  christos   (eval $ac_link) 2>&5
   11410  1.1  christos   ac_status=$?
   11411  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11412  1.1  christos   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11413  1.1  christos     (./conftest; exit; ) >&5 2>/dev/null
   11414  1.1  christos     lt_status=$?
   11415  1.1  christos     case x$lt_status in
   11416  1.1  christos       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11417  1.1  christos       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11418  1.1  christos       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11419  1.1  christos     esac
   11420  1.1  christos   else :
   11421  1.1  christos     # compilation failed
   11422  1.1  christos     lt_cv_dlopen_self_static=no
   11423  1.1  christos   fi
   11424  1.1  christos fi
   11425  1.1  christos rm -fr conftest*
   11426  1.1  christos 
   11427  1.1  christos 
   11428  1.1  christos fi
   11429  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11430  1.1  christos $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11431  1.1  christos     fi
   11432  1.1  christos 
   11433  1.1  christos     CPPFLAGS=$save_CPPFLAGS
   11434  1.1  christos     LDFLAGS=$save_LDFLAGS
   11435  1.1  christos     LIBS=$save_LIBS
   11436  1.1  christos     ;;
   11437  1.1  christos   esac
   11438  1.1  christos 
   11439  1.1  christos   case $lt_cv_dlopen_self in
   11440  1.1  christos   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11441  1.1  christos   *) enable_dlopen_self=unknown ;;
   11442  1.1  christos   esac
   11443  1.1  christos 
   11444  1.1  christos   case $lt_cv_dlopen_self_static in
   11445  1.1  christos   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11446  1.1  christos   *) enable_dlopen_self_static=unknown ;;
   11447  1.1  christos   esac
   11448  1.1  christos fi
   11449  1.1  christos 
   11450  1.1  christos 
   11451  1.1  christos 
   11452  1.1  christos 
   11453  1.1  christos 
   11454  1.1  christos 
   11455  1.1  christos 
   11456  1.1  christos 
   11457  1.1  christos 
   11458  1.1  christos 
   11459  1.1  christos 
   11460  1.1  christos 
   11461  1.1  christos 
   11462  1.1  christos 
   11463  1.1  christos 
   11464  1.1  christos 
   11465  1.1  christos 
   11466  1.1  christos striplib=
   11467  1.1  christos old_striplib=
   11468  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11469  1.1  christos $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11470  1.1  christos if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11471  1.1  christos   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11472  1.1  christos   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11473  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11474  1.1  christos $as_echo "yes" >&6; }
   11475  1.1  christos else
   11476  1.1  christos # FIXME - insert some real tests, host_os isn't really good enough
   11477  1.1  christos   case $host_os in
   11478  1.1  christos   darwin*)
   11479  1.1  christos     if test -n "$STRIP"; then
   11480  1.1  christos       striplib="$STRIP -x"
   11481  1.1  christos       old_striplib="$STRIP -S"
   11482  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11483  1.1  christos $as_echo "yes" >&6; }
   11484  1.1  christos     else
   11485  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11486  1.1  christos $as_echo "no" >&6; }
   11487  1.1  christos     fi
   11488  1.1  christos     ;;
   11489  1.1  christos   *)
   11490  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11491  1.1  christos $as_echo "no" >&6; }
   11492  1.1  christos     ;;
   11493  1.1  christos   esac
   11494  1.1  christos fi
   11495  1.1  christos 
   11496  1.1  christos 
   11497  1.1  christos 
   11498  1.1  christos 
   11499  1.1  christos 
   11500  1.1  christos 
   11501  1.1  christos 
   11502  1.1  christos 
   11503  1.1  christos 
   11504  1.1  christos 
   11505  1.1  christos 
   11506  1.1  christos 
   11507  1.1  christos   # Report what library types will actually be built
   11508  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11509  1.1  christos $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11510  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11511  1.1  christos $as_echo "$can_build_shared" >&6; }
   11512  1.1  christos 
   11513  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11514  1.1  christos $as_echo_n "checking whether to build shared libraries... " >&6; }
   11515  1.1  christos   test no = "$can_build_shared" && enable_shared=no
   11516  1.1  christos 
   11517  1.1  christos   # On AIX, shared libraries and static libraries use the same namespace, and
   11518  1.1  christos   # are all built from PIC.
   11519  1.1  christos   case $host_os in
   11520  1.1  christos   aix3*)
   11521  1.1  christos     test yes = "$enable_shared" && enable_static=no
   11522  1.1  christos     if test -n "$RANLIB"; then
   11523  1.1  christos       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11524  1.1  christos       postinstall_cmds='$RANLIB $lib'
   11525  1.1  christos     fi
   11526  1.1  christos     ;;
   11527  1.1  christos 
   11528  1.1  christos   aix[4-9]*)
   11529  1.1  christos     if test ia64 != "$host_cpu"; then
   11530  1.1  christos       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11531  1.1  christos       yes,aix,yes) ;;			# shared object as lib.so file only
   11532  1.1  christos       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11533  1.1  christos       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11534  1.1  christos       esac
   11535  1.1  christos     fi
   11536  1.1  christos     ;;
   11537  1.1  christos   esac
   11538  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11539  1.1  christos $as_echo "$enable_shared" >&6; }
   11540  1.1  christos 
   11541  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11542  1.1  christos $as_echo_n "checking whether to build static libraries... " >&6; }
   11543  1.1  christos   # Make sure either enable_shared or enable_static is yes.
   11544  1.1  christos   test yes = "$enable_shared" || enable_static=yes
   11545  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11546  1.1  christos $as_echo "$enable_static" >&6; }
   11547  1.1  christos 
   11548  1.1  christos 
   11549  1.1  christos 
   11550  1.1  christos 
   11551  1.1  christos fi
   11552  1.1  christos ac_ext=c
   11553  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   11554  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11555  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11556  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11557  1.1  christos 
   11558  1.1  christos CC=$lt_save_CC
   11559  1.1  christos 
   11560  1.1  christos 
   11561  1.1  christos 
   11562  1.1  christos 
   11563  1.1  christos 
   11564  1.1  christos 
   11565  1.1  christos 
   11566  1.1  christos 
   11567  1.1  christos 
   11568  1.1  christos 
   11569  1.1  christos 
   11570  1.1  christos 
   11571  1.1  christos 
   11572  1.1  christos 
   11573  1.1  christos 
   11574  1.1  christos         ac_config_commands="$ac_config_commands libtool"
   11575  1.1  christos 
   11576  1.1  christos 
   11577  1.1  christos 
   11578  1.1  christos 
   11579  1.1  christos # Only expand once:
   11580  1.1  christos 
   11581  1.1  christos 
   11582  1.1  christos # Find a good install program.  We prefer a C program (faster),
   11583  1.1  christos # so one script is as good as another.  But avoid the broken or
   11584  1.1  christos # incompatible versions:
   11585  1.1  christos # SysV /etc/install, /usr/sbin/install
   11586  1.1  christos # SunOS /usr/etc/install
   11587  1.1  christos # IRIX /sbin/install
   11588  1.1  christos # AIX /bin/install
   11589  1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   11590  1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11591  1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11592  1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11593  1.1  christos # OS/2's system install, which has a completely different semantic
   11594  1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   11595  1.1  christos # Reject install programs that cannot install multiple files.
   11596  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   11597  1.1  christos $as_echo_n "checking for a BSD-compatible install... " >&6; }
   11598  1.1  christos if test -z "$INSTALL"; then
   11599  1.1  christos if ${ac_cv_path_install+:} false; then :
   11600  1.1  christos   $as_echo_n "(cached) " >&6
   11601  1.1  christos else
   11602  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11603  1.1  christos for as_dir in $PATH
   11604  1.1  christos do
   11605  1.1  christos   IFS=$as_save_IFS
   11606  1.1  christos   test -z "$as_dir" && as_dir=.
   11607  1.1  christos     # Account for people who put trailing slashes in PATH elements.
   11608  1.1  christos case $as_dir/ in #((
   11609  1.1  christos   ./ | .// | /[cC]/* | \
   11610  1.1  christos   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11611  1.1  christos   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   11612  1.1  christos   /usr/ucb/* ) ;;
   11613  1.1  christos   *)
   11614  1.1  christos     # OSF1 and SCO ODT 3.0 have their own names for install.
   11615  1.1  christos     # Don't use installbsd from OSF since it installs stuff as root
   11616  1.1  christos     # by default.
   11617  1.1  christos     for ac_prog in ginstall scoinst install; do
   11618  1.1  christos       for ac_exec_ext in '' $ac_executable_extensions; do
   11619  1.1  christos 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   11620  1.1  christos 	  if test $ac_prog = install &&
   11621  1.1  christos 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11622  1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   11623  1.1  christos 	    :
   11624  1.1  christos 	  elif test $ac_prog = install &&
   11625  1.1  christos 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11626  1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   11627  1.1  christos 	    :
   11628  1.1  christos 	  else
   11629  1.1  christos 	    rm -rf conftest.one conftest.two conftest.dir
   11630  1.1  christos 	    echo one > conftest.one
   11631  1.1  christos 	    echo two > conftest.two
   11632  1.1  christos 	    mkdir conftest.dir
   11633  1.1  christos 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   11634  1.1  christos 	      test -s conftest.one && test -s conftest.two &&
   11635  1.1  christos 	      test -s conftest.dir/conftest.one &&
   11636  1.1  christos 	      test -s conftest.dir/conftest.two
   11637  1.1  christos 	    then
   11638  1.1  christos 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   11639  1.1  christos 	      break 3
   11640  1.1  christos 	    fi
   11641  1.1  christos 	  fi
   11642  1.1  christos 	fi
   11643  1.1  christos       done
   11644  1.1  christos     done
   11645  1.1  christos     ;;
   11646  1.1  christos esac
   11647  1.1  christos 
   11648  1.1  christos   done
   11649  1.1  christos IFS=$as_save_IFS
   11650  1.1  christos 
   11651  1.1  christos rm -rf conftest.one conftest.two conftest.dir
   11652  1.1  christos 
   11653  1.1  christos fi
   11654  1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   11655  1.1  christos     INSTALL=$ac_cv_path_install
   11656  1.1  christos   else
   11657  1.1  christos     # As a last resort, use the slow shell script.  Don't cache a
   11658  1.1  christos     # value for INSTALL within a source directory, because that will
   11659  1.1  christos     # break other packages using the cache if that directory is
   11660  1.1  christos     # removed, or if the value is a relative name.
   11661  1.1  christos     INSTALL=$ac_install_sh
   11662  1.1  christos   fi
   11663  1.1  christos fi
   11664  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   11665  1.1  christos $as_echo "$INSTALL" >&6; }
   11666  1.1  christos 
   11667  1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   11668  1.1  christos # It thinks the first close brace ends the variable substitution.
   11669  1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   11670  1.1  christos 
   11671  1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   11672  1.1  christos 
   11673  1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   11674  1.1  christos 
   11675  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   11676  1.1  christos $as_echo_n "checking whether ln -s works... " >&6; }
   11677  1.1  christos LN_S=$as_ln_s
   11678  1.1  christos if test "$LN_S" = "ln -s"; then
   11679  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11680  1.1  christos $as_echo "yes" >&6; }
   11681  1.1  christos else
   11682  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   11683  1.1  christos $as_echo "no, using $LN_S" >&6; }
   11684  1.1  christos fi
   11685  1.1  christos 
   11686  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   11687  1.3  christos $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   11688  1.3  christos if ${ac_cv_prog_shell+:} false; then :
   11689  1.3  christos   $as_echo_n "(cached) " >&6
   11690  1.3  christos else
   11691  1.3  christos   ac_test_shell_script='
   11692  1.3  christos 			  test "$(expr 1 + 1)" = "2" &&
   11693  1.3  christos 			  test "$(( 1 + 1 ))" = "2"
   11694  1.3  christos 			  '
   11695  1.3  christos 
   11696  1.3  christos 			  for ac_cv_prog_shell in \
   11697  1.3  christos 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   11698  1.3  christos 			    case $ac_cv_prog_shell in #(
   11699  1.3  christos   /*) :
   11700  1.3  christos 
   11701  1.3  christos 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   11702  1.3  christos   ac_cv_path_shell=$SHELL
   11703  1.3  christos fi
   11704  1.3  christos 				     ;; #(
   11705  1.3  christos   *) :
   11706  1.3  christos      ;;
   11707  1.3  christos esac
   11708  1.3  christos 			  done
   11709  1.3  christos 
   11710  1.3  christos fi
   11711  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   11712  1.3  christos $as_echo "$ac_cv_prog_shell" >&6; }
   11713  1.3  christos 	  if test "$ac_cv_prog_shell" = "no"; then :
   11714  1.3  christos   SHELL=/bin/sh
   11715  1.3  christos 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   11716  1.3  christos $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   11717  1.3  christos 
   11718  1.3  christos else
   11719  1.3  christos   SHELL="$ac_cv_prog_shell"
   11720  1.3  christos 
   11721  1.3  christos fi
   11722  1.3  christos 
   11723  1.3  christos 
   11724  1.3  christos 
   11725  1.3  christos 
   11726  1.3  christos 
   11727  1.3  christos 
   11728  1.3  christos 
   11729  1.3  christos 
   11730  1.3  christos 
   11731  1.3  christos 
   11732  1.3  christos #
   11733  1.3  christos # Use pkg-config
   11734  1.3  christos #
   11735  1.3  christos 
   11736  1.3  christos 
   11737  1.3  christos 
   11738  1.3  christos 
   11739  1.3  christos 
   11740  1.3  christos 
   11741  1.3  christos 
   11742  1.1  christos 
   11743  1.3  christos if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   11744  1.3  christos 	if test -n "$ac_tool_prefix"; then
   11745  1.3  christos   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   11746  1.3  christos set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   11747  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11748  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   11749  1.3  christos if ${ac_cv_path_PKG_CONFIG+:} false; then :
   11750  1.3  christos   $as_echo_n "(cached) " >&6
   11751  1.3  christos else
   11752  1.3  christos   case $PKG_CONFIG in
   11753  1.3  christos   [\\/]* | ?:[\\/]*)
   11754  1.3  christos   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   11755  1.3  christos   ;;
   11756  1.3  christos   *)
   11757  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11758  1.3  christos for as_dir in $PATH
   11759  1.3  christos do
   11760  1.3  christos   IFS=$as_save_IFS
   11761  1.3  christos   test -z "$as_dir" && as_dir=.
   11762  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   11763  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11764  1.3  christos     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11765  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11766  1.3  christos     break 2
   11767  1.3  christos   fi
   11768  1.3  christos done
   11769  1.3  christos   done
   11770  1.3  christos IFS=$as_save_IFS
   11771  1.1  christos 
   11772  1.3  christos   ;;
   11773  1.3  christos esac
   11774  1.3  christos fi
   11775  1.3  christos PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   11776  1.3  christos if test -n "$PKG_CONFIG"; then
   11777  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   11778  1.3  christos $as_echo "$PKG_CONFIG" >&6; }
   11779  1.3  christos else
   11780  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11781  1.3  christos $as_echo "no" >&6; }
   11782  1.3  christos fi
   11783  1.1  christos 
   11784  1.1  christos 
   11785  1.3  christos fi
   11786  1.3  christos if test -z "$ac_cv_path_PKG_CONFIG"; then
   11787  1.3  christos   ac_pt_PKG_CONFIG=$PKG_CONFIG
   11788  1.3  christos   # Extract the first word of "pkg-config", so it can be a program name with args.
   11789  1.3  christos set dummy pkg-config; ac_word=$2
   11790  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11791  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   11792  1.3  christos if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   11793  1.3  christos   $as_echo_n "(cached) " >&6
   11794  1.3  christos else
   11795  1.3  christos   case $ac_pt_PKG_CONFIG in
   11796  1.3  christos   [\\/]* | ?:[\\/]*)
   11797  1.3  christos   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   11798  1.3  christos   ;;
   11799  1.3  christos   *)
   11800  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11801  1.3  christos for as_dir in $PATH
   11802  1.3  christos do
   11803  1.3  christos   IFS=$as_save_IFS
   11804  1.3  christos   test -z "$as_dir" && as_dir=.
   11805  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   11806  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11807  1.3  christos     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11808  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11809  1.3  christos     break 2
   11810  1.3  christos   fi
   11811  1.3  christos done
   11812  1.3  christos   done
   11813  1.3  christos IFS=$as_save_IFS
   11814  1.1  christos 
   11815  1.3  christos   ;;
   11816  1.3  christos esac
   11817  1.3  christos fi
   11818  1.3  christos ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   11819  1.3  christos if test -n "$ac_pt_PKG_CONFIG"; then
   11820  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   11821  1.3  christos $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   11822  1.3  christos else
   11823  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11824  1.3  christos $as_echo "no" >&6; }
   11825  1.3  christos fi
   11826  1.1  christos 
   11827  1.3  christos   if test "x$ac_pt_PKG_CONFIG" = x; then
   11828  1.3  christos     PKG_CONFIG=""
   11829  1.3  christos   else
   11830  1.3  christos     case $cross_compiling:$ac_tool_warned in
   11831  1.3  christos yes:)
   11832  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   11833  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   11834  1.3  christos ac_tool_warned=yes ;;
   11835  1.3  christos esac
   11836  1.3  christos     PKG_CONFIG=$ac_pt_PKG_CONFIG
   11837  1.3  christos   fi
   11838  1.3  christos else
   11839  1.3  christos   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   11840  1.3  christos fi
   11841  1.1  christos 
   11842  1.3  christos fi
   11843  1.3  christos if test -n "$PKG_CONFIG"; then
   11844  1.3  christos 	_pkg_min_version=0.9.0
   11845  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   11846  1.3  christos $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   11847  1.3  christos 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   11848  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11849  1.3  christos $as_echo "yes" >&6; }
   11850  1.3  christos 	else
   11851  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11852  1.3  christos $as_echo "no" >&6; }
   11853  1.3  christos 		PKG_CONFIG=""
   11854  1.3  christos 	fi
   11855  1.3  christos fi
   11856  1.1  christos 
   11857  1.1  christos # Warn if the user specified libbind, which is now deprecated
   11858  1.1  christos # Check whether --enable-libbind was given.
   11859  1.1  christos if test "${enable_libbind+set}" = set; then :
   11860  1.1  christos   enableval=$enable_libbind;
   11861  1.1  christos fi
   11862  1.1  christos 
   11863  1.1  christos 
   11864  1.1  christos case "$enable_libbind" in
   11865  1.1  christos 	yes)
   11866  1.1  christos 		as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
   11867  1.1  christos It is available from http://www.isc.org as a separate download." "$LINENO" 5
   11868  1.1  christos 		;;
   11869  1.1  christos 	no|'')
   11870  1.1  christos 		;;
   11871  1.1  christos esac
   11872  1.1  christos 
   11873  1.1  christos # Check whether --enable-buffer_useinline was given.
   11874  1.1  christos if test "${enable_buffer_useinline+set}" = set; then :
   11875  1.1  christos   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   11876  1.1  christos 	      then
   11877  1.1  christos 
   11878  1.1  christos $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11879  1.1  christos 
   11880  1.1  christos 	      fi
   11881  1.1  christos else
   11882  1.1  christos   $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11883  1.1  christos 
   11884  1.1  christos fi
   11885  1.1  christos 
   11886  1.1  christos 
   11887  1.1  christos # Check whether --enable-warn_shadow was given.
   11888  1.1  christos if test "${enable_warn_shadow+set}" = set; then :
   11889  1.1  christos   enableval=$enable_warn_shadow;
   11890  1.1  christos fi
   11891  1.1  christos 
   11892  1.1  christos 
   11893  1.1  christos # Check whether --enable-warn_error was given.
   11894  1.1  christos if test "${enable_warn_error+set}" = set; then :
   11895  1.1  christos   enableval=$enable_warn_error;
   11896  1.1  christos fi
   11897  1.1  christos 
   11898  1.1  christos 
   11899  1.1  christos # Check whether --enable-developer was given.
   11900  1.1  christos if test "${enable_developer+set}" = set; then :
   11901  1.1  christos   enableval=$enable_developer;
   11902  1.1  christos fi
   11903  1.1  christos 
   11904  1.1  christos XTARGETS=
   11905  1.1  christos case "$enable_developer" in
   11906  1.1  christos yes)
   11907  1.3  christos 	STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   11908  1.1  christos 	test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   11909  1.1  christos 	test "${enable_querytrace+set}" = set || enable_querytrace=yes
   11910  1.3  christos 	test "${with_cmocka+set}" = set || with_cmocka=yes
   11911  1.1  christos 	test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   11912  1.1  christos 	test "${enable_symtable+set}" = set || enable_symtable=all
   11913  1.1  christos 	test "${enable_warn_error+set}" = set || enable_warn_error=yes
   11914  1.1  christos 	test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   11915  1.1  christos 	test "${with_zlib+set}" = set || with_zlib=yes
   11916  1.1  christos 	XTARGETS='${XTARGETS}'
   11917  1.1  christos 	;;
   11918  1.1  christos esac
   11919  1.1  christos 
   11920  1.1  christos 
   11921  1.3  christos # Check whether --enable-fuzzing was given.
   11922  1.3  christos if test "${enable_fuzzing+set}" = set; then :
   11923  1.3  christos   enableval=$enable_fuzzing;
   11924  1.3  christos else
   11925  1.3  christos   enable_fuzzing=no
   11926  1.1  christos fi
   11927  1.1  christos 
   11928  1.1  christos 
   11929  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   11930  1.3  christos $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   11931  1.3  christos case $enable_fuzzing in #(
   11932  1.3  christos   no) :
   11933  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11934  1.3  christos $as_echo "no" >&6; } ;; #(
   11935  1.3  christos   afl) :
   11936  1.1  christos 
   11937  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   11938  1.3  christos $as_echo "using AFL" >&6; }
   11939  1.1  christos 
   11940  1.3  christos $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   11941  1.1  christos 
   11942  1.3  christos 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   11943  1.3  christos 	  LIBS="$LIBS -lpthread" ;; #(
   11944  1.3  christos   libfuzzer) :
   11945  1.3  christos 
   11946  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   11947  1.3  christos $as_echo "using libFuzzer" >&6; }
   11948  1.3  christos 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   11949  1.3  christos 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   11950  1.3  christos   *) :
   11951  1.3  christos     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   11952  1.3  christos   *) :
   11953  1.3  christos      ;;
   11954  1.3  christos esac
   11955  1.1  christos 
   11956  1.3  christos if test "$enable_fuzzing" = "afl"; then :
   11957  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   11958  1.3  christos $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   11959  1.3  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11960  1.1  christos /* end confdefs.h.  */
   11961  1.1  christos 
   11962  1.1  christos int
   11963  1.1  christos main ()
   11964  1.1  christos {
   11965  1.3  christos #ifndef __AFL_COMPILER
   11966  1.3  christos 					   #error AFL compiler required
   11967  1.3  christos 					   #endif
   11968  1.3  christos 
   11969  1.1  christos   ;
   11970  1.1  christos   return 0;
   11971  1.1  christos }
   11972  1.1  christos _ACEOF
   11973  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   11974  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11975  1.3  christos $as_echo "yes" >&6; }
   11976  1.3  christos else
   11977  1.3  christos   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   11978  1.1  christos fi
   11979  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11980  1.3  christos 
   11981  1.1  christos fi
   11982  1.1  christos 
   11983  1.3  christos #
   11984  1.3  christos # Make very sure that these are the first files processed by
   11985  1.1  christos # config.status, since we use the processed output as the input for
   11986  1.1  christos # AC_SUBST_FILE() substitutions in other files.
   11987  1.1  christos #
   11988  1.1  christos ac_config_files="$ac_config_files make/rules make/includes"
   11989  1.1  christos 
   11990  1.1  christos 
   11991  1.1  christos # Extract the first word of "ar", so it can be a program name with args.
   11992  1.1  christos set dummy ar; ac_word=$2
   11993  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11994  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   11995  1.1  christos if ${ac_cv_path_AR+:} false; then :
   11996  1.1  christos   $as_echo_n "(cached) " >&6
   11997  1.1  christos else
   11998  1.1  christos   case $AR in
   11999  1.1  christos   [\\/]* | ?:[\\/]*)
   12000  1.1  christos   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   12001  1.1  christos   ;;
   12002  1.1  christos   *)
   12003  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12004  1.1  christos for as_dir in $PATH
   12005  1.1  christos do
   12006  1.1  christos   IFS=$as_save_IFS
   12007  1.1  christos   test -z "$as_dir" && as_dir=.
   12008  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12009  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12010  1.1  christos     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12011  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12012  1.1  christos     break 2
   12013  1.1  christos   fi
   12014  1.1  christos done
   12015  1.1  christos   done
   12016  1.1  christos IFS=$as_save_IFS
   12017  1.1  christos 
   12018  1.1  christos   ;;
   12019  1.1  christos esac
   12020  1.1  christos fi
   12021  1.1  christos AR=$ac_cv_path_AR
   12022  1.1  christos if test -n "$AR"; then
   12023  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12024  1.1  christos $as_echo "$AR" >&6; }
   12025  1.1  christos else
   12026  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12027  1.1  christos $as_echo "no" >&6; }
   12028  1.1  christos fi
   12029  1.1  christos 
   12030  1.1  christos 
   12031  1.1  christos ARFLAGS="cruv"
   12032  1.1  christos 
   12033  1.1  christos 
   12034  1.1  christos 
   12035  1.1  christos # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12036  1.1  christos # "copy" or something.
   12037  1.1  christos LN=ln
   12038  1.1  christos 
   12039  1.1  christos 
   12040  1.1  christos case "$AR" in
   12041  1.1  christos 	"")
   12042  1.1  christos 		as_fn_error $? "
   12043  1.1  christos ar program not found.  Please fix your PATH to include the directory in
   12044  1.1  christos which ar resides, or set AR in the environment with the full path to ar.
   12045  1.1  christos " "$LINENO" 5
   12046  1.1  christos 
   12047  1.1  christos 		;;
   12048  1.1  christos esac
   12049  1.1  christos 
   12050  1.1  christos #
   12051  1.1  christos # Etags.
   12052  1.1  christos #
   12053  1.1  christos for ac_prog in etags emacs-etags
   12054  1.1  christos do
   12055  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12056  1.1  christos set dummy $ac_prog; ac_word=$2
   12057  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12058  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12059  1.1  christos if ${ac_cv_path_ETAGS+:} false; then :
   12060  1.1  christos   $as_echo_n "(cached) " >&6
   12061  1.1  christos else
   12062  1.1  christos   case $ETAGS in
   12063  1.1  christos   [\\/]* | ?:[\\/]*)
   12064  1.1  christos   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
   12065  1.1  christos   ;;
   12066  1.1  christos   *)
   12067  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12068  1.1  christos for as_dir in $PATH
   12069  1.1  christos do
   12070  1.1  christos   IFS=$as_save_IFS
   12071  1.1  christos   test -z "$as_dir" && as_dir=.
   12072  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12073  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12074  1.1  christos     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
   12075  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12076  1.1  christos     break 2
   12077  1.1  christos   fi
   12078  1.1  christos done
   12079  1.1  christos   done
   12080  1.1  christos IFS=$as_save_IFS
   12081  1.1  christos 
   12082  1.1  christos   ;;
   12083  1.1  christos esac
   12084  1.1  christos fi
   12085  1.1  christos ETAGS=$ac_cv_path_ETAGS
   12086  1.1  christos if test -n "$ETAGS"; then
   12087  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
   12088  1.1  christos $as_echo "$ETAGS" >&6; }
   12089  1.1  christos else
   12090  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12091  1.1  christos $as_echo "no" >&6; }
   12092  1.1  christos fi
   12093  1.1  christos 
   12094  1.1  christos 
   12095  1.1  christos   test -n "$ETAGS" && break
   12096  1.1  christos done
   12097  1.1  christos 
   12098  1.1  christos 
   12099  1.1  christos #
   12100  1.1  christos # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
   12101  1.1  christos # GNU emacs etags, and it requires the -L flag.
   12102  1.1  christos #
   12103  1.1  christos if test "X$ETAGS" != "X"; then
   12104  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
   12105  1.1  christos $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
   12106  1.1  christos 	if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
   12107  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12108  1.1  christos $as_echo "yes" >&6; }
   12109  1.1  christos 		ETAGS="$ETAGS -L"
   12110  1.1  christos 	else
   12111  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12112  1.1  christos $as_echo "no" >&6; }
   12113  1.1  christos 	fi
   12114  1.1  christos fi
   12115  1.1  christos 
   12116  1.1  christos 
   12117  1.1  christos #
   12118  1.1  christos # Perl is optional; it is used only by some of the system test scripts.
   12119  1.1  christos # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12120  1.1  christos # but it still compiles without perl, in which case an empty table will be used.
   12121  1.1  christos #
   12122  1.1  christos for ac_prog in perl5 perl
   12123  1.1  christos do
   12124  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12125  1.1  christos set dummy $ac_prog; ac_word=$2
   12126  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12127  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12128  1.1  christos if ${ac_cv_path_PERL+:} false; then :
   12129  1.1  christos   $as_echo_n "(cached) " >&6
   12130  1.1  christos else
   12131  1.1  christos   case $PERL in
   12132  1.1  christos   [\\/]* | ?:[\\/]*)
   12133  1.1  christos   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12134  1.1  christos   ;;
   12135  1.1  christos   *)
   12136  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12137  1.1  christos for as_dir in $PATH
   12138  1.1  christos do
   12139  1.1  christos   IFS=$as_save_IFS
   12140  1.1  christos   test -z "$as_dir" && as_dir=.
   12141  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12142  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12143  1.1  christos     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12144  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12145  1.1  christos     break 2
   12146  1.1  christos   fi
   12147  1.1  christos done
   12148  1.1  christos   done
   12149  1.1  christos IFS=$as_save_IFS
   12150  1.1  christos 
   12151  1.1  christos   ;;
   12152  1.1  christos esac
   12153  1.1  christos fi
   12154  1.1  christos PERL=$ac_cv_path_PERL
   12155  1.1  christos if test -n "$PERL"; then
   12156  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12157  1.1  christos $as_echo "$PERL" >&6; }
   12158  1.1  christos else
   12159  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12160  1.1  christos $as_echo "no" >&6; }
   12161  1.1  christos fi
   12162  1.1  christos 
   12163  1.1  christos 
   12164  1.1  christos   test -n "$PERL" && break
   12165  1.1  christos done
   12166  1.1  christos 
   12167  1.1  christos 
   12168  1.1  christos 
   12169  1.1  christos #
   12170  1.3  christos # Python is also optional but required by default so that dnssec-keymgr gets
   12171  1.3  christos # installed unless explicitly prevented by the user using --without-python.
   12172  1.1  christos #
   12173  1.3  christos testminvers='import sys
   12174  1.3  christos if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12175  1.3  christos    exit(1)'
   12176  1.3  christos 
   12177  1.3  christos testargparse='try: import argparse
   12178  1.3  christos except: exit(1)'
   12179  1.3  christos 
   12180  1.3  christos testply='try: import ply
   12181  1.3  christos except: exit(1)'
   12182  1.3  christos 
   12183  1.1  christos 
   12184  1.1  christos # Check whether --with-python was given.
   12185  1.1  christos if test "${with_python+set}" = set; then :
   12186  1.3  christos   withval=$with_python;
   12187  1.1  christos else
   12188  1.3  christos   with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12189  1.1  christos fi
   12190  1.1  christos 
   12191  1.1  christos 
   12192  1.1  christos # Check whether --with-python-install-dir was given.
   12193  1.1  christos if test "${with_python_install_dir+set}" = set; then :
   12194  1.3  christos   withval=$with_python_install_dir;
   12195  1.1  christos else
   12196  1.3  christos   with_python_install_dir=""
   12197  1.1  christos fi
   12198  1.1  christos 
   12199  1.1  christos 
   12200  1.3  christos if test "$with_python" = "no"; then :
   12201  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12202  1.3  christos $as_echo_n "checking for Python support... " >&6; }
   12203  1.3  christos        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12204  1.3  christos $as_echo "disabled" >&6; }
   12205  1.3  christos else
   12206  1.3  christos   for p in $with_python
   12207  1.3  christos        do
   12208  1.3  christos 	 case $p in #(
   12209  1.3  christos   /*) :
   12210  1.3  christos     PYTHON="$p" ;; #(
   12211  1.3  christos   *) :
   12212  1.3  christos      ;;
   12213  1.3  christos esac
   12214  1.1  christos 
   12215  1.3  christos 	 # Extract the first word of "$p", so it can be a program name with args.
   12216  1.3  christos set dummy $p; ac_word=$2
   12217  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12218  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12219  1.1  christos if ${ac_cv_path_PYTHON+:} false; then :
   12220  1.1  christos   $as_echo_n "(cached) " >&6
   12221  1.1  christos else
   12222  1.1  christos   case $PYTHON in
   12223  1.1  christos   [\\/]* | ?:[\\/]*)
   12224  1.1  christos   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12225  1.1  christos   ;;
   12226  1.1  christos   *)
   12227  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12228  1.1  christos for as_dir in $PATH
   12229  1.1  christos do
   12230  1.1  christos   IFS=$as_save_IFS
   12231  1.1  christos   test -z "$as_dir" && as_dir=.
   12232  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12233  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12234  1.1  christos     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12235  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12236  1.1  christos     break 2
   12237  1.1  christos   fi
   12238  1.1  christos done
   12239  1.1  christos   done
   12240  1.1  christos IFS=$as_save_IFS
   12241  1.1  christos 
   12242  1.1  christos   ;;
   12243  1.1  christos esac
   12244  1.1  christos fi
   12245  1.1  christos PYTHON=$ac_cv_path_PYTHON
   12246  1.1  christos if test -n "$PYTHON"; then
   12247  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12248  1.1  christos $as_echo "$PYTHON" >&6; }
   12249  1.1  christos else
   12250  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12251  1.1  christos $as_echo "no" >&6; }
   12252  1.1  christos fi
   12253  1.1  christos 
   12254  1.1  christos 
   12255  1.3  christos 	 # Do not cache the result of the check from the previous line.  If the
   12256  1.3  christos 	 # first found Python interpreter has missing module dependencies and
   12257  1.3  christos 	 # the result of the above check is cached, subsequent module checks
   12258  1.3  christos 	 # will erroneously keep on using the cached path to the first found
   12259  1.3  christos 	 # Python interpreter instead of different ones.
   12260  1.3  christos 	 unset ac_cv_path_PYTHON
   12261  1.3  christos 
   12262  1.3  christos 	 if test -z "$PYTHON"; then :
   12263  1.3  christos   continue
   12264  1.3  christos fi
   12265  1.1  christos 
   12266  1.3  christos 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12267  1.3  christos $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12268  1.3  christos 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12269  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12270  1.3  christos $as_echo "yes" >&6; }
   12271  1.3  christos else
   12272  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12273  1.3  christos $as_echo "no" >&6; }
   12274  1.3  christos 		unset PYTHON
   12275  1.3  christos 		continue
   12276  1.3  christos fi
   12277  1.1  christos 
   12278  1.3  christos 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12279  1.3  christos $as_echo_n "checking Python module 'argparse'... " >&6; }
   12280  1.3  christos 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12281  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12282  1.3  christos $as_echo "yes" >&6; }
   12283  1.1  christos else
   12284  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12285  1.3  christos $as_echo "no" >&6; }
   12286  1.3  christos 		unset PYTHON
   12287  1.3  christos 		continue
   12288  1.3  christos fi
   12289  1.1  christos 
   12290  1.3  christos 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12291  1.3  christos $as_echo_n "checking Python module 'ply'... " >&6; }
   12292  1.3  christos 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12293  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12294  1.3  christos $as_echo "yes" >&6; }
   12295  1.1  christos else
   12296  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12297  1.1  christos $as_echo "no" >&6; }
   12298  1.3  christos 		unset PYTHON
   12299  1.3  christos 		continue
   12300  1.1  christos fi
   12301  1.1  christos 
   12302  1.3  christos 	 # Stop looking any further once we find a Python interpreter
   12303  1.3  christos 	 # satisfying all requirements.
   12304  1.3  christos 	 break
   12305  1.3  christos        done
   12306  1.1  christos 
   12307  1.3  christos        if test "X$PYTHON" = "X"; then :
   12308  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12309  1.3  christos $as_echo_n "checking for Python support... " >&6; }
   12310  1.3  christos 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12311  1.3  christos $as_echo "no" >&6; }
   12312  1.3  christos 	      as_fn_error $? "Python required for dnssec-keymgr" "$LINENO" 5
   12313  1.3  christos fi
   12314  1.3  christos fi
   12315  1.1  christos 
   12316  1.1  christos PYTHON_TOOLS=''
   12317  1.1  christos CHECKDS=''
   12318  1.1  christos COVERAGE=''
   12319  1.1  christos KEYMGR=''
   12320  1.3  christos if test "X$PYTHON" != "X"; then :
   12321  1.3  christos   PYTHON_TOOLS=python
   12322  1.3  christos        CHECKDS=checkds
   12323  1.3  christos        COVERAGE=coverage
   12324  1.3  christos        KEYMGR=keymgr
   12325  1.3  christos        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12326  1.3  christos        if test -n "$with_python_install_dir"; then :
   12327  1.3  christos   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12328  1.3  christos fi
   12329  1.1  christos fi
   12330  1.1  christos 
   12331  1.1  christos 
   12332  1.1  christos 
   12333  1.1  christos 
   12334  1.1  christos 
   12335  1.1  christos 
   12336  1.1  christos 
   12337  1.1  christos #
   12338  1.1  christos # Special processing of paths depending on whether --prefix,
   12339  1.1  christos # --sysconfdir or --localstatedir arguments were given.  What's
   12340  1.1  christos # desired is some compatibility with the way previous versions
   12341  1.1  christos # of BIND built; they defaulted to /usr/local for most parts of
   12342  1.1  christos # the installation, but named.boot/named.conf was in /etc
   12343  1.1  christos # and named.pid was in /var/run.
   12344  1.1  christos #
   12345  1.1  christos # So ... if none of --prefix, --sysconfdir or --localstatedir are
   12346  1.1  christos # specified, set things up that way.  If --prefix is given, use
   12347  1.1  christos # it for sysconfdir and localstatedir the way configure normally
   12348  1.1  christos # would.  To change the prefix for everything but leave named.conf
   12349  1.1  christos # in /etc or named.pid in /var/run, then do this the usual configure way:
   12350  1.1  christos # ./configure --prefix=/somewhere --sysconfdir=/etc
   12351  1.1  christos # ./configure --prefix=/somewhere --localstatedir=/var
   12352  1.1  christos #
   12353  1.1  christos # To put named.conf and named.pid in /usr/local with everything else,
   12354  1.1  christos # set the prefix explicitly to /usr/local even though that's the default:
   12355  1.1  christos # ./configure --prefix=/usr/local
   12356  1.1  christos #
   12357  1.1  christos case "$prefix" in
   12358  1.1  christos 	NONE)
   12359  1.1  christos 		case "$sysconfdir" in
   12360  1.1  christos 			'${prefix}/etc')
   12361  1.1  christos 				sysconfdir=/etc
   12362  1.1  christos 				;;
   12363  1.1  christos 		esac
   12364  1.1  christos 		case "$localstatedir" in
   12365  1.1  christos 			'${prefix}/var')
   12366  1.1  christos 				localstatedir=/var
   12367  1.1  christos 				;;
   12368  1.1  christos 		esac
   12369  1.1  christos 		;;
   12370  1.1  christos esac
   12371  1.1  christos expanded_sysconfdir=`eval echo $sysconfdir`
   12372  1.1  christos 
   12373  1.1  christos 
   12374  1.1  christos #
   12375  1.1  christos # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12376  1.1  christos # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12377  1.1  christos # configure based on the location of the file where it is substituted.
   12378  1.1  christos # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12379  1.1  christos # subdirectory of install-sh, This relative path will be wrong for all
   12380  1.1  christos # directories more than one level down from install-sh.
   12381  1.1  christos #
   12382  1.1  christos case "$INSTALL" in
   12383  1.1  christos 	/*)
   12384  1.1  christos 		;;
   12385  1.1  christos 	*)
   12386  1.1  christos 		#
   12387  1.1  christos 		# Not all systems have dirname.
   12388  1.1  christos 		#
   12389  1.1  christos 
   12390  1.1  christos 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12391  1.1  christos 
   12392  1.1  christos 
   12393  1.1  christos 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12394  1.1  christos 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12395  1.1  christos 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12396  1.1  christos 		INSTALL="$ac_dir/$ac_prog"
   12397  1.1  christos 		;;
   12398  1.1  christos esac
   12399  1.1  christos 
   12400  1.1  christos ac_ext=c
   12401  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   12402  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12403  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12404  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12405  1.1  christos if test -n "$ac_tool_prefix"; then
   12406  1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12407  1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12408  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12409  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12410  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   12411  1.1  christos   $as_echo_n "(cached) " >&6
   12412  1.1  christos else
   12413  1.1  christos   if test -n "$CC"; then
   12414  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   12415  1.1  christos else
   12416  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12417  1.1  christos for as_dir in $PATH
   12418  1.1  christos do
   12419  1.1  christos   IFS=$as_save_IFS
   12420  1.1  christos   test -z "$as_dir" && as_dir=.
   12421  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12422  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12423  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12424  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12425  1.1  christos     break 2
   12426  1.1  christos   fi
   12427  1.1  christos done
   12428  1.1  christos   done
   12429  1.1  christos IFS=$as_save_IFS
   12430  1.1  christos 
   12431  1.1  christos fi
   12432  1.1  christos fi
   12433  1.1  christos CC=$ac_cv_prog_CC
   12434  1.1  christos if test -n "$CC"; then
   12435  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12436  1.1  christos $as_echo "$CC" >&6; }
   12437  1.1  christos else
   12438  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12439  1.1  christos $as_echo "no" >&6; }
   12440  1.1  christos fi
   12441  1.1  christos 
   12442  1.1  christos 
   12443  1.1  christos fi
   12444  1.1  christos if test -z "$ac_cv_prog_CC"; then
   12445  1.1  christos   ac_ct_CC=$CC
   12446  1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   12447  1.1  christos set dummy gcc; ac_word=$2
   12448  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12449  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12450  1.1  christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12451  1.1  christos   $as_echo_n "(cached) " >&6
   12452  1.1  christos else
   12453  1.1  christos   if test -n "$ac_ct_CC"; then
   12454  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12455  1.1  christos else
   12456  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12457  1.1  christos for as_dir in $PATH
   12458  1.1  christos do
   12459  1.1  christos   IFS=$as_save_IFS
   12460  1.1  christos   test -z "$as_dir" && as_dir=.
   12461  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12462  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12463  1.1  christos     ac_cv_prog_ac_ct_CC="gcc"
   12464  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12465  1.1  christos     break 2
   12466  1.1  christos   fi
   12467  1.1  christos done
   12468  1.1  christos   done
   12469  1.1  christos IFS=$as_save_IFS
   12470  1.1  christos 
   12471  1.1  christos fi
   12472  1.1  christos fi
   12473  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12474  1.1  christos if test -n "$ac_ct_CC"; then
   12475  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12476  1.1  christos $as_echo "$ac_ct_CC" >&6; }
   12477  1.1  christos else
   12478  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12479  1.1  christos $as_echo "no" >&6; }
   12480  1.1  christos fi
   12481  1.1  christos 
   12482  1.1  christos   if test "x$ac_ct_CC" = x; then
   12483  1.1  christos     CC=""
   12484  1.1  christos   else
   12485  1.1  christos     case $cross_compiling:$ac_tool_warned in
   12486  1.1  christos yes:)
   12487  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12488  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12489  1.1  christos ac_tool_warned=yes ;;
   12490  1.1  christos esac
   12491  1.1  christos     CC=$ac_ct_CC
   12492  1.1  christos   fi
   12493  1.1  christos else
   12494  1.1  christos   CC="$ac_cv_prog_CC"
   12495  1.1  christos fi
   12496  1.1  christos 
   12497  1.1  christos if test -z "$CC"; then
   12498  1.1  christos           if test -n "$ac_tool_prefix"; then
   12499  1.1  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   12500  1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   12501  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12502  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12503  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   12504  1.1  christos   $as_echo_n "(cached) " >&6
   12505  1.1  christos else
   12506  1.1  christos   if test -n "$CC"; then
   12507  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   12508  1.1  christos else
   12509  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12510  1.1  christos for as_dir in $PATH
   12511  1.1  christos do
   12512  1.1  christos   IFS=$as_save_IFS
   12513  1.1  christos   test -z "$as_dir" && as_dir=.
   12514  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12515  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12516  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   12517  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12518  1.1  christos     break 2
   12519  1.1  christos   fi
   12520  1.1  christos done
   12521  1.1  christos   done
   12522  1.1  christos IFS=$as_save_IFS
   12523  1.1  christos 
   12524  1.3  christos fi
   12525  1.3  christos fi
   12526  1.3  christos CC=$ac_cv_prog_CC
   12527  1.3  christos if test -n "$CC"; then
   12528  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12529  1.3  christos $as_echo "$CC" >&6; }
   12530  1.1  christos else
   12531  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12532  1.3  christos $as_echo "no" >&6; }
   12533  1.1  christos fi
   12534  1.1  christos 
   12535  1.1  christos 
   12536  1.3  christos   fi
   12537  1.3  christos fi
   12538  1.3  christos if test -z "$CC"; then
   12539  1.3  christos   # Extract the first word of "cc", so it can be a program name with args.
   12540  1.3  christos set dummy cc; ac_word=$2
   12541  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12542  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   12543  1.3  christos if ${ac_cv_prog_CC+:} false; then :
   12544  1.1  christos   $as_echo_n "(cached) " >&6
   12545  1.1  christos else
   12546  1.3  christos   if test -n "$CC"; then
   12547  1.3  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   12548  1.1  christos else
   12549  1.3  christos   ac_prog_rejected=no
   12550  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12551  1.3  christos for as_dir in $PATH
   12552  1.3  christos do
   12553  1.3  christos   IFS=$as_save_IFS
   12554  1.3  christos   test -z "$as_dir" && as_dir=.
   12555  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12556  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12557  1.3  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   12558  1.3  christos        ac_prog_rejected=yes
   12559  1.3  christos        continue
   12560  1.3  christos      fi
   12561  1.3  christos     ac_cv_prog_CC="cc"
   12562  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12563  1.3  christos     break 2
   12564  1.3  christos   fi
   12565  1.3  christos done
   12566  1.3  christos   done
   12567  1.3  christos IFS=$as_save_IFS
   12568  1.3  christos 
   12569  1.3  christos if test $ac_prog_rejected = yes; then
   12570  1.3  christos   # We found a bogon in the path, so make sure we never use it.
   12571  1.3  christos   set dummy $ac_cv_prog_CC
   12572  1.3  christos   shift
   12573  1.3  christos   if test $# != 0; then
   12574  1.3  christos     # We chose a different compiler from the bogus one.
   12575  1.3  christos     # However, it has the same basename, so the bogon will be chosen
   12576  1.3  christos     # first if we set CC to just the basename; use the full file name.
   12577  1.3  christos     shift
   12578  1.3  christos     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   12579  1.3  christos   fi
   12580  1.1  christos fi
   12581  1.1  christos fi
   12582  1.1  christos fi
   12583  1.3  christos CC=$ac_cv_prog_CC
   12584  1.3  christos if test -n "$CC"; then
   12585  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12586  1.3  christos $as_echo "$CC" >&6; }
   12587  1.3  christos else
   12588  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12589  1.3  christos $as_echo "no" >&6; }
   12590  1.1  christos fi
   12591  1.1  christos 
   12592  1.1  christos 
   12593  1.1  christos fi
   12594  1.3  christos if test -z "$CC"; then
   12595  1.3  christos   if test -n "$ac_tool_prefix"; then
   12596  1.3  christos   for ac_prog in cl.exe
   12597  1.3  christos   do
   12598  1.3  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   12599  1.3  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   12600  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12601  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   12602  1.3  christos if ${ac_cv_prog_CC+:} false; then :
   12603  1.3  christos   $as_echo_n "(cached) " >&6
   12604  1.3  christos else
   12605  1.3  christos   if test -n "$CC"; then
   12606  1.3  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   12607  1.3  christos else
   12608  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12609  1.3  christos for as_dir in $PATH
   12610  1.3  christos do
   12611  1.3  christos   IFS=$as_save_IFS
   12612  1.3  christos   test -z "$as_dir" && as_dir=.
   12613  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12614  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12615  1.3  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   12616  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12617  1.3  christos     break 2
   12618  1.3  christos   fi
   12619  1.1  christos done
   12620  1.3  christos   done
   12621  1.3  christos IFS=$as_save_IFS
   12622  1.1  christos 
   12623  1.1  christos fi
   12624  1.3  christos fi
   12625  1.3  christos CC=$ac_cv_prog_CC
   12626  1.3  christos if test -n "$CC"; then
   12627  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12628  1.3  christos $as_echo "$CC" >&6; }
   12629  1.3  christos else
   12630  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12631  1.3  christos $as_echo "no" >&6; }
   12632  1.3  christos fi
   12633  1.1  christos 
   12634  1.1  christos 
   12635  1.3  christos     test -n "$CC" && break
   12636  1.3  christos   done
   12637  1.1  christos fi
   12638  1.3  christos if test -z "$CC"; then
   12639  1.3  christos   ac_ct_CC=$CC
   12640  1.3  christos   for ac_prog in cl.exe
   12641  1.3  christos do
   12642  1.3  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12643  1.3  christos set dummy $ac_prog; ac_word=$2
   12644  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12645  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   12646  1.3  christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12647  1.3  christos   $as_echo_n "(cached) " >&6
   12648  1.3  christos else
   12649  1.3  christos   if test -n "$ac_ct_CC"; then
   12650  1.3  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12651  1.3  christos else
   12652  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12653  1.3  christos for as_dir in $PATH
   12654  1.3  christos do
   12655  1.3  christos   IFS=$as_save_IFS
   12656  1.3  christos   test -z "$as_dir" && as_dir=.
   12657  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12658  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12659  1.3  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   12660  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12661  1.3  christos     break 2
   12662  1.3  christos   fi
   12663  1.1  christos done
   12664  1.3  christos   done
   12665  1.3  christos IFS=$as_save_IFS
   12666  1.1  christos 
   12667  1.3  christos fi
   12668  1.3  christos fi
   12669  1.3  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12670  1.3  christos if test -n "$ac_ct_CC"; then
   12671  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12672  1.3  christos $as_echo "$ac_ct_CC" >&6; }
   12673  1.3  christos else
   12674  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12675  1.3  christos $as_echo "no" >&6; }
   12676  1.3  christos fi
   12677  1.1  christos 
   12678  1.1  christos 
   12679  1.3  christos   test -n "$ac_ct_CC" && break
   12680  1.3  christos done
   12681  1.1  christos 
   12682  1.3  christos   if test "x$ac_ct_CC" = x; then
   12683  1.3  christos     CC=""
   12684  1.3  christos   else
   12685  1.3  christos     case $cross_compiling:$ac_tool_warned in
   12686  1.3  christos yes:)
   12687  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12688  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12689  1.3  christos ac_tool_warned=yes ;;
   12690  1.1  christos esac
   12691  1.3  christos     CC=$ac_ct_CC
   12692  1.3  christos   fi
   12693  1.3  christos fi
   12694  1.1  christos 
   12695  1.1  christos fi
   12696  1.1  christos 
   12697  1.3  christos 
   12698  1.3  christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   12699  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   12700  1.3  christos as_fn_error $? "no acceptable C compiler found in \$PATH
   12701  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   12702  1.3  christos 
   12703  1.3  christos # Provide some information about the compiler.
   12704  1.3  christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   12705  1.3  christos set X $ac_compile
   12706  1.3  christos ac_compiler=$2
   12707  1.3  christos for ac_option in --version -v -V -qversion; do
   12708  1.3  christos   { { ac_try="$ac_compiler $ac_option >&5"
   12709  1.3  christos case "(($ac_try" in
   12710  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12711  1.3  christos   *) ac_try_echo=$ac_try;;
   12712  1.1  christos esac
   12713  1.3  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   12714  1.3  christos $as_echo "$ac_try_echo"; } >&5
   12715  1.3  christos   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   12716  1.3  christos   ac_status=$?
   12717  1.3  christos   if test -s conftest.err; then
   12718  1.3  christos     sed '10a\
   12719  1.3  christos ... rest of stderr output deleted ...
   12720  1.3  christos          10q' conftest.err >conftest.er1
   12721  1.3  christos     cat conftest.er1 >&5
   12722  1.3  christos   fi
   12723  1.3  christos   rm -f conftest.er1 conftest.err
   12724  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12725  1.3  christos   test $ac_status = 0; }
   12726  1.3  christos done
   12727  1.1  christos 
   12728  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   12729  1.3  christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   12730  1.3  christos if ${ac_cv_c_compiler_gnu+:} false; then :
   12731  1.3  christos   $as_echo_n "(cached) " >&6
   12732  1.1  christos else
   12733  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12734  1.3  christos /* end confdefs.h.  */
   12735  1.1  christos 
   12736  1.1  christos int
   12737  1.1  christos main ()
   12738  1.1  christos {
   12739  1.3  christos #ifndef __GNUC__
   12740  1.3  christos        choke me
   12741  1.3  christos #endif
   12742  1.3  christos 
   12743  1.1  christos   ;
   12744  1.1  christos   return 0;
   12745  1.1  christos }
   12746  1.1  christos _ACEOF
   12747  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   12748  1.3  christos   ac_compiler_gnu=yes
   12749  1.3  christos else
   12750  1.3  christos   ac_compiler_gnu=no
   12751  1.3  christos fi
   12752  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12753  1.3  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   12754  1.3  christos 
   12755  1.3  christos fi
   12756  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   12757  1.3  christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   12758  1.3  christos if test $ac_compiler_gnu = yes; then
   12759  1.3  christos   GCC=yes
   12760  1.1  christos else
   12761  1.3  christos   GCC=
   12762  1.1  christos fi
   12763  1.3  christos ac_test_CFLAGS=${CFLAGS+set}
   12764  1.3  christos ac_save_CFLAGS=$CFLAGS
   12765  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   12766  1.3  christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
   12767  1.3  christos if ${ac_cv_prog_cc_g+:} false; then :
   12768  1.1  christos   $as_echo_n "(cached) " >&6
   12769  1.1  christos else
   12770  1.3  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   12771  1.3  christos    ac_c_werror_flag=yes
   12772  1.3  christos    ac_cv_prog_cc_g=no
   12773  1.3  christos    CFLAGS="-g"
   12774  1.3  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12775  1.1  christos /* end confdefs.h.  */
   12776  1.1  christos 
   12777  1.1  christos int
   12778  1.1  christos main ()
   12779  1.1  christos {
   12780  1.3  christos 
   12781  1.1  christos   ;
   12782  1.1  christos   return 0;
   12783  1.1  christos }
   12784  1.1  christos _ACEOF
   12785  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   12786  1.3  christos   ac_cv_prog_cc_g=yes
   12787  1.1  christos else
   12788  1.3  christos   CFLAGS=""
   12789  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12790  1.3  christos /* end confdefs.h.  */
   12791  1.3  christos 
   12792  1.3  christos int
   12793  1.3  christos main ()
   12794  1.3  christos {
   12795  1.3  christos 
   12796  1.3  christos   ;
   12797  1.3  christos   return 0;
   12798  1.3  christos }
   12799  1.1  christos _ACEOF
   12800  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   12801  1.1  christos 
   12802  1.1  christos else
   12803  1.3  christos   ac_c_werror_flag=$ac_save_c_werror_flag
   12804  1.3  christos 	 CFLAGS="-g"
   12805  1.3  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12806  1.1  christos /* end confdefs.h.  */
   12807  1.1  christos 
   12808  1.1  christos int
   12809  1.1  christos main ()
   12810  1.1  christos {
   12811  1.3  christos 
   12812  1.1  christos   ;
   12813  1.1  christos   return 0;
   12814  1.1  christos }
   12815  1.1  christos _ACEOF
   12816  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   12817  1.3  christos   ac_cv_prog_cc_g=yes
   12818  1.3  christos fi
   12819  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12820  1.3  christos fi
   12821  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12822  1.1  christos fi
   12823  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12824  1.3  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   12825  1.1  christos fi
   12826  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   12827  1.3  christos $as_echo "$ac_cv_prog_cc_g" >&6; }
   12828  1.3  christos if test "$ac_test_CFLAGS" = set; then
   12829  1.3  christos   CFLAGS=$ac_save_CFLAGS
   12830  1.3  christos elif test $ac_cv_prog_cc_g = yes; then
   12831  1.3  christos   if test "$GCC" = yes; then
   12832  1.3  christos     CFLAGS="-g -O2"
   12833  1.3  christos   else
   12834  1.3  christos     CFLAGS="-g"
   12835  1.3  christos   fi
   12836  1.1  christos else
   12837  1.3  christos   if test "$GCC" = yes; then
   12838  1.3  christos     CFLAGS="-O2"
   12839  1.3  christos   else
   12840  1.3  christos     CFLAGS=
   12841  1.3  christos   fi
   12842  1.3  christos fi
   12843  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   12844  1.3  christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   12845  1.3  christos if ${ac_cv_prog_cc_c89+:} false; then :
   12846  1.1  christos   $as_echo_n "(cached) " >&6
   12847  1.1  christos else
   12848  1.3  christos   ac_cv_prog_cc_c89=no
   12849  1.3  christos ac_save_CC=$CC
   12850  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12851  1.1  christos /* end confdefs.h.  */
   12852  1.3  christos #include <stdarg.h>
   12853  1.3  christos #include <stdio.h>
   12854  1.3  christos struct stat;
   12855  1.3  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   12856  1.3  christos struct buf { int x; };
   12857  1.3  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   12858  1.3  christos static char *e (p, i)
   12859  1.3  christos      char **p;
   12860  1.3  christos      int i;
   12861  1.3  christos {
   12862  1.3  christos   return p[i];
   12863  1.3  christos }
   12864  1.3  christos static char *f (char * (*g) (char **, int), char **p, ...)
   12865  1.3  christos {
   12866  1.3  christos   char *s;
   12867  1.3  christos   va_list v;
   12868  1.3  christos   va_start (v,p);
   12869  1.3  christos   s = g (p, va_arg (v,int));
   12870  1.3  christos   va_end (v);
   12871  1.3  christos   return s;
   12872  1.3  christos }
   12873  1.3  christos 
   12874  1.3  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   12875  1.3  christos    function prototypes and stuff, but not '\xHH' hex character constants.
   12876  1.3  christos    These don't provoke an error unfortunately, instead are silently treated
   12877  1.3  christos    as 'x'.  The following induces an error, until -std is added to get
   12878  1.3  christos    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   12879  1.3  christos    array size at least.  It's necessary to write '\x00'==0 to get something
   12880  1.3  christos    that's true only with -std.  */
   12881  1.3  christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   12882  1.3  christos 
   12883  1.3  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   12884  1.3  christos    inside strings and character constants.  */
   12885  1.3  christos #define FOO(x) 'x'
   12886  1.3  christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   12887  1.1  christos 
   12888  1.3  christos int test (int i, double x);
   12889  1.3  christos struct s1 {int (*f) (int a);};
   12890  1.3  christos struct s2 {int (*f) (double a);};
   12891  1.3  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   12892  1.3  christos int argc;
   12893  1.3  christos char **argv;
   12894  1.1  christos int
   12895  1.1  christos main ()
   12896  1.1  christos {
   12897  1.3  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   12898  1.1  christos   ;
   12899  1.1  christos   return 0;
   12900  1.1  christos }
   12901  1.1  christos _ACEOF
   12902  1.3  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   12903  1.3  christos 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   12904  1.3  christos do
   12905  1.3  christos   CC="$ac_save_CC $ac_arg"
   12906  1.3  christos   if ac_fn_c_try_compile "$LINENO"; then :
   12907  1.3  christos   ac_cv_prog_cc_c89=$ac_arg
   12908  1.3  christos fi
   12909  1.3  christos rm -f core conftest.err conftest.$ac_objext
   12910  1.3  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   12911  1.3  christos done
   12912  1.3  christos rm -f conftest.$ac_ext
   12913  1.3  christos CC=$ac_save_CC
   12914  1.3  christos 
   12915  1.1  christos fi
   12916  1.3  christos # AC_CACHE_VAL
   12917  1.3  christos case "x$ac_cv_prog_cc_c89" in
   12918  1.3  christos   x)
   12919  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   12920  1.3  christos $as_echo "none needed" >&6; } ;;
   12921  1.3  christos   xno)
   12922  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   12923  1.3  christos $as_echo "unsupported" >&6; } ;;
   12924  1.3  christos   *)
   12925  1.3  christos     CC="$CC $ac_cv_prog_cc_c89"
   12926  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   12927  1.3  christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   12928  1.3  christos esac
   12929  1.3  christos if test "x$ac_cv_prog_cc_c89" != xno; then :
   12930  1.3  christos 
   12931  1.1  christos fi
   12932  1.1  christos 
   12933  1.3  christos ac_ext=c
   12934  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   12935  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12936  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12937  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12938  1.1  christos 
   12939  1.3  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   12940  1.3  christos $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   12941  1.3  christos if ${ac_cv_prog_cc_c99+:} false; then :
   12942  1.1  christos   $as_echo_n "(cached) " >&6
   12943  1.1  christos else
   12944  1.3  christos   ac_cv_prog_cc_c99=no
   12945  1.3  christos ac_save_CC=$CC
   12946  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12947  1.1  christos /* end confdefs.h.  */
   12948  1.3  christos #include <stdarg.h>
   12949  1.3  christos #include <stdbool.h>
   12950  1.3  christos #include <stdlib.h>
   12951  1.3  christos #include <wchar.h>
   12952  1.3  christos #include <stdio.h>
   12953  1.1  christos 
   12954  1.3  christos // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   12955  1.3  christos #define debug(...) fprintf (stderr, __VA_ARGS__)
   12956  1.3  christos #define showlist(...) puts (#__VA_ARGS__)
   12957  1.3  christos #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   12958  1.3  christos static void
   12959  1.3  christos test_varargs_macros (void)
   12960  1.3  christos {
   12961  1.3  christos   int x = 1234;
   12962  1.3  christos   int y = 5678;
   12963  1.3  christos   debug ("Flag");
   12964  1.3  christos   debug ("X = %d\n", x);
   12965  1.3  christos   showlist (The first, second, and third items.);
   12966  1.3  christos   report (x>y, "x is %d but y is %d", x, y);
   12967  1.3  christos }
   12968  1.3  christos 
   12969  1.3  christos // Check long long types.
   12970  1.3  christos #define BIG64 18446744073709551615ull
   12971  1.3  christos #define BIG32 4294967295ul
   12972  1.3  christos #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   12973  1.3  christos #if !BIG_OK
   12974  1.3  christos   your preprocessor is broken;
   12975  1.3  christos #endif
   12976  1.3  christos #if BIG_OK
   12977  1.3  christos #else
   12978  1.3  christos   your preprocessor is broken;
   12979  1.1  christos #endif
   12980  1.3  christos static long long int bignum = -9223372036854775807LL;
   12981  1.3  christos static unsigned long long int ubignum = BIG64;
   12982  1.3  christos 
   12983  1.3  christos struct incomplete_array
   12984  1.3  christos {
   12985  1.3  christos   int datasize;
   12986  1.3  christos   double data[];
   12987  1.3  christos };
   12988  1.3  christos 
   12989  1.3  christos struct named_init {
   12990  1.3  christos   int number;
   12991  1.3  christos   const wchar_t *name;
   12992  1.3  christos   double average;
   12993  1.3  christos };
   12994  1.3  christos 
   12995  1.3  christos typedef const char *ccp;
   12996  1.3  christos 
   12997  1.3  christos static inline int
   12998  1.3  christos test_restrict (ccp restrict text)
   12999  1.3  christos {
   13000  1.3  christos   // See if C++-style comments work.
   13001  1.3  christos   // Iterate through items via the restricted pointer.
   13002  1.3  christos   // Also check for declarations in for loops.
   13003  1.3  christos   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13004  1.3  christos     continue;
   13005  1.3  christos   return 0;
   13006  1.3  christos }
   13007  1.3  christos 
   13008  1.3  christos // Check varargs and va_copy.
   13009  1.3  christos static void
   13010  1.3  christos test_varargs (const char *format, ...)
   13011  1.3  christos {
   13012  1.3  christos   va_list args;
   13013  1.3  christos   va_start (args, format);
   13014  1.3  christos   va_list args_copy;
   13015  1.3  christos   va_copy (args_copy, args);
   13016  1.3  christos 
   13017  1.3  christos   const char *str;
   13018  1.3  christos   int number;
   13019  1.3  christos   float fnumber;
   13020  1.3  christos 
   13021  1.3  christos   while (*format)
   13022  1.3  christos     {
   13023  1.3  christos       switch (*format++)
   13024  1.3  christos 	{
   13025  1.3  christos 	case 's': // string
   13026  1.3  christos 	  str = va_arg (args_copy, const char *);
   13027  1.3  christos 	  break;
   13028  1.3  christos 	case 'd': // int
   13029  1.3  christos 	  number = va_arg (args_copy, int);
   13030  1.3  christos 	  break;
   13031  1.3  christos 	case 'f': // float
   13032  1.3  christos 	  fnumber = va_arg (args_copy, double);
   13033  1.3  christos 	  break;
   13034  1.3  christos 	default:
   13035  1.3  christos 	  break;
   13036  1.3  christos 	}
   13037  1.3  christos     }
   13038  1.3  christos   va_end (args_copy);
   13039  1.3  christos   va_end (args);
   13040  1.3  christos }
   13041  1.3  christos 
   13042  1.1  christos int
   13043  1.3  christos main ()
   13044  1.3  christos {
   13045  1.3  christos 
   13046  1.3  christos   // Check bool.
   13047  1.3  christos   _Bool success = false;
   13048  1.3  christos 
   13049  1.3  christos   // Check restrict.
   13050  1.3  christos   if (test_restrict ("String literal") == 0)
   13051  1.3  christos     success = true;
   13052  1.3  christos   char *restrict newvar = "Another string";
   13053  1.3  christos 
   13054  1.3  christos   // Check varargs.
   13055  1.3  christos   test_varargs ("s, d' f .", "string", 65, 34.234);
   13056  1.3  christos   test_varargs_macros ();
   13057  1.3  christos 
   13058  1.3  christos   // Check flexible array members.
   13059  1.3  christos   struct incomplete_array *ia =
   13060  1.3  christos     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13061  1.3  christos   ia->datasize = 10;
   13062  1.3  christos   for (int i = 0; i < ia->datasize; ++i)
   13063  1.3  christos     ia->data[i] = i * 1.234;
   13064  1.3  christos 
   13065  1.3  christos   // Check named initializers.
   13066  1.3  christos   struct named_init ni = {
   13067  1.3  christos     .number = 34,
   13068  1.3  christos     .name = L"Test wide string",
   13069  1.3  christos     .average = 543.34343,
   13070  1.3  christos   };
   13071  1.3  christos 
   13072  1.3  christos   ni.number = 58;
   13073  1.3  christos 
   13074  1.3  christos   int dynamic_array[ni.number];
   13075  1.3  christos   dynamic_array[ni.number - 1] = 543;
   13076  1.3  christos 
   13077  1.3  christos   // work around unused variable warnings
   13078  1.3  christos   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13079  1.3  christos 	  || dynamic_array[ni.number - 1] != 543);
   13080  1.3  christos 
   13081  1.1  christos   ;
   13082  1.1  christos   return 0;
   13083  1.1  christos }
   13084  1.1  christos _ACEOF
   13085  1.3  christos for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13086  1.3  christos do
   13087  1.3  christos   CC="$ac_save_CC $ac_arg"
   13088  1.3  christos   if ac_fn_c_try_compile "$LINENO"; then :
   13089  1.3  christos   ac_cv_prog_cc_c99=$ac_arg
   13090  1.1  christos fi
   13091  1.3  christos rm -f core conftest.err conftest.$ac_objext
   13092  1.3  christos   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13093  1.3  christos done
   13094  1.3  christos rm -f conftest.$ac_ext
   13095  1.3  christos CC=$ac_save_CC
   13096  1.3  christos 
   13097  1.1  christos fi
   13098  1.3  christos # AC_CACHE_VAL
   13099  1.3  christos case "x$ac_cv_prog_cc_c99" in
   13100  1.3  christos   x)
   13101  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13102  1.3  christos $as_echo "none needed" >&6; } ;;
   13103  1.3  christos   xno)
   13104  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13105  1.3  christos $as_echo "unsupported" >&6; } ;;
   13106  1.3  christos   *)
   13107  1.3  christos     CC="$CC $ac_cv_prog_cc_c99"
   13108  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13109  1.3  christos $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13110  1.3  christos esac
   13111  1.3  christos if test "x$ac_cv_prog_cc_c99" != xno; then :
   13112  1.1  christos 
   13113  1.1  christos fi
   13114  1.1  christos 
   13115  1.1  christos 
   13116  1.1  christos 
   13117  1.3  christos #
   13118  1.3  christos # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13119  1.3  christos #
   13120  1.3  christos if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13121  1.3  christos 	CCNOOPT="-O0"
   13122  1.1  christos fi
   13123  1.1  christos 
   13124  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13125  1.3  christos $as_echo_n "checking for ANSI C header files... " >&6; }
   13126  1.3  christos if ${ac_cv_header_stdc+:} false; then :
   13127  1.1  christos   $as_echo_n "(cached) " >&6
   13128  1.1  christos else
   13129  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13130  1.1  christos /* end confdefs.h.  */
   13131  1.3  christos #include <stdlib.h>
   13132  1.3  christos #include <stdarg.h>
   13133  1.3  christos #include <string.h>
   13134  1.3  christos #include <float.h>
   13135  1.1  christos 
   13136  1.1  christos int
   13137  1.1  christos main ()
   13138  1.1  christos {
   13139  1.3  christos 
   13140  1.1  christos   ;
   13141  1.1  christos   return 0;
   13142  1.1  christos }
   13143  1.1  christos _ACEOF
   13144  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13145  1.3  christos   ac_cv_header_stdc=yes
   13146  1.1  christos else
   13147  1.3  christos   ac_cv_header_stdc=no
   13148  1.1  christos fi
   13149  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13150  1.1  christos 
   13151  1.3  christos if test $ac_cv_header_stdc = yes; then
   13152  1.3  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13153  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13154  1.1  christos /* end confdefs.h.  */
   13155  1.3  christos #include <string.h>
   13156  1.1  christos 
   13157  1.1  christos _ACEOF
   13158  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13159  1.3  christos   $EGREP "memchr" >/dev/null 2>&1; then :
   13160  1.3  christos 
   13161  1.1  christos else
   13162  1.3  christos   ac_cv_header_stdc=no
   13163  1.1  christos fi
   13164  1.3  christos rm -f conftest*
   13165  1.3  christos 
   13166  1.1  christos fi
   13167  1.1  christos 
   13168  1.3  christos if test $ac_cv_header_stdc = yes; then
   13169  1.3  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13170  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13171  1.1  christos /* end confdefs.h.  */
   13172  1.3  christos #include <stdlib.h>
   13173  1.1  christos 
   13174  1.1  christos _ACEOF
   13175  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13176  1.3  christos   $EGREP "free" >/dev/null 2>&1; then :
   13177  1.3  christos 
   13178  1.1  christos else
   13179  1.3  christos   ac_cv_header_stdc=no
   13180  1.1  christos fi
   13181  1.3  christos rm -f conftest*
   13182  1.3  christos 
   13183  1.1  christos fi
   13184  1.1  christos 
   13185  1.3  christos if test $ac_cv_header_stdc = yes; then
   13186  1.3  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13187  1.3  christos   if test "$cross_compiling" = yes; then :
   13188  1.3  christos   :
   13189  1.1  christos else
   13190  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13191  1.1  christos /* end confdefs.h.  */
   13192  1.3  christos #include <ctype.h>
   13193  1.3  christos #include <stdlib.h>
   13194  1.3  christos #if ((' ' & 0x0FF) == 0x020)
   13195  1.3  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13196  1.3  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13197  1.3  christos #else
   13198  1.3  christos # define ISLOWER(c) \
   13199  1.3  christos 		   (('a' <= (c) && (c) <= 'i') \
   13200  1.3  christos 		     || ('j' <= (c) && (c) <= 'r') \
   13201  1.3  christos 		     || ('s' <= (c) && (c) <= 'z'))
   13202  1.3  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13203  1.3  christos #endif
   13204  1.1  christos 
   13205  1.3  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13206  1.1  christos int
   13207  1.1  christos main ()
   13208  1.1  christos {
   13209  1.3  christos   int i;
   13210  1.3  christos   for (i = 0; i < 256; i++)
   13211  1.3  christos     if (XOR (islower (i), ISLOWER (i))
   13212  1.3  christos 	|| toupper (i) != TOUPPER (i))
   13213  1.3  christos       return 2;
   13214  1.1  christos   return 0;
   13215  1.1  christos }
   13216  1.1  christos _ACEOF
   13217  1.3  christos if ac_fn_c_try_run "$LINENO"; then :
   13218  1.3  christos 
   13219  1.1  christos else
   13220  1.3  christos   ac_cv_header_stdc=no
   13221  1.1  christos fi
   13222  1.3  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13223  1.3  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13224  1.1  christos fi
   13225  1.1  christos 
   13226  1.1  christos fi
   13227  1.1  christos fi
   13228  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13229  1.3  christos $as_echo "$ac_cv_header_stdc" >&6; }
   13230  1.3  christos if test $ac_cv_header_stdc = yes; then
   13231  1.1  christos 
   13232  1.3  christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13233  1.1  christos 
   13234  1.1  christos fi
   13235  1.1  christos 
   13236  1.1  christos 
   13237  1.3  christos 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  1.3  christos do :
   13239  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13240  1.3  christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13241  1.3  christos #ifdef HAVE_SYS_PARAM_H
   13242  1.3  christos # include <sys/param.h>
   13243  1.3  christos #endif
   13244  1.3  christos #ifdef HAVE_SYS_SOCKET_H
   13245  1.3  christos # include <sys/socket.h>
   13246  1.3  christos #endif
   13247  1.3  christos 
   13248  1.3  christos "
   13249  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13250  1.3  christos   cat >>confdefs.h <<_ACEOF
   13251  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13252  1.3  christos _ACEOF
   13253  1.1  christos 
   13254  1.1  christos fi
   13255  1.1  christos 
   13256  1.3  christos done
   13257  1.1  christos 
   13258  1.1  christos 
   13259  1.3  christos #
   13260  1.3  christos # Check for thread local storage
   13261  1.3  christos #
   13262  1.3  christos for ac_header in threads.h
   13263  1.3  christos do :
   13264  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13265  1.3  christos if test "x$ac_cv_header_threads_h" = xyes; then :
   13266  1.3  christos   cat >>confdefs.h <<_ACEOF
   13267  1.3  christos #define HAVE_THREADS_H 1
   13268  1.3  christos _ACEOF
   13269  1.1  christos 
   13270  1.3  christos 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13271  1.3  christos $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13272  1.3  christos 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13273  1.1  christos /* end confdefs.h.  */
   13274  1.1  christos 
   13275  1.3  christos 				  #include <threads.h>
   13276  1.3  christos 
   13277  1.1  christos int
   13278  1.1  christos main ()
   13279  1.1  christos {
   13280  1.3  christos 
   13281  1.3  christos 				  static thread_local int tls = 0;
   13282  1.3  christos 				  return (tls);
   13283  1.3  christos 
   13284  1.1  christos   ;
   13285  1.1  christos   return 0;
   13286  1.1  christos }
   13287  1.3  christos 
   13288  1.1  christos _ACEOF
   13289  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13290  1.3  christos 
   13291  1.3  christos 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13292  1.3  christos $as_echo "yes" >&6; }
   13293  1.3  christos 
   13294  1.3  christos $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13295  1.3  christos 
   13296  1.3  christos 
   13297  1.3  christos $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13298  1.3  christos 
   13299  1.3  christos 
   13300  1.1  christos else
   13301  1.3  christos 
   13302  1.3  christos 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13303  1.3  christos $as_echo "no" >&6; }
   13304  1.3  christos 
   13305  1.1  christos fi
   13306  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13307  1.1  christos 
   13308  1.1  christos else
   13309  1.3  christos 
   13310  1.3  christos 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13311  1.3  christos $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13312  1.3  christos 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13313  1.1  christos /* end confdefs.h.  */
   13314  1.1  christos 
   13315  1.3  christos 
   13316  1.1  christos int
   13317  1.1  christos main ()
   13318  1.1  christos {
   13319  1.3  christos 
   13320  1.3  christos 				  static __thread int tls = 0;
   13321  1.3  christos 				  return (tls);
   13322  1.3  christos 
   13323  1.1  christos   ;
   13324  1.1  christos   return 0;
   13325  1.1  christos }
   13326  1.3  christos 
   13327  1.1  christos _ACEOF
   13328  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13329  1.3  christos 
   13330  1.3  christos 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13331  1.3  christos $as_echo "yes" >&6; }
   13332  1.3  christos 
   13333  1.3  christos $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13334  1.3  christos 
   13335  1.3  christos 
   13336  1.3  christos $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13337  1.3  christos 
   13338  1.3  christos 
   13339  1.1  christos else
   13340  1.3  christos 
   13341  1.3  christos 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13342  1.3  christos $as_echo "no" >&6; }
   13343  1.3  christos 
   13344  1.1  christos fi
   13345  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13346  1.3  christos 
   13347  1.1  christos fi
   13348  1.1  christos 
   13349  1.3  christos done
   13350  1.3  christos 
   13351  1.3  christos 
   13352  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13353  1.3  christos $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13354  1.3  christos if ${ac_cv_c_const+:} false; then :
   13355  1.1  christos   $as_echo_n "(cached) " >&6
   13356  1.1  christos else
   13357  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13358  1.1  christos /* end confdefs.h.  */
   13359  1.1  christos 
   13360  1.1  christos int
   13361  1.1  christos main ()
   13362  1.1  christos {
   13363  1.3  christos 
   13364  1.3  christos #ifndef __cplusplus
   13365  1.3  christos   /* Ultrix mips cc rejects this sort of thing.  */
   13366  1.3  christos   typedef int charset[2];
   13367  1.3  christos   const charset cs = { 0, 0 };
   13368  1.3  christos   /* SunOS 4.1.1 cc rejects this.  */
   13369  1.3  christos   char const *const *pcpcc;
   13370  1.3  christos   char **ppc;
   13371  1.3  christos   /* NEC SVR4.0.2 mips cc rejects this.  */
   13372  1.3  christos   struct point {int x, y;};
   13373  1.3  christos   static struct point const zero = {0,0};
   13374  1.3  christos   /* AIX XL C 1.02.0.0 rejects this.
   13375  1.3  christos      It does not let you subtract one const X* pointer from another in
   13376  1.3  christos      an arm of an if-expression whose if-part is not a constant
   13377  1.3  christos      expression */
   13378  1.3  christos   const char *g = "string";
   13379  1.3  christos   pcpcc = &g + (g ? g-g : 0);
   13380  1.3  christos   /* HPUX 7.0 cc rejects these. */
   13381  1.3  christos   ++pcpcc;
   13382  1.3  christos   ppc = (char**) pcpcc;
   13383  1.3  christos   pcpcc = (char const *const *) ppc;
   13384  1.3  christos   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13385  1.3  christos     char tx;
   13386  1.3  christos     char *t = &tx;
   13387  1.3  christos     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13388  1.3  christos 
   13389  1.3  christos     *t++ = 0;
   13390  1.3  christos     if (s) return 0;
   13391  1.3  christos   }
   13392  1.3  christos   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13393  1.3  christos     int x[] = {25, 17};
   13394  1.3  christos     const int *foo = &x[0];
   13395  1.3  christos     ++foo;
   13396  1.3  christos   }
   13397  1.3  christos   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13398  1.3  christos     typedef const int *iptr;
   13399  1.3  christos     iptr p = 0;
   13400  1.3  christos     ++p;
   13401  1.3  christos   }
   13402  1.3  christos   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13403  1.3  christos        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13404  1.3  christos     struct s { int j; const int *ap[3]; } bx;
   13405  1.3  christos     struct s *b = &bx; b->j = 5;
   13406  1.3  christos   }
   13407  1.3  christos   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13408  1.3  christos     const int foo = 10;
   13409  1.3  christos     if (!foo) return 0;
   13410  1.3  christos   }
   13411  1.3  christos   return !cs[0] && !zero.x;
   13412  1.3  christos #endif
   13413  1.3  christos 
   13414  1.1  christos   ;
   13415  1.1  christos   return 0;
   13416  1.1  christos }
   13417  1.1  christos _ACEOF
   13418  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13419  1.3  christos   ac_cv_c_const=yes
   13420  1.1  christos else
   13421  1.3  christos   ac_cv_c_const=no
   13422  1.1  christos fi
   13423  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13424  1.1  christos fi
   13425  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13426  1.3  christos $as_echo "$ac_cv_c_const" >&6; }
   13427  1.3  christos if test $ac_cv_c_const = no; then
   13428  1.1  christos 
   13429  1.3  christos $as_echo "#define const /**/" >>confdefs.h
   13430  1.1  christos 
   13431  1.1  christos fi
   13432  1.1  christos 
   13433  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13434  1.3  christos $as_echo_n "checking for inline... " >&6; }
   13435  1.3  christos if ${ac_cv_c_inline+:} false; then :
   13436  1.3  christos   $as_echo_n "(cached) " >&6
   13437  1.3  christos else
   13438  1.3  christos   ac_cv_c_inline=no
   13439  1.3  christos for ac_kw in inline __inline__ __inline; do
   13440  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13441  1.3  christos /* end confdefs.h.  */
   13442  1.3  christos #ifndef __cplusplus
   13443  1.3  christos typedef int foo_t;
   13444  1.3  christos static $ac_kw foo_t static_foo () {return 0; }
   13445  1.3  christos $ac_kw foo_t foo () {return 0; }
   13446  1.3  christos #endif
   13447  1.1  christos 
   13448  1.3  christos _ACEOF
   13449  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13450  1.3  christos   ac_cv_c_inline=$ac_kw
   13451  1.1  christos fi
   13452  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13453  1.3  christos   test "$ac_cv_c_inline" != no && break
   13454  1.3  christos done
   13455  1.1  christos 
   13456  1.1  christos fi
   13457  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13458  1.3  christos $as_echo "$ac_cv_c_inline" >&6; }
   13459  1.1  christos 
   13460  1.3  christos case $ac_cv_c_inline in
   13461  1.3  christos   inline | yes) ;;
   13462  1.3  christos   *)
   13463  1.3  christos     case $ac_cv_c_inline in
   13464  1.3  christos       no) ac_val=;;
   13465  1.3  christos       *) ac_val=$ac_cv_c_inline;;
   13466  1.3  christos     esac
   13467  1.3  christos     cat >>confdefs.h <<_ACEOF
   13468  1.3  christos #ifndef __cplusplus
   13469  1.3  christos #define inline $ac_val
   13470  1.3  christos #endif
   13471  1.3  christos _ACEOF
   13472  1.3  christos     ;;
   13473  1.3  christos esac
   13474  1.1  christos 
   13475  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   13476  1.3  christos $as_echo_n "checking for working volatile... " >&6; }
   13477  1.3  christos if ${ac_cv_c_volatile+:} false; then :
   13478  1.3  christos   $as_echo_n "(cached) " >&6
   13479  1.1  christos else
   13480  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13481  1.1  christos /* end confdefs.h.  */
   13482  1.1  christos 
   13483  1.1  christos int
   13484  1.1  christos main ()
   13485  1.1  christos {
   13486  1.1  christos 
   13487  1.3  christos volatile int x;
   13488  1.3  christos int * volatile y = (int *) 0;
   13489  1.3  christos return !x && !y;
   13490  1.1  christos   ;
   13491  1.1  christos   return 0;
   13492  1.1  christos }
   13493  1.1  christos _ACEOF
   13494  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   13495  1.3  christos   ac_cv_c_volatile=yes
   13496  1.1  christos else
   13497  1.3  christos   ac_cv_c_volatile=no
   13498  1.1  christos fi
   13499  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13500  1.3  christos fi
   13501  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   13502  1.3  christos $as_echo "$ac_cv_c_volatile" >&6; }
   13503  1.3  christos if test $ac_cv_c_volatile = no; then
   13504  1.1  christos 
   13505  1.3  christos $as_echo "#define volatile /**/" >>confdefs.h
   13506  1.1  christos 
   13507  1.1  christos fi
   13508  1.1  christos 
   13509  1.1  christos 
   13510  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   13511  1.3  christos $as_echo_n "checking for flexible array members... " >&6; }
   13512  1.3  christos if ${ac_cv_c_flexmember+:} false; then :
   13513  1.1  christos   $as_echo_n "(cached) " >&6
   13514  1.1  christos else
   13515  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13516  1.1  christos /* end confdefs.h.  */
   13517  1.3  christos #include <stdlib.h>
   13518  1.3  christos 	    #include <stdio.h>
   13519  1.3  christos 	    #include <stddef.h>
   13520  1.3  christos 	    struct s { int n; double d[]; };
   13521  1.1  christos int
   13522  1.1  christos main ()
   13523  1.1  christos {
   13524  1.3  christos int m = getchar ();
   13525  1.3  christos 	    struct s *p = malloc (offsetof (struct s, d)
   13526  1.3  christos 				  + m * sizeof (double));
   13527  1.3  christos 	    p->d[0] = 0.0;
   13528  1.3  christos 	    return p->d != (double *) NULL;
   13529  1.1  christos   ;
   13530  1.1  christos   return 0;
   13531  1.1  christos }
   13532  1.1  christos _ACEOF
   13533  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13534  1.3  christos   ac_cv_c_flexmember=yes
   13535  1.1  christos else
   13536  1.3  christos   ac_cv_c_flexmember=no
   13537  1.1  christos fi
   13538  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13539  1.1  christos fi
   13540  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   13541  1.3  christos $as_echo "$ac_cv_c_flexmember" >&6; }
   13542  1.3  christos   if test $ac_cv_c_flexmember = yes; then
   13543  1.1  christos 
   13544  1.3  christos $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   13545  1.1  christos 
   13546  1.3  christos   else
   13547  1.3  christos     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   13548  1.1  christos 
   13549  1.3  christos   fi
   13550  1.1  christos 
   13551  1.1  christos 
   13552  1.3  christos #
   13553  1.3  christos # Check for yield support on ARM processors
   13554  1.3  christos #
   13555  1.3  christos case $host in #(
   13556  1.3  christos   arm*) :
   13557  1.1  christos 
   13558  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   13559  1.3  christos $as_echo_n "checking for yield instruction support... " >&6; }
   13560  1.3  christos 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13561  1.1  christos /* end confdefs.h.  */
   13562  1.1  christos 
   13563  1.1  christos int
   13564  1.1  christos main ()
   13565  1.1  christos {
   13566  1.3  christos __asm__ __volatile__ ("yield")
   13567  1.3  christos 
   13568  1.1  christos   ;
   13569  1.1  christos   return 0;
   13570  1.1  christos }
   13571  1.1  christos _ACEOF
   13572  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13573  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13574  1.3  christos $as_echo "yes" >&6; }
   13575  1.1  christos else
   13576  1.3  christos   as_fn_error $? "no, try adding -march=native or -march=armv7-a to CFLAGS (see PLATFORM.md for more information)" "$LINENO" 5
   13577  1.1  christos fi
   13578  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   13579  1.3  christos   *) :
   13580  1.3  christos      ;;
   13581  1.3  christos esac
   13582  1.3  christos 
   13583  1.3  christos for ac_func in sysctlbyname
   13584  1.3  christos do :
   13585  1.3  christos   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   13586  1.3  christos if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   13587  1.3  christos   cat >>confdefs.h <<_ACEOF
   13588  1.3  christos #define HAVE_SYSCTLBYNAME 1
   13589  1.3  christos _ACEOF
   13590  1.1  christos 
   13591  1.1  christos fi
   13592  1.3  christos done
   13593  1.1  christos 
   13594  1.1  christos 
   13595  1.3  christos #
   13596  1.3  christos # Check for the existence of mmap to enable the fast format zones
   13597  1.3  christos #
   13598  1.3  christos for ac_func in mmap
   13599  1.3  christos do :
   13600  1.3  christos   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   13601  1.3  christos if test "x$ac_cv_func_mmap" = xyes; then :
   13602  1.3  christos   cat >>confdefs.h <<_ACEOF
   13603  1.3  christos #define HAVE_MMAP 1
   13604  1.3  christos _ACEOF
   13605  1.1  christos 
   13606  1.1  christos fi
   13607  1.3  christos done
   13608  1.1  christos 
   13609  1.1  christos 
   13610  1.3  christos #
   13611  1.3  christos # Older versions of HP/UX don't define seteuid() and setegid()
   13612  1.3  christos #
   13613  1.3  christos for ac_func in seteuid setresuid
   13614  1.1  christos do :
   13615  1.1  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13616  1.1  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13617  1.1  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13618  1.1  christos   cat >>confdefs.h <<_ACEOF
   13619  1.1  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13620  1.1  christos _ACEOF
   13621  1.1  christos 
   13622  1.1  christos fi
   13623  1.1  christos done
   13624  1.1  christos 
   13625  1.3  christos for ac_func in setegid setresgid
   13626  1.1  christos do :
   13627  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13628  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13629  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13630  1.1  christos   cat >>confdefs.h <<_ACEOF
   13631  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13632  1.1  christos _ACEOF
   13633  1.1  christos 
   13634  1.1  christos fi
   13635  1.1  christos done
   13636  1.1  christos 
   13637  1.1  christos 
   13638  1.3  christos ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   13639  1.3  christos if test "x$ac_cv_type_size_t" = xyes; then :
   13640  1.1  christos 
   13641  1.1  christos else
   13642  1.1  christos 
   13643  1.3  christos cat >>confdefs.h <<_ACEOF
   13644  1.3  christos #define size_t unsigned int
   13645  1.3  christos _ACEOF
   13646  1.1  christos 
   13647  1.1  christos fi
   13648  1.1  christos 
   13649  1.3  christos ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   13650  1.3  christos if test "x$ac_cv_type_ssize_t" = xyes; then :
   13651  1.1  christos 
   13652  1.1  christos else
   13653  1.1  christos 
   13654  1.3  christos cat >>confdefs.h <<_ACEOF
   13655  1.3  christos #define ssize_t int
   13656  1.3  christos _ACEOF
   13657  1.1  christos 
   13658  1.1  christos fi
   13659  1.1  christos 
   13660  1.1  christos 
   13661  1.3  christos   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   13662  1.3  christos if test "x$ac_cv_type_uintptr_t" = xyes; then :
   13663  1.1  christos 
   13664  1.3  christos $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   13665  1.1  christos 
   13666  1.1  christos else
   13667  1.3  christos   for ac_type in 'unsigned int' 'unsigned long int' \
   13668  1.3  christos 	'unsigned long long int'; do
   13669  1.3  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13670  1.1  christos /* end confdefs.h.  */
   13671  1.3  christos $ac_includes_default
   13672  1.3  christos int
   13673  1.3  christos main ()
   13674  1.3  christos {
   13675  1.3  christos static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   13676  1.3  christos test_array [0] = 0;
   13677  1.3  christos return test_array [0];
   13678  1.1  christos 
   13679  1.3  christos   ;
   13680  1.3  christos   return 0;
   13681  1.1  christos }
   13682  1.3  christos _ACEOF
   13683  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13684  1.1  christos 
   13685  1.3  christos cat >>confdefs.h <<_ACEOF
   13686  1.3  christos #define uintptr_t $ac_type
   13687  1.1  christos _ACEOF
   13688  1.3  christos 
   13689  1.3  christos 	  ac_type=
   13690  1.1  christos fi
   13691  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13692  1.3  christos        test -z "$ac_type" && break
   13693  1.3  christos      done
   13694  1.1  christos fi
   13695  1.1  christos 
   13696  1.1  christos 
   13697  1.3  christos 
   13698  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   13699  1.3  christos $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   13700  1.3  christos if ${ac_cv_header_time+:} false; then :
   13701  1.3  christos   $as_echo_n "(cached) " >&6
   13702  1.3  christos else
   13703  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13704  1.1  christos /* end confdefs.h.  */
   13705  1.3  christos #include <sys/types.h>
   13706  1.3  christos #include <sys/time.h>
   13707  1.3  christos #include <time.h>
   13708  1.1  christos 
   13709  1.1  christos int
   13710  1.1  christos main ()
   13711  1.1  christos {
   13712  1.3  christos if ((struct tm *) 0)
   13713  1.3  christos return 0;
   13714  1.1  christos   ;
   13715  1.1  christos   return 0;
   13716  1.1  christos }
   13717  1.1  christos _ACEOF
   13718  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13719  1.3  christos   ac_cv_header_time=yes
   13720  1.1  christos else
   13721  1.3  christos   ac_cv_header_time=no
   13722  1.3  christos fi
   13723  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13724  1.3  christos fi
   13725  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   13726  1.3  christos $as_echo "$ac_cv_header_time" >&6; }
   13727  1.3  christos if test $ac_cv_header_time = yes; then
   13728  1.3  christos 
   13729  1.3  christos $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   13730  1.3  christos 
   13731  1.3  christos fi
   13732  1.3  christos 
   13733  1.3  christos 
   13734  1.3  christos #
   13735  1.3  christos # check for uname library routine
   13736  1.3  christos #
   13737  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   13738  1.3  christos $as_echo_n "checking for uname... " >&6; }
   13739  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13740  1.1  christos /* end confdefs.h.  */
   13741  1.3  christos #include <sys/utsname.h>
   13742  1.3  christos        #include <stdio.h>
   13743  1.1  christos 
   13744  1.1  christos int
   13745  1.1  christos main ()
   13746  1.1  christos {
   13747  1.1  christos 
   13748  1.3  christos        struct utsname uts;
   13749  1.3  christos        uname(&uts);
   13750  1.3  christos        printf("running on %s %s %s for %s\n",
   13751  1.3  christos 	      uts.sysname, uts.release, uts.version, uts.machine);
   13752  1.1  christos 
   13753  1.1  christos   ;
   13754  1.1  christos   return 0;
   13755  1.1  christos }
   13756  1.1  christos _ACEOF
   13757  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13758  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13759  1.1  christos $as_echo "yes" >&6; }
   13760  1.3  christos 
   13761  1.3  christos $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   13762  1.3  christos 
   13763  1.1  christos 
   13764  1.1  christos else
   13765  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13766  1.3  christos $as_echo "no" >&6; }
   13767  1.3  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   13768  1.3  christos $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   13769  1.1  christos 
   13770  1.1  christos fi
   13771  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13772  1.1  christos 
   13773  1.3  christos #
   13774  1.3  christos # check for GCC noreturn attribute
   13775  1.3  christos #
   13776  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   13777  1.3  christos $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   13778  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13779  1.1  christos /* end confdefs.h.  */
   13780  1.3  christos 
   13781  1.1  christos int
   13782  1.1  christos main ()
   13783  1.1  christos {
   13784  1.3  christos void foo() __attribute__((noreturn));
   13785  1.1  christos   ;
   13786  1.1  christos   return 0;
   13787  1.1  christos }
   13788  1.1  christos _ACEOF
   13789  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13790  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13791  1.3  christos $as_echo "yes" >&6; }
   13792  1.3  christos 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13793  1.3  christos 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   13794  1.3  christos else
   13795  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13796  1.3  christos $as_echo "no" >&6; }
   13797  1.3  christos 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13798  1.3  christos 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   13799  1.3  christos fi
   13800  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13801  1.3  christos 
   13802  1.3  christos 
   13803  1.3  christos 
   13804  1.3  christos #
   13805  1.3  christos # check if we have kqueue
   13806  1.3  christos #
   13807  1.3  christos # Check whether --enable-kqueue was given.
   13808  1.3  christos if test "${enable_kqueue+set}" = set; then :
   13809  1.3  christos   enableval=$enable_kqueue;
   13810  1.3  christos else
   13811  1.3  christos   enable_kqueue="yes"
   13812  1.3  christos fi
   13813  1.3  christos 
   13814  1.3  christos 
   13815  1.3  christos if test "$enable_kqueue" = "yes"; then :
   13816  1.3  christos   for ac_func in kqueue
   13817  1.3  christos do :
   13818  1.3  christos   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   13819  1.3  christos if test "x$ac_cv_func_kqueue" = xyes; then :
   13820  1.3  christos   cat >>confdefs.h <<_ACEOF
   13821  1.3  christos #define HAVE_KQUEUE 1
   13822  1.3  christos _ACEOF
   13823  1.3  christos 
   13824  1.3  christos fi
   13825  1.3  christos done
   13826  1.3  christos 
   13827  1.3  christos fi
   13828  1.3  christos 
   13829  1.3  christos #
   13830  1.3  christos # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   13831  1.3  christos # so we need to try running the code, not just test its existence.
   13832  1.3  christos #
   13833  1.3  christos # Check whether --enable-epoll was given.
   13834  1.3  christos if test "${enable_epoll+set}" = set; then :
   13835  1.3  christos   enableval=$enable_epoll;
   13836  1.1  christos else
   13837  1.3  christos   enable_epoll="yes"
   13838  1.1  christos fi
   13839  1.1  christos 
   13840  1.1  christos 
   13841  1.3  christos if test "$enable_epoll" = "yes"; then :
   13842  1.3  christos   for ac_func in epoll_create1
   13843  1.3  christos do :
   13844  1.3  christos   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   13845  1.3  christos if test "x$ac_cv_func_epoll_create1" = xyes; then :
   13846  1.3  christos   cat >>confdefs.h <<_ACEOF
   13847  1.3  christos #define HAVE_EPOLL_CREATE1 1
   13848  1.3  christos _ACEOF
   13849  1.3  christos 
   13850  1.3  christos fi
   13851  1.3  christos done
   13852  1.1  christos 
   13853  1.3  christos fi
   13854  1.1  christos 
   13855  1.3  christos #
   13856  1.3  christos # check if we support /dev/poll
   13857  1.3  christos #
   13858  1.3  christos # Check whether --enable-devpoll was given.
   13859  1.3  christos if test "${enable_devpoll+set}" = set; then :
   13860  1.3  christos   enableval=$enable_devpoll;
   13861  1.3  christos else
   13862  1.3  christos   enable_devpoll="yes"
   13863  1.3  christos fi
   13864  1.1  christos 
   13865  1.3  christos if test "$enable_devpoll" = "yes"; then :
   13866  1.3  christos   for ac_header in sys/devpoll.h devpoll.h
   13867  1.1  christos do :
   13868  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13869  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13870  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13871  1.1  christos   cat >>confdefs.h <<_ACEOF
   13872  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13873  1.3  christos _ACEOF
   13874  1.3  christos 
   13875  1.3  christos fi
   13876  1.3  christos 
   13877  1.3  christos done
   13878  1.3  christos 
   13879  1.3  christos fi
   13880  1.3  christos 
   13881  1.3  christos #
   13882  1.3  christos # Find the machine's endian flavor.
   13883  1.3  christos #
   13884  1.3  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   13885  1.3  christos $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   13886  1.3  christos if ${ac_cv_c_bigendian+:} false; then :
   13887  1.3  christos   $as_echo_n "(cached) " >&6
   13888  1.3  christos else
   13889  1.3  christos   ac_cv_c_bigendian=unknown
   13890  1.3  christos     # See if we're dealing with a universal compiler.
   13891  1.3  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13892  1.3  christos /* end confdefs.h.  */
   13893  1.3  christos #ifndef __APPLE_CC__
   13894  1.3  christos 	       not a universal capable compiler
   13895  1.3  christos 	     #endif
   13896  1.3  christos 	     typedef int dummy;
   13897  1.3  christos 
   13898  1.3  christos _ACEOF
   13899  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13900  1.3  christos 
   13901  1.3  christos 	# Check for potential -arch flags.  It is not universal unless
   13902  1.3  christos 	# there are at least two -arch flags with different values.
   13903  1.3  christos 	ac_arch=
   13904  1.3  christos 	ac_prev=
   13905  1.3  christos 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   13906  1.3  christos 	 if test -n "$ac_prev"; then
   13907  1.3  christos 	   case $ac_word in
   13908  1.3  christos 	     i?86 | x86_64 | ppc | ppc64)
   13909  1.3  christos 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   13910  1.3  christos 		 ac_arch=$ac_word
   13911  1.3  christos 	       else
   13912  1.3  christos 		 ac_cv_c_bigendian=universal
   13913  1.3  christos 		 break
   13914  1.3  christos 	       fi
   13915  1.3  christos 	       ;;
   13916  1.3  christos 	   esac
   13917  1.3  christos 	   ac_prev=
   13918  1.3  christos 	 elif test "x$ac_word" = "x-arch"; then
   13919  1.3  christos 	   ac_prev=arch
   13920  1.3  christos 	 fi
   13921  1.3  christos        done
   13922  1.1  christos fi
   13923  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13924  1.3  christos     if test $ac_cv_c_bigendian = unknown; then
   13925  1.3  christos       # See if sys/param.h defines the BYTE_ORDER macro.
   13926  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13927  1.3  christos /* end confdefs.h.  */
   13928  1.3  christos #include <sys/types.h>
   13929  1.3  christos 	     #include <sys/param.h>
   13930  1.1  christos 
   13931  1.3  christos int
   13932  1.3  christos main ()
   13933  1.3  christos {
   13934  1.3  christos #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   13935  1.3  christos 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   13936  1.3  christos 		     && LITTLE_ENDIAN)
   13937  1.3  christos 	      bogus endian macros
   13938  1.3  christos 	     #endif
   13939  1.1  christos 
   13940  1.3  christos   ;
   13941  1.3  christos   return 0;
   13942  1.3  christos }
   13943  1.1  christos _ACEOF
   13944  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13945  1.3  christos   # It does; now see whether it defined to BIG_ENDIAN or not.
   13946  1.3  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13947  1.1  christos /* end confdefs.h.  */
   13948  1.3  christos #include <sys/types.h>
   13949  1.3  christos 		#include <sys/param.h>
   13950  1.1  christos 
   13951  1.3  christos int
   13952  1.3  christos main ()
   13953  1.3  christos {
   13954  1.3  christos #if BYTE_ORDER != BIG_ENDIAN
   13955  1.3  christos 		 not big endian
   13956  1.3  christos 		#endif
   13957  1.1  christos 
   13958  1.3  christos   ;
   13959  1.3  christos   return 0;
   13960  1.1  christos }
   13961  1.1  christos _ACEOF
   13962  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13963  1.3  christos   ac_cv_c_bigendian=yes
   13964  1.1  christos else
   13965  1.3  christos   ac_cv_c_bigendian=no
   13966  1.1  christos fi
   13967  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13968  1.1  christos fi
   13969  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13970  1.3  christos     fi
   13971  1.3  christos     if test $ac_cv_c_bigendian = unknown; then
   13972  1.3  christos       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   13973  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13974  1.3  christos /* end confdefs.h.  */
   13975  1.3  christos #include <limits.h>
   13976  1.1  christos 
   13977  1.3  christos int
   13978  1.3  christos main ()
   13979  1.3  christos {
   13980  1.3  christos #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   13981  1.3  christos 	      bogus endian macros
   13982  1.3  christos 	     #endif
   13983  1.1  christos 
   13984  1.3  christos   ;
   13985  1.3  christos   return 0;
   13986  1.1  christos }
   13987  1.1  christos _ACEOF
   13988  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13989  1.3  christos   # It does; now see whether it defined to _BIG_ENDIAN or not.
   13990  1.3  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13991  1.3  christos /* end confdefs.h.  */
   13992  1.3  christos #include <limits.h>
   13993  1.1  christos 
   13994  1.3  christos int
   13995  1.3  christos main ()
   13996  1.3  christos {
   13997  1.3  christos #ifndef _BIG_ENDIAN
   13998  1.3  christos 		 not big endian
   13999  1.3  christos 		#endif
   14000  1.1  christos 
   14001  1.3  christos   ;
   14002  1.3  christos   return 0;
   14003  1.1  christos }
   14004  1.1  christos _ACEOF
   14005  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   14006  1.3  christos   ac_cv_c_bigendian=yes
   14007  1.1  christos else
   14008  1.3  christos   ac_cv_c_bigendian=no
   14009  1.1  christos fi
   14010  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14011  1.1  christos fi
   14012  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14013  1.3  christos     fi
   14014  1.3  christos     if test $ac_cv_c_bigendian = unknown; then
   14015  1.3  christos       # Compile a test program.
   14016  1.3  christos       if test "$cross_compiling" = yes; then :
   14017  1.3  christos   # Try to guess by grepping values from an object file.
   14018  1.3  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14019  1.1  christos /* end confdefs.h.  */
   14020  1.3  christos short int ascii_mm[] =
   14021  1.3  christos 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14022  1.3  christos 		short int ascii_ii[] =
   14023  1.3  christos 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14024  1.3  christos 		int use_ascii (int i) {
   14025  1.3  christos 		  return ascii_mm[i] + ascii_ii[i];
   14026  1.3  christos 		}
   14027  1.3  christos 		short int ebcdic_ii[] =
   14028  1.3  christos 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14029  1.3  christos 		short int ebcdic_mm[] =
   14030  1.3  christos 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14031  1.3  christos 		int use_ebcdic (int i) {
   14032  1.3  christos 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14033  1.3  christos 		}
   14034  1.3  christos 		extern int foo;
   14035  1.1  christos 
   14036  1.3  christos int
   14037  1.3  christos main ()
   14038  1.3  christos {
   14039  1.3  christos return use_ascii (foo) == use_ebcdic (foo);
   14040  1.3  christos   ;
   14041  1.3  christos   return 0;
   14042  1.1  christos }
   14043  1.1  christos _ACEOF
   14044  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   14045  1.3  christos   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14046  1.3  christos 	      ac_cv_c_bigendian=yes
   14047  1.3  christos 	    fi
   14048  1.3  christos 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14049  1.3  christos 	      if test "$ac_cv_c_bigendian" = unknown; then
   14050  1.3  christos 		ac_cv_c_bigendian=no
   14051  1.3  christos 	      else
   14052  1.3  christos 		# finding both strings is unlikely to happen, but who knows?
   14053  1.3  christos 		ac_cv_c_bigendian=unknown
   14054  1.3  christos 	      fi
   14055  1.3  christos 	    fi
   14056  1.1  christos fi
   14057  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14058  1.1  christos else
   14059  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14060  1.1  christos /* end confdefs.h.  */
   14061  1.3  christos $ac_includes_default
   14062  1.3  christos int
   14063  1.3  christos main ()
   14064  1.3  christos {
   14065  1.3  christos 
   14066  1.3  christos 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14067  1.3  christos 	     union
   14068  1.3  christos 	     {
   14069  1.3  christos 	       long int l;
   14070  1.3  christos 	       char c[sizeof (long int)];
   14071  1.3  christos 	     } u;
   14072  1.3  christos 	     u.l = 1;
   14073  1.3  christos 	     return u.c[sizeof (long int) - 1] == 1;
   14074  1.1  christos 
   14075  1.3  christos   ;
   14076  1.3  christos   return 0;
   14077  1.1  christos }
   14078  1.1  christos _ACEOF
   14079  1.1  christos if ac_fn_c_try_run "$LINENO"; then :
   14080  1.3  christos   ac_cv_c_bigendian=no
   14081  1.1  christos else
   14082  1.3  christos   ac_cv_c_bigendian=yes
   14083  1.1  christos fi
   14084  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14085  1.1  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14086  1.1  christos fi
   14087  1.1  christos 
   14088  1.3  christos     fi
   14089  1.3  christos fi
   14090  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14091  1.3  christos $as_echo "$ac_cv_c_bigendian" >&6; }
   14092  1.3  christos  case $ac_cv_c_bigendian in #(
   14093  1.3  christos    yes)
   14094  1.3  christos      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14095  1.3  christos ;; #(
   14096  1.3  christos    no)
   14097  1.3  christos       ;; #(
   14098  1.3  christos    universal)
   14099  1.1  christos 
   14100  1.3  christos $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14101  1.1  christos 
   14102  1.3  christos      ;; #(
   14103  1.3  christos    *)
   14104  1.3  christos      as_fn_error $? "unknown endianness
   14105  1.3  christos  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14106  1.3  christos  esac
   14107  1.1  christos 
   14108  1.1  christos 
   14109  1.1  christos #
   14110  1.3  christos # GeoIP support?
   14111  1.1  christos #
   14112  1.3  christos GEOIPLINKSRCS=
   14113  1.3  christos GEOIPLINKOBJS=
   14114  1.1  christos 
   14115  1.3  christos # Check whether --with-geoip was given.
   14116  1.3  christos if test "${with_geoip+set}" = set; then :
   14117  1.3  christos   withval=$with_geoip; use_geoip="$withval"
   14118  1.3  christos else
   14119  1.3  christos   use_geoip="no"
   14120  1.1  christos fi
   14121  1.1  christos 
   14122  1.1  christos 
   14123  1.3  christos if test "yes" = "$use_geoip"
   14124  1.1  christos then
   14125  1.3  christos 	for d in /usr /usr/local /opt/local
   14126  1.3  christos 	do
   14127  1.3  christos 		if test -f $d/include/GeoIP.h
   14128  1.3  christos 		then
   14129  1.3  christos 			use_geoip=$d
   14130  1.3  christos 			break
   14131  1.3  christos 		fi
   14132  1.3  christos 	done
   14133  1.1  christos fi
   14134  1.1  christos 
   14135  1.3  christos case "$use_geoip" in
   14136  1.3  christos 	no|'')
   14137  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14138  1.3  christos $as_echo_n "checking for GeoIP support... " >&6; }
   14139  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   14140  1.3  christos $as_echo "disabled" >&6; }
   14141  1.1  christos 		;;
   14142  1.3  christos 	*)
   14143  1.3  christos 		if test -d "$use_geoip" -o -L "$use_geoip"
   14144  1.3  christos 		then
   14145  1.3  christos 			CFLAGS="$CFLAGS -I$use_geoip/include"
   14146  1.3  christos 			CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
   14147  1.3  christos 			LIBS="$LIBS -L$use_geoip/lib"
   14148  1.3  christos 			case "$host_os" in
   14149  1.3  christos 				netbsd*|openbsd*|solaris*)
   14150  1.3  christos 					LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
   14151  1.3  christos 					;;
   14152  1.3  christos 			esac
   14153  1.3  christos 		elif test "yes" = "$use_geoip"
   14154  1.3  christos 		then
   14155  1.3  christos 			as_fn_error $? "GeoIP path not found" "$LINENO" 5
   14156  1.3  christos 		else
   14157  1.3  christos 			as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
   14158  1.3  christos 		fi
   14159  1.3  christos 		ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
   14160  1.3  christos if test "x$ac_cv_header_GeoIP_h" = xyes; then :
   14161  1.1  christos 
   14162  1.3  christos else
   14163  1.3  christos   as_fn_error $? "GeoIP header file not found" "$LINENO" 5
   14164  1.1  christos 
   14165  1.3  christos fi
   14166  1.1  christos 
   14167  1.1  christos 
   14168  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
   14169  1.3  christos $as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
   14170  1.3  christos if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14171  1.3  christos   $as_echo_n "(cached) " >&6
   14172  1.3  christos else
   14173  1.3  christos   ac_func_search_save_LIBS=$LIBS
   14174  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14175  1.3  christos /* end confdefs.h.  */
   14176  1.1  christos 
   14177  1.3  christos /* Override any GCC internal prototype to avoid an error.
   14178  1.3  christos    Use char because int might match the return type of a GCC
   14179  1.3  christos    builtin and then its argument prototype would still apply.  */
   14180  1.3  christos #ifdef __cplusplus
   14181  1.3  christos extern "C"
   14182  1.3  christos #endif
   14183  1.3  christos char GeoIP_id_by_addr_gl ();
   14184  1.3  christos int
   14185  1.3  christos main ()
   14186  1.3  christos {
   14187  1.3  christos return GeoIP_id_by_addr_gl ();
   14188  1.3  christos   ;
   14189  1.3  christos   return 0;
   14190  1.3  christos }
   14191  1.3  christos _ACEOF
   14192  1.3  christos for ac_lib in '' GeoIP; do
   14193  1.3  christos   if test -z "$ac_lib"; then
   14194  1.3  christos     ac_res="none required"
   14195  1.3  christos   else
   14196  1.3  christos     ac_res=-l$ac_lib
   14197  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14198  1.3  christos   fi
   14199  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   14200  1.3  christos   ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
   14201  1.3  christos fi
   14202  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14203  1.3  christos     conftest$ac_exeext
   14204  1.3  christos   if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14205  1.3  christos   break
   14206  1.3  christos fi
   14207  1.3  christos done
   14208  1.3  christos if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14209  1.1  christos 
   14210  1.1  christos else
   14211  1.3  christos   ac_cv_search_GeoIP_id_by_addr_gl=no
   14212  1.3  christos fi
   14213  1.3  christos rm conftest.$ac_ext
   14214  1.3  christos LIBS=$ac_func_search_save_LIBS
   14215  1.1  christos fi
   14216  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
   14217  1.3  christos $as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
   14218  1.3  christos ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
   14219  1.3  christos if test "$ac_res" != no; then :
   14220  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14221  1.1  christos 
   14222  1.3  christos else
   14223  1.3  christos   as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
   14224  1.1  christos 
   14225  1.1  christos fi
   14226  1.1  christos 
   14227  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
   14228  1.3  christos $as_echo_n "checking for library containing fabsf... " >&6; }
   14229  1.3  christos if ${ac_cv_search_fabsf+:} false; then :
   14230  1.3  christos   $as_echo_n "(cached) " >&6
   14231  1.3  christos else
   14232  1.3  christos   ac_func_search_save_LIBS=$LIBS
   14233  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14234  1.3  christos /* end confdefs.h.  */
   14235  1.1  christos 
   14236  1.3  christos /* Override any GCC internal prototype to avoid an error.
   14237  1.3  christos    Use char because int might match the return type of a GCC
   14238  1.3  christos    builtin and then its argument prototype would still apply.  */
   14239  1.3  christos #ifdef __cplusplus
   14240  1.3  christos extern "C"
   14241  1.3  christos #endif
   14242  1.3  christos char fabsf ();
   14243  1.3  christos int
   14244  1.3  christos main ()
   14245  1.3  christos {
   14246  1.3  christos return fabsf ();
   14247  1.3  christos   ;
   14248  1.3  christos   return 0;
   14249  1.3  christos }
   14250  1.3  christos _ACEOF
   14251  1.3  christos for ac_lib in '' m; do
   14252  1.3  christos   if test -z "$ac_lib"; then
   14253  1.3  christos     ac_res="none required"
   14254  1.3  christos   else
   14255  1.3  christos     ac_res=-l$ac_lib
   14256  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14257  1.3  christos   fi
   14258  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   14259  1.3  christos   ac_cv_search_fabsf=$ac_res
   14260  1.1  christos fi
   14261  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14262  1.3  christos     conftest$ac_exeext
   14263  1.3  christos   if ${ac_cv_search_fabsf+:} false; then :
   14264  1.3  christos   break
   14265  1.1  christos fi
   14266  1.3  christos done
   14267  1.3  christos if ${ac_cv_search_fabsf+:} false; then :
   14268  1.1  christos 
   14269  1.1  christos else
   14270  1.3  christos   ac_cv_search_fabsf=no
   14271  1.1  christos fi
   14272  1.3  christos rm conftest.$ac_ext
   14273  1.3  christos LIBS=$ac_func_search_save_LIBS
   14274  1.1  christos fi
   14275  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
   14276  1.3  christos $as_echo "$ac_cv_search_fabsf" >&6; }
   14277  1.3  christos ac_res=$ac_cv_search_fabsf
   14278  1.3  christos if test "$ac_res" != no; then :
   14279  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14280  1.1  christos 
   14281  1.3  christos else
   14282  1.3  christos   as_fn_error $? "Math library not found" "$LINENO" 5
   14283  1.1  christos 
   14284  1.1  christos fi
   14285  1.1  christos 
   14286  1.1  christos 
   14287  1.3  christos $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
   14288  1.1  christos 
   14289  1.3  christos 		GEOIPLINKSRCS='${GEOIPLINKSRCS}'
   14290  1.3  christos 		GEOIPLINKOBJS='${GEOIPLINKOBJS}'
   14291  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14292  1.3  christos $as_echo_n "checking for GeoIP support... " >&6; }
   14293  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14294  1.3  christos $as_echo "yes" >&6; }
   14295  1.1  christos 
   14296  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
   14297  1.3  christos $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
   14298  1.3  christos 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14299  1.3  christos /* end confdefs.h.  */
   14300  1.1  christos 
   14301  1.3  christos 				#include <GeoIP.h>
   14302  1.3  christos 				#include <netinet/in.h>
   14303  1.1  christos 
   14304  1.3  christos int
   14305  1.3  christos main ()
   14306  1.3  christos {
   14307  1.1  christos 
   14308  1.3  christos 				struct in6_addr in6;
   14309  1.3  christos 				GeoIP_country_name_by_ipnum_v6(NULL, in6);
   14310  1.1  christos 
   14311  1.3  christos   ;
   14312  1.3  christos   return 0;
   14313  1.3  christos }
   14314  1.3  christos _ACEOF
   14315  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   14316  1.1  christos 
   14317  1.3  christos 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14318  1.3  christos $as_echo "yes" >&6; }
   14319  1.1  christos 
   14320  1.3  christos $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
   14321  1.1  christos 
   14322  1.1  christos 
   14323  1.3  christos else
   14324  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14325  1.3  christos $as_echo "no" >&6; }
   14326  1.1  christos 
   14327  1.3  christos fi
   14328  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14329  1.1  christos 
   14330  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
   14331  1.3  christos $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
   14332  1.3  christos 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14333  1.3  christos /* end confdefs.h.  */
   14334  1.1  christos 
   14335  1.3  christos 				#include <GeoIP.h>
   14336  1.3  christos 				#include <GeoIPCity.h>
   14337  1.3  christos 				#include <netinet/in.h>
   14338  1.1  christos 
   14339  1.3  christos int
   14340  1.3  christos main ()
   14341  1.3  christos {
   14342  1.1  christos 
   14343  1.3  christos 				struct in6_addr in6;
   14344  1.3  christos 				int i = GEOIP_CITY_EDITION_REV0_V6;
   14345  1.3  christos 				GeoIP_record_by_ipnum_v6(NULL, in6);
   14346  1.1  christos 
   14347  1.3  christos   ;
   14348  1.3  christos   return 0;
   14349  1.3  christos }
   14350  1.3  christos _ACEOF
   14351  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   14352  1.1  christos 
   14353  1.3  christos 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14354  1.3  christos $as_echo "yes" >&6; }
   14355  1.1  christos 
   14356  1.3  christos $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
   14357  1.1  christos 
   14358  1.1  christos 
   14359  1.3  christos else
   14360  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14361  1.3  christos $as_echo "no" >&6; }
   14362  1.1  christos 
   14363  1.3  christos fi
   14364  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14365  1.1  christos 		;;
   14366  1.1  christos esac
   14367  1.1  christos 
   14368  1.1  christos 
   14369  1.1  christos 
   14370  1.3  christos #
   14371  1.3  christos # Do we have arc4random(), etc ?
   14372  1.3  christos #
   14373  1.3  christos for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   14374  1.3  christos do :
   14375  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14376  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14377  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14378  1.3  christos   cat >>confdefs.h <<_ACEOF
   14379  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14380  1.3  christos _ACEOF
   14381  1.3  christos 
   14382  1.3  christos fi
   14383  1.3  christos done
   14384  1.1  christos 
   14385  1.1  christos 
   14386  1.1  christos 
   14387  1.1  christos 
   14388  1.1  christos 
   14389  1.1  christos 
   14390  1.3  christos ac_ext=c
   14391  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   14392  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14393  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14394  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14395  1.1  christos 
   14396  1.3  christos ax_pthread_ok=no
   14397  1.1  christos 
   14398  1.3  christos # We used to check for pthread.h first, but this fails if pthread.h
   14399  1.3  christos # requires special compiler flags (e.g. on Tru64 or Sequent).
   14400  1.3  christos # It gets checked for in the link test anyway.
   14401  1.3  christos 
   14402  1.3  christos # First of all, check if the user has set any of the PTHREAD_LIBS,
   14403  1.3  christos # etcetera environment variables, and if threads linking works using
   14404  1.3  christos # them:
   14405  1.3  christos if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   14406  1.3  christos         ax_pthread_save_CC="$CC"
   14407  1.3  christos         ax_pthread_save_CFLAGS="$CFLAGS"
   14408  1.3  christos         ax_pthread_save_LIBS="$LIBS"
   14409  1.3  christos         if test "x$PTHREAD_CC" != "x"; then :
   14410  1.3  christos   CC="$PTHREAD_CC"
   14411  1.3  christos fi
   14412  1.3  christos         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14413  1.3  christos         LIBS="$PTHREAD_LIBS $LIBS"
   14414  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   14415  1.3  christos $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   14416  1.3  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14417  1.1  christos /* end confdefs.h.  */
   14418  1.1  christos 
   14419  1.1  christos /* Override any GCC internal prototype to avoid an error.
   14420  1.1  christos    Use char because int might match the return type of a GCC
   14421  1.1  christos    builtin and then its argument prototype would still apply.  */
   14422  1.1  christos #ifdef __cplusplus
   14423  1.1  christos extern "C"
   14424  1.1  christos #endif
   14425  1.3  christos char pthread_join ();
   14426  1.1  christos int
   14427  1.1  christos main ()
   14428  1.1  christos {
   14429  1.3  christos return pthread_join ();
   14430  1.1  christos   ;
   14431  1.1  christos   return 0;
   14432  1.1  christos }
   14433  1.1  christos _ACEOF
   14434  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   14435  1.3  christos   ax_pthread_ok=yes
   14436  1.1  christos fi
   14437  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   14438  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   14439  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14440  1.3  christos $as_echo "$ax_pthread_ok" >&6; }
   14441  1.3  christos         if test "x$ax_pthread_ok" = "xno"; then
   14442  1.3  christos                 PTHREAD_LIBS=""
   14443  1.3  christos                 PTHREAD_CFLAGS=""
   14444  1.3  christos         fi
   14445  1.3  christos         CC="$ax_pthread_save_CC"
   14446  1.3  christos         CFLAGS="$ax_pthread_save_CFLAGS"
   14447  1.3  christos         LIBS="$ax_pthread_save_LIBS"
   14448  1.3  christos fi
   14449  1.3  christos 
   14450  1.3  christos # We must check for the threads library under a number of different
   14451  1.3  christos # names; the ordering is very important because some systems
   14452  1.3  christos # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   14453  1.3  christos # libraries is broken (non-POSIX).
   14454  1.3  christos 
   14455  1.3  christos # Create a list of thread flags to try.  Items starting with a "-" are
   14456  1.3  christos # C compiler flags, and other items are library names, except for "none"
   14457  1.3  christos # which indicates that we try without any flags at all, and "pthread-config"
   14458  1.3  christos # which is a program returning the flags for the Pth emulation library.
   14459  1.3  christos 
   14460  1.3  christos ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   14461  1.3  christos 
   14462  1.3  christos # The ordering *is* (sometimes) important.  Some notes on the
   14463  1.3  christos # individual items follow:
   14464  1.3  christos 
   14465  1.3  christos # pthreads: AIX (must check this before -lpthread)
   14466  1.3  christos # none: in case threads are in libc; should be tried before -Kthread and
   14467  1.3  christos #       other compiler flags to prevent continual compiler warnings
   14468  1.3  christos # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   14469  1.3  christos # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   14470  1.3  christos #           (Note: HP C rejects this with "bad form for `-t' option")
   14471  1.3  christos # -pthreads: Solaris/gcc (Note: HP C also rejects)
   14472  1.3  christos # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   14473  1.3  christos #      doesn't hurt to check since this sometimes defines pthreads and
   14474  1.3  christos #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   14475  1.3  christos #      is present but should not be used directly; and before -mthreads,
   14476  1.3  christos #      because the compiler interprets this as "-mt" + "-hreads")
   14477  1.3  christos # -mthreads: Mingw32/gcc, Lynx/gcc
   14478  1.3  christos # pthread: Linux, etcetera
   14479  1.3  christos # --thread-safe: KAI C++
   14480  1.3  christos # pthread-config: use pthread-config program (for GNU Pth library)
   14481  1.1  christos 
   14482  1.3  christos case $host_os in
   14483  1.1  christos 
   14484  1.3  christos         freebsd*)
   14485  1.1  christos 
   14486  1.3  christos         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   14487  1.3  christos         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   14488  1.1  christos 
   14489  1.3  christos         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   14490  1.3  christos         ;;
   14491  1.1  christos 
   14492  1.3  christos         hpux*)
   14493  1.1  christos 
   14494  1.3  christos         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   14495  1.3  christos         # multi-threading and also sets -lpthread."
   14496  1.1  christos 
   14497  1.3  christos         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   14498  1.3  christos         ;;
   14499  1.1  christos 
   14500  1.3  christos         openedition*)
   14501  1.1  christos 
   14502  1.3  christos         # IBM z/OS requires a feature-test macro to be defined in order to
   14503  1.3  christos         # enable POSIX threads at all, so give the user a hint if this is
   14504  1.3  christos         # not set. (We don't define these ourselves, as they can affect
   14505  1.3  christos         # other portions of the system API in unpredictable ways.)
   14506  1.1  christos 
   14507  1.3  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14508  1.3  christos /* end confdefs.h.  */
   14509  1.1  christos 
   14510  1.3  christos #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   14511  1.3  christos              AX_PTHREAD_ZOS_MISSING
   14512  1.3  christos #            endif
   14513  1.1  christos 
   14514  1.1  christos _ACEOF
   14515  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14516  1.3  christos   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   14517  1.3  christos   { $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  1.3  christos $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   14519  1.1  christos fi
   14520  1.3  christos rm -f conftest*
   14521  1.3  christos 
   14522  1.3  christos         ;;
   14523  1.3  christos 
   14524  1.3  christos         solaris*)
   14525  1.3  christos 
   14526  1.3  christos         # On Solaris (at least, for some versions), libc contains stubbed
   14527  1.3  christos         # (non-functional) versions of the pthreads routines, so link-based
   14528  1.3  christos         # tests will erroneously succeed. (N.B.: The stubs are missing
   14529  1.3  christos         # pthread_cleanup_push, or rather a function called by this macro,
   14530  1.3  christos         # so we could check for that, but who knows whether they'll stub
   14531  1.3  christos         # that too in a future libc.)  So we'll check first for the
   14532  1.3  christos         # standard Solaris way of linking pthreads (-mt -lpthread).
   14533  1.1  christos 
   14534  1.3  christos         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   14535  1.3  christos         ;;
   14536  1.1  christos esac
   14537  1.1  christos 
   14538  1.3  christos # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   14539  1.3  christos 
   14540  1.3  christos if test "x$GCC" = "xyes"; then :
   14541  1.3  christos   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   14542  1.3  christos fi
   14543  1.1  christos 
   14544  1.3  christos # The presence of a feature test macro requesting re-entrant function
   14545  1.3  christos # definitions is, on some systems, a strong hint that pthreads support is
   14546  1.3  christos # correctly enabled
   14547  1.1  christos 
   14548  1.3  christos case $host_os in
   14549  1.3  christos         darwin* | hpux* | linux* | osf* | solaris*)
   14550  1.3  christos         ax_pthread_check_macro="_REENTRANT"
   14551  1.3  christos         ;;
   14552  1.1  christos 
   14553  1.3  christos         aix*)
   14554  1.3  christos         ax_pthread_check_macro="_THREAD_SAFE"
   14555  1.3  christos         ;;
   14556  1.1  christos 
   14557  1.3  christos         *)
   14558  1.3  christos         ax_pthread_check_macro="--"
   14559  1.3  christos         ;;
   14560  1.1  christos esac
   14561  1.3  christos if test "x$ax_pthread_check_macro" = "x--"; then :
   14562  1.3  christos   ax_pthread_check_cond=0
   14563  1.3  christos else
   14564  1.3  christos   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   14565  1.3  christos fi
   14566  1.1  christos 
   14567  1.3  christos # Are we compiling with Clang?
   14568  1.3  christos 
   14569  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   14570  1.3  christos $as_echo_n "checking whether $CC is Clang... " >&6; }
   14571  1.3  christos if ${ax_cv_PTHREAD_CLANG+:} false; then :
   14572  1.1  christos   $as_echo_n "(cached) " >&6
   14573  1.1  christos else
   14574  1.3  christos   ax_cv_PTHREAD_CLANG=no
   14575  1.3  christos      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   14576  1.3  christos      if test "x$GCC" = "xyes"; then
   14577  1.3  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14578  1.1  christos /* end confdefs.h.  */
   14579  1.3  christos /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   14580  1.3  christos #            if defined(__clang__) && defined(__llvm__)
   14581  1.3  christos              AX_PTHREAD_CC_IS_CLANG
   14582  1.3  christos #            endif
   14583  1.1  christos 
   14584  1.1  christos _ACEOF
   14585  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14586  1.3  christos   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   14587  1.3  christos   ax_cv_PTHREAD_CLANG=yes
   14588  1.3  christos fi
   14589  1.3  christos rm -f conftest*
   14590  1.3  christos 
   14591  1.3  christos      fi
   14592  1.3  christos 
   14593  1.3  christos fi
   14594  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   14595  1.3  christos $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   14596  1.3  christos ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   14597  1.3  christos 
   14598  1.3  christos ax_pthread_clang_warning=no
   14599  1.3  christos 
   14600  1.3  christos # Clang needs special handling, because older versions handle the -pthread
   14601  1.3  christos # option in a rather... idiosyncratic way
   14602  1.3  christos 
   14603  1.3  christos if test "x$ax_pthread_clang" = "xyes"; then
   14604  1.3  christos 
   14605  1.3  christos         # Clang takes -pthread; it has never supported any other flag
   14606  1.3  christos 
   14607  1.3  christos         # (Note 1: This will need to be revisited if a system that Clang
   14608  1.3  christos         # supports has POSIX threads in a separate library.  This tends not
   14609  1.3  christos         # to be the way of modern systems, but it's conceivable.)
   14610  1.3  christos 
   14611  1.3  christos         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   14612  1.3  christos         # to get POSIX threads support; the API is always present and
   14613  1.3  christos         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   14614  1.3  christos         # -pthread does define _REENTRANT, and while the Darwin headers
   14615  1.3  christos         # ignore this macro, third-party headers might not.)
   14616  1.3  christos 
   14617  1.3  christos         PTHREAD_CFLAGS="-pthread"
   14618  1.3  christos         PTHREAD_LIBS=
   14619  1.3  christos 
   14620  1.3  christos         ax_pthread_ok=yes
   14621  1.3  christos 
   14622  1.3  christos         # However, older versions of Clang make a point of warning the user
   14623  1.3  christos         # that, in an invocation where only linking and no compilation is
   14624  1.3  christos         # taking place, the -pthread option has no effect ("argument unused
   14625  1.3  christos         # during compilation").  They expect -pthread to be passed in only
   14626  1.3  christos         # when source code is being compiled.
   14627  1.3  christos         #
   14628  1.3  christos         # Problem is, this is at odds with the way Automake and most other
   14629  1.3  christos         # C build frameworks function, which is that the same flags used in
   14630  1.3  christos         # compilation (CFLAGS) are also used in linking.  Many systems
   14631  1.3  christos         # supported by AX_PTHREAD require exactly this for POSIX threads
   14632  1.3  christos         # support, and in fact it is often not straightforward to specify a
   14633  1.3  christos         # flag that is used only in the compilation phase and not in
   14634  1.3  christos         # linking.  Such a scenario is extremely rare in practice.
   14635  1.3  christos         #
   14636  1.3  christos         # Even though use of the -pthread flag in linking would only print
   14637  1.3  christos         # a warning, this can be a nuisance for well-run software projects
   14638  1.3  christos         # that build with -Werror.  So if the active version of Clang has
   14639  1.3  christos         # this misfeature, we search for an option to squash it.
   14640  1.3  christos 
   14641  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   14642  1.3  christos $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   14643  1.3  christos if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   14644  1.3  christos   $as_echo_n "(cached) " >&6
   14645  1.3  christos else
   14646  1.3  christos   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   14647  1.3  christos              # Create an alternate version of $ac_link that compiles and
   14648  1.3  christos              # links in two steps (.c -> .o, .o -> exe) instead of one
   14649  1.3  christos              # (.c -> exe), because the warning occurs only in the second
   14650  1.3  christos              # step
   14651  1.3  christos              ax_pthread_save_ac_link="$ac_link"
   14652  1.3  christos              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   14653  1.3  christos              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   14654  1.3  christos              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   14655  1.3  christos              ax_pthread_save_CFLAGS="$CFLAGS"
   14656  1.3  christos              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   14657  1.3  christos                 if test "x$ax_pthread_try" = "xunknown"; then :
   14658  1.3  christos   break
   14659  1.1  christos fi
   14660  1.3  christos                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   14661  1.3  christos                 ac_link="$ax_pthread_save_ac_link"
   14662  1.3  christos                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14663  1.3  christos /* end confdefs.h.  */
   14664  1.3  christos int main(void){return 0;}
   14665  1.3  christos _ACEOF
   14666  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   14667  1.3  christos   ac_link="$ax_pthread_2step_ac_link"
   14668  1.3  christos                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14669  1.3  christos /* end confdefs.h.  */
   14670  1.3  christos int main(void){return 0;}
   14671  1.3  christos _ACEOF
   14672  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   14673  1.1  christos   break
   14674  1.1  christos fi
   14675  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14676  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   14677  1.1  christos 
   14678  1.1  christos fi
   14679  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14680  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   14681  1.3  christos              done
   14682  1.3  christos              ac_link="$ax_pthread_save_ac_link"
   14683  1.3  christos              CFLAGS="$ax_pthread_save_CFLAGS"
   14684  1.3  christos              if test "x$ax_pthread_try" = "x"; then :
   14685  1.3  christos   ax_pthread_try=no
   14686  1.3  christos fi
   14687  1.3  christos              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   14688  1.3  christos 
   14689  1.1  christos fi
   14690  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   14691  1.3  christos $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   14692  1.3  christos 
   14693  1.3  christos         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   14694  1.3  christos                 no | unknown) ;;
   14695  1.3  christos                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   14696  1.3  christos         esac
   14697  1.3  christos 
   14698  1.3  christos fi # $ax_pthread_clang = yes
   14699  1.3  christos 
   14700  1.3  christos if test "x$ax_pthread_ok" = "xno"; then
   14701  1.3  christos for ax_pthread_try_flag in $ax_pthread_flags; do
   14702  1.1  christos 
   14703  1.3  christos         case $ax_pthread_try_flag in
   14704  1.3  christos                 none)
   14705  1.3  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   14706  1.3  christos $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   14707  1.3  christos                 ;;
   14708  1.3  christos 
   14709  1.3  christos                 -mt,pthread)
   14710  1.3  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   14711  1.3  christos $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   14712  1.3  christos                 PTHREAD_CFLAGS="-mt"
   14713  1.3  christos                 PTHREAD_LIBS="-lpthread"
   14714  1.3  christos                 ;;
   14715  1.3  christos 
   14716  1.3  christos                 -*)
   14717  1.3  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   14718  1.3  christos $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   14719  1.3  christos                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   14720  1.3  christos                 ;;
   14721  1.3  christos 
   14722  1.3  christos                 pthread-config)
   14723  1.3  christos                 # Extract the first word of "pthread-config", so it can be a program name with args.
   14724  1.3  christos set dummy pthread-config; ac_word=$2
   14725  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14726  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   14727  1.3  christos if ${ac_cv_prog_ax_pthread_config+:} false; then :
   14728  1.3  christos   $as_echo_n "(cached) " >&6
   14729  1.1  christos else
   14730  1.3  christos   if test -n "$ax_pthread_config"; then
   14731  1.3  christos   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   14732  1.3  christos else
   14733  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14734  1.3  christos for as_dir in $PATH
   14735  1.3  christos do
   14736  1.3  christos   IFS=$as_save_IFS
   14737  1.3  christos   test -z "$as_dir" && as_dir=.
   14738  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   14739  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14740  1.3  christos     ac_cv_prog_ax_pthread_config="yes"
   14741  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14742  1.3  christos     break 2
   14743  1.3  christos   fi
   14744  1.3  christos done
   14745  1.3  christos   done
   14746  1.3  christos IFS=$as_save_IFS
   14747  1.3  christos 
   14748  1.3  christos   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   14749  1.3  christos fi
   14750  1.1  christos fi
   14751  1.3  christos ax_pthread_config=$ac_cv_prog_ax_pthread_config
   14752  1.3  christos if test -n "$ax_pthread_config"; then
   14753  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   14754  1.3  christos $as_echo "$ax_pthread_config" >&6; }
   14755  1.1  christos else
   14756  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14757  1.1  christos $as_echo "no" >&6; }
   14758  1.1  christos fi
   14759  1.1  christos 
   14760  1.1  christos 
   14761  1.3  christos                 if test "x$ax_pthread_config" = "xno"; then :
   14762  1.3  christos   continue
   14763  1.1  christos fi
   14764  1.3  christos                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   14765  1.3  christos                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   14766  1.3  christos                 ;;
   14767  1.1  christos 
   14768  1.3  christos                 *)
   14769  1.3  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   14770  1.3  christos $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   14771  1.3  christos                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   14772  1.3  christos                 ;;
   14773  1.3  christos         esac
   14774  1.1  christos 
   14775  1.3  christos         ax_pthread_save_CFLAGS="$CFLAGS"
   14776  1.3  christos         ax_pthread_save_LIBS="$LIBS"
   14777  1.3  christos         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14778  1.3  christos         LIBS="$PTHREAD_LIBS $LIBS"
   14779  1.3  christos 
   14780  1.3  christos         # Check for various functions.  We must include pthread.h,
   14781  1.3  christos         # since some functions may be macros.  (On the Sequent, we
   14782  1.3  christos         # need a special flag -Kthread to make this header compile.)
   14783  1.3  christos         # We check for pthread_join because it is in -lpthread on IRIX
   14784  1.3  christos         # while pthread_create is in libc.  We check for pthread_attr_init
   14785  1.3  christos         # due to DEC craziness with -lpthreads.  We check for
   14786  1.3  christos         # pthread_cleanup_push because it is one of the few pthread
   14787  1.3  christos         # functions on Solaris that doesn't have a non-functional libc stub.
   14788  1.3  christos         # We try pthread_create on general principles.
   14789  1.1  christos 
   14790  1.3  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14791  1.3  christos /* end confdefs.h.  */
   14792  1.3  christos #include <pthread.h>
   14793  1.3  christos #                       if $ax_pthread_check_cond
   14794  1.3  christos #                        error "$ax_pthread_check_macro must be defined"
   14795  1.3  christos #                       endif
   14796  1.3  christos                         static void routine(void *a) { a = 0; }
   14797  1.3  christos                         static void *start_routine(void *a) { return a; }
   14798  1.3  christos int
   14799  1.3  christos main ()
   14800  1.3  christos {
   14801  1.3  christos pthread_t th; pthread_attr_t attr;
   14802  1.3  christos                         pthread_create(&th, 0, start_routine, 0);
   14803  1.3  christos                         pthread_join(th, 0);
   14804  1.3  christos                         pthread_attr_init(&attr);
   14805  1.3  christos                         pthread_cleanup_push(routine, 0);
   14806  1.3  christos                         pthread_cleanup_pop(0) /* ; */
   14807  1.3  christos   ;
   14808  1.3  christos   return 0;
   14809  1.3  christos }
   14810  1.3  christos _ACEOF
   14811  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   14812  1.3  christos   ax_pthread_ok=yes
   14813  1.3  christos fi
   14814  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14815  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   14816  1.1  christos 
   14817  1.3  christos         CFLAGS="$ax_pthread_save_CFLAGS"
   14818  1.3  christos         LIBS="$ax_pthread_save_LIBS"
   14819  1.1  christos 
   14820  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14821  1.3  christos $as_echo "$ax_pthread_ok" >&6; }
   14822  1.3  christos         if test "x$ax_pthread_ok" = "xyes"; then :
   14823  1.3  christos   break
   14824  1.1  christos fi
   14825  1.1  christos 
   14826  1.3  christos         PTHREAD_LIBS=""
   14827  1.3  christos         PTHREAD_CFLAGS=""
   14828  1.3  christos done
   14829  1.3  christos fi
   14830  1.1  christos 
   14831  1.3  christos # Various other checks:
   14832  1.3  christos if test "x$ax_pthread_ok" = "xyes"; then
   14833  1.3  christos         ax_pthread_save_CFLAGS="$CFLAGS"
   14834  1.3  christos         ax_pthread_save_LIBS="$LIBS"
   14835  1.3  christos         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14836  1.3  christos         LIBS="$PTHREAD_LIBS $LIBS"
   14837  1.1  christos 
   14838  1.3  christos         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   14839  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   14840  1.3  christos $as_echo_n "checking for joinable pthread attribute... " >&6; }
   14841  1.3  christos if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   14842  1.3  christos   $as_echo_n "(cached) " >&6
   14843  1.3  christos else
   14844  1.3  christos   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   14845  1.3  christos              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   14846  1.3  christos                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14847  1.1  christos /* end confdefs.h.  */
   14848  1.3  christos #include <pthread.h>
   14849  1.1  christos int
   14850  1.1  christos main ()
   14851  1.1  christos {
   14852  1.3  christos int attr = $ax_pthread_attr; return attr /* ; */
   14853  1.1  christos   ;
   14854  1.1  christos   return 0;
   14855  1.1  christos }
   14856  1.1  christos _ACEOF
   14857  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   14858  1.3  christos   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   14859  1.1  christos fi
   14860  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   14861  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   14862  1.3  christos              done
   14863  1.1  christos 
   14864  1.1  christos fi
   14865  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   14866  1.3  christos $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   14867  1.3  christos         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   14868  1.3  christos                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   14869  1.3  christos                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   14870  1.1  christos 
   14871  1.3  christos cat >>confdefs.h <<_ACEOF
   14872  1.3  christos #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   14873  1.3  christos _ACEOF
   14874  1.1  christos 
   14875  1.3  christos                ax_pthread_joinable_attr_defined=yes
   14876  1.1  christos 
   14877  1.1  christos fi
   14878  1.1  christos 
   14879  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   14880  1.3  christos $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   14881  1.3  christos if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   14882  1.3  christos   $as_echo_n "(cached) " >&6
   14883  1.3  christos else
   14884  1.3  christos   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   14885  1.3  christos              case $host_os in
   14886  1.3  christos              solaris*)
   14887  1.3  christos              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   14888  1.3  christos              ;;
   14889  1.3  christos              esac
   14890  1.1  christos 
   14891  1.3  christos fi
   14892  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   14893  1.3  christos $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   14894  1.3  christos         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   14895  1.3  christos                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   14896  1.3  christos   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   14897  1.3  christos                ax_pthread_special_flags_added=yes
   14898  1.3  christos fi
   14899  1.1  christos 
   14900  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   14901  1.3  christos $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   14902  1.3  christos if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   14903  1.1  christos   $as_echo_n "(cached) " >&6
   14904  1.1  christos else
   14905  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14906  1.1  christos /* end confdefs.h.  */
   14907  1.3  christos #include <pthread.h>
   14908  1.1  christos int
   14909  1.1  christos main ()
   14910  1.1  christos {
   14911  1.3  christos int i = PTHREAD_PRIO_INHERIT;
   14912  1.1  christos   ;
   14913  1.1  christos   return 0;
   14914  1.1  christos }
   14915  1.1  christos _ACEOF
   14916  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   14917  1.3  christos   ax_cv_PTHREAD_PRIO_INHERIT=yes
   14918  1.3  christos else
   14919  1.3  christos   ax_cv_PTHREAD_PRIO_INHERIT=no
   14920  1.1  christos fi
   14921  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   14922  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   14923  1.3  christos 
   14924  1.3  christos fi
   14925  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   14926  1.3  christos $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   14927  1.3  christos         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   14928  1.3  christos                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   14929  1.3  christos 
   14930  1.3  christos $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   14931  1.3  christos 
   14932  1.3  christos                ax_pthread_prio_inherit_defined=yes
   14933  1.3  christos 
   14934  1.1  christos fi
   14935  1.3  christos 
   14936  1.3  christos         CFLAGS="$ax_pthread_save_CFLAGS"
   14937  1.3  christos         LIBS="$ax_pthread_save_LIBS"
   14938  1.3  christos 
   14939  1.3  christos         # More AIX lossage: compile with *_r variant
   14940  1.3  christos         if test "x$GCC" != "xyes"; then
   14941  1.3  christos             case $host_os in
   14942  1.3  christos                 aix*)
   14943  1.3  christos                 case "x/$CC" in #(
   14944  1.3  christos   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  1.3  christos     #handle absolute path differently from PATH based program lookup
   14946  1.3  christos                      case "x$CC" in #(
   14947  1.3  christos   x/*) :
   14948  1.3  christos     if as_fn_executable_p ${CC}_r; then :
   14949  1.3  christos   PTHREAD_CC="${CC}_r"
   14950  1.3  christos fi ;; #(
   14951  1.3  christos   *) :
   14952  1.3  christos     for ac_prog in ${CC}_r
   14953  1.3  christos do
   14954  1.3  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14955  1.3  christos set dummy $ac_prog; ac_word=$2
   14956  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14957  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   14958  1.3  christos if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   14959  1.3  christos   $as_echo_n "(cached) " >&6
   14960  1.3  christos else
   14961  1.3  christos   if test -n "$PTHREAD_CC"; then
   14962  1.3  christos   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   14963  1.3  christos else
   14964  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14965  1.3  christos for as_dir in $PATH
   14966  1.3  christos do
   14967  1.3  christos   IFS=$as_save_IFS
   14968  1.3  christos   test -z "$as_dir" && as_dir=.
   14969  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   14970  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14971  1.3  christos     ac_cv_prog_PTHREAD_CC="$ac_prog"
   14972  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14973  1.3  christos     break 2
   14974  1.3  christos   fi
   14975  1.1  christos done
   14976  1.3  christos   done
   14977  1.3  christos IFS=$as_save_IFS
   14978  1.1  christos 
   14979  1.1  christos fi
   14980  1.1  christos fi
   14981  1.3  christos PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   14982  1.3  christos if test -n "$PTHREAD_CC"; then
   14983  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   14984  1.3  christos $as_echo "$PTHREAD_CC" >&6; }
   14985  1.1  christos else
   14986  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14987  1.3  christos $as_echo "no" >&6; }
   14988  1.1  christos fi
   14989  1.1  christos 
   14990  1.3  christos 
   14991  1.3  christos   test -n "$PTHREAD_CC" && break
   14992  1.3  christos done
   14993  1.3  christos test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   14994  1.3  christos  ;;
   14995  1.3  christos esac ;; #(
   14996  1.3  christos   *) :
   14997  1.3  christos      ;;
   14998  1.3  christos esac
   14999  1.3  christos                 ;;
   15000  1.3  christos             esac
   15001  1.3  christos         fi
   15002  1.1  christos fi
   15003  1.1  christos 
   15004  1.3  christos test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15005  1.3  christos 
   15006  1.3  christos 
   15007  1.3  christos 
   15008  1.3  christos 
   15009  1.1  christos 
   15010  1.3  christos # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15011  1.3  christos if test "x$ax_pthread_ok" = "xyes"; then
   15012  1.1  christos 
   15013  1.3  christos $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15014  1.1  christos 
   15015  1.3  christos         :
   15016  1.3  christos else
   15017  1.3  christos         ax_pthread_ok=no
   15018  1.1  christos 
   15019  1.1  christos fi
   15020  1.3  christos ac_ext=c
   15021  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   15022  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15023  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15024  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15025  1.3  christos 
   15026  1.1  christos 
   15027  1.1  christos 
   15028  1.3  christos LIBS="$PTHREAD_LIBS $LIBS"
   15029  1.3  christos CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15030  1.3  christos CC="$PTHREAD_CC"
   15031  1.3  christos 
   15032  1.1  christos #
   15033  1.3  christos # We'd like to use sigwait() too
   15034  1.1  christos #
   15035  1.3  christos for ac_func in sigwait pthread_attr_getstacksize pthread_attr_setstacksize
   15036  1.3  christos do :
   15037  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15038  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15039  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15040  1.3  christos   cat >>confdefs.h <<_ACEOF
   15041  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15042  1.3  christos _ACEOF
   15043  1.3  christos 
   15044  1.3  christos fi
   15045  1.3  christos done
   15046  1.3  christos 
   15047  1.3  christos 
   15048  1.1  christos 
   15049  1.3  christos # Check whether --with-locktype was given.
   15050  1.3  christos if test "${with_locktype+set}" = set; then :
   15051  1.3  christos   withval=$with_locktype;
   15052  1.1  christos else
   15053  1.3  christos   with_locktype="adaptive"
   15054  1.1  christos fi
   15055  1.1  christos 
   15056  1.1  christos 
   15057  1.3  christos case $with_locktype in #(
   15058  1.3  christos   adaptive) :
   15059  1.1  christos 
   15060  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15061  1.3  christos $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15062  1.3  christos 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15063  1.1  christos /* end confdefs.h.  */
   15064  1.1  christos 
   15065  1.3  christos 		 #ifndef _GNU_SOURCE
   15066  1.3  christos 		 #define _GNU_SOURCE
   15067  1.3  christos 		 #endif
   15068  1.3  christos 		 #include <pthread.h>
   15069  1.3  christos 
   15070  1.1  christos int
   15071  1.1  christos main ()
   15072  1.1  christos {
   15073  1.3  christos 
   15074  1.3  christos 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   15075  1.3  christos 
   15076  1.3  christos 
   15077  1.1  christos   ;
   15078  1.1  christos   return 0;
   15079  1.1  christos }
   15080  1.1  christos _ACEOF
   15081  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15082  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   15083  1.3  christos $as_echo "using adaptive lock type" >&6; }
   15084  1.1  christos 
   15085  1.3  christos $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   15086  1.1  christos 
   15087  1.1  christos else
   15088  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15089  1.3  christos $as_echo "using standard lock type" >&6; }
   15090  1.1  christos 
   15091  1.1  christos fi
   15092  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   15093  1.3  christos   standard) :
   15094  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15095  1.3  christos $as_echo "using standard lock type" >&6; } ;; #(
   15096  1.3  christos   *) :
   15097  1.3  christos     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   15098  1.3  christos         ;;
   15099  1.3  christos esac
   15100  1.1  christos 
   15101  1.3  christos for ac_header in sched.h
   15102  1.3  christos do :
   15103  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15104  1.3  christos if test "x$ac_cv_header_sched_h" = xyes; then :
   15105  1.3  christos   cat >>confdefs.h <<_ACEOF
   15106  1.3  christos #define HAVE_SCHED_H 1
   15107  1.3  christos _ACEOF
   15108  1.1  christos 
   15109  1.1  christos fi
   15110  1.1  christos 
   15111  1.3  christos done
   15112  1.1  christos 
   15113  1.1  christos 
   15114  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   15115  1.3  christos $as_echo_n "checking for library containing sched_yield... " >&6; }
   15116  1.3  christos if ${ac_cv_search_sched_yield+:} false; then :
   15117  1.1  christos   $as_echo_n "(cached) " >&6
   15118  1.1  christos else
   15119  1.3  christos   ac_func_search_save_LIBS=$LIBS
   15120  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15121  1.1  christos /* end confdefs.h.  */
   15122  1.1  christos 
   15123  1.1  christos /* Override any GCC internal prototype to avoid an error.
   15124  1.1  christos    Use char because int might match the return type of a GCC
   15125  1.1  christos    builtin and then its argument prototype would still apply.  */
   15126  1.1  christos #ifdef __cplusplus
   15127  1.1  christos extern "C"
   15128  1.1  christos #endif
   15129  1.3  christos char sched_yield ();
   15130  1.1  christos int
   15131  1.1  christos main ()
   15132  1.1  christos {
   15133  1.3  christos return sched_yield ();
   15134  1.1  christos   ;
   15135  1.1  christos   return 0;
   15136  1.1  christos }
   15137  1.1  christos _ACEOF
   15138  1.3  christos for ac_lib in '' rt; do
   15139  1.3  christos   if test -z "$ac_lib"; then
   15140  1.3  christos     ac_res="none required"
   15141  1.3  christos   else
   15142  1.3  christos     ac_res=-l$ac_lib
   15143  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15144  1.3  christos   fi
   15145  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   15146  1.3  christos   ac_cv_search_sched_yield=$ac_res
   15147  1.3  christos fi
   15148  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   15149  1.3  christos     conftest$ac_exeext
   15150  1.3  christos   if ${ac_cv_search_sched_yield+:} false; then :
   15151  1.3  christos   break
   15152  1.3  christos fi
   15153  1.3  christos done
   15154  1.3  christos if ${ac_cv_search_sched_yield+:} false; then :
   15155  1.3  christos 
   15156  1.1  christos else
   15157  1.3  christos   ac_cv_search_sched_yield=no
   15158  1.3  christos fi
   15159  1.3  christos rm conftest.$ac_ext
   15160  1.3  christos LIBS=$ac_func_search_save_LIBS
   15161  1.3  christos fi
   15162  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   15163  1.3  christos $as_echo "$ac_cv_search_sched_yield" >&6; }
   15164  1.3  christos ac_res=$ac_cv_search_sched_yield
   15165  1.3  christos if test "$ac_res" != no; then :
   15166  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15167  1.3  christos 
   15168  1.3  christos fi
   15169  1.3  christos 
   15170  1.3  christos for ac_func in sched_yield pthread_yield pthread_yield_np
   15171  1.3  christos do :
   15172  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15173  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15174  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15175  1.3  christos   cat >>confdefs.h <<_ACEOF
   15176  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15177  1.3  christos _ACEOF
   15178  1.3  christos 
   15179  1.1  christos fi
   15180  1.3  christos done
   15181  1.3  christos 
   15182  1.3  christos 
   15183  1.3  christos for ac_header in sys/cpuset.h
   15184  1.3  christos do :
   15185  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
   15186  1.3  christos if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
   15187  1.3  christos   cat >>confdefs.h <<_ACEOF
   15188  1.3  christos #define HAVE_SYS_CPUSET_H 1
   15189  1.3  christos _ACEOF
   15190  1.3  christos 
   15191  1.1  christos fi
   15192  1.3  christos 
   15193  1.3  christos done
   15194  1.3  christos 
   15195  1.3  christos for ac_header in sys/procset.h
   15196  1.3  christos do :
   15197  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
   15198  1.3  christos if test "x$ac_cv_header_sys_procset_h" = xyes; then :
   15199  1.1  christos   cat >>confdefs.h <<_ACEOF
   15200  1.3  christos #define HAVE_SYS_PROCSET_H 1
   15201  1.1  christos _ACEOF
   15202  1.1  christos 
   15203  1.3  christos fi
   15204  1.3  christos 
   15205  1.3  christos done
   15206  1.3  christos 
   15207  1.3  christos for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
   15208  1.3  christos do :
   15209  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15210  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15211  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15212  1.3  christos   cat >>confdefs.h <<_ACEOF
   15213  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15214  1.3  christos _ACEOF
   15215  1.1  christos 
   15216  1.1  christos fi
   15217  1.3  christos done
   15218  1.1  christos 
   15219  1.1  christos 
   15220  1.3  christos # Look for functions relating to thread naming
   15221  1.3  christos for ac_func in pthread_setname_np pthread_set_name_np
   15222  1.3  christos do :
   15223  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15224  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15225  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15226  1.3  christos   cat >>confdefs.h <<_ACEOF
   15227  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15228  1.3  christos _ACEOF
   15229  1.1  christos 
   15230  1.1  christos fi
   15231  1.3  christos done
   15232  1.1  christos 
   15233  1.3  christos for ac_header in pthread_np.h
   15234  1.3  christos do :
   15235  1.3  christos   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   15236  1.3  christos "
   15237  1.3  christos if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   15238  1.3  christos   cat >>confdefs.h <<_ACEOF
   15239  1.3  christos #define HAVE_PTHREAD_NP_H 1
   15240  1.3  christos _ACEOF
   15241  1.1  christos 
   15242  1.1  christos fi
   15243  1.1  christos 
   15244  1.3  christos done
   15245  1.3  christos 
   15246  1.1  christos 
   15247  1.1  christos #
   15248  1.3  christos # Look for sysconf to allow detection of the number of processors.
   15249  1.1  christos #
   15250  1.3  christos for ac_func in sysconf
   15251  1.3  christos do :
   15252  1.3  christos   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   15253  1.3  christos if test "x$ac_cv_func_sysconf" = xyes; then :
   15254  1.3  christos   cat >>confdefs.h <<_ACEOF
   15255  1.3  christos #define HAVE_SYSCONF 1
   15256  1.3  christos _ACEOF
   15257  1.3  christos 
   15258  1.1  christos fi
   15259  1.3  christos done
   15260  1.1  christos 
   15261  1.1  christos 
   15262  1.3  christos 
   15263  1.3  christos 
   15264  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   15265  1.3  christos $as_echo_n "checking for libtool... " >&6; }
   15266  1.3  christos 
   15267  1.3  christos # Check whether --with-libtool was given.
   15268  1.3  christos if test "${with_libtool+set}" = set; then :
   15269  1.3  christos   withval=$with_libtool; use_libtool="$withval"
   15270  1.1  christos else
   15271  1.3  christos   use_libtool="no"
   15272  1.1  christos fi
   15273  1.1  christos 
   15274  1.3  christos 
   15275  1.3  christos case $use_libtool in
   15276  1.1  christos 	yes)
   15277  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15278  1.3  christos $as_echo "yes" >&6; }
   15279  1.3  christos 
   15280  1.3  christos 		O=lo
   15281  1.3  christos 		A=la
   15282  1.3  christos 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   15283  1.3  christos 		LIBTOOL_MODE_COMPILE='--mode=compile'
   15284  1.3  christos 		LIBTOOL_MODE_INSTALL='--mode=install'
   15285  1.3  christos 		LIBTOOL_MODE_LINK='--mode=link'
   15286  1.3  christos 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   15287  1.3  christos 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   15288  1.1  christos 		;;
   15289  1.1  christos 	*)
   15290  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15291  1.3  christos $as_echo "no" >&6; }
   15292  1.3  christos 		O=o
   15293  1.3  christos 		A=a
   15294  1.3  christos 		LIBTOOL=
   15295  1.3  christos 
   15296  1.3  christos 		LIBTOOL_MKDEP_SED=
   15297  1.3  christos 		LIBTOOL_MODE_COMPILE=
   15298  1.3  christos 		LIBTOOL_MODE_INSTALL=
   15299  1.3  christos 		LIBTOOL_MODE_LINK=
   15300  1.3  christos 		LIBTOOL_MODE_UNINSTALL=
   15301  1.3  christos 		INSTALL_LIBRARY='${INSTALL_DATA}'
   15302  1.1  christos 		;;
   15303  1.1  christos esac
   15304  1.1  christos 
   15305  1.3  christos 
   15306  1.3  christos #
   15307  1.3  christos # If PIC is disabled, shared libraries must also be
   15308  1.3  christos #
   15309  1.3  christos if test "$pic_mode" = "no"; then :
   15310  1.3  christos   enable_shared="no"
   15311  1.3  christos fi
   15312  1.3  christos 
   15313  1.3  christos CRYPTO=OpenSSL
   15314  1.3  christos 
   15315  1.1  christos #
   15316  1.3  christos # was --with-openssl specified?
   15317  1.1  christos #
   15318  1.1  christos 
   15319  1.3  christos     found=false
   15320  1.3  christos     default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
   15321  1.3  christos 
   15322  1.3  christos # Check whether --with-openssl was given.
   15323  1.3  christos if test "${with_openssl+set}" = set; then :
   15324  1.3  christos   withval=$with_openssl;
   15325  1.3  christos 	    case $with_openssl in #(
   15326  1.3  christos   ""|y|ye|yes) :
   15327  1.3  christos     ssldirs="$default_ssldirs" ;; #(
   15328  1.3  christos   n|no) :
   15329  1.3  christos     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   15330  1.3  christos   *) :
   15331  1.3  christos     ssldirs="$withval" ;; #(
   15332  1.3  christos   *) :
   15333  1.3  christos     ssldirs="$default_ssldirs"
   15334  1.3  christos 	     ;;
   15335  1.3  christos esac
   15336  1.3  christos 
   15337  1.3  christos else
   15338  1.3  christos 
   15339  1.3  christos             # if pkg-config is installed and openssl has installed a .pc file,
   15340  1.3  christos             # then use that information and don't search ssldirs
   15341  1.1  christos 
   15342  1.3  christos pkg_failed=no
   15343  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   15344  1.3  christos $as_echo_n "checking for crypto... " >&6; }
   15345  1.1  christos 
   15346  1.3  christos if test -n "$OPENSSL_CFLAGS"; then
   15347  1.3  christos     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   15348  1.3  christos  elif test -n "$PKG_CONFIG"; then
   15349  1.3  christos     if test -n "$PKG_CONFIG" && \
   15350  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15351  1.3  christos   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15352  1.3  christos   ac_status=$?
   15353  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15354  1.3  christos   test $ac_status = 0; }; then
   15355  1.3  christos   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   15356  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   15357  1.3  christos else
   15358  1.3  christos   pkg_failed=yes
   15359  1.3  christos fi
   15360  1.3  christos  else
   15361  1.3  christos     pkg_failed=untried
   15362  1.3  christos fi
   15363  1.3  christos if test -n "$OPENSSL_LIBS"; then
   15364  1.3  christos     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   15365  1.3  christos  elif test -n "$PKG_CONFIG"; then
   15366  1.3  christos     if test -n "$PKG_CONFIG" && \
   15367  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15368  1.3  christos   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15369  1.3  christos   ac_status=$?
   15370  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15371  1.3  christos   test $ac_status = 0; }; then
   15372  1.3  christos   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   15373  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   15374  1.1  christos else
   15375  1.3  christos   pkg_failed=yes
   15376  1.3  christos fi
   15377  1.3  christos  else
   15378  1.3  christos     pkg_failed=untried
   15379  1.1  christos fi
   15380  1.3  christos 
   15381  1.3  christos 
   15382  1.3  christos 
   15383  1.3  christos if test $pkg_failed = yes; then
   15384  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15385  1.1  christos $as_echo "no" >&6; }
   15386  1.1  christos 
   15387  1.3  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   15388  1.3  christos         _pkg_short_errors_supported=yes
   15389  1.1  christos else
   15390  1.3  christos         _pkg_short_errors_supported=no
   15391  1.1  christos fi
   15392  1.3  christos         if test $_pkg_short_errors_supported = yes; then
   15393  1.3  christos 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   15394  1.3  christos         else
   15395  1.3  christos 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   15396  1.3  christos         fi
   15397  1.3  christos 	# Put the nasty error message in config.log where it belongs
   15398  1.3  christos 	echo "$OPENSSL_PKG_ERRORS" >&5
   15399  1.3  christos 
   15400  1.3  christos 	ssldirs="$default_ssldirs"
   15401  1.3  christos elif test $pkg_failed = untried; then
   15402  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15403  1.3  christos $as_echo "no" >&6; }
   15404  1.3  christos 	ssldirs="$default_ssldirs"
   15405  1.3  christos else
   15406  1.3  christos 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   15407  1.3  christos 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   15408  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15409  1.1  christos $as_echo "yes" >&6; }
   15410  1.3  christos 	found=true
   15411  1.3  christos fi
   15412  1.3  christos 
   15413  1.3  christos 
   15414  1.3  christos 
   15415  1.1  christos fi
   15416  1.1  christos 
   15417  1.1  christos 
   15418  1.1  christos 
   15419  1.3  christos     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   15420  1.3  christos     # an 'openssl' subdirectory
   15421  1.3  christos 
   15422  1.3  christos     if ! $found; then :
   15423  1.3  christos 
   15424  1.3  christos         OPENSSL_INCLUDES=
   15425  1.3  christos         for ssldir in $ssldirs; do
   15426  1.3  christos             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   15427  1.3  christos $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   15428  1.3  christos 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   15429  1.3  christos 
   15430  1.3  christos 		    OPENSSL_INCLUDES="-I$ssldir/include"
   15431  1.3  christos                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   15432  1.3  christos                     found=true
   15433  1.3  christos                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15434  1.3  christos $as_echo "yes" >&6; }
   15435  1.3  christos                     break
   15436  1.3  christos 
   15437  1.3  christos else
   15438  1.1  christos 
   15439  1.3  christos 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15440  1.3  christos $as_echo "no" >&6; }
   15441  1.1  christos 
   15442  1.3  christos fi
   15443  1.3  christos         done
   15444  1.1  christos 
   15445  1.3  christos         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   15446  1.3  christos         # it will just work!
   15447  1.1  christos 
   15448  1.1  christos fi
   15449  1.1  christos 
   15450  1.3  christos     # try the preprocessor and linker with our new flags,
   15451  1.3  christos     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   15452  1.1  christos 
   15453  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   15454  1.3  christos $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   15455  1.3  christos     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES])
   15456  1.3  christos 
   15457  1.3  christos     save_LIBS="$LIBS"
   15458  1.3  christos     save_CPPFLAGS="$CPPFLAGS"
   15459  1.3  christos     LIBS="$OPENSSL_LIBS $LIBS"
   15460  1.3  christos     CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
   15461  1.3  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15462  1.1  christos /* end confdefs.h.  */
   15463  1.1  christos 
   15464  1.3  christos                 #include <openssl/crypto.h>
   15465  1.3  christos 
   15466  1.1  christos int
   15467  1.1  christos main ()
   15468  1.1  christos {
   15469  1.3  christos 
   15470  1.3  christos 	        OPENSSL_free(NULL);
   15471  1.3  christos 
   15472  1.1  christos   ;
   15473  1.1  christos   return 0;
   15474  1.1  christos }
   15475  1.1  christos _ACEOF
   15476  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   15477  1.3  christos 
   15478  1.3  christos             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15479  1.3  christos $as_echo "yes" >&6; }
   15480  1.3  christos             :
   15481  1.3  christos 
   15482  1.1  christos else
   15483  1.3  christos 
   15484  1.3  christos             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15485  1.3  christos $as_echo "no" >&6; }
   15486  1.3  christos             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15487  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15488  1.3  christos as_fn_error $? "OpenSSL/LibreSSL not found
   15489  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15490  1.3  christos 
   15491  1.1  christos fi
   15492  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   15493  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   15494  1.3  christos     CPPFLAGS="$save_CPPFLAGS"
   15495  1.3  christos     LIBS="$save_LIBS"
   15496  1.3  christos 
   15497  1.3  christos 
   15498  1.3  christos 
   15499  1.1  christos 
   15500  1.1  christos 
   15501  1.3  christos save_CFLAGS="$CFLAGS"
   15502  1.3  christos save_LIBS="$LIBS"
   15503  1.3  christos save_LDFLAGS="$LDFLAGS"
   15504  1.3  christos CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
   15505  1.3  christos LIBS="$LIBS $OPENSSL_LIBS"
   15506  1.3  christos LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
   15507  1.1  christos 
   15508  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
   15509  1.3  christos $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
   15510  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15511  1.1  christos /* end confdefs.h.  */
   15512  1.3  christos #include <openssl/opensslv.h>
   15513  1.1  christos int
   15514  1.1  christos main ()
   15515  1.1  christos {
   15516  1.3  christos #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
   15517  1.3  christos 		       #error OpenSSL >= 1.0.0 or LibreSSL required
   15518  1.3  christos 		       #endif
   15519  1.3  christos 
   15520  1.1  christos   ;
   15521  1.1  christos   return 0;
   15522  1.1  christos }
   15523  1.1  christos _ACEOF
   15524  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15525  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15526  1.3  christos $as_echo "yes" >&6; }
   15527  1.1  christos else
   15528  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15529  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15530  1.3  christos as_fn_error $? "not found
   15531  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15532  1.1  christos fi
   15533  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15534  1.1  christos 
   15535  1.1  christos #
   15536  1.3  christos # Check for functions added in OpenSSL or LibreSSL
   15537  1.1  christos #
   15538  1.1  christos 
   15539  1.3  christos for ac_func in CRYPTO_zalloc
   15540  1.3  christos do :
   15541  1.3  christos   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   15542  1.3  christos if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   15543  1.3  christos   cat >>confdefs.h <<_ACEOF
   15544  1.3  christos #define HAVE_CRYPTO_ZALLOC 1
   15545  1.3  christos _ACEOF
   15546  1.1  christos 
   15547  1.3  christos fi
   15548  1.3  christos done
   15549  1.1  christos 
   15550  1.3  christos for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   15551  1.3  christos do :
   15552  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15553  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15554  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15555  1.3  christos   cat >>confdefs.h <<_ACEOF
   15556  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15557  1.3  christos _ACEOF
   15558  1.1  christos 
   15559  1.1  christos fi
   15560  1.3  christos done
   15561  1.1  christos 
   15562  1.3  christos for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   15563  1.3  christos do :
   15564  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15565  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15566  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15567  1.3  christos   cat >>confdefs.h <<_ACEOF
   15568  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15569  1.3  christos _ACEOF
   15570  1.1  christos 
   15571  1.3  christos fi
   15572  1.1  christos done
   15573  1.1  christos 
   15574  1.3  christos for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   15575  1.3  christos do :
   15576  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15577  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15578  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15579  1.3  christos   cat >>confdefs.h <<_ACEOF
   15580  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15581  1.3  christos _ACEOF
   15582  1.3  christos 
   15583  1.1  christos fi
   15584  1.3  christos done
   15585  1.1  christos 
   15586  1.1  christos 
   15587  1.1  christos #
   15588  1.3  christos # Check for algorithm support in OpenSSL
   15589  1.1  christos #
   15590  1.1  christos 
   15591  1.3  christos for ac_func in ECDSA_sign ECDSA_verify
   15592  1.3  christos do :
   15593  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15594  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15595  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15596  1.3  christos   cat >>confdefs.h <<_ACEOF
   15597  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15598  1.3  christos _ACEOF
   15599  1.3  christos  :
   15600  1.1  christos else
   15601  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15602  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15603  1.3  christos as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   15604  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15605  1.1  christos fi
   15606  1.3  christos done
   15607  1.1  christos 
   15608  1.1  christos 
   15609  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   15610  1.3  christos $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   15611  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15612  1.3  christos /* end confdefs.h.  */
   15613  1.3  christos #include <openssl/evp.h>
   15614  1.3  christos int
   15615  1.3  christos main ()
   15616  1.3  christos {
   15617  1.3  christos EVP_PKEY_CTX *ctx = NID_X9_62_prime256v1;
   15618  1.3  christos   ;
   15619  1.3  christos   return 0;
   15620  1.3  christos }
   15621  1.3  christos _ACEOF
   15622  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15623  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15624  1.1  christos $as_echo "yes" >&6; }
   15625  1.3  christos else
   15626  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15627  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15628  1.3  christos as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   15629  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15630  1.3  christos fi
   15631  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15632  1.1  christos 
   15633  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   15634  1.3  christos $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   15635  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15636  1.3  christos /* end confdefs.h.  */
   15637  1.3  christos #include <openssl/evp.h>
   15638  1.3  christos int
   15639  1.3  christos main ()
   15640  1.3  christos {
   15641  1.3  christos EVP_PKEY_CTX *ctx = NID_secp384r1;
   15642  1.3  christos   ;
   15643  1.3  christos   return 0;
   15644  1.3  christos }
   15645  1.3  christos _ACEOF
   15646  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15647  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15648  1.3  christos $as_echo "yes" >&6; }
   15649  1.1  christos else
   15650  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15651  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15652  1.3  christos as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   15653  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15654  1.1  christos fi
   15655  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15656  1.1  christos 
   15657  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   15658  1.3  christos $as_echo_n "checking for Ed25519 support... " >&6; }
   15659  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15660  1.1  christos /* end confdefs.h.  */
   15661  1.3  christos #include <openssl/evp.h>
   15662  1.1  christos int
   15663  1.1  christos main ()
   15664  1.1  christos {
   15665  1.3  christos EVP_PKEY_CTX *ctx = NID_ED25519;
   15666  1.1  christos   ;
   15667  1.1  christos   return 0;
   15668  1.1  christos }
   15669  1.1  christos _ACEOF
   15670  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15671  1.1  christos 
   15672  1.3  christos $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   15673  1.1  christos 
   15674  1.3  christos      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15675  1.3  christos $as_echo "yes" >&6; }
   15676  1.3  christos else
   15677  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15678  1.3  christos $as_echo "no" >&6; }
   15679  1.1  christos fi
   15680  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15681  1.1  christos 
   15682  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   15683  1.3  christos $as_echo_n "checking for Ed448 support... " >&6; }
   15684  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
   15685  1.3  christos $as_echo "broken" >&6; }
   15686  1.3  christos #AC_COMPILE_IFELSE(
   15687  1.3  christos #    [AC_LANG_PROGRAM([[#include <openssl/evp.h>]],
   15688  1.3  christos #		     [[EVP_PKEY_CTX *ctx = NID_ED448;]])],
   15689  1.3  christos #    [AC_DEFINE([HAVE_OPENSSL_ED448], [1], [define if OpenSSL supports Ed448])
   15690  1.3  christos #     AC_MSG_RESULT([yes])],
   15691  1.3  christos #    [AC_MSG_RESULT([no])])
   15692  1.1  christos 
   15693  1.3  christos #
   15694  1.3  christos # Check for OpenSSL SHA-1 support
   15695  1.3  christos #
   15696  1.3  christos for ac_func in EVP_sha1
   15697  1.3  christos do :
   15698  1.3  christos   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   15699  1.3  christos if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   15700  1.3  christos   cat >>confdefs.h <<_ACEOF
   15701  1.3  christos #define HAVE_EVP_SHA1 1
   15702  1.3  christos _ACEOF
   15703  1.3  christos  :
   15704  1.1  christos else
   15705  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15706  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15707  1.3  christos as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   15708  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15709  1.1  christos fi
   15710  1.3  christos done
   15711  1.1  christos 
   15712  1.1  christos 
   15713  1.3  christos #
   15714  1.3  christos # Check for OpenSSL SHA-2 support
   15715  1.3  christos #
   15716  1.3  christos for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   15717  1.3  christos do :
   15718  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15719  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15720  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15721  1.3  christos   cat >>confdefs.h <<_ACEOF
   15722  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15723  1.3  christos _ACEOF
   15724  1.3  christos  :
   15725  1.3  christos else
   15726  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15727  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15728  1.3  christos as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   15729  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15730  1.3  christos fi
   15731  1.3  christos done
   15732  1.1  christos 
   15733  1.1  christos 
   15734  1.1  christos #
   15735  1.3  christos # Check for OpenSSL AES support
   15736  1.1  christos #
   15737  1.3  christos for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   15738  1.3  christos do :
   15739  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15740  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15741  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15742  1.3  christos   cat >>confdefs.h <<_ACEOF
   15743  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15744  1.3  christos _ACEOF
   15745  1.3  christos  :
   15746  1.3  christos else
   15747  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15748  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15749  1.3  christos as_fn_error $? "AES support in OpenSSL is mandatory.
   15750  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15751  1.3  christos fi
   15752  1.3  christos done
   15753  1.1  christos 
   15754  1.1  christos 
   15755  1.3  christos #
   15756  1.3  christos # Check for OpenSSL 1.1.x/LibreSSL functions
   15757  1.3  christos #
   15758  1.3  christos for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   15759  1.3  christos do :
   15760  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15761  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15762  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15763  1.3  christos   cat >>confdefs.h <<_ACEOF
   15764  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15765  1.3  christos _ACEOF
   15766  1.1  christos 
   15767  1.3  christos fi
   15768  1.3  christos done
   15769  1.1  christos 
   15770  1.1  christos 
   15771  1.3  christos #
   15772  1.3  christos # Check whether FIPS mode is available and whether we should enable it
   15773  1.3  christos #
   15774  1.3  christos # Check whether --enable-fips-mode was given.
   15775  1.3  christos if test "${enable_fips_mode+set}" = set; then :
   15776  1.3  christos   enableval=$enable_fips_mode;
   15777  1.3  christos else
   15778  1.3  christos   enable_fips_mode="no"
   15779  1.3  christos fi
   15780  1.1  christos 
   15781  1.1  christos 
   15782  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   15783  1.3  christos $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   15784  1.3  christos case $enable_fips_mode in #(
   15785  1.3  christos   yes) :
   15786  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15787  1.3  christos $as_echo "yes" >&6; }
   15788  1.3  christos 		for ac_func in FIPS_mode
   15789  1.3  christos do :
   15790  1.3  christos   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   15791  1.3  christos if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   15792  1.3  christos   cat >>confdefs.h <<_ACEOF
   15793  1.3  christos #define HAVE_FIPS_MODE 1
   15794  1.3  christos _ACEOF
   15795  1.1  christos 
   15796  1.3  christos else
   15797  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15798  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15799  1.3  christos as_fn_error $? "OpenSSL FIPS mode requested but not available.
   15800  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15801  1.3  christos fi
   15802  1.3  christos done
   15803  1.3  christos  ;; #(
   15804  1.3  christos   no) :
   15805  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15806  1.3  christos $as_echo "no" >&6; } ;; #(
   15807  1.3  christos   *) :
   15808  1.3  christos      ;;
   15809  1.3  christos esac
   15810  1.1  christos 
   15811  1.3  christos CFLAGS="$save_CFLAGS"
   15812  1.3  christos LIBS="$save_LIBS"
   15813  1.3  christos LDFLAGS="$save_LDFLAGS"
   15814  1.1  christos 
   15815  1.1  christos 
   15816  1.1  christos 
   15817  1.1  christos 
   15818  1.1  christos 
   15819  1.1  christos #
   15820  1.3  christos # Client Cookie algorithm choice
   15821  1.1  christos #
   15822  1.1  christos 
   15823  1.3  christos # Check whether --with-cc-alg was given.
   15824  1.3  christos if test "${with_cc_alg+set}" = set; then :
   15825  1.3  christos   withval=$with_cc_alg; :
   15826  1.3  christos else
   15827  1.3  christos   with_cc_alg="aes"
   15828  1.1  christos fi
   15829  1.1  christos 
   15830  1.1  christos 
   15831  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the algorithm for Client Cookie" >&5
   15832  1.3  christos $as_echo_n "checking for the algorithm for Client Cookie... " >&6; }
   15833  1.3  christos case $with_cc_alg in #(
   15834  1.3  christos   sha1|SHA1) :
   15835  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha1" >&5
   15836  1.3  christos $as_echo "sha1" >&6; }
   15837  1.3  christos 
   15838  1.3  christos $as_echo "#define HMAC_SHA1_CC 1" >>confdefs.h
   15839  1.3  christos  ;; #(
   15840  1.3  christos   sha256|SHA256) :
   15841  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha256" >&5
   15842  1.3  christos $as_echo "sha256" >&6; }
   15843  1.3  christos 
   15844  1.3  christos $as_echo "#define HMAC_SHA256_CC 1" >>confdefs.h
   15845  1.3  christos  ;; #(
   15846  1.3  christos   aes|AES|auto) :
   15847  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: aes" >&5
   15848  1.3  christos $as_echo "aes" >&6; }
   15849  1.1  christos 
   15850  1.3  christos $as_echo "#define AES_CC 1" >>confdefs.h
   15851  1.3  christos  ;; #(
   15852  1.3  christos   *) :
   15853  1.3  christos     as_fn_error $? "Invalid $with_cc_alg algorithm for Client Cookie" "$LINENO" 5 ;;
   15854  1.1  christos esac
   15855  1.1  christos 
   15856  1.3  christos 
   15857  1.3  christos PKCS11_TOOLS=
   15858  1.3  christos PKCS11_TEST=
   15859  1.1  christos #
   15860  1.3  christos # was --enable-native-pkcs11 specified?
   15861  1.1  christos #
   15862  1.3  christos # Check whether --enable-native-pkcs11 was given.
   15863  1.3  christos if test "${enable_native_pkcs11+set}" = set; then :
   15864  1.3  christos   enableval=$enable_native_pkcs11; :
   15865  1.3  christos else
   15866  1.3  christos   enable_native_pkcs11="no"
   15867  1.3  christos fi
   15868  1.3  christos 
   15869  1.1  christos 
   15870  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   15871  1.3  christos $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   15872  1.3  christos case $enable_native_pkcs11 in #(
   15873  1.3  christos   no) :
   15874  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15875  1.3  christos $as_echo "no" >&6; } ;; #(
   15876  1.3  christos   yes) :
   15877  1.3  christos     PKCS11_TOOLS=pkcs11
   15878  1.3  christos 	       PKCS11_TEST=pkcs11
   15879  1.3  christos 	       CRYPTO=pkcs11
   15880  1.3  christos 	       if $use_threads; then :
   15881  1.3  christos   :
   15882  1.1  christos else
   15883  1.3  christos   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   15884  1.1  christos fi
   15885  1.3  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15886  1.3  christos $as_echo "yes" >&6; }
   15887  1.3  christos 	       for ac_func in getpassphrase
   15888  1.3  christos do :
   15889  1.3  christos   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   15890  1.3  christos if test "x$ac_cv_func_getpassphrase" = xyes; then :
   15891  1.3  christos   cat >>confdefs.h <<_ACEOF
   15892  1.3  christos #define HAVE_GETPASSPHRASE 1
   15893  1.3  christos _ACEOF
   15894  1.1  christos 
   15895  1.3  christos fi
   15896  1.3  christos done
   15897  1.1  christos 
   15898  1.3  christos 	       ;; #(
   15899  1.3  christos   *) :
   15900  1.3  christos      ;;
   15901  1.3  christos esac
   15902  1.1  christos 
   15903  1.1  christos 
   15904  1.1  christos 
   15905  1.3  christos case $CRYPTO in #(
   15906  1.3  christos   pkcs11) :
   15907  1.1  christos 
   15908  1.3  christos $as_echo "#define USE_PKCS11 1" >>confdefs.h
   15909  1.3  christos  ;; #(
   15910  1.3  christos   *) :
   15911  1.1  christos 
   15912  1.3  christos $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   15913  1.3  christos  ;;
   15914  1.1  christos esac
   15915  1.1  christos 
   15916  1.3  christos # preparation for automake
   15917  1.3  christos # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   15918  1.3  christos 
   15919  1.1  christos #
   15920  1.3  christos # was --with-pkcs11 specified?
   15921  1.1  christos #
   15922  1.1  christos 
   15923  1.3  christos # Check whether --with-pkcs11 was given.
   15924  1.3  christos if test "${with_pkcs11+set}" = set; then :
   15925  1.3  christos   withval=$with_pkcs11; :
   15926  1.3  christos else
   15927  1.3  christos   with_pkcs11="undefined"
   15928  1.3  christos fi
   15929  1.1  christos 
   15930  1.1  christos 
   15931  1.3  christos case $with_pkcs11 in #(
   15932  1.3  christos   yes|auto) :
   15933  1.3  christos     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   15934  1.3  christos   no|undefined) :
   15935  1.3  christos     with_pkcs11="undefined" ;; #(
   15936  1.3  christos   *) :
   15937  1.3  christos      ;;
   15938  1.1  christos esac
   15939  1.1  christos 
   15940  1.3  christos cat >>confdefs.h <<_ACEOF
   15941  1.3  christos #define PK11_LIB_LOCATION "$with_pkcs11"
   15942  1.3  christos _ACEOF
   15943  1.1  christos 
   15944  1.1  christos 
   15945  1.3  christos # for PKCS11 benchmarks
   15946  1.1  christos 
   15947  1.3  christos have_clock_gt=no
   15948  1.3  christos ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   15949  1.3  christos if test "x$ac_cv_func_clock_gettime" = xyes; then :
   15950  1.3  christos   have_clock_gt=yes
   15951  1.1  christos fi
   15952  1.1  christos 
   15953  1.3  christos if test "no" = "$have_clock_gt"; then
   15954  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   15955  1.3  christos $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   15956  1.3  christos if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   15957  1.3  christos   $as_echo_n "(cached) " >&6
   15958  1.3  christos else
   15959  1.3  christos   ac_check_lib_save_LIBS=$LIBS
   15960  1.3  christos LIBS="-lrt  $LIBS"
   15961  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15962  1.1  christos /* end confdefs.h.  */
   15963  1.1  christos 
   15964  1.3  christos /* Override any GCC internal prototype to avoid an error.
   15965  1.3  christos    Use char because int might match the return type of a GCC
   15966  1.3  christos    builtin and then its argument prototype would still apply.  */
   15967  1.3  christos #ifdef __cplusplus
   15968  1.3  christos extern "C"
   15969  1.3  christos #endif
   15970  1.3  christos char clock_gettime ();
   15971  1.1  christos int
   15972  1.1  christos main ()
   15973  1.1  christos {
   15974  1.3  christos return clock_gettime ();
   15975  1.1  christos   ;
   15976  1.1  christos   return 0;
   15977  1.1  christos }
   15978  1.1  christos _ACEOF
   15979  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   15980  1.3  christos   ac_cv_lib_rt_clock_gettime=yes
   15981  1.1  christos else
   15982  1.3  christos   ac_cv_lib_rt_clock_gettime=no
   15983  1.1  christos fi
   15984  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   15985  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   15986  1.3  christos LIBS=$ac_check_lib_save_LIBS
   15987  1.3  christos fi
   15988  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   15989  1.3  christos $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   15990  1.3  christos if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   15991  1.3  christos   have_clock_gt=rt
   15992  1.3  christos fi
   15993  1.3  christos 
   15994  1.3  christos fi
   15995  1.3  christos 
   15996  1.3  christos if test "no" != "$have_clock_gt"; then
   15997  1.1  christos 
   15998  1.3  christos $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   15999  1.3  christos 
   16000  1.3  christos fi
   16001  1.3  christos 
   16002  1.3  christos if test "rt" = "$have_clock_gt"; then
   16003  1.3  christos 	LIBS="-lrt $LIBS"
   16004  1.3  christos fi
   16005  1.1  christos 
   16006  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   16007  1.3  christos $as_echo_n "checking for GSSAPI library... " >&6; }
   16008  1.1  christos 
   16009  1.3  christos # Check whether --with-gssapi was given.
   16010  1.3  christos if test "${with_gssapi+set}" = set; then :
   16011  1.3  christos   withval=$with_gssapi; use_gssapi="$withval"
   16012  1.1  christos else
   16013  1.3  christos   use_gssapi="yes"
   16014  1.1  christos fi
   16015  1.1  christos 
   16016  1.1  christos 
   16017  1.3  christos # first try using krb5-config, if that does not work then fall back to "yes" method.
   16018  1.3  christos 
   16019  1.3  christos case "$use_gssapi" in
   16020  1.3  christos */krb5-config|krb5-config)
   16021  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   16022  1.3  christos $as_echo "trying $use_gssapi" >&6; }
   16023  1.3  christos     if test krb5-config = "$use_gssapi"
   16024  1.3  christos     then
   16025  1.3  christos 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   16026  1.3  christos set dummy $use_gssapi; ac_word=$2
   16027  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16028  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   16029  1.3  christos if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   16030  1.3  christos   $as_echo_n "(cached) " >&6
   16031  1.3  christos else
   16032  1.3  christos   case $KRB5_CONFIG in
   16033  1.3  christos   [\\/]* | ?:[\\/]*)
   16034  1.3  christos   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   16035  1.3  christos   ;;
   16036  1.3  christos   *)
   16037  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16038  1.3  christos for as_dir in $PATH
   16039  1.3  christos do
   16040  1.3  christos   IFS=$as_save_IFS
   16041  1.3  christos   test -z "$as_dir" && as_dir=.
   16042  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   16043  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16044  1.3  christos     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   16045  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16046  1.3  christos     break 2
   16047  1.3  christos   fi
   16048  1.3  christos done
   16049  1.3  christos   done
   16050  1.3  christos IFS=$as_save_IFS
   16051  1.1  christos 
   16052  1.3  christos   ;;
   16053  1.3  christos esac
   16054  1.3  christos fi
   16055  1.3  christos KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   16056  1.3  christos if test -n "$KRB5_CONFIG"; then
   16057  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   16058  1.3  christos $as_echo "$KRB5_CONFIG" >&6; }
   16059  1.1  christos else
   16060  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16061  1.1  christos $as_echo "no" >&6; }
   16062  1.1  christos fi
   16063  1.1  christos 
   16064  1.1  christos 
   16065  1.3  christos     else
   16066  1.3  christos 	KRB5_CONFIG="$use_gssapi"
   16067  1.3  christos     fi
   16068  1.3  christos     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   16069  1.3  christos     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   16070  1.3  christos     saved_cppflags="$CPPFLAGS"
   16071  1.3  christos     CPPFLAGS="$gssapi_cflags $CPPFLAGS"
   16072  1.3  christos     for ac_header in gssapi.h gssapi/gssapi.h
   16073  1.3  christos do :
   16074  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16075  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16076  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16077  1.3  christos   cat >>confdefs.h <<_ACEOF
   16078  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16079  1.3  christos _ACEOF
   16080  1.3  christos  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16081  1.3  christos fi
   16082  1.3  christos 
   16083  1.3  christos done
   16084  1.1  christos 
   16085  1.3  christos     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16086  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   16087  1.3  christos $as_echo "krb5-config: gssapi.h not found" >&6; }
   16088  1.3  christos 	CPPFLAGS="$saved_cppflags"
   16089  1.3  christos 	use_gssapi="yes"
   16090  1.3  christos     else
   16091  1.3  christos 	for ac_header in krb5/krb5.h krb5.h
   16092  1.3  christos do :
   16093  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16094  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16095  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16096  1.3  christos   cat >>confdefs.h <<_ACEOF
   16097  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16098  1.1  christos _ACEOF
   16099  1.3  christos  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16100  1.1  christos fi
   16101  1.1  christos 
   16102  1.3  christos done
   16103  1.3  christos 
   16104  1.3  christos 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16105  1.3  christos 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   16106  1.3  christos $as_echo "krb5-config: krb5.h not found" >&6; }
   16107  1.3  christos 	    CPPFLAGS="$saved_cppflags"
   16108  1.3  christos 	    use_gssapi="yes"
   16109  1.3  christos 	else
   16110  1.3  christos 	    CPPFLAGS="$saved_cppflags"
   16111  1.3  christos 	    saved_libs="$LIBS"
   16112  1.3  christos 	    LIBS=$gssapi_libs
   16113  1.3  christos 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   16114  1.3  christos $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   16115  1.3  christos 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16116  1.1  christos /* end confdefs.h.  */
   16117  1.1  christos 
   16118  1.1  christos int
   16119  1.1  christos main ()
   16120  1.1  christos {
   16121  1.3  christos gss_acquire_cred();krb5_init_context()
   16122  1.1  christos   ;
   16123  1.1  christos   return 0;
   16124  1.1  christos }
   16125  1.1  christos _ACEOF
   16126  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   16127  1.3  christos   gssapi_linked=yes
   16128  1.1  christos else
   16129  1.3  christos   gssapi_linked=no
   16130  1.1  christos fi
   16131  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16132  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   16133  1.3  christos 	    case $gssapi_linked in
   16134  1.3  christos 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   16135  1.3  christos $as_echo "krb5-config: linked" >&6; };;
   16136  1.3  christos 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   16137  1.3  christos $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   16138  1.3  christos 		    use_gssapi="yes"
   16139  1.3  christos 		    ;;
   16140  1.3  christos 	    esac
   16141  1.3  christos 	    LIBS=$saved_libs
   16142  1.3  christos 	fi
   16143  1.3  christos     fi
   16144  1.3  christos     if test "yes" = "$use_gssapi"; then
   16145  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   16146  1.3  christos $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   16147  1.3  christos     fi
   16148  1.3  christos     ;;
   16149  1.3  christos esac
   16150  1.1  christos 
   16151  1.3  christos case "$host" in
   16152  1.3  christos *darwin*)
   16153  1.3  christos 	if test "yes" = "$use_gssapi"
   16154  1.3  christos 	then
   16155  1.3  christos 		use_gssapi=framework
   16156  1.3  christos 	fi
   16157  1.3  christos 	;;
   16158  1.3  christos esac
   16159  1.1  christos 
   16160  1.3  christos # gssapi is just the framework, we really require kerberos v5, so
   16161  1.3  christos # look for those headers (the gssapi headers must be there, too)
   16162  1.3  christos # The problem with this implementation is that it doesn't allow
   16163  1.3  christos # for the specification of gssapi and krb5 headers in different locations,
   16164  1.3  christos # which probably ought to be fixed although fixing might raise the issue of
   16165  1.3  christos # trying to build with incompatible versions of gssapi and krb5.
   16166  1.3  christos if test "yes" = "$use_gssapi"
   16167  1.3  christos then
   16168  1.3  christos 	# first, deal with the obvious
   16169  1.3  christos 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   16170  1.3  christos 		   -f /usr/include/krb5/krb5.h -o \
   16171  1.3  christos 		   -f /usr/include/krb5.h \)   -a \
   16172  1.3  christos 		\( -f /usr/include/gssapi.h -o \
   16173  1.3  christos 		   -f /usr/include/gssapi/gssapi.h \)
   16174  1.3  christos 	then
   16175  1.3  christos 		use_gssapi=/usr
   16176  1.3  christos 	else
   16177  1.3  christos 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   16178  1.3  christos 	    for d in $krb5dirs
   16179  1.3  christos 	    do
   16180  1.3  christos 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   16181  1.3  christos 			-f $d/include/krb5.h
   16182  1.3  christos 		then
   16183  1.3  christos 			if test -f $d/include/gssapi/gssapi.h -o \
   16184  1.3  christos 				-f $d/include/gssapi.h
   16185  1.3  christos 			then
   16186  1.3  christos 				use_gssapi=$d
   16187  1.3  christos 				break
   16188  1.3  christos 			fi
   16189  1.3  christos 		fi
   16190  1.3  christos 		use_gssapi="no"
   16191  1.3  christos 	    done
   16192  1.3  christos 	fi
   16193  1.3  christos fi
   16194  1.1  christos 
   16195  1.3  christos case "$use_gssapi" in
   16196  1.3  christos 	no)
   16197  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   16198  1.3  christos $as_echo "disabled" >&6; }
   16199  1.3  christos 		USE_GSSAPI=''
   16200  1.3  christos 		;;
   16201  1.3  christos 	yes)
   16202  1.3  christos 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   16203  1.3  christos 		;;
   16204  1.3  christos 	*/krb5-config|krb5-config)
   16205  1.3  christos 		USE_GSSAPI='-DGSSAPI'
   16206  1.3  christos 		DST_GSSAPI_INC="$gssapi_cflags"
   16207  1.3  christos 		DNS_GSSAPI_LIBS="$gssapi_libs"
   16208  1.3  christos 		;;
   16209  1.3  christos 	framework)
   16210  1.3  christos 		USE_GSSAPI='-DGSSAPI'
   16211  1.3  christos 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   16212  1.3  christos 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   16213  1.3  christos 		DNS_GSSAPI_LIBS="-framework Kerberos"
   16214  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   16215  1.3  christos $as_echo "framework" >&6; }
   16216  1.3  christos 		;;
   16217  1.1  christos 
   16218  1.3  christos 	*)
   16219  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   16220  1.3  christos $as_echo "looking in $use_gssapi/lib" >&6; }
   16221  1.3  christos 		USE_GSSAPI='-DGSSAPI'
   16222  1.3  christos 		saved_cppflags="$CPPFLAGS"
   16223  1.3  christos 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   16224  1.3  christos 		for ac_header in gssapi.h gssapi/gssapi.h
   16225  1.3  christos do :
   16226  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16227  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16228  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16229  1.3  christos   cat >>confdefs.h <<_ACEOF
   16230  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16231  1.3  christos _ACEOF
   16232  1.3  christos  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16233  1.3  christos 		     gssapi_hack="#include <$ac_header>"
   16234  1.3  christos fi
   16235  1.1  christos 
   16236  1.3  christos done
   16237  1.1  christos 
   16238  1.1  christos 
   16239  1.3  christos 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16240  1.3  christos 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   16241  1.3  christos 		fi
   16242  1.1  christos 
   16243  1.3  christos 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   16244  1.3  christos do :
   16245  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16246  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16247  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16248  1.3  christos   cat >>confdefs.h <<_ACEOF
   16249  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16250  1.3  christos _ACEOF
   16251  1.3  christos  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   16252  1.3  christos 		     gssapi_krb5_hack="#include <$ac_header>"
   16253  1.3  christos fi
   16254  1.1  christos 
   16255  1.3  christos done
   16256  1.1  christos 
   16257  1.1  christos 
   16258  1.3  christos 		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
   16259  1.3  christos do :
   16260  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16261  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16262  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16263  1.3  christos   cat >>confdefs.h <<_ACEOF
   16264  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16265  1.3  christos _ACEOF
   16266  1.3  christos  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16267  1.3  christos 		    krb5_hack="#include <$ac_header>"
   16268  1.3  christos fi
   16269  1.1  christos 
   16270  1.3  christos done
   16271  1.1  christos 
   16272  1.1  christos 
   16273  1.3  christos 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16274  1.3  christos 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   16275  1.3  christos 		fi
   16276  1.1  christos 
   16277  1.3  christos 		#
   16278  1.3  christos 		# XXXDCL This probably doesn't work right on all systems.
   16279  1.3  christos 		# It will need to be worked on as problems become evident.
   16280  1.3  christos 		#
   16281  1.3  christos 		# Essentially the problems here relate to two different
   16282  1.3  christos 		# areas.  The first area is building with either KTH
   16283  1.3  christos 		# or MIT Kerberos, particularly when both are present on
   16284  1.3  christos 		# the machine.  The other is static versus dynamic linking.
   16285  1.3  christos 		#
   16286  1.3  christos 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   16287  1.3  christos 		# up the works if one implementation ends up trying to
   16288  1.3  christos 		# use the other's krb.  This is unfortunately a situation
   16289  1.3  christos 		# that very easily arises.
   16290  1.3  christos 		#
   16291  1.3  christos 		# Dynamic linking when the dependency information is built
   16292  1.3  christos 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   16293  1.3  christos 		# all such problems go away, but when that setup is not
   16294  1.3  christos 		# present, because either the dynamic libraries lack
   16295  1.3  christos 		# dependencies or static linking is being done, then the
   16296  1.3  christos 		# problems start to show up.
   16297  1.3  christos 		saved_libs="$LIBS"
   16298  1.3  christos 		for TRY_LIBS in \
   16299  1.3  christos 		    "-lgssapi_krb5" \
   16300  1.3  christos 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   16301  1.3  christos 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   16302  1.3  christos 		    "-lgssapi" \
   16303  1.3  christos 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   16304  1.3  christos 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16305  1.3  christos 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16306  1.3  christos 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   16307  1.3  christos 		    "-lgss -lkrb5"
   16308  1.3  christos 		do
   16309  1.3  christos 		    # Note that this does not include $saved_libs, because
   16310  1.3  christos 		    # on FreeBSD machines this configure script has added
   16311  1.3  christos 		    # -L/usr/local/lib to LIBS, which can make the
   16312  1.3  christos 		    # -lgssapi_krb5 test succeed with shared libraries even
   16313  1.3  christos 		    # when you are trying to build with KTH in /usr/lib.
   16314  1.3  christos 		    if test "/usr" = "$use_gssapi"
   16315  1.3  christos 		    then
   16316  1.3  christos 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   16317  1.3  christos 		    else
   16318  1.3  christos 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   16319  1.3  christos 		    fi
   16320  1.3  christos 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   16321  1.3  christos $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   16322  1.3  christos 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16323  1.1  christos /* end confdefs.h.  */
   16324  1.1  christos 
   16325  1.1  christos #include <sys/types.h>
   16326  1.3  christos $gssapi_hack
   16327  1.3  christos $gssapi_krb5_hack
   16328  1.3  christos $krb5_hack
   16329  1.1  christos 
   16330  1.1  christos int
   16331  1.1  christos main ()
   16332  1.1  christos {
   16333  1.3  christos gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   16334  1.3  christos #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   16335  1.3  christos gsskrb5_register_acceptor_identity(NULL);
   16336  1.3  christos #endif
   16337  1.1  christos   ;
   16338  1.1  christos   return 0;
   16339  1.1  christos }
   16340  1.1  christos _ACEOF
   16341  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   16342  1.3  christos   gssapi_linked=yes
   16343  1.1  christos else
   16344  1.3  christos   gssapi_linked=no
   16345  1.1  christos fi
   16346  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   16347  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   16348  1.3  christos 		    case $gssapi_linked in
   16349  1.3  christos 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16350  1.3  christos $as_echo "yes" >&6; }; break ;;
   16351  1.3  christos 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16352  1.3  christos $as_echo "no" >&6; } ;;
   16353  1.3  christos 		    esac
   16354  1.3  christos 		done
   16355  1.3  christos 
   16356  1.3  christos 		CPPFLAGS="$saved_cppflags"
   16357  1.3  christos 
   16358  1.3  christos 		case $gssapi_linked in
   16359  1.3  christos 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   16360  1.3  christos 		esac
   16361  1.3  christos 
   16362  1.3  christos 		#
   16363  1.3  christos 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   16364  1.3  christos 		# but MIT in /usr/local/lib and trying to build with KTH.
   16365  1.3  christos 		# /usr/local/lib can end up earlier on the link lines.
   16366  1.3  christos 		# Like most kludges, this one is not only inelegant it
   16367  1.3  christos 		# is also likely to be the wrong thing to do at least as
   16368  1.3  christos 		# many times as it is the right thing.  Something better
   16369  1.3  christos 		# needs to be done.
   16370  1.3  christos 		#
   16371  1.3  christos 		if test "/usr" = "$use_gssapi" -a \
   16372  1.3  christos 			-f /usr/local/lib/libkrb5.a; then
   16373  1.3  christos 		    FIX_KTH_VS_MIT=yes
   16374  1.3  christos 		fi
   16375  1.3  christos 
   16376  1.3  christos 		case "$FIX_KTH_VS_MIT" in
   16377  1.3  christos 		yes)
   16378  1.3  christos 		    case "$enable_static_linking" in
   16379  1.3  christos 		    yes) gssapi_lib_suffix=".a"  ;;
   16380  1.3  christos 		    *)   gssapi_lib_suffix=".so" ;;
   16381  1.3  christos 		    esac
   16382  1.3  christos 
   16383  1.3  christos 		    for lib in $LIBS; do
   16384  1.3  christos 			case $lib in
   16385  1.3  christos 			-L*)
   16386  1.3  christos 			    ;;
   16387  1.3  christos 			-l*)
   16388  1.3  christos 			    new_lib=`echo $lib |
   16389  1.3  christos 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   16390  1.3  christos 					 -e s%$%$gssapi_lib_suffix%`
   16391  1.3  christos 			    NEW_LIBS="$NEW_LIBS $new_lib"
   16392  1.3  christos 			    ;;
   16393  1.3  christos 			*)
   16394  1.3  christos 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   16395  1.3  christos 			    ;;
   16396  1.3  christos 			esac
   16397  1.3  christos 		    done
   16398  1.3  christos 		    LIBS="$NEW_LIBS"
   16399  1.3  christos 		    ;;
   16400  1.3  christos 		esac
   16401  1.1  christos 
   16402  1.3  christos 		DST_GSSAPI_INC="-I$use_gssapi/include"
   16403  1.3  christos 		DNS_GSSAPI_LIBS="$LIBS"
   16404  1.1  christos 
   16405  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   16406  1.3  christos $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   16407  1.3  christos 		LIBS="$saved_libs"
   16408  1.3  christos 		;;
   16409  1.3  christos esac
   16410  1.1  christos 
   16411  1.1  christos 
   16412  1.1  christos 
   16413  1.1  christos 
   16414  1.1  christos 
   16415  1.1  christos 
   16416  1.1  christos 
   16417  1.1  christos 
   16418  1.1  christos 
   16419  1.3  christos DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   16420  1.1  christos 
   16421  1.3  christos #
   16422  1.3  christos # Applications linking with libdns also need to link with these libraries.
   16423  1.3  christos #
   16424  1.1  christos 
   16425  1.1  christos 
   16426  1.1  christos 
   16427  1.3  christos #
   16428  1.3  christos # was --with-lmdb specified?
   16429  1.3  christos #
   16430  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   16431  1.3  christos $as_echo_n "checking for lmdb library... " >&6; }
   16432  1.1  christos 
   16433  1.3  christos # Check whether --with-lmdb was given.
   16434  1.3  christos if test "${with_lmdb+set}" = set; then :
   16435  1.3  christos   withval=$with_lmdb; use_lmdb="$withval"
   16436  1.3  christos else
   16437  1.3  christos   use_lmdb="auto"
   16438  1.3  christos fi
   16439  1.1  christos 
   16440  1.1  christos 
   16441  1.3  christos have_lmdb=""
   16442  1.3  christos case "$use_lmdb" in
   16443  1.3  christos 	no)
   16444  1.3  christos 		lmdb_libs=""
   16445  1.3  christos 		;;
   16446  1.3  christos 	auto|yes)
   16447  1.3  christos 		for d in /usr /usr/local /opt/local
   16448  1.3  christos 		do
   16449  1.3  christos 			if test -f "${d}/include/lmdb.h"
   16450  1.3  christos 			then
   16451  1.3  christos 				if test ${d} != /usr
   16452  1.3  christos 				then
   16453  1.3  christos 					lmdb_cflags="-I ${d}/include"
   16454  1.3  christos 					LIBS="$LIBS -L${d}/lib"
   16455  1.3  christos 				fi
   16456  1.3  christos 				have_lmdb="yes"
   16457  1.3  christos 			fi
   16458  1.3  christos 		done
   16459  1.3  christos 		;;
   16460  1.3  christos 	*)
   16461  1.3  christos 		if test -f "${use_lmdb}/include/lmdb.h"
   16462  1.3  christos 		then
   16463  1.3  christos 			lmdb_cflags="-I${use_lmdb}/include"
   16464  1.3  christos 			LIBS="$LIBS -L${use_lmdb}/lib"
   16465  1.3  christos 			have_lmdb="yes"
   16466  1.3  christos 		else
   16467  1.3  christos 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   16468  1.3  christos 		fi
   16469  1.1  christos 		;;
   16470  1.1  christos esac
   16471  1.1  christos 
   16472  1.3  christos if test "X${have_lmdb}" != "X"
   16473  1.3  christos then
   16474  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16475  1.1  christos $as_echo "yes" >&6; }
   16476  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   16477  1.3  christos $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   16478  1.3  christos if ${ac_cv_search_mdb_env_create+:} false; then :
   16479  1.3  christos   $as_echo_n "(cached) " >&6
   16480  1.1  christos else
   16481  1.3  christos   ac_func_search_save_LIBS=$LIBS
   16482  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16483  1.1  christos /* end confdefs.h.  */
   16484  1.1  christos 
   16485  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16486  1.3  christos    Use char because int might match the return type of a GCC
   16487  1.3  christos    builtin and then its argument prototype would still apply.  */
   16488  1.3  christos #ifdef __cplusplus
   16489  1.3  christos extern "C"
   16490  1.3  christos #endif
   16491  1.3  christos char mdb_env_create ();
   16492  1.1  christos int
   16493  1.1  christos main ()
   16494  1.1  christos {
   16495  1.3  christos return mdb_env_create ();
   16496  1.1  christos   ;
   16497  1.1  christos   return 0;
   16498  1.1  christos }
   16499  1.1  christos _ACEOF
   16500  1.3  christos for ac_lib in '' lmdb; do
   16501  1.3  christos   if test -z "$ac_lib"; then
   16502  1.3  christos     ac_res="none required"
   16503  1.3  christos   else
   16504  1.3  christos     ac_res=-l$ac_lib
   16505  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16506  1.3  christos   fi
   16507  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   16508  1.3  christos   ac_cv_search_mdb_env_create=$ac_res
   16509  1.3  christos fi
   16510  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16511  1.3  christos     conftest$ac_exeext
   16512  1.3  christos   if ${ac_cv_search_mdb_env_create+:} false; then :
   16513  1.3  christos   break
   16514  1.1  christos fi
   16515  1.3  christos done
   16516  1.3  christos if ${ac_cv_search_mdb_env_create+:} false; then :
   16517  1.1  christos 
   16518  1.3  christos else
   16519  1.3  christos   ac_cv_search_mdb_env_create=no
   16520  1.3  christos fi
   16521  1.3  christos rm conftest.$ac_ext
   16522  1.3  christos LIBS=$ac_func_search_save_LIBS
   16523  1.3  christos fi
   16524  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   16525  1.3  christos $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   16526  1.3  christos ac_res=$ac_cv_search_mdb_env_create
   16527  1.3  christos if test "$ac_res" != no; then :
   16528  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16529  1.1  christos 
   16530  1.3  christos else
   16531  1.3  christos   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   16532  1.3  christos 			have_lmdb=""
   16533  1.3  christos fi
   16534  1.1  christos 
   16535  1.3  christos elif test "X$use_lmdb" = Xyes
   16536  1.3  christos then
   16537  1.3  christos 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   16538  1.1  christos else
   16539  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16540  1.1  christos $as_echo "no" >&6; }
   16541  1.1  christos fi
   16542  1.1  christos 
   16543  1.3  christos NZD_TOOLS=""
   16544  1.3  christos NZDSRCS=
   16545  1.3  christos NZDTARGETS=
   16546  1.3  christos if test "X${have_lmdb}" != "X"
   16547  1.3  christos then
   16548  1.3  christos 	CFLAGS="$CFLAGS $lmdb_cflags"
   16549  1.1  christos 
   16550  1.3  christos $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   16551  1.1  christos 
   16552  1.3  christos 	NZD_TOOLS="nzd"
   16553  1.3  christos 	NZDSRCS='${NZDSRCS}'
   16554  1.3  christos 	NZDTARGETS='${NZDTARGETS}'
   16555  1.1  christos fi
   16556  1.1  christos 
   16557  1.1  christos 
   16558  1.1  christos 
   16559  1.1  christos 
   16560  1.3  christos #
   16561  1.3  christos # was --with-libxml2 specified?
   16562  1.3  christos #
   16563  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
   16564  1.3  christos $as_echo_n "checking for libxml2 library... " >&6; }
   16565  1.3  christos 
   16566  1.3  christos # Check whether --with-libxml2 was given.
   16567  1.3  christos if test "${with_libxml2+set}" = set; then :
   16568  1.3  christos   withval=$with_libxml2; use_libxml2="$withval"
   16569  1.1  christos else
   16570  1.3  christos   use_libxml2="auto"
   16571  1.3  christos fi
   16572  1.3  christos 
   16573  1.3  christos 
   16574  1.3  christos case "$use_libxml2" in
   16575  1.3  christos 	no)
   16576  1.3  christos 		DST_LIBXML2_INC=""
   16577  1.3  christos 		;;
   16578  1.3  christos 	auto|yes)
   16579  1.3  christos 		case X`(xml2-config --version) 2>/dev/null` in
   16580  1.3  christos 		X2.[6789].*)
   16581  1.3  christos 			libxml2_libs=`xml2-config --libs`
   16582  1.3  christos 			libxml2_cflags=`xml2-config --cflags`
   16583  1.3  christos 			;;
   16584  1.3  christos 		*)
   16585  1.3  christos 			if test "yes" = "$use_libxml2" ; then
   16586  1.3  christos 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16587  1.1  christos $as_echo "no" >&6; }
   16588  1.3  christos 				as_fn_error $? "required libxml2 version not available" "$LINENO" 5
   16589  1.3  christos 			else
   16590  1.3  christos 				libxml2_libs=
   16591  1.3  christos 				libxml2_cflags=
   16592  1.3  christos 			fi
   16593  1.3  christos 			;;
   16594  1.3  christos 		esac
   16595  1.1  christos 		;;
   16596  1.3  christos 	*)
   16597  1.3  christos 		if test -f "$use_libxml2/bin/xml2-config" ; then
   16598  1.3  christos 			libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
   16599  1.3  christos 			libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
   16600  1.3  christos 		fi
   16601  1.1  christos 		;;
   16602  1.1  christos esac
   16603  1.1  christos 
   16604  1.3  christos if test "X$libxml2_libs" != "X"
   16605  1.3  christos then
   16606  1.3  christos 	CFLAGS="$CFLAGS $libxml2_cflags"
   16607  1.3  christos 	LIBS="$LIBS $libxml2_libs"
   16608  1.3  christos 	#
   16609  1.3  christos 	# Sanity check xml2-config output.
   16610  1.3  christos 	#
   16611  1.3  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16612  1.1  christos /* end confdefs.h.  */
   16613  1.3  christos #include <libxml/xmlwriter.h>
   16614  1.1  christos int
   16615  1.1  christos main ()
   16616  1.1  christos {
   16617  1.3  christos return(xmlTextWriterStartElement(NULL, NULL));
   16618  1.1  christos   ;
   16619  1.1  christos   return 0;
   16620  1.1  christos }
   16621  1.1  christos _ACEOF
   16622  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   16623  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16624  1.1  christos $as_echo "yes" >&6; }
   16625  1.3  christos else
   16626  1.3  christos   as_fn_error $? "xml2-config returns badness" "$LINENO" 5
   16627  1.3  christos fi
   16628  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16629  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   16630  1.3  christos 
   16631  1.3  christos $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   16632  1.1  christos 
   16633  1.3  christos 	XMLSTATS=1
   16634  1.1  christos else
   16635  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16636  1.1  christos $as_echo "no" >&6; }
   16637  1.1  christos fi
   16638  1.1  christos 
   16639  1.1  christos 
   16640  1.1  christos #
   16641  1.3  christos # was --with-libjson specified?
   16642  1.1  christos #
   16643  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
   16644  1.3  christos $as_echo_n "checking for json library... " >&6; }
   16645  1.1  christos 
   16646  1.3  christos # Check whether --with-libjson was given.
   16647  1.3  christos if test "${with_libjson+set}" = set; then :
   16648  1.3  christos   withval=$with_libjson; use_libjson="$withval"
   16649  1.1  christos else
   16650  1.3  christos   use_libjson="auto"
   16651  1.3  christos fi
   16652  1.1  christos 
   16653  1.1  christos 
   16654  1.3  christos have_libjson=""
   16655  1.3  christos have_libjson_c=""
   16656  1.3  christos case "$use_libjson" in
   16657  1.3  christos 	no)
   16658  1.3  christos 		libjson_libs=""
   16659  1.3  christos 		;;
   16660  1.3  christos 	auto|yes)
   16661  1.3  christos 		for d in /usr /usr/local /opt/local
   16662  1.3  christos 		do
   16663  1.3  christos 			if test -f "${d}/include/json/json.h"
   16664  1.3  christos 			then
   16665  1.3  christos 				if test ${d} != /usr
   16666  1.3  christos 				then
   16667  1.3  christos 					libjson_cflags="-I ${d}/include"
   16668  1.3  christos 					LIBS="$LIBS -L${d}/lib"
   16669  1.3  christos 				fi
   16670  1.3  christos 				have_libjson="yes"
   16671  1.3  christos 			elif test -f "${d}/include/json-c/json.h"
   16672  1.3  christos 			then
   16673  1.3  christos 				if test ${d} != /usr
   16674  1.3  christos 				then
   16675  1.3  christos 					libjson_cflags="-I ${d}/include"
   16676  1.3  christos 					LIBS="$LIBS -L${d}/lib"
   16677  1.3  christos 				fi
   16678  1.3  christos 				have_libjson="yes"
   16679  1.3  christos 				have_libjson_c="yes"
   16680  1.3  christos 			fi
   16681  1.3  christos 		done
   16682  1.3  christos 		;;
   16683  1.3  christos 	*)
   16684  1.3  christos 		if test -f "${use_libjson}/include/json/json.h"
   16685  1.3  christos 		then
   16686  1.3  christos 			libjson_cflags="-I${use_libjson}/include"
   16687  1.3  christos 			LIBS="$LIBS -L${use_libjson}/lib"
   16688  1.3  christos 			have_libjson="yes"
   16689  1.3  christos 		elif test -f "${use_libjson}/include/json-c/json.h"
   16690  1.3  christos 		then
   16691  1.3  christos 			libjson_cflags="-I${use_libjson}/include"
   16692  1.3  christos 			LIBS="$LIBS -L${use_libjson}/lib"
   16693  1.3  christos 			have_libjson="yes"
   16694  1.3  christos 			have_libjson_c="yes"
   16695  1.3  christos 		else
   16696  1.3  christos 			as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
   16697  1.3  christos 		fi
   16698  1.3  christos 		;;
   16699  1.3  christos esac
   16700  1.1  christos 
   16701  1.3  christos if test "X${have_libjson}" != "X"
   16702  1.3  christos then
   16703  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16704  1.3  christos $as_echo "yes" >&6; }
   16705  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
   16706  1.3  christos $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
   16707  1.3  christos if ${ac_cv_search_json_object_new_int64+:} false; then :
   16708  1.3  christos   $as_echo_n "(cached) " >&6
   16709  1.1  christos else
   16710  1.3  christos   ac_func_search_save_LIBS=$LIBS
   16711  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16712  1.1  christos /* end confdefs.h.  */
   16713  1.1  christos 
   16714  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16715  1.3  christos    Use char because int might match the return type of a GCC
   16716  1.3  christos    builtin and then its argument prototype would still apply.  */
   16717  1.3  christos #ifdef __cplusplus
   16718  1.3  christos extern "C"
   16719  1.3  christos #endif
   16720  1.3  christos char json_object_new_int64 ();
   16721  1.1  christos int
   16722  1.1  christos main ()
   16723  1.1  christos {
   16724  1.3  christos return json_object_new_int64 ();
   16725  1.1  christos   ;
   16726  1.1  christos   return 0;
   16727  1.1  christos }
   16728  1.1  christos _ACEOF
   16729  1.3  christos for ac_lib in '' json json-c; do
   16730  1.3  christos   if test -z "$ac_lib"; then
   16731  1.3  christos     ac_res="none required"
   16732  1.3  christos   else
   16733  1.3  christos     ac_res=-l$ac_lib
   16734  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16735  1.3  christos   fi
   16736  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   16737  1.3  christos   ac_cv_search_json_object_new_int64=$ac_res
   16738  1.3  christos fi
   16739  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16740  1.3  christos     conftest$ac_exeext
   16741  1.3  christos   if ${ac_cv_search_json_object_new_int64+:} false; then :
   16742  1.3  christos   break
   16743  1.3  christos fi
   16744  1.3  christos done
   16745  1.3  christos if ${ac_cv_search_json_object_new_int64+:} false; then :
   16746  1.1  christos 
   16747  1.1  christos else
   16748  1.3  christos   ac_cv_search_json_object_new_int64=no
   16749  1.1  christos fi
   16750  1.3  christos rm conftest.$ac_ext
   16751  1.3  christos LIBS=$ac_func_search_save_LIBS
   16752  1.1  christos fi
   16753  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
   16754  1.3  christos $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
   16755  1.3  christos ac_res=$ac_cv_search_json_object_new_int64
   16756  1.3  christos if test "$ac_res" != no; then :
   16757  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16758  1.1  christos 
   16759  1.1  christos else
   16760  1.3  christos   as_fn_error $? "found libjson include but not library." "$LINENO" 5
   16761  1.3  christos 			have_libjson=""
   16762  1.1  christos fi
   16763  1.1  christos 
   16764  1.3  christos elif test "X$use_libjson" = Xyes
   16765  1.3  christos then
   16766  1.3  christos 	as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
   16767  1.3  christos else
   16768  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16769  1.3  christos $as_echo "no" >&6; }
   16770  1.1  christos fi
   16771  1.1  christos 
   16772  1.3  christos if test "X${have_libjson}" != "X"
   16773  1.3  christos then
   16774  1.3  christos 	CFLAGS="$CFLAGS $libjson_cflags"
   16775  1.1  christos 
   16776  1.3  christos $as_echo "#define HAVE_JSON 1" >>confdefs.h
   16777  1.1  christos 
   16778  1.3  christos 	if test "X${have_libjson_c}" = Xyes
   16779  1.3  christos 	then
   16780  1.1  christos 
   16781  1.3  christos $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   16782  1.1  christos 
   16783  1.3  christos 	fi
   16784  1.3  christos 	JSONSTATS=1
   16785  1.1  christos fi
   16786  1.1  christos 
   16787  1.1  christos 
   16788  1.1  christos #
   16789  1.3  christos # was --with-zlib specified?
   16790  1.1  christos #
   16791  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
   16792  1.3  christos $as_echo_n "checking for zlib library... " >&6; }
   16793  1.1  christos 
   16794  1.3  christos # Check whether --with-zlib was given.
   16795  1.3  christos if test "${with_zlib+set}" = set; then :
   16796  1.3  christos   withval=$with_zlib; with_zlib="$withval"
   16797  1.3  christos else
   16798  1.3  christos   with_zlib="auto"
   16799  1.1  christos fi
   16800  1.1  christos 
   16801  1.1  christos 
   16802  1.3  christos have_zlib=""
   16803  1.3  christos case "$with_zlib" in
   16804  1.3  christos 	no)
   16805  1.3  christos 		zlib_libs=""
   16806  1.3  christos 		;;
   16807  1.3  christos 	auto|yes)
   16808  1.3  christos 		for d in /usr /usr/local /opt/local
   16809  1.3  christos 		do
   16810  1.3  christos 			if test -f "${d}/include/zlib.h"
   16811  1.3  christos 			then
   16812  1.3  christos 				if test ${d} != /usr
   16813  1.3  christos 				then
   16814  1.3  christos 					zlib_cflags="-I ${d}/include"
   16815  1.3  christos 					LIBS="$LIBS -L${d}/lib"
   16816  1.3  christos 				fi
   16817  1.3  christos 				have_zlib="yes"
   16818  1.3  christos 			fi
   16819  1.3  christos 		done
   16820  1.3  christos 		;;
   16821  1.3  christos 	*)
   16822  1.3  christos 		if test -f "${with_zlib}/include/zlib.h"
   16823  1.3  christos 		then
   16824  1.3  christos 			zlib_cflags="-I${with_zlib}/include"
   16825  1.3  christos 			LIBS="$LIBS -L${with_zlib}/lib"
   16826  1.3  christos 			have_zlib="yes"
   16827  1.3  christos 		else
   16828  1.3  christos 			as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
   16829  1.3  christos 		fi
   16830  1.3  christos 		;;
   16831  1.1  christos esac
   16832  1.1  christos 
   16833  1.3  christos if test "X${have_zlib}" != "X"
   16834  1.3  christos then
   16835  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16836  1.3  christos $as_echo "yes" >&6; }
   16837  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
   16838  1.3  christos $as_echo_n "checking for library containing deflate... " >&6; }
   16839  1.3  christos if ${ac_cv_search_deflate+:} false; then :
   16840  1.3  christos   $as_echo_n "(cached) " >&6
   16841  1.3  christos else
   16842  1.3  christos   ac_func_search_save_LIBS=$LIBS
   16843  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16844  1.1  christos /* end confdefs.h.  */
   16845  1.1  christos 
   16846  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16847  1.3  christos    Use char because int might match the return type of a GCC
   16848  1.3  christos    builtin and then its argument prototype would still apply.  */
   16849  1.3  christos #ifdef __cplusplus
   16850  1.3  christos extern "C"
   16851  1.1  christos #endif
   16852  1.3  christos char deflate ();
   16853  1.1  christos int
   16854  1.1  christos main ()
   16855  1.1  christos {
   16856  1.3  christos return deflate ();
   16857  1.1  christos   ;
   16858  1.1  christos   return 0;
   16859  1.1  christos }
   16860  1.1  christos _ACEOF
   16861  1.3  christos for ac_lib in '' z; do
   16862  1.3  christos   if test -z "$ac_lib"; then
   16863  1.3  christos     ac_res="none required"
   16864  1.3  christos   else
   16865  1.3  christos     ac_res=-l$ac_lib
   16866  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16867  1.3  christos   fi
   16868  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   16869  1.3  christos   ac_cv_search_deflate=$ac_res
   16870  1.1  christos fi
   16871  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   16872  1.3  christos     conftest$ac_exeext
   16873  1.3  christos   if ${ac_cv_search_deflate+:} false; then :
   16874  1.3  christos   break
   16875  1.3  christos fi
   16876  1.3  christos done
   16877  1.3  christos if ${ac_cv_search_deflate+:} false; then :
   16878  1.1  christos 
   16879  1.1  christos else
   16880  1.3  christos   ac_cv_search_deflate=no
   16881  1.1  christos fi
   16882  1.3  christos rm conftest.$ac_ext
   16883  1.3  christos LIBS=$ac_func_search_save_LIBS
   16884  1.1  christos fi
   16885  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
   16886  1.3  christos $as_echo "$ac_cv_search_deflate" >&6; }
   16887  1.3  christos ac_res=$ac_cv_search_deflate
   16888  1.3  christos if test "$ac_res" != no; then :
   16889  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16890  1.1  christos 
   16891  1.1  christos else
   16892  1.3  christos   as_fn_error $? "found zlib include but not library." "$LINENO" 5
   16893  1.3  christos 			have_zlib=""
   16894  1.1  christos fi
   16895  1.1  christos 
   16896  1.3  christos elif test "X$with_zlib" = Xyes
   16897  1.3  christos then
   16898  1.3  christos 	as_fn_error $? "include/zlib.h not found." "$LINENO" 5
   16899  1.1  christos else
   16900  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16901  1.3  christos $as_echo "no" >&6; }
   16902  1.1  christos fi
   16903  1.1  christos 
   16904  1.3  christos ZLIB=
   16905  1.3  christos if test "X${have_zlib}" != "X"
   16906  1.3  christos then
   16907  1.3  christos 	CFLAGS="$CFLAGS $zlib_cflags"
   16908  1.1  christos 
   16909  1.3  christos $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   16910  1.1  christos 
   16911  1.3  christos 	ZLIB=1
   16912  1.1  christos fi
   16913  1.1  christos 
   16914  1.1  christos 
   16915  1.1  christos 
   16916  1.3  christos #
   16917  1.3  christos # In solaris 10, SMF can manage named service
   16918  1.3  christos #
   16919  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   16920  1.3  christos $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   16921  1.3  christos if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   16922  1.3  christos   $as_echo_n "(cached) " >&6
   16923  1.1  christos else
   16924  1.3  christos   ac_check_lib_save_LIBS=$LIBS
   16925  1.3  christos LIBS="-lscf  $LIBS"
   16926  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16927  1.3  christos /* end confdefs.h.  */
   16928  1.1  christos 
   16929  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16930  1.3  christos    Use char because int might match the return type of a GCC
   16931  1.3  christos    builtin and then its argument prototype would still apply.  */
   16932  1.3  christos #ifdef __cplusplus
   16933  1.3  christos extern "C"
   16934  1.3  christos #endif
   16935  1.3  christos char smf_enable_instance ();
   16936  1.3  christos int
   16937  1.3  christos main ()
   16938  1.3  christos {
   16939  1.3  christos return smf_enable_instance ();
   16940  1.3  christos   ;
   16941  1.3  christos   return 0;
   16942  1.3  christos }
   16943  1.1  christos _ACEOF
   16944  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   16945  1.3  christos   ac_cv_lib_scf_smf_enable_instance=yes
   16946  1.3  christos else
   16947  1.3  christos   ac_cv_lib_scf_smf_enable_instance=no
   16948  1.1  christos fi
   16949  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16950  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   16951  1.3  christos LIBS=$ac_check_lib_save_LIBS
   16952  1.1  christos fi
   16953  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   16954  1.3  christos $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   16955  1.3  christos if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   16956  1.1  christos   cat >>confdefs.h <<_ACEOF
   16957  1.3  christos #define HAVE_LIBSCF 1
   16958  1.1  christos _ACEOF
   16959  1.1  christos 
   16960  1.3  christos   LIBS="-lscf $LIBS"
   16961  1.3  christos 
   16962  1.1  christos fi
   16963  1.1  christos 
   16964  1.1  christos 
   16965  1.3  christos #
   16966  1.3  christos # Large File
   16967  1.3  christos #
   16968  1.3  christos # Check whether --enable-largefile was given.
   16969  1.3  christos if test "${enable_largefile+set}" = set; then :
   16970  1.3  christos   enableval=$enable_largefile; want_largefile="yes"
   16971  1.3  christos else
   16972  1.3  christos   want_largefile="no"
   16973  1.1  christos fi
   16974  1.1  christos 
   16975  1.3  christos case $want_largefile in
   16976  1.3  christos 	yes)
   16977  1.3  christos 		ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
   16978  1.3  christos 		;;
   16979  1.3  christos 	*)
   16980  1.3  christos 		;;
   16981  1.3  christos esac
   16982  1.3  christos 
   16983  1.3  christos #
   16984  1.3  christos # Additional compiler settings.
   16985  1.3  christos #
   16986  1.3  christos MKDEPCC="$CC"
   16987  1.3  christos MKDEPCFLAGS="-M"
   16988  1.1  christos 
   16989  1.3  christos if test "X$GCC" = "Xyes"; then
   16990  1.3  christos 	STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
   16991  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
   16992  1.3  christos $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
   16993  1.3  christos 	SAVE_CFLAGS="$CFLAGS"
   16994  1.3  christos 	CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
   16995  1.3  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16996  1.1  christos /* end confdefs.h.  */
   16997  1.1  christos 
   16998  1.1  christos int
   16999  1.1  christos main ()
   17000  1.1  christos {
   17001  1.3  christos 
   17002  1.1  christos   ;
   17003  1.1  christos   return 0;
   17004  1.1  christos }
   17005  1.1  christos _ACEOF
   17006  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   17007  1.3  christos   FNOSTRICTALIASING=yes
   17008  1.1  christos else
   17009  1.3  christos   FNOSTRICTALIASING=no
   17010  1.1  christos fi
   17011  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17012  1.3  christos 	CFLAGS="$SAVE_CFLAGS"
   17013  1.3  christos 	if test "yes" = "$FNOSTRICTALIASING"; then
   17014  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17015  1.3  christos $as_echo "yes" >&6; }
   17016  1.3  christos 		STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   17017  1.3  christos 	else
   17018  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17019  1.3  christos $as_echo "no" >&6; }
   17020  1.3  christos 	fi
   17021  1.3  christos 	#
   17022  1.3  christos 	# turn off delete null pointer checks
   17023  1.3  christos 	#
   17024  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
   17025  1.3  christos $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
   17026  1.3  christos 	SAVE_CFLAGS="$CFLAGS"
   17027  1.3  christos 	CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
   17028  1.3  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17029  1.1  christos /* end confdefs.h.  */
   17030  1.1  christos 
   17031  1.3  christos int
   17032  1.3  christos main ()
   17033  1.3  christos {
   17034  1.1  christos 
   17035  1.3  christos   ;
   17036  1.3  christos   return 0;
   17037  1.1  christos }
   17038  1.1  christos _ACEOF
   17039  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   17040  1.3  christos   FNODELETENULLPOINTERCHECKS=yes
   17041  1.3  christos else
   17042  1.3  christos   FNODELETENULLPOINTERCHECKS=no
   17043  1.3  christos fi
   17044  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17045  1.3  christos 	CFLAGS="$SAVE_CFLAGS"
   17046  1.3  christos 	if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
   17047  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17048  1.1  christos $as_echo "yes" >&6; }
   17049  1.3  christos 		STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   17050  1.3  christos 	else
   17051  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17052  1.3  christos $as_echo "no" >&6; }
   17053  1.3  christos 	fi
   17054  1.3  christos 	if test "X$enable_warn_shadow" = Xyes; then
   17055  1.3  christos 		STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   17056  1.3  christos 	fi
   17057  1.3  christos 	if test "X$enable_warn_error" = Xyes; then
   17058  1.3  christos 		STD_CWARNINGS="$STD_CWARNINGS -Werror"
   17059  1.3  christos 	fi
   17060  1.1  christos else
   17061  1.3  christos 	case $host in
   17062  1.3  christos 	*-solaris*)
   17063  1.3  christos 		MKDEPCFLAGS="-xM"
   17064  1.3  christos 		;;
   17065  1.1  christos 	esac
   17066  1.1  christos fi
   17067  1.1  christos 
   17068  1.1  christos 
   17069  1.1  christos 
   17070  1.1  christos 
   17071  1.1  christos 
   17072  1.1  christos #
   17073  1.3  christos # NLS
   17074  1.1  christos #
   17075  1.3  christos for ac_func in catgets
   17076  1.1  christos do :
   17077  1.3  christos   ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
   17078  1.3  christos if test "x$ac_cv_func_catgets" = xyes; then :
   17079  1.1  christos   cat >>confdefs.h <<_ACEOF
   17080  1.3  christos #define HAVE_CATGETS 1
   17081  1.1  christos _ACEOF
   17082  1.1  christos 
   17083  1.1  christos fi
   17084  1.1  christos done
   17085  1.1  christos 
   17086  1.3  christos 
   17087  1.3  christos #
   17088  1.3  christos # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   17089  1.3  christos #
   17090  1.3  christos # AC_CHECK_LIB(xnet, socket, ,
   17091  1.3  christos #    AC_CHECK_LIB(socket, socket)
   17092  1.3  christos # )
   17093  1.3  christos #
   17094  1.3  christos # Use this for now, instead:
   17095  1.3  christos #
   17096  1.3  christos case "$host" in
   17097  1.3  christos 	*-linux*)
   17098  1.1  christos 		;;
   17099  1.3  christos 	*)
   17100  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   17101  1.3  christos $as_echo_n "checking for socket in -lsocket... " >&6; }
   17102  1.3  christos if ${ac_cv_lib_socket_socket+:} false; then :
   17103  1.3  christos   $as_echo_n "(cached) " >&6
   17104  1.3  christos else
   17105  1.3  christos   ac_check_lib_save_LIBS=$LIBS
   17106  1.3  christos LIBS="-lsocket  $LIBS"
   17107  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17108  1.3  christos /* end confdefs.h.  */
   17109  1.1  christos 
   17110  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17111  1.3  christos    Use char because int might match the return type of a GCC
   17112  1.3  christos    builtin and then its argument prototype would still apply.  */
   17113  1.3  christos #ifdef __cplusplus
   17114  1.3  christos extern "C"
   17115  1.3  christos #endif
   17116  1.3  christos char socket ();
   17117  1.3  christos int
   17118  1.3  christos main ()
   17119  1.3  christos {
   17120  1.3  christos return socket ();
   17121  1.3  christos   ;
   17122  1.3  christos   return 0;
   17123  1.3  christos }
   17124  1.1  christos _ACEOF
   17125  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   17126  1.3  christos   ac_cv_lib_socket_socket=yes
   17127  1.3  christos else
   17128  1.3  christos   ac_cv_lib_socket_socket=no
   17129  1.3  christos fi
   17130  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   17131  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   17132  1.3  christos LIBS=$ac_check_lib_save_LIBS
   17133  1.1  christos fi
   17134  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   17135  1.3  christos $as_echo "$ac_cv_lib_socket_socket" >&6; }
   17136  1.3  christos if test "x$ac_cv_lib_socket_socket" = xyes; then :
   17137  1.1  christos   cat >>confdefs.h <<_ACEOF
   17138  1.3  christos #define HAVE_LIBSOCKET 1
   17139  1.1  christos _ACEOF
   17140  1.1  christos 
   17141  1.3  christos   LIBS="-lsocket $LIBS"
   17142  1.1  christos 
   17143  1.1  christos fi
   17144  1.1  christos 
   17145  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   17146  1.3  christos $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   17147  1.3  christos if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   17148  1.1  christos   $as_echo_n "(cached) " >&6
   17149  1.1  christos else
   17150  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   17151  1.3  christos LIBS="-lnsl  $LIBS"
   17152  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17153  1.1  christos /* end confdefs.h.  */
   17154  1.1  christos 
   17155  1.1  christos /* Override any GCC internal prototype to avoid an error.
   17156  1.1  christos    Use char because int might match the return type of a GCC
   17157  1.1  christos    builtin and then its argument prototype would still apply.  */
   17158  1.1  christos #ifdef __cplusplus
   17159  1.1  christos extern "C"
   17160  1.1  christos #endif
   17161  1.3  christos char inet_addr ();
   17162  1.1  christos int
   17163  1.1  christos main ()
   17164  1.1  christos {
   17165  1.3  christos return inet_addr ();
   17166  1.1  christos   ;
   17167  1.1  christos   return 0;
   17168  1.1  christos }
   17169  1.1  christos _ACEOF
   17170  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   17171  1.3  christos   ac_cv_lib_nsl_inet_addr=yes
   17172  1.1  christos else
   17173  1.3  christos   ac_cv_lib_nsl_inet_addr=no
   17174  1.1  christos fi
   17175  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   17176  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   17177  1.1  christos LIBS=$ac_check_lib_save_LIBS
   17178  1.1  christos fi
   17179  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   17180  1.3  christos $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   17181  1.3  christos if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   17182  1.1  christos   cat >>confdefs.h <<_ACEOF
   17183  1.3  christos #define HAVE_LIBNSL 1
   17184  1.1  christos _ACEOF
   17185  1.1  christos 
   17186  1.3  christos   LIBS="-lnsl $LIBS"
   17187  1.1  christos 
   17188  1.1  christos fi
   17189  1.1  christos 
   17190  1.1  christos 		;;
   17191  1.1  christos esac
   17192  1.1  christos 
   17193  1.3  christos #
   17194  1.3  christos # Work around Solaris's select() limitations.
   17195  1.3  christos #
   17196  1.1  christos case "$host" in
   17197  1.3  christos 	*-solaris2.[89]|*-solaris2.1?)
   17198  1.1  christos 
   17199  1.3  christos $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   17200  1.1  christos 
   17201  1.1  christos 	;;
   17202  1.1  christos esac
   17203  1.1  christos 
   17204  1.1  christos #
   17205  1.3  christos # Purify support
   17206  1.1  christos #
   17207  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   17208  1.3  christos $as_echo_n "checking whether to use purify... " >&6; }
   17209  1.1  christos 
   17210  1.3  christos # Check whether --with-purify was given.
   17211  1.3  christos if test "${with_purify+set}" = set; then :
   17212  1.3  christos   withval=$with_purify; use_purify="$withval"
   17213  1.3  christos else
   17214  1.3  christos   use_purify="no"
   17215  1.1  christos fi
   17216  1.1  christos 
   17217  1.1  christos 
   17218  1.3  christos case "$use_purify" in
   17219  1.3  christos 	no)
   17220  1.3  christos 		;;
   17221  1.3  christos 	yes)
   17222  1.3  christos 		# Extract the first word of "purify", so it can be a program name with args.
   17223  1.3  christos set dummy purify; ac_word=$2
   17224  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17225  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   17226  1.3  christos if ${ac_cv_path_purify_path+:} false; then :
   17227  1.3  christos   $as_echo_n "(cached) " >&6
   17228  1.1  christos else
   17229  1.3  christos   case $purify_path in
   17230  1.3  christos   [\\/]* | ?:[\\/]*)
   17231  1.3  christos   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   17232  1.3  christos   ;;
   17233  1.3  christos   *)
   17234  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17235  1.3  christos for as_dir in $PATH
   17236  1.3  christos do
   17237  1.3  christos   IFS=$as_save_IFS
   17238  1.3  christos   test -z "$as_dir" && as_dir=.
   17239  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   17240  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17241  1.3  christos     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   17242  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17243  1.3  christos     break 2
   17244  1.3  christos   fi
   17245  1.3  christos done
   17246  1.3  christos   done
   17247  1.3  christos IFS=$as_save_IFS
   17248  1.1  christos 
   17249  1.3  christos   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   17250  1.3  christos   ;;
   17251  1.3  christos esac
   17252  1.1  christos fi
   17253  1.3  christos purify_path=$ac_cv_path_purify_path
   17254  1.3  christos if test -n "$purify_path"; then
   17255  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17256  1.3  christos $as_echo "$purify_path" >&6; }
   17257  1.1  christos else
   17258  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17259  1.1  christos $as_echo "no" >&6; }
   17260  1.1  christos fi
   17261  1.1  christos 
   17262  1.1  christos 
   17263  1.3  christos 		;;
   17264  1.3  christos 	*)
   17265  1.3  christos 		purify_path="$use_purify"
   17266  1.3  christos 		;;
   17267  1.3  christos esac
   17268  1.1  christos 
   17269  1.3  christos case "$use_purify" in
   17270  1.3  christos 	no)
   17271  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17272  1.1  christos $as_echo "no" >&6; }
   17273  1.3  christos 		PURIFY=""
   17274  1.3  christos 		;;
   17275  1.3  christos 	*)
   17276  1.3  christos 		if test -f "$purify_path" || test purify = "$purify_path"; then
   17277  1.3  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17278  1.3  christos $as_echo "$purify_path" >&6; }
   17279  1.3  christos 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   17280  1.3  christos 			PURIFY="$purify_path $PURIFYFLAGS"
   17281  1.3  christos 		else
   17282  1.3  christos 			as_fn_error $? "$purify_path not found.
   17283  1.1  christos 
   17284  1.3  christos Please choose the proper path with the following command:
   17285  1.1  christos 
   17286  1.3  christos     configure --with-purify=PATH
   17287  1.3  christos " "$LINENO" 5
   17288  1.3  christos 		fi
   17289  1.3  christos 		;;
   17290  1.3  christos esac
   17291  1.1  christos 
   17292  1.1  christos 
   17293  1.1  christos 
   17294  1.3  christos #
   17295  1.3  christos # Google/Great Performance Tools CPU Profiler
   17296  1.3  christos #
   17297  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   17298  1.3  christos $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   17299  1.1  christos 
   17300  1.3  christos # Check whether --with-gperftools-profiler was given.
   17301  1.3  christos if test "${with_gperftools_profiler+set}" = set; then :
   17302  1.3  christos   withval=$with_gperftools_profiler; use_profiler="$withval"
   17303  1.1  christos else
   17304  1.3  christos   use_profiler="no"
   17305  1.1  christos fi
   17306  1.1  christos 
   17307  1.1  christos 
   17308  1.3  christos case $use_profiler in
   17309  1.3  christos 	yes)
   17310  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17311  1.3  christos $as_echo "yes" >&6; }
   17312  1.1  christos 
   17313  1.3  christos $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   17314  1.1  christos 
   17315  1.3  christos 		LIBS="$LIBS -lprofiler"
   17316  1.1  christos 		;;
   17317  1.1  christos 	*)
   17318  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17319  1.3  christos $as_echo "no" >&6; }
   17320  1.1  christos 		;;
   17321  1.1  christos esac
   17322  1.1  christos 
   17323  1.1  christos #
   17324  1.3  christos # enable/disable dumping stack backtrace.  Also check if the system supports
   17325  1.3  christos # glibc-compatible backtrace() function.
   17326  1.1  christos #
   17327  1.3  christos # Check whether --enable-backtrace was given.
   17328  1.3  christos if test "${enable_backtrace+set}" = set; then :
   17329  1.3  christos   enableval=$enable_backtrace;
   17330  1.1  christos else
   17331  1.3  christos   enable_backtrace="yes"
   17332  1.3  christos fi
   17333  1.3  christos 
   17334  1.3  christos 
   17335  1.3  christos if test "$enable_backtrace" = "yes"; then :
   17336  1.3  christos 
   17337  1.3  christos $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   17338  1.3  christos 
   17339  1.3  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17340  1.1  christos /* end confdefs.h.  */
   17341  1.3  christos #include <execinfo.h>
   17342  1.1  christos int
   17343  1.1  christos main ()
   17344  1.1  christos {
   17345  1.3  christos return (backtrace((void **)0, 0));
   17346  1.3  christos 
   17347  1.1  christos   ;
   17348  1.1  christos   return 0;
   17349  1.1  christos }
   17350  1.1  christos _ACEOF
   17351  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   17352  1.3  christos 
   17353  1.3  christos $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   17354  1.3  christos 
   17355  1.3  christos 
   17356  1.1  christos fi
   17357  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   17358  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   17359  1.1  christos fi
   17360  1.3  christos 
   17361  1.3  christos # Check whether --enable-symtable was given.
   17362  1.3  christos if test "${enable_symtable+set}" = set; then :
   17363  1.3  christos   enableval=$enable_symtable; want_symtable="$enableval"
   17364  1.3  christos else
   17365  1.3  christos   want_symtable="minimal"
   17366  1.1  christos fi
   17367  1.1  christos 
   17368  1.3  christos case $want_symtable in
   17369  1.3  christos yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   17370  1.3  christos 	if test "" = "$PERL"
   17371  1.3  christos 	then
   17372  1.3  christos 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   17373  1.3  christos Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   17374  1.3  christos 	fi
   17375  1.3  christos 	if test "yes" = "$use_libtool"; then
   17376  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   17377  1.3  christos $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   17378  1.3  christos 	else
   17379  1.3  christos 		# we generate the internal symbol table only for those systems
   17380  1.3  christos 		# known to work to avoid unexpected build failure.  Also, warn
   17381  1.3  christos 		# about unsupported systems when the feature is enabled
   17382  1.3  christos 		#  manually.
   17383  1.3  christos 		case $host_os in
   17384  1.3  christos 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   17385  1.3  christos 			MKSYMTBL_PROGRAM="$PERL"
   17386  1.3  christos 			if test "all" = "$want_symtable"; then
   17387  1.3  christos 				ALWAYS_MAKE_SYMTABLE="yes"
   17388  1.3  christos 			fi
   17389  1.3  christos 			;;
   17390  1.3  christos 		*)
   17391  1.3  christos 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   17392  1.3  christos 			then
   17393  1.3  christos 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
   17394  1.3  christos $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   17395  1.3  christos 			fi
   17396  1.3  christos 		esac
   17397  1.3  christos 	fi
   17398  1.3  christos 	;;
   17399  1.3  christos *)
   17400  1.3  christos 	;;
   17401  1.3  christos esac
   17402  1.1  christos 
   17403  1.1  christos 
   17404  1.1  christos 
   17405  1.1  christos #
   17406  1.3  christos # File name extension for static archive files, for those few places
   17407  1.3  christos # where they are treated differently from dynamic ones.
   17408  1.1  christos #
   17409  1.3  christos SA=a
   17410  1.3  christos 
   17411  1.3  christos 
   17412  1.3  christos 
   17413  1.3  christos 
   17414  1.3  christos 
   17415  1.3  christos 
   17416  1.3  christos 
   17417  1.3  christos 
   17418  1.3  christos 
   17419  1.1  christos 
   17420  1.3  christos BIND9_CO_RULE=".c.$O:"
   17421  1.1  christos 
   17422  1.1  christos 
   17423  1.1  christos #
   17424  1.3  christos # Here begins a very long section to determine the system's networking
   17425  1.3  christos # capabilities.  The order of the tests is significant.
   17426  1.1  christos #
   17427  1.1  christos 
   17428  1.1  christos #
   17429  1.3  christos # We do the IPv6 compilation checking after libtool so that we can put
   17430  1.3  christos # the right suffix on the files.
   17431  1.1  christos #
   17432  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   17433  1.3  christos $as_echo_n "checking for IPv6 structures... " >&6; }
   17434  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17435  1.3  christos /* end confdefs.h.  */
   17436  1.1  christos 
   17437  1.3  christos        #include <sys/types.h>
   17438  1.3  christos        #include <sys/socket.h>
   17439  1.3  christos        #include <netinet/in.h>
   17440  1.1  christos 
   17441  1.1  christos int
   17442  1.1  christos main ()
   17443  1.1  christos {
   17444  1.3  christos 
   17445  1.3  christos        struct sockaddr_in6 sin6;
   17446  1.3  christos        struct in6_addr in6;
   17447  1.3  christos        struct in6_pktinfo in6_pi;
   17448  1.3  christos        struct sockaddr_storage storage;
   17449  1.3  christos        in6 = in6addr_any;
   17450  1.3  christos        in6 = in6addr_loopback;
   17451  1.3  christos        sin6.sin6_scope_id = 0;
   17452  1.3  christos        return (0);
   17453  1.3  christos 
   17454  1.1  christos   ;
   17455  1.1  christos   return 0;
   17456  1.1  christos }
   17457  1.1  christos _ACEOF
   17458  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   17459  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17460  1.3  christos $as_echo "yes" >&6; }
   17461  1.3  christos else
   17462  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17463  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17464  1.3  christos as_fn_error $? "IPv6 support is mandatory
   17465  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   17466  1.1  christos fi
   17467  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17468  1.1  christos 
   17469  1.3  christos #
   17470  1.3  christos # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   17471  1.3  christos # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   17472  1.3  christos # comment in lib/isc/unix/socket.c).
   17473  1.3  christos #
   17474  1.1  christos 
   17475  1.3  christos # Check whether --enable-tcp_fastopen was given.
   17476  1.3  christos if test "${enable_tcp_fastopen+set}" = set; then :
   17477  1.3  christos   enableval=$enable_tcp_fastopen;
   17478  1.3  christos else
   17479  1.3  christos   enable_tcp_fastopen="yes"
   17480  1.3  christos fi
   17481  1.1  christos 
   17482  1.1  christos 
   17483  1.3  christos if test "$enable_tcp_fastopen" = "yes"; then :
   17484  1.1  christos 
   17485  1.3  christos $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   17486  1.1  christos 
   17487  1.3  christos fi
   17488  1.1  christos 
   17489  1.3  christos #
   17490  1.3  christos # Check for some other useful functions that are not ever-present.
   17491  1.3  christos #
   17492  1.3  christos for ac_func in strlcpy strlcat
   17493  1.1  christos do :
   17494  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17495  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17496  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17497  1.1  christos   cat >>confdefs.h <<_ACEOF
   17498  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17499  1.1  christos _ACEOF
   17500  1.1  christos 
   17501  1.1  christos fi
   17502  1.3  christos done
   17503  1.1  christos 
   17504  1.1  christos 
   17505  1.1  christos 
   17506  1.1  christos 
   17507  1.3  christos # Check whether --with-readline was given.
   17508  1.3  christos if test "${with_readline+set}" = set; then :
   17509  1.3  christos   withval=$with_readline; use_readline="$withval"
   17510  1.1  christos else
   17511  1.3  christos   use_readline="auto"
   17512  1.1  christos fi
   17513  1.1  christos 
   17514  1.3  christos case "$use_readline" in
   17515  1.3  christos no)	;;
   17516  1.3  christos *)
   17517  1.3  christos 	saved_LIBS="$LIBS"
   17518  1.3  christos 	case "$use_readline" in
   17519  1.3  christos 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   17520  1.3  christos 	*) try_readline="$use_readline"
   17521  1.3  christos 	esac
   17522  1.3  christos 	for readline in "$try_readline" $or_readline
   17523  1.3  christos 	do
   17524  1.3  christos 		LIBS="$readline"
   17525  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   17526  1.3  christos $as_echo "$as_me: checking for readline with $readline" >&6;}
   17527  1.3  christos 		for ac_func in readline
   17528  1.3  christos do :
   17529  1.3  christos   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17530  1.3  christos if test "x$ac_cv_func_readline" = xyes; then :
   17531  1.3  christos   cat >>confdefs.h <<_ACEOF
   17532  1.3  christos #define HAVE_READLINE 1
   17533  1.3  christos _ACEOF
   17534  1.3  christos 
   17535  1.3  christos fi
   17536  1.3  christos done
   17537  1.1  christos 
   17538  1.3  christos 		if test "yes" = "$ac_cv_func_readline"
   17539  1.3  christos 		then
   17540  1.3  christos 			READLINE_LIB="$readline"
   17541  1.3  christos 			break
   17542  1.3  christos 		fi
   17543  1.3  christos 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   17544  1.3  christos 		do
   17545  1.3  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   17546  1.3  christos $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   17547  1.3  christos 			unset ac_cv_func_readline
   17548  1.3  christos 			LIBS="$readline $lib"
   17549  1.3  christos 			for ac_func in readline
   17550  1.3  christos do :
   17551  1.3  christos   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17552  1.3  christos if test "x$ac_cv_func_readline" = xyes; then :
   17553  1.3  christos   cat >>confdefs.h <<_ACEOF
   17554  1.3  christos #define HAVE_READLINE 1
   17555  1.1  christos _ACEOF
   17556  1.3  christos 
   17557  1.1  christos fi
   17558  1.3  christos done
   17559  1.3  christos 
   17560  1.3  christos 			if test "yes" = "$ac_cv_func_readline"
   17561  1.3  christos 			then
   17562  1.3  christos 				READLINE_LIB="$readline $lib"
   17563  1.3  christos 				break
   17564  1.3  christos 			fi
   17565  1.3  christos 		done
   17566  1.3  christos 		if test "yes" = "$ac_cv_func_readline"
   17567  1.3  christos 		then
   17568  1.3  christos 			break
   17569  1.3  christos 		fi
   17570  1.3  christos 	done
   17571  1.3  christos 	if test "auto" != "$use_readline" &&
   17572  1.3  christos 	   test "X$READLINE_LIB" = "X"
   17573  1.3  christos 	then
   17574  1.3  christos 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   17575  1.3  christos 	fi
   17576  1.3  christos 	LIBS="$saved_LIBS"
   17577  1.1  christos 	;;
   17578  1.1  christos esac
   17579  1.3  christos if test "yes" = "$ac_cv_func_readline"
   17580  1.3  christos then
   17581  1.3  christos 	case "$READLINE_LIB" in
   17582  1.3  christos 	*edit*)
   17583  1.3  christos 		for ac_header in editline/readline.h
   17584  1.3  christos do :
   17585  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   17586  1.3  christos if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   17587  1.3  christos   cat >>confdefs.h <<_ACEOF
   17588  1.3  christos #define HAVE_EDITLINE_READLINE_H 1
   17589  1.3  christos _ACEOF
   17590  1.1  christos 
   17591  1.3  christos fi
   17592  1.1  christos 
   17593  1.3  christos done
   17594  1.1  christos 
   17595  1.3  christos 		for ac_header in edit/readline/readline.h
   17596  1.1  christos do :
   17597  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   17598  1.3  christos if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   17599  1.1  christos   cat >>confdefs.h <<_ACEOF
   17600  1.3  christos #define HAVE_EDIT_READLINE_READLINE_H 1
   17601  1.1  christos _ACEOF
   17602  1.1  christos 
   17603  1.1  christos fi
   17604  1.3  christos 
   17605  1.1  christos done
   17606  1.1  christos 
   17607  1.3  christos 		for ac_header in edit/readline/history.h
   17608  1.3  christos do :
   17609  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   17610  1.3  christos if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   17611  1.3  christos   cat >>confdefs.h <<_ACEOF
   17612  1.3  christos #define HAVE_EDIT_READLINE_HISTORY_H 1
   17613  1.3  christos _ACEOF
   17614  1.1  christos 
   17615  1.3  christos fi
   17616  1.1  christos 
   17617  1.3  christos done
   17618  1.1  christos 
   17619  1.3  christos 		;;
   17620  1.3  christos 	esac
   17621  1.3  christos 	for ac_header in readline/readline.h
   17622  1.3  christos do :
   17623  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   17624  1.3  christos if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   17625  1.3  christos   cat >>confdefs.h <<_ACEOF
   17626  1.3  christos #define HAVE_READLINE_READLINE_H 1
   17627  1.1  christos _ACEOF
   17628  1.1  christos 
   17629  1.1  christos fi
   17630  1.1  christos 
   17631  1.3  christos done
   17632  1.1  christos 
   17633  1.3  christos 	for ac_header in readline/history.h
   17634  1.3  christos do :
   17635  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   17636  1.3  christos if test "x$ac_cv_header_readline_history_h" = xyes; then :
   17637  1.3  christos   cat >>confdefs.h <<_ACEOF
   17638  1.3  christos #define HAVE_READLINE_HISTORY_H 1
   17639  1.1  christos _ACEOF
   17640  1.1  christos 
   17641  1.3  christos fi
   17642  1.1  christos 
   17643  1.3  christos done
   17644  1.1  christos 
   17645  1.1  christos fi
   17646  1.3  christos 
   17647  1.3  christos #
   17648  1.3  christos # Use our own SPNEGO implementation?
   17649  1.3  christos #
   17650  1.3  christos # Check whether --enable-isc-spnego was given.
   17651  1.3  christos if test "${enable_isc_spnego+set}" = set; then :
   17652  1.3  christos   enableval=$enable_isc_spnego;
   17653  1.1  christos fi
   17654  1.1  christos 
   17655  1.1  christos 
   17656  1.3  christos if test -n "$USE_GSSAPI"
   17657  1.3  christos then
   17658  1.3  christos 	case "$enable_isc_spnego" in
   17659  1.3  christos 		yes|'')
   17660  1.3  christos 			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
   17661  1.3  christos 			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
   17662  1.3  christos 			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
   17663  1.3  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
   17664  1.3  christos $as_echo "using SPNEGO from lib/dns" >&6; }
   17665  1.1  christos 			;;
   17666  1.3  christos 		no)
   17667  1.3  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
   17668  1.3  christos $as_echo "using SPNEGO from GSSAPI library" >&6; }
   17669  1.1  christos 			;;
   17670  1.3  christos 	esac
   17671  1.3  christos fi
   17672  1.1  christos 
   17673  1.1  christos 
   17674  1.1  christos 
   17675  1.1  christos 
   17676  1.1  christos 
   17677  1.1  christos 
   17678  1.3  christos #
   17679  1.3  christos # Security Stuff
   17680  1.3  christos #
   17681  1.3  christos # Note it is very recommended to *not* disable chroot(),
   17682  1.3  christos # this is only because chroot() was made obsolete by Posix.
   17683  1.3  christos # Check whether --enable-chroot was given.
   17684  1.3  christos if test "${enable_chroot+set}" = set; then :
   17685  1.3  christos   enableval=$enable_chroot;
   17686  1.1  christos fi
   17687  1.1  christos 
   17688  1.3  christos case "$enable_chroot" in
   17689  1.3  christos 	yes|'')
   17690  1.3  christos 		for ac_func in chroot
   17691  1.3  christos do :
   17692  1.3  christos   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   17693  1.3  christos if test "x$ac_cv_func_chroot" = xyes; then :
   17694  1.3  christos   cat >>confdefs.h <<_ACEOF
   17695  1.3  christos #define HAVE_CHROOT 1
   17696  1.1  christos _ACEOF
   17697  1.1  christos 
   17698  1.3  christos fi
   17699  1.3  christos done
   17700  1.1  christos 
   17701  1.3  christos 		;;
   17702  1.3  christos 	no)
   17703  1.3  christos 		;;
   17704  1.3  christos esac
   17705  1.1  christos 
   17706  1.3  christos LIBCAP_LIBS=""
   17707  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   17708  1.3  christos $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   17709  1.3  christos # Check whether --enable-linux-caps was given.
   17710  1.3  christos if test "${enable_linux_caps+set}" = set; then :
   17711  1.3  christos   enableval=$enable_linux_caps;
   17712  1.3  christos else
   17713  1.3  christos   case $host in #(
   17714  1.3  christos   *-linux*) :
   17715  1.3  christos     enable_linux_caps=yes ;; #(
   17716  1.3  christos   *) :
   17717  1.3  christos     enable_linux_caps=no ;;
   17718  1.3  christos esac
   17719  1.3  christos fi
   17720  1.1  christos 
   17721  1.1  christos 
   17722  1.3  christos if test "$enable_linux_caps" = "yes"; then :
   17723  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17724  1.3  christos $as_echo "yes" >&6; }
   17725  1.3  christos        for ac_header in sys/capability.h
   17726  1.3  christos do :
   17727  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   17728  1.3  christos if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   17729  1.3  christos   cat >>confdefs.h <<_ACEOF
   17730  1.3  christos #define HAVE_SYS_CAPABILITY_H 1
   17731  1.1  christos _ACEOF
   17732  1.1  christos 
   17733  1.1  christos else
   17734  1.3  christos   as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17735  1.1  christos fi
   17736  1.1  christos 
   17737  1.3  christos done
   17738  1.1  christos 
   17739  1.3  christos        save_LIBS="$LIBS"
   17740  1.3  christos        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   17741  1.3  christos $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   17742  1.3  christos if ${ac_cv_search_cap_set_proc+:} false; then :
   17743  1.3  christos   $as_echo_n "(cached) " >&6
   17744  1.3  christos else
   17745  1.3  christos   ac_func_search_save_LIBS=$LIBS
   17746  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17747  1.1  christos /* end confdefs.h.  */
   17748  1.1  christos 
   17749  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17750  1.3  christos    Use char because int might match the return type of a GCC
   17751  1.3  christos    builtin and then its argument prototype would still apply.  */
   17752  1.3  christos #ifdef __cplusplus
   17753  1.3  christos extern "C"
   17754  1.3  christos #endif
   17755  1.3  christos char cap_set_proc ();
   17756  1.1  christos int
   17757  1.1  christos main ()
   17758  1.1  christos {
   17759  1.3  christos return cap_set_proc ();
   17760  1.1  christos   ;
   17761  1.1  christos   return 0;
   17762  1.1  christos }
   17763  1.1  christos _ACEOF
   17764  1.3  christos for ac_lib in '' cap; do
   17765  1.3  christos   if test -z "$ac_lib"; then
   17766  1.3  christos     ac_res="none required"
   17767  1.3  christos   else
   17768  1.3  christos     ac_res=-l$ac_lib
   17769  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17770  1.3  christos   fi
   17771  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   17772  1.3  christos   ac_cv_search_cap_set_proc=$ac_res
   17773  1.1  christos fi
   17774  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   17775  1.3  christos     conftest$ac_exeext
   17776  1.3  christos   if ${ac_cv_search_cap_set_proc+:} false; then :
   17777  1.3  christos   break
   17778  1.3  christos fi
   17779  1.3  christos done
   17780  1.3  christos if ${ac_cv_search_cap_set_proc+:} false; then :
   17781  1.1  christos 
   17782  1.3  christos else
   17783  1.3  christos   ac_cv_search_cap_set_proc=no
   17784  1.3  christos fi
   17785  1.3  christos rm conftest.$ac_ext
   17786  1.3  christos LIBS=$ac_func_search_save_LIBS
   17787  1.3  christos fi
   17788  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   17789  1.3  christos $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   17790  1.3  christos ac_res=$ac_cv_search_cap_set_proc
   17791  1.3  christos if test "$ac_res" != no; then :
   17792  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17793  1.3  christos   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   17794  1.3  christos else
   17795  1.3  christos   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17796  1.1  christos fi
   17797  1.1  christos 
   17798  1.3  christos        LIBS="$save_LIBS"
   17799  1.1  christos else
   17800  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17801  1.3  christos $as_echo "no" >&6; }
   17802  1.1  christos fi
   17803  1.1  christos 
   17804  1.1  christos 
   17805  1.3  christos for ac_header in sys/un.h
   17806  1.3  christos do :
   17807  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   17808  1.3  christos if test "x$ac_cv_header_sys_un_h" = xyes; then :
   17809  1.3  christos   cat >>confdefs.h <<_ACEOF
   17810  1.3  christos #define HAVE_SYS_UN_H 1
   17811  1.3  christos _ACEOF
   17812  1.3  christos  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   17813  1.1  christos 
   17814  1.3  christos else
   17815  1.3  christos   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   17816  1.1  christos 
   17817  1.3  christos fi
   17818  1.1  christos 
   17819  1.3  christos done
   17820  1.1  christos 
   17821  1.1  christos 
   17822  1.1  christos 
   17823  1.3  christos case "$host" in
   17824  1.3  christos *-solaris*)
   17825  1.1  christos 
   17826  1.3  christos $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   17827  1.1  christos 
   17828  1.3  christos 	;;
   17829  1.3  christos esac
   17830  1.1  christos 
   17831  1.3  christos #
   17832  1.3  christos # Time Zone Stuff
   17833  1.3  christos #
   17834  1.3  christos for ac_func in tzset
   17835  1.3  christos do :
   17836  1.3  christos   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   17837  1.3  christos if test "x$ac_cv_func_tzset" = xyes; then :
   17838  1.3  christos   cat >>confdefs.h <<_ACEOF
   17839  1.3  christos #define HAVE_TZSET 1
   17840  1.3  christos _ACEOF
   17841  1.1  christos 
   17842  1.3  christos fi
   17843  1.3  christos done
   17844  1.1  christos 
   17845  1.1  christos 
   17846  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   17847  1.3  christos $as_echo_n "checking for optarg declaration... " >&6; }
   17848  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17849  1.1  christos /* end confdefs.h.  */
   17850  1.1  christos 
   17851  1.3  christos #include <unistd.h>
   17852  1.3  christos 
   17853  1.1  christos int
   17854  1.1  christos main ()
   17855  1.1  christos {
   17856  1.3  christos optarg = 0;
   17857  1.1  christos   ;
   17858  1.1  christos   return 0;
   17859  1.1  christos }
   17860  1.1  christos _ACEOF
   17861  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   17862  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17863  1.1  christos $as_echo "yes" >&6; }
   17864  1.1  christos else
   17865  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17866  1.1  christos $as_echo "no" >&6; }
   17867  1.3  christos GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   17868  1.1  christos 
   17869  1.3  christos $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   17870  1.1  christos 
   17871  1.1  christos fi
   17872  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17873  1.1  christos 
   17874  1.1  christos #
   17875  1.3  christos # Check for nanoseconds in file stats
   17876  1.1  christos #
   17877  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   17878  1.3  christos $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   17879  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17880  1.1  christos /* end confdefs.h.  */
   17881  1.3  christos #include <sys/fcntl.h>
   17882  1.1  christos int
   17883  1.1  christos main ()
   17884  1.1  christos {
   17885  1.3  christos struct stat s;
   17886  1.3  christos        return(s.st_mtim.tv_nsec);
   17887  1.1  christos 
   17888  1.1  christos   ;
   17889  1.1  christos   return 0;
   17890  1.1  christos }
   17891  1.1  christos _ACEOF
   17892  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   17893  1.1  christos 
   17894  1.3  christos $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   17895  1.1  christos 
   17896  1.3  christos fi
   17897  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17898  1.1  christos 
   17899  1.3  christos #
   17900  1.3  christos # Check for if_nametoindex() for IPv6 scoped addresses support
   17901  1.3  christos #
   17902  1.3  christos for ac_func in if_nametoindex
   17903  1.3  christos do :
   17904  1.3  christos   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   17905  1.3  christos if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   17906  1.3  christos   cat >>confdefs.h <<_ACEOF
   17907  1.3  christos #define HAVE_IF_NAMETOINDEX 1
   17908  1.3  christos _ACEOF
   17909  1.1  christos 
   17910  1.1  christos fi
   17911  1.3  christos done
   17912  1.3  christos 
   17913  1.1  christos 
   17914  1.3  christos for ac_func in nanosleep usleep explicit_bzero
   17915  1.3  christos do :
   17916  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17917  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17918  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17919  1.3  christos   cat >>confdefs.h <<_ACEOF
   17920  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17921  1.3  christos _ACEOF
   17922  1.1  christos 
   17923  1.1  christos fi
   17924  1.3  christos done
   17925  1.3  christos 
   17926  1.1  christos 
   17927  1.3  christos ISC_ATOMIC_LIBS=""
   17928  1.3  christos for ac_header in stdatomic.h
   17929  1.3  christos do :
   17930  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   17931  1.3  christos if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   17932  1.3  christos   cat >>confdefs.h <<_ACEOF
   17933  1.3  christos #define HAVE_STDATOMIC_H 1
   17934  1.3  christos _ACEOF
   17935  1.3  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17936  1.3  christos $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17937  1.3  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17938  1.1  christos /* end confdefs.h.  */
   17939  1.3  christos #include <stdatomic.h>
   17940  1.3  christos int
   17941  1.3  christos main ()
   17942  1.3  christos {
   17943  1.3  christos atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17944  1.1  christos 
   17945  1.3  christos   ;
   17946  1.3  christos   return 0;
   17947  1.3  christos }
   17948  1.3  christos _ACEOF
   17949  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   17950  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   17951  1.3  christos $as_echo "stdatomic.h" >&6; }
   17952  1.3  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   17953  1.3  christos $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   17954  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17955  1.3  christos /* end confdefs.h.  */
   17956  1.3  christos #include <stdatomic.h>
   17957  1.1  christos int
   17958  1.1  christos main ()
   17959  1.1  christos {
   17960  1.3  christos atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17961  1.3  christos 
   17962  1.1  christos   ;
   17963  1.1  christos   return 0;
   17964  1.1  christos }
   17965  1.1  christos _ACEOF
   17966  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   17967  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17968  1.3  christos $as_echo "no" >&6; }
   17969  1.3  christos else
   17970  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17971  1.1  christos $as_echo "yes" >&6; }
   17972  1.3  christos 	 ISC_ATOMIC_LIBS="-latomic"
   17973  1.3  christos 
   17974  1.3  christos fi
   17975  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   17976  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   17977  1.3  christos 
   17978  1.1  christos else
   17979  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17980  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17981  1.3  christos as_fn_error $? "stdatomic.h header found, but compilation failed, fix your toolchaing.
   17982  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   17983  1.3  christos 
   17984  1.1  christos fi
   17985  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17986  1.3  christos else
   17987  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17988  1.3  christos $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17989  1.3  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17990  1.1  christos /* end confdefs.h.  */
   17991  1.3  christos #include <inttypes.h>
   17992  1.1  christos int
   17993  1.1  christos main ()
   17994  1.1  christos {
   17995  1.3  christos int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   17996  1.3  christos 
   17997  1.1  christos   ;
   17998  1.1  christos   return 0;
   17999  1.1  christos }
   18000  1.1  christos _ACEOF
   18001  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   18002  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   18003  1.3  christos $as_echo "__atomic builtins" >&6; }
   18004  1.3  christos 
   18005  1.3  christos $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   18006  1.3  christos 
   18007  1.3  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   18008  1.3  christos $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   18009  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18010  1.1  christos /* end confdefs.h.  */
   18011  1.3  christos #include <inttypes.h>
   18012  1.1  christos int
   18013  1.1  christos main ()
   18014  1.1  christos {
   18015  1.3  christos int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   18016  1.3  christos 
   18017  1.1  christos   ;
   18018  1.1  christos   return 0;
   18019  1.1  christos }
   18020  1.1  christos _ACEOF
   18021  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   18022  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18023  1.1  christos $as_echo "no" >&6; }
   18024  1.1  christos else
   18025  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18026  1.1  christos $as_echo "yes" >&6; }
   18027  1.3  christos 	 ISC_ATOMIC_LIBS="-latomic"
   18028  1.1  christos 
   18029  1.1  christos fi
   18030  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   18031  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   18032  1.1  christos 
   18033  1.3  christos else
   18034  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   18035  1.3  christos $as_echo "__sync builtins" >&6; }
   18036  1.1  christos 
   18037  1.1  christos fi
   18038  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18039  1.1  christos 
   18040  1.1  christos fi
   18041  1.1  christos 
   18042  1.3  christos done
   18043  1.1  christos 
   18044  1.3  christos LIBS="$LIBS $ISC_ATOMIC_LIBS"
   18045  1.1  christos 
   18046  1.3  christos for ac_header in uchar.h
   18047  1.3  christos do :
   18048  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   18049  1.3  christos if test "x$ac_cv_header_uchar_h" = xyes; then :
   18050  1.3  christos   cat >>confdefs.h <<_ACEOF
   18051  1.3  christos #define HAVE_UCHAR_H 1
   18052  1.3  christos _ACEOF
   18053  1.1  christos 
   18054  1.1  christos fi
   18055  1.1  christos 
   18056  1.3  christos done
   18057  1.1  christos 
   18058  1.1  christos 
   18059  1.1  christos #
   18060  1.3  christos # Check for __builtin_unreachable
   18061  1.1  christos #
   18062  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   18063  1.3  christos $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   18064  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18065  1.1  christos /* end confdefs.h.  */
   18066  1.1  christos 
   18067  1.1  christos int
   18068  1.1  christos main ()
   18069  1.1  christos {
   18070  1.3  christos __builtin_unreachable();
   18071  1.1  christos 
   18072  1.1  christos   ;
   18073  1.1  christos   return 0;
   18074  1.1  christos }
   18075  1.1  christos _ACEOF
   18076  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   18077  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18078  1.3  christos $as_echo "yes" >&6; }
   18079  1.3  christos 
   18080  1.3  christos $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   18081  1.1  christos 
   18082  1.1  christos 
   18083  1.1  christos else
   18084  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18085  1.1  christos $as_echo "no" >&6; }
   18086  1.3  christos 
   18087  1.1  christos fi
   18088  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   18089  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   18090  1.1  christos 
   18091  1.3  christos #
   18092  1.3  christos # Check for __builtin_expect
   18093  1.3  christos #
   18094  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   18095  1.3  christos $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   18096  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18097  1.1  christos /* end confdefs.h.  */
   18098  1.1  christos 
   18099  1.1  christos int
   18100  1.1  christos main ()
   18101  1.1  christos {
   18102  1.3  christos 
   18103  1.3  christos 	return (__builtin_expect(1, 1) ? 1 : 0);
   18104  1.3  christos 
   18105  1.1  christos   ;
   18106  1.1  christos   return 0;
   18107  1.1  christos }
   18108  1.1  christos _ACEOF
   18109  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   18110  1.1  christos 
   18111  1.3  christos 	have_builtin_expect=yes
   18112  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18113  1.3  christos $as_echo "yes" >&6; }
   18114  1.1  christos 
   18115  1.1  christos else
   18116  1.1  christos 
   18117  1.3  christos 	have_builtin_expect=no
   18118  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18119  1.3  christos $as_echo "no" >&6; }
   18120  1.1  christos 
   18121  1.1  christos fi
   18122  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   18123  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   18124  1.3  christos if test "yes" = "$have_builtin_expect"; then
   18125  1.1  christos 
   18126  1.3  christos $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   18127  1.1  christos 
   18128  1.1  christos fi
   18129  1.1  christos 
   18130  1.3  christos #
   18131  1.3  christos # Check for __builtin_clz
   18132  1.3  christos #
   18133  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   18134  1.3  christos $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   18135  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18136  1.1  christos /* end confdefs.h.  */
   18137  1.1  christos 
   18138  1.1  christos int
   18139  1.1  christos main ()
   18140  1.1  christos {
   18141  1.3  christos 
   18142  1.3  christos 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   18143  1.3  christos 
   18144  1.1  christos   ;
   18145  1.1  christos   return 0;
   18146  1.1  christos }
   18147  1.1  christos _ACEOF
   18148  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   18149  1.3  christos 
   18150  1.3  christos 	have_builtin_clz=yes
   18151  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18152  1.3  christos $as_echo "yes" >&6; }
   18153  1.3  christos 
   18154  1.3  christos else
   18155  1.3  christos 
   18156  1.3  christos 	have_builtin_clz=no
   18157  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18158  1.3  christos $as_echo "no" >&6; }
   18159  1.3  christos 
   18160  1.1  christos fi
   18161  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   18162  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   18163  1.3  christos if test "yes" = "$have_builtin_clz"; then
   18164  1.3  christos 
   18165  1.3  christos $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   18166  1.3  christos 
   18167  1.1  christos fi
   18168  1.1  christos 
   18169  1.3  christos #
   18170  1.3  christos # Activate "rrset-order fixed" or not?
   18171  1.3  christos #
   18172  1.3  christos # Check whether --enable-fixed-rrset was given.
   18173  1.3  christos if test "${enable_fixed_rrset+set}" = set; then :
   18174  1.3  christos   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   18175  1.1  christos else
   18176  1.3  christos   enable_fixed="no"
   18177  1.1  christos fi
   18178  1.1  christos 
   18179  1.3  christos case "$enable_fixed" in
   18180  1.3  christos 	yes)
   18181  1.3  christos 
   18182  1.3  christos $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   18183  1.3  christos 
   18184  1.3  christos 		;;
   18185  1.3  christos 	no)
   18186  1.3  christos 		;;
   18187  1.3  christos 	*)
   18188  1.3  christos 		;;
   18189  1.3  christos esac
   18190  1.3  christos 
   18191  1.3  christos #
   18192  1.3  christos # Enable response policy rewriting using NS IP addresses
   18193  1.3  christos #
   18194  1.3  christos # Check whether --enable-rpz-nsip was given.
   18195  1.3  christos if test "${enable_rpz_nsip+set}" = set; then :
   18196  1.3  christos   enableval=$enable_rpz_nsip; enable_nsip="$enableval"
   18197  1.1  christos else
   18198  1.3  christos   enable_nsip="yes"
   18199  1.1  christos fi
   18200  1.1  christos 
   18201  1.3  christos case "$enable_nsip" in
   18202  1.3  christos 	yes)
   18203  1.3  christos 
   18204  1.3  christos $as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h
   18205  1.1  christos 
   18206  1.3  christos 		;;
   18207  1.3  christos 	no)
   18208  1.3  christos 		;;
   18209  1.3  christos 	*)
   18210  1.3  christos 		;;
   18211  1.3  christos esac
   18212  1.1  christos 
   18213  1.3  christos #
   18214  1.3  christos # Enable response policy rewriting using NS name
   18215  1.3  christos #
   18216  1.3  christos # Check whether --enable-rpz-nsdname was given.
   18217  1.3  christos if test "${enable_rpz_nsdname+set}" = set; then :
   18218  1.3  christos   enableval=$enable_rpz_nsdname; enable_nsdname="$enableval"
   18219  1.1  christos else
   18220  1.3  christos   enable_nsdname="yes"
   18221  1.1  christos fi
   18222  1.1  christos 
   18223  1.3  christos case "$enable_nsdname" in
   18224  1.3  christos 	yes)
   18225  1.1  christos 
   18226  1.3  christos $as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h
   18227  1.1  christos 
   18228  1.3  christos 		;;
   18229  1.3  christos 	no)
   18230  1.3  christos 		;;
   18231  1.3  christos 	*)
   18232  1.3  christos 		;;
   18233  1.3  christos esac
   18234  1.1  christos 
   18235  1.1  christos #
   18236  1.1  christos # Activate dnstap?
   18237  1.1  christos #
   18238  1.1  christos # Check whether --enable-dnstap was given.
   18239  1.1  christos if test "${enable_dnstap+set}" = set; then :
   18240  1.1  christos   enableval=$enable_dnstap; use_dnstap=$enableval
   18241  1.1  christos else
   18242  1.1  christos   use_dnstap=no
   18243  1.1  christos fi
   18244  1.1  christos 
   18245  1.1  christos 
   18246  1.1  christos DNSTAP=
   18247  1.1  christos DNSTAPSRCS=
   18248  1.1  christos DNSTAPOBJS=
   18249  1.1  christos DNSTAPTARGETS=
   18250  1.1  christos DNSTAP_PB_C_H=
   18251  1.1  christos if test "x$use_dnstap" != "xno"; then
   18252  1.1  christos 
   18253  1.1  christos # Check whether --with-protobuf-c was given.
   18254  1.1  christos if test "${with_protobuf_c+set}" = set; then :
   18255  1.1  christos   withval=$with_protobuf_c;
   18256  1.1  christos 	    # workaround for protobuf-c includes at old dir
   18257  1.1  christos 	    # before protobuf-c-1.0.0
   18258  1.1  christos 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   18259  1.1  christos 	    then
   18260  1.1  christos 		CFLAGS="$CFLAGS -I$withval/include/google"
   18261  1.1  christos 	    else
   18262  1.1  christos 		CFLAGS="$CFLAGS -I$withval/include"
   18263  1.1  christos 	    fi
   18264  1.1  christos 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18265  1.1  christos 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18266  1.1  christos set dummy protoc-c; ac_word=$2
   18267  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18268  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18269  1.1  christos if ${ac_cv_path_PROTOC_C+:} false; then :
   18270  1.1  christos   $as_echo_n "(cached) " >&6
   18271  1.1  christos else
   18272  1.1  christos   case $PROTOC_C in
   18273  1.1  christos   [\\/]* | ?:[\\/]*)
   18274  1.1  christos   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18275  1.1  christos   ;;
   18276  1.1  christos   *)
   18277  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18278  1.1  christos for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18279  1.1  christos do
   18280  1.1  christos   IFS=$as_save_IFS
   18281  1.1  christos   test -z "$as_dir" && as_dir=.
   18282  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18283  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18284  1.1  christos     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18285  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18286  1.1  christos     break 2
   18287  1.1  christos   fi
   18288  1.1  christos done
   18289  1.1  christos   done
   18290  1.1  christos IFS=$as_save_IFS
   18291  1.1  christos 
   18292  1.1  christos   ;;
   18293  1.1  christos esac
   18294  1.1  christos fi
   18295  1.1  christos PROTOC_C=$ac_cv_path_PROTOC_C
   18296  1.1  christos if test -n "$PROTOC_C"; then
   18297  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18298  1.1  christos $as_echo "$PROTOC_C" >&6; }
   18299  1.1  christos else
   18300  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18301  1.1  christos $as_echo "no" >&6; }
   18302  1.1  christos fi
   18303  1.1  christos 
   18304  1.1  christos 
   18305  1.1  christos 
   18306  1.1  christos else
   18307  1.1  christos 
   18308  1.1  christos 	    # workaround for protobuf-c includes at old dir
   18309  1.1  christos 	    # before protobuf-c-1.0.0
   18310  1.1  christos 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   18311  1.1  christos 	    then
   18312  1.1  christos 		CFLAGS="$CFLAGS -I/usr/include/google"
   18313  1.1  christos 	    else
   18314  1.1  christos 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   18315  1.1  christos 		then
   18316  1.1  christos 		    CFLAGS="$CFLAGS -I/usr/local/include/google"
   18317  1.1  christos 		    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   18318  1.1  christos 		fi
   18319  1.1  christos 	    fi
   18320  1.1  christos 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18321  1.1  christos set dummy protoc-c; ac_word=$2
   18322  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18323  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18324  1.1  christos if ${ac_cv_path_PROTOC_C+:} false; then :
   18325  1.1  christos   $as_echo_n "(cached) " >&6
   18326  1.1  christos else
   18327  1.1  christos   case $PROTOC_C in
   18328  1.1  christos   [\\/]* | ?:[\\/]*)
   18329  1.1  christos   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18330  1.1  christos   ;;
   18331  1.1  christos   *)
   18332  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18333  1.1  christos for as_dir in $PATH
   18334  1.1  christos do
   18335  1.1  christos   IFS=$as_save_IFS
   18336  1.1  christos   test -z "$as_dir" && as_dir=.
   18337  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18338  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18339  1.1  christos     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18340  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18341  1.1  christos     break 2
   18342  1.1  christos   fi
   18343  1.1  christos done
   18344  1.1  christos   done
   18345  1.1  christos IFS=$as_save_IFS
   18346  1.1  christos 
   18347  1.1  christos   ;;
   18348  1.1  christos esac
   18349  1.1  christos fi
   18350  1.1  christos PROTOC_C=$ac_cv_path_PROTOC_C
   18351  1.1  christos if test -n "$PROTOC_C"; then
   18352  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18353  1.1  christos $as_echo "$PROTOC_C" >&6; }
   18354  1.1  christos else
   18355  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18356  1.1  christos $as_echo "no" >&6; }
   18357  1.1  christos fi
   18358  1.1  christos 
   18359  1.1  christos 
   18360  1.1  christos 
   18361  1.1  christos fi
   18362  1.1  christos 
   18363  1.1  christos 	if test -z "$PROTOC_C"; then
   18364  1.1  christos 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   18365  1.1  christos 	fi
   18366  1.1  christos 
   18367  1.1  christos # Check whether --with-libfstrm was given.
   18368  1.1  christos if test "${with_libfstrm+set}" = set; then :
   18369  1.1  christos   withval=$with_libfstrm;
   18370  1.1  christos 	    CFLAGS="$CFLAGS -I$withval/include"
   18371  1.1  christos 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18372  1.1  christos 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18373  1.1  christos set dummy fstrm_capture; ac_word=$2
   18374  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18375  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18376  1.1  christos if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18377  1.1  christos   $as_echo_n "(cached) " >&6
   18378  1.1  christos else
   18379  1.1  christos   case $FSTRM_CAPTURE in
   18380  1.1  christos   [\\/]* | ?:[\\/]*)
   18381  1.1  christos   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18382  1.1  christos   ;;
   18383  1.1  christos   *)
   18384  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18385  1.1  christos for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18386  1.1  christos do
   18387  1.1  christos   IFS=$as_save_IFS
   18388  1.1  christos   test -z "$as_dir" && as_dir=.
   18389  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18390  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18391  1.1  christos     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18392  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18393  1.1  christos     break 2
   18394  1.1  christos   fi
   18395  1.1  christos done
   18396  1.1  christos   done
   18397  1.1  christos IFS=$as_save_IFS
   18398  1.1  christos 
   18399  1.1  christos   ;;
   18400  1.1  christos esac
   18401  1.1  christos fi
   18402  1.1  christos FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18403  1.1  christos if test -n "$FSTRM_CAPTURE"; then
   18404  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18405  1.1  christos $as_echo "$FSTRM_CAPTURE" >&6; }
   18406  1.1  christos else
   18407  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18408  1.1  christos $as_echo "no" >&6; }
   18409  1.1  christos fi
   18410  1.1  christos 
   18411  1.1  christos 
   18412  1.1  christos 
   18413  1.1  christos else
   18414  1.1  christos 
   18415  1.1  christos 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18416  1.1  christos set dummy fstrm_capture; ac_word=$2
   18417  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18418  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18419  1.1  christos if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18420  1.1  christos   $as_echo_n "(cached) " >&6
   18421  1.1  christos else
   18422  1.1  christos   case $FSTRM_CAPTURE in
   18423  1.1  christos   [\\/]* | ?:[\\/]*)
   18424  1.1  christos   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18425  1.1  christos   ;;
   18426  1.1  christos   *)
   18427  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18428  1.1  christos for as_dir in $PATH
   18429  1.1  christos do
   18430  1.1  christos   IFS=$as_save_IFS
   18431  1.1  christos   test -z "$as_dir" && as_dir=.
   18432  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18433  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18434  1.1  christos     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18435  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18436  1.1  christos     break 2
   18437  1.1  christos   fi
   18438  1.1  christos done
   18439  1.1  christos   done
   18440  1.1  christos IFS=$as_save_IFS
   18441  1.1  christos 
   18442  1.1  christos   ;;
   18443  1.1  christos esac
   18444  1.1  christos fi
   18445  1.1  christos FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18446  1.1  christos if test -n "$FSTRM_CAPTURE"; then
   18447  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18448  1.1  christos $as_echo "$FSTRM_CAPTURE" >&6; }
   18449  1.1  christos else
   18450  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18451  1.1  christos $as_echo "no" >&6; }
   18452  1.1  christos fi
   18453  1.1  christos 
   18454  1.1  christos 
   18455  1.1  christos 
   18456  1.1  christos fi
   18457  1.1  christos 
   18458  1.1  christos 
   18459  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   18460  1.1  christos $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   18461  1.1  christos if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18462  1.1  christos   $as_echo_n "(cached) " >&6
   18463  1.1  christos else
   18464  1.1  christos   ac_func_search_save_LIBS=$LIBS
   18465  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18466  1.1  christos /* end confdefs.h.  */
   18467  1.1  christos 
   18468  1.1  christos /* Override any GCC internal prototype to avoid an error.
   18469  1.1  christos    Use char because int might match the return type of a GCC
   18470  1.1  christos    builtin and then its argument prototype would still apply.  */
   18471  1.1  christos #ifdef __cplusplus
   18472  1.1  christos extern "C"
   18473  1.1  christos #endif
   18474  1.1  christos char fstrm_iothr_init ();
   18475  1.1  christos int
   18476  1.1  christos main ()
   18477  1.1  christos {
   18478  1.1  christos return fstrm_iothr_init ();
   18479  1.1  christos   ;
   18480  1.1  christos   return 0;
   18481  1.1  christos }
   18482  1.1  christos _ACEOF
   18483  1.1  christos for ac_lib in '' fstrm; do
   18484  1.1  christos   if test -z "$ac_lib"; then
   18485  1.1  christos     ac_res="none required"
   18486  1.1  christos   else
   18487  1.1  christos     ac_res=-l$ac_lib
   18488  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18489  1.1  christos   fi
   18490  1.1  christos   if ac_fn_c_try_link "$LINENO"; then :
   18491  1.1  christos   ac_cv_search_fstrm_iothr_init=$ac_res
   18492  1.1  christos fi
   18493  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   18494  1.1  christos     conftest$ac_exeext
   18495  1.1  christos   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18496  1.1  christos   break
   18497  1.1  christos fi
   18498  1.1  christos done
   18499  1.1  christos if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18500  1.1  christos 
   18501  1.1  christos else
   18502  1.1  christos   ac_cv_search_fstrm_iothr_init=no
   18503  1.1  christos fi
   18504  1.1  christos rm conftest.$ac_ext
   18505  1.1  christos LIBS=$ac_func_search_save_LIBS
   18506  1.1  christos fi
   18507  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   18508  1.1  christos $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   18509  1.1  christos ac_res=$ac_cv_search_fstrm_iothr_init
   18510  1.1  christos if test "$ac_res" != no; then :
   18511  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18512  1.1  christos 
   18513  1.1  christos else
   18514  1.1  christos   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   18515  1.1  christos fi
   18516  1.1  christos 
   18517  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   18518  1.1  christos $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   18519  1.1  christos if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18520  1.1  christos   $as_echo_n "(cached) " >&6
   18521  1.1  christos else
   18522  1.1  christos   ac_func_search_save_LIBS=$LIBS
   18523  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18524  1.1  christos /* end confdefs.h.  */
   18525  1.1  christos 
   18526  1.1  christos /* Override any GCC internal prototype to avoid an error.
   18527  1.1  christos    Use char because int might match the return type of a GCC
   18528  1.1  christos    builtin and then its argument prototype would still apply.  */
   18529  1.1  christos #ifdef __cplusplus
   18530  1.1  christos extern "C"
   18531  1.1  christos #endif
   18532  1.1  christos char protobuf_c_message_pack ();
   18533  1.1  christos int
   18534  1.1  christos main ()
   18535  1.1  christos {
   18536  1.1  christos return protobuf_c_message_pack ();
   18537  1.1  christos   ;
   18538  1.1  christos   return 0;
   18539  1.1  christos }
   18540  1.1  christos _ACEOF
   18541  1.1  christos for ac_lib in '' protobuf-c; do
   18542  1.1  christos   if test -z "$ac_lib"; then
   18543  1.1  christos     ac_res="none required"
   18544  1.1  christos   else
   18545  1.1  christos     ac_res=-l$ac_lib
   18546  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18547  1.1  christos   fi
   18548  1.1  christos   if ac_fn_c_try_link "$LINENO"; then :
   18549  1.1  christos   ac_cv_search_protobuf_c_message_pack=$ac_res
   18550  1.1  christos fi
   18551  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   18552  1.1  christos     conftest$ac_exeext
   18553  1.1  christos   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18554  1.1  christos   break
   18555  1.1  christos fi
   18556  1.1  christos done
   18557  1.1  christos if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18558  1.1  christos 
   18559  1.1  christos else
   18560  1.1  christos   ac_cv_search_protobuf_c_message_pack=no
   18561  1.1  christos fi
   18562  1.1  christos rm conftest.$ac_ext
   18563  1.1  christos LIBS=$ac_func_search_save_LIBS
   18564  1.1  christos fi
   18565  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   18566  1.1  christos $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   18567  1.1  christos ac_res=$ac_cv_search_protobuf_c_message_pack
   18568  1.1  christos if test "$ac_res" != no; then :
   18569  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18570  1.1  christos 
   18571  1.1  christos else
   18572  1.1  christos   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   18573  1.1  christos fi
   18574  1.1  christos 
   18575  1.1  christos 
   18576  1.1  christos 
   18577  1.1  christos $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   18578  1.1  christos 
   18579  1.1  christos 	DNSTAP=dnstap
   18580  1.1  christos 	DNSTAPSRCS='${DNSTAPSRCS}'
   18581  1.1  christos 	DNSTAPOBJS='${DNSTAPOBJS}'
   18582  1.1  christos 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   18583  1.1  christos 	DNSTAP_PB_C_H="dnstap.pb-c.h"
   18584  1.1  christos fi
   18585  1.1  christos 
   18586  1.1  christos 
   18587  1.1  christos 
   18588  1.1  christos 
   18589  1.1  christos 
   18590  1.1  christos 
   18591  1.1  christos #
   18592  1.1  christos #  The following sets up how non-blocking i/o is established.
   18593  1.3  christos #  cygwin and solaris 2.x (x<5) require special handling.
   18594  1.1  christos #
   18595  1.1  christos case "$host" in
   18596  1.1  christos *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   18597  1.1  christos ;;
   18598  1.1  christos *-solaris2.[01234])
   18599  1.1  christos 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18600  1.1  christos 
   18601  1.1  christos 
   18602  1.1  christos $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   18603  1.1  christos 
   18604  1.1  christos 	;;
   18605  1.1  christos *)
   18606  1.1  christos $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18607  1.1  christos 
   18608  1.1  christos 	;;
   18609  1.1  christos esac
   18610  1.1  christos #
   18611  1.1  christos # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   18612  1.1  christos # This prevents the source address being set.
   18613  1.1  christos #
   18614  1.1  christos case "$host" in
   18615  1.1  christos *-solaris2.[012345]|*-solaris2.5.1)
   18616  1.1  christos 
   18617  1.1  christos $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   18618  1.1  christos 
   18619  1.1  christos 	;;
   18620  1.1  christos esac
   18621  1.1  christos #
   18622  1.1  christos # The following sections deal with tools used for formatting
   18623  1.1  christos # the documentation.  They are all optional, unless you are
   18624  1.1  christos # a developer editing the documentation source.
   18625  1.1  christos #
   18626  1.1  christos 
   18627  1.1  christos #
   18628  1.1  christos # Look for TeX.
   18629  1.1  christos #
   18630  1.1  christos 
   18631  1.1  christos for ac_prog in latex
   18632  1.1  christos do
   18633  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18634  1.1  christos set dummy $ac_prog; ac_word=$2
   18635  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18636  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18637  1.1  christos if ${ac_cv_path_LATEX+:} false; then :
   18638  1.1  christos   $as_echo_n "(cached) " >&6
   18639  1.1  christos else
   18640  1.1  christos   case $LATEX in
   18641  1.1  christos   [\\/]* | ?:[\\/]*)
   18642  1.1  christos   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
   18643  1.1  christos   ;;
   18644  1.1  christos   *)
   18645  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18646  1.1  christos for as_dir in $PATH
   18647  1.1  christos do
   18648  1.1  christos   IFS=$as_save_IFS
   18649  1.1  christos   test -z "$as_dir" && as_dir=.
   18650  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18651  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18652  1.1  christos     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
   18653  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18654  1.1  christos     break 2
   18655  1.1  christos   fi
   18656  1.1  christos done
   18657  1.1  christos   done
   18658  1.1  christos IFS=$as_save_IFS
   18659  1.1  christos 
   18660  1.1  christos   ;;
   18661  1.1  christos esac
   18662  1.1  christos fi
   18663  1.1  christos LATEX=$ac_cv_path_LATEX
   18664  1.1  christos if test -n "$LATEX"; then
   18665  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
   18666  1.1  christos $as_echo "$LATEX" >&6; }
   18667  1.1  christos else
   18668  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18669  1.1  christos $as_echo "no" >&6; }
   18670  1.1  christos fi
   18671  1.1  christos 
   18672  1.1  christos 
   18673  1.1  christos   test -n "$LATEX" && break
   18674  1.1  christos done
   18675  1.1  christos test -n "$LATEX" || LATEX="latex"
   18676  1.1  christos 
   18677  1.1  christos 
   18678  1.1  christos 
   18679  1.1  christos for ac_prog in pdflatex
   18680  1.1  christos do
   18681  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18682  1.1  christos set dummy $ac_prog; ac_word=$2
   18683  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18684  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18685  1.1  christos if ${ac_cv_path_PDFLATEX+:} false; then :
   18686  1.1  christos   $as_echo_n "(cached) " >&6
   18687  1.1  christos else
   18688  1.1  christos   case $PDFLATEX in
   18689  1.1  christos   [\\/]* | ?:[\\/]*)
   18690  1.1  christos   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   18691  1.1  christos   ;;
   18692  1.1  christos   *)
   18693  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18694  1.1  christos for as_dir in $PATH
   18695  1.1  christos do
   18696  1.1  christos   IFS=$as_save_IFS
   18697  1.1  christos   test -z "$as_dir" && as_dir=.
   18698  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18699  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18700  1.1  christos     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   18701  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18702  1.1  christos     break 2
   18703  1.1  christos   fi
   18704  1.1  christos done
   18705  1.1  christos   done
   18706  1.1  christos IFS=$as_save_IFS
   18707  1.1  christos 
   18708  1.1  christos   ;;
   18709  1.1  christos esac
   18710  1.1  christos fi
   18711  1.1  christos PDFLATEX=$ac_cv_path_PDFLATEX
   18712  1.1  christos if test -n "$PDFLATEX"; then
   18713  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   18714  1.1  christos $as_echo "$PDFLATEX" >&6; }
   18715  1.1  christos else
   18716  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18717  1.1  christos $as_echo "no" >&6; }
   18718  1.1  christos fi
   18719  1.1  christos 
   18720  1.1  christos 
   18721  1.1  christos   test -n "$PDFLATEX" && break
   18722  1.1  christos done
   18723  1.1  christos test -n "$PDFLATEX" || PDFLATEX="pdflatex"
   18724  1.1  christos 
   18725  1.1  christos 
   18726  1.1  christos 
   18727  1.1  christos for ac_prog in dblatex
   18728  1.1  christos do
   18729  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18730  1.1  christos set dummy $ac_prog; ac_word=$2
   18731  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18732  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18733  1.1  christos if ${ac_cv_path_DBLATEX+:} false; then :
   18734  1.1  christos   $as_echo_n "(cached) " >&6
   18735  1.1  christos else
   18736  1.1  christos   case $DBLATEX in
   18737  1.1  christos   [\\/]* | ?:[\\/]*)
   18738  1.1  christos   ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
   18739  1.1  christos   ;;
   18740  1.1  christos   *)
   18741  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18742  1.1  christos for as_dir in $PATH
   18743  1.1  christos do
   18744  1.1  christos   IFS=$as_save_IFS
   18745  1.1  christos   test -z "$as_dir" && as_dir=.
   18746  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18747  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18748  1.1  christos     ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
   18749  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18750  1.1  christos     break 2
   18751  1.1  christos   fi
   18752  1.1  christos done
   18753  1.1  christos   done
   18754  1.1  christos IFS=$as_save_IFS
   18755  1.1  christos 
   18756  1.1  christos   ;;
   18757  1.1  christos esac
   18758  1.1  christos fi
   18759  1.1  christos DBLATEX=$ac_cv_path_DBLATEX
   18760  1.1  christos if test -n "$DBLATEX"; then
   18761  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
   18762  1.1  christos $as_echo "$DBLATEX" >&6; }
   18763  1.1  christos else
   18764  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18765  1.1  christos $as_echo "no" >&6; }
   18766  1.1  christos fi
   18767  1.1  christos 
   18768  1.1  christos 
   18769  1.1  christos   test -n "$DBLATEX" && break
   18770  1.1  christos done
   18771  1.1  christos test -n "$DBLATEX" || DBLATEX="dblatex"
   18772  1.1  christos 
   18773  1.1  christos 
   18774  1.1  christos 
   18775  1.1  christos #
   18776  1.1  christos # Look for w3m
   18777  1.1  christos #
   18778  1.1  christos 
   18779  1.1  christos for ac_prog in w3m
   18780  1.1  christos do
   18781  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18782  1.1  christos set dummy $ac_prog; ac_word=$2
   18783  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18784  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18785  1.1  christos if ${ac_cv_path_W3M+:} false; then :
   18786  1.1  christos   $as_echo_n "(cached) " >&6
   18787  1.1  christos else
   18788  1.1  christos   case $W3M in
   18789  1.1  christos   [\\/]* | ?:[\\/]*)
   18790  1.1  christos   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
   18791  1.1  christos   ;;
   18792  1.1  christos   *)
   18793  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18794  1.1  christos for as_dir in $PATH
   18795  1.1  christos do
   18796  1.1  christos   IFS=$as_save_IFS
   18797  1.1  christos   test -z "$as_dir" && as_dir=.
   18798  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18799  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18800  1.1  christos     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
   18801  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18802  1.1  christos     break 2
   18803  1.1  christos   fi
   18804  1.1  christos done
   18805  1.1  christos   done
   18806  1.1  christos IFS=$as_save_IFS
   18807  1.1  christos 
   18808  1.1  christos   ;;
   18809  1.1  christos esac
   18810  1.1  christos fi
   18811  1.1  christos W3M=$ac_cv_path_W3M
   18812  1.1  christos if test -n "$W3M"; then
   18813  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
   18814  1.1  christos $as_echo "$W3M" >&6; }
   18815  1.1  christos else
   18816  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18817  1.1  christos $as_echo "no" >&6; }
   18818  1.1  christos fi
   18819  1.1  christos 
   18820  1.1  christos 
   18821  1.1  christos   test -n "$W3M" && break
   18822  1.1  christos done
   18823  1.1  christos test -n "$W3M" || W3M="w3m"
   18824  1.1  christos 
   18825  1.1  christos 
   18826  1.1  christos 
   18827  1.1  christos #
   18828  1.1  christos # Look for pandoc
   18829  1.1  christos #
   18830  1.1  christos # Extract the first word of "pandoc", so it can be a program name with args.
   18831  1.1  christos set dummy pandoc; ac_word=$2
   18832  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18833  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18834  1.1  christos if ${ac_cv_path_PANDOC+:} false; then :
   18835  1.1  christos   $as_echo_n "(cached) " >&6
   18836  1.1  christos else
   18837  1.1  christos   case $PANDOC in
   18838  1.1  christos   [\\/]* | ?:[\\/]*)
   18839  1.1  christos   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
   18840  1.1  christos   ;;
   18841  1.1  christos   *)
   18842  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18843  1.1  christos for as_dir in $PATH
   18844  1.1  christos do
   18845  1.1  christos   IFS=$as_save_IFS
   18846  1.1  christos   test -z "$as_dir" && as_dir=.
   18847  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18848  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18849  1.1  christos     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
   18850  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18851  1.1  christos     break 2
   18852  1.1  christos   fi
   18853  1.1  christos done
   18854  1.1  christos   done
   18855  1.1  christos IFS=$as_save_IFS
   18856  1.1  christos 
   18857  1.1  christos   test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
   18858  1.1  christos   ;;
   18859  1.1  christos esac
   18860  1.1  christos fi
   18861  1.1  christos PANDOC=$ac_cv_path_PANDOC
   18862  1.1  christos if test -n "$PANDOC"; then
   18863  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
   18864  1.1  christos $as_echo "$PANDOC" >&6; }
   18865  1.1  christos else
   18866  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18867  1.1  christos $as_echo "no" >&6; }
   18868  1.1  christos fi
   18869  1.1  christos 
   18870  1.1  christos 
   18871  1.1  christos 
   18872  1.1  christos 
   18873  1.1  christos 
   18874  1.1  christos #
   18875  1.1  christos # Look for xsltproc (libxslt)
   18876  1.1  christos #
   18877  1.1  christos 
   18878  1.1  christos # Extract the first word of "xsltproc", so it can be a program name with args.
   18879  1.1  christos set dummy xsltproc; ac_word=$2
   18880  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18881  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18882  1.1  christos if ${ac_cv_path_XSLTPROC+:} false; then :
   18883  1.1  christos   $as_echo_n "(cached) " >&6
   18884  1.1  christos else
   18885  1.1  christos   case $XSLTPROC in
   18886  1.1  christos   [\\/]* | ?:[\\/]*)
   18887  1.1  christos   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   18888  1.1  christos   ;;
   18889  1.1  christos   *)
   18890  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18891  1.1  christos for as_dir in $PATH
   18892  1.1  christos do
   18893  1.1  christos   IFS=$as_save_IFS
   18894  1.1  christos   test -z "$as_dir" && as_dir=.
   18895  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18896  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18897  1.1  christos     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   18898  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18899  1.1  christos     break 2
   18900  1.1  christos   fi
   18901  1.1  christos done
   18902  1.1  christos   done
   18903  1.1  christos IFS=$as_save_IFS
   18904  1.1  christos 
   18905  1.1  christos   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
   18906  1.1  christos   ;;
   18907  1.1  christos esac
   18908  1.1  christos fi
   18909  1.1  christos XSLTPROC=$ac_cv_path_XSLTPROC
   18910  1.1  christos if test -n "$XSLTPROC"; then
   18911  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   18912  1.1  christos $as_echo "$XSLTPROC" >&6; }
   18913  1.1  christos else
   18914  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18915  1.1  christos $as_echo "no" >&6; }
   18916  1.1  christos fi
   18917  1.1  christos 
   18918  1.1  christos 
   18919  1.1  christos 
   18920  1.1  christos 
   18921  1.1  christos #
   18922  1.1  christos # Look for xmllint (libxml2)
   18923  1.1  christos #
   18924  1.1  christos 
   18925  1.1  christos # Extract the first word of "xmllint", so it can be a program name with args.
   18926  1.1  christos set dummy xmllint; ac_word=$2
   18927  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18928  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18929  1.1  christos if ${ac_cv_path_XMLLINT+:} false; then :
   18930  1.1  christos   $as_echo_n "(cached) " >&6
   18931  1.1  christos else
   18932  1.1  christos   case $XMLLINT in
   18933  1.1  christos   [\\/]* | ?:[\\/]*)
   18934  1.1  christos   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
   18935  1.1  christos   ;;
   18936  1.1  christos   *)
   18937  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18938  1.1  christos for as_dir in $PATH
   18939  1.1  christos do
   18940  1.1  christos   IFS=$as_save_IFS
   18941  1.1  christos   test -z "$as_dir" && as_dir=.
   18942  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18943  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18944  1.1  christos     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
   18945  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18946  1.1  christos     break 2
   18947  1.1  christos   fi
   18948  1.1  christos done
   18949  1.1  christos   done
   18950  1.1  christos IFS=$as_save_IFS
   18951  1.1  christos 
   18952  1.1  christos   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
   18953  1.1  christos   ;;
   18954  1.1  christos esac
   18955  1.1  christos fi
   18956  1.1  christos XMLLINT=$ac_cv_path_XMLLINT
   18957  1.1  christos if test -n "$XMLLINT"; then
   18958  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
   18959  1.1  christos $as_echo "$XMLLINT" >&6; }
   18960  1.1  christos else
   18961  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18962  1.1  christos $as_echo "no" >&6; }
   18963  1.1  christos fi
   18964  1.1  christos 
   18965  1.1  christos 
   18966  1.1  christos 
   18967  1.1  christos 
   18968  1.1  christos #
   18969  1.1  christos # Look for Doxygen
   18970  1.1  christos #
   18971  1.1  christos 
   18972  1.1  christos # Extract the first word of "doxygen", so it can be a program name with args.
   18973  1.1  christos set dummy doxygen; ac_word=$2
   18974  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18975  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18976  1.1  christos if ${ac_cv_path_DOXYGEN+:} false; then :
   18977  1.1  christos   $as_echo_n "(cached) " >&6
   18978  1.1  christos else
   18979  1.1  christos   case $DOXYGEN in
   18980  1.1  christos   [\\/]* | ?:[\\/]*)
   18981  1.1  christos   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   18982  1.1  christos   ;;
   18983  1.1  christos   *)
   18984  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18985  1.1  christos for as_dir in $PATH
   18986  1.1  christos do
   18987  1.1  christos   IFS=$as_save_IFS
   18988  1.1  christos   test -z "$as_dir" && as_dir=.
   18989  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18990  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18991  1.1  christos     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   18992  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18993  1.1  christos     break 2
   18994  1.1  christos   fi
   18995  1.1  christos done
   18996  1.1  christos   done
   18997  1.1  christos IFS=$as_save_IFS
   18998  1.1  christos 
   18999  1.1  christos   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
   19000  1.1  christos   ;;
   19001  1.1  christos esac
   19002  1.1  christos fi
   19003  1.1  christos DOXYGEN=$ac_cv_path_DOXYGEN
   19004  1.1  christos if test -n "$DOXYGEN"; then
   19005  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   19006  1.1  christos $as_echo "$DOXYGEN" >&6; }
   19007  1.1  christos else
   19008  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19009  1.1  christos $as_echo "no" >&6; }
   19010  1.1  christos fi
   19011  1.1  christos 
   19012  1.1  christos 
   19013  1.1  christos 
   19014  1.1  christos 
   19015  1.1  christos #
   19016  1.1  christos # Look for curl
   19017  1.1  christos #
   19018  1.1  christos 
   19019  1.1  christos # Extract the first word of "curl", so it can be a program name with args.
   19020  1.1  christos set dummy curl; ac_word=$2
   19021  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19022  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   19023  1.1  christos if ${ac_cv_path_CURL+:} false; then :
   19024  1.1  christos   $as_echo_n "(cached) " >&6
   19025  1.1  christos else
   19026  1.1  christos   case $CURL in
   19027  1.1  christos   [\\/]* | ?:[\\/]*)
   19028  1.1  christos   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   19029  1.1  christos   ;;
   19030  1.1  christos   *)
   19031  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19032  1.1  christos for as_dir in $PATH
   19033  1.1  christos do
   19034  1.1  christos   IFS=$as_save_IFS
   19035  1.1  christos   test -z "$as_dir" && as_dir=.
   19036  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   19037  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19038  1.1  christos     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   19039  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19040  1.1  christos     break 2
   19041  1.1  christos   fi
   19042  1.1  christos done
   19043  1.1  christos   done
   19044  1.1  christos IFS=$as_save_IFS
   19045  1.1  christos 
   19046  1.1  christos   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   19047  1.1  christos   ;;
   19048  1.1  christos esac
   19049  1.1  christos fi
   19050  1.1  christos CURL=$ac_cv_path_CURL
   19051  1.1  christos if test -n "$CURL"; then
   19052  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   19053  1.1  christos $as_echo "$CURL" >&6; }
   19054  1.1  christos else
   19055  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19056  1.1  christos $as_echo "no" >&6; }
   19057  1.1  christos fi
   19058  1.1  christos 
   19059  1.1  christos 
   19060  1.1  christos 
   19061  1.1  christos 
   19062  1.1  christos #
   19063  1.1  christos # Subroutine for searching for an ordinary file (e.g., a stylesheet)
   19064  1.1  christos # in a number of directories:
   19065  1.1  christos #
   19066  1.1  christos #   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
   19067  1.1  christos #
   19068  1.1  christos # If the file FILENAME is found in one of the DIRECTORIES, the shell
   19069  1.1  christos # variable VARIABLE is defined to its absolute pathname.  Otherwise,
   19070  1.1  christos # it is set to FILENAME, with no directory prefix (that's not terribly
   19071  1.1  christos # useful, but looks less confusing in substitutions than leaving it
   19072  1.1  christos # empty).  The variable VARIABLE will be substituted into output files.
   19073  1.1  christos #
   19074  1.1  christos 
   19075  1.1  christos 
   19076  1.1  christos 
   19077  1.1  christos #
   19078  1.1  christos # Look for Docbook-XSL stylesheets.  Location probably varies by system.
   19079  1.1  christos # If it's not explicitly specified, guess where it might be found, based on
   19080  1.1  christos # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
   19081  1.1  christos # of at the moment).
   19082  1.1  christos #
   19083  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
   19084  1.1  christos $as_echo_n "checking for Docbook-XSL path... " >&6; }
   19085  1.1  christos 
   19086  1.1  christos # Check whether --with-docbook-xsl was given.
   19087  1.1  christos if test "${with_docbook_xsl+set}" = set; then :
   19088  1.1  christos   withval=$with_docbook_xsl; docbook_path="$withval"
   19089  1.1  christos else
   19090  1.1  christos   docbook_path="auto"
   19091  1.1  christos fi
   19092  1.1  christos 
   19093  1.1  christos case "$docbook_path" in
   19094  1.1  christos auto)
   19095  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
   19096  1.1  christos $as_echo "auto" >&6; }
   19097  1.3  christos 	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  1.1  christos 	;;
   19099  1.1  christos *)
   19100  1.1  christos 	docbook_xsl_trees="$withval"
   19101  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
   19102  1.1  christos $as_echo "$docbook_xsl_trees" >&6; }
   19103  1.1  christos 	;;
   19104  1.1  christos esac
   19105  1.1  christos 
   19106  1.1  christos #
   19107  1.1  christos # Look for stylesheets we need.
   19108  1.1  christos #
   19109  1.1  christos 
   19110  1.1  christos 
   19111  1.1  christos XSLT_DOCBOOK_STYLE_HTML=""
   19112  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
   19113  1.1  christos $as_echo_n "checking for html/docbook.xsl... " >&6; }
   19114  1.1  christos for d in $docbook_xsl_trees
   19115  1.1  christos do
   19116  1.1  christos 	f=$d/html/docbook.xsl
   19117  1.1  christos 	if test -f $f
   19118  1.1  christos 	then
   19119  1.1  christos 		XSLT_DOCBOOK_STYLE_HTML=$f
   19120  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19121  1.1  christos $as_echo "$f" >&6; }
   19122  1.1  christos 		break
   19123  1.1  christos 	fi
   19124  1.1  christos done
   19125  1.1  christos if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
   19126  1.1  christos then
   19127  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19128  1.1  christos $as_echo "\"not found\"" >&6; };
   19129  1.1  christos 	XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
   19130  1.1  christos fi
   19131  1.1  christos 
   19132  1.1  christos 
   19133  1.1  christos 
   19134  1.1  christos XSLT_DOCBOOK_STYLE_XHTML=""
   19135  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
   19136  1.1  christos $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
   19137  1.1  christos for d in $docbook_xsl_trees
   19138  1.1  christos do
   19139  1.1  christos 	f=$d/xhtml/docbook.xsl
   19140  1.1  christos 	if test -f $f
   19141  1.1  christos 	then
   19142  1.1  christos 		XSLT_DOCBOOK_STYLE_XHTML=$f
   19143  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19144  1.1  christos $as_echo "$f" >&6; }
   19145  1.1  christos 		break
   19146  1.1  christos 	fi
   19147  1.1  christos done
   19148  1.1  christos if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
   19149  1.1  christos then
   19150  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19151  1.1  christos $as_echo "\"not found\"" >&6; };
   19152  1.1  christos 	XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
   19153  1.1  christos fi
   19154  1.1  christos 
   19155  1.1  christos 
   19156  1.1  christos 
   19157  1.1  christos XSLT_DOCBOOK_STYLE_MAN=""
   19158  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
   19159  1.1  christos $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
   19160  1.1  christos for d in $docbook_xsl_trees
   19161  1.1  christos do
   19162  1.1  christos 	f=$d/manpages/docbook.xsl
   19163  1.1  christos 	if test -f $f
   19164  1.1  christos 	then
   19165  1.1  christos 		XSLT_DOCBOOK_STYLE_MAN=$f
   19166  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19167  1.1  christos $as_echo "$f" >&6; }
   19168  1.1  christos 		break
   19169  1.1  christos 	fi
   19170  1.1  christos done
   19171  1.1  christos if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
   19172  1.1  christos then
   19173  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19174  1.1  christos $as_echo "\"not found\"" >&6; };
   19175  1.1  christos 	XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
   19176  1.1  christos fi
   19177  1.1  christos 
   19178  1.1  christos 
   19179  1.1  christos 
   19180  1.1  christos XSLT_DOCBOOK_CHUNK_HTML=""
   19181  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
   19182  1.1  christos $as_echo_n "checking for html/chunk.xsl... " >&6; }
   19183  1.1  christos for d in $docbook_xsl_trees
   19184  1.1  christos do
   19185  1.1  christos 	f=$d/html/chunk.xsl
   19186  1.1  christos 	if test -f $f
   19187  1.1  christos 	then
   19188  1.1  christos 		XSLT_DOCBOOK_CHUNK_HTML=$f
   19189  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19190  1.1  christos $as_echo "$f" >&6; }
   19191  1.1  christos 		break
   19192  1.1  christos 	fi
   19193  1.1  christos done
   19194  1.1  christos if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
   19195  1.1  christos then
   19196  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19197  1.1  christos $as_echo "\"not found\"" >&6; };
   19198  1.1  christos 	XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
   19199  1.1  christos fi
   19200  1.1  christos 
   19201  1.1  christos 
   19202  1.1  christos 
   19203  1.1  christos XSLT_DOCBOOK_CHUNK_XHTML=""
   19204  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
   19205  1.1  christos $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
   19206  1.1  christos for d in $docbook_xsl_trees
   19207  1.1  christos do
   19208  1.1  christos 	f=$d/xhtml/chunk.xsl
   19209  1.1  christos 	if test -f $f
   19210  1.1  christos 	then
   19211  1.1  christos 		XSLT_DOCBOOK_CHUNK_XHTML=$f
   19212  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19213  1.1  christos $as_echo "$f" >&6; }
   19214  1.1  christos 		break
   19215  1.1  christos 	fi
   19216  1.1  christos done
   19217  1.1  christos if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
   19218  1.1  christos then
   19219  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19220  1.1  christos $as_echo "\"not found\"" >&6; };
   19221  1.1  christos 	XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
   19222  1.1  christos fi
   19223  1.1  christos 
   19224  1.1  christos 
   19225  1.1  christos 
   19226  1.1  christos XSLT_DOCBOOK_CHUNKTOC_HTML=""
   19227  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
   19228  1.1  christos $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
   19229  1.1  christos for d in $docbook_xsl_trees
   19230  1.1  christos do
   19231  1.1  christos 	f=$d/html/chunktoc.xsl
   19232  1.1  christos 	if test -f $f
   19233  1.1  christos 	then
   19234  1.1  christos 		XSLT_DOCBOOK_CHUNKTOC_HTML=$f
   19235  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19236  1.1  christos $as_echo "$f" >&6; }
   19237  1.1  christos 		break
   19238  1.1  christos 	fi
   19239  1.1  christos done
   19240  1.1  christos if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
   19241  1.1  christos then
   19242  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19243  1.1  christos $as_echo "\"not found\"" >&6; };
   19244  1.1  christos 	XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
   19245  1.1  christos fi
   19246  1.1  christos 
   19247  1.1  christos 
   19248  1.1  christos 
   19249  1.1  christos XSLT_DOCBOOK_CHUNKTOC_XHTML=""
   19250  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
   19251  1.1  christos $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
   19252  1.1  christos for d in $docbook_xsl_trees
   19253  1.1  christos do
   19254  1.1  christos 	f=$d/xhtml/chunktoc.xsl
   19255  1.1  christos 	if test -f $f
   19256  1.1  christos 	then
   19257  1.1  christos 		XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
   19258  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19259  1.1  christos $as_echo "$f" >&6; }
   19260  1.1  christos 		break
   19261  1.1  christos 	fi
   19262  1.1  christos done
   19263  1.1  christos if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
   19264  1.1  christos then
   19265  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19266  1.1  christos $as_echo "\"not found\"" >&6; };
   19267  1.1  christos 	XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
   19268  1.1  christos fi
   19269  1.1  christos 
   19270  1.1  christos 
   19271  1.1  christos 
   19272  1.1  christos XSLT_DOCBOOK_MAKETOC_HTML=""
   19273  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
   19274  1.1  christos $as_echo_n "checking for html/maketoc.xsl... " >&6; }
   19275  1.1  christos for d in $docbook_xsl_trees
   19276  1.1  christos do
   19277  1.1  christos 	f=$d/html/maketoc.xsl
   19278  1.1  christos 	if test -f $f
   19279  1.1  christos 	then
   19280  1.1  christos 		XSLT_DOCBOOK_MAKETOC_HTML=$f
   19281  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19282  1.1  christos $as_echo "$f" >&6; }
   19283  1.1  christos 		break
   19284  1.1  christos 	fi
   19285  1.1  christos done
   19286  1.1  christos if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
   19287  1.1  christos then
   19288  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19289  1.1  christos $as_echo "\"not found\"" >&6; };
   19290  1.1  christos 	XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
   19291  1.1  christos fi
   19292  1.1  christos 
   19293  1.1  christos 
   19294  1.1  christos 
   19295  1.1  christos XSLT_DOCBOOK_MAKETOC_XHTML=""
   19296  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
   19297  1.1  christos $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
   19298  1.1  christos for d in $docbook_xsl_trees
   19299  1.1  christos do
   19300  1.1  christos 	f=$d/xhtml/maketoc.xsl
   19301  1.1  christos 	if test -f $f
   19302  1.1  christos 	then
   19303  1.1  christos 		XSLT_DOCBOOK_MAKETOC_XHTML=$f
   19304  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19305  1.1  christos $as_echo "$f" >&6; }
   19306  1.1  christos 		break
   19307  1.1  christos 	fi
   19308  1.1  christos done
   19309  1.1  christos if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
   19310  1.1  christos then
   19311  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19312  1.1  christos $as_echo "\"not found\"" >&6; };
   19313  1.1  christos 	XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
   19314  1.1  christos fi
   19315  1.1  christos 
   19316  1.1  christos 
   19317  1.1  christos 
   19318  1.1  christos #
   19319  1.1  christos # Same dance for dblatex
   19320  1.1  christos #
   19321  1.1  christos dblatex_xsl_trees="/usr/local/share/xml/docbook/stylesheet/dblatex /usr/pkg/share/xml/docbook/stylesheet/dblatex /usr/share/xml/docbook/stylesheet/dblatex"
   19322  1.1  christos 
   19323  1.1  christos XSLT_DBLATEX_STYLE=""
   19324  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/docbook.xsl" >&5
   19325  1.1  christos $as_echo_n "checking for xsl/docbook.xsl... " >&6; }
   19326  1.1  christos for d in $dblatex_xsl_trees
   19327  1.1  christos do
   19328  1.1  christos 	f=$d/xsl/docbook.xsl
   19329  1.1  christos 	if test -f $f
   19330  1.1  christos 	then
   19331  1.1  christos 		XSLT_DBLATEX_STYLE=$f
   19332  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19333  1.1  christos $as_echo "$f" >&6; }
   19334  1.1  christos 		break
   19335  1.1  christos 	fi
   19336  1.1  christos done
   19337  1.1  christos if test "X$XSLT_DBLATEX_STYLE" = "X"
   19338  1.1  christos then
   19339  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19340  1.1  christos $as_echo "\"not found\"" >&6; };
   19341  1.1  christos 	XSLT_DBLATEX_STYLE=xsl/docbook.xsl
   19342  1.1  christos fi
   19343  1.1  christos 
   19344  1.1  christos 
   19345  1.1  christos 
   19346  1.1  christos XSLT_DBLATEX_FASTBOOK=""
   19347  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/latex_book_fast.xsl" >&5
   19348  1.1  christos $as_echo_n "checking for xsl/latex_book_fast.xsl... " >&6; }
   19349  1.1  christos for d in $dblatex_xsl_trees
   19350  1.1  christos do
   19351  1.1  christos 	f=$d/xsl/latex_book_fast.xsl
   19352  1.1  christos 	if test -f $f
   19353  1.1  christos 	then
   19354  1.1  christos 		XSLT_DBLATEX_FASTBOOK=$f
   19355  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19356  1.1  christos $as_echo "$f" >&6; }
   19357  1.1  christos 		break
   19358  1.1  christos 	fi
   19359  1.1  christos done
   19360  1.1  christos if test "X$XSLT_DBLATEX_FASTBOOK" = "X"
   19361  1.1  christos then
   19362  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19363  1.1  christos $as_echo "\"not found\"" >&6; };
   19364  1.1  christos 	XSLT_DBLATEX_FASTBOOK=xsl/latex_book_fast.xsl
   19365  1.1  christos fi
   19366  1.1  christos 
   19367  1.1  christos 
   19368  1.1  christos 
   19369  1.1  christos #
   19370  1.3  christos # IDN support using libidn2
   19371  1.1  christos #
   19372  1.1  christos 
   19373  1.3  christos LIBIDN2_CFLAGS=
   19374  1.3  christos LIBIDN2_LDFLAGS=
   19375  1.3  christos LIBIDN2_LIBS=
   19376  1.3  christos 
   19377  1.3  christos # Check whether --with-libidn2 was given.
   19378  1.3  christos if test "${with_libidn2+set}" = set; then :
   19379  1.3  christos   withval=$with_libidn2; with_libidn2="$withval"
   19380  1.3  christos else
   19381  1.3  christos   with_libidn2="no"
   19382  1.3  christos fi
   19383  1.3  christos 
   19384  1.3  christos case $with_libidn2 in #(
   19385  1.3  christos   yes) :
   19386  1.3  christos 
   19387  1.3  christos pkg_failed=no
   19388  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   19389  1.3  christos $as_echo_n "checking for libidn2... " >&6; }
   19390  1.3  christos 
   19391  1.3  christos if test -n "$LIBIDN2_CFLAGS"; then
   19392  1.3  christos     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   19393  1.3  christos  elif test -n "$PKG_CONFIG"; then
   19394  1.3  christos     if test -n "$PKG_CONFIG" && \
   19395  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19396  1.3  christos   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19397  1.3  christos   ac_status=$?
   19398  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19399  1.3  christos   test $ac_status = 0; }; then
   19400  1.3  christos   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   19401  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19402  1.3  christos else
   19403  1.3  christos   pkg_failed=yes
   19404  1.3  christos fi
   19405  1.3  christos  else
   19406  1.3  christos     pkg_failed=untried
   19407  1.3  christos fi
   19408  1.3  christos if test -n "$LIBIDN2_LIBS"; then
   19409  1.3  christos     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   19410  1.3  christos  elif test -n "$PKG_CONFIG"; then
   19411  1.3  christos     if test -n "$PKG_CONFIG" && \
   19412  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19413  1.3  christos   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19414  1.3  christos   ac_status=$?
   19415  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19416  1.3  christos   test $ac_status = 0; }; then
   19417  1.3  christos   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   19418  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19419  1.1  christos else
   19420  1.3  christos   pkg_failed=yes
   19421  1.3  christos fi
   19422  1.3  christos  else
   19423  1.3  christos     pkg_failed=untried
   19424  1.1  christos fi
   19425  1.1  christos 
   19426  1.1  christos 
   19427  1.1  christos 
   19428  1.3  christos if test $pkg_failed = yes; then
   19429  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19430  1.3  christos $as_echo "no" >&6; }
   19431  1.3  christos 
   19432  1.3  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19433  1.3  christos         _pkg_short_errors_supported=yes
   19434  1.1  christos else
   19435  1.3  christos         _pkg_short_errors_supported=no
   19436  1.1  christos fi
   19437  1.3  christos         if test $_pkg_short_errors_supported = yes; then
   19438  1.3  christos 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   19439  1.3  christos         else
   19440  1.3  christos 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   19441  1.3  christos         fi
   19442  1.3  christos 	# Put the nasty error message in config.log where it belongs
   19443  1.3  christos 	echo "$LIBIDN2_PKG_ERRORS" >&5
   19444  1.3  christos 
   19445  1.3  christos 	as_fn_error $? "Package requirements (libidn2) were not met:
   19446  1.3  christos 
   19447  1.3  christos $LIBIDN2_PKG_ERRORS
   19448  1.3  christos 
   19449  1.3  christos Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19450  1.3  christos installed software in a non-standard prefix.
   19451  1.3  christos 
   19452  1.3  christos Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19453  1.3  christos and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19454  1.3  christos See the pkg-config man page for more details." "$LINENO" 5
   19455  1.3  christos elif test $pkg_failed = untried; then
   19456  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19457  1.3  christos $as_echo "no" >&6; }
   19458  1.3  christos 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19459  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19460  1.3  christos as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19461  1.3  christos is in your PATH or set the PKG_CONFIG environment variable to the full
   19462  1.3  christos path to pkg-config.
   19463  1.3  christos 
   19464  1.3  christos Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19465  1.3  christos and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19466  1.3  christos See the pkg-config man page for more details.
   19467  1.1  christos 
   19468  1.3  christos To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19469  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   19470  1.3  christos else
   19471  1.3  christos 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   19472  1.3  christos 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   19473  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19474  1.3  christos $as_echo "yes" >&6; }
   19475  1.3  christos 
   19476  1.3  christos $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19477  1.1  christos 
   19478  1.3  christos fi ;; #(
   19479  1.3  christos   no) :
   19480  1.3  christos      ;; #(
   19481  1.3  christos   *) :
   19482  1.3  christos     save_CFLAGS="$CFLAGS"
   19483  1.3  christos 		 save_CPPFLAGS="$CPPFLAGS"
   19484  1.3  christos 		 save_LDFLAGS="$LDFLAGS"
   19485  1.3  christos 		 save_LIBS="$LIBS"
   19486  1.3  christos 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   19487  1.3  christos 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   19488  1.3  christos 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   19489  1.3  christos 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   19490  1.3  christos 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   19491  1.3  christos 		 for ac_header in idn2.h
   19492  1.3  christos do :
   19493  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   19494  1.3  christos if test "x$ac_cv_header_idn2_h" = xyes; then :
   19495  1.3  christos   cat >>confdefs.h <<_ACEOF
   19496  1.3  christos #define HAVE_IDN2_H 1
   19497  1.3  christos _ACEOF
   19498  1.1  christos 
   19499  1.3  christos else
   19500  1.3  christos   as_fn_error $? "idn2.h not found" "$LINENO" 5
   19501  1.1  christos fi
   19502  1.1  christos 
   19503  1.3  christos done
   19504  1.3  christos 
   19505  1.3  christos 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   19506  1.3  christos $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   19507  1.3  christos if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19508  1.3  christos   $as_echo_n "(cached) " >&6
   19509  1.3  christos else
   19510  1.3  christos   ac_func_search_save_LIBS=$LIBS
   19511  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19512  1.3  christos /* end confdefs.h.  */
   19513  1.1  christos 
   19514  1.3  christos /* Override any GCC internal prototype to avoid an error.
   19515  1.3  christos    Use char because int might match the return type of a GCC
   19516  1.3  christos    builtin and then its argument prototype would still apply.  */
   19517  1.3  christos #ifdef __cplusplus
   19518  1.3  christos extern "C"
   19519  1.3  christos #endif
   19520  1.3  christos char idn2_to_ascii_lz ();
   19521  1.3  christos int
   19522  1.3  christos main ()
   19523  1.3  christos {
   19524  1.3  christos return idn2_to_ascii_lz ();
   19525  1.3  christos   ;
   19526  1.3  christos   return 0;
   19527  1.3  christos }
   19528  1.3  christos _ACEOF
   19529  1.3  christos for ac_lib in '' idn2; do
   19530  1.3  christos   if test -z "$ac_lib"; then
   19531  1.3  christos     ac_res="none required"
   19532  1.3  christos   else
   19533  1.3  christos     ac_res=-l$ac_lib
   19534  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19535  1.3  christos   fi
   19536  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   19537  1.3  christos   ac_cv_search_idn2_to_ascii_lz=$ac_res
   19538  1.3  christos fi
   19539  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   19540  1.3  christos     conftest$ac_exeext
   19541  1.3  christos   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19542  1.3  christos   break
   19543  1.3  christos fi
   19544  1.3  christos done
   19545  1.3  christos if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19546  1.1  christos 
   19547  1.1  christos else
   19548  1.3  christos   ac_cv_search_idn2_to_ascii_lz=no
   19549  1.3  christos fi
   19550  1.3  christos rm conftest.$ac_ext
   19551  1.3  christos LIBS=$ac_func_search_save_LIBS
   19552  1.1  christos fi
   19553  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   19554  1.3  christos $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   19555  1.3  christos ac_res=$ac_cv_search_idn2_to_ascii_lz
   19556  1.3  christos if test "$ac_res" != no; then :
   19557  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19558  1.3  christos   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   19559  1.1  christos 
   19560  1.3  christos $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19561  1.3  christos 
   19562  1.3  christos else
   19563  1.3  christos   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   19564  1.1  christos fi
   19565  1.1  christos 
   19566  1.3  christos 		 CFLAGS="$save_CFLAGS"
   19567  1.3  christos 		 CPPFLAGS="$save_CPPFLAGS"
   19568  1.3  christos 		 LDFLAGS="$save_LDFLAGS"
   19569  1.3  christos 		 LIBS="$save_LIBS" ;; #(
   19570  1.3  christos   *) :
   19571  1.3  christos      ;;
   19572  1.3  christos esac
   19573  1.1  christos 
   19574  1.1  christos 
   19575  1.1  christos 
   19576  1.1  christos 
   19577  1.1  christos #
   19578  1.3  christos # Check whether to build with cmocka unit testing framework
   19579  1.1  christos #
   19580  1.1  christos 
   19581  1.1  christos 
   19582  1.3  christos # Check whether --with-cmocka was given.
   19583  1.3  christos if test "${with_cmocka+set}" = set; then :
   19584  1.3  christos   withval=$with_cmocka; :
   19585  1.1  christos else
   19586  1.3  christos   with_cmocka=no
   19587  1.1  christos fi
   19588  1.1  christos 
   19589  1.3  christos 
   19590  1.3  christos case $with_cmocka in #(
   19591  1.1  christos   no) :
   19592  1.1  christos     : ;; #(
   19593  1.1  christos   yes) :
   19594  1.3  christos 
   19595  1.3  christos 
   19596  1.3  christos pkg_failed=no
   19597  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   19598  1.3  christos $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   19599  1.3  christos 
   19600  1.3  christos if test -n "$CMOCKA_CFLAGS"; then
   19601  1.3  christos     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   19602  1.3  christos  elif test -n "$PKG_CONFIG"; then
   19603  1.3  christos     if test -n "$PKG_CONFIG" && \
   19604  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19605  1.3  christos   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19606  1.3  christos   ac_status=$?
   19607  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19608  1.3  christos   test $ac_status = 0; }; then
   19609  1.3  christos   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   19610  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19611  1.3  christos else
   19612  1.3  christos   pkg_failed=yes
   19613  1.3  christos fi
   19614  1.3  christos  else
   19615  1.3  christos     pkg_failed=untried
   19616  1.3  christos fi
   19617  1.3  christos if test -n "$CMOCKA_LIBS"; then
   19618  1.3  christos     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   19619  1.3  christos  elif test -n "$PKG_CONFIG"; then
   19620  1.3  christos     if test -n "$PKG_CONFIG" && \
   19621  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19622  1.3  christos   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19623  1.3  christos   ac_status=$?
   19624  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19625  1.3  christos   test $ac_status = 0; }; then
   19626  1.3  christos   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   19627  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19628  1.3  christos else
   19629  1.3  christos   pkg_failed=yes
   19630  1.3  christos fi
   19631  1.3  christos  else
   19632  1.3  christos     pkg_failed=untried
   19633  1.3  christos fi
   19634  1.3  christos 
   19635  1.3  christos 
   19636  1.3  christos 
   19637  1.3  christos if test $pkg_failed = yes; then
   19638  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19639  1.3  christos $as_echo "no" >&6; }
   19640  1.3  christos 
   19641  1.3  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19642  1.3  christos         _pkg_short_errors_supported=yes
   19643  1.3  christos else
   19644  1.3  christos         _pkg_short_errors_supported=no
   19645  1.3  christos fi
   19646  1.3  christos         if test $_pkg_short_errors_supported = yes; then
   19647  1.3  christos 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19648  1.3  christos         else
   19649  1.3  christos 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19650  1.3  christos         fi
   19651  1.3  christos 	# Put the nasty error message in config.log where it belongs
   19652  1.3  christos 	echo "$CMOCKA_PKG_ERRORS" >&5
   19653  1.3  christos 
   19654  1.3  christos 	as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
   19655  1.3  christos 
   19656  1.3  christos $CMOCKA_PKG_ERRORS
   19657  1.3  christos 
   19658  1.3  christos Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19659  1.3  christos installed software in a non-standard prefix.
   19660  1.3  christos 
   19661  1.3  christos Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19662  1.3  christos and CMOCKA_LIBS to avoid the need to call pkg-config.
   19663  1.3  christos See the pkg-config man page for more details." "$LINENO" 5
   19664  1.3  christos elif test $pkg_failed = untried; then
   19665  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19666  1.3  christos $as_echo "no" >&6; }
   19667  1.3  christos 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19668  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19669  1.3  christos as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19670  1.3  christos is in your PATH or set the PKG_CONFIG environment variable to the full
   19671  1.3  christos path to pkg-config.
   19672  1.3  christos 
   19673  1.3  christos Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19674  1.3  christos and CMOCKA_LIBS to avoid the need to call pkg-config.
   19675  1.3  christos See the pkg-config man page for more details.
   19676  1.3  christos 
   19677  1.3  christos To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19678  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   19679  1.3  christos else
   19680  1.3  christos 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   19681  1.3  christos 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   19682  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19683  1.3  christos $as_echo "yes" >&6; }
   19684  1.3  christos 
   19685  1.3  christos $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19686  1.3  christos 
   19687  1.3  christos fi
   19688  1.3  christos             UNITTESTS=tests
   19689  1.3  christos              ;; #(
   19690  1.1  christos   *) :
   19691  1.1  christos 
   19692  1.3  christos 	    save_CFLAGS="$CFLAGS"
   19693  1.3  christos 	    save_LIBS="$LIBS"
   19694  1.3  christos 	    CFLAGS="$CFLAGS -I$with_cmocka/include"
   19695  1.3  christos 	    LIBS="$LIBS -L$with_cmocka/lib"
   19696  1.3  christos 	    for ac_header in cmocka.h
   19697  1.3  christos do :
   19698  1.3  christos   ac_fn_c_check_header_compile "$LINENO" "cmocka.h" "ac_cv_header_cmocka_h" "#include <stdarg.h>
   19699  1.3  christos 			      #include <stddef.h>
   19700  1.3  christos 			      #include <setjmp.h>
   19701  1.3  christos 
   19702  1.3  christos "
   19703  1.3  christos if test "x$ac_cv_header_cmocka_h" = xyes; then :
   19704  1.3  christos   cat >>confdefs.h <<_ACEOF
   19705  1.3  christos #define HAVE_CMOCKA_H 1
   19706  1.3  christos _ACEOF
   19707  1.3  christos  :
   19708  1.3  christos else
   19709  1.3  christos   as_fn_error $? "cmocka.h not found" "$LINENO" 5
   19710  1.3  christos fi
   19711  1.3  christos 
   19712  1.3  christos done
   19713  1.1  christos 
   19714  1.3  christos 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmocka_set_message_output" >&5
   19715  1.3  christos $as_echo_n "checking for library containing cmocka_set_message_output... " >&6; }
   19716  1.3  christos if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   19717  1.1  christos   $as_echo_n "(cached) " >&6
   19718  1.1  christos else
   19719  1.1  christos   ac_func_search_save_LIBS=$LIBS
   19720  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19721  1.1  christos /* end confdefs.h.  */
   19722  1.1  christos 
   19723  1.1  christos /* Override any GCC internal prototype to avoid an error.
   19724  1.1  christos    Use char because int might match the return type of a GCC
   19725  1.1  christos    builtin and then its argument prototype would still apply.  */
   19726  1.1  christos #ifdef __cplusplus
   19727  1.1  christos extern "C"
   19728  1.1  christos #endif
   19729  1.3  christos char cmocka_set_message_output ();
   19730  1.1  christos int
   19731  1.1  christos main ()
   19732  1.1  christos {
   19733  1.3  christos return cmocka_set_message_output ();
   19734  1.1  christos   ;
   19735  1.1  christos   return 0;
   19736  1.1  christos }
   19737  1.1  christos _ACEOF
   19738  1.3  christos for ac_lib in '' cmocka; do
   19739  1.1  christos   if test -z "$ac_lib"; then
   19740  1.1  christos     ac_res="none required"
   19741  1.1  christos   else
   19742  1.1  christos     ac_res=-l$ac_lib
   19743  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19744  1.1  christos   fi
   19745  1.1  christos   if ac_fn_c_try_link "$LINENO"; then :
   19746  1.3  christos   ac_cv_search_cmocka_set_message_output=$ac_res
   19747  1.1  christos fi
   19748  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   19749  1.1  christos     conftest$ac_exeext
   19750  1.3  christos   if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   19751  1.1  christos   break
   19752  1.1  christos fi
   19753  1.1  christos done
   19754  1.3  christos if ${ac_cv_search_cmocka_set_message_output+:} false; then :
   19755  1.1  christos 
   19756  1.1  christos else
   19757  1.3  christos   ac_cv_search_cmocka_set_message_output=no
   19758  1.1  christos fi
   19759  1.1  christos rm conftest.$ac_ext
   19760  1.1  christos LIBS=$ac_func_search_save_LIBS
   19761  1.1  christos fi
   19762  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmocka_set_message_output" >&5
   19763  1.3  christos $as_echo "$ac_cv_search_cmocka_set_message_output" >&6; }
   19764  1.3  christos ac_res=$ac_cv_search_cmocka_set_message_output
   19765  1.1  christos if test "$ac_res" != no; then :
   19766  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19767  1.1  christos 
   19768  1.3  christos 			       CMOCKA_CFLAGS="-I$with_cmocka/include"
   19769  1.3  christos 			       CMOCKA_LIBS="-L$with_cmocka/lib -lcmocka"
   19770  1.3  christos                                UNITTESTS=tests
   19771  1.1  christos 
   19772  1.3  christos $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19773  1.1  christos 
   19774  1.1  christos 
   19775  1.1  christos else
   19776  1.3  christos   as_fn_error $? "cmocka unit testing framework not found in $with_cmocka path" "$LINENO" 5
   19777  1.1  christos fi
   19778  1.1  christos 
   19779  1.3  christos 	     ;; #(
   19780  1.3  christos   *) :
   19781  1.3  christos      ;;
   19782  1.3  christos esac
   19783  1.3  christos 
   19784  1.3  christos 
   19785  1.3  christos 
   19786  1.3  christos 
   19787  1.3  christos #
   19788  1.3  christos # Check for kyua execution engine if CMocka was requested
   19789  1.3  christos # and bail out if execution engine was not found
   19790  1.3  christos #
   19791  1.1  christos 
   19792  1.3  christos if test "$with_cmocka" != "no"; then :
   19793  1.3  christos   for ac_prog in kyua
   19794  1.3  christos do
   19795  1.3  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19796  1.3  christos set dummy $ac_prog; ac_word=$2
   19797  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19798  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   19799  1.3  christos if ${ac_cv_path_KYUA+:} false; then :
   19800  1.3  christos   $as_echo_n "(cached) " >&6
   19801  1.3  christos else
   19802  1.3  christos   case $KYUA in
   19803  1.3  christos   [\\/]* | ?:[\\/]*)
   19804  1.3  christos   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   19805  1.3  christos   ;;
   19806  1.3  christos   *)
   19807  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19808  1.3  christos for as_dir in $PATH
   19809  1.3  christos do
   19810  1.3  christos   IFS=$as_save_IFS
   19811  1.3  christos   test -z "$as_dir" && as_dir=.
   19812  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   19813  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19814  1.3  christos     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   19815  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19816  1.3  christos     break 2
   19817  1.3  christos   fi
   19818  1.3  christos done
   19819  1.3  christos   done
   19820  1.3  christos IFS=$as_save_IFS
   19821  1.1  christos 
   19822  1.3  christos   ;;
   19823  1.3  christos esac
   19824  1.3  christos fi
   19825  1.3  christos KYUA=$ac_cv_path_KYUA
   19826  1.3  christos if test -n "$KYUA"; then
   19827  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   19828  1.3  christos $as_echo "$KYUA" >&6; }
   19829  1.1  christos else
   19830  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19831  1.1  christos $as_echo "no" >&6; }
   19832  1.1  christos fi
   19833  1.1  christos 
   19834  1.1  christos 
   19835  1.3  christos   test -n "$KYUA" && break
   19836  1.3  christos done
   19837  1.1  christos 
   19838  1.3  christos        if test -z "$KYUA"; then :
   19839  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   19840  1.3  christos $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   19841  1.3  christos fi
   19842  1.1  christos fi
   19843  1.1  christos 
   19844  1.1  christos 
   19845  1.1  christos 
   19846  1.1  christos #
   19847  1.3  christos # Check for -Wl,--wrap= support
   19848  1.1  christos #
   19849  1.1  christos 
   19850  1.3  christos save_LDFLAGS=$LDFLAGS
   19851  1.3  christos LDFLAGS="--wrap=printf"
   19852  1.1  christos 
   19853  1.3  christos LD_WRAP_TESTS=false
   19854  1.3  christos enable_ld_wrap=no
   19855  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   19856  1.3  christos $as_echo_n "checking for linker support for --wrap option... " >&6; }
   19857  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19858  1.1  christos /* end confdefs.h.  */
   19859  1.3  christos #include <stdio.h>
   19860  1.1  christos int
   19861  1.1  christos main ()
   19862  1.1  christos {
   19863  1.3  christos __wrap_printf("success"); return (0);
   19864  1.1  christos   ;
   19865  1.1  christos   return 0;
   19866  1.1  christos }
   19867  1.1  christos _ACEOF
   19868  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   19869  1.3  christos   enable_ld_wrap=yes
   19870  1.3  christos      LD_WRAP_TESTS=true
   19871  1.3  christos 
   19872  1.3  christos $as_echo "#define LD_WRAP 1" >>confdefs.h
   19873  1.3  christos 
   19874  1.3  christos      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19875  1.3  christos $as_echo "yes" >&6; }
   19876  1.1  christos else
   19877  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19878  1.3  christos $as_echo "no" >&6; }
   19879  1.1  christos fi
   19880  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   19881  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   19882  1.3  christos # AM_CONDITIONAL([LD_WRAP], [test $enable_ld_wrap = yes])
   19883  1.1  christos 
   19884  1.1  christos 
   19885  1.3  christos LDFLAGS=$save_LDFLAGS
   19886  1.1  christos 
   19887  1.3  christos #
   19888  1.3  christos # Check for i18n
   19889  1.3  christos #
   19890  1.1  christos for ac_header in locale.h
   19891  1.1  christos do :
   19892  1.1  christos   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   19893  1.1  christos if test "x$ac_cv_header_locale_h" = xyes; then :
   19894  1.1  christos   cat >>confdefs.h <<_ACEOF
   19895  1.1  christos #define HAVE_LOCALE_H 1
   19896  1.1  christos _ACEOF
   19897  1.1  christos 
   19898  1.1  christos fi
   19899  1.1  christos 
   19900  1.1  christos done
   19901  1.1  christos 
   19902  1.1  christos for ac_func in setlocale
   19903  1.1  christos do :
   19904  1.1  christos   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   19905  1.1  christos if test "x$ac_cv_func_setlocale" = xyes; then :
   19906  1.1  christos   cat >>confdefs.h <<_ACEOF
   19907  1.1  christos #define HAVE_SETLOCALE 1
   19908  1.1  christos _ACEOF
   19909  1.1  christos 
   19910  1.1  christos fi
   19911  1.1  christos done
   19912  1.1  christos 
   19913  1.1  christos 
   19914  1.1  christos #
   19915  1.1  christos # was --with-tuning specified?
   19916  1.1  christos #
   19917  1.1  christos 
   19918  1.1  christos # Check whether --with-tuning was given.
   19919  1.1  christos if test "${with_tuning+set}" = set; then :
   19920  1.1  christos   withval=$with_tuning; use_tuning="$withval"
   19921  1.1  christos else
   19922  1.1  christos   use_tuning="no"
   19923  1.1  christos fi
   19924  1.1  christos 
   19925  1.1  christos 
   19926  1.1  christos case "$use_tuning" in
   19927  1.1  christos 	large)
   19928  1.1  christos 
   19929  1.1  christos $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   19930  1.1  christos 
   19931  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
   19932  1.1  christos $as_echo "using large-system tuning" >&6; }
   19933  1.1  christos 		;;
   19934  1.1  christos 	no|default)
   19935  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
   19936  1.1  christos $as_echo "using default tuning" >&6; }
   19937  1.1  christos 		;;
   19938  1.1  christos 	yes|*)
   19939  1.1  christos 		as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
   19940  1.1  christos 		;;
   19941  1.1  christos esac
   19942  1.1  christos 
   19943  1.1  christos #
   19944  1.1  christos # was --enable-querytrace specified?
   19945  1.1  christos #
   19946  1.1  christos # Check whether --enable-querytrace was given.
   19947  1.1  christos if test "${enable_querytrace+set}" = set; then :
   19948  1.1  christos   enableval=$enable_querytrace; want_querytrace="$enableval"
   19949  1.1  christos else
   19950  1.1  christos   want_querytrace="no"
   19951  1.1  christos fi
   19952  1.1  christos 
   19953  1.1  christos 
   19954  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   19955  1.1  christos $as_echo_n "checking whether to enable query trace logging... " >&6; }
   19956  1.1  christos case "$want_querytrace" in
   19957  1.1  christos yes)
   19958  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19959  1.1  christos $as_echo "yes" >&6; }
   19960  1.1  christos 
   19961  1.1  christos $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   19962  1.1  christos 
   19963  1.1  christos 	;;
   19964  1.1  christos no)
   19965  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19966  1.1  christos $as_echo "no" >&6; }
   19967  1.1  christos 	;;
   19968  1.1  christos *)
   19969  1.1  christos 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   19970  1.1  christos 	;;
   19971  1.1  christos esac
   19972  1.1  christos 
   19973  1.1  christos #
   19974  1.3  christos # Was --disable-auto-validation specified?
   19975  1.3  christos #
   19976  1.3  christos validation_default=auto
   19977  1.3  christos # Check whether --enable-auto-validation was given.
   19978  1.3  christos if test "${enable_auto_validation+set}" = set; then :
   19979  1.3  christos   enableval=$enable_auto_validation; :
   19980  1.3  christos else
   19981  1.3  christos   enable_auto_validation=yes
   19982  1.3  christos fi
   19983  1.3  christos 
   19984  1.3  christos if test "$enable_auto_validation" = "no"; then :
   19985  1.3  christos   validation_default=yes
   19986  1.3  christos fi
   19987  1.3  christos 
   19988  1.3  christos cat >>confdefs.h <<_ACEOF
   19989  1.3  christos #define VALIDATION_DEFAULT "$validation_default"
   19990  1.3  christos _ACEOF
   19991  1.3  christos 
   19992  1.3  christos 
   19993  1.3  christos #
   19994  1.1  christos # Substitutions
   19995  1.1  christos #
   19996  1.1  christos 
   19997  1.1  christos BIND9_TOP_BUILDDIR=`pwd`
   19998  1.1  christos 
   19999  1.1  christos 
   20000  1.1  christos 
   20001  1.1  christos 
   20002  1.1  christos 
   20003  1.1  christos 
   20004  1.1  christos 
   20005  1.1  christos 
   20006  1.1  christos if test "X$srcdir" != "X"; then
   20007  1.1  christos 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   20008  1.1  christos 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   20009  1.1  christos 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   20010  1.1  christos 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   20011  1.1  christos 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   20012  1.1  christos 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   20013  1.1  christos 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   20014  1.1  christos else
   20015  1.1  christos 	BIND9_ISC_BUILDINCLUDE=""
   20016  1.1  christos 	BIND9_ISCCC_BUILDINCLUDE=""
   20017  1.1  christos 	BIND9_ISCCFG_BUILDINCLUDE=""
   20018  1.1  christos 	BIND9_DNS_BUILDINCLUDE=""
   20019  1.1  christos 	BIND9_NS_BUILDINCLUDE=""
   20020  1.3  christos 	BIND9_BIND9_BUILDINCLUDE=""
   20021  1.3  christos 	BIND9_IRS_BUILDINCLUDE=""
   20022  1.3  christos fi
   20023  1.3  christos 
   20024  1.3  christos 
   20025  1.3  christos BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   20026  1.3  christos 
   20027  1.3  christos 
   20028  1.3  christos BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   20029  1.3  christos 
   20030  1.3  christos . "$srcdir/version"
   20031  1.3  christos BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   20032  1.3  christos 
   20033  1.3  christos BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   20034  1.3  christos 
   20035  1.3  christos BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   20036  1.3  christos 
   20037  1.3  christos BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   20038  1.3  christos 
   20039  1.3  christos BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   20040  1.3  christos 
   20041  1.3  christos BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   20042  1.3  christos 
   20043  1.3  christos 
   20044  1.3  christos BIND9_SRCID="SRCID=unset_id"
   20045  1.3  christos if test -f "${srcdir}/srcid"; then
   20046  1.3  christos 	. "${srcdir}/srcid"
   20047  1.3  christos 	BIND9_SRCID="SRCID=$SRCID"
   20048  1.3  christos elif test -d "${srcdir}/.git"; then
   20049  1.3  christos 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   20050  1.3  christos fi
   20051  1.3  christos 
   20052  1.3  christos 
   20053  1.3  christos 
   20054  1.3  christos if test -z "$ac_configure_args"; then
   20055  1.3  christos 	BIND9_CONFIGARGS="defaults"
   20056  1.3  christos else
   20057  1.3  christos 	for a in $ac_configure_args
   20058  1.3  christos 	do
   20059  1.3  christos 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   20060  1.3  christos 	done
   20061  1.3  christos fi
   20062  1.3  christos BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   20063  1.3  christos BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   20064  1.3  christos 
   20065  1.3  christos 
   20066  1.3  christos 
   20067  1.3  christos LIBISC_API="$srcdir/lib/isc/api"
   20068  1.3  christos 
   20069  1.3  christos 
   20070  1.3  christos LIBISCCC_API="$srcdir/lib/isccc/api"
   20071  1.3  christos 
   20072  1.3  christos 
   20073  1.3  christos LIBISCCFG_API="$srcdir/lib/isccfg/api"
   20074  1.3  christos 
   20075  1.3  christos 
   20076  1.3  christos LIBDNS_API="$srcdir/lib/dns/api"
   20077  1.3  christos 
   20078  1.3  christos 
   20079  1.3  christos LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   20080  1.3  christos 
   20081  1.3  christos 
   20082  1.3  christos LIBBIND9_API="$srcdir/lib/bind9/api"
   20083  1.3  christos 
   20084  1.3  christos 
   20085  1.3  christos LIBIRS_API="$srcdir/lib/irs/api"
   20086  1.3  christos 
   20087  1.3  christos 
   20088  1.3  christos LIBNS_API="$srcdir/lib/ns/api"
   20089  1.3  christos 
   20090  1.3  christos #
   20091  1.3  christos # Configure any DLZ drivers.
   20092  1.3  christos #
   20093  1.3  christos # If config.dlz.in selects one or more DLZ drivers, it will set
   20094  1.3  christos # CONTRIB_DLZ to a non-empty value, which will be our clue to
   20095  1.3  christos # build DLZ drivers in contrib.
   20096  1.3  christos #
   20097  1.3  christos # This section has to come after the libtool stuff because it needs to
   20098  1.3  christos # know how to name the driver object files.
   20099  1.3  christos #
   20100  1.3  christos 
   20101  1.3  christos CONTRIB_DLZ=""
   20102  1.3  christos DLZ_DRIVER_INCLUDES=""
   20103  1.3  christos DLZ_DRIVER_LIBS=""
   20104  1.3  christos DLZ_DRIVER_SRCS=""
   20105  1.3  christos DLZ_DRIVER_OBJS=""
   20106  1.3  christos DLZ_SYSTEM_TEST=""
   20107  1.3  christos DLZ_DRIVER_MYSQL_INCLUDES=""
   20108  1.3  christos DLZ_DRIVER_MYSQL_LIBS=""
   20109  1.3  christos 
   20110  1.3  christos #
   20111  1.3  christos # Configure support for building a shared library object
   20112  1.3  christos #
   20113  1.3  christos # Even when libtool is available it can't always be relied upon
   20114  1.3  christos # to build an object that can be dlopen()'ed, but this is necessary
   20115  1.3  christos # for building the dlzexternal system test, so we'll try it the
   20116  1.3  christos # old-fashioned way.
   20117  1.3  christos #
   20118  1.3  christos SO="so"
   20119  1.3  christos SO_CFLAGS=""
   20120  1.3  christos SO_LDFLAGS=""
   20121  1.3  christos SO_LD=""
   20122  1.3  christos SO_TARGETS=""
   20123  1.3  christos SO_STRIP="cat"
   20124  1.3  christos 
   20125  1.3  christos 
   20126  1.3  christos # Check whether --with-dlopen was given.
   20127  1.3  christos if test "${with_dlopen+set}" = set; then :
   20128  1.3  christos   withval=$with_dlopen;
   20129  1.3  christos else
   20130  1.3  christos   with_dlopen="auto"
   20131  1.3  christos fi
   20132  1.3  christos 
   20133  1.3  christos 
   20134  1.3  christos 
   20135  1.3  christos #
   20136  1.3  christos # If PIC is disabled, dlopen must also be
   20137  1.3  christos #
   20138  1.3  christos if test "$pic_mode" = "no"; then :
   20139  1.3  christos   case $with_dlopen in #(
   20140  1.3  christos   auto) :
   20141  1.3  christos     with_dlopen="no" ;; #(
   20142  1.3  christos   yes) :
   20143  1.3  christos     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   20144  1.3  christos   *) :
   20145  1.3  christos      ;;
   20146  1.3  christos esac
   20147  1.3  christos fi
   20148  1.3  christos 
   20149  1.3  christos case $with_dlopen in #(
   20150  1.3  christos   auto|yes) :
   20151  1.3  christos 
   20152  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   20153  1.3  christos $as_echo_n "checking for library containing dlopen... " >&6; }
   20154  1.3  christos if ${ac_cv_search_dlopen+:} false; then :
   20155  1.3  christos   $as_echo_n "(cached) " >&6
   20156  1.3  christos else
   20157  1.3  christos   ac_func_search_save_LIBS=$LIBS
   20158  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20159  1.3  christos /* end confdefs.h.  */
   20160  1.3  christos 
   20161  1.3  christos /* Override any GCC internal prototype to avoid an error.
   20162  1.3  christos    Use char because int might match the return type of a GCC
   20163  1.3  christos    builtin and then its argument prototype would still apply.  */
   20164  1.3  christos #ifdef __cplusplus
   20165  1.3  christos extern "C"
   20166  1.3  christos #endif
   20167  1.3  christos char dlopen ();
   20168  1.3  christos int
   20169  1.3  christos main ()
   20170  1.3  christos {
   20171  1.3  christos return dlopen ();
   20172  1.3  christos   ;
   20173  1.3  christos   return 0;
   20174  1.3  christos }
   20175  1.3  christos _ACEOF
   20176  1.3  christos for ac_lib in '' dl; do
   20177  1.3  christos   if test -z "$ac_lib"; then
   20178  1.3  christos     ac_res="none required"
   20179  1.3  christos   else
   20180  1.3  christos     ac_res=-l$ac_lib
   20181  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20182  1.3  christos   fi
   20183  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   20184  1.3  christos   ac_cv_search_dlopen=$ac_res
   20185  1.3  christos fi
   20186  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   20187  1.3  christos     conftest$ac_exeext
   20188  1.3  christos   if ${ac_cv_search_dlopen+:} false; then :
   20189  1.3  christos   break
   20190  1.3  christos fi
   20191  1.3  christos done
   20192  1.3  christos if ${ac_cv_search_dlopen+:} false; then :
   20193  1.3  christos 
   20194  1.3  christos else
   20195  1.3  christos   ac_cv_search_dlopen=no
   20196  1.3  christos fi
   20197  1.3  christos rm conftest.$ac_ext
   20198  1.3  christos LIBS=$ac_func_search_save_LIBS
   20199  1.3  christos fi
   20200  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   20201  1.3  christos $as_echo "$ac_cv_search_dlopen" >&6; }
   20202  1.3  christos ac_res=$ac_cv_search_dlopen
   20203  1.3  christos if test "$ac_res" != no; then :
   20204  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20205  1.3  christos 
   20206  1.3  christos fi
   20207  1.3  christos 
   20208  1.3  christos 	  for ac_func in dlopen dlclose dlsym
   20209  1.3  christos do :
   20210  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20211  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   20212  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   20213  1.3  christos   cat >>confdefs.h <<_ACEOF
   20214  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20215  1.3  christos _ACEOF
   20216  1.3  christos  with_dlopen="yes"
   20217  1.3  christos else
   20218  1.3  christos   with_dlopen="no"
   20219  1.3  christos fi
   20220  1.3  christos done
   20221  1.3  christos 
   20222  1.3  christos 	 ;; #(
   20223  1.3  christos   *) :
   20224  1.3  christos      ;;
   20225  1.3  christos esac
   20226  1.3  christos 
   20227  1.3  christos if test "$with_dlopen" = "yes"; then :
   20228  1.3  christos   case $host in #(
   20229  1.3  christos   *-linux*|*-gnu*) :
   20230  1.3  christos 
   20231  1.3  christos 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   20232  1.3  christos 		 SO_CFLAGS="-fPIC"
   20233  1.3  christos 		 SO_LDFLAGS=""
   20234  1.3  christos 		 if test "$use_libtool" = "yes"; then :
   20235  1.3  christos 
   20236  1.3  christos 			 SO_LDFLAGS="-Xcompiler -shared"
   20237  1.3  christos 			 SO_LD="${CC}"
   20238  1.3  christos 
   20239  1.3  christos else
   20240  1.3  christos 
   20241  1.3  christos 			 SO_LDFLAGS="-shared"
   20242  1.3  christos 			 SO_LD="${CC}"
   20243  1.3  christos 
   20244  1.1  christos fi
   20245  1.3  christos 	        ;; #(
   20246  1.3  christos   *-freebsd*|*-openbsd*|*-netbsd*) :
   20247  1.1  christos 
   20248  1.3  christos 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   20249  1.3  christos 		 SO_CFLAGS="-fpic"
   20250  1.3  christos 		 if test "$use_libtool" = "yes"; then :
   20251  1.1  christos 
   20252  1.3  christos 			 SO_LDFLAGS="-Xcompiler -shared"
   20253  1.3  christos 			 SO_LD="${CC}"
   20254  1.1  christos 
   20255  1.3  christos else
   20256  1.1  christos 
   20257  1.3  christos 			 SO_LDFLAGS="-shared"
   20258  1.3  christos 			 SO_LD="${CC}"
   20259  1.1  christos 
   20260  1.3  christos fi
   20261  1.3  christos 	        ;; #(
   20262  1.3  christos   *-darwin*) :
   20263  1.1  christos 
   20264  1.3  christos 		 SO_CFLAGS="-fPIC"
   20265  1.3  christos                  SO_LD="${CC}"
   20266  1.3  christos 		 if test "$use_libtool" = "yes"; then :
   20267  1.1  christos 
   20268  1.3  christos 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   20269  1.1  christos 
   20270  1.3  christos else
   20271  1.1  christos 
   20272  1.3  christos 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   20273  1.1  christos 
   20274  1.3  christos fi
   20275  1.3  christos 	        ;; #(
   20276  1.3  christos   *-solaris*) :
   20277  1.1  christos 
   20278  1.3  christos 		 SO_CFLAGS="-KPIC"
   20279  1.3  christos 		 SO_LDFLAGS="-G -z text"
   20280  1.3  christos 		 SO_LD="ld"
   20281  1.3  christos 	        ;; #(
   20282  1.3  christos   *) :
   20283  1.1  christos 
   20284  1.3  christos 		 SO_CFLAGS="-fPIC"
   20285  1.3  christos 	        ;;
   20286  1.3  christos esac
   20287  1.3  christos        if test "$GCC" = "yes"; then :
   20288  1.1  christos 
   20289  1.3  christos 	       SO_CFLAGS="-fPIC"
   20290  1.3  christos 	       if test -z "$SO_LD"; then :
   20291  1.3  christos   if test "$use_libtool" = "yes"; then :
   20292  1.1  christos 
   20293  1.3  christos 			      SO_LDFLAGS="-Xcompiler -shared"
   20294  1.3  christos 			      SO_LD="${CC}"
   20295  1.1  christos 
   20296  1.1  christos else
   20297  1.1  christos 
   20298  1.3  christos 			      SO_LDFLAGS="-shared"
   20299  1.3  christos 			      SO_LD="${CC}"
   20300  1.1  christos 
   20301  1.3  christos fi
   20302  1.1  christos 
   20303  1.3  christos fi
   20304  1.1  christos 
   20305  1.3  christos fi
   20306  1.3  christos        # If we still don't know how to make shared objects, don't make any.
   20307  1.3  christos        if test -n "$SO_LD"; then :
   20308  1.3  christos   SO_TARGETS="\${SO_TARGETS}"
   20309  1.1  christos 
   20310  1.3  christos $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   20311  1.1  christos 
   20312  1.1  christos 
   20313  1.3  christos fi
   20314  1.1  christos 
   20315  1.3  christos fi
   20316  1.1  christos 
   20317  1.3  christos CFLAGS="$CFLAGS $SO_CFLAGS"
   20318  1.1  christos 
   20319  1.1  christos 
   20320  1.1  christos 
   20321  1.1  christos 
   20322  1.1  christos 
   20323  1.1  christos 
   20324  1.1  christos 
   20325  1.1  christos 
   20326  1.1  christos #
   20327  1.3  christos # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   20328  1.3  christos # interface.
   20329  1.1  christos #
   20330  1.3  christos # DNSRPS can be compiled into BIND everywhere with a reasonably
   20331  1.3  christos # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   20332  1.1  christos #
   20333  1.3  christos dnsrps_avail=yes
   20334  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   20335  1.3  christos $as_echo_n "checking for librpz __attribute__s... " >&6; }
   20336  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20337  1.3  christos /* end confdefs.h.  */
   20338  1.3  christos 
   20339  1.3  christos int
   20340  1.3  christos main ()
   20341  1.3  christos {
   20342  1.3  christos 
   20343  1.3  christos        extern void f(char *p __attribute__((unused)), ...)
   20344  1.3  christos        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   20345  1.3  christos 
   20346  1.3  christos   ;
   20347  1.3  christos   return 0;
   20348  1.3  christos }
   20349  1.3  christos _ACEOF
   20350  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   20351  1.3  christos 
   20352  1.3  christos     librpz_have_attr=yes
   20353  1.3  christos 
   20354  1.3  christos $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   20355  1.3  christos 
   20356  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20357  1.3  christos $as_echo "yes" >&6; }
   20358  1.3  christos 
   20359  1.3  christos else
   20360  1.3  christos 
   20361  1.3  christos     librpz_have_attr=no
   20362  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20363  1.3  christos $as_echo "no" >&6; }
   20364  1.3  christos 
   20365  1.3  christos fi
   20366  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20367  1.3  christos 
   20368  1.3  christos # Check whether --enable-dnsrps-dl was given.
   20369  1.3  christos if test "${enable_dnsrps_dl+set}" = set; then :
   20370  1.3  christos   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   20371  1.3  christos else
   20372  1.3  christos   enable_librpz_dl="$with_dlopen"
   20373  1.3  christos fi
   20374  1.3  christos 
   20375  1.3  christos 
   20376  1.3  christos if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   20377  1.3  christos   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   20378  1.3  christos fi
   20379  1.1  christos 
   20380  1.1  christos 
   20381  1.3  christos # Check whether --with-dnsrps-libname was given.
   20382  1.3  christos if test "${with_dnsrps_libname+set}" = set; then :
   20383  1.3  christos   withval=$with_dnsrps_libname; librpz_name="$withval"
   20384  1.3  christos else
   20385  1.3  christos   librpz_name="librpz.so"
   20386  1.3  christos fi
   20387  1.1  christos 
   20388  1.1  christos 
   20389  1.3  christos # Check whether --with-dnsrps-dir was given.
   20390  1.3  christos if test "${with_dnsrps_dir+set}" = set; then :
   20391  1.3  christos   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   20392  1.1  christos else
   20393  1.3  christos   librpz_path="$librpz_name"
   20394  1.1  christos fi
   20395  1.1  christos 
   20396  1.1  christos 
   20397  1.3  christos cat >>confdefs.h <<_ACEOF
   20398  1.3  christos #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   20399  1.3  christos _ACEOF
   20400  1.3  christos 
   20401  1.3  christos if test "$enable_librpz_dl" = "yes"; then :
   20402  1.3  christos 
   20403  1.3  christos 	dnsrps_lib_open=2
   20404  1.3  christos 
   20405  1.3  christos else
   20406  1.1  christos 
   20407  1.3  christos 	dnsrps_lib_open=1
   20408  1.3  christos 	# Add librpz.so to linked libraries if we are not using dlopen()
   20409  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   20410  1.3  christos $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   20411  1.3  christos if ${ac_cv_search_librpz_client_create+:} false; then :
   20412  1.1  christos   $as_echo_n "(cached) " >&6
   20413  1.1  christos else
   20414  1.3  christos   ac_func_search_save_LIBS=$LIBS
   20415  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20416  1.1  christos /* end confdefs.h.  */
   20417  1.1  christos 
   20418  1.1  christos /* Override any GCC internal prototype to avoid an error.
   20419  1.1  christos    Use char because int might match the return type of a GCC
   20420  1.1  christos    builtin and then its argument prototype would still apply.  */
   20421  1.1  christos #ifdef __cplusplus
   20422  1.1  christos extern "C"
   20423  1.1  christos #endif
   20424  1.3  christos char librpz_client_create ();
   20425  1.1  christos int
   20426  1.1  christos main ()
   20427  1.1  christos {
   20428  1.3  christos return librpz_client_create ();
   20429  1.1  christos   ;
   20430  1.1  christos   return 0;
   20431  1.1  christos }
   20432  1.1  christos _ACEOF
   20433  1.3  christos for ac_lib in '' rpz; do
   20434  1.3  christos   if test -z "$ac_lib"; then
   20435  1.3  christos     ac_res="none required"
   20436  1.3  christos   else
   20437  1.3  christos     ac_res=-l$ac_lib
   20438  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20439  1.3  christos   fi
   20440  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   20441  1.3  christos   ac_cv_search_librpz_client_create=$ac_res
   20442  1.1  christos fi
   20443  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   20444  1.3  christos     conftest$ac_exeext
   20445  1.3  christos   if ${ac_cv_search_librpz_client_create+:} false; then :
   20446  1.3  christos   break
   20447  1.1  christos fi
   20448  1.3  christos done
   20449  1.3  christos if ${ac_cv_search_librpz_client_create+:} false; then :
   20450  1.3  christos 
   20451  1.1  christos else
   20452  1.3  christos   ac_cv_search_librpz_client_create=no
   20453  1.3  christos fi
   20454  1.3  christos rm conftest.$ac_ext
   20455  1.3  christos LIBS=$ac_func_search_save_LIBS
   20456  1.1  christos fi
   20457  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   20458  1.3  christos $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   20459  1.3  christos ac_res=$ac_cv_search_librpz_client_create
   20460  1.3  christos if test "$ac_res" != no; then :
   20461  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20462  1.1  christos 
   20463  1.1  christos else
   20464  1.3  christos   dnsrps_lib_open=0
   20465  1.3  christos 		 dnsrps_avail=no
   20466  1.1  christos fi
   20467  1.3  christos 
   20468  1.1  christos 
   20469  1.1  christos fi
   20470  1.1  christos 
   20471  1.3  christos cat >>confdefs.h <<_ACEOF
   20472  1.3  christos #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   20473  1.3  christos _ACEOF
   20474  1.1  christos 
   20475  1.1  christos 
   20476  1.3  christos # Check whether --enable-dnsrps was given.
   20477  1.3  christos if test "${enable_dnsrps+set}" = set; then :
   20478  1.3  christos   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   20479  1.3  christos else
   20480  1.3  christos   enable_dnsrps=no
   20481  1.1  christos fi
   20482  1.1  christos 
   20483  1.1  christos 
   20484  1.3  christos if test "$enable_dnsrps" != "no"; then :
   20485  1.1  christos 
   20486  1.3  christos 	if test "$dnsrps_avail" != "yes"; then :
   20487  1.3  christos   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20488  1.3  christos fi
   20489  1.3  christos 	if test "$dnsrps_lib_open" = "0"; then :
   20490  1.3  christos   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20491  1.3  christos fi
   20492  1.1  christos 
   20493  1.3  christos $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   20494  1.1  christos 
   20495  1.1  christos 
   20496  1.3  christos fi
   20497  1.1  christos 
   20498  1.1  christos # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   20499  1.1  christos #
   20500  1.1  christos # Permission to use, copy, modify, and distribute this software for any
   20501  1.1  christos # purpose with or without fee is hereby granted, provided that the above
   20502  1.1  christos # copyright notice and this permission notice appear in all copies.
   20503  1.1  christos #
   20504  1.1  christos # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   20505  1.1  christos # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   20506  1.1  christos # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   20507  1.1  christos # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   20508  1.1  christos # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   20509  1.1  christos # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   20510  1.1  christos # PERFORMANCE OF THIS SOFTWARE.
   20511  1.1  christos 
   20512  1.1  christos #
   20513  1.1  christos # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   20514  1.1  christos #
   20515  1.1  christos dlzdir='${DLZ_DRIVER_DIR}'
   20516  1.1  christos 
   20517  1.1  christos #
   20518  1.1  christos # Private autoconf macro to simplify configuring drivers:
   20519  1.1  christos #
   20520  1.1  christos #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   20521  1.1  christos #
   20522  1.1  christos # where:
   20523  1.1  christos #   DEFINE is FOO (to define -DDLZ_FOO)
   20524  1.1  christos #   DRIVER is dlz_foo_driver (sources without the .c)
   20525  1.1  christos #   INCLUDES is any necessary include definitions
   20526  1.1  christos #   LIBS is any necessary library definitions
   20527  1.1  christos #
   20528  1.1  christos 
   20529  1.1  christos 
   20530  1.1  christos #
   20531  1.1  christos # Check for the various DLZ drivers
   20532  1.1  christos #
   20533  1.1  christos 
   20534  1.1  christos #
   20535  1.1  christos # Was --with-dlz-postgres specified?
   20536  1.1  christos #
   20537  1.1  christos 
   20538  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   20539  1.1  christos $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   20540  1.1  christos 
   20541  1.1  christos # Check whether --with-dlz_postgres was given.
   20542  1.1  christos if test "${with_dlz_postgres+set}" = set; then :
   20543  1.1  christos   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   20544  1.1  christos else
   20545  1.1  christos   use_dlz_postgres="no"
   20546  1.1  christos fi
   20547  1.1  christos 
   20548  1.1  christos 
   20549  1.1  christos if test "$use_dlz_postgres" != "no"
   20550  1.1  christos then
   20551  1.1  christos 	if test "$use_dlz_postgres" != "yes"
   20552  1.1  christos         then
   20553  1.1  christos                 for ac_prog in pg_config
   20554  1.1  christos do
   20555  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20556  1.1  christos set dummy $ac_prog; ac_word=$2
   20557  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20558  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   20559  1.1  christos if ${ac_cv_path_PG_CONFIG+:} false; then :
   20560  1.1  christos   $as_echo_n "(cached) " >&6
   20561  1.1  christos else
   20562  1.1  christos   case $PG_CONFIG in
   20563  1.1  christos   [\\/]* | ?:[\\/]*)
   20564  1.1  christos   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20565  1.1  christos   ;;
   20566  1.1  christos   *)
   20567  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20568  1.1  christos for as_dir in $use_dlz_postgres/bin
   20569  1.1  christos do
   20570  1.1  christos   IFS=$as_save_IFS
   20571  1.1  christos   test -z "$as_dir" && as_dir=.
   20572  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   20573  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20574  1.1  christos     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20575  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20576  1.1  christos     break 2
   20577  1.1  christos   fi
   20578  1.1  christos done
   20579  1.1  christos   done
   20580  1.1  christos IFS=$as_save_IFS
   20581  1.1  christos 
   20582  1.1  christos   ;;
   20583  1.1  christos esac
   20584  1.1  christos fi
   20585  1.1  christos PG_CONFIG=$ac_cv_path_PG_CONFIG
   20586  1.1  christos if test -n "$PG_CONFIG"; then
   20587  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20588  1.1  christos $as_echo "$PG_CONFIG" >&6; }
   20589  1.1  christos else
   20590  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20591  1.1  christos $as_echo "no" >&6; }
   20592  1.1  christos fi
   20593  1.1  christos 
   20594  1.1  christos 
   20595  1.1  christos   test -n "$PG_CONFIG" && break
   20596  1.1  christos done
   20597  1.1  christos test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20598  1.1  christos 
   20599  1.1  christos 	else
   20600  1.1  christos                 for ac_prog in pg_config
   20601  1.1  christos do
   20602  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20603  1.1  christos set dummy $ac_prog; ac_word=$2
   20604  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20605  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   20606  1.1  christos if ${ac_cv_path_PG_CONFIG+:} false; then :
   20607  1.1  christos   $as_echo_n "(cached) " >&6
   20608  1.1  christos else
   20609  1.1  christos   case $PG_CONFIG in
   20610  1.1  christos   [\\/]* | ?:[\\/]*)
   20611  1.1  christos   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20612  1.1  christos   ;;
   20613  1.1  christos   *)
   20614  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20615  1.1  christos for as_dir in $PATH
   20616  1.1  christos do
   20617  1.1  christos   IFS=$as_save_IFS
   20618  1.1  christos   test -z "$as_dir" && as_dir=.
   20619  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   20620  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20621  1.1  christos     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20622  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20623  1.1  christos     break 2
   20624  1.1  christos   fi
   20625  1.1  christos done
   20626  1.1  christos   done
   20627  1.1  christos IFS=$as_save_IFS
   20628  1.1  christos 
   20629  1.1  christos   ;;
   20630  1.1  christos esac
   20631  1.1  christos fi
   20632  1.1  christos PG_CONFIG=$ac_cv_path_PG_CONFIG
   20633  1.1  christos if test -n "$PG_CONFIG"; then
   20634  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20635  1.1  christos $as_echo "$PG_CONFIG" >&6; }
   20636  1.1  christos else
   20637  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20638  1.1  christos $as_echo "no" >&6; }
   20639  1.1  christos fi
   20640  1.1  christos 
   20641  1.1  christos 
   20642  1.1  christos   test -n "$PG_CONFIG" && break
   20643  1.1  christos done
   20644  1.1  christos test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20645  1.1  christos 
   20646  1.1  christos 	fi
   20647  1.1  christos 
   20648  1.1  christos 	if test "$PG_CONFIG" != "not found"
   20649  1.1  christos 	then
   20650  1.1  christos 		use_dlz_postgres=`$PG_CONFIG --includedir`
   20651  1.1  christos 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   20652  1.1  christos 	else
   20653  1.1  christos 		pgprefix="$use_dlz_postgres"
   20654  1.1  christos 		use_dlz_postgres="$pgprefix/include"
   20655  1.1  christos 		use_dlz_postgres_lib="$pgprefix/lib"
   20656  1.1  christos 	fi
   20657  1.1  christos fi
   20658  1.1  christos 
   20659  1.1  christos if test "$use_dlz_postgres" = "yes/include"
   20660  1.1  christos then
   20661  1.1  christos 	# User did not specify path and Postgres didn't say - guess it
   20662  1.1  christos 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   20663  1.1  christos 	for d in $pgdirs
   20664  1.1  christos 	do
   20665  1.1  christos 		if test -f $d/include/libpq-fe.h
   20666  1.1  christos 		then
   20667  1.1  christos 			use_dlz_postgres=$d/include
   20668  1.1  christos 			use_dlz_postgres_lib=$d/lib
   20669  1.1  christos 			break
   20670  1.1  christos 		fi
   20671  1.1  christos 	done
   20672  1.1  christos fi
   20673  1.1  christos 
   20674  1.1  christos if test "$use_dlz_postgres" = "yes/include"
   20675  1.1  christos then
   20676  1.1  christos 	# Still no joy, give up
   20677  1.1  christos 
   20678  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20679  1.1  christos $as_echo "not found" >&6; }
   20680  1.1  christos 	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  1.1  christos fi
   20682  1.1  christos 
   20683  1.1  christos case "$use_dlz_postgres" in
   20684  1.1  christos 	no)
   20685  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20686  1.1  christos $as_echo "no" >&6; }
   20687  1.1  christos 		;;
   20688  1.1  christos 	*)
   20689  1.1  christos 
   20690  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   20691  1.1  christos 	for i in dlz_postgres_driver
   20692  1.1  christos 	do
   20693  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20694  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20695  1.1  christos 	done
   20696  1.1  christos 	if test -n "-I$use_dlz_postgres"
   20697  1.1  christos 	then
   20698  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   20699  1.1  christos 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   20700  1.1  christos 	fi
   20701  1.1  christos 	if test -n "-L$use_dlz_postgres_lib -lpq"
   20702  1.1  christos 	then
   20703  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   20704  1.1  christos 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   20705  1.1  christos 	fi
   20706  1.1  christos 
   20707  1.1  christos 
   20708  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   20709  1.1  christos $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   20710  1.1  christos 		;;
   20711  1.1  christos esac
   20712  1.1  christos 
   20713  1.1  christos 
   20714  1.1  christos #
   20715  1.1  christos # Was --with-dlz-mysql specified?
   20716  1.1  christos #
   20717  1.1  christos 
   20718  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   20719  1.1  christos $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   20720  1.1  christos 
   20721  1.1  christos # Check whether --with-dlz_mysql was given.
   20722  1.1  christos if test "${with_dlz_mysql+set}" = set; then :
   20723  1.1  christos   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   20724  1.1  christos else
   20725  1.1  christos   use_dlz_mysql="no"
   20726  1.1  christos fi
   20727  1.1  christos 
   20728  1.1  christos 
   20729  1.1  christos mysql_include=""
   20730  1.1  christos mysql_lib=""
   20731  1.1  christos if test "$use_dlz_mysql" = "yes"
   20732  1.1  christos then
   20733  1.1  christos 	for ac_prog in mysql_config
   20734  1.1  christos do
   20735  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20736  1.1  christos set dummy $ac_prog; ac_word=$2
   20737  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20738  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   20739  1.1  christos if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   20740  1.1  christos   $as_echo_n "(cached) " >&6
   20741  1.1  christos else
   20742  1.1  christos   if test -n "$MYSQL_CONFIG"; then
   20743  1.1  christos   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   20744  1.1  christos else
   20745  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20746  1.1  christos for as_dir in $PATH
   20747  1.1  christos do
   20748  1.1  christos   IFS=$as_save_IFS
   20749  1.1  christos   test -z "$as_dir" && as_dir=.
   20750  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   20751  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20752  1.1  christos     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   20753  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20754  1.1  christos     break 2
   20755  1.1  christos   fi
   20756  1.1  christos done
   20757  1.1  christos   done
   20758  1.1  christos IFS=$as_save_IFS
   20759  1.1  christos 
   20760  1.1  christos fi
   20761  1.1  christos fi
   20762  1.1  christos MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   20763  1.1  christos if test -n "$MYSQL_CONFIG"; then
   20764  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   20765  1.1  christos $as_echo "$MYSQL_CONFIG" >&6; }
   20766  1.1  christos else
   20767  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20768  1.1  christos $as_echo "no" >&6; }
   20769  1.1  christos fi
   20770  1.1  christos 
   20771  1.1  christos 
   20772  1.1  christos   test -n "$MYSQL_CONFIG" && break
   20773  1.1  christos done
   20774  1.1  christos 
   20775  1.1  christos 	if test -n "$MYSQL_CONFIG"
   20776  1.1  christos 	then
   20777  1.1  christos 		mysql_include=`${MYSQL_CONFIG} --include`
   20778  1.1  christos 		mysql_lib=`${MYSQL_CONFIG} --libs`
   20779  1.1  christos 		use_dlz_mysql="config"
   20780  1.1  christos 
   20781  1.1  christos 	else
   20782  1.1  christos 		# User did not specify a path - guess it
   20783  1.1  christos 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   20784  1.1  christos 		for d in $mysqldirs
   20785  1.1  christos 		do
   20786  1.1  christos 			if test -f $d/include/mysql/mysql.h
   20787  1.1  christos 			then
   20788  1.1  christos 				use_dlz_mysql=$d
   20789  1.1  christos 				mysql_include=$d/include/mysql
   20790  1.1  christos 				break
   20791  1.1  christos 			elif test -f $d/include/mysql.h
   20792  1.1  christos 			then
   20793  1.1  christos 				use_dlz_mysql=$d
   20794  1.1  christos 				mysql_include=$d/include
   20795  1.1  christos 				break
   20796  1.1  christos 			fi
   20797  1.1  christos 		done
   20798  1.1  christos 	fi
   20799  1.1  christos elif test "$use_dlz_mysql" != "no"
   20800  1.1  christos then
   20801  1.1  christos 	d=$use_dlz_mysql
   20802  1.1  christos 	if test -f $d/include/mysql/mysql.h
   20803  1.1  christos 	then
   20804  1.1  christos 		mysql_include=$d/include/mysql
   20805  1.1  christos 	elif test -f $d/include/mysql.h
   20806  1.1  christos 	then
   20807  1.1  christos 		mysql_include=$d/include
   20808  1.1  christos 	fi
   20809  1.1  christos fi
   20810  1.1  christos 
   20811  1.1  christos if test "$use_dlz_mysql" = "yes"
   20812  1.1  christos then
   20813  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20814  1.1  christos $as_echo "not found" >&6; }
   20815  1.1  christos 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   20816  1.1  christos fi
   20817  1.1  christos 
   20818  1.1  christos case "$use_dlz_mysql" in
   20819  1.1  christos 	no)
   20820  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20821  1.1  christos $as_echo "no" >&6; }
   20822  1.1  christos 		;;
   20823  1.1  christos 	config)
   20824  1.1  christos 
   20825  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20826  1.1  christos 	for i in dlz_mysql_driver
   20827  1.1  christos 	do
   20828  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20829  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20830  1.1  christos 	done
   20831  1.1  christos 	if test -n "${mysql_include}"
   20832  1.1  christos 	then
   20833  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   20834  1.1  christos 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   20835  1.1  christos 	fi
   20836  1.1  christos 	if test -n "${mysql_lib}"
   20837  1.1  christos 	then
   20838  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   20839  1.1  christos 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   20840  1.1  christos 	fi
   20841  1.1  christos 
   20842  1.1  christos 
   20843  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   20844  1.1  christos $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   20845  1.1  christos 		;;
   20846  1.1  christos 	*)
   20847  1.1  christos 		if test -d "$use_dlz_mysql/lib/mysql"
   20848  1.1  christos 		then
   20849  1.1  christos 			mysql_lib="$use_dlz_mysql/lib/mysql"
   20850  1.1  christos 		else
   20851  1.1  christos 			mysql_lib="$use_dlz_mysql/lib"
   20852  1.1  christos 		fi
   20853  1.1  christos 
   20854  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20855  1.1  christos 	for i in dlz_mysql_driver
   20856  1.1  christos 	do
   20857  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20858  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20859  1.1  christos 	done
   20860  1.1  christos 	if test -n "-I${mysql_include}"
   20861  1.1  christos 	then
   20862  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   20863  1.1  christos 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   20864  1.1  christos 	fi
   20865  1.1  christos 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20866  1.1  christos 	then
   20867  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20868  1.1  christos 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20869  1.1  christos 	fi
   20870  1.1  christos 
   20871  1.1  christos 
   20872  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   20873  1.1  christos $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   20874  1.1  christos 		;;
   20875  1.1  christos esac
   20876  1.1  christos 
   20877  1.1  christos 
   20878  1.1  christos #
   20879  1.1  christos # Was --with-dlz-bdb specified?
   20880  1.1  christos #
   20881  1.1  christos 
   20882  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   20883  1.1  christos $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   20884  1.1  christos 
   20885  1.1  christos # Check whether --with-dlz_bdb was given.
   20886  1.1  christos if test "${with_dlz_bdb+set}" = set; then :
   20887  1.1  christos   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   20888  1.1  christos else
   20889  1.1  christos   use_dlz_bdb="no"
   20890  1.1  christos fi
   20891  1.1  christos 
   20892  1.1  christos 
   20893  1.1  christos case "$use_dlz_bdb" in
   20894  1.1  christos 	no)
   20895  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20896  1.1  christos $as_echo "no" >&6; }
   20897  1.1  christos 		;;
   20898  1.1  christos 	*)
   20899  1.1  christos 		if test "$use_dlz_bdb" = "yes"
   20900  1.1  christos 		then
   20901  1.1  christos 			# User did not specify a path - guess directories
   20902  1.1  christos 			bdbdirs="/usr/local /usr/pkg /usr"
   20903  1.1  christos 		elif test -d "$use_dlz_bdb"
   20904  1.1  christos 		then
   20905  1.1  christos 			# User specified directory and it exists
   20906  1.1  christos 			bdbdirs="$use_dlz_bdb"
   20907  1.1  christos 		else
   20908  1.1  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20909  1.1  christos $as_echo "not found" >&6; }
   20910  1.1  christos 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   20911  1.1  christos 			bdbdirs=""
   20912  1.1  christos 		fi
   20913  1.1  christos 
   20914  1.1  christos 		# Use path we were given or guessed.  This is insanely
   20915  1.1  christos 		# complicated because we have to search for a bunch of
   20916  1.1  christos 		# platform-specific variations and have to check
   20917  1.1  christos 		# separately for include and library directories.
   20918  1.1  christos 
   20919  1.1  christos 		# Set both to yes, so we can check them later
   20920  1.1  christos 		dlz_bdb_inc="yes"
   20921  1.1  christos 		dlz_bdb_libs="yes"
   20922  1.1  christos 
   20923  1.1  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   20924  1.1  christos $as_echo "" >&6; }
   20925  1.1  christos 		for dd in $bdbdirs
   20926  1.1  christos 		do
   20927  1.1  christos 			# Skip nonexistant directories
   20928  1.1  christos 			if test ! -d "$dd"
   20929  1.1  christos 			then
   20930  1.1  christos 				continue
   20931  1.1  christos 			fi
   20932  1.1  christos 
   20933  1.1  christos 			# Check other locations for includes.
   20934  1.1  christos 			# Order is important (sigh).
   20935  1.1  christos 
   20936  1.1  christos 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   20937  1.1  christos 			# include a blank element first
   20938  1.1  christos 			for d in "" $bdb_incdirs
   20939  1.1  christos 			do
   20940  1.1  christos 				if test -f "$dd/include${d}/db.h"
   20941  1.1  christos 				then
   20942  1.1  christos 					dlz_bdb_inc="-I$dd/include${d}"
   20943  1.1  christos 					break
   20944  1.1  christos 				fi
   20945  1.1  christos 			done
   20946  1.1  christos 
   20947  1.1  christos 			# Give up on this directory if we couldn't
   20948  1.1  christos 			# find the include subdir
   20949  1.1  christos 
   20950  1.1  christos 			if test "$dlz_bdb_inc" = "yes"
   20951  1.1  christos 			then
   20952  1.1  christos 				continue
   20953  1.1  christos 			fi
   20954  1.1  christos 
   20955  1.1  christos 			# Look for libname other than libdb.so.
   20956  1.1  christos 			# Order is important (sigh).
   20957  1.1  christos 
   20958  1.1  christos 			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  1.1  christos 			for d in $bdb_libnames
   20960  1.1  christos 			do
   20961  1.1  christos 				if test "$dd" = "/usr"
   20962  1.1  christos 				then
   20963  1.1  christos 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   20964  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   20965  1.1  christos $as_echo_n "checking for db_create in -l$d... " >&6; }
   20966  1.1  christos if eval \${$as_ac_Lib+:} false; then :
   20967  1.1  christos   $as_echo_n "(cached) " >&6
   20968  1.1  christos else
   20969  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   20970  1.1  christos LIBS="-l$d  $LIBS"
   20971  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20972  1.1  christos /* end confdefs.h.  */
   20973  1.1  christos 
   20974  1.1  christos /* Override any GCC internal prototype to avoid an error.
   20975  1.1  christos    Use char because int might match the return type of a GCC
   20976  1.1  christos    builtin and then its argument prototype would still apply.  */
   20977  1.1  christos #ifdef __cplusplus
   20978  1.1  christos extern "C"
   20979  1.1  christos #endif
   20980  1.1  christos char db_create ();
   20981  1.1  christos int
   20982  1.1  christos main ()
   20983  1.1  christos {
   20984  1.1  christos return db_create ();
   20985  1.1  christos   ;
   20986  1.1  christos   return 0;
   20987  1.1  christos }
   20988  1.1  christos _ACEOF
   20989  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   20990  1.1  christos   eval "$as_ac_Lib=yes"
   20991  1.1  christos else
   20992  1.1  christos   eval "$as_ac_Lib=no"
   20993  1.1  christos fi
   20994  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   20995  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   20996  1.1  christos LIBS=$ac_check_lib_save_LIBS
   20997  1.1  christos fi
   20998  1.1  christos eval ac_res=\$$as_ac_Lib
   20999  1.1  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   21000  1.1  christos $as_echo "$ac_res" >&6; }
   21001  1.1  christos if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   21002  1.1  christos   dlz_bdb_libs="-l${d}"
   21003  1.1  christos fi
   21004  1.1  christos 
   21005  1.1  christos 					if test $dlz_bdb_libs != "yes"
   21006  1.1  christos 					then
   21007  1.1  christos 						break
   21008  1.1  christos 					fi
   21009  1.1  christos 				elif test -f "$dd/lib/lib${d}.so"
   21010  1.1  christos 				then
   21011  1.1  christos 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   21012  1.1  christos 					break
   21013  1.1  christos 				fi
   21014  1.1  christos 			done
   21015  1.1  christos 
   21016  1.1  christos 			# If we found both incdir and lib, we're done
   21017  1.1  christos 			if test "$dlz_bdb_libs" != "yes"
   21018  1.1  christos 			then
   21019  1.1  christos 				break
   21020  1.1  christos 			fi
   21021  1.1  christos 
   21022  1.1  christos 			# Otherwise, we're starting over
   21023  1.1  christos 
   21024  1.1  christos 			dlz_bdb_inc="yes"
   21025  1.1  christos 			dlz_bdb_libs="yes"
   21026  1.1  christos 		done
   21027  1.1  christos 
   21028  1.1  christos 		# Done searching, now make sure we got everything.
   21029  1.1  christos 
   21030  1.1  christos 		if test "$dlz_bdb_inc" = "yes"
   21031  1.1  christos 		then
   21032  1.1  christos 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   21033  1.1  christos 		fi
   21034  1.1  christos 
   21035  1.1  christos 		if test "$dlz_bdb_libs" = "yes"
   21036  1.1  christos 		then
   21037  1.1  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21038  1.1  christos $as_echo "not found" >&6; }
   21039  1.1  christos 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   21040  1.1  christos 		fi
   21041  1.1  christos 
   21042  1.1  christos 
   21043  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   21044  1.1  christos 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   21045  1.1  christos 	do
   21046  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21047  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21048  1.1  christos 	done
   21049  1.1  christos 	if test -n "$dlz_bdb_inc"
   21050  1.1  christos 	then
   21051  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   21052  1.1  christos 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   21053  1.1  christos 	fi
   21054  1.1  christos 	if test -n "$dlz_bdb_libs"
   21055  1.1  christos 	then
   21056  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   21057  1.1  christos 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   21058  1.1  christos 	fi
   21059  1.1  christos 
   21060  1.1  christos 
   21061  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   21062  1.1  christos $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   21063  1.1  christos 
   21064  1.1  christos 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   21065  1.1  christos 
   21066  1.1  christos 		;;
   21067  1.1  christos esac
   21068  1.1  christos 
   21069  1.1  christos 
   21070  1.1  christos #
   21071  1.1  christos # Was --with-dlz-filesystem specified?
   21072  1.1  christos #
   21073  1.1  christos 
   21074  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   21075  1.1  christos $as_echo_n "checking for file system DLZ driver... " >&6; }
   21076  1.1  christos 
   21077  1.1  christos # Check whether --with-dlz_filesystem was given.
   21078  1.1  christos if test "${with_dlz_filesystem+set}" = set; then :
   21079  1.1  christos   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   21080  1.1  christos else
   21081  1.1  christos   use_dlz_filesystem="no"
   21082  1.1  christos fi
   21083  1.1  christos 
   21084  1.1  christos 
   21085  1.1  christos case "$use_dlz_filesystem" in
   21086  1.1  christos 	no)
   21087  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21088  1.1  christos $as_echo "no" >&6; }
   21089  1.1  christos 		;;
   21090  1.1  christos 	*)
   21091  1.1  christos 
   21092  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   21093  1.1  christos 	for i in dlz_filesystem_driver
   21094  1.1  christos 	do
   21095  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21096  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21097  1.1  christos 	done
   21098  1.1  christos 	if test -n ""
   21099  1.1  christos 	then
   21100  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21101  1.1  christos 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   21102  1.1  christos 	fi
   21103  1.1  christos 	if test -n ""
   21104  1.1  christos 	then
   21105  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21106  1.1  christos 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   21107  1.1  christos 	fi
   21108  1.1  christos 
   21109  1.1  christos 		DLZ_SYSTEM_TEST=filesystem
   21110  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21111  1.1  christos $as_echo "yes" >&6; }
   21112  1.1  christos 		;;
   21113  1.1  christos esac
   21114  1.1  christos 
   21115  1.1  christos 
   21116  1.1  christos #
   21117  1.1  christos # Was --with-dlz-ldap specified?
   21118  1.1  christos #
   21119  1.1  christos 
   21120  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   21121  1.1  christos $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   21122  1.1  christos 
   21123  1.1  christos # Check whether --with-dlz_ldap was given.
   21124  1.1  christos if test "${with_dlz_ldap+set}" = set; then :
   21125  1.1  christos   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   21126  1.1  christos else
   21127  1.1  christos   use_dlz_ldap="no"
   21128  1.1  christos fi
   21129  1.1  christos 
   21130  1.1  christos 
   21131  1.1  christos if test "$use_dlz_ldap" = "yes"
   21132  1.1  christos then
   21133  1.1  christos 	# User did not specify a path - guess it
   21134  1.1  christos 	ldapdirs="/usr /usr/local /usr/pkg"
   21135  1.1  christos 	for d in $ldapdirs
   21136  1.1  christos 	do
   21137  1.1  christos 		if test -f $d/include/ldap.h
   21138  1.1  christos 		then
   21139  1.1  christos 			use_dlz_ldap=$d
   21140  1.1  christos 			break
   21141  1.1  christos 		fi
   21142  1.1  christos 	done
   21143  1.1  christos fi
   21144  1.1  christos 
   21145  1.1  christos if test "$use_dlz_ldap" = "yes"
   21146  1.1  christos then
   21147  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21148  1.1  christos $as_echo "not found" >&6; }
   21149  1.1  christos 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   21150  1.1  christos fi
   21151  1.1  christos 
   21152  1.1  christos case "$use_dlz_ldap" in
   21153  1.1  christos 	no)
   21154  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21155  1.1  christos $as_echo "no" >&6; }
   21156  1.1  christos 		;;
   21157  1.1  christos 	*)
   21158  1.1  christos 
   21159  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   21160  1.1  christos 	for i in dlz_ldap_driver
   21161  1.1  christos 	do
   21162  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21163  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21164  1.1  christos 	done
   21165  1.1  christos 	if test -n "-I$use_dlz_ldap/include"
   21166  1.1  christos 	then
   21167  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   21168  1.1  christos 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   21169  1.1  christos 	fi
   21170  1.1  christos 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   21171  1.1  christos 	then
   21172  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   21173  1.1  christos 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   21174  1.1  christos 	fi
   21175  1.1  christos 
   21176  1.1  christos 
   21177  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   21178  1.1  christos $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   21179  1.1  christos 		;;
   21180  1.1  christos esac
   21181  1.1  christos 
   21182  1.1  christos 
   21183  1.1  christos #
   21184  1.1  christos # Was --with-dlz-odbc specified?
   21185  1.1  christos #
   21186  1.1  christos 
   21187  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   21188  1.1  christos $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   21189  1.1  christos 
   21190  1.1  christos # Check whether --with-dlz_odbc was given.
   21191  1.1  christos if test "${with_dlz_odbc+set}" = set; then :
   21192  1.1  christos   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   21193  1.1  christos else
   21194  1.1  christos   use_dlz_odbc="no"
   21195  1.1  christos fi
   21196  1.1  christos 
   21197  1.1  christos 
   21198  1.1  christos if test "$use_dlz_odbc" = "yes"
   21199  1.1  christos then
   21200  1.1  christos 	# User did not specify a path - guess it
   21201  1.1  christos 	libodbc_found=no
   21202  1.1  christos 	sql_h_found=no
   21203  1.1  christos 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   21204  1.1  christos if test "x$ac_cv_header_sql_h" = xyes; then :
   21205  1.1  christos   sql_h_found=yes
   21206  1.1  christos fi
   21207  1.1  christos 
   21208  1.1  christos 
   21209  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   21210  1.1  christos $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   21211  1.1  christos if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   21212  1.1  christos   $as_echo_n "(cached) " >&6
   21213  1.1  christos else
   21214  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   21215  1.1  christos LIBS="-lodbc  $LIBS"
   21216  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21217  1.1  christos /* end confdefs.h.  */
   21218  1.1  christos 
   21219  1.1  christos /* Override any GCC internal prototype to avoid an error.
   21220  1.1  christos    Use char because int might match the return type of a GCC
   21221  1.1  christos    builtin and then its argument prototype would still apply.  */
   21222  1.1  christos #ifdef __cplusplus
   21223  1.1  christos extern "C"
   21224  1.1  christos #endif
   21225  1.1  christos char SQLConnect ();
   21226  1.1  christos int
   21227  1.1  christos main ()
   21228  1.1  christos {
   21229  1.1  christos return SQLConnect ();
   21230  1.1  christos   ;
   21231  1.1  christos   return 0;
   21232  1.1  christos }
   21233  1.1  christos _ACEOF
   21234  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   21235  1.1  christos   ac_cv_lib_odbc_SQLConnect=yes
   21236  1.1  christos else
   21237  1.1  christos   ac_cv_lib_odbc_SQLConnect=no
   21238  1.1  christos fi
   21239  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   21240  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   21241  1.1  christos LIBS=$ac_check_lib_save_LIBS
   21242  1.1  christos fi
   21243  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   21244  1.1  christos $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   21245  1.1  christos if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   21246  1.1  christos   libodbc_found=yes
   21247  1.1  christos fi
   21248  1.1  christos 
   21249  1.1  christos 
   21250  1.1  christos 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   21251  1.1  christos 	then
   21252  1.1  christos 		use_dlz_odbc=system
   21253  1.1  christos 		dlz_odbc_include=""
   21254  1.1  christos 		dlz_odbc_libs="-lodbc"
   21255  1.1  christos 	else
   21256  1.1  christos 		odbcdirs="/usr /usr/local /usr/pkg"
   21257  1.1  christos 		for d in $odbcdirs
   21258  1.1  christos 		do
   21259  1.1  christos 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   21260  1.1  christos 			then
   21261  1.1  christos 				use_dlz_odbc=$d
   21262  1.1  christos 				dlz_odbc_include="-I$use_dlz_odbc/include"
   21263  1.1  christos 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   21264  1.1  christos 				break
   21265  1.1  christos 			fi
   21266  1.1  christos 		done
   21267  1.1  christos 	fi
   21268  1.1  christos fi
   21269  1.1  christos 
   21270  1.1  christos case "$use_dlz_odbc" in
   21271  1.1  christos 	no)
   21272  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21273  1.1  christos $as_echo "no" >&6; }
   21274  1.1  christos 		;;
   21275  1.1  christos 	yes)
   21276  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21277  1.1  christos $as_echo "not found" >&6; }
   21278  1.1  christos 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   21279  1.1  christos 		;;
   21280  1.1  christos 	*)
   21281  1.1  christos 
   21282  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   21283  1.1  christos 	for i in dlz_odbc_driver
   21284  1.1  christos 	do
   21285  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21286  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21287  1.1  christos 	done
   21288  1.1  christos 	if test -n "$dlz_odbc_include"
   21289  1.1  christos 	then
   21290  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   21291  1.1  christos 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   21292  1.1  christos 	fi
   21293  1.1  christos 	if test -n "$dlz_odbc_libs"
   21294  1.1  christos 	then
   21295  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   21296  1.1  christos 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   21297  1.1  christos 	fi
   21298  1.1  christos 
   21299  1.1  christos 
   21300  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   21301  1.1  christos $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   21302  1.1  christos 		;;
   21303  1.1  christos esac
   21304  1.1  christos 
   21305  1.1  christos 
   21306  1.1  christos #
   21307  1.1  christos # Was --with-dlz-stub specified?
   21308  1.1  christos #
   21309  1.1  christos 
   21310  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   21311  1.1  christos $as_echo_n "checking for stub DLZ driver... " >&6; }
   21312  1.1  christos 
   21313  1.1  christos # Check whether --with-dlz_stub was given.
   21314  1.1  christos if test "${with_dlz_stub+set}" = set; then :
   21315  1.1  christos   withval=$with_dlz_stub; use_dlz_stub="$withval"
   21316  1.1  christos else
   21317  1.1  christos   use_dlz_stub="no"
   21318  1.1  christos fi
   21319  1.1  christos 
   21320  1.1  christos 
   21321  1.1  christos case "$use_dlz_stub" in
   21322  1.1  christos 	no)
   21323  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21324  1.1  christos $as_echo "no" >&6; }
   21325  1.1  christos 		;;
   21326  1.1  christos 	*)
   21327  1.1  christos 
   21328  1.1  christos 
   21329  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   21330  1.1  christos 	for i in dlz_stub_driver
   21331  1.1  christos 	do
   21332  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21333  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21334  1.1  christos 	done
   21335  1.1  christos 	if test -n ""
   21336  1.1  christos 	then
   21337  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21338  1.1  christos 		DLZ_DRIVER_STUB_INCLUDES=""
   21339  1.1  christos 	fi
   21340  1.1  christos 	if test -n ""
   21341  1.1  christos 	then
   21342  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21343  1.1  christos 		DLZ_DRIVER_STUB_LIBS=""
   21344  1.1  christos 	fi
   21345  1.1  christos 
   21346  1.1  christos 
   21347  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21348  1.1  christos $as_echo "yes" >&6; }
   21349  1.1  christos 		;;
   21350  1.1  christos esac
   21351  1.1  christos 
   21352  1.1  christos # Add any additional DLZ drivers here.
   21353  1.1  christos 
   21354  1.1  christos #
   21355  1.1  christos # Finally, some generic stuff that applies to all drivers, assuming
   21356  1.1  christos # we're compiling contrib DLZ drivers at all.
   21357  1.1  christos #
   21358  1.1  christos if test -n "$CONTRIB_DLZ"
   21359  1.1  christos then
   21360  1.1  christos 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   21361  1.1  christos 
   21362  1.1  christos 	#
   21363  1.1  christos 	# Where to find DLZ driver header files.
   21364  1.1  christos 	#
   21365  1.1  christos 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   21366  1.1  christos 
   21367  1.1  christos 	#
   21368  1.1  christos 	# Initialization and shutdown wrappers, helper functions.
   21369  1.1  christos 	#
   21370  1.1  christos 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   21371  1.1  christos 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   21372  1.1  christos fi
   21373  1.1  christos 
   21374  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   21375  1.1  christos $as_echo_n "checking contributed DLZ drivers... " >&6; }
   21376  1.1  christos 
   21377  1.1  christos if test -n "$CONTRIB_DLZ"
   21378  1.1  christos then
   21379  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21380  1.1  christos $as_echo "yes" >&6; }
   21381  1.1  christos 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   21382  1.1  christos 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   21383  1.1  christos 
   21384  1.1  christos else
   21385  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21386  1.1  christos $as_echo "no" >&6; }
   21387  1.1  christos 	DLZ_DRIVER_RULES=/dev/null
   21388  1.1  christos fi
   21389  1.1  christos 
   21390  1.1  christos 
   21391  1.1  christos 
   21392  1.1  christos 
   21393  1.1  christos 
   21394  1.1  christos 
   21395  1.1  christos 
   21396  1.1  christos 
   21397  1.1  christos 
   21398  1.1  christos 
   21399  1.1  christos 
   21400  1.1  christos if test "yes" = "$cross_compiling"; then
   21401  1.1  christos 	if test -z "$BUILD_CC"; then
   21402  1.1  christos 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   21403  1.1  christos 	fi
   21404  1.1  christos 	BUILD_CFLAGS="$BUILD_CFLAGS"
   21405  1.1  christos 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   21406  1.1  christos 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   21407  1.1  christos 	BUILD_LIBS="$BUILD_LIBS"
   21408  1.1  christos else
   21409  1.1  christos 	BUILD_CC="$CC"
   21410  1.1  christos 	BUILD_CFLAGS="$CFLAGS"
   21411  1.1  christos 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   21412  1.1  christos 	BUILD_LDFLAGS="$LDFLAGS"
   21413  1.1  christos 	BUILD_LIBS="$LIBS"
   21414  1.1  christos fi
   21415  1.1  christos 
   21416  1.1  christos NEWFLAGS=""
   21417  1.1  christos for e in $BUILD_LDFLAGS ; do
   21418  1.1  christos     case $e in
   21419  1.1  christos 	-L*)
   21420  1.1  christos 	    case $host_os in
   21421  1.1  christos 		netbsd*)
   21422  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21423  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21424  1.1  christos 		    ;;
   21425  1.1  christos 		freebsd*)
   21426  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21427  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21428  1.1  christos 		    ;;
   21429  1.1  christos 		solaris*)
   21430  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21431  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21432  1.1  christos 		    ;;
   21433  1.1  christos 		*)
   21434  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e"
   21435  1.1  christos 		    ;;
   21436  1.1  christos 		esac
   21437  1.1  christos 	    ;;
   21438  1.1  christos 	*)
   21439  1.1  christos 	    NEWFLAGS="$NEWFLAGS $e"
   21440  1.1  christos 	    ;;
   21441  1.1  christos     esac
   21442  1.1  christos done
   21443  1.1  christos BUILD_LDFLAGS="$NEWFLAGS"
   21444  1.1  christos 
   21445  1.1  christos NEWFLAGS=""
   21446  1.1  christos for e in $DNS_GSSAPI_LIBS ; do
   21447  1.1  christos     case $e in
   21448  1.1  christos 	-L*)
   21449  1.1  christos 	    case $host_os in
   21450  1.1  christos 		netbsd*)
   21451  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21452  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21453  1.1  christos 		    ;;
   21454  1.1  christos 		freebsd*)
   21455  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21456  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21457  1.1  christos 		    ;;
   21458  1.1  christos 		solaris*)
   21459  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21460  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21461  1.1  christos 		    ;;
   21462  1.1  christos 		*)
   21463  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e"
   21464  1.1  christos 		    ;;
   21465  1.1  christos 		esac
   21466  1.1  christos 	    ;;
   21467  1.1  christos 	*)
   21468  1.1  christos 	    NEWFLAGS="$NEWFLAGS $e"
   21469  1.1  christos 	    ;;
   21470  1.1  christos     esac
   21471  1.1  christos done
   21472  1.1  christos DNS_GSSAPI_LIBS="$NEWFLAGS"
   21473  1.1  christos 
   21474  1.1  christos NEWFLAGS=""
   21475  1.1  christos for e in $ISC_OPENSSL_LIBS ; do
   21476  1.1  christos     case $e in
   21477  1.1  christos 	-L*)
   21478  1.1  christos 	    case $host_os in
   21479  1.1  christos 		netbsd*)
   21480  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21481  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21482  1.1  christos 		    ;;
   21483  1.1  christos 		freebsd*)
   21484  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21485  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21486  1.1  christos 		    ;;
   21487  1.1  christos 		solaris*)
   21488  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21489  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21490  1.1  christos 		    ;;
   21491  1.1  christos 		*)
   21492  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e"
   21493  1.1  christos 		    ;;
   21494  1.1  christos 		esac
   21495  1.1  christos 	    ;;
   21496  1.1  christos 	*)
   21497  1.1  christos 	    NEWFLAGS="$NEWFLAGS $e"
   21498  1.1  christos 	    ;;
   21499  1.1  christos     esac
   21500  1.1  christos done
   21501  1.1  christos ISC_OPENSSL_LIBS="$NEWFLAGS"
   21502  1.1  christos 
   21503  1.1  christos NEWFLAGS=""
   21504  1.1  christos for e in $DNS_CRYPTO_LIBS ; do
   21505  1.1  christos     case $e in
   21506  1.1  christos 	-L*)
   21507  1.1  christos 	    case $host_os in
   21508  1.1  christos 		netbsd*)
   21509  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21510  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21511  1.1  christos 		    ;;
   21512  1.1  christos 		freebsd*)
   21513  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21514  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21515  1.1  christos 		    ;;
   21516  1.1  christos 		solaris*)
   21517  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21518  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21519  1.1  christos 		    ;;
   21520  1.1  christos 		*)
   21521  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e"
   21522  1.1  christos 		    ;;
   21523  1.1  christos 		esac
   21524  1.1  christos 	    ;;
   21525  1.1  christos 	*)
   21526  1.1  christos 	    NEWFLAGS="$NEWFLAGS $e"
   21527  1.1  christos 	    ;;
   21528  1.1  christos     esac
   21529  1.1  christos done
   21530  1.1  christos DNS_CRYPTO_LIBS="$NEWFLAGS"
   21531  1.1  christos 
   21532  1.1  christos 
   21533  1.1  christos 
   21534  1.1  christos 
   21535  1.1  christos 
   21536  1.1  christos 
   21537  1.1  christos 
   21538  1.1  christos #
   21539  1.1  christos # Commands to run at the end of config.status.
   21540  1.1  christos # Don't just put these into configure, it won't work right if somebody
   21541  1.1  christos # runs config.status directly (which autoconf allows).
   21542  1.1  christos #
   21543  1.1  christos 
   21544  1.1  christos ac_config_commands="$ac_config_commands chmod"
   21545  1.1  christos 
   21546  1.1  christos 
   21547  1.1  christos #
   21548  1.1  christos # Files to configure.  These are listed here because we used to
   21549  1.1  christos # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   21550  1.1  christos # elsewhere if there's a good reason for doing so.
   21551  1.1  christos #
   21552  1.1  christos 
   21553  1.3  christos 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  1.1  christos 
   21555  1.1  christos 
   21556  1.1  christos #
   21557  1.1  christos # Do it
   21558  1.1  christos #
   21559  1.1  christos 
   21560  1.1  christos cat >confcache <<\_ACEOF
   21561  1.1  christos # This file is a shell script that caches the results of configure
   21562  1.1  christos # tests run on this system so they can be shared between configure
   21563  1.1  christos # scripts and configure runs, see configure's option --config-cache.
   21564  1.1  christos # It is not useful on other systems.  If it contains results you don't
   21565  1.1  christos # want to keep, you may remove or edit it.
   21566  1.1  christos #
   21567  1.1  christos # config.status only pays attention to the cache file if you give it
   21568  1.1  christos # the --recheck option to rerun configure.
   21569  1.1  christos #
   21570  1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
   21571  1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21572  1.1  christos # following values.
   21573  1.1  christos 
   21574  1.1  christos _ACEOF
   21575  1.1  christos 
   21576  1.1  christos # The following way of writing the cache mishandles newlines in values,
   21577  1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   21578  1.1  christos # So, we kill variables containing newlines.
   21579  1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   21580  1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   21581  1.1  christos (
   21582  1.1  christos   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   21583  1.1  christos     eval ac_val=\$$ac_var
   21584  1.1  christos     case $ac_val in #(
   21585  1.1  christos     *${as_nl}*)
   21586  1.1  christos       case $ac_var in #(
   21587  1.1  christos       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   21588  1.1  christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   21589  1.1  christos       esac
   21590  1.1  christos       case $ac_var in #(
   21591  1.1  christos       _ | IFS | as_nl) ;; #(
   21592  1.1  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   21593  1.1  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   21594  1.1  christos       esac ;;
   21595  1.1  christos     esac
   21596  1.1  christos   done
   21597  1.1  christos 
   21598  1.1  christos   (set) 2>&1 |
   21599  1.1  christos     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   21600  1.1  christos     *${as_nl}ac_space=\ *)
   21601  1.1  christos       # `set' does not quote correctly, so add quotes: double-quote
   21602  1.1  christos       # substitution turns \\\\ into \\, and sed turns \\ into \.
   21603  1.1  christos       sed -n \
   21604  1.1  christos 	"s/'/'\\\\''/g;
   21605  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   21606  1.1  christos       ;; #(
   21607  1.1  christos     *)
   21608  1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   21609  1.1  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   21610  1.1  christos       ;;
   21611  1.1  christos     esac |
   21612  1.1  christos     sort
   21613  1.1  christos ) |
   21614  1.1  christos   sed '
   21615  1.1  christos      /^ac_cv_env_/b end
   21616  1.1  christos      t clear
   21617  1.1  christos      :clear
   21618  1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   21619  1.1  christos      t end
   21620  1.1  christos      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   21621  1.1  christos      :end' >>confcache
   21622  1.1  christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   21623  1.1  christos   if test -w "$cache_file"; then
   21624  1.1  christos     if test "x$cache_file" != "x/dev/null"; then
   21625  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   21626  1.1  christos $as_echo "$as_me: updating cache $cache_file" >&6;}
   21627  1.1  christos       if test ! -f "$cache_file" || test -h "$cache_file"; then
   21628  1.1  christos 	cat confcache >"$cache_file"
   21629  1.1  christos       else
   21630  1.1  christos         case $cache_file in #(
   21631  1.1  christos         */* | ?:*)
   21632  1.1  christos 	  mv -f confcache "$cache_file"$$ &&
   21633  1.1  christos 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   21634  1.1  christos         *)
   21635  1.1  christos 	  mv -f confcache "$cache_file" ;;
   21636  1.1  christos 	esac
   21637  1.1  christos       fi
   21638  1.1  christos     fi
   21639  1.1  christos   else
   21640  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   21641  1.1  christos $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   21642  1.1  christos   fi
   21643  1.1  christos fi
   21644  1.1  christos rm -f confcache
   21645  1.1  christos 
   21646  1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   21647  1.1  christos # Let make expand exec_prefix.
   21648  1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   21649  1.1  christos 
   21650  1.1  christos DEFS=-DHAVE_CONFIG_H
   21651  1.1  christos 
   21652  1.1  christos ac_libobjs=
   21653  1.1  christos ac_ltlibobjs=
   21654  1.1  christos U=
   21655  1.1  christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21656  1.1  christos   # 1. Remove the extension, and $U if already installed.
   21657  1.1  christos   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21658  1.1  christos   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   21659  1.1  christos   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21660  1.1  christos   #    will be set to the directory where LIBOBJS objects are built.
   21661  1.1  christos   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21662  1.1  christos   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   21663  1.1  christos done
   21664  1.1  christos LIBOBJS=$ac_libobjs
   21665  1.1  christos 
   21666  1.1  christos LTLIBOBJS=$ac_ltlibobjs
   21667  1.1  christos 
   21668  1.1  christos 
   21669  1.1  christos 
   21670  1.1  christos 
   21671  1.1  christos : "${CONFIG_STATUS=./config.status}"
   21672  1.1  christos ac_write_fail=0
   21673  1.1  christos ac_clean_files_save=$ac_clean_files
   21674  1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21675  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   21676  1.1  christos $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21677  1.1  christos as_write_fail=0
   21678  1.1  christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   21679  1.1  christos #! $SHELL
   21680  1.1  christos # Generated by $as_me.
   21681  1.1  christos # Run this file to recreate the current configuration.
   21682  1.1  christos # Compiler output produced by configure, useful for debugging
   21683  1.1  christos # configure, is in config.log if it exists.
   21684  1.1  christos 
   21685  1.1  christos debug=false
   21686  1.1  christos ac_cs_recheck=false
   21687  1.1  christos ac_cs_silent=false
   21688  1.1  christos 
   21689  1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   21690  1.1  christos export SHELL
   21691  1.1  christos _ASEOF
   21692  1.1  christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   21693  1.1  christos ## -------------------- ##
   21694  1.1  christos ## M4sh Initialization. ##
   21695  1.1  christos ## -------------------- ##
   21696  1.1  christos 
   21697  1.1  christos # Be more Bourne compatible
   21698  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
   21699  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   21700  1.1  christos   emulate sh
   21701  1.1  christos   NULLCMD=:
   21702  1.1  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21703  1.1  christos   # is contrary to our usage.  Disable this feature.
   21704  1.1  christos   alias -g '${1+"$@"}'='"$@"'
   21705  1.1  christos   setopt NO_GLOB_SUBST
   21706  1.1  christos else
   21707  1.1  christos   case `(set -o) 2>/dev/null` in #(
   21708  1.1  christos   *posix*) :
   21709  1.1  christos     set -o posix ;; #(
   21710  1.1  christos   *) :
   21711  1.1  christos      ;;
   21712  1.1  christos esac
   21713  1.1  christos fi
   21714  1.1  christos 
   21715  1.1  christos 
   21716  1.1  christos as_nl='
   21717  1.1  christos '
   21718  1.1  christos export as_nl
   21719  1.1  christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
   21720  1.1  christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   21721  1.1  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   21722  1.1  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   21723  1.1  christos # Prefer a ksh shell builtin over an external printf program on Solaris,
   21724  1.1  christos # but without wasting forks for bash or zsh.
   21725  1.1  christos if test -z "$BASH_VERSION$ZSH_VERSION" \
   21726  1.1  christos     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   21727  1.1  christos   as_echo='print -r --'
   21728  1.1  christos   as_echo_n='print -rn --'
   21729  1.1  christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   21730  1.1  christos   as_echo='printf %s\n'
   21731  1.1  christos   as_echo_n='printf %s'
   21732  1.1  christos else
   21733  1.1  christos   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   21734  1.1  christos     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   21735  1.1  christos     as_echo_n='/usr/ucb/echo -n'
   21736  1.1  christos   else
   21737  1.1  christos     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   21738  1.1  christos     as_echo_n_body='eval
   21739  1.1  christos       arg=$1;
   21740  1.1  christos       case $arg in #(
   21741  1.1  christos       *"$as_nl"*)
   21742  1.1  christos 	expr "X$arg" : "X\\(.*\\)$as_nl";
   21743  1.1  christos 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   21744  1.1  christos       esac;
   21745  1.1  christos       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   21746  1.1  christos     '
   21747  1.1  christos     export as_echo_n_body
   21748  1.1  christos     as_echo_n='sh -c $as_echo_n_body as_echo'
   21749  1.1  christos   fi
   21750  1.1  christos   export as_echo_body
   21751  1.1  christos   as_echo='sh -c $as_echo_body as_echo'
   21752  1.1  christos fi
   21753  1.1  christos 
   21754  1.1  christos # The user is always right.
   21755  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
   21756  1.1  christos   PATH_SEPARATOR=:
   21757  1.1  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   21758  1.1  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   21759  1.1  christos       PATH_SEPARATOR=';'
   21760  1.1  christos   }
   21761  1.1  christos fi
   21762  1.1  christos 
   21763  1.1  christos 
   21764  1.1  christos # IFS
   21765  1.1  christos # We need space, tab and new line, in precisely that order.  Quoting is
   21766  1.1  christos # there to prevent editors from complaining about space-tab.
   21767  1.1  christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21768  1.1  christos # splitting by setting IFS to empty value.)
   21769  1.1  christos IFS=" ""	$as_nl"
   21770  1.1  christos 
   21771  1.1  christos # Find who we are.  Look in the path if we contain no directory separator.
   21772  1.1  christos as_myself=
   21773  1.1  christos case $0 in #((
   21774  1.1  christos   *[\\/]* ) as_myself=$0 ;;
   21775  1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21776  1.1  christos for as_dir in $PATH
   21777  1.1  christos do
   21778  1.1  christos   IFS=$as_save_IFS
   21779  1.1  christos   test -z "$as_dir" && as_dir=.
   21780  1.1  christos     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21781  1.1  christos   done
   21782  1.1  christos IFS=$as_save_IFS
   21783  1.1  christos 
   21784  1.1  christos      ;;
   21785  1.1  christos esac
   21786  1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
   21787  1.1  christos # in which case we are not to be found in the path.
   21788  1.1  christos if test "x$as_myself" = x; then
   21789  1.1  christos   as_myself=$0
   21790  1.1  christos fi
   21791  1.1  christos if test ! -f "$as_myself"; then
   21792  1.1  christos   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21793  1.1  christos   exit 1
   21794  1.1  christos fi
   21795  1.1  christos 
   21796  1.1  christos # Unset variables that we do not need and which cause bugs (e.g. in
   21797  1.1  christos # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   21798  1.1  christos # suppresses any "Segmentation fault" message there.  '((' could
   21799  1.1  christos # trigger a bug in pdksh 5.2.14.
   21800  1.1  christos for as_var in BASH_ENV ENV MAIL MAILPATH
   21801  1.1  christos do eval test x\${$as_var+set} = xset \
   21802  1.1  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   21803  1.1  christos done
   21804  1.1  christos PS1='$ '
   21805  1.1  christos PS2='> '
   21806  1.1  christos PS4='+ '
   21807  1.1  christos 
   21808  1.1  christos # NLS nuisances.
   21809  1.1  christos LC_ALL=C
   21810  1.1  christos export LC_ALL
   21811  1.1  christos LANGUAGE=C
   21812  1.1  christos export LANGUAGE
   21813  1.1  christos 
   21814  1.1  christos # CDPATH.
   21815  1.1  christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   21816  1.1  christos 
   21817  1.1  christos 
   21818  1.1  christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
   21819  1.1  christos # ----------------------------------------
   21820  1.1  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   21821  1.1  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   21822  1.1  christos # script with STATUS, using 1 if that was 0.
   21823  1.1  christos as_fn_error ()
   21824  1.1  christos {
   21825  1.1  christos   as_status=$1; test $as_status -eq 0 && as_status=1
   21826  1.1  christos   if test "$4"; then
   21827  1.1  christos     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   21828  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   21829  1.1  christos   fi
   21830  1.1  christos   $as_echo "$as_me: error: $2" >&2
   21831  1.1  christos   as_fn_exit $as_status
   21832  1.1  christos } # as_fn_error
   21833  1.1  christos 
   21834  1.1  christos 
   21835  1.1  christos # as_fn_set_status STATUS
   21836  1.1  christos # -----------------------
   21837  1.1  christos # Set $? to STATUS, without forking.
   21838  1.1  christos as_fn_set_status ()
   21839  1.1  christos {
   21840  1.1  christos   return $1
   21841  1.1  christos } # as_fn_set_status
   21842  1.1  christos 
   21843  1.1  christos # as_fn_exit STATUS
   21844  1.1  christos # -----------------
   21845  1.1  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   21846  1.1  christos as_fn_exit ()
   21847  1.1  christos {
   21848  1.1  christos   set +e
   21849  1.1  christos   as_fn_set_status $1
   21850  1.1  christos   exit $1
   21851  1.1  christos } # as_fn_exit
   21852  1.1  christos 
   21853  1.1  christos # as_fn_unset VAR
   21854  1.1  christos # ---------------
   21855  1.1  christos # Portably unset VAR.
   21856  1.1  christos as_fn_unset ()
   21857  1.1  christos {
   21858  1.1  christos   { eval $1=; unset $1;}
   21859  1.1  christos }
   21860  1.1  christos as_unset=as_fn_unset
   21861  1.1  christos # as_fn_append VAR VALUE
   21862  1.1  christos # ----------------------
   21863  1.1  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
   21864  1.1  christos # advantage of any shell optimizations that allow amortized linear growth over
   21865  1.1  christos # repeated appends, instead of the typical quadratic growth present in naive
   21866  1.1  christos # implementations.
   21867  1.1  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   21868  1.1  christos   eval 'as_fn_append ()
   21869  1.1  christos   {
   21870  1.1  christos     eval $1+=\$2
   21871  1.1  christos   }'
   21872  1.1  christos else
   21873  1.1  christos   as_fn_append ()
   21874  1.1  christos   {
   21875  1.1  christos     eval $1=\$$1\$2
   21876  1.1  christos   }
   21877  1.1  christos fi # as_fn_append
   21878  1.1  christos 
   21879  1.1  christos # as_fn_arith ARG...
   21880  1.1  christos # ------------------
   21881  1.1  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
   21882  1.1  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
   21883  1.1  christos # must be portable across $(()) and expr.
   21884  1.1  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   21885  1.1  christos   eval 'as_fn_arith ()
   21886  1.1  christos   {
   21887  1.1  christos     as_val=$(( $* ))
   21888  1.1  christos   }'
   21889  1.1  christos else
   21890  1.1  christos   as_fn_arith ()
   21891  1.1  christos   {
   21892  1.1  christos     as_val=`expr "$@" || test $? -eq 1`
   21893  1.1  christos   }
   21894  1.1  christos fi # as_fn_arith
   21895  1.1  christos 
   21896  1.1  christos 
   21897  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
   21898  1.1  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21899  1.1  christos   as_expr=expr
   21900  1.1  christos else
   21901  1.1  christos   as_expr=false
   21902  1.1  christos fi
   21903  1.1  christos 
   21904  1.1  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21905  1.1  christos   as_basename=basename
   21906  1.1  christos else
   21907  1.1  christos   as_basename=false
   21908  1.1  christos fi
   21909  1.1  christos 
   21910  1.1  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21911  1.1  christos   as_dirname=dirname
   21912  1.1  christos else
   21913  1.1  christos   as_dirname=false
   21914  1.1  christos fi
   21915  1.1  christos 
   21916  1.1  christos as_me=`$as_basename -- "$0" ||
   21917  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21918  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
   21919  1.1  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21920  1.1  christos $as_echo X/"$0" |
   21921  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21922  1.1  christos 	    s//\1/
   21923  1.1  christos 	    q
   21924  1.1  christos 	  }
   21925  1.1  christos 	  /^X\/\(\/\/\)$/{
   21926  1.1  christos 	    s//\1/
   21927  1.1  christos 	    q
   21928  1.1  christos 	  }
   21929  1.1  christos 	  /^X\/\(\/\).*/{
   21930  1.1  christos 	    s//\1/
   21931  1.1  christos 	    q
   21932  1.1  christos 	  }
   21933  1.1  christos 	  s/.*/./; q'`
   21934  1.1  christos 
   21935  1.1  christos # Avoid depending upon Character Ranges.
   21936  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21937  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21938  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21939  1.1  christos as_cr_digits='0123456789'
   21940  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
   21941  1.1  christos 
   21942  1.1  christos ECHO_C= ECHO_N= ECHO_T=
   21943  1.1  christos case `echo -n x` in #(((((
   21944  1.1  christos -n*)
   21945  1.1  christos   case `echo 'xy\c'` in
   21946  1.1  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21947  1.1  christos   xy)  ECHO_C='\c';;
   21948  1.1  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   21949  1.1  christos        ECHO_T='	';;
   21950  1.1  christos   esac;;
   21951  1.1  christos *)
   21952  1.1  christos   ECHO_N='-n';;
   21953  1.1  christos esac
   21954  1.1  christos 
   21955  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   21956  1.1  christos if test -d conf$$.dir; then
   21957  1.1  christos   rm -f conf$$.dir/conf$$.file
   21958  1.1  christos else
   21959  1.1  christos   rm -f conf$$.dir
   21960  1.1  christos   mkdir conf$$.dir 2>/dev/null
   21961  1.1  christos fi
   21962  1.1  christos if (echo >conf$$.file) 2>/dev/null; then
   21963  1.1  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
   21964  1.1  christos     as_ln_s='ln -s'
   21965  1.1  christos     # ... but there are two gotchas:
   21966  1.1  christos     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21967  1.1  christos     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21968  1.1  christos     # In both cases, we have to default to `cp -pR'.
   21969  1.1  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21970  1.1  christos       as_ln_s='cp -pR'
   21971  1.1  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
   21972  1.1  christos     as_ln_s=ln
   21973  1.1  christos   else
   21974  1.1  christos     as_ln_s='cp -pR'
   21975  1.1  christos   fi
   21976  1.1  christos else
   21977  1.1  christos   as_ln_s='cp -pR'
   21978  1.1  christos fi
   21979  1.1  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21980  1.1  christos rmdir conf$$.dir 2>/dev/null
   21981  1.1  christos 
   21982  1.1  christos 
   21983  1.1  christos # as_fn_mkdir_p
   21984  1.1  christos # -------------
   21985  1.1  christos # Create "$as_dir" as a directory, including parents if necessary.
   21986  1.1  christos as_fn_mkdir_p ()
   21987  1.1  christos {
   21988  1.1  christos 
   21989  1.1  christos   case $as_dir in #(
   21990  1.1  christos   -*) as_dir=./$as_dir;;
   21991  1.1  christos   esac
   21992  1.1  christos   test -d "$as_dir" || eval $as_mkdir_p || {
   21993  1.1  christos     as_dirs=
   21994  1.1  christos     while :; do
   21995  1.1  christos       case $as_dir in #(
   21996  1.1  christos       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   21997  1.1  christos       *) as_qdir=$as_dir;;
   21998  1.1  christos       esac
   21999  1.1  christos       as_dirs="'$as_qdir' $as_dirs"
   22000  1.1  christos       as_dir=`$as_dirname -- "$as_dir" ||
   22001  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22002  1.1  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   22003  1.1  christos 	 X"$as_dir" : 'X\(//\)$' \| \
   22004  1.1  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   22005  1.1  christos $as_echo X"$as_dir" |
   22006  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22007  1.1  christos 	    s//\1/
   22008  1.1  christos 	    q
   22009  1.1  christos 	  }
   22010  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   22011  1.1  christos 	    s//\1/
   22012  1.1  christos 	    q
   22013  1.1  christos 	  }
   22014  1.1  christos 	  /^X\(\/\/\)$/{
   22015  1.1  christos 	    s//\1/
   22016  1.1  christos 	    q
   22017  1.1  christos 	  }
   22018  1.1  christos 	  /^X\(\/\).*/{
   22019  1.1  christos 	    s//\1/
   22020  1.1  christos 	    q
   22021  1.1  christos 	  }
   22022  1.1  christos 	  s/.*/./; q'`
   22023  1.1  christos       test -d "$as_dir" && break
   22024  1.1  christos     done
   22025  1.1  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22026  1.1  christos   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   22027  1.1  christos 
   22028  1.1  christos 
   22029  1.1  christos } # as_fn_mkdir_p
   22030  1.1  christos if mkdir -p . 2>/dev/null; then
   22031  1.1  christos   as_mkdir_p='mkdir -p "$as_dir"'
   22032  1.1  christos else
   22033  1.1  christos   test -d ./-p && rmdir ./-p
   22034  1.1  christos   as_mkdir_p=false
   22035  1.1  christos fi
   22036  1.1  christos 
   22037  1.1  christos 
   22038  1.1  christos # as_fn_executable_p FILE
   22039  1.1  christos # -----------------------
   22040  1.1  christos # Test if FILE is an executable regular file.
   22041  1.1  christos as_fn_executable_p ()
   22042  1.1  christos {
   22043  1.1  christos   test -f "$1" && test -x "$1"
   22044  1.1  christos } # as_fn_executable_p
   22045  1.1  christos as_test_x='test -x'
   22046  1.1  christos as_executable_p=as_fn_executable_p
   22047  1.1  christos 
   22048  1.1  christos # Sed expression to map a string onto a valid CPP name.
   22049  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   22050  1.1  christos 
   22051  1.1  christos # Sed expression to map a string onto a valid variable name.
   22052  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   22053  1.1  christos 
   22054  1.1  christos 
   22055  1.1  christos exec 6>&1
   22056  1.1  christos ## ----------------------------------- ##
   22057  1.1  christos ## Main body of $CONFIG_STATUS script. ##
   22058  1.1  christos ## ----------------------------------- ##
   22059  1.1  christos _ASEOF
   22060  1.1  christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   22061  1.1  christos 
   22062  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22063  1.1  christos # Save the log message, to keep $0 and so on meaningful, and to
   22064  1.1  christos # report actual input values of CONFIG_FILES etc. instead of their
   22065  1.1  christos # values after options handling.
   22066  1.1  christos ac_log="
   22067  1.3  christos This file was extended by BIND $as_me 9.13, which was
   22068  1.1  christos generated by GNU Autoconf 2.69.  Invocation command line was
   22069  1.1  christos 
   22070  1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   22071  1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   22072  1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   22073  1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   22074  1.1  christos   $ $0 $@
   22075  1.1  christos 
   22076  1.1  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   22077  1.1  christos "
   22078  1.1  christos 
   22079  1.1  christos _ACEOF
   22080  1.1  christos 
   22081  1.1  christos case $ac_config_files in *"
   22082  1.1  christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
   22083  1.1  christos esac
   22084  1.1  christos 
   22085  1.1  christos case $ac_config_headers in *"
   22086  1.1  christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   22087  1.1  christos esac
   22088  1.1  christos 
   22089  1.1  christos 
   22090  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22091  1.1  christos # Files that config.status was made for.
   22092  1.1  christos config_files="$ac_config_files"
   22093  1.1  christos config_headers="$ac_config_headers"
   22094  1.1  christos config_commands="$ac_config_commands"
   22095  1.1  christos 
   22096  1.1  christos _ACEOF
   22097  1.1  christos 
   22098  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22099  1.1  christos ac_cs_usage="\
   22100  1.1  christos \`$as_me' instantiates files and other configuration actions
   22101  1.1  christos from templates according to the current configuration.  Unless the files
   22102  1.1  christos and actions are specified as TAGs, all are instantiated by default.
   22103  1.1  christos 
   22104  1.1  christos Usage: $0 [OPTION]... [TAG]...
   22105  1.1  christos 
   22106  1.1  christos   -h, --help       print this help, then exit
   22107  1.1  christos   -V, --version    print version number and configuration settings, then exit
   22108  1.1  christos       --config     print configuration, then exit
   22109  1.1  christos   -q, --quiet, --silent
   22110  1.1  christos                    do not print progress messages
   22111  1.1  christos   -d, --debug      don't remove temporary files
   22112  1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   22113  1.1  christos       --file=FILE[:TEMPLATE]
   22114  1.1  christos                    instantiate the configuration file FILE
   22115  1.1  christos       --header=FILE[:TEMPLATE]
   22116  1.1  christos                    instantiate the configuration header FILE
   22117  1.1  christos 
   22118  1.1  christos Configuration files:
   22119  1.1  christos $config_files
   22120  1.1  christos 
   22121  1.1  christos Configuration headers:
   22122  1.1  christos $config_headers
   22123  1.1  christos 
   22124  1.1  christos Configuration commands:
   22125  1.1  christos $config_commands
   22126  1.1  christos 
   22127  1.1  christos Report bugs to <info@isc.org>.
   22128  1.1  christos BIND home page: <https://www.isc.org/downloads/BIND/>."
   22129  1.1  christos 
   22130  1.1  christos _ACEOF
   22131  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22132  1.1  christos ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   22133  1.1  christos ac_cs_version="\\
   22134  1.3  christos BIND config.status 9.13
   22135  1.1  christos configured by $0, generated by GNU Autoconf 2.69,
   22136  1.1  christos   with options \\"\$ac_cs_config\\"
   22137  1.1  christos 
   22138  1.1  christos Copyright (C) 2012 Free Software Foundation, Inc.
   22139  1.1  christos This config.status script is free software; the Free Software Foundation
   22140  1.1  christos gives unlimited permission to copy, distribute and modify it."
   22141  1.1  christos 
   22142  1.1  christos ac_pwd='$ac_pwd'
   22143  1.1  christos srcdir='$srcdir'
   22144  1.1  christos INSTALL='$INSTALL'
   22145  1.1  christos AWK='$AWK'
   22146  1.1  christos test -n "\$AWK" || AWK=awk
   22147  1.1  christos _ACEOF
   22148  1.1  christos 
   22149  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22150  1.1  christos # The default lists apply if the user does not specify any file.
   22151  1.1  christos ac_need_defaults=:
   22152  1.1  christos while test $# != 0
   22153  1.1  christos do
   22154  1.1  christos   case $1 in
   22155  1.1  christos   --*=?*)
   22156  1.1  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22157  1.1  christos     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   22158  1.1  christos     ac_shift=:
   22159  1.1  christos     ;;
   22160  1.1  christos   --*=)
   22161  1.1  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22162  1.1  christos     ac_optarg=
   22163  1.1  christos     ac_shift=:
   22164  1.1  christos     ;;
   22165  1.1  christos   *)
   22166  1.1  christos     ac_option=$1
   22167  1.1  christos     ac_optarg=$2
   22168  1.1  christos     ac_shift=shift
   22169  1.1  christos     ;;
   22170  1.1  christos   esac
   22171  1.1  christos 
   22172  1.1  christos   case $ac_option in
   22173  1.1  christos   # Handling of the options.
   22174  1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   22175  1.1  christos     ac_cs_recheck=: ;;
   22176  1.1  christos   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   22177  1.1  christos     $as_echo "$ac_cs_version"; exit ;;
   22178  1.1  christos   --config | --confi | --conf | --con | --co | --c )
   22179  1.1  christos     $as_echo "$ac_cs_config"; exit ;;
   22180  1.1  christos   --debug | --debu | --deb | --de | --d | -d )
   22181  1.1  christos     debug=: ;;
   22182  1.1  christos   --file | --fil | --fi | --f )
   22183  1.1  christos     $ac_shift
   22184  1.1  christos     case $ac_optarg in
   22185  1.1  christos     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22186  1.1  christos     '') as_fn_error $? "missing file argument" ;;
   22187  1.1  christos     esac
   22188  1.1  christos     as_fn_append CONFIG_FILES " '$ac_optarg'"
   22189  1.1  christos     ac_need_defaults=false;;
   22190  1.1  christos   --header | --heade | --head | --hea )
   22191  1.1  christos     $ac_shift
   22192  1.1  christos     case $ac_optarg in
   22193  1.1  christos     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22194  1.1  christos     esac
   22195  1.1  christos     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   22196  1.1  christos     ac_need_defaults=false;;
   22197  1.1  christos   --he | --h)
   22198  1.1  christos     # Conflict between --help and --header
   22199  1.1  christos     as_fn_error $? "ambiguous option: \`$1'
   22200  1.1  christos Try \`$0 --help' for more information.";;
   22201  1.1  christos   --help | --hel | -h )
   22202  1.1  christos     $as_echo "$ac_cs_usage"; exit ;;
   22203  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   22204  1.1  christos   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   22205  1.1  christos     ac_cs_silent=: ;;
   22206  1.1  christos 
   22207  1.1  christos   # This is an error.
   22208  1.1  christos   -*) as_fn_error $? "unrecognized option: \`$1'
   22209  1.1  christos Try \`$0 --help' for more information." ;;
   22210  1.1  christos 
   22211  1.1  christos   *) as_fn_append ac_config_targets " $1"
   22212  1.1  christos      ac_need_defaults=false ;;
   22213  1.1  christos 
   22214  1.1  christos   esac
   22215  1.1  christos   shift
   22216  1.1  christos done
   22217  1.1  christos 
   22218  1.1  christos ac_configure_extra_args=
   22219  1.1  christos 
   22220  1.1  christos if $ac_cs_silent; then
   22221  1.1  christos   exec 6>/dev/null
   22222  1.1  christos   ac_configure_extra_args="$ac_configure_extra_args --silent"
   22223  1.1  christos fi
   22224  1.1  christos 
   22225  1.1  christos _ACEOF
   22226  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22227  1.1  christos if \$ac_cs_recheck; then
   22228  1.1  christos   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   22229  1.1  christos   shift
   22230  1.1  christos   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   22231  1.1  christos   CONFIG_SHELL='$SHELL'
   22232  1.1  christos   export CONFIG_SHELL
   22233  1.1  christos   exec "\$@"
   22234  1.1  christos fi
   22235  1.1  christos 
   22236  1.1  christos _ACEOF
   22237  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22238  1.1  christos exec 5>>config.log
   22239  1.1  christos {
   22240  1.1  christos   echo
   22241  1.1  christos   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   22242  1.1  christos ## Running $as_me. ##
   22243  1.1  christos _ASBOX
   22244  1.1  christos   $as_echo "$ac_log"
   22245  1.1  christos } >&5
   22246  1.1  christos 
   22247  1.1  christos _ACEOF
   22248  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22249  1.1  christos #
   22250  1.1  christos # INIT-COMMANDS
   22251  1.1  christos #
   22252  1.1  christos 
   22253  1.1  christos 
   22254  1.1  christos # The HP-UX ksh and POSIX shell print the target directory to stdout
   22255  1.1  christos # if CDPATH is set.
   22256  1.1  christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   22257  1.1  christos 
   22258  1.1  christos sed_quote_subst='$sed_quote_subst'
   22259  1.1  christos double_quote_subst='$double_quote_subst'
   22260  1.1  christos delay_variable_subst='$delay_variable_subst'
   22261  1.1  christos macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   22262  1.1  christos macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   22263  1.1  christos enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   22264  1.1  christos enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   22265  1.1  christos pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   22266  1.1  christos enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   22267  1.1  christos shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   22268  1.1  christos SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   22269  1.1  christos ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   22270  1.1  christos PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   22271  1.1  christos host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   22272  1.1  christos host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   22273  1.1  christos host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   22274  1.1  christos build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   22275  1.1  christos build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   22276  1.1  christos build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   22277  1.1  christos SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   22278  1.1  christos Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   22279  1.1  christos GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   22280  1.1  christos EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   22281  1.1  christos FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   22282  1.1  christos LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   22283  1.1  christos NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   22284  1.1  christos LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   22285  1.1  christos max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   22286  1.1  christos ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   22287  1.1  christos exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   22288  1.1  christos lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   22289  1.1  christos lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   22290  1.1  christos lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   22291  1.1  christos lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   22292  1.1  christos lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   22293  1.1  christos reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   22294  1.1  christos reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   22295  1.1  christos OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   22296  1.1  christos deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   22297  1.1  christos file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   22298  1.1  christos file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   22299  1.1  christos want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   22300  1.1  christos DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   22301  1.1  christos sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   22302  1.1  christos AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   22303  1.1  christos AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   22304  1.1  christos archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   22305  1.1  christos STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   22306  1.1  christos RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   22307  1.1  christos old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22308  1.1  christos old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22309  1.1  christos old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   22310  1.1  christos lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   22311  1.1  christos CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   22312  1.1  christos CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   22313  1.1  christos compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   22314  1.1  christos GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   22315  1.1  christos lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   22316  1.1  christos lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   22317  1.1  christos lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   22318  1.1  christos 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  1.1  christos 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  1.1  christos lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   22321  1.1  christos nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   22322  1.1  christos lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   22323  1.1  christos lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   22324  1.1  christos objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   22325  1.1  christos MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   22326  1.1  christos lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   22327  1.1  christos lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   22328  1.1  christos lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   22329  1.1  christos lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   22330  1.1  christos lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   22331  1.1  christos need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   22332  1.1  christos MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   22333  1.1  christos DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   22334  1.1  christos NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   22335  1.1  christos LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   22336  1.1  christos OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   22337  1.1  christos OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   22338  1.1  christos libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   22339  1.1  christos shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   22340  1.1  christos extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22341  1.1  christos archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   22342  1.1  christos enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   22343  1.1  christos export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   22344  1.1  christos whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   22345  1.1  christos compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   22346  1.1  christos old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   22347  1.1  christos old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22348  1.1  christos archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   22349  1.1  christos archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22350  1.1  christos module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   22351  1.1  christos module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22352  1.1  christos with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   22353  1.1  christos allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22354  1.1  christos no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22355  1.1  christos hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   22356  1.1  christos hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   22357  1.1  christos hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   22358  1.1  christos hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   22359  1.1  christos hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   22360  1.1  christos hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22361  1.1  christos hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   22362  1.1  christos inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   22363  1.1  christos link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   22364  1.1  christos always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   22365  1.1  christos export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   22366  1.1  christos exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   22367  1.1  christos include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   22368  1.1  christos prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   22369  1.1  christos postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   22370  1.1  christos file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   22371  1.1  christos variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   22372  1.1  christos need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   22373  1.1  christos need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   22374  1.1  christos version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   22375  1.1  christos runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   22376  1.1  christos shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22377  1.1  christos shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   22378  1.1  christos libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   22379  1.1  christos library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   22380  1.1  christos soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   22381  1.1  christos install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   22382  1.1  christos postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22383  1.1  christos postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22384  1.1  christos finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   22385  1.1  christos finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   22386  1.1  christos hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   22387  1.1  christos sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   22388  1.1  christos configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   22389  1.1  christos configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   22390  1.1  christos hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   22391  1.1  christos enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   22392  1.1  christos enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   22393  1.1  christos enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   22394  1.1  christos old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   22395  1.1  christos striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   22396  1.1  christos 
   22397  1.1  christos LTCC='$LTCC'
   22398  1.1  christos LTCFLAGS='$LTCFLAGS'
   22399  1.1  christos compiler='$compiler_DEFAULT'
   22400  1.1  christos 
   22401  1.1  christos # A function that is used when there is no print builtin or printf.
   22402  1.1  christos func_fallback_echo ()
   22403  1.1  christos {
   22404  1.1  christos   eval 'cat <<_LTECHO_EOF
   22405  1.1  christos \$1
   22406  1.1  christos _LTECHO_EOF'
   22407  1.1  christos }
   22408  1.1  christos 
   22409  1.1  christos # Quote evaled strings.
   22410  1.1  christos for var in SHELL \
   22411  1.1  christos ECHO \
   22412  1.1  christos PATH_SEPARATOR \
   22413  1.1  christos SED \
   22414  1.1  christos GREP \
   22415  1.1  christos EGREP \
   22416  1.1  christos FGREP \
   22417  1.1  christos LD \
   22418  1.1  christos NM \
   22419  1.1  christos LN_S \
   22420  1.1  christos lt_SP2NL \
   22421  1.1  christos lt_NL2SP \
   22422  1.1  christos reload_flag \
   22423  1.1  christos OBJDUMP \
   22424  1.1  christos deplibs_check_method \
   22425  1.1  christos file_magic_cmd \
   22426  1.1  christos file_magic_glob \
   22427  1.1  christos want_nocaseglob \
   22428  1.1  christos DLLTOOL \
   22429  1.1  christos sharedlib_from_linklib_cmd \
   22430  1.1  christos AR \
   22431  1.1  christos AR_FLAGS \
   22432  1.1  christos archiver_list_spec \
   22433  1.1  christos STRIP \
   22434  1.1  christos RANLIB \
   22435  1.1  christos CC \
   22436  1.1  christos CFLAGS \
   22437  1.1  christos compiler \
   22438  1.1  christos lt_cv_sys_global_symbol_pipe \
   22439  1.1  christos lt_cv_sys_global_symbol_to_cdecl \
   22440  1.1  christos lt_cv_sys_global_symbol_to_import \
   22441  1.1  christos lt_cv_sys_global_symbol_to_c_name_address \
   22442  1.1  christos lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   22443  1.1  christos lt_cv_nm_interface \
   22444  1.1  christos nm_file_list_spec \
   22445  1.1  christos lt_cv_truncate_bin \
   22446  1.1  christos lt_prog_compiler_no_builtin_flag \
   22447  1.1  christos lt_prog_compiler_pic \
   22448  1.1  christos lt_prog_compiler_wl \
   22449  1.1  christos lt_prog_compiler_static \
   22450  1.1  christos lt_cv_prog_compiler_c_o \
   22451  1.1  christos need_locks \
   22452  1.1  christos MANIFEST_TOOL \
   22453  1.1  christos DSYMUTIL \
   22454  1.1  christos NMEDIT \
   22455  1.1  christos LIPO \
   22456  1.1  christos OTOOL \
   22457  1.1  christos OTOOL64 \
   22458  1.1  christos shrext_cmds \
   22459  1.1  christos export_dynamic_flag_spec \
   22460  1.1  christos whole_archive_flag_spec \
   22461  1.1  christos compiler_needs_object \
   22462  1.1  christos with_gnu_ld \
   22463  1.1  christos allow_undefined_flag \
   22464  1.1  christos no_undefined_flag \
   22465  1.1  christos hardcode_libdir_flag_spec \
   22466  1.1  christos hardcode_libdir_separator \
   22467  1.1  christos exclude_expsyms \
   22468  1.1  christos include_expsyms \
   22469  1.1  christos file_list_spec \
   22470  1.1  christos variables_saved_for_relink \
   22471  1.1  christos libname_spec \
   22472  1.1  christos library_names_spec \
   22473  1.1  christos soname_spec \
   22474  1.1  christos install_override_mode \
   22475  1.1  christos finish_eval \
   22476  1.1  christos old_striplib \
   22477  1.1  christos striplib; do
   22478  1.1  christos     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22479  1.1  christos     *[\\\\\\\`\\"\\\$]*)
   22480  1.1  christos       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22481  1.1  christos       ;;
   22482  1.1  christos     *)
   22483  1.1  christos       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22484  1.1  christos       ;;
   22485  1.1  christos     esac
   22486  1.1  christos done
   22487  1.1  christos 
   22488  1.1  christos # Double-quote double-evaled strings.
   22489  1.1  christos for var in reload_cmds \
   22490  1.1  christos old_postinstall_cmds \
   22491  1.1  christos old_postuninstall_cmds \
   22492  1.1  christos old_archive_cmds \
   22493  1.1  christos extract_expsyms_cmds \
   22494  1.1  christos old_archive_from_new_cmds \
   22495  1.1  christos old_archive_from_expsyms_cmds \
   22496  1.1  christos archive_cmds \
   22497  1.1  christos archive_expsym_cmds \
   22498  1.1  christos module_cmds \
   22499  1.1  christos module_expsym_cmds \
   22500  1.1  christos export_symbols_cmds \
   22501  1.1  christos prelink_cmds \
   22502  1.1  christos postlink_cmds \
   22503  1.1  christos postinstall_cmds \
   22504  1.1  christos postuninstall_cmds \
   22505  1.1  christos finish_cmds \
   22506  1.1  christos sys_lib_search_path_spec \
   22507  1.1  christos configure_time_dlsearch_path \
   22508  1.1  christos configure_time_lt_sys_library_path; do
   22509  1.1  christos     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22510  1.1  christos     *[\\\\\\\`\\"\\\$]*)
   22511  1.1  christos       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  1.1  christos       ;;
   22513  1.1  christos     *)
   22514  1.1  christos       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22515  1.1  christos       ;;
   22516  1.1  christos     esac
   22517  1.1  christos done
   22518  1.1  christos 
   22519  1.1  christos ac_aux_dir='$ac_aux_dir'
   22520  1.1  christos 
   22521  1.1  christos # See if we are running on zsh, and set the options that allow our
   22522  1.1  christos # commands through without removal of \ escapes INIT.
   22523  1.1  christos if test -n "\${ZSH_VERSION+set}"; then
   22524  1.1  christos    setopt NO_GLOB_SUBST
   22525  1.1  christos fi
   22526  1.1  christos 
   22527  1.1  christos 
   22528  1.1  christos     PACKAGE='$PACKAGE'
   22529  1.1  christos     VERSION='$VERSION'
   22530  1.1  christos     RM='$RM'
   22531  1.1  christos     ofile='$ofile'
   22532  1.1  christos 
   22533  1.1  christos 
   22534  1.1  christos 
   22535  1.1  christos 
   22536  1.1  christos _ACEOF
   22537  1.1  christos 
   22538  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22539  1.1  christos 
   22540  1.1  christos # Handling of arguments.
   22541  1.1  christos for ac_config_target in $ac_config_targets
   22542  1.1  christos do
   22543  1.1  christos   case $ac_config_target in
   22544  1.1  christos     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   22545  1.1  christos     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   22546  1.1  christos     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   22547  1.1  christos     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   22548  1.1  christos     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   22549  1.1  christos     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   22550  1.1  christos     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   22551  1.1  christos     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   22552  1.1  christos     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   22553  1.1  christos     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   22554  1.1  christos     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   22555  1.1  christos     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   22556  1.1  christos     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   22557  1.1  christos     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   22558  1.1  christos     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   22559  1.1  christos     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   22560  1.1  christos     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   22561  1.1  christos     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   22562  1.1  christos     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   22563  1.1  christos     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   22564  1.1  christos     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   22565  1.1  christos     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   22566  1.1  christos     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   22567  1.3  christos     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   22568  1.1  christos     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   22569  1.1  christos     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   22570  1.1  christos     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   22571  1.1  christos     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   22572  1.1  christos     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   22573  1.1  christos     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   22574  1.1  christos     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   22575  1.1  christos     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   22576  1.1  christos     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   22577  1.1  christos     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   22578  1.1  christos     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   22579  1.1  christos     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   22580  1.1  christos     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   22581  1.1  christos     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   22582  1.1  christos     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   22583  1.1  christos     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   22584  1.1  christos     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   22585  1.1  christos     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   22586  1.1  christos     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   22587  1.1  christos     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   22588  1.1  christos     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   22589  1.1  christos     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   22590  1.1  christos     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   22591  1.1  christos     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   22592  1.1  christos     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   22593  1.1  christos     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   22594  1.1  christos     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   22595  1.1  christos     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   22596  1.1  christos     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   22597  1.1  christos     "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;;
   22598  1.1  christos     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   22599  1.1  christos     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   22600  1.1  christos     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   22601  1.1  christos     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   22602  1.1  christos     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   22603  1.1  christos     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   22604  1.1  christos     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   22605  1.1  christos     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   22606  1.1  christos     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   22607  1.1  christos     "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
   22608  1.1  christos     "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
   22609  1.1  christos     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   22610  1.1  christos     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   22611  1.1  christos     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   22612  1.1  christos     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   22613  1.1  christos     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   22614  1.1  christos     "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
   22615  1.1  christos     "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
   22616  1.1  christos     "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
   22617  1.1  christos     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   22618  1.1  christos     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   22619  1.1  christos     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   22620  1.1  christos     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   22621  1.1  christos     "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
   22622  1.1  christos     "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
   22623  1.1  christos     "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
   22624  1.1  christos     "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
   22625  1.1  christos     "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
   22626  1.1  christos     "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
   22627  1.1  christos     "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
   22628  1.1  christos     "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
   22629  1.1  christos     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   22630  1.1  christos     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   22631  1.1  christos     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   22632  1.1  christos     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   22633  1.1  christos     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   22634  1.1  christos     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   22635  1.1  christos     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   22636  1.1  christos     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   22637  1.1  christos     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   22638  1.1  christos     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   22639  1.1  christos     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   22640  1.1  christos     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   22641  1.1  christos     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   22642  1.1  christos     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   22643  1.1  christos     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   22644  1.3  christos     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   22645  1.3  christos     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   22646  1.3  christos     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   22647  1.1  christos     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   22648  1.1  christos     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   22649  1.1  christos     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   22650  1.1  christos     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   22651  1.1  christos     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   22652  1.1  christos     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   22653  1.1  christos     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   22654  1.1  christos     "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
   22655  1.1  christos     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   22656  1.1  christos     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   22657  1.1  christos     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   22658  1.1  christos     "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
   22659  1.1  christos     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   22660  1.1  christos     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   22661  1.1  christos     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   22662  1.3  christos     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   22663  1.1  christos     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   22664  1.1  christos     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   22665  1.1  christos     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   22666  1.1  christos     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   22667  1.1  christos     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   22668  1.1  christos     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   22669  1.1  christos     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   22670  1.1  christos     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   22671  1.1  christos     "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
   22672  1.1  christos     "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
   22673  1.1  christos     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   22674  1.3  christos     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   22675  1.1  christos 
   22676  1.1  christos   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   22677  1.1  christos   esac
   22678  1.1  christos done
   22679  1.1  christos 
   22680  1.1  christos 
   22681  1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   22682  1.1  christos # then the envvar interface is used.  Set only those that are not.
   22683  1.1  christos # We use the long form for the default assignment because of an extremely
   22684  1.1  christos # bizarre bug on SunOS 4.1.3.
   22685  1.1  christos if $ac_need_defaults; then
   22686  1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   22687  1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   22688  1.1  christos   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   22689  1.1  christos fi
   22690  1.1  christos 
   22691  1.1  christos # Have a temporary directory for convenience.  Make it in the build tree
   22692  1.1  christos # simply because there is no reason against having it here, and in addition,
   22693  1.1  christos # creating and moving files from /tmp can sometimes cause problems.
   22694  1.1  christos # Hook for its removal unless debugging.
   22695  1.1  christos # Note that there is a small window in which the directory will not be cleaned:
   22696  1.1  christos # after its creation but before its name has been assigned to `$tmp'.
   22697  1.1  christos $debug ||
   22698  1.1  christos {
   22699  1.1  christos   tmp= ac_tmp=
   22700  1.1  christos   trap 'exit_status=$?
   22701  1.1  christos   : "${ac_tmp:=$tmp}"
   22702  1.1  christos   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   22703  1.1  christos ' 0
   22704  1.1  christos   trap 'as_fn_exit 1' 1 2 13 15
   22705  1.1  christos }
   22706  1.1  christos # Create a (secure) tmp directory for tmp files.
   22707  1.1  christos 
   22708  1.1  christos {
   22709  1.1  christos   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   22710  1.1  christos   test -d "$tmp"
   22711  1.1  christos }  ||
   22712  1.1  christos {
   22713  1.1  christos   tmp=./conf$$-$RANDOM
   22714  1.1  christos   (umask 077 && mkdir "$tmp")
   22715  1.1  christos } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   22716  1.1  christos ac_tmp=$tmp
   22717  1.1  christos 
   22718  1.1  christos # Set up the scripts for CONFIG_FILES section.
   22719  1.1  christos # No need to generate them if there are no CONFIG_FILES.
   22720  1.1  christos # This happens for instance with `./config.status config.h'.
   22721  1.1  christos if test -n "$CONFIG_FILES"; then
   22722  1.1  christos 
   22723  1.1  christos if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   22724  1.1  christos   ac_cs_awk_getline=:
   22725  1.1  christos   ac_cs_awk_pipe_init=
   22726  1.1  christos   ac_cs_awk_read_file='
   22727  1.1  christos       while ((getline aline < (F[key])) > 0)
   22728  1.1  christos 	print(aline)
   22729  1.1  christos       close(F[key])'
   22730  1.1  christos   ac_cs_awk_pipe_fini=
   22731  1.1  christos else
   22732  1.1  christos   ac_cs_awk_getline=false
   22733  1.1  christos   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   22734  1.1  christos   ac_cs_awk_read_file='
   22735  1.1  christos       print "|#_!!_#|"
   22736  1.1  christos       print "cat " F[key] " &&"
   22737  1.1  christos       '$ac_cs_awk_pipe_init
   22738  1.1  christos   # The final `:' finishes the AND list.
   22739  1.1  christos   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   22740  1.1  christos fi
   22741  1.1  christos ac_cr=`echo X | tr X '\015'`
   22742  1.1  christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
   22743  1.1  christos # But we know of no other shell where ac_cr would be empty at this
   22744  1.1  christos # point, so we can use a bashism as a fallback.
   22745  1.1  christos if test "x$ac_cr" = x; then
   22746  1.1  christos   eval ac_cr=\$\'\\r\'
   22747  1.1  christos fi
   22748  1.1  christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   22749  1.1  christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   22750  1.1  christos   ac_cs_awk_cr='\\r'
   22751  1.1  christos else
   22752  1.1  christos   ac_cs_awk_cr=$ac_cr
   22753  1.1  christos fi
   22754  1.1  christos 
   22755  1.1  christos echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   22756  1.1  christos _ACEOF
   22757  1.1  christos 
   22758  1.1  christos # Create commands to substitute file output variables.
   22759  1.1  christos {
   22760  1.1  christos   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   22761  1.1  christos   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   22762  1.1  christos   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   22763  1.1  christos   echo "_ACAWK" &&
   22764  1.1  christos   echo "_ACEOF"
   22765  1.1  christos } >conf$$files.sh &&
   22766  1.1  christos . ./conf$$files.sh ||
   22767  1.1  christos   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22768  1.1  christos rm -f conf$$files.sh
   22769  1.1  christos 
   22770  1.1  christos {
   22771  1.1  christos   echo "cat >conf$$subs.awk <<_ACEOF" &&
   22772  1.1  christos   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   22773  1.1  christos   echo "_ACEOF"
   22774  1.1  christos } >conf$$subs.sh ||
   22775  1.1  christos   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22776  1.1  christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   22777  1.1  christos ac_delim='%!_!# '
   22778  1.1  christos for ac_last_try in false false false false false :; do
   22779  1.1  christos   . ./conf$$subs.sh ||
   22780  1.1  christos     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22781  1.1  christos 
   22782  1.1  christos   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   22783  1.1  christos   if test $ac_delim_n = $ac_delim_num; then
   22784  1.1  christos     break
   22785  1.1  christos   elif $ac_last_try; then
   22786  1.1  christos     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22787  1.1  christos   else
   22788  1.1  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22789  1.1  christos   fi
   22790  1.1  christos done
   22791  1.1  christos rm -f conf$$subs.sh
   22792  1.1  christos 
   22793  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22794  1.1  christos cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   22795  1.1  christos _ACEOF
   22796  1.1  christos sed -n '
   22797  1.1  christos h
   22798  1.1  christos s/^/S["/; s/!.*/"]=/
   22799  1.1  christos p
   22800  1.1  christos g
   22801  1.1  christos s/^[^!]*!//
   22802  1.1  christos :repl
   22803  1.1  christos t repl
   22804  1.1  christos s/'"$ac_delim"'$//
   22805  1.1  christos t delim
   22806  1.1  christos :nl
   22807  1.1  christos h
   22808  1.1  christos s/\(.\{148\}\)..*/\1/
   22809  1.1  christos t more1
   22810  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   22811  1.1  christos p
   22812  1.1  christos n
   22813  1.1  christos b repl
   22814  1.1  christos :more1
   22815  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22816  1.1  christos p
   22817  1.1  christos g
   22818  1.1  christos s/.\{148\}//
   22819  1.1  christos t nl
   22820  1.1  christos :delim
   22821  1.1  christos h
   22822  1.1  christos s/\(.\{148\}\)..*/\1/
   22823  1.1  christos t more2
   22824  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/"/
   22825  1.1  christos p
   22826  1.1  christos b
   22827  1.1  christos :more2
   22828  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22829  1.1  christos p
   22830  1.1  christos g
   22831  1.1  christos s/.\{148\}//
   22832  1.1  christos t delim
   22833  1.1  christos ' <conf$$subs.awk | sed '
   22834  1.1  christos /^[^""]/{
   22835  1.1  christos   N
   22836  1.1  christos   s/\n//
   22837  1.1  christos }
   22838  1.1  christos ' >>$CONFIG_STATUS || ac_write_fail=1
   22839  1.1  christos rm -f conf$$subs.awk
   22840  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22841  1.1  christos _ACAWK
   22842  1.1  christos cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   22843  1.1  christos   for (key in S) S_is_set[key] = 1
   22844  1.1  christos   FS = ""
   22845  1.1  christos   \$ac_cs_awk_pipe_init
   22846  1.1  christos }
   22847  1.1  christos {
   22848  1.1  christos   line = $ 0
   22849  1.1  christos   nfields = split(line, field, "@")
   22850  1.1  christos   substed = 0
   22851  1.1  christos   len = length(field[1])
   22852  1.1  christos   for (i = 2; i < nfields; i++) {
   22853  1.1  christos     key = field[i]
   22854  1.1  christos     keylen = length(key)
   22855  1.1  christos     if (S_is_set[key]) {
   22856  1.1  christos       value = S[key]
   22857  1.1  christos       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   22858  1.1  christos       len += length(value) + length(field[++i])
   22859  1.1  christos       substed = 1
   22860  1.1  christos     } else
   22861  1.1  christos       len += 1 + keylen
   22862  1.1  christos   }
   22863  1.1  christos   if (nfields == 3 && !substed) {
   22864  1.1  christos     key = field[2]
   22865  1.1  christos     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   22866  1.1  christos       \$ac_cs_awk_read_file
   22867  1.1  christos       next
   22868  1.1  christos     }
   22869  1.1  christos   }
   22870  1.1  christos   print line
   22871  1.1  christos }
   22872  1.1  christos \$ac_cs_awk_pipe_fini
   22873  1.1  christos _ACAWK
   22874  1.1  christos _ACEOF
   22875  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22876  1.1  christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   22877  1.1  christos   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   22878  1.1  christos else
   22879  1.1  christos   cat
   22880  1.1  christos fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   22881  1.1  christos   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   22882  1.1  christos _ACEOF
   22883  1.1  christos 
   22884  1.1  christos # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   22885  1.1  christos # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   22886  1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   22887  1.1  christos # (actually we leave an empty line to preserve line numbers).
   22888  1.1  christos if test "x$srcdir" = x.; then
   22889  1.1  christos   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   22890  1.1  christos h
   22891  1.1  christos s///
   22892  1.1  christos s/^/:/
   22893  1.1  christos s/[	 ]*$/:/
   22894  1.1  christos s/:\$(srcdir):/:/g
   22895  1.1  christos s/:\${srcdir}:/:/g
   22896  1.1  christos s/:@srcdir@:/:/g
   22897  1.1  christos s/^:*//
   22898  1.1  christos s/:*$//
   22899  1.1  christos x
   22900  1.1  christos s/\(=[	 ]*\).*/\1/
   22901  1.1  christos G
   22902  1.1  christos s/\n//
   22903  1.1  christos s/^[^=]*=[	 ]*$//
   22904  1.1  christos }'
   22905  1.1  christos fi
   22906  1.1  christos 
   22907  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22908  1.1  christos fi # test -n "$CONFIG_FILES"
   22909  1.1  christos 
   22910  1.1  christos # Set up the scripts for CONFIG_HEADERS section.
   22911  1.1  christos # No need to generate them if there are no CONFIG_HEADERS.
   22912  1.1  christos # This happens for instance with `./config.status Makefile'.
   22913  1.1  christos if test -n "$CONFIG_HEADERS"; then
   22914  1.1  christos cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   22915  1.1  christos BEGIN {
   22916  1.1  christos _ACEOF
   22917  1.1  christos 
   22918  1.1  christos # Transform confdefs.h into an awk script `defines.awk', embedded as
   22919  1.1  christos # here-document in config.status, that substitutes the proper values into
   22920  1.1  christos # config.h.in to produce config.h.
   22921  1.1  christos 
   22922  1.1  christos # Create a delimiter string that does not exist in confdefs.h, to ease
   22923  1.1  christos # handling of long lines.
   22924  1.1  christos ac_delim='%!_!# '
   22925  1.1  christos for ac_last_try in false false :; do
   22926  1.1  christos   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   22927  1.1  christos   if test -z "$ac_tt"; then
   22928  1.1  christos     break
   22929  1.1  christos   elif $ac_last_try; then
   22930  1.1  christos     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   22931  1.1  christos   else
   22932  1.1  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22933  1.1  christos   fi
   22934  1.1  christos done
   22935  1.1  christos 
   22936  1.1  christos # For the awk script, D is an array of macro values keyed by name,
   22937  1.1  christos # likewise P contains macro parameters if any.  Preserve backslash
   22938  1.1  christos # newline sequences.
   22939  1.1  christos 
   22940  1.1  christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   22941  1.1  christos sed -n '
   22942  1.1  christos s/.\{148\}/&'"$ac_delim"'/g
   22943  1.1  christos t rset
   22944  1.1  christos :rset
   22945  1.1  christos s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   22946  1.1  christos t def
   22947  1.1  christos d
   22948  1.1  christos :def
   22949  1.1  christos s/\\$//
   22950  1.1  christos t bsnl
   22951  1.1  christos s/["\\]/\\&/g
   22952  1.1  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22953  1.1  christos D["\1"]=" \3"/p
   22954  1.1  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   22955  1.1  christos d
   22956  1.1  christos :bsnl
   22957  1.1  christos s/["\\]/\\&/g
   22958  1.1  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22959  1.1  christos D["\1"]=" \3\\\\\\n"\\/p
   22960  1.1  christos t cont
   22961  1.1  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   22962  1.1  christos t cont
   22963  1.1  christos d
   22964  1.1  christos :cont
   22965  1.1  christos n
   22966  1.1  christos s/.\{148\}/&'"$ac_delim"'/g
   22967  1.1  christos t clear
   22968  1.1  christos :clear
   22969  1.1  christos s/\\$//
   22970  1.1  christos t bsnlc
   22971  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
   22972  1.1  christos d
   22973  1.1  christos :bsnlc
   22974  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   22975  1.1  christos b cont
   22976  1.1  christos ' <confdefs.h | sed '
   22977  1.1  christos s/'"$ac_delim"'/"\\\
   22978  1.1  christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
   22979  1.1  christos 
   22980  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22981  1.1  christos   for (key in D) D_is_set[key] = 1
   22982  1.1  christos   FS = ""
   22983  1.1  christos }
   22984  1.1  christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   22985  1.1  christos   line = \$ 0
   22986  1.1  christos   split(line, arg, " ")
   22987  1.1  christos   if (arg[1] == "#") {
   22988  1.1  christos     defundef = arg[2]
   22989  1.1  christos     mac1 = arg[3]
   22990  1.1  christos   } else {
   22991  1.1  christos     defundef = substr(arg[1], 2)
   22992  1.1  christos     mac1 = arg[2]
   22993  1.1  christos   }
   22994  1.1  christos   split(mac1, mac2, "(") #)
   22995  1.1  christos   macro = mac2[1]
   22996  1.1  christos   prefix = substr(line, 1, index(line, defundef) - 1)
   22997  1.1  christos   if (D_is_set[macro]) {
   22998  1.1  christos     # Preserve the white space surrounding the "#".
   22999  1.1  christos     print prefix "define", macro P[macro] D[macro]
   23000  1.1  christos     next
   23001  1.1  christos   } else {
   23002  1.1  christos     # Replace #undef with comments.  This is necessary, for example,
   23003  1.1  christos     # in the case of _POSIX_SOURCE, which is predefined and required
   23004  1.1  christos     # on some systems where configure will not decide to define it.
   23005  1.1  christos     if (defundef == "undef") {
   23006  1.1  christos       print "/*", prefix defundef, macro, "*/"
   23007  1.1  christos       next
   23008  1.1  christos     }
   23009  1.1  christos   }
   23010  1.1  christos }
   23011  1.1  christos { print }
   23012  1.1  christos _ACAWK
   23013  1.1  christos _ACEOF
   23014  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23015  1.1  christos   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   23016  1.1  christos fi # test -n "$CONFIG_HEADERS"
   23017  1.1  christos 
   23018  1.1  christos 
   23019  1.1  christos eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   23020  1.1  christos shift
   23021  1.1  christos for ac_tag
   23022  1.1  christos do
   23023  1.1  christos   case $ac_tag in
   23024  1.1  christos   :[FHLC]) ac_mode=$ac_tag; continue;;
   23025  1.1  christos   esac
   23026  1.1  christos   case $ac_mode$ac_tag in
   23027  1.1  christos   :[FHL]*:*);;
   23028  1.1  christos   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   23029  1.1  christos   :[FH]-) ac_tag=-:-;;
   23030  1.1  christos   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   23031  1.1  christos   esac
   23032  1.1  christos   ac_save_IFS=$IFS
   23033  1.1  christos   IFS=:
   23034  1.1  christos   set x $ac_tag
   23035  1.1  christos   IFS=$ac_save_IFS
   23036  1.1  christos   shift
   23037  1.1  christos   ac_file=$1
   23038  1.1  christos   shift
   23039  1.1  christos 
   23040  1.1  christos   case $ac_mode in
   23041  1.1  christos   :L) ac_source=$1;;
   23042  1.1  christos   :[FH])
   23043  1.1  christos     ac_file_inputs=
   23044  1.1  christos     for ac_f
   23045  1.1  christos     do
   23046  1.1  christos       case $ac_f in
   23047  1.1  christos       -) ac_f="$ac_tmp/stdin";;
   23048  1.1  christos       *) # Look for the file first in the build tree, then in the source tree
   23049  1.1  christos 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   23050  1.1  christos 	 # because $ac_f cannot contain `:'.
   23051  1.1  christos 	 test -f "$ac_f" ||
   23052  1.1  christos 	   case $ac_f in
   23053  1.1  christos 	   [\\/$]*) false;;
   23054  1.1  christos 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   23055  1.1  christos 	   esac ||
   23056  1.1  christos 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   23057  1.1  christos       esac
   23058  1.1  christos       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   23059  1.1  christos       as_fn_append ac_file_inputs " '$ac_f'"
   23060  1.1  christos     done
   23061  1.1  christos 
   23062  1.1  christos     # Let's still pretend it is `configure' which instantiates (i.e., don't
   23063  1.1  christos     # use $as_me), people would be surprised to read:
   23064  1.1  christos     #    /* config.h.  Generated by config.status.  */
   23065  1.1  christos     configure_input='Generated from '`
   23066  1.1  christos 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   23067  1.1  christos 	`' by configure.'
   23068  1.1  christos     if test x"$ac_file" != x-; then
   23069  1.1  christos       configure_input="$ac_file.  $configure_input"
   23070  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   23071  1.1  christos $as_echo "$as_me: creating $ac_file" >&6;}
   23072  1.1  christos     fi
   23073  1.1  christos     # Neutralize special characters interpreted by sed in replacement strings.
   23074  1.1  christos     case $configure_input in #(
   23075  1.1  christos     *\&* | *\|* | *\\* )
   23076  1.1  christos        ac_sed_conf_input=`$as_echo "$configure_input" |
   23077  1.1  christos        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   23078  1.1  christos     *) ac_sed_conf_input=$configure_input;;
   23079  1.1  christos     esac
   23080  1.1  christos 
   23081  1.1  christos     case $ac_tag in
   23082  1.1  christos     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   23083  1.1  christos       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   23084  1.1  christos     esac
   23085  1.1  christos     ;;
   23086  1.1  christos   esac
   23087  1.1  christos 
   23088  1.1  christos   ac_dir=`$as_dirname -- "$ac_file" ||
   23089  1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   23090  1.1  christos 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   23091  1.1  christos 	 X"$ac_file" : 'X\(//\)$' \| \
   23092  1.1  christos 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   23093  1.1  christos $as_echo X"$ac_file" |
   23094  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   23095  1.1  christos 	    s//\1/
   23096  1.1  christos 	    q
   23097  1.1  christos 	  }
   23098  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   23099  1.1  christos 	    s//\1/
   23100  1.1  christos 	    q
   23101  1.1  christos 	  }
   23102  1.1  christos 	  /^X\(\/\/\)$/{
   23103  1.1  christos 	    s//\1/
   23104  1.1  christos 	    q
   23105  1.1  christos 	  }
   23106  1.1  christos 	  /^X\(\/\).*/{
   23107  1.1  christos 	    s//\1/
   23108  1.1  christos 	    q
   23109  1.1  christos 	  }
   23110  1.1  christos 	  s/.*/./; q'`
   23111  1.1  christos   as_dir="$ac_dir"; as_fn_mkdir_p
   23112  1.1  christos   ac_builddir=.
   23113  1.1  christos 
   23114  1.1  christos case "$ac_dir" in
   23115  1.1  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23116  1.1  christos *)
   23117  1.1  christos   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   23118  1.1  christos   # A ".." for each directory in $ac_dir_suffix.
   23119  1.1  christos   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   23120  1.1  christos   case $ac_top_builddir_sub in
   23121  1.1  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23122  1.1  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   23123  1.1  christos   esac ;;
   23124  1.1  christos esac
   23125  1.1  christos ac_abs_top_builddir=$ac_pwd
   23126  1.1  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   23127  1.1  christos # for backward compatibility:
   23128  1.1  christos ac_top_builddir=$ac_top_build_prefix
   23129  1.1  christos 
   23130  1.1  christos case $srcdir in
   23131  1.1  christos   .)  # We are building in place.
   23132  1.1  christos     ac_srcdir=.
   23133  1.1  christos     ac_top_srcdir=$ac_top_builddir_sub
   23134  1.1  christos     ac_abs_top_srcdir=$ac_pwd ;;
   23135  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   23136  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   23137  1.1  christos     ac_top_srcdir=$srcdir
   23138  1.1  christos     ac_abs_top_srcdir=$srcdir ;;
   23139  1.1  christos   *) # Relative name.
   23140  1.1  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   23141  1.1  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   23142  1.1  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   23143  1.1  christos esac
   23144  1.1  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   23145  1.1  christos 
   23146  1.1  christos 
   23147  1.1  christos   case $ac_mode in
   23148  1.1  christos   :F)
   23149  1.1  christos   #
   23150  1.1  christos   # CONFIG_FILE
   23151  1.1  christos   #
   23152  1.1  christos 
   23153  1.1  christos   case $INSTALL in
   23154  1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   23155  1.1  christos   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   23156  1.1  christos   esac
   23157  1.1  christos _ACEOF
   23158  1.1  christos 
   23159  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23160  1.1  christos # If the template does not know about datarootdir, expand it.
   23161  1.1  christos # FIXME: This hack should be removed a few years after 2.60.
   23162  1.1  christos ac_datarootdir_hack=; ac_datarootdir_seen=
   23163  1.1  christos ac_sed_dataroot='
   23164  1.1  christos /datarootdir/ {
   23165  1.1  christos   p
   23166  1.1  christos   q
   23167  1.1  christos }
   23168  1.1  christos /@datadir@/p
   23169  1.1  christos /@docdir@/p
   23170  1.1  christos /@infodir@/p
   23171  1.1  christos /@localedir@/p
   23172  1.1  christos /@mandir@/p'
   23173  1.1  christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   23174  1.1  christos *datarootdir*) ac_datarootdir_seen=yes;;
   23175  1.1  christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   23176  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   23177  1.1  christos $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   23178  1.1  christos _ACEOF
   23179  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23180  1.1  christos   ac_datarootdir_hack='
   23181  1.1  christos   s&@datadir@&$datadir&g
   23182  1.1  christos   s&@docdir@&$docdir&g
   23183  1.1  christos   s&@infodir@&$infodir&g
   23184  1.1  christos   s&@localedir@&$localedir&g
   23185  1.1  christos   s&@mandir@&$mandir&g
   23186  1.1  christos   s&\\\${datarootdir}&$datarootdir&g' ;;
   23187  1.1  christos esac
   23188  1.1  christos _ACEOF
   23189  1.1  christos 
   23190  1.1  christos # Neutralize VPATH when `$srcdir' = `.'.
   23191  1.1  christos # Shell code in configure.ac might set extrasub.
   23192  1.1  christos # FIXME: do we really want to maintain this feature?
   23193  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23194  1.1  christos ac_sed_extra="$ac_vpsub
   23195  1.1  christos $extrasub
   23196  1.1  christos _ACEOF
   23197  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23198  1.1  christos :t
   23199  1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   23200  1.1  christos s|@configure_input@|$ac_sed_conf_input|;t t
   23201  1.1  christos s&@top_builddir@&$ac_top_builddir_sub&;t t
   23202  1.1  christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
   23203  1.1  christos s&@srcdir@&$ac_srcdir&;t t
   23204  1.1  christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
   23205  1.1  christos s&@top_srcdir@&$ac_top_srcdir&;t t
   23206  1.1  christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   23207  1.1  christos s&@builddir@&$ac_builddir&;t t
   23208  1.1  christos s&@abs_builddir@&$ac_abs_builddir&;t t
   23209  1.1  christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   23210  1.1  christos s&@INSTALL@&$ac_INSTALL&;t t
   23211  1.1  christos $ac_datarootdir_hack
   23212  1.1  christos "
   23213  1.1  christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   23214  1.1  christos if $ac_cs_awk_getline; then
   23215  1.1  christos   $AWK -f "$ac_tmp/subs.awk"
   23216  1.1  christos else
   23217  1.1  christos   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   23218  1.1  christos fi \
   23219  1.1  christos   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23220  1.1  christos 
   23221  1.1  christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   23222  1.1  christos   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   23223  1.1  christos   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   23224  1.1  christos       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   23225  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23226  1.1  christos which seems to be undefined.  Please make sure it is defined" >&5
   23227  1.1  christos $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23228  1.1  christos which seems to be undefined.  Please make sure it is defined" >&2;}
   23229  1.1  christos 
   23230  1.1  christos   rm -f "$ac_tmp/stdin"
   23231  1.1  christos   case $ac_file in
   23232  1.1  christos   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   23233  1.1  christos   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   23234  1.1  christos   esac \
   23235  1.1  christos   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23236  1.1  christos  ;;
   23237  1.1  christos   :H)
   23238  1.1  christos   #
   23239  1.1  christos   # CONFIG_HEADER
   23240  1.1  christos   #
   23241  1.1  christos   if test x"$ac_file" != x-; then
   23242  1.1  christos     {
   23243  1.1  christos       $as_echo "/* $configure_input  */" \
   23244  1.1  christos       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   23245  1.1  christos     } >"$ac_tmp/config.h" \
   23246  1.1  christos       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23247  1.1  christos     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   23248  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   23249  1.1  christos $as_echo "$as_me: $ac_file is unchanged" >&6;}
   23250  1.1  christos     else
   23251  1.1  christos       rm -f "$ac_file"
   23252  1.1  christos       mv "$ac_tmp/config.h" "$ac_file" \
   23253  1.1  christos 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23254  1.1  christos     fi
   23255  1.1  christos   else
   23256  1.1  christos     $as_echo "/* $configure_input  */" \
   23257  1.1  christos       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   23258  1.1  christos       || as_fn_error $? "could not create -" "$LINENO" 5
   23259  1.1  christos   fi
   23260  1.1  christos  ;;
   23261  1.1  christos 
   23262  1.1  christos   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   23263  1.1  christos $as_echo "$as_me: executing $ac_file commands" >&6;}
   23264  1.1  christos  ;;
   23265  1.1  christos   esac
   23266  1.1  christos 
   23267  1.1  christos 
   23268  1.1  christos   case $ac_file$ac_mode in
   23269  1.1  christos     "libtool":C)
   23270  1.1  christos 
   23271  1.1  christos     # See if we are running on zsh, and set the options that allow our
   23272  1.1  christos     # commands through without removal of \ escapes.
   23273  1.1  christos     if test -n "${ZSH_VERSION+set}"; then
   23274  1.1  christos       setopt NO_GLOB_SUBST
   23275  1.1  christos     fi
   23276  1.1  christos 
   23277  1.1  christos     cfgfile=${ofile}T
   23278  1.1  christos     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   23279  1.1  christos     $RM "$cfgfile"
   23280  1.1  christos 
   23281  1.1  christos     cat <<_LT_EOF >> "$cfgfile"
   23282  1.1  christos #! $SHELL
   23283  1.1  christos # Generated automatically by $as_me ($PACKAGE) $VERSION
   23284  1.1  christos # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   23285  1.1  christos # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   23286  1.1  christos 
   23287  1.1  christos # Provide generalized library-building support services.
   23288  1.1  christos # Written by Gordon Matzigkeit, 1996
   23289  1.1  christos 
   23290  1.1  christos # Copyright (C) 2014 Free Software Foundation, Inc.
   23291  1.1  christos # This is free software; see the source for copying conditions.  There is NO
   23292  1.1  christos # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   23293  1.1  christos 
   23294  1.1  christos # GNU Libtool is free software; you can redistribute it and/or modify
   23295  1.1  christos # it under the terms of the GNU General Public License as published by
   23296  1.1  christos # the Free Software Foundation; either version 2 of of the License, or
   23297  1.1  christos # (at your option) any later version.
   23298  1.1  christos #
   23299  1.1  christos # As a special exception to the GNU General Public License, if you
   23300  1.1  christos # distribute this file as part of a program or library that is built
   23301  1.1  christos # using GNU Libtool, you may include this file under the  same
   23302  1.1  christos # distribution terms that you use for the rest of that program.
   23303  1.1  christos #
   23304  1.1  christos # GNU Libtool is distributed in the hope that it will be useful, but
   23305  1.1  christos # WITHOUT ANY WARRANTY; without even the implied warranty of
   23306  1.1  christos # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   23307  1.1  christos # GNU General Public License for more details.
   23308  1.1  christos #
   23309  1.1  christos # You should have received a copy of the GNU General Public License
   23310  1.1  christos # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   23311  1.1  christos 
   23312  1.1  christos 
   23313  1.1  christos # The names of the tagged configurations supported by this script.
   23314  1.1  christos available_tags=''
   23315  1.1  christos 
   23316  1.1  christos # Configured defaults for sys_lib_dlsearch_path munging.
   23317  1.1  christos : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   23318  1.1  christos 
   23319  1.1  christos # ### BEGIN LIBTOOL CONFIG
   23320  1.1  christos 
   23321  1.1  christos # Which release of libtool.m4 was used?
   23322  1.1  christos macro_version=$macro_version
   23323  1.1  christos macro_revision=$macro_revision
   23324  1.1  christos 
   23325  1.1  christos # Whether or not to build shared libraries.
   23326  1.1  christos build_libtool_libs=$enable_shared
   23327  1.1  christos 
   23328  1.1  christos # Whether or not to build static libraries.
   23329  1.1  christos build_old_libs=$enable_static
   23330  1.1  christos 
   23331  1.1  christos # What type of objects to build.
   23332  1.1  christos pic_mode=$pic_mode
   23333  1.1  christos 
   23334  1.1  christos # Whether or not to optimize for fast installation.
   23335  1.1  christos fast_install=$enable_fast_install
   23336  1.1  christos 
   23337  1.1  christos # Shared archive member basename,for filename based shared library versioning on AIX.
   23338  1.1  christos shared_archive_member_spec=$shared_archive_member_spec
   23339  1.1  christos 
   23340  1.1  christos # Shell to use when invoking shell scripts.
   23341  1.1  christos SHELL=$lt_SHELL
   23342  1.1  christos 
   23343  1.1  christos # An echo program that protects backslashes.
   23344  1.1  christos ECHO=$lt_ECHO
   23345  1.1  christos 
   23346  1.1  christos # The PATH separator for the build system.
   23347  1.1  christos PATH_SEPARATOR=$lt_PATH_SEPARATOR
   23348  1.1  christos 
   23349  1.1  christos # The host system.
   23350  1.1  christos host_alias=$host_alias
   23351  1.1  christos host=$host
   23352  1.1  christos host_os=$host_os
   23353  1.1  christos 
   23354  1.1  christos # The build system.
   23355  1.1  christos build_alias=$build_alias
   23356  1.1  christos build=$build
   23357  1.1  christos build_os=$build_os
   23358  1.1  christos 
   23359  1.1  christos # A sed program that does not truncate output.
   23360  1.1  christos SED=$lt_SED
   23361  1.1  christos 
   23362  1.1  christos # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   23363  1.1  christos Xsed="\$SED -e 1s/^X//"
   23364  1.1  christos 
   23365  1.1  christos # A grep program that handles long lines.
   23366  1.1  christos GREP=$lt_GREP
   23367  1.1  christos 
   23368  1.1  christos # An ERE matcher.
   23369  1.1  christos EGREP=$lt_EGREP
   23370  1.1  christos 
   23371  1.1  christos # A literal string matcher.
   23372  1.1  christos FGREP=$lt_FGREP
   23373  1.1  christos 
   23374  1.1  christos # A BSD- or MS-compatible name lister.
   23375  1.1  christos NM=$lt_NM
   23376  1.1  christos 
   23377  1.1  christos # Whether we need soft or hard links.
   23378  1.1  christos LN_S=$lt_LN_S
   23379  1.1  christos 
   23380  1.1  christos # What is the maximum length of a command?
   23381  1.1  christos max_cmd_len=$max_cmd_len
   23382  1.1  christos 
   23383  1.1  christos # Object file suffix (normally "o").
   23384  1.1  christos objext=$ac_objext
   23385  1.1  christos 
   23386  1.1  christos # Executable file suffix (normally "").
   23387  1.1  christos exeext=$exeext
   23388  1.1  christos 
   23389  1.1  christos # whether the shell understands "unset".
   23390  1.1  christos lt_unset=$lt_unset
   23391  1.1  christos 
   23392  1.1  christos # turn spaces into newlines.
   23393  1.1  christos SP2NL=$lt_lt_SP2NL
   23394  1.1  christos 
   23395  1.1  christos # turn newlines into spaces.
   23396  1.1  christos NL2SP=$lt_lt_NL2SP
   23397  1.1  christos 
   23398  1.1  christos # convert \$build file names to \$host format.
   23399  1.1  christos to_host_file_cmd=$lt_cv_to_host_file_cmd
   23400  1.1  christos 
   23401  1.1  christos # convert \$build files to toolchain format.
   23402  1.1  christos to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   23403  1.1  christos 
   23404  1.1  christos # An object symbol dumper.
   23405  1.1  christos OBJDUMP=$lt_OBJDUMP
   23406  1.1  christos 
   23407  1.1  christos # Method to check whether dependent libraries are shared objects.
   23408  1.1  christos deplibs_check_method=$lt_deplibs_check_method
   23409  1.1  christos 
   23410  1.1  christos # Command to use when deplibs_check_method = "file_magic".
   23411  1.1  christos file_magic_cmd=$lt_file_magic_cmd
   23412  1.1  christos 
   23413  1.1  christos # How to find potential files when deplibs_check_method = "file_magic".
   23414  1.1  christos file_magic_glob=$lt_file_magic_glob
   23415  1.1  christos 
   23416  1.1  christos # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   23417  1.1  christos want_nocaseglob=$lt_want_nocaseglob
   23418  1.1  christos 
   23419  1.1  christos # DLL creation program.
   23420  1.1  christos DLLTOOL=$lt_DLLTOOL
   23421  1.1  christos 
   23422  1.1  christos # Command to associate shared and link libraries.
   23423  1.1  christos sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   23424  1.1  christos 
   23425  1.1  christos # The archiver.
   23426  1.1  christos AR=$lt_AR
   23427  1.1  christos 
   23428  1.1  christos # Flags to create an archive.
   23429  1.1  christos AR_FLAGS=$lt_AR_FLAGS
   23430  1.1  christos 
   23431  1.1  christos # How to feed a file listing to the archiver.
   23432  1.1  christos archiver_list_spec=$lt_archiver_list_spec
   23433  1.1  christos 
   23434  1.1  christos # A symbol stripping program.
   23435  1.1  christos STRIP=$lt_STRIP
   23436  1.1  christos 
   23437  1.1  christos # Commands used to install an old-style archive.
   23438  1.1  christos RANLIB=$lt_RANLIB
   23439  1.1  christos old_postinstall_cmds=$lt_old_postinstall_cmds
   23440  1.1  christos old_postuninstall_cmds=$lt_old_postuninstall_cmds
   23441  1.1  christos 
   23442  1.1  christos # Whether to use a lock for old archive extraction.
   23443  1.1  christos lock_old_archive_extraction=$lock_old_archive_extraction
   23444  1.1  christos 
   23445  1.1  christos # A C compiler.
   23446  1.1  christos LTCC=$lt_CC
   23447  1.1  christos 
   23448  1.1  christos # LTCC compiler flags.
   23449  1.1  christos LTCFLAGS=$lt_CFLAGS
   23450  1.1  christos 
   23451  1.1  christos # Take the output of nm and produce a listing of raw symbols and C names.
   23452  1.1  christos global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   23453  1.1  christos 
   23454  1.1  christos # Transform the output of nm in a proper C declaration.
   23455  1.1  christos global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   23456  1.1  christos 
   23457  1.1  christos # Transform the output of nm into a list of symbols to manually relocate.
   23458  1.1  christos global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   23459  1.1  christos 
   23460  1.1  christos # Transform the output of nm in a C name address pair.
   23461  1.1  christos global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   23462  1.1  christos 
   23463  1.1  christos # Transform the output of nm in a C name address pair when lib prefix is needed.
   23464  1.1  christos global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   23465  1.1  christos 
   23466  1.1  christos # The name lister interface.
   23467  1.1  christos nm_interface=$lt_lt_cv_nm_interface
   23468  1.1  christos 
   23469  1.1  christos # Specify filename containing input files for \$NM.
   23470  1.1  christos nm_file_list_spec=$lt_nm_file_list_spec
   23471  1.1  christos 
   23472  1.1  christos # The root where to search for dependent libraries,and where our libraries should be installed.
   23473  1.1  christos lt_sysroot=$lt_sysroot
   23474  1.1  christos 
   23475  1.1  christos # Command to truncate a binary pipe.
   23476  1.1  christos lt_truncate_bin=$lt_lt_cv_truncate_bin
   23477  1.1  christos 
   23478  1.1  christos # The name of the directory that contains temporary libtool files.
   23479  1.1  christos objdir=$objdir
   23480  1.1  christos 
   23481  1.1  christos # Used to examine libraries when file_magic_cmd begins with "file".
   23482  1.1  christos MAGIC_CMD=$MAGIC_CMD
   23483  1.1  christos 
   23484  1.1  christos # Must we lock files when doing compilation?
   23485  1.1  christos need_locks=$lt_need_locks
   23486  1.1  christos 
   23487  1.1  christos # Manifest tool.
   23488  1.1  christos MANIFEST_TOOL=$lt_MANIFEST_TOOL
   23489  1.1  christos 
   23490  1.1  christos # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   23491  1.1  christos DSYMUTIL=$lt_DSYMUTIL
   23492  1.1  christos 
   23493  1.1  christos # Tool to change global to local symbols on Mac OS X.
   23494  1.1  christos NMEDIT=$lt_NMEDIT
   23495  1.1  christos 
   23496  1.1  christos # Tool to manipulate fat objects and archives on Mac OS X.
   23497  1.1  christos LIPO=$lt_LIPO
   23498  1.1  christos 
   23499  1.1  christos # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   23500  1.1  christos OTOOL=$lt_OTOOL
   23501  1.1  christos 
   23502  1.1  christos # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   23503  1.1  christos OTOOL64=$lt_OTOOL64
   23504  1.1  christos 
   23505  1.1  christos # Old archive suffix (normally "a").
   23506  1.1  christos libext=$libext
   23507  1.1  christos 
   23508  1.1  christos # Shared library suffix (normally ".so").
   23509  1.1  christos shrext_cmds=$lt_shrext_cmds
   23510  1.1  christos 
   23511  1.1  christos # The commands to extract the exported symbol list from a shared archive.
   23512  1.1  christos extract_expsyms_cmds=$lt_extract_expsyms_cmds
   23513  1.1  christos 
   23514  1.1  christos # Variables whose values should be saved in libtool wrapper scripts and
   23515  1.1  christos # restored at link time.
   23516  1.1  christos variables_saved_for_relink=$lt_variables_saved_for_relink
   23517  1.1  christos 
   23518  1.1  christos # Do we need the "lib" prefix for modules?
   23519  1.1  christos need_lib_prefix=$need_lib_prefix
   23520  1.1  christos 
   23521  1.1  christos # Do we need a version for libraries?
   23522  1.1  christos need_version=$need_version
   23523  1.1  christos 
   23524  1.1  christos # Library versioning type.
   23525  1.1  christos version_type=$version_type
   23526  1.1  christos 
   23527  1.1  christos # Shared library runtime path variable.
   23528  1.1  christos runpath_var=$runpath_var
   23529  1.1  christos 
   23530  1.1  christos # Shared library path variable.
   23531  1.1  christos shlibpath_var=$shlibpath_var
   23532  1.1  christos 
   23533  1.1  christos # Is shlibpath searched before the hard-coded library search path?
   23534  1.1  christos shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   23535  1.1  christos 
   23536  1.1  christos # Format of library name prefix.
   23537  1.1  christos libname_spec=$lt_libname_spec
   23538  1.1  christos 
   23539  1.1  christos # List of archive names.  First name is the real one, the rest are links.
   23540  1.1  christos # The last name is the one that the linker finds with -lNAME
   23541  1.1  christos library_names_spec=$lt_library_names_spec
   23542  1.1  christos 
   23543  1.1  christos # The coded name of the library, if different from the real name.
   23544  1.1  christos soname_spec=$lt_soname_spec
   23545  1.1  christos 
   23546  1.1  christos # Permission mode override for installation of shared libraries.
   23547  1.1  christos install_override_mode=$lt_install_override_mode
   23548  1.1  christos 
   23549  1.1  christos # Command to use after installation of a shared archive.
   23550  1.1  christos postinstall_cmds=$lt_postinstall_cmds
   23551  1.1  christos 
   23552  1.1  christos # Command to use after uninstallation of a shared archive.
   23553  1.1  christos postuninstall_cmds=$lt_postuninstall_cmds
   23554  1.1  christos 
   23555  1.1  christos # Commands used to finish a libtool library installation in a directory.
   23556  1.1  christos finish_cmds=$lt_finish_cmds
   23557  1.1  christos 
   23558  1.1  christos # As "finish_cmds", except a single script fragment to be evaled but
   23559  1.1  christos # not shown.
   23560  1.1  christos finish_eval=$lt_finish_eval
   23561  1.1  christos 
   23562  1.1  christos # Whether we should hardcode library paths into libraries.
   23563  1.1  christos hardcode_into_libs=$hardcode_into_libs
   23564  1.1  christos 
   23565  1.1  christos # Compile-time system search path for libraries.
   23566  1.1  christos sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   23567  1.1  christos 
   23568  1.1  christos # Detected run-time system search path for libraries.
   23569  1.1  christos sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   23570  1.1  christos 
   23571  1.1  christos # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   23572  1.1  christos configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   23573  1.1  christos 
   23574  1.1  christos # Whether dlopen is supported.
   23575  1.1  christos dlopen_support=$enable_dlopen
   23576  1.1  christos 
   23577  1.1  christos # Whether dlopen of programs is supported.
   23578  1.1  christos dlopen_self=$enable_dlopen_self
   23579  1.1  christos 
   23580  1.1  christos # Whether dlopen of statically linked programs is supported.
   23581  1.1  christos dlopen_self_static=$enable_dlopen_self_static
   23582  1.1  christos 
   23583  1.1  christos # Commands to strip libraries.
   23584  1.1  christos old_striplib=$lt_old_striplib
   23585  1.1  christos striplib=$lt_striplib
   23586  1.1  christos 
   23587  1.1  christos 
   23588  1.1  christos # The linker used to build libraries.
   23589  1.1  christos LD=$lt_LD
   23590  1.1  christos 
   23591  1.1  christos # How to create reloadable object files.
   23592  1.1  christos reload_flag=$lt_reload_flag
   23593  1.1  christos reload_cmds=$lt_reload_cmds
   23594  1.1  christos 
   23595  1.1  christos # Commands used to build an old-style archive.
   23596  1.1  christos old_archive_cmds=$lt_old_archive_cmds
   23597  1.1  christos 
   23598  1.1  christos # A language specific compiler.
   23599  1.1  christos CC=$lt_compiler
   23600  1.1  christos 
   23601  1.1  christos # Is the compiler the GNU compiler?
   23602  1.1  christos with_gcc=$GCC
   23603  1.1  christos 
   23604  1.1  christos # Compiler flag to turn off builtin functions.
   23605  1.1  christos no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   23606  1.1  christos 
   23607  1.1  christos # Additional compiler flags for building library objects.
   23608  1.1  christos pic_flag=$lt_lt_prog_compiler_pic
   23609  1.1  christos 
   23610  1.1  christos # How to pass a linker flag through the compiler.
   23611  1.1  christos wl=$lt_lt_prog_compiler_wl
   23612  1.1  christos 
   23613  1.1  christos # Compiler flag to prevent dynamic linking.
   23614  1.1  christos link_static_flag=$lt_lt_prog_compiler_static
   23615  1.1  christos 
   23616  1.1  christos # Does compiler simultaneously support -c and -o options?
   23617  1.1  christos compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   23618  1.1  christos 
   23619  1.1  christos # Whether or not to add -lc for building shared libraries.
   23620  1.1  christos build_libtool_need_lc=$archive_cmds_need_lc
   23621  1.1  christos 
   23622  1.1  christos # Whether or not to disallow shared libs when runtime libs are static.
   23623  1.1  christos allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   23624  1.1  christos 
   23625  1.1  christos # Compiler flag to allow reflexive dlopens.
   23626  1.1  christos export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   23627  1.1  christos 
   23628  1.1  christos # Compiler flag to generate shared objects directly from archives.
   23629  1.1  christos whole_archive_flag_spec=$lt_whole_archive_flag_spec
   23630  1.1  christos 
   23631  1.1  christos # Whether the compiler copes with passing no objects directly.
   23632  1.1  christos compiler_needs_object=$lt_compiler_needs_object
   23633  1.1  christos 
   23634  1.1  christos # Create an old-style archive from a shared archive.
   23635  1.1  christos old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   23636  1.1  christos 
   23637  1.1  christos # Create a temporary old-style archive to link instead of a shared archive.
   23638  1.1  christos old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   23639  1.1  christos 
   23640  1.1  christos # Commands used to build a shared archive.
   23641  1.1  christos archive_cmds=$lt_archive_cmds
   23642  1.1  christos archive_expsym_cmds=$lt_archive_expsym_cmds
   23643  1.1  christos 
   23644  1.1  christos # Commands used to build a loadable module if different from building
   23645  1.1  christos # a shared archive.
   23646  1.1  christos module_cmds=$lt_module_cmds
   23647  1.1  christos module_expsym_cmds=$lt_module_expsym_cmds
   23648  1.1  christos 
   23649  1.1  christos # Whether we are building with GNU ld or not.
   23650  1.1  christos with_gnu_ld=$lt_with_gnu_ld
   23651  1.1  christos 
   23652  1.1  christos # Flag that allows shared libraries with undefined symbols to be built.
   23653  1.1  christos allow_undefined_flag=$lt_allow_undefined_flag
   23654  1.1  christos 
   23655  1.1  christos # Flag that enforces no undefined symbols.
   23656  1.1  christos no_undefined_flag=$lt_no_undefined_flag
   23657  1.1  christos 
   23658  1.1  christos # Flag to hardcode \$libdir into a binary during linking.
   23659  1.1  christos # This must work even if \$libdir does not exist
   23660  1.1  christos hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   23661  1.1  christos 
   23662  1.1  christos # Whether we need a single "-rpath" flag with a separated argument.
   23663  1.1  christos hardcode_libdir_separator=$lt_hardcode_libdir_separator
   23664  1.1  christos 
   23665  1.1  christos # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23666  1.1  christos # DIR into the resulting binary.
   23667  1.1  christos hardcode_direct=$hardcode_direct
   23668  1.1  christos 
   23669  1.1  christos # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23670  1.1  christos # DIR into the resulting binary and the resulting library dependency is
   23671  1.1  christos # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   23672  1.1  christos # library is relocated.
   23673  1.1  christos hardcode_direct_absolute=$hardcode_direct_absolute
   23674  1.1  christos 
   23675  1.1  christos # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   23676  1.1  christos # into the resulting binary.
   23677  1.1  christos hardcode_minus_L=$hardcode_minus_L
   23678  1.1  christos 
   23679  1.1  christos # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   23680  1.1  christos # into the resulting binary.
   23681  1.1  christos hardcode_shlibpath_var=$hardcode_shlibpath_var
   23682  1.1  christos 
   23683  1.1  christos # Set to "yes" if building a shared library automatically hardcodes DIR
   23684  1.1  christos # into the library and all subsequent libraries and executables linked
   23685  1.1  christos # against it.
   23686  1.1  christos hardcode_automatic=$hardcode_automatic
   23687  1.1  christos 
   23688  1.1  christos # Set to yes if linker adds runtime paths of dependent libraries
   23689  1.1  christos # to runtime path list.
   23690  1.1  christos inherit_rpath=$inherit_rpath
   23691  1.1  christos 
   23692  1.1  christos # Whether libtool must link a program against all its dependency libraries.
   23693  1.1  christos link_all_deplibs=$link_all_deplibs
   23694  1.1  christos 
   23695  1.1  christos # Set to "yes" if exported symbols are required.
   23696  1.1  christos always_export_symbols=$always_export_symbols
   23697  1.1  christos 
   23698  1.1  christos # The commands to list exported symbols.
   23699  1.1  christos export_symbols_cmds=$lt_export_symbols_cmds
   23700  1.1  christos 
   23701  1.1  christos # Symbols that should not be listed in the preloaded symbols.
   23702  1.1  christos exclude_expsyms=$lt_exclude_expsyms
   23703  1.1  christos 
   23704  1.1  christos # Symbols that must always be exported.
   23705  1.1  christos include_expsyms=$lt_include_expsyms
   23706  1.1  christos 
   23707  1.1  christos # Commands necessary for linking programs (against libraries) with templates.
   23708  1.1  christos prelink_cmds=$lt_prelink_cmds
   23709  1.1  christos 
   23710  1.1  christos # Commands necessary for finishing linking programs.
   23711  1.1  christos postlink_cmds=$lt_postlink_cmds
   23712  1.1  christos 
   23713  1.1  christos # Specify filename containing input files.
   23714  1.1  christos file_list_spec=$lt_file_list_spec
   23715  1.1  christos 
   23716  1.1  christos # How to hardcode a shared library path into an executable.
   23717  1.1  christos hardcode_action=$hardcode_action
   23718  1.1  christos 
   23719  1.1  christos # ### END LIBTOOL CONFIG
   23720  1.1  christos 
   23721  1.1  christos _LT_EOF
   23722  1.1  christos 
   23723  1.1  christos     cat <<'_LT_EOF' >> "$cfgfile"
   23724  1.1  christos 
   23725  1.1  christos # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   23726  1.1  christos 
   23727  1.1  christos # func_munge_path_list VARIABLE PATH
   23728  1.1  christos # -----------------------------------
   23729  1.1  christos # VARIABLE is name of variable containing _space_ separated list of
   23730  1.1  christos # directories to be munged by the contents of PATH, which is string
   23731  1.1  christos # having a format:
   23732  1.1  christos # "DIR[:DIR]:"
   23733  1.1  christos #       string "DIR[ DIR]" will be prepended to VARIABLE
   23734  1.1  christos # ":DIR[:DIR]"
   23735  1.1  christos #       string "DIR[ DIR]" will be appended to VARIABLE
   23736  1.1  christos # "DIRP[:DIRP]::[DIRA:]DIRA"
   23737  1.1  christos #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   23738  1.1  christos #       "DIRA[ DIRA]" will be appended to VARIABLE
   23739  1.1  christos # "DIR[:DIR]"
   23740  1.1  christos #       VARIABLE will be replaced by "DIR[ DIR]"
   23741  1.1  christos func_munge_path_list ()
   23742  1.1  christos {
   23743  1.1  christos     case x$2 in
   23744  1.1  christos     x)
   23745  1.1  christos         ;;
   23746  1.1  christos     *:)
   23747  1.1  christos         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   23748  1.1  christos         ;;
   23749  1.1  christos     x:*)
   23750  1.1  christos         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   23751  1.1  christos         ;;
   23752  1.1  christos     *::*)
   23753  1.1  christos         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   23754  1.1  christos         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   23755  1.1  christos         ;;
   23756  1.1  christos     *)
   23757  1.1  christos         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   23758  1.1  christos         ;;
   23759  1.1  christos     esac
   23760  1.1  christos }
   23761  1.1  christos 
   23762  1.1  christos 
   23763  1.1  christos # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   23764  1.1  christos func_cc_basename ()
   23765  1.1  christos {
   23766  1.1  christos     for cc_temp in $*""; do
   23767  1.1  christos       case $cc_temp in
   23768  1.1  christos         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   23769  1.1  christos         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   23770  1.1  christos         \-*) ;;
   23771  1.1  christos         *) break;;
   23772  1.1  christos       esac
   23773  1.1  christos     done
   23774  1.1  christos     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   23775  1.1  christos }
   23776  1.1  christos 
   23777  1.1  christos 
   23778  1.1  christos # ### END FUNCTIONS SHARED WITH CONFIGURE
   23779  1.1  christos 
   23780  1.1  christos _LT_EOF
   23781  1.1  christos 
   23782  1.1  christos   case $host_os in
   23783  1.1  christos   aix3*)
   23784  1.1  christos     cat <<\_LT_EOF >> "$cfgfile"
   23785  1.1  christos # AIX sometimes has problems with the GCC collect2 program.  For some
   23786  1.1  christos # reason, if we set the COLLECT_NAMES environment variable, the problems
   23787  1.1  christos # vanish in a puff of smoke.
   23788  1.1  christos if test set != "${COLLECT_NAMES+set}"; then
   23789  1.1  christos   COLLECT_NAMES=
   23790  1.1  christos   export COLLECT_NAMES
   23791  1.1  christos fi
   23792  1.1  christos _LT_EOF
   23793  1.1  christos     ;;
   23794  1.1  christos   esac
   23795  1.1  christos 
   23796  1.1  christos 
   23797  1.1  christos ltmain=$ac_aux_dir/ltmain.sh
   23798  1.1  christos 
   23799  1.1  christos 
   23800  1.1  christos   # We use sed instead of cat because bash on DJGPP gets confused if
   23801  1.1  christos   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   23802  1.1  christos   # text mode, it properly converts lines to CR/LF.  This bash problem
   23803  1.1  christos   # is reportedly fixed, but why not run on old versions too?
   23804  1.1  christos   sed '$q' "$ltmain" >> "$cfgfile" \
   23805  1.1  christos      || (rm -f "$cfgfile"; exit 1)
   23806  1.1  christos 
   23807  1.1  christos    mv -f "$cfgfile" "$ofile" ||
   23808  1.1  christos     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   23809  1.1  christos   chmod +x "$ofile"
   23810  1.1  christos 
   23811  1.1  christos  ;;
   23812  1.1  christos     "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
   23813  1.1  christos 
   23814  1.1  christos   esac
   23815  1.1  christos done # for ac_tag
   23816  1.1  christos 
   23817  1.1  christos 
   23818  1.1  christos as_fn_exit 0
   23819  1.1  christos _ACEOF
   23820  1.1  christos ac_clean_files=$ac_clean_files_save
   23821  1.1  christos 
   23822  1.1  christos test $ac_write_fail = 0 ||
   23823  1.1  christos   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   23824  1.1  christos 
   23825  1.1  christos 
   23826  1.1  christos # configure is writing to config.log, and then calls config.status.
   23827  1.1  christos # config.status does its own redirection, appending to config.log.
   23828  1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   23829  1.1  christos # by configure, so config.status won't be able to write to it; its
   23830  1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   23831  1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   23832  1.1  christos # appended to by config.status.  When coming back to configure, we
   23833  1.1  christos # need to make the FD available again.
   23834  1.1  christos if test "$no_create" != yes; then
   23835  1.1  christos   ac_cs_success=:
   23836  1.1  christos   ac_config_status_args=
   23837  1.1  christos   test "$silent" = yes &&
   23838  1.1  christos     ac_config_status_args="$ac_config_status_args --quiet"
   23839  1.1  christos   exec 5>/dev/null
   23840  1.1  christos   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   23841  1.1  christos   exec 5>>config.log
   23842  1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   23843  1.1  christos   # would make configure fail if this is the last instruction.
   23844  1.1  christos   $ac_cs_success || as_fn_exit 1
   23845  1.1  christos fi
   23846  1.1  christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   23847  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   23848  1.1  christos $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   23849  1.1  christos fi
   23850  1.1  christos 
   23851  1.1  christos 
   23852  1.1  christos #
   23853  1.1  christos # Now that the Makefiles exist we can ensure that everything is rebuilt.
   23854  1.1  christos #
   23855  1.1  christos 
   23856  1.1  christos # Check whether --with-make-clean was given.
   23857  1.1  christos if test "${with_make_clean+set}" = set; then :
   23858  1.1  christos   withval=$with_make_clean; make_clean="$withval"
   23859  1.1  christos else
   23860  1.1  christos   make_clean="yes"
   23861  1.1  christos fi
   23862  1.1  christos 
   23863  1.1  christos case "$make_clean" in
   23864  1.1  christos yes)
   23865  1.1  christos 	if test "yes" != "$no_create"
   23866  1.1  christos 	then
   23867  1.1  christos 		if test "yes" = "$silent"
   23868  1.1  christos 		then
   23869  1.1  christos 			make clean > /dev/null
   23870  1.1  christos 		else
   23871  1.1  christos 			make clean
   23872  1.1  christos 		fi
   23873  1.1  christos 	fi
   23874  1.1  christos 	;;
   23875  1.1  christos esac
   23876  1.1  christos 
   23877  1.1  christos # Check whether --enable-full-report was given.
   23878  1.1  christos if test "${enable_full_report+set}" = set; then :
   23879  1.1  christos   enableval=$enable_full_report;
   23880  1.1  christos fi
   23881  1.1  christos 
   23882  1.1  christos 
   23883  1.1  christos report() {
   23884  1.1  christos     echo "==============================================================================="
   23885  1.1  christos     echo "Configuration summary:"
   23886  1.1  christos     echo "-------------------------------------------------------------------------------"
   23887  1.1  christos     echo "Optional features enabled:"
   23888  1.3  christos     if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
   23889  1.3  christos 	echo "        Mutex lock type: $locktype"
   23890  1.1  christos     fi
   23891  1.1  christos     test "large" = "$use_tuning" && echo "    Large-system tuning (--with-tuning)"
   23892  1.1  christos     test "no" = "$use_dnstap" || \
   23893  1.1  christos 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23894  1.1  christos     test "no" = "$use_geoip" || echo "    GeoIP access control (--with-geoip)"
   23895  1.1  christos     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   23896  1.1  christos     if test "yes" = "$enable_full_report" -o "aes" != "$with_cc_alg"; then
   23897  1.1  christos 	echo "        Algorithm: $with_cc_alg"
   23898  1.1  christos     fi
   23899  1.1  christos 
   23900  1.1  christos     # these lines are only printed if run with --enable-full-report
   23901  1.1  christos     if test "yes" = "$enable_full_report"; then
   23902  1.3  christos 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   23903  1.1  christos 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   23904  1.1  christos 	test "X$XMLSTATS" = "X" || echo "    XML statistics (--with-libxml2)"
   23905  1.1  christos 	test "X$JSONSTATS" = "X" || echo "    JSON statistics (--with-libjson)"
   23906  1.1  christos 	test "X$ZLIB" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   23907  1.1  christos 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23908  1.3  christos 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   23909  1.1  christos     fi
   23910  1.1  christos 
   23911  1.1  christos     test "yes" = "$enable_dnsrps" && \
   23912  1.1  christos 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23913  1.1  christos     test "yes" = "$enable_fixed" && \
   23914  1.1  christos 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23915  1.3  christos     test "yes" = "$enable_backtrace" && \
   23916  1.1  christos 	echo "    Print backtrace on crash (--enable-backtrace)"
   23917  1.1  christos     test "minimal" = "$want_symtable" && \
   23918  1.1  christos 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   23919  1.1  christos     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   23920  1.1  christos 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   23921  1.1  christos     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23922  1.1  christos     test "yes" = "$want_querytrace" && \
   23923  1.1  christos 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23924  1.3  christos     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   23925  1.3  christos 
   23926  1.3  christos     test "no" = "$want_autoval" || echo "    DNSSEC validation active by default (--enable-auto-validation)"
   23927  1.1  christos 
   23928  1.3  christos     test "$CRYPTO" = "pkcs11" && (
   23929  1.3  christos 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   23930  1.3  christos 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   23931  1.3  christos     )
   23932  1.1  christos 
   23933  1.1  christos     echo "    Dynamically loadable zone (DLZ) drivers:"
   23934  1.1  christos     test "no" = "$use_dlz_bdb" || \
   23935  1.1  christos 	echo "        Berkeley DB (--with-dlz-bdb)"
   23936  1.1  christos     test "no" = "$use_dlz_ldap" || \
   23937  1.1  christos 	echo "        LDAP (--with-dlz-ldap)"
   23938  1.1  christos     test "no" = "$use_dlz_mysql" || \
   23939  1.1  christos 	echo "        MySQL (--with-dlz-mysql)"
   23940  1.1  christos     test "no" = "$use_dlz_odbc" || \
   23941  1.1  christos 	echo "        ODBC (--with-dlz-odbc)"
   23942  1.1  christos     test "no" = "$use_dlz_postgres" || \
   23943  1.1  christos 	echo "        Postgres (--with-dlz-postgres)"
   23944  1.1  christos     test "no" = "$use_dlz_filesystem" || \
   23945  1.1  christos 	echo "        Filesystem (--with-dlz-filesystem)"
   23946  1.1  christos     test "no" = "$use_dlz_stub" || \
   23947  1.1  christos 	echo "        Stub (--with-dlz-stub)"
   23948  1.1  christos     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  1.1  christos 
   23950  1.1  christos     echo "-------------------------------------------------------------------------------"
   23951  1.1  christos 
   23952  1.1  christos     echo "Features disabled or unavailable on this platform:"
   23953  1.3  christos     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   23954  1.1  christos     test "large" = "$use_tuning" || echo "    Large-system tuning (--with-tuning)"
   23955  1.1  christos 
   23956  1.1  christos     test "no" = "$use_dnstap" && \
   23957  1.1  christos 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23958  1.1  christos     test "no" = "$use_geoip" && echo "    GeoIP access control (--with-geoip)"
   23959  1.1  christos     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   23960  1.1  christos 
   23961  1.1  christos     test "no" = "$enable_dnsrps" && \
   23962  1.1  christos 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23963  1.1  christos 
   23964  1.1  christos     test "yes" = "$enable_fixed" || \
   23965  1.1  christos 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23966  1.1  christos 
   23967  1.3  christos     test "no" = "$want_autoval" && echo "    DNSSEC validation requires configuration (--disable-auto-validation)"
   23968  1.3  christos 
   23969  1.3  christos     test "$CRYPTO" = "pkcs11" || (
   23970  1.3  christos 	echo "    Using PKCS#11 for Public-Key Cryptography (--without-native-pkcs11)"
   23971  1.3  christos     )
   23972  1.3  christos 
   23973  1.3  christos     test "yes" = "$enable_backtrace" || \
   23974  1.1  christos 	echo "    Print backtrace on crash (--enable-backtrace)"
   23975  1.1  christos     test "yes" = "$want_querytrace" || \
   23976  1.1  christos 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23977  1.1  christos 
   23978  1.1  christos     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23979  1.3  christos     test "no" = "$with_cmocka" && echo "    CMocka Unit Testng Framework (--with-cmocka)"
   23980  1.1  christos 
   23981  1.1  christos     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   23982  1.1  christos     test "X$XMLSTATS" = "X" && echo "    XML statistics (--with-libxml2)"
   23983  1.1  christos     test "X$JSONSTATS" = "X" && echo "    JSON statistics (--with-libjson)"
   23984  1.1  christos     test "X$ZLIB" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   23985  1.1  christos     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23986  1.3  christos     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   23987  1.1  christos 
   23988  1.1  christos     echo "-------------------------------------------------------------------------------"
   23989  1.1  christos     echo "Configured paths:"
   23990  1.1  christos     echo "    prefix: $prefix"
   23991  1.1  christos     echo "    sysconfdir: $sysconfdir"
   23992  1.1  christos     echo "    localstatedir: $localstatedir"
   23993  1.3  christos     echo "-------------------------------------------------------------------------------"
   23994  1.3  christos     echo "Compiler: $CC"
   23995  1.3  christos     $CC --version 2>&1 | sed 's/^/    /'
   23996  1.1  christos 
   23997  1.1  christos     if test "X$ac_unrecognized_opts" != "X"; then
   23998  1.1  christos 	echo "Unrecognized options:"
   23999  1.1  christos 	echo "    $ac_unrecognized_opts"
   24000  1.1  christos     fi
   24001  1.1  christos 
   24002  1.1  christos     if test "yes" != "$enable_full_report"; then
   24003  1.1  christos 	echo "-------------------------------------------------------------------------------"
   24004  1.1  christos 	echo "For more detail, use --enable-full-report."
   24005  1.1  christos     fi
   24006  1.1  christos     echo "==============================================================================="
   24007  1.1  christos }
   24008  1.1  christos 
   24009  1.1  christos if test "yes" != "$silent"; then
   24010  1.1  christos 	report
   24011  1.1  christos fi
   24012  1.1  christos 
   24013  1.1  christos # Tell Emacs to edit this file in shell mode.
   24014  1.1  christos # Local Variables:
   24015  1.1  christos # mode: sh
   24016  1.1  christos # End:
   24017