Home | History | Annotate | Line # | Download | only in dist
configure revision 1.4
      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_dnstap
    921  1.1  christos with_protobuf_c
    922  1.1  christos with_libfstrm
    923  1.1  christos with_docbook_xsl
    924  1.1  christos with_libidn2
    925  1.3  christos with_cmocka
    926  1.1  christos with_tuning
    927  1.1  christos enable_querytrace
    928  1.3  christos enable_auto_validation
    929  1.1  christos with_dlopen
    930  1.3  christos enable_dnsrps_dl
    931  1.3  christos with_dnsrps_libname
    932  1.3  christos with_dnsrps_dir
    933  1.3  christos enable_dnsrps
    934  1.1  christos with_dlz_postgres
    935  1.1  christos with_dlz_mysql
    936  1.1  christos with_dlz_bdb
    937  1.1  christos with_dlz_filesystem
    938  1.1  christos with_dlz_ldap
    939  1.1  christos with_dlz_odbc
    940  1.1  christos with_dlz_stub
    941  1.1  christos with_make_clean
    942  1.1  christos enable_full_report
    943  1.1  christos '
    944  1.1  christos       ac_precious_vars='build_alias
    945  1.1  christos host_alias
    946  1.1  christos target_alias
    947  1.1  christos CC
    948  1.1  christos CFLAGS
    949  1.1  christos LDFLAGS
    950  1.1  christos LIBS
    951  1.1  christos CPPFLAGS
    952  1.3  christos CPP
    953  1.1  christos LT_SYS_LIBRARY_PATH
    954  1.3  christos PKG_CONFIG
    955  1.3  christos PKG_CONFIG_PATH
    956  1.3  christos PKG_CONFIG_LIBDIR
    957  1.3  christos OPENSSL_CFLAGS
    958  1.3  christos OPENSSL_LIBS
    959  1.3  christos LIBIDN2_CFLAGS
    960  1.3  christos LIBIDN2_LIBS
    961  1.3  christos CMOCKA_CFLAGS
    962  1.3  christos CMOCKA_LIBS
    963  1.3  christos KYUA'
    964  1.1  christos 
    965  1.1  christos 
    966  1.1  christos # Initialize some variables set by options.
    967  1.1  christos ac_init_help=
    968  1.1  christos ac_init_version=false
    969  1.1  christos ac_unrecognized_opts=
    970  1.1  christos ac_unrecognized_sep=
    971  1.1  christos # The variables have the same names as the options, with
    972  1.1  christos # dashes changed to underlines.
    973  1.1  christos cache_file=/dev/null
    974  1.1  christos exec_prefix=NONE
    975  1.1  christos no_create=
    976  1.1  christos no_recursion=
    977  1.1  christos prefix=NONE
    978  1.1  christos program_prefix=NONE
    979  1.1  christos program_suffix=NONE
    980  1.1  christos program_transform_name=s,x,x,
    981  1.1  christos silent=
    982  1.1  christos site=
    983  1.1  christos srcdir=
    984  1.1  christos verbose=
    985  1.1  christos x_includes=NONE
    986  1.1  christos x_libraries=NONE
    987  1.1  christos 
    988  1.1  christos # Installation directory options.
    989  1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    990  1.1  christos # and all the variables that are supposed to be based on exec_prefix
    991  1.1  christos # by default will actually change.
    992  1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    993  1.1  christos # (The list follows the same order as the GNU Coding Standards.)
    994  1.1  christos bindir='${exec_prefix}/bin'
    995  1.1  christos sbindir='${exec_prefix}/sbin'
    996  1.1  christos libexecdir='${exec_prefix}/libexec'
    997  1.1  christos datarootdir='${prefix}/share'
    998  1.1  christos datadir='${datarootdir}'
    999  1.1  christos sysconfdir='${prefix}/etc'
   1000  1.1  christos sharedstatedir='${prefix}/com'
   1001  1.1  christos localstatedir='${prefix}/var'
   1002  1.1  christos includedir='${prefix}/include'
   1003  1.1  christos oldincludedir='/usr/include'
   1004  1.1  christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1005  1.1  christos infodir='${datarootdir}/info'
   1006  1.1  christos htmldir='${docdir}'
   1007  1.1  christos dvidir='${docdir}'
   1008  1.1  christos pdfdir='${docdir}'
   1009  1.1  christos psdir='${docdir}'
   1010  1.1  christos libdir='${exec_prefix}/lib'
   1011  1.1  christos localedir='${datarootdir}/locale'
   1012  1.1  christos mandir='${datarootdir}/man'
   1013  1.1  christos 
   1014  1.1  christos ac_prev=
   1015  1.1  christos ac_dashdash=
   1016  1.1  christos for ac_option
   1017  1.1  christos do
   1018  1.1  christos   # If the previous option needs an argument, assign it.
   1019  1.1  christos   if test -n "$ac_prev"; then
   1020  1.1  christos     eval $ac_prev=\$ac_option
   1021  1.1  christos     ac_prev=
   1022  1.1  christos     continue
   1023  1.1  christos   fi
   1024  1.1  christos 
   1025  1.1  christos   case $ac_option in
   1026  1.1  christos   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1027  1.1  christos   *=)   ac_optarg= ;;
   1028  1.1  christos   *)    ac_optarg=yes ;;
   1029  1.1  christos   esac
   1030  1.1  christos 
   1031  1.1  christos   # Accept the important Cygnus configure options, so we can diagnose typos.
   1032  1.1  christos 
   1033  1.1  christos   case $ac_dashdash$ac_option in
   1034  1.1  christos   --)
   1035  1.1  christos     ac_dashdash=yes ;;
   1036  1.1  christos 
   1037  1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1038  1.1  christos     ac_prev=bindir ;;
   1039  1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1040  1.1  christos     bindir=$ac_optarg ;;
   1041  1.1  christos 
   1042  1.1  christos   -build | --build | --buil | --bui | --bu)
   1043  1.1  christos     ac_prev=build_alias ;;
   1044  1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1045  1.1  christos     build_alias=$ac_optarg ;;
   1046  1.1  christos 
   1047  1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1048  1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1049  1.1  christos     ac_prev=cache_file ;;
   1050  1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1051  1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1052  1.1  christos     cache_file=$ac_optarg ;;
   1053  1.1  christos 
   1054  1.1  christos   --config-cache | -C)
   1055  1.1  christos     cache_file=config.cache ;;
   1056  1.1  christos 
   1057  1.1  christos   -datadir | --datadir | --datadi | --datad)
   1058  1.1  christos     ac_prev=datadir ;;
   1059  1.1  christos   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1060  1.1  christos     datadir=$ac_optarg ;;
   1061  1.1  christos 
   1062  1.1  christos   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1063  1.1  christos   | --dataroo | --dataro | --datar)
   1064  1.1  christos     ac_prev=datarootdir ;;
   1065  1.1  christos   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1066  1.1  christos   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1067  1.1  christos     datarootdir=$ac_optarg ;;
   1068  1.1  christos 
   1069  1.1  christos   -disable-* | --disable-*)
   1070  1.1  christos     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1071  1.1  christos     # Reject names that are not valid shell variable names.
   1072  1.1  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1073  1.1  christos       as_fn_error $? "invalid feature name: $ac_useropt"
   1074  1.1  christos     ac_useropt_orig=$ac_useropt
   1075  1.1  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1076  1.1  christos     case $ac_user_opts in
   1077  1.1  christos       *"
   1078  1.1  christos "enable_$ac_useropt"
   1079  1.1  christos "*) ;;
   1080  1.1  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1081  1.1  christos 	 ac_unrecognized_sep=', ';;
   1082  1.1  christos     esac
   1083  1.1  christos     eval enable_$ac_useropt=no ;;
   1084  1.1  christos 
   1085  1.1  christos   -docdir | --docdir | --docdi | --doc | --do)
   1086  1.1  christos     ac_prev=docdir ;;
   1087  1.1  christos   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1088  1.1  christos     docdir=$ac_optarg ;;
   1089  1.1  christos 
   1090  1.1  christos   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1091  1.1  christos     ac_prev=dvidir ;;
   1092  1.1  christos   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1093  1.1  christos     dvidir=$ac_optarg ;;
   1094  1.1  christos 
   1095  1.1  christos   -enable-* | --enable-*)
   1096  1.1  christos     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1097  1.1  christos     # Reject names that are not valid shell variable names.
   1098  1.1  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1099  1.1  christos       as_fn_error $? "invalid feature name: $ac_useropt"
   1100  1.1  christos     ac_useropt_orig=$ac_useropt
   1101  1.1  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1102  1.1  christos     case $ac_user_opts in
   1103  1.1  christos       *"
   1104  1.1  christos "enable_$ac_useropt"
   1105  1.1  christos "*) ;;
   1106  1.1  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1107  1.1  christos 	 ac_unrecognized_sep=', ';;
   1108  1.1  christos     esac
   1109  1.1  christos     eval enable_$ac_useropt=\$ac_optarg ;;
   1110  1.1  christos 
   1111  1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1112  1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1113  1.1  christos   | --exec | --exe | --ex)
   1114  1.1  christos     ac_prev=exec_prefix ;;
   1115  1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1116  1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1117  1.1  christos   | --exec=* | --exe=* | --ex=*)
   1118  1.1  christos     exec_prefix=$ac_optarg ;;
   1119  1.1  christos 
   1120  1.1  christos   -gas | --gas | --ga | --g)
   1121  1.1  christos     # Obsolete; use --with-gas.
   1122  1.1  christos     with_gas=yes ;;
   1123  1.1  christos 
   1124  1.1  christos   -help | --help | --hel | --he | -h)
   1125  1.1  christos     ac_init_help=long ;;
   1126  1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1127  1.1  christos     ac_init_help=recursive ;;
   1128  1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1129  1.1  christos     ac_init_help=short ;;
   1130  1.1  christos 
   1131  1.1  christos   -host | --host | --hos | --ho)
   1132  1.1  christos     ac_prev=host_alias ;;
   1133  1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
   1134  1.1  christos     host_alias=$ac_optarg ;;
   1135  1.1  christos 
   1136  1.1  christos   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1137  1.1  christos     ac_prev=htmldir ;;
   1138  1.1  christos   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1139  1.1  christos   | --ht=*)
   1140  1.1  christos     htmldir=$ac_optarg ;;
   1141  1.1  christos 
   1142  1.1  christos   -includedir | --includedir | --includedi | --included | --include \
   1143  1.1  christos   | --includ | --inclu | --incl | --inc)
   1144  1.1  christos     ac_prev=includedir ;;
   1145  1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1146  1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1147  1.1  christos     includedir=$ac_optarg ;;
   1148  1.1  christos 
   1149  1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1150  1.1  christos     ac_prev=infodir ;;
   1151  1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1152  1.1  christos     infodir=$ac_optarg ;;
   1153  1.1  christos 
   1154  1.1  christos   -libdir | --libdir | --libdi | --libd)
   1155  1.1  christos     ac_prev=libdir ;;
   1156  1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1157  1.1  christos     libdir=$ac_optarg ;;
   1158  1.1  christos 
   1159  1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1160  1.1  christos   | --libexe | --libex | --libe)
   1161  1.1  christos     ac_prev=libexecdir ;;
   1162  1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1163  1.1  christos   | --libexe=* | --libex=* | --libe=*)
   1164  1.1  christos     libexecdir=$ac_optarg ;;
   1165  1.1  christos 
   1166  1.1  christos   -localedir | --localedir | --localedi | --localed | --locale)
   1167  1.1  christos     ac_prev=localedir ;;
   1168  1.1  christos   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1169  1.1  christos     localedir=$ac_optarg ;;
   1170  1.1  christos 
   1171  1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1172  1.1  christos   | --localstate | --localstat | --localsta | --localst | --locals)
   1173  1.1  christos     ac_prev=localstatedir ;;
   1174  1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1175  1.1  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1176  1.1  christos     localstatedir=$ac_optarg ;;
   1177  1.1  christos 
   1178  1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1179  1.1  christos     ac_prev=mandir ;;
   1180  1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1181  1.1  christos     mandir=$ac_optarg ;;
   1182  1.1  christos 
   1183  1.1  christos   -nfp | --nfp | --nf)
   1184  1.1  christos     # Obsolete; use --without-fp.
   1185  1.1  christos     with_fp=no ;;
   1186  1.1  christos 
   1187  1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1188  1.1  christos   | --no-cr | --no-c | -n)
   1189  1.1  christos     no_create=yes ;;
   1190  1.1  christos 
   1191  1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1192  1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1193  1.1  christos     no_recursion=yes ;;
   1194  1.1  christos 
   1195  1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1196  1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1197  1.1  christos   | --oldin | --oldi | --old | --ol | --o)
   1198  1.1  christos     ac_prev=oldincludedir ;;
   1199  1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1200  1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1201  1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1202  1.1  christos     oldincludedir=$ac_optarg ;;
   1203  1.1  christos 
   1204  1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1205  1.1  christos     ac_prev=prefix ;;
   1206  1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1207  1.1  christos     prefix=$ac_optarg ;;
   1208  1.1  christos 
   1209  1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1210  1.1  christos   | --program-pre | --program-pr | --program-p)
   1211  1.1  christos     ac_prev=program_prefix ;;
   1212  1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1213  1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1214  1.1  christos     program_prefix=$ac_optarg ;;
   1215  1.1  christos 
   1216  1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1217  1.1  christos   | --program-suf | --program-su | --program-s)
   1218  1.1  christos     ac_prev=program_suffix ;;
   1219  1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1220  1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1221  1.1  christos     program_suffix=$ac_optarg ;;
   1222  1.1  christos 
   1223  1.1  christos   -program-transform-name | --program-transform-name \
   1224  1.1  christos   | --program-transform-nam | --program-transform-na \
   1225  1.1  christos   | --program-transform-n | --program-transform- \
   1226  1.1  christos   | --program-transform | --program-transfor \
   1227  1.1  christos   | --program-transfo | --program-transf \
   1228  1.1  christos   | --program-trans | --program-tran \
   1229  1.1  christos   | --progr-tra | --program-tr | --program-t)
   1230  1.1  christos     ac_prev=program_transform_name ;;
   1231  1.1  christos   -program-transform-name=* | --program-transform-name=* \
   1232  1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
   1233  1.1  christos   | --program-transform-n=* | --program-transform-=* \
   1234  1.1  christos   | --program-transform=* | --program-transfor=* \
   1235  1.1  christos   | --program-transfo=* | --program-transf=* \
   1236  1.1  christos   | --program-trans=* | --program-tran=* \
   1237  1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
   1238  1.1  christos     program_transform_name=$ac_optarg ;;
   1239  1.1  christos 
   1240  1.1  christos   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1241  1.1  christos     ac_prev=pdfdir ;;
   1242  1.1  christos   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1243  1.1  christos     pdfdir=$ac_optarg ;;
   1244  1.1  christos 
   1245  1.1  christos   -psdir | --psdir | --psdi | --psd | --ps)
   1246  1.1  christos     ac_prev=psdir ;;
   1247  1.1  christos   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1248  1.1  christos     psdir=$ac_optarg ;;
   1249  1.1  christos 
   1250  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1251  1.1  christos   | -silent | --silent | --silen | --sile | --sil)
   1252  1.1  christos     silent=yes ;;
   1253  1.1  christos 
   1254  1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1255  1.1  christos     ac_prev=sbindir ;;
   1256  1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1257  1.1  christos   | --sbi=* | --sb=*)
   1258  1.1  christos     sbindir=$ac_optarg ;;
   1259  1.1  christos 
   1260  1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1261  1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1262  1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
   1263  1.1  christos   | --sha | --sh)
   1264  1.1  christos     ac_prev=sharedstatedir ;;
   1265  1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1266  1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1267  1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1268  1.1  christos   | --sha=* | --sh=*)
   1269  1.1  christos     sharedstatedir=$ac_optarg ;;
   1270  1.1  christos 
   1271  1.1  christos   -site | --site | --sit)
   1272  1.1  christos     ac_prev=site ;;
   1273  1.1  christos   -site=* | --site=* | --sit=*)
   1274  1.1  christos     site=$ac_optarg ;;
   1275  1.1  christos 
   1276  1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1277  1.1  christos     ac_prev=srcdir ;;
   1278  1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1279  1.1  christos     srcdir=$ac_optarg ;;
   1280  1.1  christos 
   1281  1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1282  1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
   1283  1.1  christos     ac_prev=sysconfdir ;;
   1284  1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1285  1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1286  1.1  christos     sysconfdir=$ac_optarg ;;
   1287  1.1  christos 
   1288  1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
   1289  1.1  christos     ac_prev=target_alias ;;
   1290  1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1291  1.1  christos     target_alias=$ac_optarg ;;
   1292  1.1  christos 
   1293  1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1294  1.1  christos     verbose=yes ;;
   1295  1.1  christos 
   1296  1.1  christos   -version | --version | --versio | --versi | --vers | -V)
   1297  1.1  christos     ac_init_version=: ;;
   1298  1.1  christos 
   1299  1.1  christos   -with-* | --with-*)
   1300  1.1  christos     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1301  1.1  christos     # Reject names that are not valid shell variable names.
   1302  1.1  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1303  1.1  christos       as_fn_error $? "invalid package name: $ac_useropt"
   1304  1.1  christos     ac_useropt_orig=$ac_useropt
   1305  1.1  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1306  1.1  christos     case $ac_user_opts in
   1307  1.1  christos       *"
   1308  1.1  christos "with_$ac_useropt"
   1309  1.1  christos "*) ;;
   1310  1.1  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1311  1.1  christos 	 ac_unrecognized_sep=', ';;
   1312  1.1  christos     esac
   1313  1.1  christos     eval with_$ac_useropt=\$ac_optarg ;;
   1314  1.1  christos 
   1315  1.1  christos   -without-* | --without-*)
   1316  1.1  christos     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1317  1.1  christos     # Reject names that are not valid shell variable names.
   1318  1.1  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1319  1.1  christos       as_fn_error $? "invalid package name: $ac_useropt"
   1320  1.1  christos     ac_useropt_orig=$ac_useropt
   1321  1.1  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1322  1.1  christos     case $ac_user_opts in
   1323  1.1  christos       *"
   1324  1.1  christos "with_$ac_useropt"
   1325  1.1  christos "*) ;;
   1326  1.1  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1327  1.1  christos 	 ac_unrecognized_sep=', ';;
   1328  1.1  christos     esac
   1329  1.1  christos     eval with_$ac_useropt=no ;;
   1330  1.1  christos 
   1331  1.1  christos   --x)
   1332  1.1  christos     # Obsolete; use --with-x.
   1333  1.1  christos     with_x=yes ;;
   1334  1.1  christos 
   1335  1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1336  1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
   1337  1.1  christos     ac_prev=x_includes ;;
   1338  1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1339  1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1340  1.1  christos     x_includes=$ac_optarg ;;
   1341  1.1  christos 
   1342  1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1343  1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1344  1.1  christos     ac_prev=x_libraries ;;
   1345  1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1346  1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1347  1.1  christos     x_libraries=$ac_optarg ;;
   1348  1.1  christos 
   1349  1.1  christos   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1350  1.1  christos Try \`$0 --help' for more information"
   1351  1.1  christos     ;;
   1352  1.1  christos 
   1353  1.1  christos   *=*)
   1354  1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1355  1.1  christos     # Reject names that are not valid shell variable names.
   1356  1.1  christos     case $ac_envvar in #(
   1357  1.1  christos       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1358  1.1  christos       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1359  1.1  christos     esac
   1360  1.1  christos     eval $ac_envvar=\$ac_optarg
   1361  1.1  christos     export $ac_envvar ;;
   1362  1.1  christos 
   1363  1.1  christos   *)
   1364  1.1  christos     # FIXME: should be removed in autoconf 3.0.
   1365  1.1  christos     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1366  1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1367  1.1  christos       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1368  1.1  christos     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1369  1.1  christos     ;;
   1370  1.1  christos 
   1371  1.1  christos   esac
   1372  1.1  christos done
   1373  1.1  christos 
   1374  1.1  christos if test -n "$ac_prev"; then
   1375  1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1376  1.1  christos   as_fn_error $? "missing argument to $ac_option"
   1377  1.1  christos fi
   1378  1.1  christos 
   1379  1.1  christos if test -n "$ac_unrecognized_opts"; then
   1380  1.1  christos   case $enable_option_checking in
   1381  1.1  christos     no) ;;
   1382  1.1  christos     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1383  1.1  christos     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1384  1.1  christos   esac
   1385  1.1  christos fi
   1386  1.1  christos 
   1387  1.1  christos # Check all directory arguments for consistency.
   1388  1.1  christos for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1389  1.1  christos 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1390  1.1  christos 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1391  1.1  christos 		libdir localedir mandir
   1392  1.1  christos do
   1393  1.1  christos   eval ac_val=\$$ac_var
   1394  1.1  christos   # Remove trailing slashes.
   1395  1.1  christos   case $ac_val in
   1396  1.1  christos     */ )
   1397  1.1  christos       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1398  1.1  christos       eval $ac_var=\$ac_val;;
   1399  1.1  christos   esac
   1400  1.1  christos   # Be sure to have absolute directory names.
   1401  1.1  christos   case $ac_val in
   1402  1.1  christos     [\\/$]* | ?:[\\/]* )  continue;;
   1403  1.1  christos     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1404  1.1  christos   esac
   1405  1.1  christos   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1406  1.1  christos done
   1407  1.1  christos 
   1408  1.1  christos # There might be people who depend on the old broken behavior: `$host'
   1409  1.1  christos # used to hold the argument of --host etc.
   1410  1.1  christos # FIXME: To remove some day.
   1411  1.1  christos build=$build_alias
   1412  1.1  christos host=$host_alias
   1413  1.1  christos target=$target_alias
   1414  1.1  christos 
   1415  1.1  christos # FIXME: To remove some day.
   1416  1.1  christos if test "x$host_alias" != x; then
   1417  1.1  christos   if test "x$build_alias" = x; then
   1418  1.1  christos     cross_compiling=maybe
   1419  1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
   1420  1.1  christos     cross_compiling=yes
   1421  1.1  christos   fi
   1422  1.1  christos fi
   1423  1.1  christos 
   1424  1.1  christos ac_tool_prefix=
   1425  1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1426  1.1  christos 
   1427  1.1  christos test "$silent" = yes && exec 6>/dev/null
   1428  1.1  christos 
   1429  1.1  christos 
   1430  1.1  christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1431  1.1  christos ac_ls_di=`ls -di .` &&
   1432  1.1  christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1433  1.1  christos   as_fn_error $? "working directory cannot be determined"
   1434  1.1  christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1435  1.1  christos   as_fn_error $? "pwd does not report name of working directory"
   1436  1.1  christos 
   1437  1.1  christos 
   1438  1.1  christos # Find the source files, if location was not specified.
   1439  1.1  christos if test -z "$srcdir"; then
   1440  1.1  christos   ac_srcdir_defaulted=yes
   1441  1.1  christos   # Try the directory containing this script, then the parent directory.
   1442  1.1  christos   ac_confdir=`$as_dirname -- "$as_myself" ||
   1443  1.1  christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1444  1.1  christos 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1445  1.1  christos 	 X"$as_myself" : 'X\(//\)$' \| \
   1446  1.1  christos 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1447  1.1  christos $as_echo X"$as_myself" |
   1448  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1449  1.1  christos 	    s//\1/
   1450  1.1  christos 	    q
   1451  1.1  christos 	  }
   1452  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   1453  1.1  christos 	    s//\1/
   1454  1.1  christos 	    q
   1455  1.1  christos 	  }
   1456  1.1  christos 	  /^X\(\/\/\)$/{
   1457  1.1  christos 	    s//\1/
   1458  1.1  christos 	    q
   1459  1.1  christos 	  }
   1460  1.1  christos 	  /^X\(\/\).*/{
   1461  1.1  christos 	    s//\1/
   1462  1.1  christos 	    q
   1463  1.1  christos 	  }
   1464  1.1  christos 	  s/.*/./; q'`
   1465  1.1  christos   srcdir=$ac_confdir
   1466  1.1  christos   if test ! -r "$srcdir/$ac_unique_file"; then
   1467  1.1  christos     srcdir=..
   1468  1.1  christos   fi
   1469  1.1  christos else
   1470  1.1  christos   ac_srcdir_defaulted=no
   1471  1.1  christos fi
   1472  1.1  christos if test ! -r "$srcdir/$ac_unique_file"; then
   1473  1.1  christos   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1474  1.1  christos   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1475  1.1  christos fi
   1476  1.1  christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1477  1.1  christos ac_abs_confdir=`(
   1478  1.1  christos 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1479  1.1  christos 	pwd)`
   1480  1.1  christos # When building in place, set srcdir=.
   1481  1.1  christos if test "$ac_abs_confdir" = "$ac_pwd"; then
   1482  1.1  christos   srcdir=.
   1483  1.1  christos fi
   1484  1.1  christos # Remove unnecessary trailing slashes from srcdir.
   1485  1.1  christos # Double slashes in file names in object file debugging info
   1486  1.1  christos # mess up M-x gdb in Emacs.
   1487  1.1  christos case $srcdir in
   1488  1.1  christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1489  1.1  christos esac
   1490  1.1  christos for ac_var in $ac_precious_vars; do
   1491  1.1  christos   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1492  1.1  christos   eval ac_env_${ac_var}_value=\$${ac_var}
   1493  1.1  christos   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1494  1.1  christos   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1495  1.1  christos done
   1496  1.1  christos 
   1497  1.1  christos #
   1498  1.1  christos # Report the --help message.
   1499  1.1  christos #
   1500  1.1  christos if test "$ac_init_help" = "long"; then
   1501  1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
   1502  1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
   1503  1.1  christos   cat <<_ACEOF
   1504  1.3  christos \`configure' configures BIND 9.13 to adapt to many kinds of systems.
   1505  1.1  christos 
   1506  1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
   1507  1.1  christos 
   1508  1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1509  1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
   1510  1.1  christos 
   1511  1.1  christos Defaults for the options are specified in brackets.
   1512  1.1  christos 
   1513  1.1  christos Configuration:
   1514  1.1  christos   -h, --help              display this help and exit
   1515  1.1  christos       --help=short        display options specific to this package
   1516  1.1  christos       --help=recursive    display the short help of all the included packages
   1517  1.1  christos   -V, --version           display version information and exit
   1518  1.1  christos   -q, --quiet, --silent   do not print \`checking ...' messages
   1519  1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
   1520  1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
   1521  1.1  christos   -n, --no-create         do not create output files
   1522  1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1523  1.1  christos 
   1524  1.1  christos Installation directories:
   1525  1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
   1526  1.1  christos                           [$ac_default_prefix]
   1527  1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1528  1.1  christos                           [PREFIX]
   1529  1.1  christos 
   1530  1.1  christos By default, \`make install' will install all the files in
   1531  1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1532  1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1533  1.1  christos for instance \`--prefix=\$HOME'.
   1534  1.1  christos 
   1535  1.1  christos For better control, use the options below.
   1536  1.1  christos 
   1537  1.1  christos Fine tuning of the installation directories:
   1538  1.1  christos   --bindir=DIR            user executables [EPREFIX/bin]
   1539  1.1  christos   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1540  1.1  christos   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1541  1.1  christos   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1542  1.1  christos   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1543  1.1  christos   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1544  1.1  christos   --libdir=DIR            object code libraries [EPREFIX/lib]
   1545  1.1  christos   --includedir=DIR        C header files [PREFIX/include]
   1546  1.1  christos   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1547  1.1  christos   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1548  1.1  christos   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1549  1.1  christos   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1550  1.1  christos   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1551  1.1  christos   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1552  1.1  christos   --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
   1553  1.1  christos   --htmldir=DIR           html documentation [DOCDIR]
   1554  1.1  christos   --dvidir=DIR            dvi documentation [DOCDIR]
   1555  1.1  christos   --pdfdir=DIR            pdf documentation [DOCDIR]
   1556  1.1  christos   --psdir=DIR             ps documentation [DOCDIR]
   1557  1.1  christos _ACEOF
   1558  1.1  christos 
   1559  1.1  christos   cat <<\_ACEOF
   1560  1.1  christos 
   1561  1.1  christos System types:
   1562  1.1  christos   --build=BUILD     configure for building on BUILD [guessed]
   1563  1.1  christos   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1564  1.1  christos _ACEOF
   1565  1.1  christos fi
   1566  1.1  christos 
   1567  1.1  christos if test -n "$ac_init_help"; then
   1568  1.1  christos   case $ac_init_help in
   1569  1.3  christos      short | recursive ) echo "Configuration of BIND 9.13:";;
   1570  1.1  christos    esac
   1571  1.1  christos   cat <<\_ACEOF
   1572  1.1  christos 
   1573  1.1  christos Optional Features:
   1574  1.1  christos   --disable-option-checking  ignore unrecognized --enable/--with options
   1575  1.1  christos   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1576  1.1  christos   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1577  1.1  christos   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1578  1.1  christos   --enable-static[=PKGS]  build static libraries [default=yes]
   1579  1.1  christos   --enable-fast-install[=PKGS]
   1580  1.1  christos                           optimize for fast installation [default=yes]
   1581  1.1  christos   --disable-libtool-lock  avoid locking (might break parallel builds)
   1582  1.1  christos   --enable-libbind        deprecated
   1583  1.1  christos   --enable-buffer-useinline
   1584  1.1  christos                           define ISC_BUFFER_USEINLINE when compiling
   1585  1.1  christos                           [default=yes]
   1586  1.1  christos   --enable-warn-shadow    turn on -Wshadow when compiling
   1587  1.1  christos   --enable-warn-error     turn on -Werror when compiling
   1588  1.1  christos   --enable-developer      enable developer build settings
   1589  1.3  christos   --enable-fuzzing=<afl|libfuzzer>
   1590  1.3  christos                           Enable fuzzing using American Fuzzy Lop or libFuzzer
   1591  1.3  christos                           (default=no)
   1592  1.1  christos   --enable-kqueue         use BSD kqueue when available [default=yes]
   1593  1.1  christos   --enable-epoll          use Linux epoll when available [default=auto]
   1594  1.1  christos   --enable-devpoll        use /dev/poll when available [default=yes]
   1595  1.3  christos   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1596  1.3  christos   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1597  1.1  christos   --enable-largefile      64-bit file support
   1598  1.1  christos   --enable-backtrace      log stack backtrace on abort [default=yes]
   1599  1.1  christos   --enable-symtable       use internal symbol table for backtrace
   1600  1.1  christos                           [all|minimal(default)|none]
   1601  1.3  christos   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1602  1.1  christos   --disable-isc-spnego    use SPNEGO from GSSAPI library
   1603  1.1  christos   --disable-chroot        disable chroot
   1604  1.3  christos   --disable-linux-caps    disable Linux capabilities
   1605  1.1  christos   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1606  1.3  christos   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1607  1.3  christos   --enable-querytrace     enable very verbose query trace logging [default=no]
   1608  1.3  christos   --enable-auto-validation
   1609  1.3  christos                           turn on DNSSEC validation by default, using the IANA
   1610  1.3  christos                           root key [default=yes]
   1611  1.1  christos   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1612  1.1  christos                           [default=$librpz_dl]
   1613  1.1  christos   --enable-dnsrps         enable DNS Response Policy Service API
   1614  1.1  christos   --enable-full-report    report values of all configure options
   1615  1.1  christos 
   1616  1.1  christos Optional Packages:
   1617  1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1618  1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1619  1.1  christos   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1620  1.1  christos                           both]
   1621  1.1  christos   --with-aix-soname=aix|svr4|both
   1622  1.1  christos                           shared library versioning (aka "SONAME") variant to
   1623  1.1  christos                           provide on AIX, [default=aix].
   1624  1.1  christos   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1625  1.1  christos   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1626  1.1  christos                           compiler's sysroot if not specified).
   1627  1.3  christos   --with-python=PATH      specify path to Python interpreter
   1628  1.1  christos   --with-python-install-dir=PATH
   1629  1.1  christos                           installation directory for Python modules
   1630  1.1  christos   --with-geoip=PATH       Build with GeoIP support (yes|no|path)
   1631  1.3  christos   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1632  1.3  christos   --with-libtool          use GNU libtool
   1633  1.3  christos   --with-openssl=DIR      root of the OpenSSL directory
   1634  1.3  christos   --with-cc-alg=ALG       choose the algorithm for Client Cookie
   1635  1.3  christos                           [aes|sha1|sha256] (default is aes)
   1636  1.3  christos   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1637  1.3  christos                           PKCS11 provider)
   1638  1.1  christos   --with-gssapi=PATH|/path/krb5-config
   1639  1.1  christos                           Specify path for system-supplied GSSAPI
   1640  1.1  christos                           [default=yes]
   1641  1.1  christos   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1642  1.1  christos   --with-libxml2=PATH     build with libxml2 library [yes|no|path]
   1643  1.1  christos   --with-libjson=PATH     build with libjson0 library [yes|no|path]
   1644  1.1  christos   --with-zlib=PATH        build with zlib for HTTP compression [default=yes]
   1645  1.1  christos   --with-purify=PATH      use Rational purify
   1646  1.1  christos   --with-gperftools-profiler
   1647  1.1  christos                           use gperftools CPU profiler
   1648  1.1  christos   --with-readline=LIBSPEC specify readline library [default auto]
   1649  1.1  christos   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1650  1.1  christos   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1651  1.1  christos   --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
   1652  1.3  christos   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1653  1.3  christos                           [yes|no(default)|path]
   1654  1.4  christos   --with-cmocka=detect    enable CMocka based tests (default is detect)
   1655  1.1  christos   --with-tuning=ARG       Specify server tuning (large or default)
   1656  1.3  christos   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1657  1.3  christos   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1658  1.3  christos   --with-dnsrps-dir       path to DNSRPS provider library
   1659  1.1  christos   --with-dlz-postgres=PATH
   1660  1.1  christos                           Build with Postgres DLZ driver [yes|no|path].
   1661  1.1  christos                           (Required to use Postgres with DLZ)
   1662  1.1  christos   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1663  1.1  christos                           to use MySQL with DLZ)
   1664  1.1  christos   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1665  1.1  christos                           (Required to use Berkeley DB with DLZ)
   1666  1.1  christos   --with-dlz-filesystem=ARG
   1667  1.1  christos                           Build with filesystem DLZ driver [yes|no]. (Required
   1668  1.1  christos                           to use file system driver with DLZ)
   1669  1.1  christos   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1670  1.1  christos                           to use LDAP with DLZ)
   1671  1.1  christos   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1672  1.1  christos                           to use ODBC with DLZ)
   1673  1.1  christos   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1674  1.1  christos                           use stub driver with DLZ)
   1675  1.1  christos   --with-make-clean       run "make clean" at end of configure [yes|no]
   1676  1.1  christos 
   1677  1.1  christos Some influential environment variables:
   1678  1.1  christos   CC          C compiler command
   1679  1.1  christos   CFLAGS      C compiler flags
   1680  1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1681  1.1  christos               nonstandard directory <lib dir>
   1682  1.1  christos   LIBS        libraries to pass to the linker, e.g. -l<library>
   1683  1.1  christos   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1684  1.1  christos               you have headers in a nonstandard directory <include dir>
   1685  1.3  christos   CPP         C preprocessor
   1686  1.1  christos   LT_SYS_LIBRARY_PATH
   1687  1.1  christos               User-defined run-time library search path.
   1688  1.3  christos   PKG_CONFIG  path to pkg-config utility
   1689  1.3  christos   PKG_CONFIG_PATH
   1690  1.3  christos               directories to add to pkg-config's search path
   1691  1.3  christos   PKG_CONFIG_LIBDIR
   1692  1.3  christos               path overriding pkg-config's built-in search path
   1693  1.3  christos   OPENSSL_CFLAGS
   1694  1.3  christos               C compiler flags for OPENSSL, overriding pkg-config
   1695  1.3  christos   OPENSSL_LIBS
   1696  1.3  christos               linker flags for OPENSSL, overriding pkg-config
   1697  1.3  christos   LIBIDN2_CFLAGS
   1698  1.3  christos               C compiler flags for LIBIDN2, overriding pkg-config
   1699  1.3  christos   LIBIDN2_LIBS
   1700  1.3  christos               linker flags for LIBIDN2, overriding pkg-config
   1701  1.3  christos   CMOCKA_CFLAGS
   1702  1.3  christos               C compiler flags for CMOCKA, overriding pkg-config
   1703  1.3  christos   CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
   1704  1.3  christos   KYUA        path to kyua execution engine
   1705  1.1  christos 
   1706  1.1  christos Use these variables to override the choices made by `configure' or to help
   1707  1.1  christos it to find libraries and programs with nonstandard names/locations.
   1708  1.1  christos 
   1709  1.1  christos Report bugs to <info (at] isc.org>.
   1710  1.1  christos BIND home page: <https://www.isc.org/downloads/BIND/>.
   1711  1.1  christos _ACEOF
   1712  1.1  christos ac_status=$?
   1713  1.1  christos fi
   1714  1.1  christos 
   1715  1.1  christos if test "$ac_init_help" = "recursive"; then
   1716  1.1  christos   # If there are subdirs, report their specific --help.
   1717  1.1  christos   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1718  1.1  christos     test -d "$ac_dir" ||
   1719  1.1  christos       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1720  1.1  christos       continue
   1721  1.1  christos     ac_builddir=.
   1722  1.1  christos 
   1723  1.1  christos case "$ac_dir" in
   1724  1.1  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1725  1.1  christos *)
   1726  1.1  christos   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1727  1.1  christos   # A ".." for each directory in $ac_dir_suffix.
   1728  1.1  christos   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1729  1.1  christos   case $ac_top_builddir_sub in
   1730  1.1  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1731  1.1  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1732  1.1  christos   esac ;;
   1733  1.1  christos esac
   1734  1.1  christos ac_abs_top_builddir=$ac_pwd
   1735  1.1  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1736  1.1  christos # for backward compatibility:
   1737  1.1  christos ac_top_builddir=$ac_top_build_prefix
   1738  1.1  christos 
   1739  1.1  christos case $srcdir in
   1740  1.1  christos   .)  # We are building in place.
   1741  1.1  christos     ac_srcdir=.
   1742  1.1  christos     ac_top_srcdir=$ac_top_builddir_sub
   1743  1.1  christos     ac_abs_top_srcdir=$ac_pwd ;;
   1744  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   1745  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   1746  1.1  christos     ac_top_srcdir=$srcdir
   1747  1.1  christos     ac_abs_top_srcdir=$srcdir ;;
   1748  1.1  christos   *) # Relative name.
   1749  1.1  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1750  1.1  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1751  1.1  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1752  1.1  christos esac
   1753  1.1  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1754  1.1  christos 
   1755  1.1  christos     cd "$ac_dir" || { ac_status=$?; continue; }
   1756  1.1  christos     # Check for guested configure.
   1757  1.1  christos     if test -f "$ac_srcdir/configure.gnu"; then
   1758  1.1  christos       echo &&
   1759  1.1  christos       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1760  1.1  christos     elif test -f "$ac_srcdir/configure"; then
   1761  1.1  christos       echo &&
   1762  1.1  christos       $SHELL "$ac_srcdir/configure" --help=recursive
   1763  1.1  christos     else
   1764  1.1  christos       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1765  1.1  christos     fi || ac_status=$?
   1766  1.1  christos     cd "$ac_pwd" || { ac_status=$?; break; }
   1767  1.1  christos   done
   1768  1.1  christos fi
   1769  1.1  christos 
   1770  1.1  christos test -n "$ac_init_help" && exit $ac_status
   1771  1.1  christos if $ac_init_version; then
   1772  1.1  christos   cat <<\_ACEOF
   1773  1.3  christos BIND configure 9.13
   1774  1.1  christos generated by GNU Autoconf 2.69
   1775  1.1  christos 
   1776  1.1  christos Copyright (C) 2012 Free Software Foundation, Inc.
   1777  1.1  christos This configure script is free software; the Free Software Foundation
   1778  1.1  christos gives unlimited permission to copy, distribute and modify it.
   1779  1.1  christos _ACEOF
   1780  1.1  christos   exit
   1781  1.1  christos fi
   1782  1.1  christos 
   1783  1.1  christos ## ------------------------ ##
   1784  1.1  christos ## Autoconf initialization. ##
   1785  1.1  christos ## ------------------------ ##
   1786  1.1  christos 
   1787  1.1  christos # ac_fn_c_try_compile LINENO
   1788  1.1  christos # --------------------------
   1789  1.1  christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1790  1.1  christos ac_fn_c_try_compile ()
   1791  1.1  christos {
   1792  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1793  1.1  christos   rm -f conftest.$ac_objext
   1794  1.1  christos   if { { ac_try="$ac_compile"
   1795  1.1  christos case "(($ac_try" in
   1796  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1797  1.1  christos   *) ac_try_echo=$ac_try;;
   1798  1.1  christos esac
   1799  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1800  1.1  christos $as_echo "$ac_try_echo"; } >&5
   1801  1.1  christos   (eval "$ac_compile") 2>conftest.err
   1802  1.1  christos   ac_status=$?
   1803  1.1  christos   if test -s conftest.err; then
   1804  1.1  christos     grep -v '^ *+' conftest.err >conftest.er1
   1805  1.1  christos     cat conftest.er1 >&5
   1806  1.1  christos     mv -f conftest.er1 conftest.err
   1807  1.1  christos   fi
   1808  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1809  1.1  christos   test $ac_status = 0; } && {
   1810  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   1811  1.1  christos 	 test ! -s conftest.err
   1812  1.1  christos        } && test -s conftest.$ac_objext; then :
   1813  1.1  christos   ac_retval=0
   1814  1.1  christos else
   1815  1.1  christos   $as_echo "$as_me: failed program was:" >&5
   1816  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   1817  1.1  christos 
   1818  1.1  christos 	ac_retval=1
   1819  1.1  christos fi
   1820  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1821  1.1  christos   as_fn_set_status $ac_retval
   1822  1.1  christos 
   1823  1.1  christos } # ac_fn_c_try_compile
   1824  1.1  christos 
   1825  1.3  christos # ac_fn_c_try_cpp LINENO
   1826  1.3  christos # ----------------------
   1827  1.3  christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1828  1.3  christos ac_fn_c_try_cpp ()
   1829  1.1  christos {
   1830  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1831  1.3  christos   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1832  1.1  christos case "(($ac_try" in
   1833  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1834  1.1  christos   *) ac_try_echo=$ac_try;;
   1835  1.1  christos esac
   1836  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1837  1.1  christos $as_echo "$ac_try_echo"; } >&5
   1838  1.3  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1839  1.1  christos   ac_status=$?
   1840  1.1  christos   if test -s conftest.err; then
   1841  1.1  christos     grep -v '^ *+' conftest.err >conftest.er1
   1842  1.1  christos     cat conftest.er1 >&5
   1843  1.1  christos     mv -f conftest.er1 conftest.err
   1844  1.1  christos   fi
   1845  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1846  1.3  christos   test $ac_status = 0; } > conftest.i && {
   1847  1.3  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1848  1.1  christos 	 test ! -s conftest.err
   1849  1.1  christos        }; then :
   1850  1.1  christos   ac_retval=0
   1851  1.1  christos else
   1852  1.1  christos   $as_echo "$as_me: failed program was:" >&5
   1853  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   1854  1.1  christos 
   1855  1.3  christos     ac_retval=1
   1856  1.1  christos fi
   1857  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1858  1.1  christos   as_fn_set_status $ac_retval
   1859  1.1  christos 
   1860  1.3  christos } # ac_fn_c_try_cpp
   1861  1.1  christos 
   1862  1.3  christos # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1863  1.1  christos # -------------------------------------------------------
   1864  1.3  christos # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1865  1.3  christos # the include files in INCLUDES and setting the cache variable VAR
   1866  1.3  christos # accordingly.
   1867  1.3  christos ac_fn_c_check_header_mongrel ()
   1868  1.1  christos {
   1869  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1870  1.3  christos   if eval \${$3+:} false; then :
   1871  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1872  1.1  christos $as_echo_n "checking for $2... " >&6; }
   1873  1.1  christos if eval \${$3+:} false; then :
   1874  1.1  christos   $as_echo_n "(cached) " >&6
   1875  1.3  christos fi
   1876  1.3  christos eval ac_res=\$$3
   1877  1.3  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1878  1.3  christos $as_echo "$ac_res" >&6; }
   1879  1.1  christos else
   1880  1.3  christos   # Is the header compilable?
   1881  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1882  1.3  christos $as_echo_n "checking $2 usability... " >&6; }
   1883  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1884  1.1  christos /* end confdefs.h.  */
   1885  1.1  christos $4
   1886  1.1  christos #include <$2>
   1887  1.1  christos _ACEOF
   1888  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   1889  1.3  christos   ac_header_compiler=yes
   1890  1.1  christos else
   1891  1.3  christos   ac_header_compiler=no
   1892  1.1  christos fi
   1893  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1894  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1895  1.3  christos $as_echo "$ac_header_compiler" >&6; }
   1896  1.3  christos 
   1897  1.3  christos # Is the header present?
   1898  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1899  1.3  christos $as_echo_n "checking $2 presence... " >&6; }
   1900  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1901  1.3  christos /* end confdefs.h.  */
   1902  1.3  christos #include <$2>
   1903  1.3  christos _ACEOF
   1904  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   1905  1.3  christos   ac_header_preproc=yes
   1906  1.3  christos else
   1907  1.3  christos   ac_header_preproc=no
   1908  1.3  christos fi
   1909  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   1910  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1911  1.3  christos $as_echo "$ac_header_preproc" >&6; }
   1912  1.3  christos 
   1913  1.3  christos # So?  What about this header?
   1914  1.3  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1915  1.3  christos   yes:no: )
   1916  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1917  1.3  christos $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1918  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1919  1.3  christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1920  1.3  christos     ;;
   1921  1.3  christos   no:yes:* )
   1922  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1923  1.3  christos $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1924  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1925  1.3  christos $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1926  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1927  1.3  christos $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1928  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1929  1.3  christos $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1930  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1931  1.3  christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1932  1.3  christos ( $as_echo "## --------------------------- ##
   1933  1.3  christos ## Report this to info (at] isc.org ##
   1934  1.3  christos ## --------------------------- ##"
   1935  1.3  christos      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1936  1.3  christos     ;;
   1937  1.3  christos esac
   1938  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1939  1.3  christos $as_echo_n "checking for $2... " >&6; }
   1940  1.3  christos if eval \${$3+:} false; then :
   1941  1.3  christos   $as_echo_n "(cached) " >&6
   1942  1.3  christos else
   1943  1.3  christos   eval "$3=\$ac_header_compiler"
   1944  1.1  christos fi
   1945  1.1  christos eval ac_res=\$$3
   1946  1.1  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1947  1.1  christos $as_echo "$ac_res" >&6; }
   1948  1.1  christos fi
   1949  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1950  1.1  christos 
   1951  1.3  christos } # ac_fn_c_check_header_mongrel
   1952  1.1  christos 
   1953  1.1  christos # ac_fn_c_try_run LINENO
   1954  1.1  christos # ----------------------
   1955  1.1  christos # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1956  1.1  christos # that executables *can* be run.
   1957  1.1  christos ac_fn_c_try_run ()
   1958  1.1  christos {
   1959  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1960  1.1  christos   if { { ac_try="$ac_link"
   1961  1.1  christos case "(($ac_try" in
   1962  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1963  1.1  christos   *) ac_try_echo=$ac_try;;
   1964  1.1  christos esac
   1965  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1966  1.1  christos $as_echo "$ac_try_echo"; } >&5
   1967  1.1  christos   (eval "$ac_link") 2>&5
   1968  1.1  christos   ac_status=$?
   1969  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1970  1.1  christos   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1971  1.1  christos   { { case "(($ac_try" in
   1972  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1973  1.1  christos   *) ac_try_echo=$ac_try;;
   1974  1.1  christos esac
   1975  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1976  1.1  christos $as_echo "$ac_try_echo"; } >&5
   1977  1.1  christos   (eval "$ac_try") 2>&5
   1978  1.1  christos   ac_status=$?
   1979  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1980  1.1  christos   test $ac_status = 0; }; }; then :
   1981  1.1  christos   ac_retval=0
   1982  1.1  christos else
   1983  1.1  christos   $as_echo "$as_me: program exited with status $ac_status" >&5
   1984  1.1  christos        $as_echo "$as_me: failed program was:" >&5
   1985  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   1986  1.1  christos 
   1987  1.1  christos        ac_retval=$ac_status
   1988  1.1  christos fi
   1989  1.1  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1990  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1991  1.1  christos   as_fn_set_status $ac_retval
   1992  1.1  christos 
   1993  1.1  christos } # ac_fn_c_try_run
   1994  1.1  christos 
   1995  1.3  christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1996  1.3  christos # -------------------------------------------------------
   1997  1.3  christos # Tests whether HEADER exists and can be compiled using the include files in
   1998  1.3  christos # INCLUDES, setting the cache variable VAR accordingly.
   1999  1.3  christos ac_fn_c_check_header_compile ()
   2000  1.1  christos {
   2001  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2002  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2003  1.1  christos $as_echo_n "checking for $2... " >&6; }
   2004  1.1  christos if eval \${$3+:} false; then :
   2005  1.1  christos   $as_echo_n "(cached) " >&6
   2006  1.1  christos else
   2007  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2008  1.1  christos /* end confdefs.h.  */
   2009  1.3  christos $4
   2010  1.3  christos #include <$2>
   2011  1.1  christos _ACEOF
   2012  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   2013  1.1  christos   eval "$3=yes"
   2014  1.1  christos else
   2015  1.1  christos   eval "$3=no"
   2016  1.1  christos fi
   2017  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2018  1.1  christos fi
   2019  1.1  christos eval ac_res=\$$3
   2020  1.1  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2021  1.1  christos $as_echo "$ac_res" >&6; }
   2022  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2023  1.1  christos 
   2024  1.3  christos } # ac_fn_c_check_header_compile
   2025  1.3  christos 
   2026  1.3  christos # ac_fn_c_try_link LINENO
   2027  1.3  christos # -----------------------
   2028  1.3  christos # Try to link conftest.$ac_ext, and return whether this succeeded.
   2029  1.3  christos ac_fn_c_try_link ()
   2030  1.3  christos {
   2031  1.3  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2032  1.3  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   2033  1.3  christos   if { { ac_try="$ac_link"
   2034  1.3  christos case "(($ac_try" in
   2035  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2036  1.3  christos   *) ac_try_echo=$ac_try;;
   2037  1.3  christos esac
   2038  1.3  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2039  1.3  christos $as_echo "$ac_try_echo"; } >&5
   2040  1.3  christos   (eval "$ac_link") 2>conftest.err
   2041  1.3  christos   ac_status=$?
   2042  1.3  christos   if test -s conftest.err; then
   2043  1.3  christos     grep -v '^ *+' conftest.err >conftest.er1
   2044  1.3  christos     cat conftest.er1 >&5
   2045  1.3  christos     mv -f conftest.er1 conftest.err
   2046  1.3  christos   fi
   2047  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2048  1.3  christos   test $ac_status = 0; } && {
   2049  1.3  christos 	 test -z "$ac_c_werror_flag" ||
   2050  1.3  christos 	 test ! -s conftest.err
   2051  1.3  christos        } && test -s conftest$ac_exeext && {
   2052  1.3  christos 	 test "$cross_compiling" = yes ||
   2053  1.3  christos 	 test -x conftest$ac_exeext
   2054  1.3  christos        }; then :
   2055  1.3  christos   ac_retval=0
   2056  1.3  christos else
   2057  1.3  christos   $as_echo "$as_me: failed program was:" >&5
   2058  1.3  christos sed 's/^/| /' conftest.$ac_ext >&5
   2059  1.3  christos 
   2060  1.3  christos 	ac_retval=1
   2061  1.3  christos fi
   2062  1.3  christos   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2063  1.3  christos   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2064  1.3  christos   # interfere with the next link command; also delete a directory that is
   2065  1.3  christos   # left behind by Apple's compiler.  We do this before executing the actions.
   2066  1.3  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2067  1.3  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2068  1.3  christos   as_fn_set_status $ac_retval
   2069  1.3  christos 
   2070  1.3  christos } # ac_fn_c_try_link
   2071  1.3  christos 
   2072  1.3  christos # ac_fn_c_check_func LINENO FUNC VAR
   2073  1.3  christos # ----------------------------------
   2074  1.3  christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2075  1.3  christos ac_fn_c_check_func ()
   2076  1.3  christos {
   2077  1.3  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2078  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2079  1.3  christos $as_echo_n "checking for $2... " >&6; }
   2080  1.3  christos if eval \${$3+:} false; then :
   2081  1.3  christos   $as_echo_n "(cached) " >&6
   2082  1.3  christos else
   2083  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2084  1.3  christos /* end confdefs.h.  */
   2085  1.3  christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2086  1.3  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2087  1.3  christos #define $2 innocuous_$2
   2088  1.3  christos 
   2089  1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   2090  1.3  christos     which can conflict with char $2 (); below.
   2091  1.3  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2092  1.3  christos     <limits.h> exists even on freestanding compilers.  */
   2093  1.3  christos 
   2094  1.3  christos #ifdef __STDC__
   2095  1.3  christos # include <limits.h>
   2096  1.3  christos #else
   2097  1.3  christos # include <assert.h>
   2098  1.3  christos #endif
   2099  1.3  christos 
   2100  1.3  christos #undef $2
   2101  1.3  christos 
   2102  1.3  christos /* Override any GCC internal prototype to avoid an error.
   2103  1.3  christos    Use char because int might match the return type of a GCC
   2104  1.3  christos    builtin and then its argument prototype would still apply.  */
   2105  1.3  christos #ifdef __cplusplus
   2106  1.3  christos extern "C"
   2107  1.3  christos #endif
   2108  1.3  christos char $2 ();
   2109  1.3  christos /* The GNU C library defines this for functions which it implements
   2110  1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   2111  1.3  christos     something starting with __ and the normal name is an alias.  */
   2112  1.3  christos #if defined __stub_$2 || defined __stub___$2
   2113  1.3  christos choke me
   2114  1.3  christos #endif
   2115  1.3  christos 
   2116  1.3  christos int
   2117  1.3  christos main ()
   2118  1.3  christos {
   2119  1.3  christos return $2 ();
   2120  1.3  christos   ;
   2121  1.3  christos   return 0;
   2122  1.3  christos }
   2123  1.3  christos _ACEOF
   2124  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   2125  1.3  christos   eval "$3=yes"
   2126  1.3  christos else
   2127  1.3  christos   eval "$3=no"
   2128  1.3  christos fi
   2129  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   2130  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   2131  1.3  christos fi
   2132  1.3  christos eval ac_res=\$$3
   2133  1.3  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2134  1.3  christos $as_echo "$ac_res" >&6; }
   2135  1.3  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2136  1.3  christos 
   2137  1.3  christos } # ac_fn_c_check_func
   2138  1.1  christos 
   2139  1.1  christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2140  1.1  christos # -------------------------------------------
   2141  1.1  christos # Tests whether TYPE exists after having included INCLUDES, setting cache
   2142  1.1  christos # variable VAR accordingly.
   2143  1.1  christos ac_fn_c_check_type ()
   2144  1.1  christos {
   2145  1.1  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2146  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2147  1.1  christos $as_echo_n "checking for $2... " >&6; }
   2148  1.1  christos if eval \${$3+:} false; then :
   2149  1.1  christos   $as_echo_n "(cached) " >&6
   2150  1.1  christos else
   2151  1.1  christos   eval "$3=no"
   2152  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2153  1.1  christos /* end confdefs.h.  */
   2154  1.1  christos $4
   2155  1.1  christos int
   2156  1.1  christos main ()
   2157  1.1  christos {
   2158  1.1  christos if (sizeof ($2))
   2159  1.1  christos 	 return 0;
   2160  1.1  christos   ;
   2161  1.1  christos   return 0;
   2162  1.1  christos }
   2163  1.1  christos _ACEOF
   2164  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   2165  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2166  1.1  christos /* end confdefs.h.  */
   2167  1.1  christos $4
   2168  1.1  christos int
   2169  1.1  christos main ()
   2170  1.1  christos {
   2171  1.1  christos if (sizeof (($2)))
   2172  1.1  christos 	    return 0;
   2173  1.1  christos   ;
   2174  1.1  christos   return 0;
   2175  1.1  christos }
   2176  1.1  christos _ACEOF
   2177  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   2178  1.1  christos 
   2179  1.1  christos else
   2180  1.1  christos   eval "$3=yes"
   2181  1.1  christos fi
   2182  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2183  1.1  christos fi
   2184  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2185  1.1  christos fi
   2186  1.1  christos eval ac_res=\$$3
   2187  1.1  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2188  1.1  christos $as_echo "$ac_res" >&6; }
   2189  1.1  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2190  1.1  christos 
   2191  1.1  christos } # ac_fn_c_check_type
   2192  1.3  christos cat >config.log <<_ACEOF
   2193  1.3  christos This file contains any messages produced by compilers while
   2194  1.3  christos running configure, to aid debugging if configure makes a mistake.
   2195  1.3  christos 
   2196  1.3  christos It was created by BIND $as_me 9.13, which was
   2197  1.3  christos generated by GNU Autoconf 2.69.  Invocation command line was
   2198  1.3  christos 
   2199  1.3  christos   $ $0 $@
   2200  1.1  christos 
   2201  1.3  christos _ACEOF
   2202  1.3  christos exec 5>>config.log
   2203  1.1  christos {
   2204  1.3  christos cat <<_ASUNAME
   2205  1.3  christos ## --------- ##
   2206  1.3  christos ## Platform. ##
   2207  1.3  christos ## --------- ##
   2208  1.3  christos 
   2209  1.3  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2210  1.3  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2211  1.3  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2212  1.3  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2213  1.3  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2214  1.3  christos 
   2215  1.3  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2216  1.3  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2217  1.3  christos 
   2218  1.3  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2219  1.3  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2220  1.3  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2221  1.3  christos /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2222  1.3  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2223  1.3  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2224  1.3  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2225  1.3  christos 
   2226  1.3  christos _ASUNAME
   2227  1.3  christos 
   2228  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2229  1.3  christos for as_dir in $PATH
   2230  1.3  christos do
   2231  1.3  christos   IFS=$as_save_IFS
   2232  1.3  christos   test -z "$as_dir" && as_dir=.
   2233  1.3  christos     $as_echo "PATH: $as_dir"
   2234  1.3  christos   done
   2235  1.3  christos IFS=$as_save_IFS
   2236  1.1  christos 
   2237  1.3  christos } >&5
   2238  1.1  christos 
   2239  1.3  christos cat >&5 <<_ACEOF
   2240  1.1  christos 
   2241  1.1  christos 
   2242  1.3  christos ## ----------- ##
   2243  1.3  christos ## Core tests. ##
   2244  1.3  christos ## ----------- ##
   2245  1.1  christos 
   2246  1.1  christos _ACEOF
   2247  1.3  christos 
   2248  1.3  christos 
   2249  1.3  christos # Keep a trace of the command line.
   2250  1.1  christos # Strip out --no-create and --no-recursion so they do not pile up.
   2251  1.1  christos # Strip out --silent because we don't want to record it for future runs.
   2252  1.1  christos # Also quote any args containing shell meta-characters.
   2253  1.1  christos # Make two passes to allow for proper duplicate-argument suppression.
   2254  1.1  christos ac_configure_args=
   2255  1.1  christos ac_configure_args0=
   2256  1.1  christos ac_configure_args1=
   2257  1.1  christos ac_must_keep_next=false
   2258  1.1  christos for ac_pass in 1 2
   2259  1.1  christos do
   2260  1.1  christos   for ac_arg
   2261  1.1  christos   do
   2262  1.1  christos     case $ac_arg in
   2263  1.1  christos     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2264  1.1  christos     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2265  1.1  christos     | -silent | --silent | --silen | --sile | --sil)
   2266  1.1  christos       continue ;;
   2267  1.1  christos     *\'*)
   2268  1.1  christos       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2269  1.1  christos     esac
   2270  1.1  christos     case $ac_pass in
   2271  1.1  christos     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2272  1.1  christos     2)
   2273  1.1  christos       as_fn_append ac_configure_args1 " '$ac_arg'"
   2274  1.1  christos       if test $ac_must_keep_next = true; then
   2275  1.1  christos 	ac_must_keep_next=false # Got value, back to normal.
   2276  1.1  christos       else
   2277  1.1  christos 	case $ac_arg in
   2278  1.1  christos 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2279  1.1  christos 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2280  1.1  christos 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2281  1.1  christos 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2282  1.1  christos 	    case "$ac_configure_args0 " in
   2283  1.1  christos 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2284  1.1  christos 	    esac
   2285  1.1  christos 	    ;;
   2286  1.1  christos 	  -* ) ac_must_keep_next=true ;;
   2287  1.1  christos 	esac
   2288  1.1  christos       fi
   2289  1.1  christos       as_fn_append ac_configure_args " '$ac_arg'"
   2290  1.1  christos       ;;
   2291  1.1  christos     esac
   2292  1.1  christos   done
   2293  1.1  christos done
   2294  1.1  christos { ac_configure_args0=; unset ac_configure_args0;}
   2295  1.1  christos { ac_configure_args1=; unset ac_configure_args1;}
   2296  1.1  christos 
   2297  1.1  christos # When interrupted or exit'd, cleanup temporary files, and complete
   2298  1.1  christos # config.log.  We remove comments because anyway the quotes in there
   2299  1.1  christos # would cause problems or look ugly.
   2300  1.1  christos # WARNING: Use '\'' to represent an apostrophe within the trap.
   2301  1.1  christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2302  1.1  christos trap 'exit_status=$?
   2303  1.1  christos   # Save into config.log some information that might help in debugging.
   2304  1.1  christos   {
   2305  1.1  christos     echo
   2306  1.1  christos 
   2307  1.1  christos     $as_echo "## ---------------- ##
   2308  1.1  christos ## Cache variables. ##
   2309  1.1  christos ## ---------------- ##"
   2310  1.1  christos     echo
   2311  1.1  christos     # The following way of writing the cache mishandles newlines in values,
   2312  1.1  christos (
   2313  1.1  christos   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2314  1.1  christos     eval ac_val=\$$ac_var
   2315  1.1  christos     case $ac_val in #(
   2316  1.1  christos     *${as_nl}*)
   2317  1.1  christos       case $ac_var in #(
   2318  1.1  christos       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2319  1.1  christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2320  1.1  christos       esac
   2321  1.1  christos       case $ac_var in #(
   2322  1.1  christos       _ | IFS | as_nl) ;; #(
   2323  1.1  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2324  1.1  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   2325  1.1  christos       esac ;;
   2326  1.1  christos     esac
   2327  1.1  christos   done
   2328  1.1  christos   (set) 2>&1 |
   2329  1.1  christos     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2330  1.1  christos     *${as_nl}ac_space=\ *)
   2331  1.1  christos       sed -n \
   2332  1.1  christos 	"s/'\''/'\''\\\\'\'''\''/g;
   2333  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2334  1.1  christos       ;; #(
   2335  1.1  christos     *)
   2336  1.1  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2337  1.1  christos       ;;
   2338  1.1  christos     esac |
   2339  1.1  christos     sort
   2340  1.1  christos )
   2341  1.1  christos     echo
   2342  1.1  christos 
   2343  1.1  christos     $as_echo "## ----------------- ##
   2344  1.1  christos ## Output variables. ##
   2345  1.1  christos ## ----------------- ##"
   2346  1.1  christos     echo
   2347  1.1  christos     for ac_var in $ac_subst_vars
   2348  1.1  christos     do
   2349  1.1  christos       eval ac_val=\$$ac_var
   2350  1.1  christos       case $ac_val in
   2351  1.1  christos       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2352  1.1  christos       esac
   2353  1.1  christos       $as_echo "$ac_var='\''$ac_val'\''"
   2354  1.1  christos     done | sort
   2355  1.1  christos     echo
   2356  1.1  christos 
   2357  1.1  christos     if test -n "$ac_subst_files"; then
   2358  1.1  christos       $as_echo "## ------------------- ##
   2359  1.1  christos ## File substitutions. ##
   2360  1.1  christos ## ------------------- ##"
   2361  1.1  christos       echo
   2362  1.1  christos       for ac_var in $ac_subst_files
   2363  1.1  christos       do
   2364  1.1  christos 	eval ac_val=\$$ac_var
   2365  1.1  christos 	case $ac_val in
   2366  1.1  christos 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2367  1.1  christos 	esac
   2368  1.1  christos 	$as_echo "$ac_var='\''$ac_val'\''"
   2369  1.1  christos       done | sort
   2370  1.1  christos       echo
   2371  1.1  christos     fi
   2372  1.1  christos 
   2373  1.1  christos     if test -s confdefs.h; then
   2374  1.1  christos       $as_echo "## ----------- ##
   2375  1.1  christos ## confdefs.h. ##
   2376  1.1  christos ## ----------- ##"
   2377  1.1  christos       echo
   2378  1.1  christos       cat confdefs.h
   2379  1.1  christos       echo
   2380  1.1  christos     fi
   2381  1.1  christos     test "$ac_signal" != 0 &&
   2382  1.1  christos       $as_echo "$as_me: caught signal $ac_signal"
   2383  1.1  christos     $as_echo "$as_me: exit $exit_status"
   2384  1.1  christos   } >&5
   2385  1.1  christos   rm -f core *.core core.conftest.* &&
   2386  1.1  christos     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2387  1.1  christos     exit $exit_status
   2388  1.1  christos ' 0
   2389  1.1  christos for ac_signal in 1 2 13 15; do
   2390  1.1  christos   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2391  1.1  christos done
   2392  1.1  christos ac_signal=0
   2393  1.1  christos 
   2394  1.1  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2395  1.1  christos rm -f -r conftest* confdefs.h
   2396  1.1  christos 
   2397  1.1  christos $as_echo "/* confdefs.h */" > confdefs.h
   2398  1.1  christos 
   2399  1.1  christos # Predefined preprocessor variables.
   2400  1.1  christos 
   2401  1.1  christos cat >>confdefs.h <<_ACEOF
   2402  1.1  christos #define PACKAGE_NAME "$PACKAGE_NAME"
   2403  1.1  christos _ACEOF
   2404  1.1  christos 
   2405  1.1  christos cat >>confdefs.h <<_ACEOF
   2406  1.1  christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2407  1.1  christos _ACEOF
   2408  1.1  christos 
   2409  1.1  christos cat >>confdefs.h <<_ACEOF
   2410  1.1  christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2411  1.1  christos _ACEOF
   2412  1.1  christos 
   2413  1.1  christos cat >>confdefs.h <<_ACEOF
   2414  1.1  christos #define PACKAGE_STRING "$PACKAGE_STRING"
   2415  1.1  christos _ACEOF
   2416  1.1  christos 
   2417  1.1  christos cat >>confdefs.h <<_ACEOF
   2418  1.1  christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2419  1.1  christos _ACEOF
   2420  1.1  christos 
   2421  1.1  christos cat >>confdefs.h <<_ACEOF
   2422  1.1  christos #define PACKAGE_URL "$PACKAGE_URL"
   2423  1.1  christos _ACEOF
   2424  1.1  christos 
   2425  1.1  christos 
   2426  1.1  christos # Let the site file select an alternate cache file if it wants to.
   2427  1.1  christos # Prefer an explicitly selected file to automatically selected ones.
   2428  1.1  christos ac_site_file1=NONE
   2429  1.1  christos ac_site_file2=NONE
   2430  1.1  christos if test -n "$CONFIG_SITE"; then
   2431  1.1  christos   # We do not want a PATH search for config.site.
   2432  1.1  christos   case $CONFIG_SITE in #((
   2433  1.1  christos     -*)  ac_site_file1=./$CONFIG_SITE;;
   2434  1.1  christos     */*) ac_site_file1=$CONFIG_SITE;;
   2435  1.1  christos     *)   ac_site_file1=./$CONFIG_SITE;;
   2436  1.1  christos   esac
   2437  1.1  christos elif test "x$prefix" != xNONE; then
   2438  1.1  christos   ac_site_file1=$prefix/share/config.site
   2439  1.1  christos   ac_site_file2=$prefix/etc/config.site
   2440  1.1  christos else
   2441  1.1  christos   ac_site_file1=$ac_default_prefix/share/config.site
   2442  1.1  christos   ac_site_file2=$ac_default_prefix/etc/config.site
   2443  1.1  christos fi
   2444  1.1  christos for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2445  1.1  christos do
   2446  1.1  christos   test "x$ac_site_file" = xNONE && continue
   2447  1.1  christos   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2448  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2449  1.1  christos $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2450  1.1  christos     sed 's/^/| /' "$ac_site_file" >&5
   2451  1.1  christos     . "$ac_site_file" \
   2452  1.1  christos       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2453  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2454  1.1  christos as_fn_error $? "failed to load site script $ac_site_file
   2455  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   2456  1.1  christos   fi
   2457  1.1  christos done
   2458  1.1  christos 
   2459  1.1  christos if test -r "$cache_file"; then
   2460  1.1  christos   # Some versions of bash will fail to source /dev/null (special files
   2461  1.1  christos   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2462  1.1  christos   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2463  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2464  1.1  christos $as_echo "$as_me: loading cache $cache_file" >&6;}
   2465  1.1  christos     case $cache_file in
   2466  1.1  christos       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2467  1.1  christos       *)                      . "./$cache_file";;
   2468  1.1  christos     esac
   2469  1.1  christos   fi
   2470  1.1  christos else
   2471  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2472  1.1  christos $as_echo "$as_me: creating cache $cache_file" >&6;}
   2473  1.1  christos   >$cache_file
   2474  1.1  christos fi
   2475  1.1  christos 
   2476  1.1  christos # Check that the precious variables saved in the cache have kept the same
   2477  1.1  christos # value.
   2478  1.1  christos ac_cache_corrupted=false
   2479  1.1  christos for ac_var in $ac_precious_vars; do
   2480  1.1  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2481  1.1  christos   eval ac_new_set=\$ac_env_${ac_var}_set
   2482  1.1  christos   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2483  1.1  christos   eval ac_new_val=\$ac_env_${ac_var}_value
   2484  1.1  christos   case $ac_old_set,$ac_new_set in
   2485  1.1  christos     set,)
   2486  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2487  1.1  christos $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2488  1.1  christos       ac_cache_corrupted=: ;;
   2489  1.1  christos     ,set)
   2490  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2491  1.1  christos $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2492  1.1  christos       ac_cache_corrupted=: ;;
   2493  1.1  christos     ,);;
   2494  1.1  christos     *)
   2495  1.1  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
   2496  1.1  christos 	# differences in whitespace do not lead to failure.
   2497  1.1  christos 	ac_old_val_w=`echo x $ac_old_val`
   2498  1.1  christos 	ac_new_val_w=`echo x $ac_new_val`
   2499  1.1  christos 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2500  1.1  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2501  1.1  christos $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2502  1.1  christos 	  ac_cache_corrupted=:
   2503  1.1  christos 	else
   2504  1.1  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2505  1.1  christos $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2506  1.1  christos 	  eval $ac_var=\$ac_old_val
   2507  1.1  christos 	fi
   2508  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2509  1.1  christos $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2510  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2511  1.1  christos $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2512  1.1  christos       fi;;
   2513  1.1  christos   esac
   2514  1.1  christos   # Pass precious variables to config.status.
   2515  1.1  christos   if test "$ac_new_set" = set; then
   2516  1.1  christos     case $ac_new_val in
   2517  1.1  christos     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2518  1.1  christos     *) ac_arg=$ac_var=$ac_new_val ;;
   2519  1.1  christos     esac
   2520  1.1  christos     case " $ac_configure_args " in
   2521  1.1  christos       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2522  1.1  christos       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2523  1.1  christos     esac
   2524  1.1  christos   fi
   2525  1.1  christos done
   2526  1.1  christos if $ac_cache_corrupted; then
   2527  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2528  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2529  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2530  1.1  christos $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2531  1.1  christos   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2532  1.1  christos fi
   2533  1.1  christos ## -------------------- ##
   2534  1.1  christos ## Main body of script. ##
   2535  1.1  christos ## -------------------- ##
   2536  1.1  christos 
   2537  1.1  christos ac_ext=c
   2538  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   2539  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2540  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2541  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2542  1.1  christos 
   2543  1.1  christos 
   2544  1.1  christos 
   2545  1.1  christos 
   2546  1.1  christos ac_config_headers="$ac_config_headers config.h"
   2547  1.1  christos 
   2548  1.1  christos 
   2549  1.1  christos 
   2550  1.1  christos ac_aux_dir=
   2551  1.1  christos for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2552  1.1  christos   if test -f "$ac_dir/install-sh"; then
   2553  1.1  christos     ac_aux_dir=$ac_dir
   2554  1.1  christos     ac_install_sh="$ac_aux_dir/install-sh -c"
   2555  1.1  christos     break
   2556  1.1  christos   elif 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/shtool"; then
   2561  1.1  christos     ac_aux_dir=$ac_dir
   2562  1.1  christos     ac_install_sh="$ac_aux_dir/shtool install -c"
   2563  1.1  christos     break
   2564  1.1  christos   fi
   2565  1.1  christos done
   2566  1.1  christos if test -z "$ac_aux_dir"; then
   2567  1.1  christos   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2568  1.1  christos fi
   2569  1.1  christos 
   2570  1.1  christos # These three variables are undocumented and unsupported,
   2571  1.1  christos # and are intended to be withdrawn in a future Autoconf release.
   2572  1.1  christos # They can cause serious problems if a builder's source tree is in a directory
   2573  1.1  christos # whose full name contains unusual characters.
   2574  1.1  christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2575  1.1  christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2576  1.1  christos ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2577  1.1  christos 
   2578  1.1  christos 
   2579  1.1  christos # Make sure we can run config.sub.
   2580  1.1  christos $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2581  1.1  christos   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2582  1.1  christos 
   2583  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2584  1.1  christos $as_echo_n "checking build system type... " >&6; }
   2585  1.1  christos if ${ac_cv_build+:} false; then :
   2586  1.1  christos   $as_echo_n "(cached) " >&6
   2587  1.1  christos else
   2588  1.1  christos   ac_build_alias=$build_alias
   2589  1.1  christos test "x$ac_build_alias" = x &&
   2590  1.1  christos   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2591  1.1  christos test "x$ac_build_alias" = x &&
   2592  1.1  christos   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2593  1.1  christos ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2594  1.1  christos   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2595  1.1  christos 
   2596  1.1  christos fi
   2597  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2598  1.1  christos $as_echo "$ac_cv_build" >&6; }
   2599  1.1  christos case $ac_cv_build in
   2600  1.1  christos *-*-*) ;;
   2601  1.1  christos *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2602  1.1  christos esac
   2603  1.1  christos build=$ac_cv_build
   2604  1.1  christos ac_save_IFS=$IFS; IFS='-'
   2605  1.1  christos set x $ac_cv_build
   2606  1.1  christos shift
   2607  1.1  christos build_cpu=$1
   2608  1.1  christos build_vendor=$2
   2609  1.1  christos shift; shift
   2610  1.1  christos # Remember, the first character of IFS is used to create $*,
   2611  1.1  christos # except with old shells:
   2612  1.1  christos build_os=$*
   2613  1.1  christos IFS=$ac_save_IFS
   2614  1.1  christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2615  1.1  christos 
   2616  1.1  christos 
   2617  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2618  1.1  christos $as_echo_n "checking host system type... " >&6; }
   2619  1.1  christos if ${ac_cv_host+:} false; then :
   2620  1.1  christos   $as_echo_n "(cached) " >&6
   2621  1.1  christos else
   2622  1.1  christos   if test "x$host_alias" = x; then
   2623  1.1  christos   ac_cv_host=$ac_cv_build
   2624  1.1  christos else
   2625  1.1  christos   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2626  1.1  christos     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2627  1.1  christos fi
   2628  1.1  christos 
   2629  1.1  christos fi
   2630  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2631  1.1  christos $as_echo "$ac_cv_host" >&6; }
   2632  1.1  christos case $ac_cv_host in
   2633  1.1  christos *-*-*) ;;
   2634  1.1  christos *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2635  1.1  christos esac
   2636  1.1  christos host=$ac_cv_host
   2637  1.1  christos ac_save_IFS=$IFS; IFS='-'
   2638  1.1  christos set x $ac_cv_host
   2639  1.1  christos shift
   2640  1.1  christos host_cpu=$1
   2641  1.1  christos host_vendor=$2
   2642  1.1  christos shift; shift
   2643  1.1  christos # Remember, the first character of IFS is used to create $*,
   2644  1.1  christos # except with old shells:
   2645  1.1  christos host_os=$*
   2646  1.1  christos IFS=$ac_save_IFS
   2647  1.1  christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2648  1.1  christos 
   2649  1.1  christos 
   2650  1.3  christos ac_ext=c
   2651  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   2652  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2653  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2654  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2655  1.3  christos if test -n "$ac_tool_prefix"; then
   2656  1.3  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2657  1.3  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2658  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2659  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   2660  1.3  christos if ${ac_cv_prog_CC+:} false; then :
   2661  1.1  christos   $as_echo_n "(cached) " >&6
   2662  1.1  christos else
   2663  1.3  christos   if test -n "$CC"; then
   2664  1.3  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2665  1.3  christos else
   2666  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2667  1.3  christos for as_dir in $PATH
   2668  1.3  christos do
   2669  1.3  christos   IFS=$as_save_IFS
   2670  1.3  christos   test -z "$as_dir" && as_dir=.
   2671  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2672  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2673  1.3  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2674  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2675  1.3  christos     break 2
   2676  1.3  christos   fi
   2677  1.3  christos done
   2678  1.3  christos   done
   2679  1.3  christos IFS=$as_save_IFS
   2680  1.3  christos 
   2681  1.3  christos fi
   2682  1.1  christos fi
   2683  1.3  christos CC=$ac_cv_prog_CC
   2684  1.3  christos if test -n "$CC"; then
   2685  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2686  1.3  christos $as_echo "$CC" >&6; }
   2687  1.1  christos else
   2688  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2689  1.1  christos $as_echo "no" >&6; }
   2690  1.1  christos fi
   2691  1.1  christos 
   2692  1.1  christos 
   2693  1.3  christos fi
   2694  1.3  christos if test -z "$ac_cv_prog_CC"; then
   2695  1.3  christos   ac_ct_CC=$CC
   2696  1.3  christos   # Extract the first word of "gcc", so it can be a program name with args.
   2697  1.3  christos set dummy gcc; ac_word=$2
   2698  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2699  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   2700  1.3  christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2701  1.3  christos   $as_echo_n "(cached) " >&6
   2702  1.3  christos else
   2703  1.3  christos   if test -n "$ac_ct_CC"; then
   2704  1.3  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2705  1.3  christos else
   2706  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2707  1.3  christos for as_dir in $PATH
   2708  1.3  christos do
   2709  1.3  christos   IFS=$as_save_IFS
   2710  1.3  christos   test -z "$as_dir" && as_dir=.
   2711  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2712  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2713  1.3  christos     ac_cv_prog_ac_ct_CC="gcc"
   2714  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2715  1.3  christos     break 2
   2716  1.3  christos   fi
   2717  1.3  christos done
   2718  1.3  christos   done
   2719  1.3  christos IFS=$as_save_IFS
   2720  1.1  christos 
   2721  1.3  christos fi
   2722  1.3  christos fi
   2723  1.3  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2724  1.1  christos if test -n "$ac_ct_CC"; then
   2725  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2726  1.1  christos $as_echo "$ac_ct_CC" >&6; }
   2727  1.1  christos else
   2728  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2729  1.1  christos $as_echo "no" >&6; }
   2730  1.1  christos fi
   2731  1.1  christos 
   2732  1.1  christos   if test "x$ac_ct_CC" = x; then
   2733  1.1  christos     CC=""
   2734  1.1  christos   else
   2735  1.1  christos     case $cross_compiling:$ac_tool_warned in
   2736  1.1  christos yes:)
   2737  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2738  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2739  1.1  christos ac_tool_warned=yes ;;
   2740  1.1  christos esac
   2741  1.1  christos     CC=$ac_ct_CC
   2742  1.1  christos   fi
   2743  1.1  christos else
   2744  1.1  christos   CC="$ac_cv_prog_CC"
   2745  1.1  christos fi
   2746  1.1  christos 
   2747  1.1  christos if test -z "$CC"; then
   2748  1.1  christos           if test -n "$ac_tool_prefix"; then
   2749  1.1  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2750  1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   2751  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2752  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   2753  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   2754  1.1  christos   $as_echo_n "(cached) " >&6
   2755  1.1  christos else
   2756  1.1  christos   if test -n "$CC"; then
   2757  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2758  1.1  christos else
   2759  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2760  1.1  christos for as_dir in $PATH
   2761  1.1  christos do
   2762  1.1  christos   IFS=$as_save_IFS
   2763  1.1  christos   test -z "$as_dir" && as_dir=.
   2764  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2765  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2766  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2767  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2768  1.1  christos     break 2
   2769  1.1  christos   fi
   2770  1.1  christos done
   2771  1.1  christos   done
   2772  1.1  christos IFS=$as_save_IFS
   2773  1.1  christos 
   2774  1.1  christos fi
   2775  1.1  christos fi
   2776  1.1  christos CC=$ac_cv_prog_CC
   2777  1.1  christos if test -n "$CC"; then
   2778  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2779  1.1  christos $as_echo "$CC" >&6; }
   2780  1.1  christos else
   2781  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2782  1.1  christos $as_echo "no" >&6; }
   2783  1.1  christos fi
   2784  1.1  christos 
   2785  1.1  christos 
   2786  1.1  christos   fi
   2787  1.1  christos fi
   2788  1.1  christos if test -z "$CC"; then
   2789  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   2790  1.1  christos set dummy cc; ac_word=$2
   2791  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2792  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   2793  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   2794  1.1  christos   $as_echo_n "(cached) " >&6
   2795  1.1  christos else
   2796  1.1  christos   if test -n "$CC"; then
   2797  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2798  1.1  christos else
   2799  1.1  christos   ac_prog_rejected=no
   2800  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2801  1.1  christos for as_dir in $PATH
   2802  1.1  christos do
   2803  1.1  christos   IFS=$as_save_IFS
   2804  1.1  christos   test -z "$as_dir" && as_dir=.
   2805  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2806  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2807  1.1  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2808  1.1  christos        ac_prog_rejected=yes
   2809  1.1  christos        continue
   2810  1.1  christos      fi
   2811  1.1  christos     ac_cv_prog_CC="cc"
   2812  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2813  1.1  christos     break 2
   2814  1.1  christos   fi
   2815  1.1  christos done
   2816  1.1  christos   done
   2817  1.1  christos IFS=$as_save_IFS
   2818  1.1  christos 
   2819  1.1  christos if test $ac_prog_rejected = yes; then
   2820  1.1  christos   # We found a bogon in the path, so make sure we never use it.
   2821  1.1  christos   set dummy $ac_cv_prog_CC
   2822  1.1  christos   shift
   2823  1.1  christos   if test $# != 0; then
   2824  1.1  christos     # We chose a different compiler from the bogus one.
   2825  1.1  christos     # However, it has the same basename, so the bogon will be chosen
   2826  1.1  christos     # first if we set CC to just the basename; use the full file name.
   2827  1.1  christos     shift
   2828  1.1  christos     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2829  1.1  christos   fi
   2830  1.1  christos fi
   2831  1.1  christos fi
   2832  1.1  christos fi
   2833  1.1  christos CC=$ac_cv_prog_CC
   2834  1.1  christos if test -n "$CC"; then
   2835  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2836  1.1  christos $as_echo "$CC" >&6; }
   2837  1.1  christos else
   2838  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2839  1.1  christos $as_echo "no" >&6; }
   2840  1.1  christos fi
   2841  1.1  christos 
   2842  1.1  christos 
   2843  1.1  christos fi
   2844  1.1  christos if test -z "$CC"; then
   2845  1.1  christos   if test -n "$ac_tool_prefix"; then
   2846  1.1  christos   for ac_prog in cl.exe
   2847  1.1  christos   do
   2848  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2849  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2850  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2851  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   2852  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   2853  1.1  christos   $as_echo_n "(cached) " >&6
   2854  1.1  christos else
   2855  1.1  christos   if test -n "$CC"; then
   2856  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2857  1.1  christos else
   2858  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2859  1.1  christos for as_dir in $PATH
   2860  1.1  christos do
   2861  1.1  christos   IFS=$as_save_IFS
   2862  1.1  christos   test -z "$as_dir" && as_dir=.
   2863  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2864  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2865  1.1  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2866  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2867  1.1  christos     break 2
   2868  1.1  christos   fi
   2869  1.1  christos done
   2870  1.1  christos   done
   2871  1.1  christos IFS=$as_save_IFS
   2872  1.1  christos 
   2873  1.1  christos fi
   2874  1.1  christos fi
   2875  1.1  christos CC=$ac_cv_prog_CC
   2876  1.1  christos if test -n "$CC"; then
   2877  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2878  1.1  christos $as_echo "$CC" >&6; }
   2879  1.1  christos else
   2880  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2881  1.1  christos $as_echo "no" >&6; }
   2882  1.1  christos fi
   2883  1.1  christos 
   2884  1.1  christos 
   2885  1.1  christos     test -n "$CC" && break
   2886  1.1  christos   done
   2887  1.1  christos fi
   2888  1.1  christos if test -z "$CC"; then
   2889  1.1  christos   ac_ct_CC=$CC
   2890  1.1  christos   for ac_prog in cl.exe
   2891  1.1  christos do
   2892  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2893  1.1  christos set dummy $ac_prog; ac_word=$2
   2894  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2895  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   2896  1.1  christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2897  1.1  christos   $as_echo_n "(cached) " >&6
   2898  1.1  christos else
   2899  1.1  christos   if test -n "$ac_ct_CC"; then
   2900  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2901  1.1  christos else
   2902  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2903  1.1  christos for as_dir in $PATH
   2904  1.1  christos do
   2905  1.1  christos   IFS=$as_save_IFS
   2906  1.1  christos   test -z "$as_dir" && as_dir=.
   2907  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2908  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2909  1.1  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   2910  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2911  1.1  christos     break 2
   2912  1.1  christos   fi
   2913  1.1  christos done
   2914  1.1  christos   done
   2915  1.1  christos IFS=$as_save_IFS
   2916  1.1  christos 
   2917  1.1  christos fi
   2918  1.1  christos fi
   2919  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2920  1.1  christos if test -n "$ac_ct_CC"; then
   2921  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2922  1.1  christos $as_echo "$ac_ct_CC" >&6; }
   2923  1.1  christos else
   2924  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2925  1.1  christos $as_echo "no" >&6; }
   2926  1.1  christos fi
   2927  1.1  christos 
   2928  1.1  christos 
   2929  1.1  christos   test -n "$ac_ct_CC" && break
   2930  1.1  christos done
   2931  1.1  christos 
   2932  1.1  christos   if test "x$ac_ct_CC" = x; then
   2933  1.1  christos     CC=""
   2934  1.1  christos   else
   2935  1.1  christos     case $cross_compiling:$ac_tool_warned in
   2936  1.1  christos yes:)
   2937  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2938  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2939  1.1  christos ac_tool_warned=yes ;;
   2940  1.1  christos esac
   2941  1.1  christos     CC=$ac_ct_CC
   2942  1.1  christos   fi
   2943  1.1  christos fi
   2944  1.1  christos 
   2945  1.1  christos fi
   2946  1.1  christos 
   2947  1.1  christos 
   2948  1.1  christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2949  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2950  1.1  christos as_fn_error $? "no acceptable C compiler found in \$PATH
   2951  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   2952  1.1  christos 
   2953  1.1  christos # Provide some information about the compiler.
   2954  1.1  christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   2955  1.1  christos set X $ac_compile
   2956  1.1  christos ac_compiler=$2
   2957  1.1  christos for ac_option in --version -v -V -qversion; do
   2958  1.1  christos   { { ac_try="$ac_compiler $ac_option >&5"
   2959  1.1  christos case "(($ac_try" in
   2960  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2961  1.1  christos   *) ac_try_echo=$ac_try;;
   2962  1.1  christos esac
   2963  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2964  1.1  christos $as_echo "$ac_try_echo"; } >&5
   2965  1.1  christos   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   2966  1.1  christos   ac_status=$?
   2967  1.1  christos   if test -s conftest.err; then
   2968  1.1  christos     sed '10a\
   2969  1.1  christos ... rest of stderr output deleted ...
   2970  1.1  christos          10q' conftest.err >conftest.er1
   2971  1.1  christos     cat conftest.er1 >&5
   2972  1.1  christos   fi
   2973  1.1  christos   rm -f conftest.er1 conftest.err
   2974  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2975  1.1  christos   test $ac_status = 0; }
   2976  1.1  christos done
   2977  1.1  christos 
   2978  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2979  1.1  christos /* end confdefs.h.  */
   2980  1.1  christos 
   2981  1.1  christos int
   2982  1.1  christos main ()
   2983  1.1  christos {
   2984  1.1  christos 
   2985  1.1  christos   ;
   2986  1.1  christos   return 0;
   2987  1.1  christos }
   2988  1.1  christos _ACEOF
   2989  1.1  christos ac_clean_files_save=$ac_clean_files
   2990  1.1  christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   2991  1.1  christos # Try to create an executable without -o first, disregard a.out.
   2992  1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   2993  1.1  christos # of exeext.
   2994  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   2995  1.1  christos $as_echo_n "checking whether the C compiler works... " >&6; }
   2996  1.1  christos ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2997  1.1  christos 
   2998  1.1  christos # The possible output files:
   2999  1.1  christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3000  1.1  christos 
   3001  1.1  christos ac_rmfiles=
   3002  1.1  christos for ac_file in $ac_files
   3003  1.1  christos do
   3004  1.1  christos   case $ac_file in
   3005  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3006  1.1  christos     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3007  1.1  christos   esac
   3008  1.1  christos done
   3009  1.1  christos rm -f $ac_rmfiles
   3010  1.1  christos 
   3011  1.1  christos if { { ac_try="$ac_link_default"
   3012  1.1  christos case "(($ac_try" in
   3013  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3014  1.1  christos   *) ac_try_echo=$ac_try;;
   3015  1.1  christos esac
   3016  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3017  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3018  1.1  christos   (eval "$ac_link_default") 2>&5
   3019  1.1  christos   ac_status=$?
   3020  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3021  1.1  christos   test $ac_status = 0; }; then :
   3022  1.1  christos   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3023  1.1  christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3024  1.1  christos # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3025  1.1  christos # so that the user can short-circuit this test for compilers unknown to
   3026  1.1  christos # Autoconf.
   3027  1.1  christos for ac_file in $ac_files ''
   3028  1.1  christos do
   3029  1.1  christos   test -f "$ac_file" || continue
   3030  1.1  christos   case $ac_file in
   3031  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3032  1.1  christos 	;;
   3033  1.1  christos     [ab].out )
   3034  1.1  christos 	# We found the default executable, but exeext='' is most
   3035  1.1  christos 	# certainly right.
   3036  1.1  christos 	break;;
   3037  1.1  christos     *.* )
   3038  1.1  christos 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3039  1.1  christos 	then :; else
   3040  1.1  christos 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3041  1.1  christos 	fi
   3042  1.1  christos 	# We set ac_cv_exeext here because the later test for it is not
   3043  1.1  christos 	# safe: cross compilers may not add the suffix if given an `-o'
   3044  1.1  christos 	# argument, so we may need to know it at that point already.
   3045  1.1  christos 	# Even if this section looks crufty: it has the advantage of
   3046  1.1  christos 	# actually working.
   3047  1.1  christos 	break;;
   3048  1.1  christos     * )
   3049  1.1  christos 	break;;
   3050  1.1  christos   esac
   3051  1.1  christos done
   3052  1.1  christos test "$ac_cv_exeext" = no && ac_cv_exeext=
   3053  1.1  christos 
   3054  1.1  christos else
   3055  1.1  christos   ac_file=''
   3056  1.1  christos fi
   3057  1.1  christos if test -z "$ac_file"; then :
   3058  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3059  1.1  christos $as_echo "no" >&6; }
   3060  1.1  christos $as_echo "$as_me: failed program was:" >&5
   3061  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3062  1.1  christos 
   3063  1.1  christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3064  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3065  1.1  christos as_fn_error 77 "C compiler cannot create executables
   3066  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   3067  1.1  christos else
   3068  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3069  1.1  christos $as_echo "yes" >&6; }
   3070  1.1  christos fi
   3071  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3072  1.1  christos $as_echo_n "checking for C compiler default output file name... " >&6; }
   3073  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3074  1.1  christos $as_echo "$ac_file" >&6; }
   3075  1.1  christos ac_exeext=$ac_cv_exeext
   3076  1.1  christos 
   3077  1.1  christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3078  1.1  christos ac_clean_files=$ac_clean_files_save
   3079  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3080  1.1  christos $as_echo_n "checking for suffix of executables... " >&6; }
   3081  1.1  christos if { { ac_try="$ac_link"
   3082  1.1  christos case "(($ac_try" in
   3083  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3084  1.1  christos   *) ac_try_echo=$ac_try;;
   3085  1.1  christos esac
   3086  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3087  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3088  1.1  christos   (eval "$ac_link") 2>&5
   3089  1.1  christos   ac_status=$?
   3090  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3091  1.1  christos   test $ac_status = 0; }; then :
   3092  1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3093  1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3094  1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   3095  1.1  christos # `rm'.
   3096  1.1  christos for ac_file in conftest.exe conftest conftest.*; do
   3097  1.1  christos   test -f "$ac_file" || continue
   3098  1.1  christos   case $ac_file in
   3099  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3100  1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3101  1.1  christos 	  break;;
   3102  1.1  christos     * ) break;;
   3103  1.1  christos   esac
   3104  1.1  christos done
   3105  1.1  christos else
   3106  1.1  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3107  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3108  1.1  christos as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3109  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   3110  1.1  christos fi
   3111  1.1  christos rm -f conftest conftest$ac_cv_exeext
   3112  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3113  1.1  christos $as_echo "$ac_cv_exeext" >&6; }
   3114  1.1  christos 
   3115  1.1  christos rm -f conftest.$ac_ext
   3116  1.1  christos EXEEXT=$ac_cv_exeext
   3117  1.1  christos ac_exeext=$EXEEXT
   3118  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3119  1.1  christos /* end confdefs.h.  */
   3120  1.1  christos #include <stdio.h>
   3121  1.1  christos int
   3122  1.1  christos main ()
   3123  1.1  christos {
   3124  1.1  christos FILE *f = fopen ("conftest.out", "w");
   3125  1.1  christos  return ferror (f) || fclose (f) != 0;
   3126  1.1  christos 
   3127  1.1  christos   ;
   3128  1.1  christos   return 0;
   3129  1.1  christos }
   3130  1.1  christos _ACEOF
   3131  1.1  christos ac_clean_files="$ac_clean_files conftest.out"
   3132  1.1  christos # Check that the compiler produces executables we can run.  If not, either
   3133  1.1  christos # the compiler is broken, or we cross compile.
   3134  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3135  1.1  christos $as_echo_n "checking whether we are cross compiling... " >&6; }
   3136  1.1  christos if test "$cross_compiling" != yes; then
   3137  1.1  christos   { { ac_try="$ac_link"
   3138  1.1  christos case "(($ac_try" in
   3139  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3140  1.1  christos   *) ac_try_echo=$ac_try;;
   3141  1.1  christos esac
   3142  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3143  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3144  1.1  christos   (eval "$ac_link") 2>&5
   3145  1.1  christos   ac_status=$?
   3146  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3147  1.1  christos   test $ac_status = 0; }
   3148  1.1  christos   if { ac_try='./conftest$ac_cv_exeext'
   3149  1.1  christos   { { case "(($ac_try" in
   3150  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3151  1.1  christos   *) ac_try_echo=$ac_try;;
   3152  1.1  christos esac
   3153  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3154  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3155  1.1  christos   (eval "$ac_try") 2>&5
   3156  1.1  christos   ac_status=$?
   3157  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3158  1.1  christos   test $ac_status = 0; }; }; then
   3159  1.1  christos     cross_compiling=no
   3160  1.1  christos   else
   3161  1.1  christos     if test "$cross_compiling" = maybe; then
   3162  1.1  christos 	cross_compiling=yes
   3163  1.1  christos     else
   3164  1.1  christos 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3165  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3166  1.1  christos as_fn_error $? "cannot run C compiled programs.
   3167  1.1  christos If you meant to cross compile, use \`--host'.
   3168  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   3169  1.1  christos     fi
   3170  1.1  christos   fi
   3171  1.1  christos fi
   3172  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3173  1.1  christos $as_echo "$cross_compiling" >&6; }
   3174  1.1  christos 
   3175  1.1  christos rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3176  1.1  christos ac_clean_files=$ac_clean_files_save
   3177  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3178  1.1  christos $as_echo_n "checking for suffix of object files... " >&6; }
   3179  1.1  christos if ${ac_cv_objext+:} false; then :
   3180  1.1  christos   $as_echo_n "(cached) " >&6
   3181  1.1  christos else
   3182  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3183  1.1  christos /* end confdefs.h.  */
   3184  1.1  christos 
   3185  1.1  christos int
   3186  1.1  christos main ()
   3187  1.1  christos {
   3188  1.1  christos 
   3189  1.1  christos   ;
   3190  1.1  christos   return 0;
   3191  1.1  christos }
   3192  1.1  christos _ACEOF
   3193  1.1  christos rm -f conftest.o conftest.obj
   3194  1.1  christos if { { ac_try="$ac_compile"
   3195  1.1  christos case "(($ac_try" in
   3196  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3197  1.1  christos   *) ac_try_echo=$ac_try;;
   3198  1.1  christos esac
   3199  1.1  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3200  1.1  christos $as_echo "$ac_try_echo"; } >&5
   3201  1.1  christos   (eval "$ac_compile") 2>&5
   3202  1.1  christos   ac_status=$?
   3203  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3204  1.1  christos   test $ac_status = 0; }; then :
   3205  1.1  christos   for ac_file in conftest.o conftest.obj conftest.*; do
   3206  1.1  christos   test -f "$ac_file" || continue;
   3207  1.1  christos   case $ac_file in
   3208  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3209  1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3210  1.1  christos        break;;
   3211  1.1  christos   esac
   3212  1.1  christos done
   3213  1.1  christos else
   3214  1.1  christos   $as_echo "$as_me: failed program was:" >&5
   3215  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3216  1.1  christos 
   3217  1.1  christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3218  1.1  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3219  1.1  christos as_fn_error $? "cannot compute suffix of object files: cannot compile
   3220  1.1  christos See \`config.log' for more details" "$LINENO" 5; }
   3221  1.1  christos fi
   3222  1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3223  1.1  christos fi
   3224  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3225  1.1  christos $as_echo "$ac_cv_objext" >&6; }
   3226  1.1  christos OBJEXT=$ac_cv_objext
   3227  1.1  christos ac_objext=$OBJEXT
   3228  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3229  1.1  christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3230  1.1  christos if ${ac_cv_c_compiler_gnu+:} false; then :
   3231  1.1  christos   $as_echo_n "(cached) " >&6
   3232  1.1  christos else
   3233  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3234  1.1  christos /* end confdefs.h.  */
   3235  1.1  christos 
   3236  1.1  christos int
   3237  1.1  christos main ()
   3238  1.1  christos {
   3239  1.1  christos #ifndef __GNUC__
   3240  1.1  christos        choke me
   3241  1.1  christos #endif
   3242  1.1  christos 
   3243  1.1  christos   ;
   3244  1.1  christos   return 0;
   3245  1.1  christos }
   3246  1.1  christos _ACEOF
   3247  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   3248  1.1  christos   ac_compiler_gnu=yes
   3249  1.1  christos else
   3250  1.1  christos   ac_compiler_gnu=no
   3251  1.1  christos fi
   3252  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3253  1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3254  1.1  christos 
   3255  1.1  christos fi
   3256  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3257  1.1  christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3258  1.1  christos if test $ac_compiler_gnu = yes; then
   3259  1.1  christos   GCC=yes
   3260  1.1  christos else
   3261  1.1  christos   GCC=
   3262  1.1  christos fi
   3263  1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   3264  1.1  christos ac_save_CFLAGS=$CFLAGS
   3265  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3266  1.1  christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3267  1.1  christos if ${ac_cv_prog_cc_g+:} false; then :
   3268  1.1  christos   $as_echo_n "(cached) " >&6
   3269  1.1  christos else
   3270  1.1  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   3271  1.1  christos    ac_c_werror_flag=yes
   3272  1.1  christos    ac_cv_prog_cc_g=no
   3273  1.1  christos    CFLAGS="-g"
   3274  1.1  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3275  1.1  christos /* end confdefs.h.  */
   3276  1.1  christos 
   3277  1.1  christos int
   3278  1.1  christos main ()
   3279  1.1  christos {
   3280  1.1  christos 
   3281  1.1  christos   ;
   3282  1.1  christos   return 0;
   3283  1.1  christos }
   3284  1.1  christos _ACEOF
   3285  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   3286  1.1  christos   ac_cv_prog_cc_g=yes
   3287  1.1  christos else
   3288  1.1  christos   CFLAGS=""
   3289  1.1  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3290  1.1  christos /* end confdefs.h.  */
   3291  1.1  christos 
   3292  1.1  christos int
   3293  1.1  christos main ()
   3294  1.1  christos {
   3295  1.1  christos 
   3296  1.1  christos   ;
   3297  1.1  christos   return 0;
   3298  1.1  christos }
   3299  1.1  christos _ACEOF
   3300  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   3301  1.1  christos 
   3302  1.1  christos else
   3303  1.1  christos   ac_c_werror_flag=$ac_save_c_werror_flag
   3304  1.1  christos 	 CFLAGS="-g"
   3305  1.1  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3306  1.1  christos /* end confdefs.h.  */
   3307  1.1  christos 
   3308  1.1  christos int
   3309  1.1  christos main ()
   3310  1.1  christos {
   3311  1.1  christos 
   3312  1.1  christos   ;
   3313  1.1  christos   return 0;
   3314  1.1  christos }
   3315  1.1  christos _ACEOF
   3316  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   3317  1.1  christos   ac_cv_prog_cc_g=yes
   3318  1.1  christos fi
   3319  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3320  1.1  christos fi
   3321  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3322  1.1  christos fi
   3323  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3324  1.1  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   3325  1.1  christos fi
   3326  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3327  1.1  christos $as_echo "$ac_cv_prog_cc_g" >&6; }
   3328  1.1  christos if test "$ac_test_CFLAGS" = set; then
   3329  1.1  christos   CFLAGS=$ac_save_CFLAGS
   3330  1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   3331  1.1  christos   if test "$GCC" = yes; then
   3332  1.1  christos     CFLAGS="-g -O2"
   3333  1.1  christos   else
   3334  1.1  christos     CFLAGS="-g"
   3335  1.1  christos   fi
   3336  1.1  christos else
   3337  1.1  christos   if test "$GCC" = yes; then
   3338  1.1  christos     CFLAGS="-O2"
   3339  1.1  christos   else
   3340  1.1  christos     CFLAGS=
   3341  1.1  christos   fi
   3342  1.1  christos fi
   3343  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3344  1.1  christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3345  1.1  christos if ${ac_cv_prog_cc_c89+:} false; then :
   3346  1.1  christos   $as_echo_n "(cached) " >&6
   3347  1.1  christos else
   3348  1.1  christos   ac_cv_prog_cc_c89=no
   3349  1.1  christos ac_save_CC=$CC
   3350  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3351  1.1  christos /* end confdefs.h.  */
   3352  1.1  christos #include <stdarg.h>
   3353  1.1  christos #include <stdio.h>
   3354  1.1  christos struct stat;
   3355  1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3356  1.1  christos struct buf { int x; };
   3357  1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3358  1.1  christos static char *e (p, i)
   3359  1.1  christos      char **p;
   3360  1.1  christos      int i;
   3361  1.1  christos {
   3362  1.1  christos   return p[i];
   3363  1.1  christos }
   3364  1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   3365  1.1  christos {
   3366  1.1  christos   char *s;
   3367  1.1  christos   va_list v;
   3368  1.1  christos   va_start (v,p);
   3369  1.1  christos   s = g (p, va_arg (v,int));
   3370  1.1  christos   va_end (v);
   3371  1.1  christos   return s;
   3372  1.1  christos }
   3373  1.1  christos 
   3374  1.1  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3375  1.1  christos    function prototypes and stuff, but not '\xHH' hex character constants.
   3376  1.1  christos    These don't provoke an error unfortunately, instead are silently treated
   3377  1.1  christos    as 'x'.  The following induces an error, until -std is added to get
   3378  1.1  christos    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3379  1.1  christos    array size at least.  It's necessary to write '\x00'==0 to get something
   3380  1.1  christos    that's true only with -std.  */
   3381  1.1  christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3382  1.1  christos 
   3383  1.1  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3384  1.1  christos    inside strings and character constants.  */
   3385  1.1  christos #define FOO(x) 'x'
   3386  1.1  christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3387  1.1  christos 
   3388  1.1  christos int test (int i, double x);
   3389  1.1  christos struct s1 {int (*f) (int a);};
   3390  1.1  christos struct s2 {int (*f) (double a);};
   3391  1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3392  1.1  christos int argc;
   3393  1.1  christos char **argv;
   3394  1.1  christos int
   3395  1.1  christos main ()
   3396  1.1  christos {
   3397  1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3398  1.1  christos   ;
   3399  1.1  christos   return 0;
   3400  1.1  christos }
   3401  1.1  christos _ACEOF
   3402  1.1  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3403  1.1  christos 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3404  1.1  christos do
   3405  1.1  christos   CC="$ac_save_CC $ac_arg"
   3406  1.1  christos   if ac_fn_c_try_compile "$LINENO"; then :
   3407  1.1  christos   ac_cv_prog_cc_c89=$ac_arg
   3408  1.1  christos fi
   3409  1.1  christos rm -f core conftest.err conftest.$ac_objext
   3410  1.1  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3411  1.1  christos done
   3412  1.1  christos rm -f conftest.$ac_ext
   3413  1.1  christos CC=$ac_save_CC
   3414  1.1  christos 
   3415  1.1  christos fi
   3416  1.1  christos # AC_CACHE_VAL
   3417  1.1  christos case "x$ac_cv_prog_cc_c89" in
   3418  1.1  christos   x)
   3419  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3420  1.1  christos $as_echo "none needed" >&6; } ;;
   3421  1.1  christos   xno)
   3422  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3423  1.1  christos $as_echo "unsupported" >&6; } ;;
   3424  1.1  christos   *)
   3425  1.1  christos     CC="$CC $ac_cv_prog_cc_c89"
   3426  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3427  1.1  christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3428  1.1  christos esac
   3429  1.1  christos if test "x$ac_cv_prog_cc_c89" != xno; then :
   3430  1.1  christos 
   3431  1.1  christos fi
   3432  1.1  christos 
   3433  1.1  christos ac_ext=c
   3434  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3435  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3436  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3437  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3438  1.1  christos 
   3439  1.3  christos 
   3440  1.3  christos ac_ext=c
   3441  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   3442  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3443  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3444  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3445  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3446  1.3  christos $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3447  1.3  christos # On Suns, sometimes $CPP names a directory.
   3448  1.3  christos if test -n "$CPP" && test -d "$CPP"; then
   3449  1.3  christos   CPP=
   3450  1.3  christos fi
   3451  1.3  christos if test -z "$CPP"; then
   3452  1.3  christos   if ${ac_cv_prog_CPP+:} false; then :
   3453  1.1  christos   $as_echo_n "(cached) " >&6
   3454  1.1  christos else
   3455  1.3  christos       # Double quotes because CPP needs to be expanded
   3456  1.3  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3457  1.3  christos     do
   3458  1.3  christos       ac_preproc_ok=false
   3459  1.3  christos for ac_c_preproc_warn_flag in '' yes
   3460  1.1  christos do
   3461  1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   3462  1.3  christos   # with a fresh cross-compiler works.
   3463  1.3  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3464  1.3  christos   # <limits.h> exists even on freestanding compilers.
   3465  1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3466  1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3467  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3468  1.3  christos /* end confdefs.h.  */
   3469  1.3  christos #ifdef __STDC__
   3470  1.3  christos # include <limits.h>
   3471  1.3  christos #else
   3472  1.3  christos # include <assert.h>
   3473  1.3  christos #endif
   3474  1.3  christos 		     Syntax error
   3475  1.3  christos _ACEOF
   3476  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   3477  1.1  christos 
   3478  1.1  christos else
   3479  1.3  christos   # Broken: fails on valid input.
   3480  1.3  christos continue
   3481  1.3  christos fi
   3482  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3483  1.3  christos 
   3484  1.3  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   3485  1.3  christos   # can be detected and how.
   3486  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3487  1.3  christos /* end confdefs.h.  */
   3488  1.3  christos #include <ac_nonexistent.h>
   3489  1.3  christos _ACEOF
   3490  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   3491  1.3  christos   # Broken: success on invalid input.
   3492  1.3  christos continue
   3493  1.3  christos else
   3494  1.3  christos   # Passes both tests.
   3495  1.3  christos ac_preproc_ok=:
   3496  1.3  christos break
   3497  1.1  christos fi
   3498  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3499  1.1  christos 
   3500  1.3  christos done
   3501  1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3502  1.3  christos rm -f conftest.i conftest.err conftest.$ac_ext
   3503  1.3  christos if $ac_preproc_ok; then :
   3504  1.3  christos   break
   3505  1.1  christos fi
   3506  1.1  christos 
   3507  1.3  christos     done
   3508  1.3  christos     ac_cv_prog_CPP=$CPP
   3509  1.1  christos 
   3510  1.3  christos fi
   3511  1.3  christos   CPP=$ac_cv_prog_CPP
   3512  1.3  christos else
   3513  1.3  christos   ac_cv_prog_CPP=$CPP
   3514  1.3  christos fi
   3515  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3516  1.3  christos $as_echo "$CPP" >&6; }
   3517  1.3  christos ac_preproc_ok=false
   3518  1.3  christos for ac_c_preproc_warn_flag in '' yes
   3519  1.3  christos do
   3520  1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   3521  1.3  christos   # with a fresh cross-compiler works.
   3522  1.3  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3523  1.3  christos   # <limits.h> exists even on freestanding compilers.
   3524  1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3525  1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3526  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3527  1.3  christos /* end confdefs.h.  */
   3528  1.3  christos #ifdef __STDC__
   3529  1.3  christos # include <limits.h>
   3530  1.3  christos #else
   3531  1.3  christos # include <assert.h>
   3532  1.3  christos #endif
   3533  1.3  christos 		     Syntax error
   3534  1.3  christos _ACEOF
   3535  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   3536  1.1  christos 
   3537  1.3  christos else
   3538  1.3  christos   # Broken: fails on valid input.
   3539  1.3  christos continue
   3540  1.3  christos fi
   3541  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3542  1.1  christos 
   3543  1.3  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   3544  1.3  christos   # can be detected and how.
   3545  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3546  1.3  christos /* end confdefs.h.  */
   3547  1.3  christos #include <ac_nonexistent.h>
   3548  1.3  christos _ACEOF
   3549  1.3  christos if ac_fn_c_try_cpp "$LINENO"; then :
   3550  1.3  christos   # Broken: success on invalid input.
   3551  1.3  christos continue
   3552  1.3  christos else
   3553  1.3  christos   # Passes both tests.
   3554  1.3  christos ac_preproc_ok=:
   3555  1.3  christos break
   3556  1.3  christos fi
   3557  1.3  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3558  1.1  christos 
   3559  1.3  christos done
   3560  1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3561  1.3  christos rm -f conftest.i conftest.err conftest.$ac_ext
   3562  1.3  christos if $ac_preproc_ok; then :
   3563  1.1  christos 
   3564  1.3  christos else
   3565  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3566  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3567  1.3  christos as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3568  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   3569  1.3  christos fi
   3570  1.1  christos 
   3571  1.3  christos ac_ext=c
   3572  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   3573  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3574  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3575  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3576  1.1  christos 
   3577  1.1  christos 
   3578  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3579  1.1  christos $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3580  1.1  christos if ${ac_cv_path_GREP+:} false; then :
   3581  1.1  christos   $as_echo_n "(cached) " >&6
   3582  1.1  christos else
   3583  1.1  christos   if test -z "$GREP"; then
   3584  1.1  christos   ac_path_GREP_found=false
   3585  1.1  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   3586  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3587  1.1  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3588  1.1  christos do
   3589  1.1  christos   IFS=$as_save_IFS
   3590  1.1  christos   test -z "$as_dir" && as_dir=.
   3591  1.1  christos     for ac_prog in grep ggrep; do
   3592  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3593  1.1  christos       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3594  1.1  christos       as_fn_executable_p "$ac_path_GREP" || continue
   3595  1.1  christos # Check for GNU ac_path_GREP and select it if it is found.
   3596  1.1  christos   # Check for GNU $ac_path_GREP
   3597  1.1  christos case `"$ac_path_GREP" --version 2>&1` in
   3598  1.1  christos *GNU*)
   3599  1.1  christos   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3600  1.1  christos *)
   3601  1.1  christos   ac_count=0
   3602  1.1  christos   $as_echo_n 0123456789 >"conftest.in"
   3603  1.1  christos   while :
   3604  1.1  christos   do
   3605  1.1  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3606  1.1  christos     mv "conftest.tmp" "conftest.in"
   3607  1.1  christos     cp "conftest.in" "conftest.nl"
   3608  1.1  christos     $as_echo 'GREP' >> "conftest.nl"
   3609  1.1  christos     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3610  1.1  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3611  1.1  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3612  1.1  christos     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3613  1.1  christos       # Best one so far, save it but keep looking for a better one
   3614  1.1  christos       ac_cv_path_GREP="$ac_path_GREP"
   3615  1.1  christos       ac_path_GREP_max=$ac_count
   3616  1.1  christos     fi
   3617  1.1  christos     # 10*(2^10) chars as input seems more than enough
   3618  1.1  christos     test $ac_count -gt 10 && break
   3619  1.1  christos   done
   3620  1.1  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3621  1.1  christos esac
   3622  1.1  christos 
   3623  1.1  christos       $ac_path_GREP_found && break 3
   3624  1.1  christos     done
   3625  1.1  christos   done
   3626  1.1  christos   done
   3627  1.1  christos IFS=$as_save_IFS
   3628  1.1  christos   if test -z "$ac_cv_path_GREP"; then
   3629  1.1  christos     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3630  1.1  christos   fi
   3631  1.1  christos else
   3632  1.1  christos   ac_cv_path_GREP=$GREP
   3633  1.1  christos fi
   3634  1.1  christos 
   3635  1.1  christos fi
   3636  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3637  1.1  christos $as_echo "$ac_cv_path_GREP" >&6; }
   3638  1.1  christos  GREP="$ac_cv_path_GREP"
   3639  1.1  christos 
   3640  1.1  christos 
   3641  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3642  1.1  christos $as_echo_n "checking for egrep... " >&6; }
   3643  1.1  christos if ${ac_cv_path_EGREP+:} false; then :
   3644  1.1  christos   $as_echo_n "(cached) " >&6
   3645  1.1  christos else
   3646  1.1  christos   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3647  1.1  christos    then ac_cv_path_EGREP="$GREP -E"
   3648  1.1  christos    else
   3649  1.1  christos      if test -z "$EGREP"; then
   3650  1.1  christos   ac_path_EGREP_found=false
   3651  1.1  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   3652  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3653  1.1  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3654  1.1  christos do
   3655  1.1  christos   IFS=$as_save_IFS
   3656  1.1  christos   test -z "$as_dir" && as_dir=.
   3657  1.1  christos     for ac_prog in egrep; do
   3658  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3659  1.1  christos       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3660  1.1  christos       as_fn_executable_p "$ac_path_EGREP" || continue
   3661  1.1  christos # Check for GNU ac_path_EGREP and select it if it is found.
   3662  1.1  christos   # Check for GNU $ac_path_EGREP
   3663  1.1  christos case `"$ac_path_EGREP" --version 2>&1` in
   3664  1.1  christos *GNU*)
   3665  1.1  christos   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3666  1.1  christos *)
   3667  1.1  christos   ac_count=0
   3668  1.1  christos   $as_echo_n 0123456789 >"conftest.in"
   3669  1.1  christos   while :
   3670  1.1  christos   do
   3671  1.1  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3672  1.1  christos     mv "conftest.tmp" "conftest.in"
   3673  1.1  christos     cp "conftest.in" "conftest.nl"
   3674  1.1  christos     $as_echo 'EGREP' >> "conftest.nl"
   3675  1.1  christos     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3676  1.1  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3677  1.1  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3678  1.1  christos     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3679  1.1  christos       # Best one so far, save it but keep looking for a better one
   3680  1.1  christos       ac_cv_path_EGREP="$ac_path_EGREP"
   3681  1.1  christos       ac_path_EGREP_max=$ac_count
   3682  1.1  christos     fi
   3683  1.1  christos     # 10*(2^10) chars as input seems more than enough
   3684  1.1  christos     test $ac_count -gt 10 && break
   3685  1.1  christos   done
   3686  1.1  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3687  1.1  christos esac
   3688  1.1  christos 
   3689  1.1  christos       $ac_path_EGREP_found && break 3
   3690  1.1  christos     done
   3691  1.1  christos   done
   3692  1.1  christos   done
   3693  1.1  christos IFS=$as_save_IFS
   3694  1.1  christos   if test -z "$ac_cv_path_EGREP"; then
   3695  1.1  christos     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3696  1.1  christos   fi
   3697  1.1  christos else
   3698  1.1  christos   ac_cv_path_EGREP=$EGREP
   3699  1.1  christos fi
   3700  1.1  christos 
   3701  1.1  christos    fi
   3702  1.1  christos fi
   3703  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3704  1.1  christos $as_echo "$ac_cv_path_EGREP" >&6; }
   3705  1.1  christos  EGREP="$ac_cv_path_EGREP"
   3706  1.1  christos 
   3707  1.1  christos 
   3708  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3709  1.3  christos $as_echo_n "checking for ANSI C header files... " >&6; }
   3710  1.3  christos if ${ac_cv_header_stdc+:} false; then :
   3711  1.1  christos   $as_echo_n "(cached) " >&6
   3712  1.1  christos else
   3713  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3714  1.3  christos /* end confdefs.h.  */
   3715  1.3  christos #include <stdlib.h>
   3716  1.3  christos #include <stdarg.h>
   3717  1.3  christos #include <string.h>
   3718  1.3  christos #include <float.h>
   3719  1.3  christos 
   3720  1.3  christos int
   3721  1.3  christos main ()
   3722  1.3  christos {
   3723  1.1  christos 
   3724  1.3  christos   ;
   3725  1.3  christos   return 0;
   3726  1.3  christos }
   3727  1.3  christos _ACEOF
   3728  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   3729  1.3  christos   ac_cv_header_stdc=yes
   3730  1.1  christos else
   3731  1.3  christos   ac_cv_header_stdc=no
   3732  1.1  christos fi
   3733  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3734  1.1  christos 
   3735  1.3  christos if test $ac_cv_header_stdc = yes; then
   3736  1.3  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3737  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3738  1.3  christos /* end confdefs.h.  */
   3739  1.3  christos #include <string.h>
   3740  1.1  christos 
   3741  1.3  christos _ACEOF
   3742  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3743  1.3  christos   $EGREP "memchr" >/dev/null 2>&1; then :
   3744  1.1  christos 
   3745  1.3  christos else
   3746  1.3  christos   ac_cv_header_stdc=no
   3747  1.3  christos fi
   3748  1.3  christos rm -f conftest*
   3749  1.1  christos 
   3750  1.3  christos fi
   3751  1.1  christos 
   3752  1.3  christos if test $ac_cv_header_stdc = yes; then
   3753  1.3  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3754  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3755  1.3  christos /* end confdefs.h.  */
   3756  1.3  christos #include <stdlib.h>
   3757  1.1  christos 
   3758  1.3  christos _ACEOF
   3759  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3760  1.3  christos   $EGREP "free" >/dev/null 2>&1; then :
   3761  1.1  christos 
   3762  1.3  christos else
   3763  1.3  christos   ac_cv_header_stdc=no
   3764  1.3  christos fi
   3765  1.3  christos rm -f conftest*
   3766  1.1  christos 
   3767  1.3  christos fi
   3768  1.1  christos 
   3769  1.3  christos if test $ac_cv_header_stdc = yes; then
   3770  1.3  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3771  1.3  christos   if test "$cross_compiling" = yes; then :
   3772  1.3  christos   :
   3773  1.3  christos else
   3774  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3775  1.3  christos /* end confdefs.h.  */
   3776  1.3  christos #include <ctype.h>
   3777  1.3  christos #include <stdlib.h>
   3778  1.3  christos #if ((' ' & 0x0FF) == 0x020)
   3779  1.3  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3780  1.3  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3781  1.3  christos #else
   3782  1.3  christos # define ISLOWER(c) \
   3783  1.3  christos 		   (('a' <= (c) && (c) <= 'i') \
   3784  1.3  christos 		     || ('j' <= (c) && (c) <= 'r') \
   3785  1.3  christos 		     || ('s' <= (c) && (c) <= 'z'))
   3786  1.3  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3787  1.3  christos #endif
   3788  1.1  christos 
   3789  1.3  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3790  1.3  christos int
   3791  1.3  christos main ()
   3792  1.3  christos {
   3793  1.3  christos   int i;
   3794  1.3  christos   for (i = 0; i < 256; i++)
   3795  1.3  christos     if (XOR (islower (i), ISLOWER (i))
   3796  1.3  christos 	|| toupper (i) != TOUPPER (i))
   3797  1.3  christos       return 2;
   3798  1.3  christos   return 0;
   3799  1.3  christos }
   3800  1.3  christos _ACEOF
   3801  1.3  christos if ac_fn_c_try_run "$LINENO"; then :
   3802  1.1  christos 
   3803  1.3  christos else
   3804  1.3  christos   ac_cv_header_stdc=no
   3805  1.3  christos fi
   3806  1.3  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3807  1.3  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3808  1.3  christos fi
   3809  1.1  christos 
   3810  1.3  christos fi
   3811  1.3  christos fi
   3812  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3813  1.3  christos $as_echo "$ac_cv_header_stdc" >&6; }
   3814  1.3  christos if test $ac_cv_header_stdc = yes; then
   3815  1.1  christos 
   3816  1.3  christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3817  1.1  christos 
   3818  1.3  christos fi
   3819  1.1  christos 
   3820  1.3  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3821  1.3  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3822  1.3  christos 		  inttypes.h stdint.h unistd.h
   3823  1.3  christos do :
   3824  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3825  1.3  christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3826  1.3  christos "
   3827  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3828  1.3  christos   cat >>confdefs.h <<_ACEOF
   3829  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3830  1.3  christos _ACEOF
   3831  1.3  christos 
   3832  1.3  christos fi
   3833  1.3  christos 
   3834  1.3  christos done
   3835  1.3  christos 
   3836  1.3  christos 
   3837  1.3  christos 
   3838  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3839  1.3  christos if test "x$ac_cv_header_minix_config_h" = xyes; then :
   3840  1.3  christos   MINIX=yes
   3841  1.3  christos else
   3842  1.3  christos   MINIX=
   3843  1.3  christos fi
   3844  1.3  christos 
   3845  1.3  christos 
   3846  1.3  christos   if test "$MINIX" = yes; then
   3847  1.1  christos 
   3848  1.3  christos $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3849  1.1  christos 
   3850  1.1  christos 
   3851  1.3  christos $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3852  1.1  christos 
   3853  1.1  christos 
   3854  1.3  christos $as_echo "#define _MINIX 1" >>confdefs.h
   3855  1.1  christos 
   3856  1.3  christos   fi
   3857  1.1  christos 
   3858  1.1  christos 
   3859  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3860  1.3  christos $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3861  1.3  christos if ${ac_cv_safe_to_define___extensions__+:} false; then :
   3862  1.1  christos   $as_echo_n "(cached) " >&6
   3863  1.1  christos else
   3864  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3865  1.3  christos /* end confdefs.h.  */
   3866  1.3  christos 
   3867  1.3  christos #         define __EXTENSIONS__ 1
   3868  1.3  christos           $ac_includes_default
   3869  1.3  christos int
   3870  1.3  christos main ()
   3871  1.3  christos {
   3872  1.3  christos 
   3873  1.3  christos   ;
   3874  1.3  christos   return 0;
   3875  1.3  christos }
   3876  1.3  christos _ACEOF
   3877  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   3878  1.3  christos   ac_cv_safe_to_define___extensions__=yes
   3879  1.1  christos else
   3880  1.3  christos   ac_cv_safe_to_define___extensions__=no
   3881  1.1  christos fi
   3882  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3883  1.1  christos fi
   3884  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3885  1.3  christos $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   3886  1.3  christos   test $ac_cv_safe_to_define___extensions__ = yes &&
   3887  1.3  christos     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   3888  1.1  christos 
   3889  1.3  christos   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   3890  1.1  christos 
   3891  1.3  christos   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3892  1.1  christos 
   3893  1.3  christos   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3894  1.1  christos 
   3895  1.3  christos   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   3896  1.1  christos 
   3897  1.1  christos 
   3898  1.1  christos 
   3899  1.3  christos # Enable RFC 3542 APIs on macOS
   3900  1.1  christos 
   3901  1.3  christos $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
   3902  1.1  christos 
   3903  1.1  christos 
   3904  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3905  1.3  christos $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3906  1.3  christos set x ${MAKE-make}
   3907  1.3  christos ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3908  1.3  christos if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3909  1.1  christos   $as_echo_n "(cached) " >&6
   3910  1.1  christos else
   3911  1.3  christos   cat >conftest.make <<\_ACEOF
   3912  1.3  christos SHELL = /bin/sh
   3913  1.3  christos all:
   3914  1.3  christos 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3915  1.3  christos _ACEOF
   3916  1.3  christos # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3917  1.3  christos case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3918  1.3  christos   *@@@%%%=?*=@@@%%%*)
   3919  1.3  christos     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3920  1.3  christos   *)
   3921  1.3  christos     eval ac_cv_prog_make_${ac_make}_set=no;;
   3922  1.3  christos esac
   3923  1.3  christos rm -f conftest.make
   3924  1.1  christos fi
   3925  1.3  christos if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3926  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3927  1.3  christos $as_echo "yes" >&6; }
   3928  1.3  christos   SET_MAKE=
   3929  1.1  christos else
   3930  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3931  1.1  christos $as_echo "no" >&6; }
   3932  1.3  christos   SET_MAKE="MAKE=${MAKE-make}"
   3933  1.1  christos fi
   3934  1.1  christos 
   3935  1.1  christos 
   3936  1.3  christos case `pwd` in
   3937  1.3  christos   *\ * | *\	*)
   3938  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   3939  1.3  christos $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   3940  1.3  christos esac
   3941  1.3  christos 
   3942  1.3  christos 
   3943  1.3  christos 
   3944  1.3  christos macro_version='2.4.6'
   3945  1.3  christos macro_revision='2.4.6'
   3946  1.3  christos 
   3947  1.3  christos 
   3948  1.3  christos 
   3949  1.3  christos 
   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 ltmain=$ac_aux_dir/ltmain.sh
   3960  1.3  christos 
   3961  1.3  christos # Backslashify metacharacters that are still active within
   3962  1.3  christos # double-quoted strings.
   3963  1.3  christos sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   3964  1.3  christos 
   3965  1.3  christos # Same as above, but do not quote variable references.
   3966  1.3  christos double_quote_subst='s/\(["`\\]\)/\\\1/g'
   3967  1.3  christos 
   3968  1.3  christos # Sed substitution to delay expansion of an escaped shell variable in a
   3969  1.3  christos # double_quote_subst'ed string.
   3970  1.3  christos delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   3971  1.3  christos 
   3972  1.3  christos # Sed substitution to delay expansion of an escaped single quote.
   3973  1.3  christos delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   3974  1.3  christos 
   3975  1.3  christos # Sed substitution to avoid accidental globbing in evaled expressions
   3976  1.3  christos no_glob_subst='s/\*/\\\*/g'
   3977  1.3  christos 
   3978  1.3  christos ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   3979  1.3  christos ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   3980  1.3  christos ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   3981  1.3  christos 
   3982  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   3983  1.3  christos $as_echo_n "checking how to print strings... " >&6; }
   3984  1.3  christos # Test print first, because it will be a builtin if present.
   3985  1.3  christos if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   3986  1.3  christos    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   3987  1.3  christos   ECHO='print -r --'
   3988  1.3  christos elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   3989  1.3  christos   ECHO='printf %s\n'
   3990  1.3  christos else
   3991  1.3  christos   # Use this function as a fallback that always works.
   3992  1.3  christos   func_fallback_echo ()
   3993  1.3  christos   {
   3994  1.3  christos     eval 'cat <<_LTECHO_EOF
   3995  1.3  christos $1
   3996  1.3  christos _LTECHO_EOF'
   3997  1.3  christos   }
   3998  1.3  christos   ECHO='func_fallback_echo'
   3999  1.1  christos fi
   4000  1.3  christos 
   4001  1.3  christos # func_echo_all arg...
   4002  1.3  christos # Invoke $ECHO with all args, space-separated.
   4003  1.3  christos func_echo_all ()
   4004  1.3  christos {
   4005  1.3  christos     $ECHO ""
   4006  1.3  christos }
   4007  1.3  christos 
   4008  1.3  christos case $ECHO in
   4009  1.3  christos   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4010  1.3  christos $as_echo "printf" >&6; } ;;
   4011  1.3  christos   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4012  1.3  christos $as_echo "print -r" >&6; } ;;
   4013  1.3  christos   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4014  1.3  christos $as_echo "cat" >&6; } ;;
   4015  1.3  christos esac
   4016  1.3  christos 
   4017  1.3  christos 
   4018  1.3  christos 
   4019  1.3  christos 
   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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4031  1.3  christos $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4032  1.3  christos if ${ac_cv_path_SED+:} false; then :
   4033  1.1  christos   $as_echo_n "(cached) " >&6
   4034  1.1  christos else
   4035  1.3  christos             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4036  1.3  christos      for ac_i in 1 2 3 4 5 6 7; do
   4037  1.3  christos        ac_script="$ac_script$as_nl$ac_script"
   4038  1.3  christos      done
   4039  1.3  christos      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4040  1.3  christos      { ac_script=; unset ac_script;}
   4041  1.3  christos      if test -z "$SED"; then
   4042  1.3  christos   ac_path_SED_found=false
   4043  1.3  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   4044  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4045  1.1  christos for as_dir in $PATH
   4046  1.1  christos do
   4047  1.1  christos   IFS=$as_save_IFS
   4048  1.1  christos   test -z "$as_dir" && as_dir=.
   4049  1.3  christos     for ac_prog in sed gsed; do
   4050  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4051  1.3  christos       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4052  1.3  christos       as_fn_executable_p "$ac_path_SED" || continue
   4053  1.3  christos # Check for GNU ac_path_SED and select it if it is found.
   4054  1.3  christos   # Check for GNU $ac_path_SED
   4055  1.3  christos case `"$ac_path_SED" --version 2>&1` in
   4056  1.3  christos *GNU*)
   4057  1.3  christos   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4058  1.3  christos *)
   4059  1.3  christos   ac_count=0
   4060  1.3  christos   $as_echo_n 0123456789 >"conftest.in"
   4061  1.3  christos   while :
   4062  1.3  christos   do
   4063  1.3  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4064  1.3  christos     mv "conftest.tmp" "conftest.in"
   4065  1.3  christos     cp "conftest.in" "conftest.nl"
   4066  1.3  christos     $as_echo '' >> "conftest.nl"
   4067  1.3  christos     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4068  1.3  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4069  1.3  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4070  1.3  christos     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4071  1.3  christos       # Best one so far, save it but keep looking for a better one
   4072  1.3  christos       ac_cv_path_SED="$ac_path_SED"
   4073  1.3  christos       ac_path_SED_max=$ac_count
   4074  1.3  christos     fi
   4075  1.3  christos     # 10*(2^10) chars as input seems more than enough
   4076  1.3  christos     test $ac_count -gt 10 && break
   4077  1.3  christos   done
   4078  1.3  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4079  1.3  christos esac
   4080  1.3  christos 
   4081  1.3  christos       $ac_path_SED_found && break 3
   4082  1.3  christos     done
   4083  1.3  christos   done
   4084  1.1  christos   done
   4085  1.1  christos IFS=$as_save_IFS
   4086  1.3  christos   if test -z "$ac_cv_path_SED"; then
   4087  1.3  christos     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4088  1.3  christos   fi
   4089  1.1  christos else
   4090  1.3  christos   ac_cv_path_SED=$SED
   4091  1.1  christos fi
   4092  1.1  christos 
   4093  1.3  christos fi
   4094  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4095  1.3  christos $as_echo "$ac_cv_path_SED" >&6; }
   4096  1.3  christos  SED="$ac_cv_path_SED"
   4097  1.3  christos   rm -f conftest.sed
   4098  1.1  christos 
   4099  1.3  christos test -z "$SED" && SED=sed
   4100  1.3  christos Xsed="$SED -e 1s/^X//"
   4101  1.1  christos 
   4102  1.1  christos 
   4103  1.1  christos 
   4104  1.1  christos 
   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.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   4113  1.3  christos $as_echo_n "checking for fgrep... " >&6; }
   4114  1.3  christos if ${ac_cv_path_FGREP+:} false; then :
   4115  1.1  christos   $as_echo_n "(cached) " >&6
   4116  1.1  christos else
   4117  1.3  christos   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   4118  1.3  christos    then ac_cv_path_FGREP="$GREP -F"
   4119  1.3  christos    else
   4120  1.3  christos      if test -z "$FGREP"; then
   4121  1.3  christos   ac_path_FGREP_found=false
   4122  1.3  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   4123  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4124  1.3  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4125  1.3  christos do
   4126  1.3  christos   IFS=$as_save_IFS
   4127  1.3  christos   test -z "$as_dir" && as_dir=.
   4128  1.3  christos     for ac_prog in fgrep; do
   4129  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4130  1.3  christos       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   4131  1.3  christos       as_fn_executable_p "$ac_path_FGREP" || continue
   4132  1.3  christos # Check for GNU ac_path_FGREP and select it if it is found.
   4133  1.3  christos   # Check for GNU $ac_path_FGREP
   4134  1.3  christos case `"$ac_path_FGREP" --version 2>&1` in
   4135  1.3  christos *GNU*)
   4136  1.3  christos   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   4137  1.3  christos *)
   4138  1.3  christos   ac_count=0
   4139  1.3  christos   $as_echo_n 0123456789 >"conftest.in"
   4140  1.3  christos   while :
   4141  1.3  christos   do
   4142  1.3  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4143  1.3  christos     mv "conftest.tmp" "conftest.in"
   4144  1.3  christos     cp "conftest.in" "conftest.nl"
   4145  1.3  christos     $as_echo 'FGREP' >> "conftest.nl"
   4146  1.3  christos     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4147  1.3  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4148  1.3  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4149  1.3  christos     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   4150  1.3  christos       # Best one so far, save it but keep looking for a better one
   4151  1.3  christos       ac_cv_path_FGREP="$ac_path_FGREP"
   4152  1.3  christos       ac_path_FGREP_max=$ac_count
   4153  1.1  christos     fi
   4154  1.3  christos     # 10*(2^10) chars as input seems more than enough
   4155  1.3  christos     test $ac_count -gt 10 && break
   4156  1.3  christos   done
   4157  1.3  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4158  1.3  christos esac
   4159  1.1  christos 
   4160  1.3  christos       $ac_path_FGREP_found && break 3
   4161  1.3  christos     done
   4162  1.3  christos   done
   4163  1.3  christos   done
   4164  1.3  christos IFS=$as_save_IFS
   4165  1.3  christos   if test -z "$ac_cv_path_FGREP"; then
   4166  1.3  christos     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4167  1.3  christos   fi
   4168  1.3  christos else
   4169  1.3  christos   ac_cv_path_FGREP=$FGREP
   4170  1.1  christos fi
   4171  1.1  christos 
   4172  1.3  christos    fi
   4173  1.1  christos fi
   4174  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   4175  1.3  christos $as_echo "$ac_cv_path_FGREP" >&6; }
   4176  1.3  christos  FGREP="$ac_cv_path_FGREP"
   4177  1.1  christos 
   4178  1.1  christos 
   4179  1.3  christos test -z "$GREP" && GREP=grep
   4180  1.1  christos 
   4181  1.1  christos 
   4182  1.1  christos 
   4183  1.1  christos 
   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.3  christos # Check whether --with-gnu-ld was given.
   4200  1.3  christos if test "${with_gnu_ld+set}" = set; then :
   4201  1.3  christos   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   4202  1.1  christos else
   4203  1.3  christos   with_gnu_ld=no
   4204  1.3  christos fi
   4205  1.3  christos 
   4206  1.3  christos ac_prog=ld
   4207  1.3  christos if test yes = "$GCC"; then
   4208  1.3  christos   # Check if gcc -print-prog-name=ld gives a path.
   4209  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   4210  1.3  christos $as_echo_n "checking for ld used by $CC... " >&6; }
   4211  1.1  christos   case $host in
   4212  1.3  christos   *-*-mingw*)
   4213  1.3  christos     # gcc leaves a trailing carriage return, which upsets mingw
   4214  1.3  christos     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4215  1.3  christos   *)
   4216  1.3  christos     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4217  1.3  christos   esac
   4218  1.3  christos   case $ac_prog in
   4219  1.3  christos     # Accept absolute paths.
   4220  1.3  christos     [\\/]* | ?:[\\/]*)
   4221  1.3  christos       re_direlt='/[^/][^/]*/\.\./'
   4222  1.3  christos       # Canonicalize the pathname of ld
   4223  1.3  christos       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4224  1.3  christos       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4225  1.3  christos 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4226  1.3  christos       done
   4227  1.3  christos       test -z "$LD" && LD=$ac_prog
   4228  1.3  christos       ;;
   4229  1.3  christos   "")
   4230  1.3  christos     # If it fails, then pretend we aren't using GCC.
   4231  1.3  christos     ac_prog=ld
   4232  1.1  christos     ;;
   4233  1.3  christos   *)
   4234  1.3  christos     # If it is relative, then search for the first ld in PATH.
   4235  1.3  christos     with_gnu_ld=unknown
   4236  1.1  christos     ;;
   4237  1.3  christos   esac
   4238  1.3  christos elif test yes = "$with_gnu_ld"; then
   4239  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   4240  1.3  christos $as_echo_n "checking for GNU ld... " >&6; }
   4241  1.3  christos else
   4242  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   4243  1.3  christos $as_echo_n "checking for non-GNU ld... " >&6; }
   4244  1.3  christos fi
   4245  1.3  christos if ${lt_cv_path_LD+:} false; then :
   4246  1.3  christos   $as_echo_n "(cached) " >&6
   4247  1.3  christos else
   4248  1.3  christos   if test -z "$LD"; then
   4249  1.3  christos   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4250  1.3  christos   for ac_dir in $PATH; do
   4251  1.3  christos     IFS=$lt_save_ifs
   4252  1.3  christos     test -z "$ac_dir" && ac_dir=.
   4253  1.3  christos     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4254  1.3  christos       lt_cv_path_LD=$ac_dir/$ac_prog
   4255  1.3  christos       # Check to see if the program is GNU ld.  I'd rather use --version,
   4256  1.3  christos       # but apparently some variants of GNU ld only accept -v.
   4257  1.3  christos       # Break only if it was the GNU/non-GNU ld that we prefer.
   4258  1.3  christos       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4259  1.3  christos       *GNU* | *'with BFD'*)
   4260  1.3  christos 	test no != "$with_gnu_ld" && break
   4261  1.3  christos 	;;
   4262  1.3  christos       *)
   4263  1.3  christos 	test yes != "$with_gnu_ld" && break
   4264  1.3  christos 	;;
   4265  1.3  christos       esac
   4266  1.3  christos     fi
   4267  1.3  christos   done
   4268  1.3  christos   IFS=$lt_save_ifs
   4269  1.3  christos else
   4270  1.3  christos   lt_cv_path_LD=$LD # Let the user override the test with a path.
   4271  1.3  christos fi
   4272  1.1  christos fi
   4273  1.1  christos 
   4274  1.3  christos LD=$lt_cv_path_LD
   4275  1.3  christos if test -n "$LD"; then
   4276  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4277  1.3  christos $as_echo "$LD" >&6; }
   4278  1.1  christos else
   4279  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4280  1.3  christos $as_echo "no" >&6; }
   4281  1.1  christos fi
   4282  1.3  christos test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4283  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4284  1.3  christos $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4285  1.3  christos if ${lt_cv_prog_gnu_ld+:} false; then :
   4286  1.1  christos   $as_echo_n "(cached) " >&6
   4287  1.1  christos else
   4288  1.3  christos   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4289  1.3  christos case `$LD -v 2>&1 </dev/null` in
   4290  1.3  christos *GNU* | *'with BFD'*)
   4291  1.3  christos   lt_cv_prog_gnu_ld=yes
   4292  1.3  christos   ;;
   4293  1.3  christos *)
   4294  1.3  christos   lt_cv_prog_gnu_ld=no
   4295  1.3  christos   ;;
   4296  1.3  christos esac
   4297  1.1  christos fi
   4298  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4299  1.3  christos $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4300  1.3  christos with_gnu_ld=$lt_cv_prog_gnu_ld
   4301  1.1  christos 
   4302  1.1  christos 
   4303  1.1  christos 
   4304  1.1  christos 
   4305  1.1  christos 
   4306  1.1  christos 
   4307  1.1  christos 
   4308  1.1  christos 
   4309  1.1  christos 
   4310  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4311  1.3  christos $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4312  1.3  christos if ${lt_cv_path_NM+:} false; then :
   4313  1.3  christos   $as_echo_n "(cached) " >&6
   4314  1.3  christos else
   4315  1.3  christos   if test -n "$NM"; then
   4316  1.3  christos   # Let the user override the test.
   4317  1.3  christos   lt_cv_path_NM=$NM
   4318  1.3  christos else
   4319  1.3  christos   lt_nm_to_check=${ac_tool_prefix}nm
   4320  1.3  christos   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4321  1.3  christos     lt_nm_to_check="$lt_nm_to_check nm"
   4322  1.3  christos   fi
   4323  1.3  christos   for lt_tmp_nm in $lt_nm_to_check; do
   4324  1.3  christos     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4325  1.3  christos     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4326  1.3  christos       IFS=$lt_save_ifs
   4327  1.3  christos       test -z "$ac_dir" && ac_dir=.
   4328  1.3  christos       tmp_nm=$ac_dir/$lt_tmp_nm
   4329  1.3  christos       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   4330  1.3  christos 	# Check to see if the nm accepts a BSD-compat flag.
   4331  1.3  christos 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   4332  1.3  christos 	#   nm: unknown option "B" ignored
   4333  1.3  christos 	# Tru64's nm complains that /dev/null is an invalid object file
   4334  1.3  christos 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   4335  1.3  christos 	case $build_os in
   4336  1.3  christos 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   4337  1.3  christos 	*) lt_bad_file=/dev/null ;;
   4338  1.3  christos 	esac
   4339  1.3  christos 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   4340  1.3  christos 	*$lt_bad_file* | *'Invalid file or object type'*)
   4341  1.3  christos 	  lt_cv_path_NM="$tmp_nm -B"
   4342  1.3  christos 	  break 2
   4343  1.3  christos 	  ;;
   4344  1.3  christos 	*)
   4345  1.3  christos 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4346  1.3  christos 	  */dev/null*)
   4347  1.3  christos 	    lt_cv_path_NM="$tmp_nm -p"
   4348  1.3  christos 	    break 2
   4349  1.3  christos 	    ;;
   4350  1.3  christos 	  *)
   4351  1.3  christos 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4352  1.3  christos 	    continue # so that we can try to find one that supports BSD flags
   4353  1.3  christos 	    ;;
   4354  1.3  christos 	  esac
   4355  1.3  christos 	  ;;
   4356  1.3  christos 	esac
   4357  1.3  christos       fi
   4358  1.3  christos     done
   4359  1.3  christos     IFS=$lt_save_ifs
   4360  1.3  christos   done
   4361  1.3  christos   : ${lt_cv_path_NM=no}
   4362  1.3  christos fi
   4363  1.3  christos fi
   4364  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4365  1.3  christos $as_echo "$lt_cv_path_NM" >&6; }
   4366  1.3  christos if test no != "$lt_cv_path_NM"; then
   4367  1.3  christos   NM=$lt_cv_path_NM
   4368  1.3  christos else
   4369  1.3  christos   # Didn't find any BSD compatible name lister, look for dumpbin.
   4370  1.3  christos   if test -n "$DUMPBIN"; then :
   4371  1.3  christos     # Let the user override the test.
   4372  1.3  christos   else
   4373  1.3  christos     if test -n "$ac_tool_prefix"; then
   4374  1.3  christos   for ac_prog in dumpbin "link -dump"
   4375  1.3  christos   do
   4376  1.3  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4377  1.3  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4378  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4379  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   4380  1.3  christos if ${ac_cv_prog_DUMPBIN+:} false; then :
   4381  1.1  christos   $as_echo_n "(cached) " >&6
   4382  1.1  christos else
   4383  1.3  christos   if test -n "$DUMPBIN"; then
   4384  1.3  christos   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4385  1.1  christos else
   4386  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4387  1.1  christos for as_dir in $PATH
   4388  1.1  christos do
   4389  1.1  christos   IFS=$as_save_IFS
   4390  1.1  christos   test -z "$as_dir" && as_dir=.
   4391  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4392  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4393  1.3  christos     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4394  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4395  1.1  christos     break 2
   4396  1.1  christos   fi
   4397  1.1  christos done
   4398  1.1  christos   done
   4399  1.1  christos IFS=$as_save_IFS
   4400  1.1  christos 
   4401  1.1  christos fi
   4402  1.1  christos fi
   4403  1.3  christos DUMPBIN=$ac_cv_prog_DUMPBIN
   4404  1.3  christos if test -n "$DUMPBIN"; then
   4405  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4406  1.3  christos $as_echo "$DUMPBIN" >&6; }
   4407  1.1  christos else
   4408  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4409  1.1  christos $as_echo "no" >&6; }
   4410  1.1  christos fi
   4411  1.1  christos 
   4412  1.1  christos 
   4413  1.3  christos     test -n "$DUMPBIN" && break
   4414  1.3  christos   done
   4415  1.1  christos fi
   4416  1.3  christos if test -z "$DUMPBIN"; then
   4417  1.3  christos   ac_ct_DUMPBIN=$DUMPBIN
   4418  1.3  christos   for ac_prog in dumpbin "link -dump"
   4419  1.3  christos do
   4420  1.3  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4421  1.3  christos set dummy $ac_prog; ac_word=$2
   4422  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4423  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   4424  1.3  christos if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4425  1.1  christos   $as_echo_n "(cached) " >&6
   4426  1.1  christos else
   4427  1.3  christos   if test -n "$ac_ct_DUMPBIN"; then
   4428  1.3  christos   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4429  1.1  christos else
   4430  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4431  1.1  christos for as_dir in $PATH
   4432  1.1  christos do
   4433  1.1  christos   IFS=$as_save_IFS
   4434  1.1  christos   test -z "$as_dir" && as_dir=.
   4435  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4436  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4437  1.3  christos     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4438  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4439  1.1  christos     break 2
   4440  1.1  christos   fi
   4441  1.1  christos done
   4442  1.1  christos   done
   4443  1.1  christos IFS=$as_save_IFS
   4444  1.1  christos 
   4445  1.1  christos fi
   4446  1.1  christos fi
   4447  1.3  christos ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4448  1.3  christos if test -n "$ac_ct_DUMPBIN"; then
   4449  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4450  1.3  christos $as_echo "$ac_ct_DUMPBIN" >&6; }
   4451  1.1  christos else
   4452  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4453  1.1  christos $as_echo "no" >&6; }
   4454  1.1  christos fi
   4455  1.1  christos 
   4456  1.3  christos 
   4457  1.3  christos   test -n "$ac_ct_DUMPBIN" && break
   4458  1.3  christos done
   4459  1.3  christos 
   4460  1.3  christos   if test "x$ac_ct_DUMPBIN" = x; then
   4461  1.3  christos     DUMPBIN=":"
   4462  1.1  christos   else
   4463  1.1  christos     case $cross_compiling:$ac_tool_warned in
   4464  1.1  christos yes:)
   4465  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4466  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4467  1.1  christos ac_tool_warned=yes ;;
   4468  1.1  christos esac
   4469  1.3  christos     DUMPBIN=$ac_ct_DUMPBIN
   4470  1.1  christos   fi
   4471  1.1  christos fi
   4472  1.1  christos 
   4473  1.3  christos     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   4474  1.3  christos     *COFF*)
   4475  1.3  christos       DUMPBIN="$DUMPBIN -symbols -headers"
   4476  1.3  christos       ;;
   4477  1.3  christos     *)
   4478  1.3  christos       DUMPBIN=:
   4479  1.3  christos       ;;
   4480  1.3  christos     esac
   4481  1.3  christos   fi
   4482  1.1  christos 
   4483  1.3  christos   if test : != "$DUMPBIN"; then
   4484  1.3  christos     NM=$DUMPBIN
   4485  1.3  christos   fi
   4486  1.3  christos fi
   4487  1.3  christos test -z "$NM" && NM=nm
   4488  1.1  christos 
   4489  1.1  christos 
   4490  1.1  christos 
   4491  1.1  christos 
   4492  1.1  christos 
   4493  1.1  christos 
   4494  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4495  1.3  christos $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4496  1.3  christos if ${lt_cv_nm_interface+:} false; then :
   4497  1.3  christos   $as_echo_n "(cached) " >&6
   4498  1.3  christos else
   4499  1.3  christos   lt_cv_nm_interface="BSD nm"
   4500  1.3  christos   echo "int some_variable = 0;" > conftest.$ac_ext
   4501  1.3  christos   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4502  1.3  christos   (eval "$ac_compile" 2>conftest.err)
   4503  1.3  christos   cat conftest.err >&5
   4504  1.3  christos   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4505  1.3  christos   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4506  1.3  christos   cat conftest.err >&5
   4507  1.3  christos   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4508  1.3  christos   cat conftest.out >&5
   4509  1.3  christos   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4510  1.3  christos     lt_cv_nm_interface="MS dumpbin"
   4511  1.3  christos   fi
   4512  1.3  christos   rm -f conftest*
   4513  1.3  christos fi
   4514  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4515  1.3  christos $as_echo "$lt_cv_nm_interface" >&6; }
   4516  1.1  christos 
   4517  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4518  1.3  christos $as_echo_n "checking whether ln -s works... " >&6; }
   4519  1.3  christos LN_S=$as_ln_s
   4520  1.3  christos if test "$LN_S" = "ln -s"; then
   4521  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4522  1.3  christos $as_echo "yes" >&6; }
   4523  1.3  christos else
   4524  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4525  1.3  christos $as_echo "no, using $LN_S" >&6; }
   4526  1.3  christos fi
   4527  1.1  christos 
   4528  1.3  christos # find the maximum length of command line arguments
   4529  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4530  1.3  christos $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4531  1.3  christos if ${lt_cv_sys_max_cmd_len+:} false; then :
   4532  1.1  christos   $as_echo_n "(cached) " >&6
   4533  1.1  christos else
   4534  1.3  christos     i=0
   4535  1.3  christos   teststring=ABCD
   4536  1.1  christos 
   4537  1.3  christos   case $build_os in
   4538  1.3  christos   msdosdjgpp*)
   4539  1.3  christos     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4540  1.3  christos     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4541  1.3  christos     # during glob expansion).  Even if it were fixed, the result of this
   4542  1.3  christos     # check would be larger than it should be.
   4543  1.3  christos     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4544  1.3  christos     ;;
   4545  1.1  christos 
   4546  1.3  christos   gnu*)
   4547  1.3  christos     # Under GNU Hurd, this test is not required because there is
   4548  1.3  christos     # no limit to the length of command line arguments.
   4549  1.3  christos     # Libtool will interpret -1 as no limit whatsoever
   4550  1.3  christos     lt_cv_sys_max_cmd_len=-1;
   4551  1.3  christos     ;;
   4552  1.1  christos 
   4553  1.3  christos   cygwin* | mingw* | cegcc*)
   4554  1.3  christos     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4555  1.3  christos     # about 5 minutes as the teststring grows exponentially.
   4556  1.3  christos     # Worse, since 9x/ME are not pre-emptively multitasking,
   4557  1.3  christos     # you end up with a "frozen" computer, even though with patience
   4558  1.3  christos     # the test eventually succeeds (with a max line length of 256k).
   4559  1.3  christos     # Instead, let's just punt: use the minimum linelength reported by
   4560  1.3  christos     # all of the supported platforms: 8192 (on NT/2K/XP).
   4561  1.3  christos     lt_cv_sys_max_cmd_len=8192;
   4562  1.3  christos     ;;
   4563  1.1  christos 
   4564  1.3  christos   mint*)
   4565  1.3  christos     # On MiNT this can take a long time and run out of memory.
   4566  1.3  christos     lt_cv_sys_max_cmd_len=8192;
   4567  1.3  christos     ;;
   4568  1.1  christos 
   4569  1.3  christos   amigaos*)
   4570  1.3  christos     # On AmigaOS with pdksh, this test takes hours, literally.
   4571  1.3  christos     # So we just punt and use a minimum line length of 8192.
   4572  1.3  christos     lt_cv_sys_max_cmd_len=8192;
   4573  1.3  christos     ;;
   4574  1.1  christos 
   4575  1.3  christos   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   4576  1.3  christos     # This has been around since 386BSD, at least.  Likely further.
   4577  1.3  christos     if test -x /sbin/sysctl; then
   4578  1.3  christos       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4579  1.3  christos     elif test -x /usr/sbin/sysctl; then
   4580  1.3  christos       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4581  1.3  christos     else
   4582  1.3  christos       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4583  1.3  christos     fi
   4584  1.3  christos     # And add a safety zone
   4585  1.3  christos     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4586  1.3  christos     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4587  1.3  christos     ;;
   4588  1.1  christos 
   4589  1.3  christos   interix*)
   4590  1.3  christos     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4591  1.3  christos     lt_cv_sys_max_cmd_len=196608
   4592  1.3  christos     ;;
   4593  1.1  christos 
   4594  1.3  christos   os2*)
   4595  1.3  christos     # The test takes a long time on OS/2.
   4596  1.3  christos     lt_cv_sys_max_cmd_len=8192
   4597  1.3  christos     ;;
   4598  1.1  christos 
   4599  1.3  christos   osf*)
   4600  1.3  christos     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4601  1.3  christos     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4602  1.3  christos     # nice to cause kernel panics so lets avoid the loop below.
   4603  1.3  christos     # First set a reasonable default.
   4604  1.3  christos     lt_cv_sys_max_cmd_len=16384
   4605  1.3  christos     #
   4606  1.3  christos     if test -x /sbin/sysconfig; then
   4607  1.3  christos       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4608  1.3  christos         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4609  1.3  christos       esac
   4610  1.3  christos     fi
   4611  1.3  christos     ;;
   4612  1.3  christos   sco3.2v5*)
   4613  1.3  christos     lt_cv_sys_max_cmd_len=102400
   4614  1.1  christos     ;;
   4615  1.3  christos   sysv5* | sco5v6* | sysv4.2uw2*)
   4616  1.3  christos     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4617  1.3  christos     if test -n "$kargmax"; then
   4618  1.3  christos       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4619  1.3  christos     else
   4620  1.3  christos       lt_cv_sys_max_cmd_len=32768
   4621  1.3  christos     fi
   4622  1.1  christos     ;;
   4623  1.1  christos   *)
   4624  1.3  christos     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4625  1.3  christos     if test -n "$lt_cv_sys_max_cmd_len" && \
   4626  1.3  christos        test undefined != "$lt_cv_sys_max_cmd_len"; then
   4627  1.3  christos       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4628  1.3  christos       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4629  1.3  christos     else
   4630  1.3  christos       # Make teststring a little bigger before we do anything with it.
   4631  1.3  christos       # a 1K string should be a reasonable start.
   4632  1.3  christos       for i in 1 2 3 4 5 6 7 8; do
   4633  1.3  christos         teststring=$teststring$teststring
   4634  1.3  christos       done
   4635  1.3  christos       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4636  1.3  christos       # If test is not a shell built-in, we'll probably end up computing a
   4637  1.3  christos       # maximum length that is only half of the actual maximum length, but
   4638  1.3  christos       # we can't tell.
   4639  1.3  christos       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   4640  1.3  christos 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   4641  1.3  christos 	      test 17 != "$i" # 1/2 MB should be enough
   4642  1.3  christos       do
   4643  1.3  christos         i=`expr $i + 1`
   4644  1.3  christos         teststring=$teststring$teststring
   4645  1.3  christos       done
   4646  1.3  christos       # Only check the string length outside the loop.
   4647  1.3  christos       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   4648  1.3  christos       teststring=
   4649  1.3  christos       # Add a significant safety factor because C++ compilers can tack on
   4650  1.3  christos       # massive amounts of additional arguments before passing them to the
   4651  1.3  christos       # linker.  It appears as though 1/2 is a usable value.
   4652  1.3  christos       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4653  1.3  christos     fi
   4654  1.1  christos     ;;
   4655  1.1  christos   esac
   4656  1.1  christos 
   4657  1.3  christos fi
   4658  1.3  christos 
   4659  1.3  christos if test -n "$lt_cv_sys_max_cmd_len"; then
   4660  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   4661  1.3  christos $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   4662  1.3  christos else
   4663  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   4664  1.3  christos $as_echo "none" >&6; }
   4665  1.3  christos fi
   4666  1.3  christos max_cmd_len=$lt_cv_sys_max_cmd_len
   4667  1.3  christos 
   4668  1.1  christos 
   4669  1.1  christos 
   4670  1.1  christos 
   4671  1.3  christos 
   4672  1.3  christos 
   4673  1.3  christos : ${CP="cp -f"}
   4674  1.3  christos : ${MV="mv -f"}
   4675  1.3  christos : ${RM="rm -f"}
   4676  1.3  christos 
   4677  1.3  christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   4678  1.3  christos   lt_unset=unset
   4679  1.3  christos else
   4680  1.3  christos   lt_unset=false
   4681  1.3  christos fi
   4682  1.3  christos 
   4683  1.3  christos 
   4684  1.3  christos 
   4685  1.3  christos 
   4686  1.3  christos 
   4687  1.3  christos # test EBCDIC or ASCII
   4688  1.3  christos case `echo X|tr X '\101'` in
   4689  1.3  christos  A) # ASCII based system
   4690  1.3  christos     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   4691  1.3  christos   lt_SP2NL='tr \040 \012'
   4692  1.3  christos   lt_NL2SP='tr \015\012 \040\040'
   4693  1.3  christos   ;;
   4694  1.3  christos  *) # EBCDIC based system
   4695  1.3  christos   lt_SP2NL='tr \100 \n'
   4696  1.3  christos   lt_NL2SP='tr \r\n \100\100'
   4697  1.1  christos   ;;
   4698  1.3  christos esac
   4699  1.3  christos 
   4700  1.1  christos 
   4701  1.1  christos 
   4702  1.1  christos 
   4703  1.1  christos 
   4704  1.1  christos 
   4705  1.1  christos 
   4706  1.1  christos 
   4707  1.1  christos 
   4708  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   4709  1.3  christos $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   4710  1.3  christos if ${lt_cv_to_host_file_cmd+:} false; then :
   4711  1.3  christos   $as_echo_n "(cached) " >&6
   4712  1.3  christos else
   4713  1.3  christos   case $host in
   4714  1.3  christos   *-*-mingw* )
   4715  1.3  christos     case $build in
   4716  1.3  christos       *-*-mingw* ) # actually msys
   4717  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   4718  1.3  christos         ;;
   4719  1.3  christos       *-*-cygwin* )
   4720  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   4721  1.3  christos         ;;
   4722  1.3  christos       * ) # otherwise, assume *nix
   4723  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   4724  1.3  christos         ;;
   4725  1.3  christos     esac
   4726  1.1  christos     ;;
   4727  1.3  christos   *-*-cygwin* )
   4728  1.3  christos     case $build in
   4729  1.3  christos       *-*-mingw* ) # actually msys
   4730  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   4731  1.3  christos         ;;
   4732  1.3  christos       *-*-cygwin* )
   4733  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_noop
   4734  1.3  christos         ;;
   4735  1.3  christos       * ) # otherwise, assume *nix
   4736  1.3  christos         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   4737  1.3  christos         ;;
   4738  1.3  christos     esac
   4739  1.1  christos     ;;
   4740  1.3  christos   * ) # unhandled hosts (and "normal" native builds)
   4741  1.3  christos     lt_cv_to_host_file_cmd=func_convert_file_noop
   4742  1.1  christos     ;;
   4743  1.1  christos esac
   4744  1.1  christos 
   4745  1.1  christos fi
   4746  1.1  christos 
   4747  1.3  christos to_host_file_cmd=$lt_cv_to_host_file_cmd
   4748  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   4749  1.3  christos $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   4750  1.1  christos 
   4751  1.1  christos 
   4752  1.1  christos 
   4753  1.1  christos 
   4754  1.1  christos 
   4755  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   4756  1.3  christos $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   4757  1.3  christos if ${lt_cv_to_tool_file_cmd+:} false; then :
   4758  1.3  christos   $as_echo_n "(cached) " >&6
   4759  1.3  christos else
   4760  1.3  christos   #assume ordinary cross tools, or native build.
   4761  1.3  christos lt_cv_to_tool_file_cmd=func_convert_file_noop
   4762  1.3  christos case $host in
   4763  1.3  christos   *-*-mingw* )
   4764  1.3  christos     case $build in
   4765  1.3  christos       *-*-mingw* ) # actually msys
   4766  1.3  christos         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   4767  1.3  christos         ;;
   4768  1.3  christos     esac
   4769  1.3  christos     ;;
   4770  1.3  christos esac
   4771  1.1  christos 
   4772  1.3  christos fi
   4773  1.1  christos 
   4774  1.3  christos to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   4775  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   4776  1.3  christos $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   4777  1.1  christos 
   4778  1.1  christos 
   4779  1.1  christos 
   4780  1.1  christos 
   4781  1.1  christos 
   4782  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   4783  1.3  christos $as_echo_n "checking for $LD option to reload object files... " >&6; }
   4784  1.3  christos if ${lt_cv_ld_reload_flag+:} false; then :
   4785  1.3  christos   $as_echo_n "(cached) " >&6
   4786  1.3  christos else
   4787  1.3  christos   lt_cv_ld_reload_flag='-r'
   4788  1.3  christos fi
   4789  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   4790  1.3  christos $as_echo "$lt_cv_ld_reload_flag" >&6; }
   4791  1.3  christos reload_flag=$lt_cv_ld_reload_flag
   4792  1.3  christos case $reload_flag in
   4793  1.3  christos "" | " "*) ;;
   4794  1.3  christos *) reload_flag=" $reload_flag" ;;
   4795  1.3  christos esac
   4796  1.3  christos reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4797  1.3  christos case $host_os in
   4798  1.3  christos   cygwin* | mingw* | pw32* | cegcc*)
   4799  1.3  christos     if test yes != "$GCC"; then
   4800  1.3  christos       reload_cmds=false
   4801  1.3  christos     fi
   4802  1.3  christos     ;;
   4803  1.3  christos   darwin*)
   4804  1.3  christos     if test yes = "$GCC"; then
   4805  1.3  christos       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   4806  1.3  christos     else
   4807  1.3  christos       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4808  1.3  christos     fi
   4809  1.3  christos     ;;
   4810  1.3  christos esac
   4811  1.1  christos 
   4812  1.1  christos 
   4813  1.1  christos 
   4814  1.1  christos 
   4815  1.1  christos 
   4816  1.1  christos 
   4817  1.1  christos 
   4818  1.1  christos 
   4819  1.1  christos 
   4820  1.1  christos if test -n "$ac_tool_prefix"; then
   4821  1.3  christos   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   4822  1.3  christos set dummy ${ac_tool_prefix}objdump; ac_word=$2
   4823  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4824  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   4825  1.3  christos if ${ac_cv_prog_OBJDUMP+:} false; then :
   4826  1.1  christos   $as_echo_n "(cached) " >&6
   4827  1.1  christos else
   4828  1.3  christos   if test -n "$OBJDUMP"; then
   4829  1.3  christos   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   4830  1.1  christos else
   4831  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4832  1.1  christos for as_dir in $PATH
   4833  1.1  christos do
   4834  1.1  christos   IFS=$as_save_IFS
   4835  1.1  christos   test -z "$as_dir" && as_dir=.
   4836  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4837  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4838  1.3  christos     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   4839  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4840  1.1  christos     break 2
   4841  1.1  christos   fi
   4842  1.1  christos done
   4843  1.1  christos   done
   4844  1.1  christos IFS=$as_save_IFS
   4845  1.1  christos 
   4846  1.1  christos fi
   4847  1.1  christos fi
   4848  1.3  christos OBJDUMP=$ac_cv_prog_OBJDUMP
   4849  1.3  christos if test -n "$OBJDUMP"; then
   4850  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   4851  1.3  christos $as_echo "$OBJDUMP" >&6; }
   4852  1.1  christos else
   4853  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4854  1.1  christos $as_echo "no" >&6; }
   4855  1.1  christos fi
   4856  1.1  christos 
   4857  1.1  christos 
   4858  1.1  christos fi
   4859  1.3  christos if test -z "$ac_cv_prog_OBJDUMP"; then
   4860  1.3  christos   ac_ct_OBJDUMP=$OBJDUMP
   4861  1.3  christos   # Extract the first word of "objdump", so it can be a program name with args.
   4862  1.3  christos set dummy objdump; ac_word=$2
   4863  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4864  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   4865  1.3  christos if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   4866  1.1  christos   $as_echo_n "(cached) " >&6
   4867  1.1  christos else
   4868  1.3  christos   if test -n "$ac_ct_OBJDUMP"; then
   4869  1.3  christos   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   4870  1.1  christos else
   4871  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4872  1.1  christos for as_dir in $PATH
   4873  1.1  christos do
   4874  1.1  christos   IFS=$as_save_IFS
   4875  1.1  christos   test -z "$as_dir" && as_dir=.
   4876  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4877  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4878  1.3  christos     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   4879  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4880  1.1  christos     break 2
   4881  1.1  christos   fi
   4882  1.1  christos done
   4883  1.1  christos   done
   4884  1.1  christos IFS=$as_save_IFS
   4885  1.1  christos 
   4886  1.1  christos fi
   4887  1.1  christos fi
   4888  1.3  christos ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   4889  1.3  christos if test -n "$ac_ct_OBJDUMP"; then
   4890  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   4891  1.3  christos $as_echo "$ac_ct_OBJDUMP" >&6; }
   4892  1.1  christos else
   4893  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4894  1.1  christos $as_echo "no" >&6; }
   4895  1.1  christos fi
   4896  1.1  christos 
   4897  1.3  christos   if test "x$ac_ct_OBJDUMP" = x; then
   4898  1.3  christos     OBJDUMP="false"
   4899  1.1  christos   else
   4900  1.1  christos     case $cross_compiling:$ac_tool_warned in
   4901  1.1  christos yes:)
   4902  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4903  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4904  1.1  christos ac_tool_warned=yes ;;
   4905  1.1  christos esac
   4906  1.3  christos     OBJDUMP=$ac_ct_OBJDUMP
   4907  1.1  christos   fi
   4908  1.1  christos else
   4909  1.3  christos   OBJDUMP="$ac_cv_prog_OBJDUMP"
   4910  1.1  christos fi
   4911  1.1  christos 
   4912  1.3  christos test -z "$OBJDUMP" && OBJDUMP=objdump
   4913  1.1  christos 
   4914  1.1  christos 
   4915  1.1  christos 
   4916  1.1  christos 
   4917  1.1  christos 
   4918  1.1  christos 
   4919  1.1  christos 
   4920  1.1  christos 
   4921  1.1  christos 
   4922  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   4923  1.3  christos $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   4924  1.3  christos if ${lt_cv_deplibs_check_method+:} false; then :
   4925  1.1  christos   $as_echo_n "(cached) " >&6
   4926  1.1  christos else
   4927  1.3  christos   lt_cv_file_magic_cmd='$MAGIC_CMD'
   4928  1.3  christos lt_cv_file_magic_test_file=
   4929  1.3  christos lt_cv_deplibs_check_method='unknown'
   4930  1.3  christos # Need to set the preceding variable on all platforms that support
   4931  1.3  christos # interlibrary dependencies.
   4932  1.3  christos # 'none' -- dependencies not supported.
   4933  1.3  christos # 'unknown' -- same as none, but documents that we really don't know.
   4934  1.3  christos # 'pass_all' -- all dependencies passed with no checks.
   4935  1.3  christos # 'test_compile' -- check by making test program.
   4936  1.3  christos # 'file_magic [[regex]]' -- check by looking for files in library path
   4937  1.3  christos # that responds to the $file_magic_cmd with a given extended regex.
   4938  1.3  christos # If you have 'file' or equivalent on your system and you're not sure
   4939  1.3  christos # whether 'pass_all' will *always* work, you probably want this one.
   4940  1.1  christos 
   4941  1.1  christos case $host_os in
   4942  1.3  christos aix[4-9]*)
   4943  1.3  christos   lt_cv_deplibs_check_method=pass_all
   4944  1.3  christos   ;;
   4945  1.3  christos 
   4946  1.3  christos beos*)
   4947  1.3  christos   lt_cv_deplibs_check_method=pass_all
   4948  1.3  christos   ;;
   4949  1.3  christos 
   4950  1.3  christos bsdi[45]*)
   4951  1.3  christos   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4952  1.3  christos   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4953  1.3  christos   lt_cv_file_magic_test_file=/shlib/libc.so
   4954  1.3  christos   ;;
   4955  1.3  christos 
   4956  1.3  christos cygwin*)
   4957  1.3  christos   # func_win32_libid is a shell function defined in ltmain.sh
   4958  1.3  christos   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4959  1.3  christos   lt_cv_file_magic_cmd='func_win32_libid'
   4960  1.3  christos   ;;
   4961  1.3  christos 
   4962  1.3  christos mingw* | pw32*)
   4963  1.3  christos   # Base MSYS/MinGW do not provide the 'file' command needed by
   4964  1.3  christos   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   4965  1.3  christos   # unless we find 'file', for example because we are cross-compiling.
   4966  1.3  christos   if ( file / ) >/dev/null 2>&1; then
   4967  1.3  christos     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4968  1.3  christos     lt_cv_file_magic_cmd='func_win32_libid'
   4969  1.3  christos   else
   4970  1.3  christos     # Keep this pattern in sync with the one in func_win32_libid.
   4971  1.3  christos     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   4972  1.3  christos     lt_cv_file_magic_cmd='$OBJDUMP -f'
   4973  1.3  christos   fi
   4974  1.3  christos   ;;
   4975  1.3  christos 
   4976  1.3  christos cegcc*)
   4977  1.3  christos   # use the weaker test based on 'objdump'. See mingw*.
   4978  1.3  christos   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   4979  1.3  christos   lt_cv_file_magic_cmd='$OBJDUMP -f'
   4980  1.3  christos   ;;
   4981  1.3  christos 
   4982  1.3  christos darwin* | rhapsody*)
   4983  1.3  christos   lt_cv_deplibs_check_method=pass_all
   4984  1.3  christos   ;;
   4985  1.3  christos 
   4986  1.3  christos freebsd* | dragonfly*)
   4987  1.3  christos   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4988  1.3  christos     case $host_cpu in
   4989  1.3  christos     i*86 )
   4990  1.3  christos       # Not sure whether the presence of OpenBSD here was a mistake.
   4991  1.3  christos       # Let's accept both of them until this is cleared up.
   4992  1.3  christos       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   4993  1.3  christos       lt_cv_file_magic_cmd=/usr/bin/file
   4994  1.3  christos       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4995  1.3  christos       ;;
   4996  1.3  christos     esac
   4997  1.3  christos   else
   4998  1.3  christos     lt_cv_deplibs_check_method=pass_all
   4999  1.3  christos   fi
   5000  1.3  christos   ;;
   5001  1.3  christos 
   5002  1.3  christos haiku*)
   5003  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5004  1.3  christos   ;;
   5005  1.3  christos 
   5006  1.3  christos hpux10.20* | hpux11*)
   5007  1.3  christos   lt_cv_file_magic_cmd=/usr/bin/file
   5008  1.3  christos   case $host_cpu in
   5009  1.3  christos   ia64*)
   5010  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'
   5011  1.3  christos     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   5012  1.3  christos     ;;
   5013  1.3  christos   hppa*64*)
   5014  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]'
   5015  1.3  christos     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   5016  1.1  christos     ;;
   5017  1.1  christos   *)
   5018  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'
   5019  1.3  christos     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   5020  1.3  christos     ;;
   5021  1.3  christos   esac
   5022  1.3  christos   ;;
   5023  1.3  christos 
   5024  1.3  christos interix[3-9]*)
   5025  1.3  christos   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   5026  1.3  christos   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   5027  1.3  christos   ;;
   5028  1.3  christos 
   5029  1.3  christos irix5* | irix6* | nonstopux*)
   5030  1.3  christos   case $LD in
   5031  1.3  christos   *-32|*"-32 ") libmagic=32-bit;;
   5032  1.3  christos   *-n32|*"-n32 ") libmagic=N32;;
   5033  1.3  christos   *-64|*"-64 ") libmagic=64-bit;;
   5034  1.3  christos   *) libmagic=never-match;;
   5035  1.3  christos   esac
   5036  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5037  1.3  christos   ;;
   5038  1.3  christos 
   5039  1.3  christos # This must be glibc/ELF.
   5040  1.3  christos linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   5041  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5042  1.3  christos   ;;
   5043  1.3  christos 
   5044  1.3  christos netbsd*)
   5045  1.3  christos   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5046  1.3  christos     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5047  1.3  christos   else
   5048  1.3  christos     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   5049  1.3  christos   fi
   5050  1.3  christos   ;;
   5051  1.3  christos 
   5052  1.3  christos newos6*)
   5053  1.3  christos   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   5054  1.3  christos   lt_cv_file_magic_cmd=/usr/bin/file
   5055  1.3  christos   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   5056  1.3  christos   ;;
   5057  1.3  christos 
   5058  1.3  christos *nto* | *qnx*)
   5059  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5060  1.3  christos   ;;
   5061  1.3  christos 
   5062  1.3  christos openbsd* | bitrig*)
   5063  1.3  christos   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   5064  1.3  christos     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   5065  1.3  christos   else
   5066  1.3  christos     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5067  1.3  christos   fi
   5068  1.3  christos   ;;
   5069  1.3  christos 
   5070  1.3  christos osf3* | osf4* | osf5*)
   5071  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5072  1.3  christos   ;;
   5073  1.3  christos 
   5074  1.3  christos rdos*)
   5075  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5076  1.3  christos   ;;
   5077  1.3  christos 
   5078  1.3  christos solaris*)
   5079  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5080  1.3  christos   ;;
   5081  1.3  christos 
   5082  1.3  christos sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   5083  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5084  1.3  christos   ;;
   5085  1.3  christos 
   5086  1.3  christos sysv4 | sysv4.3*)
   5087  1.3  christos   case $host_vendor in
   5088  1.3  christos   motorola)
   5089  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]'
   5090  1.3  christos     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   5091  1.3  christos     ;;
   5092  1.3  christos   ncr)
   5093  1.3  christos     lt_cv_deplibs_check_method=pass_all
   5094  1.3  christos     ;;
   5095  1.3  christos   sequent)
   5096  1.3  christos     lt_cv_file_magic_cmd='/bin/file'
   5097  1.3  christos     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   5098  1.3  christos     ;;
   5099  1.3  christos   sni)
   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 dynamic lib"
   5102  1.3  christos     lt_cv_file_magic_test_file=/lib/libc.so
   5103  1.3  christos     ;;
   5104  1.3  christos   siemens)
   5105  1.3  christos     lt_cv_deplibs_check_method=pass_all
   5106  1.3  christos     ;;
   5107  1.3  christos   pc)
   5108  1.3  christos     lt_cv_deplibs_check_method=pass_all
   5109  1.1  christos     ;;
   5110  1.1  christos   esac
   5111  1.1  christos   ;;
   5112  1.3  christos 
   5113  1.3  christos tpf*)
   5114  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5115  1.3  christos   ;;
   5116  1.3  christos os2*)
   5117  1.3  christos   lt_cv_deplibs_check_method=pass_all
   5118  1.1  christos   ;;
   5119  1.1  christos esac
   5120  1.1  christos 
   5121  1.1  christos fi
   5122  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   5123  1.3  christos $as_echo "$lt_cv_deplibs_check_method" >&6; }
   5124  1.3  christos 
   5125  1.3  christos file_magic_glob=
   5126  1.3  christos want_nocaseglob=no
   5127  1.3  christos if test "$build" = "$host"; then
   5128  1.3  christos   case $host_os in
   5129  1.3  christos   mingw* | pw32*)
   5130  1.3  christos     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   5131  1.3  christos       want_nocaseglob=yes
   5132  1.3  christos     else
   5133  1.3  christos       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   5134  1.3  christos     fi
   5135  1.3  christos     ;;
   5136  1.3  christos   esac
   5137  1.3  christos fi
   5138  1.3  christos 
   5139  1.3  christos file_magic_cmd=$lt_cv_file_magic_cmd
   5140  1.3  christos deplibs_check_method=$lt_cv_deplibs_check_method
   5141  1.3  christos test -z "$deplibs_check_method" && deplibs_check_method=unknown
   5142  1.3  christos 
   5143  1.3  christos 
   5144  1.3  christos 
   5145  1.3  christos 
   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.1  christos 
   5157  1.1  christos 
   5158  1.1  christos 
   5159  1.1  christos 
   5160  1.1  christos 
   5161  1.1  christos 
   5162  1.1  christos 
   5163  1.1  christos 
   5164  1.1  christos if test -n "$ac_tool_prefix"; then
   5165  1.3  christos   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   5166  1.3  christos set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   5167  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5168  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5169  1.3  christos if ${ac_cv_prog_DLLTOOL+:} false; then :
   5170  1.1  christos   $as_echo_n "(cached) " >&6
   5171  1.1  christos else
   5172  1.3  christos   if test -n "$DLLTOOL"; then
   5173  1.3  christos   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   5174  1.1  christos else
   5175  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5176  1.1  christos for as_dir in $PATH
   5177  1.1  christos do
   5178  1.1  christos   IFS=$as_save_IFS
   5179  1.1  christos   test -z "$as_dir" && as_dir=.
   5180  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5181  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5182  1.3  christos     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   5183  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5184  1.1  christos     break 2
   5185  1.1  christos   fi
   5186  1.1  christos done
   5187  1.1  christos   done
   5188  1.1  christos IFS=$as_save_IFS
   5189  1.1  christos 
   5190  1.1  christos fi
   5191  1.1  christos fi
   5192  1.3  christos DLLTOOL=$ac_cv_prog_DLLTOOL
   5193  1.3  christos if test -n "$DLLTOOL"; then
   5194  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   5195  1.3  christos $as_echo "$DLLTOOL" >&6; }
   5196  1.3  christos else
   5197  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5198  1.3  christos $as_echo "no" >&6; }
   5199  1.3  christos fi
   5200  1.3  christos 
   5201  1.3  christos 
   5202  1.3  christos fi
   5203  1.3  christos if test -z "$ac_cv_prog_DLLTOOL"; then
   5204  1.3  christos   ac_ct_DLLTOOL=$DLLTOOL
   5205  1.3  christos   # Extract the first word of "dlltool", so it can be a program name with args.
   5206  1.3  christos set dummy dlltool; ac_word=$2
   5207  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5208  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5209  1.3  christos if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   5210  1.3  christos   $as_echo_n "(cached) " >&6
   5211  1.3  christos else
   5212  1.3  christos   if test -n "$ac_ct_DLLTOOL"; then
   5213  1.3  christos   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   5214  1.3  christos else
   5215  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5216  1.3  christos for as_dir in $PATH
   5217  1.3  christos do
   5218  1.3  christos   IFS=$as_save_IFS
   5219  1.3  christos   test -z "$as_dir" && as_dir=.
   5220  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5221  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5222  1.3  christos     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   5223  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5224  1.3  christos     break 2
   5225  1.3  christos   fi
   5226  1.3  christos done
   5227  1.3  christos   done
   5228  1.3  christos IFS=$as_save_IFS
   5229  1.3  christos 
   5230  1.3  christos fi
   5231  1.3  christos fi
   5232  1.3  christos ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5233  1.3  christos if test -n "$ac_ct_DLLTOOL"; then
   5234  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5235  1.3  christos $as_echo "$ac_ct_DLLTOOL" >&6; }
   5236  1.3  christos else
   5237  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5238  1.3  christos $as_echo "no" >&6; }
   5239  1.3  christos fi
   5240  1.3  christos 
   5241  1.3  christos   if test "x$ac_ct_DLLTOOL" = x; then
   5242  1.3  christos     DLLTOOL="false"
   5243  1.3  christos   else
   5244  1.3  christos     case $cross_compiling:$ac_tool_warned in
   5245  1.3  christos yes:)
   5246  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5247  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5248  1.3  christos ac_tool_warned=yes ;;
   5249  1.3  christos esac
   5250  1.3  christos     DLLTOOL=$ac_ct_DLLTOOL
   5251  1.3  christos   fi
   5252  1.3  christos else
   5253  1.3  christos   DLLTOOL="$ac_cv_prog_DLLTOOL"
   5254  1.3  christos fi
   5255  1.3  christos 
   5256  1.3  christos test -z "$DLLTOOL" && DLLTOOL=dlltool
   5257  1.3  christos 
   5258  1.3  christos 
   5259  1.3  christos 
   5260  1.3  christos 
   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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5268  1.3  christos $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5269  1.3  christos if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5270  1.3  christos   $as_echo_n "(cached) " >&6
   5271  1.3  christos else
   5272  1.3  christos   lt_cv_sharedlib_from_linklib_cmd='unknown'
   5273  1.3  christos 
   5274  1.3  christos case $host_os in
   5275  1.3  christos cygwin* | mingw* | pw32* | cegcc*)
   5276  1.3  christos   # two different shell functions defined in ltmain.sh;
   5277  1.3  christos   # decide which one to use based on capabilities of $DLLTOOL
   5278  1.3  christos   case `$DLLTOOL --help 2>&1` in
   5279  1.3  christos   *--identify-strict*)
   5280  1.3  christos     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5281  1.3  christos     ;;
   5282  1.3  christos   *)
   5283  1.3  christos     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5284  1.3  christos     ;;
   5285  1.3  christos   esac
   5286  1.3  christos   ;;
   5287  1.3  christos *)
   5288  1.3  christos   # fallback: assume linklib IS sharedlib
   5289  1.3  christos   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   5290  1.3  christos   ;;
   5291  1.3  christos esac
   5292  1.3  christos 
   5293  1.3  christos fi
   5294  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5295  1.3  christos $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5296  1.3  christos sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5297  1.3  christos test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5298  1.3  christos 
   5299  1.3  christos 
   5300  1.3  christos 
   5301  1.3  christos 
   5302  1.3  christos 
   5303  1.3  christos 
   5304  1.3  christos 
   5305  1.3  christos if test -n "$ac_tool_prefix"; then
   5306  1.3  christos   for ac_prog in ar
   5307  1.3  christos   do
   5308  1.3  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5309  1.3  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5310  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5311  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5312  1.3  christos if ${ac_cv_prog_AR+:} false; then :
   5313  1.3  christos   $as_echo_n "(cached) " >&6
   5314  1.3  christos else
   5315  1.3  christos   if test -n "$AR"; then
   5316  1.3  christos   ac_cv_prog_AR="$AR" # Let the user override the test.
   5317  1.3  christos else
   5318  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5319  1.3  christos for as_dir in $PATH
   5320  1.3  christos do
   5321  1.3  christos   IFS=$as_save_IFS
   5322  1.3  christos   test -z "$as_dir" && as_dir=.
   5323  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5324  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5325  1.3  christos     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5326  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5327  1.3  christos     break 2
   5328  1.3  christos   fi
   5329  1.3  christos done
   5330  1.3  christos   done
   5331  1.3  christos IFS=$as_save_IFS
   5332  1.3  christos 
   5333  1.3  christos fi
   5334  1.3  christos fi
   5335  1.3  christos AR=$ac_cv_prog_AR
   5336  1.3  christos if test -n "$AR"; then
   5337  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5338  1.3  christos $as_echo "$AR" >&6; }
   5339  1.1  christos else
   5340  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5341  1.1  christos $as_echo "no" >&6; }
   5342  1.1  christos fi
   5343  1.1  christos 
   5344  1.1  christos 
   5345  1.1  christos     test -n "$AR" && break
   5346  1.1  christos   done
   5347  1.1  christos fi
   5348  1.1  christos if test -z "$AR"; then
   5349  1.1  christos   ac_ct_AR=$AR
   5350  1.1  christos   for ac_prog in ar
   5351  1.1  christos do
   5352  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5353  1.1  christos set dummy $ac_prog; ac_word=$2
   5354  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5355  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5356  1.1  christos if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5357  1.1  christos   $as_echo_n "(cached) " >&6
   5358  1.1  christos else
   5359  1.1  christos   if test -n "$ac_ct_AR"; then
   5360  1.1  christos   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5361  1.1  christos else
   5362  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5363  1.1  christos for as_dir in $PATH
   5364  1.1  christos do
   5365  1.1  christos   IFS=$as_save_IFS
   5366  1.1  christos   test -z "$as_dir" && as_dir=.
   5367  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5368  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5369  1.1  christos     ac_cv_prog_ac_ct_AR="$ac_prog"
   5370  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5371  1.1  christos     break 2
   5372  1.1  christos   fi
   5373  1.1  christos done
   5374  1.1  christos   done
   5375  1.1  christos IFS=$as_save_IFS
   5376  1.1  christos 
   5377  1.1  christos fi
   5378  1.1  christos fi
   5379  1.1  christos ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5380  1.1  christos if test -n "$ac_ct_AR"; then
   5381  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5382  1.1  christos $as_echo "$ac_ct_AR" >&6; }
   5383  1.1  christos else
   5384  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5385  1.1  christos $as_echo "no" >&6; }
   5386  1.1  christos fi
   5387  1.1  christos 
   5388  1.1  christos 
   5389  1.1  christos   test -n "$ac_ct_AR" && break
   5390  1.1  christos done
   5391  1.1  christos 
   5392  1.1  christos   if test "x$ac_ct_AR" = x; then
   5393  1.1  christos     AR="false"
   5394  1.1  christos   else
   5395  1.1  christos     case $cross_compiling:$ac_tool_warned in
   5396  1.1  christos yes:)
   5397  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5398  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5399  1.1  christos ac_tool_warned=yes ;;
   5400  1.1  christos esac
   5401  1.1  christos     AR=$ac_ct_AR
   5402  1.1  christos   fi
   5403  1.1  christos fi
   5404  1.1  christos 
   5405  1.1  christos : ${AR=ar}
   5406  1.1  christos : ${AR_FLAGS=cru}
   5407  1.1  christos 
   5408  1.1  christos 
   5409  1.1  christos 
   5410  1.1  christos 
   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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5419  1.1  christos $as_echo_n "checking for archiver @FILE support... " >&6; }
   5420  1.1  christos if ${lt_cv_ar_at_file+:} false; then :
   5421  1.1  christos   $as_echo_n "(cached) " >&6
   5422  1.1  christos else
   5423  1.1  christos   lt_cv_ar_at_file=no
   5424  1.1  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5425  1.1  christos /* end confdefs.h.  */
   5426  1.1  christos 
   5427  1.1  christos int
   5428  1.1  christos main ()
   5429  1.1  christos {
   5430  1.1  christos 
   5431  1.1  christos   ;
   5432  1.1  christos   return 0;
   5433  1.1  christos }
   5434  1.1  christos _ACEOF
   5435  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   5436  1.1  christos   echo conftest.$ac_objext > conftest.lst
   5437  1.1  christos       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5438  1.1  christos       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5439  1.1  christos   (eval $lt_ar_try) 2>&5
   5440  1.1  christos   ac_status=$?
   5441  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5442  1.1  christos   test $ac_status = 0; }
   5443  1.1  christos       if test 0 -eq "$ac_status"; then
   5444  1.1  christos 	# Ensure the archiver fails upon bogus file names.
   5445  1.1  christos 	rm -f conftest.$ac_objext libconftest.a
   5446  1.1  christos 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5447  1.1  christos   (eval $lt_ar_try) 2>&5
   5448  1.1  christos   ac_status=$?
   5449  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5450  1.1  christos   test $ac_status = 0; }
   5451  1.1  christos 	if test 0 -ne "$ac_status"; then
   5452  1.1  christos           lt_cv_ar_at_file=@
   5453  1.1  christos         fi
   5454  1.1  christos       fi
   5455  1.1  christos       rm -f conftest.* libconftest.a
   5456  1.1  christos 
   5457  1.1  christos fi
   5458  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5459  1.1  christos 
   5460  1.1  christos fi
   5461  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5462  1.1  christos $as_echo "$lt_cv_ar_at_file" >&6; }
   5463  1.1  christos 
   5464  1.1  christos if test no = "$lt_cv_ar_at_file"; then
   5465  1.1  christos   archiver_list_spec=
   5466  1.1  christos else
   5467  1.1  christos   archiver_list_spec=$lt_cv_ar_at_file
   5468  1.1  christos fi
   5469  1.1  christos 
   5470  1.1  christos 
   5471  1.1  christos 
   5472  1.1  christos 
   5473  1.1  christos 
   5474  1.1  christos 
   5475  1.1  christos 
   5476  1.1  christos if test -n "$ac_tool_prefix"; then
   5477  1.1  christos   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5478  1.1  christos set dummy ${ac_tool_prefix}strip; ac_word=$2
   5479  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5480  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5481  1.1  christos if ${ac_cv_prog_STRIP+:} false; then :
   5482  1.1  christos   $as_echo_n "(cached) " >&6
   5483  1.1  christos else
   5484  1.1  christos   if test -n "$STRIP"; then
   5485  1.1  christos   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5486  1.1  christos else
   5487  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5488  1.1  christos for as_dir in $PATH
   5489  1.1  christos do
   5490  1.1  christos   IFS=$as_save_IFS
   5491  1.1  christos   test -z "$as_dir" && as_dir=.
   5492  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5493  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5494  1.1  christos     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5495  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5496  1.1  christos     break 2
   5497  1.1  christos   fi
   5498  1.1  christos done
   5499  1.1  christos   done
   5500  1.1  christos IFS=$as_save_IFS
   5501  1.1  christos 
   5502  1.1  christos fi
   5503  1.1  christos fi
   5504  1.1  christos STRIP=$ac_cv_prog_STRIP
   5505  1.1  christos if test -n "$STRIP"; then
   5506  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5507  1.1  christos $as_echo "$STRIP" >&6; }
   5508  1.1  christos else
   5509  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5510  1.1  christos $as_echo "no" >&6; }
   5511  1.1  christos fi
   5512  1.1  christos 
   5513  1.1  christos 
   5514  1.1  christos fi
   5515  1.1  christos if test -z "$ac_cv_prog_STRIP"; then
   5516  1.1  christos   ac_ct_STRIP=$STRIP
   5517  1.1  christos   # Extract the first word of "strip", so it can be a program name with args.
   5518  1.1  christos set dummy strip; ac_word=$2
   5519  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5520  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5521  1.1  christos if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5522  1.1  christos   $as_echo_n "(cached) " >&6
   5523  1.1  christos else
   5524  1.1  christos   if test -n "$ac_ct_STRIP"; then
   5525  1.1  christos   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5526  1.1  christos else
   5527  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5528  1.1  christos for as_dir in $PATH
   5529  1.1  christos do
   5530  1.1  christos   IFS=$as_save_IFS
   5531  1.1  christos   test -z "$as_dir" && as_dir=.
   5532  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5533  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5534  1.1  christos     ac_cv_prog_ac_ct_STRIP="strip"
   5535  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5536  1.1  christos     break 2
   5537  1.1  christos   fi
   5538  1.1  christos done
   5539  1.1  christos   done
   5540  1.1  christos IFS=$as_save_IFS
   5541  1.1  christos 
   5542  1.1  christos fi
   5543  1.1  christos fi
   5544  1.1  christos ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5545  1.1  christos if test -n "$ac_ct_STRIP"; then
   5546  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5547  1.1  christos $as_echo "$ac_ct_STRIP" >&6; }
   5548  1.1  christos else
   5549  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5550  1.1  christos $as_echo "no" >&6; }
   5551  1.1  christos fi
   5552  1.1  christos 
   5553  1.1  christos   if test "x$ac_ct_STRIP" = x; then
   5554  1.1  christos     STRIP=":"
   5555  1.1  christos   else
   5556  1.1  christos     case $cross_compiling:$ac_tool_warned in
   5557  1.1  christos yes:)
   5558  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5559  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5560  1.1  christos ac_tool_warned=yes ;;
   5561  1.1  christos esac
   5562  1.1  christos     STRIP=$ac_ct_STRIP
   5563  1.1  christos   fi
   5564  1.1  christos else
   5565  1.1  christos   STRIP="$ac_cv_prog_STRIP"
   5566  1.1  christos fi
   5567  1.1  christos 
   5568  1.1  christos test -z "$STRIP" && STRIP=:
   5569  1.1  christos 
   5570  1.1  christos 
   5571  1.1  christos 
   5572  1.1  christos 
   5573  1.1  christos 
   5574  1.1  christos 
   5575  1.1  christos if test -n "$ac_tool_prefix"; then
   5576  1.1  christos   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5577  1.1  christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5578  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5579  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5580  1.1  christos if ${ac_cv_prog_RANLIB+:} false; then :
   5581  1.1  christos   $as_echo_n "(cached) " >&6
   5582  1.1  christos else
   5583  1.1  christos   if test -n "$RANLIB"; then
   5584  1.1  christos   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5585  1.1  christos else
   5586  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5587  1.1  christos for as_dir in $PATH
   5588  1.1  christos do
   5589  1.1  christos   IFS=$as_save_IFS
   5590  1.1  christos   test -z "$as_dir" && as_dir=.
   5591  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5592  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5593  1.1  christos     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5594  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5595  1.1  christos     break 2
   5596  1.1  christos   fi
   5597  1.1  christos done
   5598  1.1  christos   done
   5599  1.1  christos IFS=$as_save_IFS
   5600  1.1  christos 
   5601  1.1  christos fi
   5602  1.1  christos fi
   5603  1.1  christos RANLIB=$ac_cv_prog_RANLIB
   5604  1.1  christos if test -n "$RANLIB"; then
   5605  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5606  1.1  christos $as_echo "$RANLIB" >&6; }
   5607  1.1  christos else
   5608  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5609  1.1  christos $as_echo "no" >&6; }
   5610  1.1  christos fi
   5611  1.1  christos 
   5612  1.1  christos 
   5613  1.1  christos fi
   5614  1.1  christos if test -z "$ac_cv_prog_RANLIB"; then
   5615  1.1  christos   ac_ct_RANLIB=$RANLIB
   5616  1.1  christos   # Extract the first word of "ranlib", so it can be a program name with args.
   5617  1.1  christos set dummy ranlib; ac_word=$2
   5618  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5619  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5620  1.1  christos if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5621  1.1  christos   $as_echo_n "(cached) " >&6
   5622  1.1  christos else
   5623  1.1  christos   if test -n "$ac_ct_RANLIB"; then
   5624  1.1  christos   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5625  1.1  christos else
   5626  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5627  1.1  christos for as_dir in $PATH
   5628  1.1  christos do
   5629  1.1  christos   IFS=$as_save_IFS
   5630  1.1  christos   test -z "$as_dir" && as_dir=.
   5631  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5632  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5633  1.1  christos     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5634  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5635  1.1  christos     break 2
   5636  1.1  christos   fi
   5637  1.1  christos done
   5638  1.1  christos   done
   5639  1.1  christos IFS=$as_save_IFS
   5640  1.1  christos 
   5641  1.1  christos fi
   5642  1.1  christos fi
   5643  1.1  christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5644  1.1  christos if test -n "$ac_ct_RANLIB"; then
   5645  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5646  1.1  christos $as_echo "$ac_ct_RANLIB" >&6; }
   5647  1.1  christos else
   5648  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5649  1.1  christos $as_echo "no" >&6; }
   5650  1.1  christos fi
   5651  1.1  christos 
   5652  1.1  christos   if test "x$ac_ct_RANLIB" = x; then
   5653  1.1  christos     RANLIB=":"
   5654  1.1  christos   else
   5655  1.1  christos     case $cross_compiling:$ac_tool_warned in
   5656  1.1  christos yes:)
   5657  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5658  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5659  1.1  christos ac_tool_warned=yes ;;
   5660  1.1  christos esac
   5661  1.1  christos     RANLIB=$ac_ct_RANLIB
   5662  1.1  christos   fi
   5663  1.1  christos else
   5664  1.1  christos   RANLIB="$ac_cv_prog_RANLIB"
   5665  1.1  christos fi
   5666  1.1  christos 
   5667  1.1  christos test -z "$RANLIB" && RANLIB=:
   5668  1.1  christos 
   5669  1.1  christos 
   5670  1.1  christos 
   5671  1.1  christos 
   5672  1.1  christos 
   5673  1.1  christos 
   5674  1.1  christos # Determine commands to create old-style static archives.
   5675  1.1  christos old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   5676  1.1  christos old_postinstall_cmds='chmod 644 $oldlib'
   5677  1.1  christos old_postuninstall_cmds=
   5678  1.1  christos 
   5679  1.1  christos if test -n "$RANLIB"; then
   5680  1.1  christos   case $host_os in
   5681  1.1  christos   bitrig* | openbsd*)
   5682  1.1  christos     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   5683  1.1  christos     ;;
   5684  1.1  christos   *)
   5685  1.1  christos     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   5686  1.1  christos     ;;
   5687  1.1  christos   esac
   5688  1.1  christos   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   5689  1.1  christos fi
   5690  1.1  christos 
   5691  1.1  christos case $host_os in
   5692  1.1  christos   darwin*)
   5693  1.1  christos     lock_old_archive_extraction=yes ;;
   5694  1.1  christos   *)
   5695  1.1  christos     lock_old_archive_extraction=no ;;
   5696  1.1  christos esac
   5697  1.1  christos 
   5698  1.1  christos 
   5699  1.1  christos 
   5700  1.1  christos 
   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 for ac_prog in gawk mawk nawk awk
   5719  1.1  christos do
   5720  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5721  1.1  christos set dummy $ac_prog; ac_word=$2
   5722  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5723  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   5724  1.1  christos if ${ac_cv_prog_AWK+:} false; then :
   5725  1.1  christos   $as_echo_n "(cached) " >&6
   5726  1.1  christos else
   5727  1.1  christos   if test -n "$AWK"; then
   5728  1.1  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   5729  1.1  christos else
   5730  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5731  1.1  christos for as_dir in $PATH
   5732  1.1  christos do
   5733  1.1  christos   IFS=$as_save_IFS
   5734  1.1  christos   test -z "$as_dir" && as_dir=.
   5735  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5736  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5737  1.1  christos     ac_cv_prog_AWK="$ac_prog"
   5738  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5739  1.1  christos     break 2
   5740  1.1  christos   fi
   5741  1.1  christos done
   5742  1.1  christos   done
   5743  1.1  christos IFS=$as_save_IFS
   5744  1.1  christos 
   5745  1.1  christos fi
   5746  1.1  christos fi
   5747  1.1  christos AWK=$ac_cv_prog_AWK
   5748  1.1  christos if test -n "$AWK"; then
   5749  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   5750  1.1  christos $as_echo "$AWK" >&6; }
   5751  1.1  christos else
   5752  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5753  1.1  christos $as_echo "no" >&6; }
   5754  1.1  christos fi
   5755  1.1  christos 
   5756  1.1  christos 
   5757  1.1  christos   test -n "$AWK" && break
   5758  1.1  christos done
   5759  1.1  christos 
   5760  1.1  christos 
   5761  1.1  christos 
   5762  1.1  christos 
   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 # If no C compiler was specified, use CC.
   5779  1.1  christos LTCC=${LTCC-"$CC"}
   5780  1.1  christos 
   5781  1.1  christos # If no C compiler flags were specified, use CFLAGS.
   5782  1.1  christos LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   5783  1.1  christos 
   5784  1.1  christos # Allow CC to be a program name with arguments.
   5785  1.1  christos compiler=$CC
   5786  1.1  christos 
   5787  1.1  christos 
   5788  1.1  christos # Check for command to grab the raw symbol name followed by C symbol from nm.
   5789  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   5790  1.1  christos $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   5791  1.1  christos if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   5792  1.1  christos   $as_echo_n "(cached) " >&6
   5793  1.1  christos else
   5794  1.1  christos 
   5795  1.1  christos # These are sane defaults that work on at least a few old systems.
   5796  1.1  christos # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5797  1.1  christos 
   5798  1.1  christos # Character class describing NM global symbol codes.
   5799  1.1  christos symcode='[BCDEGRST]'
   5800  1.1  christos 
   5801  1.1  christos # Regexp to match symbols that can be accessed directly from C.
   5802  1.1  christos sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5803  1.1  christos 
   5804  1.1  christos # Define system-specific variables.
   5805  1.1  christos case $host_os in
   5806  1.1  christos aix*)
   5807  1.1  christos   symcode='[BCDT]'
   5808  1.1  christos   ;;
   5809  1.1  christos cygwin* | mingw* | pw32* | cegcc*)
   5810  1.1  christos   symcode='[ABCDGISTW]'
   5811  1.1  christos   ;;
   5812  1.1  christos hpux*)
   5813  1.1  christos   if test ia64 = "$host_cpu"; then
   5814  1.1  christos     symcode='[ABCDEGRST]'
   5815  1.1  christos   fi
   5816  1.1  christos   ;;
   5817  1.1  christos irix* | nonstopux*)
   5818  1.1  christos   symcode='[BCDEGRST]'
   5819  1.1  christos   ;;
   5820  1.1  christos osf*)
   5821  1.1  christos   symcode='[BCDEGQRST]'
   5822  1.1  christos   ;;
   5823  1.1  christos solaris*)
   5824  1.1  christos   symcode='[BDRT]'
   5825  1.1  christos   ;;
   5826  1.1  christos sco3.2v5*)
   5827  1.1  christos   symcode='[DT]'
   5828  1.1  christos   ;;
   5829  1.1  christos sysv4.2uw2*)
   5830  1.1  christos   symcode='[DT]'
   5831  1.1  christos   ;;
   5832  1.1  christos sysv5* | sco5v6* | unixware* | OpenUNIX*)
   5833  1.1  christos   symcode='[ABDT]'
   5834  1.1  christos   ;;
   5835  1.1  christos sysv4)
   5836  1.1  christos   symcode='[DFNSTU]'
   5837  1.1  christos   ;;
   5838  1.1  christos esac
   5839  1.1  christos 
   5840  1.1  christos # If we're using GNU nm, then use its standard symbol codes.
   5841  1.1  christos case `$NM -V 2>&1` in
   5842  1.1  christos *GNU* | *'with BFD'*)
   5843  1.1  christos   symcode='[ABCDGIRSTW]' ;;
   5844  1.1  christos esac
   5845  1.1  christos 
   5846  1.1  christos if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5847  1.1  christos   # Gets list of data symbols to import.
   5848  1.1  christos   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   5849  1.1  christos   # Adjust the below global symbol transforms to fixup imported variables.
   5850  1.1  christos   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   5851  1.1  christos   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   5852  1.1  christos   lt_c_name_lib_hook="\
   5853  1.1  christos   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   5854  1.1  christos   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   5855  1.1  christos else
   5856  1.1  christos   # Disable hooks by default.
   5857  1.1  christos   lt_cv_sys_global_symbol_to_import=
   5858  1.1  christos   lt_cdecl_hook=
   5859  1.1  christos   lt_c_name_hook=
   5860  1.1  christos   lt_c_name_lib_hook=
   5861  1.1  christos fi
   5862  1.1  christos 
   5863  1.1  christos # Transform an extracted symbol line into a proper C declaration.
   5864  1.1  christos # Some systems (esp. on ia64) link data and code symbols differently,
   5865  1.1  christos # so use this general approach.
   5866  1.1  christos lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   5867  1.1  christos $lt_cdecl_hook\
   5868  1.1  christos " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   5869  1.1  christos " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   5870  1.1  christos 
   5871  1.1  christos # Transform an extracted symbol line into symbol name and symbol address
   5872  1.1  christos lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   5873  1.1  christos $lt_c_name_hook\
   5874  1.1  christos " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5875  1.1  christos " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   5876  1.1  christos 
   5877  1.1  christos # Transform an extracted symbol line into symbol name with lib prefix and
   5878  1.1  christos # symbol address.
   5879  1.1  christos lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   5880  1.1  christos $lt_c_name_lib_hook\
   5881  1.1  christos " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5882  1.1  christos " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   5883  1.1  christos " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   5884  1.1  christos 
   5885  1.1  christos # Handle CRLF in mingw tool chain
   5886  1.1  christos opt_cr=
   5887  1.1  christos case $build_os in
   5888  1.1  christos mingw*)
   5889  1.1  christos   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5890  1.1  christos   ;;
   5891  1.1  christos esac
   5892  1.1  christos 
   5893  1.1  christos # Try without a prefix underscore, then with it.
   5894  1.1  christos for ac_symprfx in "" "_"; do
   5895  1.1  christos 
   5896  1.1  christos   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   5897  1.1  christos   symxfrm="\\1 $ac_symprfx\\2 \\2"
   5898  1.1  christos 
   5899  1.1  christos   # Write the raw and C identifiers.
   5900  1.1  christos   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5901  1.1  christos     # Fake it for dumpbin and say T for any non-static function,
   5902  1.1  christos     # D for any global variable and I for any imported variable.
   5903  1.1  christos     # Also find C++ and __fastcall symbols from MSVC++,
   5904  1.1  christos     # which start with @ or ?.
   5905  1.1  christos     lt_cv_sys_global_symbol_pipe="$AWK '"\
   5906  1.1  christos "     {last_section=section; section=\$ 3};"\
   5907  1.1  christos "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   5908  1.1  christos "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   5909  1.1  christos "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   5910  1.1  christos "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   5911  1.1  christos "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   5912  1.1  christos "     \$ 0!~/External *\|/{next};"\
   5913  1.1  christos "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   5914  1.1  christos "     {if(hide[section]) next};"\
   5915  1.1  christos "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   5916  1.1  christos "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   5917  1.1  christos "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   5918  1.1  christos "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   5919  1.1  christos "     ' prfx=^$ac_symprfx"
   5920  1.1  christos   else
   5921  1.1  christos     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   5922  1.1  christos   fi
   5923  1.1  christos   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   5924  1.1  christos 
   5925  1.1  christos   # Check to see that the pipe works correctly.
   5926  1.1  christos   pipe_works=no
   5927  1.1  christos 
   5928  1.1  christos   rm -f conftest*
   5929  1.1  christos   cat > conftest.$ac_ext <<_LT_EOF
   5930  1.1  christos #ifdef __cplusplus
   5931  1.1  christos extern "C" {
   5932  1.1  christos #endif
   5933  1.1  christos char nm_test_var;
   5934  1.1  christos void nm_test_func(void);
   5935  1.1  christos void nm_test_func(void){}
   5936  1.1  christos #ifdef __cplusplus
   5937  1.1  christos }
   5938  1.1  christos #endif
   5939  1.1  christos int main(){nm_test_var='a';nm_test_func();return(0);}
   5940  1.1  christos _LT_EOF
   5941  1.1  christos 
   5942  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5943  1.1  christos   (eval $ac_compile) 2>&5
   5944  1.1  christos   ac_status=$?
   5945  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5946  1.1  christos   test $ac_status = 0; }; then
   5947  1.1  christos     # Now try to grab the symbols.
   5948  1.1  christos     nlist=conftest.nm
   5949  1.1  christos     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   5950  1.1  christos   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   5951  1.1  christos   ac_status=$?
   5952  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5953  1.1  christos   test $ac_status = 0; } && test -s "$nlist"; then
   5954  1.1  christos       # Try sorting and uniquifying the output.
   5955  1.1  christos       if sort "$nlist" | uniq > "$nlist"T; then
   5956  1.1  christos 	mv -f "$nlist"T "$nlist"
   5957  1.1  christos       else
   5958  1.1  christos 	rm -f "$nlist"T
   5959  1.1  christos       fi
   5960  1.1  christos 
   5961  1.1  christos       # Make sure that we snagged all the symbols we need.
   5962  1.1  christos       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   5963  1.1  christos 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   5964  1.1  christos 	  cat <<_LT_EOF > conftest.$ac_ext
   5965  1.1  christos /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   5966  1.1  christos #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   5967  1.1  christos /* DATA imports from DLLs on WIN32 can't be const, because runtime
   5968  1.1  christos    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   5969  1.1  christos # define LT_DLSYM_CONST
   5970  1.1  christos #elif defined __osf__
   5971  1.1  christos /* This system does not cope well with relocations in const data.  */
   5972  1.1  christos # define LT_DLSYM_CONST
   5973  1.1  christos #else
   5974  1.1  christos # define LT_DLSYM_CONST const
   5975  1.1  christos #endif
   5976  1.1  christos 
   5977  1.1  christos #ifdef __cplusplus
   5978  1.1  christos extern "C" {
   5979  1.1  christos #endif
   5980  1.1  christos 
   5981  1.1  christos _LT_EOF
   5982  1.1  christos 	  # Now generate the symbol file.
   5983  1.1  christos 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   5984  1.1  christos 
   5985  1.1  christos 	  cat <<_LT_EOF >> conftest.$ac_ext
   5986  1.1  christos 
   5987  1.1  christos /* The mapping between symbol names and symbols.  */
   5988  1.1  christos LT_DLSYM_CONST struct {
   5989  1.1  christos   const char *name;
   5990  1.1  christos   void       *address;
   5991  1.1  christos }
   5992  1.1  christos lt__PROGRAM__LTX_preloaded_symbols[] =
   5993  1.1  christos {
   5994  1.1  christos   { "@PROGRAM@", (void *) 0 },
   5995  1.1  christos _LT_EOF
   5996  1.1  christos 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   5997  1.1  christos 	  cat <<\_LT_EOF >> conftest.$ac_ext
   5998  1.1  christos   {0, (void *) 0}
   5999  1.1  christos };
   6000  1.1  christos 
   6001  1.1  christos /* This works around a problem in FreeBSD linker */
   6002  1.1  christos #ifdef FREEBSD_WORKAROUND
   6003  1.1  christos static const void *lt_preloaded_setup() {
   6004  1.1  christos   return lt__PROGRAM__LTX_preloaded_symbols;
   6005  1.1  christos }
   6006  1.1  christos #endif
   6007  1.1  christos 
   6008  1.1  christos #ifdef __cplusplus
   6009  1.1  christos }
   6010  1.1  christos #endif
   6011  1.1  christos _LT_EOF
   6012  1.1  christos 	  # Now try linking the two files.
   6013  1.1  christos 	  mv conftest.$ac_objext conftstm.$ac_objext
   6014  1.1  christos 	  lt_globsym_save_LIBS=$LIBS
   6015  1.1  christos 	  lt_globsym_save_CFLAGS=$CFLAGS
   6016  1.1  christos 	  LIBS=conftstm.$ac_objext
   6017  1.1  christos 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   6018  1.1  christos 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   6019  1.1  christos   (eval $ac_link) 2>&5
   6020  1.1  christos   ac_status=$?
   6021  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6022  1.1  christos   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   6023  1.1  christos 	    pipe_works=yes
   6024  1.1  christos 	  fi
   6025  1.1  christos 	  LIBS=$lt_globsym_save_LIBS
   6026  1.1  christos 	  CFLAGS=$lt_globsym_save_CFLAGS
   6027  1.1  christos 	else
   6028  1.1  christos 	  echo "cannot find nm_test_func in $nlist" >&5
   6029  1.1  christos 	fi
   6030  1.1  christos       else
   6031  1.1  christos 	echo "cannot find nm_test_var in $nlist" >&5
   6032  1.1  christos       fi
   6033  1.1  christos     else
   6034  1.1  christos       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   6035  1.1  christos     fi
   6036  1.1  christos   else
   6037  1.1  christos     echo "$progname: failed program was:" >&5
   6038  1.1  christos     cat conftest.$ac_ext >&5
   6039  1.1  christos   fi
   6040  1.1  christos   rm -rf conftest* conftst*
   6041  1.1  christos 
   6042  1.1  christos   # Do not use the global_symbol_pipe unless it works.
   6043  1.1  christos   if test yes = "$pipe_works"; then
   6044  1.1  christos     break
   6045  1.1  christos   else
   6046  1.1  christos     lt_cv_sys_global_symbol_pipe=
   6047  1.1  christos   fi
   6048  1.1  christos done
   6049  1.1  christos 
   6050  1.1  christos fi
   6051  1.1  christos 
   6052  1.1  christos if test -z "$lt_cv_sys_global_symbol_pipe"; then
   6053  1.1  christos   lt_cv_sys_global_symbol_to_cdecl=
   6054  1.1  christos fi
   6055  1.1  christos if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   6056  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6057  1.1  christos $as_echo "failed" >&6; }
   6058  1.1  christos else
   6059  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   6060  1.1  christos $as_echo "ok" >&6; }
   6061  1.1  christos fi
   6062  1.1  christos 
   6063  1.1  christos # Response file support.
   6064  1.1  christos if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6065  1.1  christos   nm_file_list_spec='@'
   6066  1.1  christos elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   6067  1.1  christos   nm_file_list_spec='@'
   6068  1.1  christos fi
   6069  1.1  christos 
   6070  1.1  christos 
   6071  1.1  christos 
   6072  1.1  christos 
   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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   6107  1.1  christos $as_echo_n "checking for sysroot... " >&6; }
   6108  1.1  christos 
   6109  1.1  christos # Check whether --with-sysroot was given.
   6110  1.1  christos if test "${with_sysroot+set}" = set; then :
   6111  1.1  christos   withval=$with_sysroot;
   6112  1.1  christos else
   6113  1.1  christos   with_sysroot=no
   6114  1.1  christos fi
   6115  1.1  christos 
   6116  1.1  christos 
   6117  1.1  christos lt_sysroot=
   6118  1.1  christos case $with_sysroot in #(
   6119  1.1  christos  yes)
   6120  1.1  christos    if test yes = "$GCC"; then
   6121  1.1  christos      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6122  1.1  christos    fi
   6123  1.1  christos    ;; #(
   6124  1.1  christos  /*)
   6125  1.1  christos    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6126  1.1  christos    ;; #(
   6127  1.1  christos  no|'')
   6128  1.1  christos    ;; #(
   6129  1.1  christos  *)
   6130  1.1  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   6131  1.1  christos $as_echo "$with_sysroot" >&6; }
   6132  1.1  christos    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   6133  1.1  christos    ;;
   6134  1.1  christos esac
   6135  1.1  christos 
   6136  1.1  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   6137  1.1  christos $as_echo "${lt_sysroot:-no}" >&6; }
   6138  1.1  christos 
   6139  1.1  christos 
   6140  1.1  christos 
   6141  1.1  christos 
   6142  1.1  christos 
   6143  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   6144  1.1  christos $as_echo_n "checking for a working dd... " >&6; }
   6145  1.1  christos if ${ac_cv_path_lt_DD+:} false; then :
   6146  1.1  christos   $as_echo_n "(cached) " >&6
   6147  1.1  christos else
   6148  1.1  christos   printf 0123456789abcdef0123456789abcdef >conftest.i
   6149  1.1  christos cat conftest.i conftest.i >conftest2.i
   6150  1.1  christos : ${lt_DD:=$DD}
   6151  1.1  christos if test -z "$lt_DD"; then
   6152  1.1  christos   ac_path_lt_DD_found=false
   6153  1.1  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   6154  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6155  1.1  christos for as_dir in $PATH
   6156  1.1  christos do
   6157  1.1  christos   IFS=$as_save_IFS
   6158  1.1  christos   test -z "$as_dir" && as_dir=.
   6159  1.1  christos     for ac_prog in dd; do
   6160  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6161  1.1  christos       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   6162  1.1  christos       as_fn_executable_p "$ac_path_lt_DD" || continue
   6163  1.1  christos if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6164  1.1  christos   cmp -s conftest.i conftest.out \
   6165  1.1  christos   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   6166  1.1  christos fi
   6167  1.1  christos       $ac_path_lt_DD_found && break 3
   6168  1.1  christos     done
   6169  1.1  christos   done
   6170  1.1  christos   done
   6171  1.1  christos IFS=$as_save_IFS
   6172  1.1  christos   if test -z "$ac_cv_path_lt_DD"; then
   6173  1.1  christos     :
   6174  1.1  christos   fi
   6175  1.1  christos else
   6176  1.1  christos   ac_cv_path_lt_DD=$lt_DD
   6177  1.1  christos fi
   6178  1.1  christos 
   6179  1.1  christos rm -f conftest.i conftest2.i conftest.out
   6180  1.1  christos fi
   6181  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   6182  1.1  christos $as_echo "$ac_cv_path_lt_DD" >&6; }
   6183  1.1  christos 
   6184  1.1  christos 
   6185  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   6186  1.1  christos $as_echo_n "checking how to truncate binary pipes... " >&6; }
   6187  1.1  christos if ${lt_cv_truncate_bin+:} false; then :
   6188  1.1  christos   $as_echo_n "(cached) " >&6
   6189  1.1  christos else
   6190  1.1  christos   printf 0123456789abcdef0123456789abcdef >conftest.i
   6191  1.1  christos cat conftest.i conftest.i >conftest2.i
   6192  1.1  christos lt_cv_truncate_bin=
   6193  1.1  christos if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6194  1.1  christos   cmp -s conftest.i conftest.out \
   6195  1.1  christos   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   6196  1.1  christos fi
   6197  1.1  christos rm -f conftest.i conftest2.i conftest.out
   6198  1.1  christos test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   6199  1.1  christos fi
   6200  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   6201  1.1  christos $as_echo "$lt_cv_truncate_bin" >&6; }
   6202  1.1  christos 
   6203  1.1  christos 
   6204  1.1  christos 
   6205  1.1  christos 
   6206  1.1  christos 
   6207  1.1  christos 
   6208  1.1  christos 
   6209  1.1  christos # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   6210  1.1  christos func_cc_basename ()
   6211  1.1  christos {
   6212  1.1  christos     for cc_temp in $*""; do
   6213  1.1  christos       case $cc_temp in
   6214  1.1  christos         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   6215  1.1  christos         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   6216  1.1  christos         \-*) ;;
   6217  1.1  christos         *) break;;
   6218  1.1  christos       esac
   6219  1.1  christos     done
   6220  1.1  christos     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   6221  1.1  christos }
   6222  1.1  christos 
   6223  1.1  christos # Check whether --enable-libtool-lock was given.
   6224  1.1  christos if test "${enable_libtool_lock+set}" = set; then :
   6225  1.1  christos   enableval=$enable_libtool_lock;
   6226  1.1  christos fi
   6227  1.1  christos 
   6228  1.1  christos test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   6229  1.1  christos 
   6230  1.1  christos # Some flags need to be propagated to the compiler or linker for good
   6231  1.1  christos # libtool support.
   6232  1.1  christos case $host in
   6233  1.1  christos ia64-*-hpux*)
   6234  1.1  christos   # Find out what ABI is being produced by ac_compile, and set mode
   6235  1.1  christos   # options accordingly.
   6236  1.1  christos   echo 'int i;' > conftest.$ac_ext
   6237  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6238  1.1  christos   (eval $ac_compile) 2>&5
   6239  1.1  christos   ac_status=$?
   6240  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6241  1.1  christos   test $ac_status = 0; }; then
   6242  1.1  christos     case `/usr/bin/file conftest.$ac_objext` in
   6243  1.1  christos       *ELF-32*)
   6244  1.1  christos 	HPUX_IA64_MODE=32
   6245  1.1  christos 	;;
   6246  1.1  christos       *ELF-64*)
   6247  1.1  christos 	HPUX_IA64_MODE=64
   6248  1.1  christos 	;;
   6249  1.1  christos     esac
   6250  1.1  christos   fi
   6251  1.1  christos   rm -rf conftest*
   6252  1.1  christos   ;;
   6253  1.1  christos *-*-irix6*)
   6254  1.1  christos   # Find out what ABI is being produced by ac_compile, and set linker
   6255  1.1  christos   # options accordingly.
   6256  1.1  christos   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6257  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6258  1.1  christos   (eval $ac_compile) 2>&5
   6259  1.1  christos   ac_status=$?
   6260  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6261  1.1  christos   test $ac_status = 0; }; then
   6262  1.1  christos     if test yes = "$lt_cv_prog_gnu_ld"; then
   6263  1.1  christos       case `/usr/bin/file conftest.$ac_objext` in
   6264  1.1  christos 	*32-bit*)
   6265  1.1  christos 	  LD="${LD-ld} -melf32bsmip"
   6266  1.1  christos 	  ;;
   6267  1.1  christos 	*N32*)
   6268  1.1  christos 	  LD="${LD-ld} -melf32bmipn32"
   6269  1.1  christos 	  ;;
   6270  1.1  christos 	*64-bit*)
   6271  1.1  christos 	  LD="${LD-ld} -melf64bmip"
   6272  1.1  christos 	;;
   6273  1.1  christos       esac
   6274  1.1  christos     else
   6275  1.1  christos       case `/usr/bin/file conftest.$ac_objext` in
   6276  1.1  christos 	*32-bit*)
   6277  1.1  christos 	  LD="${LD-ld} -32"
   6278  1.1  christos 	  ;;
   6279  1.1  christos 	*N32*)
   6280  1.1  christos 	  LD="${LD-ld} -n32"
   6281  1.1  christos 	  ;;
   6282  1.1  christos 	*64-bit*)
   6283  1.1  christos 	  LD="${LD-ld} -64"
   6284  1.1  christos 	  ;;
   6285  1.1  christos       esac
   6286  1.1  christos     fi
   6287  1.1  christos   fi
   6288  1.1  christos   rm -rf conftest*
   6289  1.1  christos   ;;
   6290  1.1  christos 
   6291  1.1  christos mips64*-*linux*)
   6292  1.1  christos   # Find out what ABI is being produced by ac_compile, and set linker
   6293  1.1  christos   # options accordingly.
   6294  1.1  christos   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6295  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6296  1.1  christos   (eval $ac_compile) 2>&5
   6297  1.1  christos   ac_status=$?
   6298  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6299  1.1  christos   test $ac_status = 0; }; then
   6300  1.1  christos     emul=elf
   6301  1.1  christos     case `/usr/bin/file conftest.$ac_objext` in
   6302  1.1  christos       *32-bit*)
   6303  1.1  christos 	emul="${emul}32"
   6304  1.1  christos 	;;
   6305  1.1  christos       *64-bit*)
   6306  1.1  christos 	emul="${emul}64"
   6307  1.1  christos 	;;
   6308  1.1  christos     esac
   6309  1.1  christos     case `/usr/bin/file conftest.$ac_objext` in
   6310  1.1  christos       *MSB*)
   6311  1.1  christos 	emul="${emul}btsmip"
   6312  1.1  christos 	;;
   6313  1.1  christos       *LSB*)
   6314  1.1  christos 	emul="${emul}ltsmip"
   6315  1.1  christos 	;;
   6316  1.1  christos     esac
   6317  1.1  christos     case `/usr/bin/file conftest.$ac_objext` in
   6318  1.1  christos       *N32*)
   6319  1.1  christos 	emul="${emul}n32"
   6320  1.1  christos 	;;
   6321  1.1  christos     esac
   6322  1.1  christos     LD="${LD-ld} -m $emul"
   6323  1.1  christos   fi
   6324  1.1  christos   rm -rf conftest*
   6325  1.1  christos   ;;
   6326  1.1  christos 
   6327  1.1  christos x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   6328  1.1  christos s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   6329  1.1  christos   # Find out what ABI is being produced by ac_compile, and set linker
   6330  1.1  christos   # options accordingly.  Note that the listed cases only cover the
   6331  1.1  christos   # situations where additional linker options are needed (such as when
   6332  1.1  christos   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   6333  1.1  christos   # vice versa); the common cases where no linker options are needed do
   6334  1.1  christos   # not appear in the list.
   6335  1.1  christos   echo 'int i;' > conftest.$ac_ext
   6336  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6337  1.1  christos   (eval $ac_compile) 2>&5
   6338  1.1  christos   ac_status=$?
   6339  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6340  1.1  christos   test $ac_status = 0; }; then
   6341  1.1  christos     case `/usr/bin/file conftest.o` in
   6342  1.1  christos       *32-bit*)
   6343  1.1  christos 	case $host in
   6344  1.1  christos 	  x86_64-*kfreebsd*-gnu)
   6345  1.1  christos 	    LD="${LD-ld} -m elf_i386_fbsd"
   6346  1.1  christos 	    ;;
   6347  1.1  christos 	  x86_64-*linux*)
   6348  1.1  christos 	    case `/usr/bin/file conftest.o` in
   6349  1.1  christos 	      *x86-64*)
   6350  1.1  christos 		LD="${LD-ld} -m elf32_x86_64"
   6351  1.1  christos 		;;
   6352  1.1  christos 	      *)
   6353  1.1  christos 		LD="${LD-ld} -m elf_i386"
   6354  1.1  christos 		;;
   6355  1.1  christos 	    esac
   6356  1.1  christos 	    ;;
   6357  1.1  christos 	  powerpc64le-*linux*)
   6358  1.1  christos 	    LD="${LD-ld} -m elf32lppclinux"
   6359  1.1  christos 	    ;;
   6360  1.1  christos 	  powerpc64-*linux*)
   6361  1.1  christos 	    LD="${LD-ld} -m elf32ppclinux"
   6362  1.1  christos 	    ;;
   6363  1.1  christos 	  s390x-*linux*)
   6364  1.1  christos 	    LD="${LD-ld} -m elf_s390"
   6365  1.1  christos 	    ;;
   6366  1.1  christos 	  sparc64-*linux*)
   6367  1.1  christos 	    LD="${LD-ld} -m elf32_sparc"
   6368  1.1  christos 	    ;;
   6369  1.1  christos 	esac
   6370  1.1  christos 	;;
   6371  1.1  christos       *64-bit*)
   6372  1.1  christos 	case $host in
   6373  1.1  christos 	  x86_64-*kfreebsd*-gnu)
   6374  1.1  christos 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   6375  1.1  christos 	    ;;
   6376  1.1  christos 	  x86_64-*linux*)
   6377  1.1  christos 	    LD="${LD-ld} -m elf_x86_64"
   6378  1.1  christos 	    ;;
   6379  1.1  christos 	  powerpcle-*linux*)
   6380  1.1  christos 	    LD="${LD-ld} -m elf64lppc"
   6381  1.1  christos 	    ;;
   6382  1.1  christos 	  powerpc-*linux*)
   6383  1.1  christos 	    LD="${LD-ld} -m elf64ppc"
   6384  1.1  christos 	    ;;
   6385  1.1  christos 	  s390*-*linux*|s390*-*tpf*)
   6386  1.1  christos 	    LD="${LD-ld} -m elf64_s390"
   6387  1.1  christos 	    ;;
   6388  1.1  christos 	  sparc*-*linux*)
   6389  1.1  christos 	    LD="${LD-ld} -m elf64_sparc"
   6390  1.1  christos 	    ;;
   6391  1.1  christos 	esac
   6392  1.1  christos 	;;
   6393  1.1  christos     esac
   6394  1.1  christos   fi
   6395  1.1  christos   rm -rf conftest*
   6396  1.1  christos   ;;
   6397  1.1  christos 
   6398  1.1  christos *-*-sco3.2v5*)
   6399  1.1  christos   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   6400  1.1  christos   SAVE_CFLAGS=$CFLAGS
   6401  1.1  christos   CFLAGS="$CFLAGS -belf"
   6402  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   6403  1.1  christos $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   6404  1.1  christos if ${lt_cv_cc_needs_belf+:} false; then :
   6405  1.1  christos   $as_echo_n "(cached) " >&6
   6406  1.1  christos else
   6407  1.1  christos   ac_ext=c
   6408  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6409  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6410  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6411  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6412  1.1  christos 
   6413  1.1  christos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6414  1.1  christos /* end confdefs.h.  */
   6415  1.1  christos 
   6416  1.1  christos int
   6417  1.1  christos main ()
   6418  1.1  christos {
   6419  1.1  christos 
   6420  1.1  christos   ;
   6421  1.1  christos   return 0;
   6422  1.1  christos }
   6423  1.1  christos _ACEOF
   6424  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   6425  1.1  christos   lt_cv_cc_needs_belf=yes
   6426  1.1  christos else
   6427  1.1  christos   lt_cv_cc_needs_belf=no
   6428  1.1  christos fi
   6429  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   6430  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   6431  1.1  christos      ac_ext=c
   6432  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6433  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6434  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6435  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6436  1.1  christos 
   6437  1.1  christos fi
   6438  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6439  1.1  christos $as_echo "$lt_cv_cc_needs_belf" >&6; }
   6440  1.1  christos   if test yes != "$lt_cv_cc_needs_belf"; then
   6441  1.1  christos     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6442  1.1  christos     CFLAGS=$SAVE_CFLAGS
   6443  1.1  christos   fi
   6444  1.1  christos   ;;
   6445  1.1  christos *-*solaris*)
   6446  1.1  christos   # Find out what ABI is being produced by ac_compile, and set linker
   6447  1.1  christos   # options accordingly.
   6448  1.1  christos   echo 'int i;' > conftest.$ac_ext
   6449  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6450  1.1  christos   (eval $ac_compile) 2>&5
   6451  1.1  christos   ac_status=$?
   6452  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6453  1.1  christos   test $ac_status = 0; }; then
   6454  1.1  christos     case `/usr/bin/file conftest.o` in
   6455  1.1  christos     *64-bit*)
   6456  1.1  christos       case $lt_cv_prog_gnu_ld in
   6457  1.1  christos       yes*)
   6458  1.1  christos         case $host in
   6459  1.1  christos         i?86-*-solaris*|x86_64-*-solaris*)
   6460  1.1  christos           LD="${LD-ld} -m elf_x86_64"
   6461  1.1  christos           ;;
   6462  1.1  christos         sparc*-*-solaris*)
   6463  1.1  christos           LD="${LD-ld} -m elf64_sparc"
   6464  1.1  christos           ;;
   6465  1.1  christos         esac
   6466  1.1  christos         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6467  1.1  christos         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6468  1.1  christos           LD=${LD-ld}_sol2
   6469  1.1  christos         fi
   6470  1.1  christos         ;;
   6471  1.1  christos       *)
   6472  1.1  christos 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6473  1.1  christos 	  LD="${LD-ld} -64"
   6474  1.1  christos 	fi
   6475  1.1  christos 	;;
   6476  1.1  christos       esac
   6477  1.1  christos       ;;
   6478  1.1  christos     esac
   6479  1.1  christos   fi
   6480  1.1  christos   rm -rf conftest*
   6481  1.1  christos   ;;
   6482  1.1  christos esac
   6483  1.1  christos 
   6484  1.1  christos need_locks=$enable_libtool_lock
   6485  1.1  christos 
   6486  1.1  christos if test -n "$ac_tool_prefix"; then
   6487  1.1  christos   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6488  1.1  christos set dummy ${ac_tool_prefix}mt; ac_word=$2
   6489  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6490  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6491  1.1  christos if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6492  1.1  christos   $as_echo_n "(cached) " >&6
   6493  1.1  christos else
   6494  1.1  christos   if test -n "$MANIFEST_TOOL"; then
   6495  1.1  christos   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6496  1.1  christos else
   6497  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6498  1.1  christos for as_dir in $PATH
   6499  1.1  christos do
   6500  1.1  christos   IFS=$as_save_IFS
   6501  1.1  christos   test -z "$as_dir" && as_dir=.
   6502  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6503  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6504  1.1  christos     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6505  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6506  1.1  christos     break 2
   6507  1.1  christos   fi
   6508  1.1  christos done
   6509  1.1  christos   done
   6510  1.1  christos IFS=$as_save_IFS
   6511  1.1  christos 
   6512  1.1  christos fi
   6513  1.1  christos fi
   6514  1.1  christos MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6515  1.1  christos if test -n "$MANIFEST_TOOL"; then
   6516  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6517  1.1  christos $as_echo "$MANIFEST_TOOL" >&6; }
   6518  1.1  christos else
   6519  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6520  1.1  christos $as_echo "no" >&6; }
   6521  1.1  christos fi
   6522  1.1  christos 
   6523  1.1  christos 
   6524  1.1  christos fi
   6525  1.1  christos if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6526  1.1  christos   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6527  1.1  christos   # Extract the first word of "mt", so it can be a program name with args.
   6528  1.1  christos set dummy mt; ac_word=$2
   6529  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6530  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6531  1.1  christos if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6532  1.1  christos   $as_echo_n "(cached) " >&6
   6533  1.1  christos else
   6534  1.1  christos   if test -n "$ac_ct_MANIFEST_TOOL"; then
   6535  1.1  christos   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6536  1.1  christos else
   6537  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6538  1.1  christos for as_dir in $PATH
   6539  1.1  christos do
   6540  1.1  christos   IFS=$as_save_IFS
   6541  1.1  christos   test -z "$as_dir" && as_dir=.
   6542  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6543  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6544  1.1  christos     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6545  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6546  1.1  christos     break 2
   6547  1.1  christos   fi
   6548  1.1  christos done
   6549  1.1  christos   done
   6550  1.1  christos IFS=$as_save_IFS
   6551  1.1  christos 
   6552  1.1  christos fi
   6553  1.1  christos fi
   6554  1.1  christos ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6555  1.1  christos if test -n "$ac_ct_MANIFEST_TOOL"; then
   6556  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6557  1.1  christos $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6558  1.1  christos else
   6559  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6560  1.1  christos $as_echo "no" >&6; }
   6561  1.1  christos fi
   6562  1.1  christos 
   6563  1.1  christos   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6564  1.1  christos     MANIFEST_TOOL=":"
   6565  1.1  christos   else
   6566  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6567  1.1  christos yes:)
   6568  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6569  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6570  1.1  christos ac_tool_warned=yes ;;
   6571  1.1  christos esac
   6572  1.1  christos     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6573  1.1  christos   fi
   6574  1.1  christos else
   6575  1.1  christos   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6576  1.1  christos fi
   6577  1.1  christos 
   6578  1.1  christos test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6579  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6580  1.1  christos $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6581  1.1  christos if ${lt_cv_path_mainfest_tool+:} false; then :
   6582  1.1  christos   $as_echo_n "(cached) " >&6
   6583  1.1  christos else
   6584  1.1  christos   lt_cv_path_mainfest_tool=no
   6585  1.1  christos   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6586  1.1  christos   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6587  1.1  christos   cat conftest.err >&5
   6588  1.1  christos   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   6589  1.1  christos     lt_cv_path_mainfest_tool=yes
   6590  1.1  christos   fi
   6591  1.1  christos   rm -f conftest*
   6592  1.1  christos fi
   6593  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   6594  1.1  christos $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   6595  1.1  christos if test yes != "$lt_cv_path_mainfest_tool"; then
   6596  1.1  christos   MANIFEST_TOOL=:
   6597  1.1  christos fi
   6598  1.1  christos 
   6599  1.1  christos 
   6600  1.1  christos 
   6601  1.1  christos 
   6602  1.1  christos 
   6603  1.1  christos 
   6604  1.1  christos   case $host_os in
   6605  1.1  christos     rhapsody* | darwin*)
   6606  1.1  christos     if test -n "$ac_tool_prefix"; then
   6607  1.1  christos   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   6608  1.1  christos set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   6609  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6610  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6611  1.1  christos if ${ac_cv_prog_DSYMUTIL+:} false; then :
   6612  1.1  christos   $as_echo_n "(cached) " >&6
   6613  1.1  christos else
   6614  1.1  christos   if test -n "$DSYMUTIL"; then
   6615  1.1  christos   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   6616  1.1  christos else
   6617  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6618  1.1  christos for as_dir in $PATH
   6619  1.1  christos do
   6620  1.1  christos   IFS=$as_save_IFS
   6621  1.1  christos   test -z "$as_dir" && as_dir=.
   6622  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6623  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6624  1.1  christos     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   6625  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6626  1.1  christos     break 2
   6627  1.1  christos   fi
   6628  1.1  christos done
   6629  1.1  christos   done
   6630  1.1  christos IFS=$as_save_IFS
   6631  1.1  christos 
   6632  1.1  christos fi
   6633  1.1  christos fi
   6634  1.1  christos DSYMUTIL=$ac_cv_prog_DSYMUTIL
   6635  1.1  christos if test -n "$DSYMUTIL"; then
   6636  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   6637  1.1  christos $as_echo "$DSYMUTIL" >&6; }
   6638  1.1  christos else
   6639  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6640  1.1  christos $as_echo "no" >&6; }
   6641  1.1  christos fi
   6642  1.1  christos 
   6643  1.1  christos 
   6644  1.1  christos fi
   6645  1.1  christos if test -z "$ac_cv_prog_DSYMUTIL"; then
   6646  1.1  christos   ac_ct_DSYMUTIL=$DSYMUTIL
   6647  1.1  christos   # Extract the first word of "dsymutil", so it can be a program name with args.
   6648  1.1  christos set dummy dsymutil; ac_word=$2
   6649  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6650  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6651  1.1  christos if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   6652  1.1  christos   $as_echo_n "(cached) " >&6
   6653  1.1  christos else
   6654  1.1  christos   if test -n "$ac_ct_DSYMUTIL"; then
   6655  1.1  christos   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   6656  1.1  christos else
   6657  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6658  1.1  christos for as_dir in $PATH
   6659  1.1  christos do
   6660  1.1  christos   IFS=$as_save_IFS
   6661  1.1  christos   test -z "$as_dir" && as_dir=.
   6662  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6663  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6664  1.1  christos     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   6665  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6666  1.1  christos     break 2
   6667  1.1  christos   fi
   6668  1.1  christos done
   6669  1.1  christos   done
   6670  1.1  christos IFS=$as_save_IFS
   6671  1.1  christos 
   6672  1.1  christos fi
   6673  1.1  christos fi
   6674  1.1  christos ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   6675  1.1  christos if test -n "$ac_ct_DSYMUTIL"; then
   6676  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   6677  1.1  christos $as_echo "$ac_ct_DSYMUTIL" >&6; }
   6678  1.1  christos else
   6679  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6680  1.1  christos $as_echo "no" >&6; }
   6681  1.1  christos fi
   6682  1.1  christos 
   6683  1.1  christos   if test "x$ac_ct_DSYMUTIL" = x; then
   6684  1.1  christos     DSYMUTIL=":"
   6685  1.1  christos   else
   6686  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6687  1.1  christos yes:)
   6688  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6689  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6690  1.1  christos ac_tool_warned=yes ;;
   6691  1.1  christos esac
   6692  1.1  christos     DSYMUTIL=$ac_ct_DSYMUTIL
   6693  1.1  christos   fi
   6694  1.1  christos else
   6695  1.1  christos   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   6696  1.1  christos fi
   6697  1.1  christos 
   6698  1.1  christos     if test -n "$ac_tool_prefix"; then
   6699  1.1  christos   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   6700  1.1  christos set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   6701  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6702  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6703  1.1  christos if ${ac_cv_prog_NMEDIT+:} false; then :
   6704  1.1  christos   $as_echo_n "(cached) " >&6
   6705  1.1  christos else
   6706  1.1  christos   if test -n "$NMEDIT"; then
   6707  1.1  christos   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   6708  1.1  christos else
   6709  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6710  1.1  christos for as_dir in $PATH
   6711  1.1  christos do
   6712  1.1  christos   IFS=$as_save_IFS
   6713  1.1  christos   test -z "$as_dir" && as_dir=.
   6714  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6715  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6716  1.1  christos     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   6717  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6718  1.1  christos     break 2
   6719  1.1  christos   fi
   6720  1.1  christos done
   6721  1.1  christos   done
   6722  1.1  christos IFS=$as_save_IFS
   6723  1.1  christos 
   6724  1.1  christos fi
   6725  1.1  christos fi
   6726  1.1  christos NMEDIT=$ac_cv_prog_NMEDIT
   6727  1.1  christos if test -n "$NMEDIT"; then
   6728  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   6729  1.1  christos $as_echo "$NMEDIT" >&6; }
   6730  1.1  christos else
   6731  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6732  1.1  christos $as_echo "no" >&6; }
   6733  1.1  christos fi
   6734  1.1  christos 
   6735  1.1  christos 
   6736  1.1  christos fi
   6737  1.1  christos if test -z "$ac_cv_prog_NMEDIT"; then
   6738  1.1  christos   ac_ct_NMEDIT=$NMEDIT
   6739  1.1  christos   # Extract the first word of "nmedit", so it can be a program name with args.
   6740  1.1  christos set dummy nmedit; ac_word=$2
   6741  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6742  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6743  1.1  christos if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   6744  1.1  christos   $as_echo_n "(cached) " >&6
   6745  1.1  christos else
   6746  1.1  christos   if test -n "$ac_ct_NMEDIT"; then
   6747  1.1  christos   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   6748  1.1  christos else
   6749  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6750  1.1  christos for as_dir in $PATH
   6751  1.1  christos do
   6752  1.1  christos   IFS=$as_save_IFS
   6753  1.1  christos   test -z "$as_dir" && as_dir=.
   6754  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6755  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6756  1.1  christos     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   6757  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6758  1.1  christos     break 2
   6759  1.1  christos   fi
   6760  1.1  christos done
   6761  1.1  christos   done
   6762  1.1  christos IFS=$as_save_IFS
   6763  1.1  christos 
   6764  1.1  christos fi
   6765  1.1  christos fi
   6766  1.1  christos ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   6767  1.1  christos if test -n "$ac_ct_NMEDIT"; then
   6768  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   6769  1.1  christos $as_echo "$ac_ct_NMEDIT" >&6; }
   6770  1.1  christos else
   6771  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6772  1.1  christos $as_echo "no" >&6; }
   6773  1.1  christos fi
   6774  1.1  christos 
   6775  1.1  christos   if test "x$ac_ct_NMEDIT" = x; then
   6776  1.1  christos     NMEDIT=":"
   6777  1.1  christos   else
   6778  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6779  1.1  christos yes:)
   6780  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6781  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6782  1.1  christos ac_tool_warned=yes ;;
   6783  1.1  christos esac
   6784  1.1  christos     NMEDIT=$ac_ct_NMEDIT
   6785  1.1  christos   fi
   6786  1.1  christos else
   6787  1.1  christos   NMEDIT="$ac_cv_prog_NMEDIT"
   6788  1.1  christos fi
   6789  1.1  christos 
   6790  1.1  christos     if test -n "$ac_tool_prefix"; then
   6791  1.1  christos   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   6792  1.1  christos set dummy ${ac_tool_prefix}lipo; ac_word=$2
   6793  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6794  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6795  1.1  christos if ${ac_cv_prog_LIPO+:} false; then :
   6796  1.1  christos   $as_echo_n "(cached) " >&6
   6797  1.1  christos else
   6798  1.1  christos   if test -n "$LIPO"; then
   6799  1.1  christos   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   6800  1.1  christos else
   6801  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6802  1.1  christos for as_dir in $PATH
   6803  1.1  christos do
   6804  1.1  christos   IFS=$as_save_IFS
   6805  1.1  christos   test -z "$as_dir" && as_dir=.
   6806  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6807  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6808  1.1  christos     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   6809  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6810  1.1  christos     break 2
   6811  1.1  christos   fi
   6812  1.1  christos done
   6813  1.1  christos   done
   6814  1.1  christos IFS=$as_save_IFS
   6815  1.1  christos 
   6816  1.1  christos fi
   6817  1.1  christos fi
   6818  1.1  christos LIPO=$ac_cv_prog_LIPO
   6819  1.1  christos if test -n "$LIPO"; then
   6820  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   6821  1.1  christos $as_echo "$LIPO" >&6; }
   6822  1.1  christos else
   6823  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6824  1.1  christos $as_echo "no" >&6; }
   6825  1.1  christos fi
   6826  1.1  christos 
   6827  1.1  christos 
   6828  1.1  christos fi
   6829  1.1  christos if test -z "$ac_cv_prog_LIPO"; then
   6830  1.1  christos   ac_ct_LIPO=$LIPO
   6831  1.1  christos   # Extract the first word of "lipo", so it can be a program name with args.
   6832  1.1  christos set dummy lipo; ac_word=$2
   6833  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6834  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6835  1.1  christos if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   6836  1.1  christos   $as_echo_n "(cached) " >&6
   6837  1.1  christos else
   6838  1.1  christos   if test -n "$ac_ct_LIPO"; then
   6839  1.1  christos   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   6840  1.1  christos else
   6841  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6842  1.1  christos for as_dir in $PATH
   6843  1.1  christos do
   6844  1.1  christos   IFS=$as_save_IFS
   6845  1.1  christos   test -z "$as_dir" && as_dir=.
   6846  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6847  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6848  1.1  christos     ac_cv_prog_ac_ct_LIPO="lipo"
   6849  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6850  1.1  christos     break 2
   6851  1.1  christos   fi
   6852  1.1  christos done
   6853  1.1  christos   done
   6854  1.1  christos IFS=$as_save_IFS
   6855  1.1  christos 
   6856  1.1  christos fi
   6857  1.1  christos fi
   6858  1.1  christos ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   6859  1.1  christos if test -n "$ac_ct_LIPO"; then
   6860  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   6861  1.1  christos $as_echo "$ac_ct_LIPO" >&6; }
   6862  1.1  christos else
   6863  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6864  1.1  christos $as_echo "no" >&6; }
   6865  1.1  christos fi
   6866  1.1  christos 
   6867  1.1  christos   if test "x$ac_ct_LIPO" = x; then
   6868  1.1  christos     LIPO=":"
   6869  1.1  christos   else
   6870  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6871  1.1  christos yes:)
   6872  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6873  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6874  1.1  christos ac_tool_warned=yes ;;
   6875  1.1  christos esac
   6876  1.1  christos     LIPO=$ac_ct_LIPO
   6877  1.1  christos   fi
   6878  1.1  christos else
   6879  1.1  christos   LIPO="$ac_cv_prog_LIPO"
   6880  1.1  christos fi
   6881  1.1  christos 
   6882  1.1  christos     if test -n "$ac_tool_prefix"; then
   6883  1.1  christos   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   6884  1.1  christos set dummy ${ac_tool_prefix}otool; ac_word=$2
   6885  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6886  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6887  1.1  christos if ${ac_cv_prog_OTOOL+:} false; then :
   6888  1.1  christos   $as_echo_n "(cached) " >&6
   6889  1.1  christos else
   6890  1.1  christos   if test -n "$OTOOL"; then
   6891  1.1  christos   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   6892  1.1  christos else
   6893  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6894  1.1  christos for as_dir in $PATH
   6895  1.1  christos do
   6896  1.1  christos   IFS=$as_save_IFS
   6897  1.1  christos   test -z "$as_dir" && as_dir=.
   6898  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6899  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6900  1.1  christos     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   6901  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6902  1.1  christos     break 2
   6903  1.1  christos   fi
   6904  1.1  christos done
   6905  1.1  christos   done
   6906  1.1  christos IFS=$as_save_IFS
   6907  1.1  christos 
   6908  1.1  christos fi
   6909  1.1  christos fi
   6910  1.1  christos OTOOL=$ac_cv_prog_OTOOL
   6911  1.1  christos if test -n "$OTOOL"; then
   6912  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   6913  1.1  christos $as_echo "$OTOOL" >&6; }
   6914  1.1  christos else
   6915  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6916  1.1  christos $as_echo "no" >&6; }
   6917  1.1  christos fi
   6918  1.1  christos 
   6919  1.1  christos 
   6920  1.1  christos fi
   6921  1.1  christos if test -z "$ac_cv_prog_OTOOL"; then
   6922  1.1  christos   ac_ct_OTOOL=$OTOOL
   6923  1.1  christos   # Extract the first word of "otool", so it can be a program name with args.
   6924  1.1  christos set dummy otool; ac_word=$2
   6925  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6926  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6927  1.1  christos if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   6928  1.1  christos   $as_echo_n "(cached) " >&6
   6929  1.1  christos else
   6930  1.1  christos   if test -n "$ac_ct_OTOOL"; then
   6931  1.1  christos   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   6932  1.1  christos else
   6933  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6934  1.1  christos for as_dir in $PATH
   6935  1.1  christos do
   6936  1.1  christos   IFS=$as_save_IFS
   6937  1.1  christos   test -z "$as_dir" && as_dir=.
   6938  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6939  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6940  1.1  christos     ac_cv_prog_ac_ct_OTOOL="otool"
   6941  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6942  1.1  christos     break 2
   6943  1.1  christos   fi
   6944  1.1  christos done
   6945  1.1  christos   done
   6946  1.1  christos IFS=$as_save_IFS
   6947  1.1  christos 
   6948  1.1  christos fi
   6949  1.1  christos fi
   6950  1.1  christos ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   6951  1.1  christos if test -n "$ac_ct_OTOOL"; then
   6952  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   6953  1.1  christos $as_echo "$ac_ct_OTOOL" >&6; }
   6954  1.1  christos else
   6955  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6956  1.1  christos $as_echo "no" >&6; }
   6957  1.1  christos fi
   6958  1.1  christos 
   6959  1.1  christos   if test "x$ac_ct_OTOOL" = x; then
   6960  1.1  christos     OTOOL=":"
   6961  1.1  christos   else
   6962  1.1  christos     case $cross_compiling:$ac_tool_warned in
   6963  1.1  christos yes:)
   6964  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6965  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6966  1.1  christos ac_tool_warned=yes ;;
   6967  1.1  christos esac
   6968  1.1  christos     OTOOL=$ac_ct_OTOOL
   6969  1.1  christos   fi
   6970  1.1  christos else
   6971  1.1  christos   OTOOL="$ac_cv_prog_OTOOL"
   6972  1.1  christos fi
   6973  1.1  christos 
   6974  1.1  christos     if test -n "$ac_tool_prefix"; then
   6975  1.1  christos   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   6976  1.1  christos set dummy ${ac_tool_prefix}otool64; ac_word=$2
   6977  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6978  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   6979  1.1  christos if ${ac_cv_prog_OTOOL64+:} false; then :
   6980  1.1  christos   $as_echo_n "(cached) " >&6
   6981  1.1  christos else
   6982  1.1  christos   if test -n "$OTOOL64"; then
   6983  1.1  christos   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   6984  1.1  christos else
   6985  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6986  1.1  christos for as_dir in $PATH
   6987  1.1  christos do
   6988  1.1  christos   IFS=$as_save_IFS
   6989  1.1  christos   test -z "$as_dir" && as_dir=.
   6990  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6991  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6992  1.1  christos     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   6993  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6994  1.1  christos     break 2
   6995  1.1  christos   fi
   6996  1.1  christos done
   6997  1.1  christos   done
   6998  1.1  christos IFS=$as_save_IFS
   6999  1.1  christos 
   7000  1.1  christos fi
   7001  1.1  christos fi
   7002  1.1  christos OTOOL64=$ac_cv_prog_OTOOL64
   7003  1.1  christos if test -n "$OTOOL64"; then
   7004  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7005  1.1  christos $as_echo "$OTOOL64" >&6; }
   7006  1.1  christos else
   7007  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7008  1.1  christos $as_echo "no" >&6; }
   7009  1.1  christos fi
   7010  1.1  christos 
   7011  1.1  christos 
   7012  1.1  christos fi
   7013  1.1  christos if test -z "$ac_cv_prog_OTOOL64"; then
   7014  1.1  christos   ac_ct_OTOOL64=$OTOOL64
   7015  1.1  christos   # Extract the first word of "otool64", so it can be a program name with args.
   7016  1.1  christos set dummy otool64; ac_word=$2
   7017  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7018  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   7019  1.1  christos if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7020  1.1  christos   $as_echo_n "(cached) " >&6
   7021  1.1  christos else
   7022  1.1  christos   if test -n "$ac_ct_OTOOL64"; then
   7023  1.1  christos   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7024  1.1  christos else
   7025  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7026  1.1  christos for as_dir in $PATH
   7027  1.1  christos do
   7028  1.1  christos   IFS=$as_save_IFS
   7029  1.1  christos   test -z "$as_dir" && as_dir=.
   7030  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   7031  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7032  1.1  christos     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7033  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7034  1.1  christos     break 2
   7035  1.1  christos   fi
   7036  1.1  christos done
   7037  1.1  christos   done
   7038  1.1  christos IFS=$as_save_IFS
   7039  1.1  christos 
   7040  1.1  christos fi
   7041  1.1  christos fi
   7042  1.1  christos ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7043  1.1  christos if test -n "$ac_ct_OTOOL64"; then
   7044  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7045  1.1  christos $as_echo "$ac_ct_OTOOL64" >&6; }
   7046  1.1  christos else
   7047  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7048  1.1  christos $as_echo "no" >&6; }
   7049  1.1  christos fi
   7050  1.1  christos 
   7051  1.1  christos   if test "x$ac_ct_OTOOL64" = x; then
   7052  1.1  christos     OTOOL64=":"
   7053  1.1  christos   else
   7054  1.1  christos     case $cross_compiling:$ac_tool_warned in
   7055  1.1  christos yes:)
   7056  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7057  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7058  1.1  christos ac_tool_warned=yes ;;
   7059  1.1  christos esac
   7060  1.1  christos     OTOOL64=$ac_ct_OTOOL64
   7061  1.1  christos   fi
   7062  1.1  christos else
   7063  1.1  christos   OTOOL64="$ac_cv_prog_OTOOL64"
   7064  1.1  christos fi
   7065  1.1  christos 
   7066  1.1  christos 
   7067  1.1  christos 
   7068  1.1  christos 
   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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7093  1.1  christos $as_echo_n "checking for -single_module linker flag... " >&6; }
   7094  1.1  christos if ${lt_cv_apple_cc_single_mod+:} false; then :
   7095  1.1  christos   $as_echo_n "(cached) " >&6
   7096  1.1  christos else
   7097  1.1  christos   lt_cv_apple_cc_single_mod=no
   7098  1.1  christos       if test -z "$LT_MULTI_MODULE"; then
   7099  1.1  christos 	# By default we will add the -single_module flag. You can override
   7100  1.1  christos 	# by either setting the environment variable LT_MULTI_MODULE
   7101  1.1  christos 	# non-empty at configure time, or by adding -multi_module to the
   7102  1.1  christos 	# link flags.
   7103  1.1  christos 	rm -rf libconftest.dylib*
   7104  1.1  christos 	echo "int foo(void){return 1;}" > conftest.c
   7105  1.1  christos 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7106  1.1  christos -dynamiclib -Wl,-single_module conftest.c" >&5
   7107  1.1  christos 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7108  1.1  christos 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7109  1.1  christos         _lt_result=$?
   7110  1.1  christos 	# If there is a non-empty error log, and "single_module"
   7111  1.1  christos 	# appears in it, assume the flag caused a linker warning
   7112  1.1  christos         if test -s conftest.err && $GREP single_module conftest.err; then
   7113  1.1  christos 	  cat conftest.err >&5
   7114  1.1  christos 	# Otherwise, if the output was created with a 0 exit code from
   7115  1.1  christos 	# the compiler, it worked.
   7116  1.1  christos 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   7117  1.1  christos 	  lt_cv_apple_cc_single_mod=yes
   7118  1.1  christos 	else
   7119  1.1  christos 	  cat conftest.err >&5
   7120  1.1  christos 	fi
   7121  1.1  christos 	rm -rf libconftest.dylib*
   7122  1.1  christos 	rm -f conftest.*
   7123  1.1  christos       fi
   7124  1.1  christos fi
   7125  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7126  1.1  christos $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7127  1.1  christos 
   7128  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7129  1.1  christos $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7130  1.1  christos if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7131  1.1  christos   $as_echo_n "(cached) " >&6
   7132  1.1  christos else
   7133  1.1  christos   lt_cv_ld_exported_symbols_list=no
   7134  1.1  christos       save_LDFLAGS=$LDFLAGS
   7135  1.1  christos       echo "_main" > conftest.sym
   7136  1.1  christos       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7137  1.1  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7138  1.1  christos /* end confdefs.h.  */
   7139  1.1  christos 
   7140  1.1  christos int
   7141  1.1  christos main ()
   7142  1.1  christos {
   7143  1.1  christos 
   7144  1.1  christos   ;
   7145  1.1  christos   return 0;
   7146  1.1  christos }
   7147  1.1  christos _ACEOF
   7148  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   7149  1.1  christos   lt_cv_ld_exported_symbols_list=yes
   7150  1.1  christos else
   7151  1.1  christos   lt_cv_ld_exported_symbols_list=no
   7152  1.1  christos fi
   7153  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   7154  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   7155  1.1  christos 	LDFLAGS=$save_LDFLAGS
   7156  1.1  christos 
   7157  1.1  christos fi
   7158  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   7159  1.1  christos $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   7160  1.1  christos 
   7161  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   7162  1.1  christos $as_echo_n "checking for -force_load linker flag... " >&6; }
   7163  1.1  christos if ${lt_cv_ld_force_load+:} false; then :
   7164  1.1  christos   $as_echo_n "(cached) " >&6
   7165  1.1  christos else
   7166  1.1  christos   lt_cv_ld_force_load=no
   7167  1.1  christos       cat > conftest.c << _LT_EOF
   7168  1.1  christos int forced_loaded() { return 2;}
   7169  1.1  christos _LT_EOF
   7170  1.1  christos       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   7171  1.1  christos       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   7172  1.1  christos       echo "$AR cru libconftest.a conftest.o" >&5
   7173  1.1  christos       $AR cru libconftest.a conftest.o 2>&5
   7174  1.1  christos       echo "$RANLIB libconftest.a" >&5
   7175  1.1  christos       $RANLIB libconftest.a 2>&5
   7176  1.1  christos       cat > conftest.c << _LT_EOF
   7177  1.1  christos int main() { return 0;}
   7178  1.1  christos _LT_EOF
   7179  1.1  christos       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   7180  1.1  christos       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   7181  1.1  christos       _lt_result=$?
   7182  1.1  christos       if test -s conftest.err && $GREP force_load conftest.err; then
   7183  1.1  christos 	cat conftest.err >&5
   7184  1.1  christos       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   7185  1.1  christos 	lt_cv_ld_force_load=yes
   7186  1.1  christos       else
   7187  1.1  christos 	cat conftest.err >&5
   7188  1.1  christos       fi
   7189  1.1  christos         rm -f conftest.err libconftest.a conftest conftest.c
   7190  1.1  christos         rm -rf conftest.dSYM
   7191  1.1  christos 
   7192  1.1  christos fi
   7193  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   7194  1.1  christos $as_echo "$lt_cv_ld_force_load" >&6; }
   7195  1.1  christos     case $host_os in
   7196  1.1  christos     rhapsody* | darwin1.[012])
   7197  1.1  christos       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   7198  1.1  christos     darwin1.*)
   7199  1.1  christos       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7200  1.1  christos     darwin*) # darwin 5.x on
   7201  1.1  christos       # if running on 10.5 or later, the deployment target defaults
   7202  1.1  christos       # to the OS version, if on x86, and 10.4, the deployment
   7203  1.1  christos       # target defaults to 10.4. Don't you love it?
   7204  1.1  christos       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   7205  1.1  christos 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   7206  1.1  christos 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7207  1.1  christos 	10.[012][,.]*)
   7208  1.1  christos 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7209  1.1  christos 	10.*)
   7210  1.1  christos 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7211  1.1  christos       esac
   7212  1.1  christos     ;;
   7213  1.1  christos   esac
   7214  1.1  christos     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7215  1.1  christos       _lt_dar_single_mod='$single_module'
   7216  1.1  christos     fi
   7217  1.1  christos     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7218  1.1  christos       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7219  1.1  christos     else
   7220  1.1  christos       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7221  1.1  christos     fi
   7222  1.1  christos     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7223  1.1  christos       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7224  1.1  christos     else
   7225  1.1  christos       _lt_dsymutil=
   7226  1.1  christos     fi
   7227  1.1  christos     ;;
   7228  1.1  christos   esac
   7229  1.1  christos 
   7230  1.1  christos # func_munge_path_list VARIABLE PATH
   7231  1.1  christos # -----------------------------------
   7232  1.1  christos # VARIABLE is name of variable containing _space_ separated list of
   7233  1.1  christos # directories to be munged by the contents of PATH, which is string
   7234  1.1  christos # having a format:
   7235  1.1  christos # "DIR[:DIR]:"
   7236  1.1  christos #       string "DIR[ DIR]" will be prepended to VARIABLE
   7237  1.1  christos # ":DIR[:DIR]"
   7238  1.1  christos #       string "DIR[ DIR]" will be appended to VARIABLE
   7239  1.1  christos # "DIRP[:DIRP]::[DIRA:]DIRA"
   7240  1.1  christos #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7241  1.1  christos #       "DIRA[ DIRA]" will be appended to VARIABLE
   7242  1.1  christos # "DIR[:DIR]"
   7243  1.1  christos #       VARIABLE will be replaced by "DIR[ DIR]"
   7244  1.1  christos func_munge_path_list ()
   7245  1.1  christos {
   7246  1.1  christos     case x$2 in
   7247  1.1  christos     x)
   7248  1.1  christos         ;;
   7249  1.1  christos     *:)
   7250  1.1  christos         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7251  1.1  christos         ;;
   7252  1.1  christos     x:*)
   7253  1.1  christos         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7254  1.1  christos         ;;
   7255  1.1  christos     *::*)
   7256  1.1  christos         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7257  1.1  christos         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7258  1.1  christos         ;;
   7259  1.1  christos     *)
   7260  1.1  christos         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7261  1.1  christos         ;;
   7262  1.1  christos     esac
   7263  1.1  christos }
   7264  1.1  christos 
   7265  1.3  christos for ac_header in dlfcn.h
   7266  1.3  christos do :
   7267  1.3  christos   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7268  1.3  christos "
   7269  1.3  christos if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7270  1.3  christos   cat >>confdefs.h <<_ACEOF
   7271  1.3  christos #define HAVE_DLFCN_H 1
   7272  1.1  christos _ACEOF
   7273  1.1  christos 
   7274  1.1  christos fi
   7275  1.1  christos 
   7276  1.3  christos done
   7277  1.3  christos 
   7278  1.3  christos 
   7279  1.3  christos 
   7280  1.3  christos 
   7281  1.3  christos 
   7282  1.3  christos # Set options
   7283  1.3  christos 
   7284  1.3  christos 
   7285  1.3  christos 
   7286  1.3  christos         enable_dlopen=no
   7287  1.3  christos 
   7288  1.3  christos 
   7289  1.3  christos   enable_win32_dll=no
   7290  1.3  christos 
   7291  1.3  christos 
   7292  1.3  christos             # Check whether --enable-shared was given.
   7293  1.3  christos if test "${enable_shared+set}" = set; then :
   7294  1.3  christos   enableval=$enable_shared; p=${PACKAGE-default}
   7295  1.3  christos     case $enableval in
   7296  1.3  christos     yes) enable_shared=yes ;;
   7297  1.3  christos     no) enable_shared=no ;;
   7298  1.3  christos     *)
   7299  1.3  christos       enable_shared=no
   7300  1.3  christos       # Look at the argument we got.  We use all the common list separators.
   7301  1.3  christos       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7302  1.3  christos       for pkg in $enableval; do
   7303  1.3  christos 	IFS=$lt_save_ifs
   7304  1.3  christos 	if test "X$pkg" = "X$p"; then
   7305  1.3  christos 	  enable_shared=yes
   7306  1.3  christos 	fi
   7307  1.3  christos       done
   7308  1.3  christos       IFS=$lt_save_ifs
   7309  1.3  christos       ;;
   7310  1.3  christos     esac
   7311  1.1  christos else
   7312  1.3  christos   enable_shared=yes
   7313  1.1  christos fi
   7314  1.1  christos 
   7315  1.1  christos 
   7316  1.1  christos 
   7317  1.3  christos 
   7318  1.3  christos 
   7319  1.3  christos 
   7320  1.3  christos 
   7321  1.3  christos 
   7322  1.3  christos 
   7323  1.3  christos   # Check whether --enable-static was given.
   7324  1.3  christos if test "${enable_static+set}" = set; then :
   7325  1.3  christos   enableval=$enable_static; p=${PACKAGE-default}
   7326  1.3  christos     case $enableval in
   7327  1.3  christos     yes) enable_static=yes ;;
   7328  1.3  christos     no) enable_static=no ;;
   7329  1.3  christos     *)
   7330  1.3  christos      enable_static=no
   7331  1.3  christos       # Look at the argument we got.  We use all the common list separators.
   7332  1.3  christos       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7333  1.3  christos       for pkg in $enableval; do
   7334  1.3  christos 	IFS=$lt_save_ifs
   7335  1.3  christos 	if test "X$pkg" = "X$p"; then
   7336  1.3  christos 	  enable_static=yes
   7337  1.3  christos 	fi
   7338  1.3  christos       done
   7339  1.3  christos       IFS=$lt_save_ifs
   7340  1.3  christos       ;;
   7341  1.3  christos     esac
   7342  1.1  christos else
   7343  1.3  christos   enable_static=yes
   7344  1.1  christos fi
   7345  1.1  christos 
   7346  1.1  christos 
   7347  1.1  christos 
   7348  1.1  christos 
   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.3  christos # Check whether --with-pic was given.
   7356  1.3  christos if test "${with_pic+set}" = set; then :
   7357  1.3  christos   withval=$with_pic; lt_p=${PACKAGE-default}
   7358  1.3  christos     case $withval in
   7359  1.3  christos     yes|no) pic_mode=$withval ;;
   7360  1.3  christos     *)
   7361  1.3  christos       pic_mode=default
   7362  1.3  christos       # Look at the argument we got.  We use all the common list separators.
   7363  1.3  christos       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7364  1.3  christos       for lt_pkg in $withval; do
   7365  1.3  christos 	IFS=$lt_save_ifs
   7366  1.3  christos 	if test "X$lt_pkg" = "X$lt_p"; then
   7367  1.3  christos 	  pic_mode=yes
   7368  1.3  christos 	fi
   7369  1.3  christos       done
   7370  1.3  christos       IFS=$lt_save_ifs
   7371  1.3  christos       ;;
   7372  1.3  christos     esac
   7373  1.1  christos else
   7374  1.3  christos   pic_mode=default
   7375  1.1  christos fi
   7376  1.1  christos 
   7377  1.1  christos 
   7378  1.1  christos 
   7379  1.1  christos 
   7380  1.1  christos 
   7381  1.1  christos 
   7382  1.1  christos 
   7383  1.1  christos 
   7384  1.3  christos   # Check whether --enable-fast-install was given.
   7385  1.3  christos if test "${enable_fast_install+set}" = set; then :
   7386  1.3  christos   enableval=$enable_fast_install; p=${PACKAGE-default}
   7387  1.1  christos     case $enableval in
   7388  1.3  christos     yes) enable_fast_install=yes ;;
   7389  1.3  christos     no) enable_fast_install=no ;;
   7390  1.1  christos     *)
   7391  1.3  christos       enable_fast_install=no
   7392  1.1  christos       # Look at the argument we got.  We use all the common list separators.
   7393  1.1  christos       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7394  1.1  christos       for pkg in $enableval; do
   7395  1.1  christos 	IFS=$lt_save_ifs
   7396  1.1  christos 	if test "X$pkg" = "X$p"; then
   7397  1.3  christos 	  enable_fast_install=yes
   7398  1.1  christos 	fi
   7399  1.1  christos       done
   7400  1.1  christos       IFS=$lt_save_ifs
   7401  1.1  christos       ;;
   7402  1.1  christos     esac
   7403  1.1  christos else
   7404  1.3  christos   enable_fast_install=yes
   7405  1.1  christos fi
   7406  1.1  christos 
   7407  1.1  christos 
   7408  1.1  christos 
   7409  1.1  christos 
   7410  1.1  christos 
   7411  1.1  christos 
   7412  1.1  christos 
   7413  1.1  christos 
   7414  1.3  christos   shared_archive_member_spec=
   7415  1.3  christos case $host,$enable_shared in
   7416  1.3  christos power*-*-aix[5-9]*,yes)
   7417  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7418  1.1  christos $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7419  1.1  christos 
   7420  1.1  christos # Check whether --with-aix-soname was given.
   7421  1.1  christos if test "${with_aix_soname+set}" = set; then :
   7422  1.1  christos   withval=$with_aix_soname; case $withval in
   7423  1.1  christos     aix|svr4|both)
   7424  1.1  christos       ;;
   7425  1.1  christos     *)
   7426  1.1  christos       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7427  1.1  christos       ;;
   7428  1.1  christos     esac
   7429  1.1  christos     lt_cv_with_aix_soname=$with_aix_soname
   7430  1.1  christos else
   7431  1.1  christos   if ${lt_cv_with_aix_soname+:} false; then :
   7432  1.1  christos   $as_echo_n "(cached) " >&6
   7433  1.1  christos else
   7434  1.1  christos   lt_cv_with_aix_soname=aix
   7435  1.1  christos fi
   7436  1.1  christos 
   7437  1.1  christos     with_aix_soname=$lt_cv_with_aix_soname
   7438  1.1  christos fi
   7439  1.1  christos 
   7440  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7441  1.1  christos $as_echo "$with_aix_soname" >&6; }
   7442  1.1  christos   if test aix != "$with_aix_soname"; then
   7443  1.1  christos     # For the AIX way of multilib, we name the shared archive member
   7444  1.1  christos     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7445  1.1  christos     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7446  1.1  christos     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7447  1.1  christos     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7448  1.1  christos     if test 64 = "${OBJECT_MODE-32}"; then
   7449  1.1  christos       shared_archive_member_spec=shr_64
   7450  1.1  christos     else
   7451  1.1  christos       shared_archive_member_spec=shr
   7452  1.1  christos     fi
   7453  1.1  christos   fi
   7454  1.1  christos   ;;
   7455  1.1  christos *)
   7456  1.1  christos   with_aix_soname=aix
   7457  1.1  christos   ;;
   7458  1.1  christos esac
   7459  1.1  christos 
   7460  1.1  christos 
   7461  1.1  christos 
   7462  1.1  christos 
   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 # This can be used to rebuild libtool when needed
   7470  1.1  christos LIBTOOL_DEPS=$ltmain
   7471  1.1  christos 
   7472  1.1  christos # Always use our own libtool.
   7473  1.1  christos LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7474  1.1  christos 
   7475  1.1  christos 
   7476  1.1  christos 
   7477  1.1  christos 
   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 test -z "$LN_S" && LN_S="ln -s"
   7505  1.1  christos 
   7506  1.1  christos 
   7507  1.1  christos 
   7508  1.1  christos 
   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 if test -n "${ZSH_VERSION+set}"; then
   7520  1.1  christos    setopt NO_GLOB_SUBST
   7521  1.1  christos fi
   7522  1.1  christos 
   7523  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7524  1.1  christos $as_echo_n "checking for objdir... " >&6; }
   7525  1.1  christos if ${lt_cv_objdir+:} false; then :
   7526  1.1  christos   $as_echo_n "(cached) " >&6
   7527  1.1  christos else
   7528  1.1  christos   rm -f .libs 2>/dev/null
   7529  1.1  christos mkdir .libs 2>/dev/null
   7530  1.1  christos if test -d .libs; then
   7531  1.1  christos   lt_cv_objdir=.libs
   7532  1.1  christos else
   7533  1.1  christos   # MS-DOS does not allow filenames that begin with a dot.
   7534  1.1  christos   lt_cv_objdir=_libs
   7535  1.1  christos fi
   7536  1.1  christos rmdir .libs 2>/dev/null
   7537  1.1  christos fi
   7538  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7539  1.1  christos $as_echo "$lt_cv_objdir" >&6; }
   7540  1.1  christos objdir=$lt_cv_objdir
   7541  1.1  christos 
   7542  1.1  christos 
   7543  1.1  christos 
   7544  1.1  christos 
   7545  1.1  christos 
   7546  1.1  christos cat >>confdefs.h <<_ACEOF
   7547  1.1  christos #define LT_OBJDIR "$lt_cv_objdir/"
   7548  1.1  christos _ACEOF
   7549  1.1  christos 
   7550  1.1  christos 
   7551  1.1  christos 
   7552  1.1  christos 
   7553  1.1  christos case $host_os in
   7554  1.1  christos aix3*)
   7555  1.1  christos   # AIX sometimes has problems with the GCC collect2 program.  For some
   7556  1.1  christos   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7557  1.1  christos   # vanish in a puff of smoke.
   7558  1.1  christos   if test set != "${COLLECT_NAMES+set}"; then
   7559  1.1  christos     COLLECT_NAMES=
   7560  1.1  christos     export COLLECT_NAMES
   7561  1.1  christos   fi
   7562  1.1  christos   ;;
   7563  1.1  christos esac
   7564  1.1  christos 
   7565  1.1  christos # Global variables:
   7566  1.1  christos ofile=libtool
   7567  1.1  christos can_build_shared=yes
   7568  1.1  christos 
   7569  1.1  christos # All known linkers require a '.a' archive for static linking (except MSVC,
   7570  1.1  christos # which needs '.lib').
   7571  1.1  christos libext=a
   7572  1.1  christos 
   7573  1.1  christos with_gnu_ld=$lt_cv_prog_gnu_ld
   7574  1.1  christos 
   7575  1.1  christos old_CC=$CC
   7576  1.1  christos old_CFLAGS=$CFLAGS
   7577  1.1  christos 
   7578  1.1  christos # Set sane defaults for various variables
   7579  1.1  christos test -z "$CC" && CC=cc
   7580  1.1  christos test -z "$LTCC" && LTCC=$CC
   7581  1.1  christos test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7582  1.1  christos test -z "$LD" && LD=ld
   7583  1.1  christos test -z "$ac_objext" && ac_objext=o
   7584  1.1  christos 
   7585  1.1  christos func_cc_basename $compiler
   7586  1.1  christos cc_basename=$func_cc_basename_result
   7587  1.1  christos 
   7588  1.1  christos 
   7589  1.1  christos # Only perform the check for file, if the check method requires it
   7590  1.1  christos test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7591  1.1  christos case $deplibs_check_method in
   7592  1.1  christos file_magic*)
   7593  1.1  christos   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7594  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7595  1.1  christos $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7596  1.1  christos if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7597  1.1  christos   $as_echo_n "(cached) " >&6
   7598  1.1  christos else
   7599  1.1  christos   case $MAGIC_CMD in
   7600  1.1  christos [\\/*] |  ?:[\\/]*)
   7601  1.1  christos   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7602  1.1  christos   ;;
   7603  1.1  christos *)
   7604  1.1  christos   lt_save_MAGIC_CMD=$MAGIC_CMD
   7605  1.1  christos   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7606  1.1  christos   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7607  1.1  christos   for ac_dir in $ac_dummy; do
   7608  1.1  christos     IFS=$lt_save_ifs
   7609  1.1  christos     test -z "$ac_dir" && ac_dir=.
   7610  1.1  christos     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   7611  1.1  christos       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   7612  1.1  christos       if test -n "$file_magic_test_file"; then
   7613  1.1  christos 	case $deplibs_check_method in
   7614  1.1  christos 	"file_magic "*)
   7615  1.1  christos 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7616  1.1  christos 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7617  1.1  christos 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7618  1.1  christos 	    $EGREP "$file_magic_regex" > /dev/null; then
   7619  1.1  christos 	    :
   7620  1.1  christos 	  else
   7621  1.1  christos 	    cat <<_LT_EOF 1>&2
   7622  1.1  christos 
   7623  1.1  christos *** Warning: the command libtool uses to detect shared libraries,
   7624  1.1  christos *** $file_magic_cmd, produces output that libtool cannot recognize.
   7625  1.1  christos *** The result is that libtool may fail to recognize shared libraries
   7626  1.1  christos *** as such.  This will affect the creation of libtool libraries that
   7627  1.1  christos *** depend on shared libraries, but programs linked with such libtool
   7628  1.1  christos *** libraries will work regardless of this problem.  Nevertheless, you
   7629  1.1  christos *** may want to report the problem to your system manager and/or to
   7630  1.1  christos *** bug-libtool (at] gnu.org
   7631  1.1  christos 
   7632  1.1  christos _LT_EOF
   7633  1.1  christos 	  fi ;;
   7634  1.1  christos 	esac
   7635  1.1  christos       fi
   7636  1.1  christos       break
   7637  1.1  christos     fi
   7638  1.1  christos   done
   7639  1.1  christos   IFS=$lt_save_ifs
   7640  1.1  christos   MAGIC_CMD=$lt_save_MAGIC_CMD
   7641  1.1  christos   ;;
   7642  1.1  christos esac
   7643  1.1  christos fi
   7644  1.1  christos 
   7645  1.1  christos MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7646  1.1  christos if test -n "$MAGIC_CMD"; then
   7647  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7648  1.1  christos $as_echo "$MAGIC_CMD" >&6; }
   7649  1.1  christos else
   7650  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7651  1.1  christos $as_echo "no" >&6; }
   7652  1.1  christos fi
   7653  1.1  christos 
   7654  1.1  christos 
   7655  1.1  christos 
   7656  1.1  christos 
   7657  1.1  christos 
   7658  1.1  christos if test -z "$lt_cv_path_MAGIC_CMD"; then
   7659  1.1  christos   if test -n "$ac_tool_prefix"; then
   7660  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   7661  1.1  christos $as_echo_n "checking for file... " >&6; }
   7662  1.1  christos if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7663  1.1  christos   $as_echo_n "(cached) " >&6
   7664  1.1  christos else
   7665  1.1  christos   case $MAGIC_CMD in
   7666  1.1  christos [\\/*] |  ?:[\\/]*)
   7667  1.1  christos   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7668  1.1  christos   ;;
   7669  1.1  christos *)
   7670  1.1  christos   lt_save_MAGIC_CMD=$MAGIC_CMD
   7671  1.1  christos   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7672  1.1  christos   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7673  1.1  christos   for ac_dir in $ac_dummy; do
   7674  1.1  christos     IFS=$lt_save_ifs
   7675  1.1  christos     test -z "$ac_dir" && ac_dir=.
   7676  1.1  christos     if test -f "$ac_dir/file"; then
   7677  1.1  christos       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   7678  1.1  christos       if test -n "$file_magic_test_file"; then
   7679  1.1  christos 	case $deplibs_check_method in
   7680  1.1  christos 	"file_magic "*)
   7681  1.1  christos 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7682  1.1  christos 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7683  1.1  christos 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7684  1.1  christos 	    $EGREP "$file_magic_regex" > /dev/null; then
   7685  1.1  christos 	    :
   7686  1.1  christos 	  else
   7687  1.1  christos 	    cat <<_LT_EOF 1>&2
   7688  1.1  christos 
   7689  1.1  christos *** Warning: the command libtool uses to detect shared libraries,
   7690  1.1  christos *** $file_magic_cmd, produces output that libtool cannot recognize.
   7691  1.1  christos *** The result is that libtool may fail to recognize shared libraries
   7692  1.1  christos *** as such.  This will affect the creation of libtool libraries that
   7693  1.1  christos *** depend on shared libraries, but programs linked with such libtool
   7694  1.1  christos *** libraries will work regardless of this problem.  Nevertheless, you
   7695  1.1  christos *** may want to report the problem to your system manager and/or to
   7696  1.1  christos *** bug-libtool (at] gnu.org
   7697  1.1  christos 
   7698  1.1  christos _LT_EOF
   7699  1.1  christos 	  fi ;;
   7700  1.1  christos 	esac
   7701  1.1  christos       fi
   7702  1.1  christos       break
   7703  1.1  christos     fi
   7704  1.1  christos   done
   7705  1.1  christos   IFS=$lt_save_ifs
   7706  1.1  christos   MAGIC_CMD=$lt_save_MAGIC_CMD
   7707  1.1  christos   ;;
   7708  1.1  christos esac
   7709  1.1  christos fi
   7710  1.1  christos 
   7711  1.1  christos MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7712  1.1  christos if test -n "$MAGIC_CMD"; then
   7713  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7714  1.1  christos $as_echo "$MAGIC_CMD" >&6; }
   7715  1.1  christos else
   7716  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7717  1.1  christos $as_echo "no" >&6; }
   7718  1.1  christos fi
   7719  1.1  christos 
   7720  1.1  christos 
   7721  1.1  christos   else
   7722  1.1  christos     MAGIC_CMD=:
   7723  1.1  christos   fi
   7724  1.1  christos fi
   7725  1.1  christos 
   7726  1.1  christos   fi
   7727  1.1  christos   ;;
   7728  1.1  christos esac
   7729  1.1  christos 
   7730  1.1  christos # Use C for the default configuration in the libtool script
   7731  1.1  christos 
   7732  1.1  christos lt_save_CC=$CC
   7733  1.1  christos ac_ext=c
   7734  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7735  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7736  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7737  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7738  1.1  christos 
   7739  1.1  christos 
   7740  1.1  christos # Source file extension for C test sources.
   7741  1.1  christos ac_ext=c
   7742  1.1  christos 
   7743  1.1  christos # Object file extension for compiled C test sources.
   7744  1.1  christos objext=o
   7745  1.1  christos objext=$objext
   7746  1.1  christos 
   7747  1.1  christos # Code to be used in simple compile tests
   7748  1.1  christos lt_simple_compile_test_code="int some_variable = 0;"
   7749  1.1  christos 
   7750  1.1  christos # Code to be used in simple link tests
   7751  1.1  christos lt_simple_link_test_code='int main(){return(0);}'
   7752  1.1  christos 
   7753  1.1  christos 
   7754  1.1  christos 
   7755  1.1  christos 
   7756  1.1  christos 
   7757  1.1  christos 
   7758  1.1  christos 
   7759  1.1  christos # If no C compiler was specified, use CC.
   7760  1.1  christos LTCC=${LTCC-"$CC"}
   7761  1.1  christos 
   7762  1.1  christos # If no C compiler flags were specified, use CFLAGS.
   7763  1.1  christos LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   7764  1.1  christos 
   7765  1.1  christos # Allow CC to be a program name with arguments.
   7766  1.1  christos compiler=$CC
   7767  1.1  christos 
   7768  1.1  christos # Save the default compiler, since it gets overwritten when the other
   7769  1.1  christos # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   7770  1.1  christos compiler_DEFAULT=$CC
   7771  1.1  christos 
   7772  1.1  christos # save warnings/boilerplate of simple test code
   7773  1.1  christos ac_outfile=conftest.$ac_objext
   7774  1.1  christos echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   7775  1.1  christos eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7776  1.1  christos _lt_compiler_boilerplate=`cat conftest.err`
   7777  1.1  christos $RM conftest*
   7778  1.1  christos 
   7779  1.1  christos ac_outfile=conftest.$ac_objext
   7780  1.1  christos echo "$lt_simple_link_test_code" >conftest.$ac_ext
   7781  1.1  christos eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7782  1.1  christos _lt_linker_boilerplate=`cat conftest.err`
   7783  1.1  christos $RM -r conftest*
   7784  1.1  christos 
   7785  1.1  christos 
   7786  1.1  christos ## CAVEAT EMPTOR:
   7787  1.1  christos ## There is no encapsulation within the following macros, do not change
   7788  1.1  christos ## the running order or otherwise move them around unless you know exactly
   7789  1.1  christos ## what you are doing...
   7790  1.1  christos if test -n "$compiler"; then
   7791  1.1  christos 
   7792  1.1  christos lt_prog_compiler_no_builtin_flag=
   7793  1.1  christos 
   7794  1.1  christos if test yes = "$GCC"; then
   7795  1.1  christos   case $cc_basename in
   7796  1.1  christos   nvcc*)
   7797  1.1  christos     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   7798  1.1  christos   *)
   7799  1.1  christos     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   7800  1.1  christos   esac
   7801  1.1  christos 
   7802  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   7803  1.1  christos $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   7804  1.1  christos if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   7805  1.1  christos   $as_echo_n "(cached) " >&6
   7806  1.1  christos else
   7807  1.1  christos   lt_cv_prog_compiler_rtti_exceptions=no
   7808  1.1  christos    ac_outfile=conftest.$ac_objext
   7809  1.1  christos    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7810  1.1  christos    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   7811  1.1  christos    # Insert the option either (1) after the last *FLAGS variable, or
   7812  1.1  christos    # (2) before a word containing "conftest.", or (3) at the end.
   7813  1.1  christos    # Note that $ac_compile itself does not contain backslashes and begins
   7814  1.1  christos    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7815  1.1  christos    # The option is referenced via a variable to avoid confusing sed.
   7816  1.1  christos    lt_compile=`echo "$ac_compile" | $SED \
   7817  1.1  christos    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7818  1.1  christos    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7819  1.1  christos    -e 's:$: $lt_compiler_flag:'`
   7820  1.1  christos    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   7821  1.1  christos    (eval "$lt_compile" 2>conftest.err)
   7822  1.1  christos    ac_status=$?
   7823  1.1  christos    cat conftest.err >&5
   7824  1.1  christos    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7825  1.1  christos    if (exit $ac_status) && test -s "$ac_outfile"; then
   7826  1.1  christos      # The compiler can only warn and ignore the option if not recognized
   7827  1.1  christos      # So say no if there are warnings other than the usual output.
   7828  1.1  christos      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   7829  1.1  christos      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7830  1.1  christos      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   7831  1.1  christos        lt_cv_prog_compiler_rtti_exceptions=yes
   7832  1.1  christos      fi
   7833  1.1  christos    fi
   7834  1.1  christos    $RM conftest*
   7835  1.1  christos 
   7836  1.1  christos fi
   7837  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   7838  1.1  christos $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   7839  1.1  christos 
   7840  1.1  christos if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   7841  1.1  christos     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   7842  1.1  christos else
   7843  1.1  christos     :
   7844  1.1  christos fi
   7845  1.1  christos 
   7846  1.1  christos fi
   7847  1.1  christos 
   7848  1.1  christos 
   7849  1.1  christos 
   7850  1.1  christos 
   7851  1.1  christos 
   7852  1.1  christos 
   7853  1.1  christos   lt_prog_compiler_wl=
   7854  1.1  christos lt_prog_compiler_pic=
   7855  1.1  christos lt_prog_compiler_static=
   7856  1.1  christos 
   7857  1.1  christos 
   7858  1.1  christos   if test yes = "$GCC"; then
   7859  1.1  christos     lt_prog_compiler_wl='-Wl,'
   7860  1.1  christos     lt_prog_compiler_static='-static'
   7861  1.1  christos 
   7862  1.1  christos     case $host_os in
   7863  1.1  christos       aix*)
   7864  1.1  christos       # All AIX code is PIC.
   7865  1.1  christos       if test ia64 = "$host_cpu"; then
   7866  1.1  christos 	# AIX 5 now supports IA64 processor
   7867  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   7868  1.1  christos       fi
   7869  1.1  christos       lt_prog_compiler_pic='-fPIC'
   7870  1.1  christos       ;;
   7871  1.1  christos 
   7872  1.1  christos     amigaos*)
   7873  1.1  christos       case $host_cpu in
   7874  1.1  christos       powerpc)
   7875  1.1  christos             # see comment about AmigaOS4 .so support
   7876  1.1  christos             lt_prog_compiler_pic='-fPIC'
   7877  1.1  christos         ;;
   7878  1.1  christos       m68k)
   7879  1.1  christos             # FIXME: we need at least 68020 code to build shared libraries, but
   7880  1.1  christos             # adding the '-m68020' flag to GCC prevents building anything better,
   7881  1.1  christos             # like '-m68040'.
   7882  1.1  christos             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   7883  1.1  christos         ;;
   7884  1.1  christos       esac
   7885  1.1  christos       ;;
   7886  1.1  christos 
   7887  1.1  christos     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   7888  1.1  christos       # PIC is the default for these OSes.
   7889  1.1  christos       ;;
   7890  1.1  christos 
   7891  1.1  christos     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7892  1.1  christos       # This hack is so that the source file can tell whether it is being
   7893  1.1  christos       # built for inclusion in a dll (and should export symbols for example).
   7894  1.1  christos       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   7895  1.1  christos       # (--disable-auto-import) libraries
   7896  1.1  christos       lt_prog_compiler_pic='-DDLL_EXPORT'
   7897  1.1  christos       case $host_os in
   7898  1.1  christos       os2*)
   7899  1.1  christos 	lt_prog_compiler_static='$wl-static'
   7900  1.1  christos 	;;
   7901  1.1  christos       esac
   7902  1.1  christos       ;;
   7903  1.1  christos 
   7904  1.1  christos     darwin* | rhapsody*)
   7905  1.1  christos       # PIC is the default on this platform
   7906  1.1  christos       # Common symbols not allowed in MH_DYLIB files
   7907  1.1  christos       lt_prog_compiler_pic='-fno-common'
   7908  1.1  christos       ;;
   7909  1.1  christos 
   7910  1.1  christos     haiku*)
   7911  1.1  christos       # PIC is the default for Haiku.
   7912  1.1  christos       # The "-static" flag exists, but is broken.
   7913  1.1  christos       lt_prog_compiler_static=
   7914  1.1  christos       ;;
   7915  1.1  christos 
   7916  1.1  christos     hpux*)
   7917  1.1  christos       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   7918  1.1  christos       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   7919  1.1  christos       # sets the default TLS model and affects inlining.
   7920  1.1  christos       case $host_cpu in
   7921  1.1  christos       hppa*64*)
   7922  1.1  christos 	# +Z the default
   7923  1.1  christos 	;;
   7924  1.1  christos       *)
   7925  1.1  christos 	lt_prog_compiler_pic='-fPIC'
   7926  1.1  christos 	;;
   7927  1.1  christos       esac
   7928  1.1  christos       ;;
   7929  1.1  christos 
   7930  1.1  christos     interix[3-9]*)
   7931  1.1  christos       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   7932  1.1  christos       # Instead, we relocate shared libraries at runtime.
   7933  1.1  christos       ;;
   7934  1.1  christos 
   7935  1.1  christos     msdosdjgpp*)
   7936  1.1  christos       # Just because we use GCC doesn't mean we suddenly get shared libraries
   7937  1.1  christos       # on systems that don't support them.
   7938  1.1  christos       lt_prog_compiler_can_build_shared=no
   7939  1.1  christos       enable_shared=no
   7940  1.1  christos       ;;
   7941  1.1  christos 
   7942  1.1  christos     *nto* | *qnx*)
   7943  1.1  christos       # QNX uses GNU C++, but need to define -shared option too, otherwise
   7944  1.1  christos       # it will coredump.
   7945  1.1  christos       lt_prog_compiler_pic='-fPIC -shared'
   7946  1.1  christos       ;;
   7947  1.1  christos 
   7948  1.1  christos     sysv4*MP*)
   7949  1.1  christos       if test -d /usr/nec; then
   7950  1.1  christos 	lt_prog_compiler_pic=-Kconform_pic
   7951  1.1  christos       fi
   7952  1.1  christos       ;;
   7953  1.1  christos 
   7954  1.1  christos     *)
   7955  1.1  christos       lt_prog_compiler_pic='-fPIC'
   7956  1.1  christos       ;;
   7957  1.1  christos     esac
   7958  1.1  christos 
   7959  1.1  christos     case $cc_basename in
   7960  1.1  christos     nvcc*) # Cuda Compiler Driver 2.2
   7961  1.1  christos       lt_prog_compiler_wl='-Xlinker '
   7962  1.1  christos       if test -n "$lt_prog_compiler_pic"; then
   7963  1.1  christos         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   7964  1.1  christos       fi
   7965  1.1  christos       ;;
   7966  1.1  christos     esac
   7967  1.1  christos   else
   7968  1.1  christos     # PORTME Check for flag to pass linker flags through the system compiler.
   7969  1.1  christos     case $host_os in
   7970  1.1  christos     aix*)
   7971  1.1  christos       lt_prog_compiler_wl='-Wl,'
   7972  1.1  christos       if test ia64 = "$host_cpu"; then
   7973  1.1  christos 	# AIX 5 now supports IA64 processor
   7974  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   7975  1.1  christos       else
   7976  1.1  christos 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   7977  1.1  christos       fi
   7978  1.1  christos       ;;
   7979  1.1  christos 
   7980  1.1  christos     darwin* | rhapsody*)
   7981  1.1  christos       # PIC is the default on this platform
   7982  1.1  christos       # Common symbols not allowed in MH_DYLIB files
   7983  1.1  christos       lt_prog_compiler_pic='-fno-common'
   7984  1.1  christos       case $cc_basename in
   7985  1.1  christos       nagfor*)
   7986  1.1  christos         # NAG Fortran compiler
   7987  1.1  christos         lt_prog_compiler_wl='-Wl,-Wl,,'
   7988  1.1  christos         lt_prog_compiler_pic='-PIC'
   7989  1.1  christos         lt_prog_compiler_static='-Bstatic'
   7990  1.1  christos         ;;
   7991  1.1  christos       esac
   7992  1.1  christos       ;;
   7993  1.1  christos 
   7994  1.1  christos     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7995  1.1  christos       # This hack is so that the source file can tell whether it is being
   7996  1.1  christos       # built for inclusion in a dll (and should export symbols for example).
   7997  1.1  christos       lt_prog_compiler_pic='-DDLL_EXPORT'
   7998  1.1  christos       case $host_os in
   7999  1.1  christos       os2*)
   8000  1.1  christos 	lt_prog_compiler_static='$wl-static'
   8001  1.1  christos 	;;
   8002  1.1  christos       esac
   8003  1.1  christos       ;;
   8004  1.1  christos 
   8005  1.1  christos     hpux9* | hpux10* | hpux11*)
   8006  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8007  1.1  christos       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8008  1.1  christos       # not for PA HP-UX.
   8009  1.1  christos       case $host_cpu in
   8010  1.1  christos       hppa*64*|ia64*)
   8011  1.1  christos 	# +Z the default
   8012  1.1  christos 	;;
   8013  1.1  christos       *)
   8014  1.1  christos 	lt_prog_compiler_pic='+Z'
   8015  1.1  christos 	;;
   8016  1.1  christos       esac
   8017  1.1  christos       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8018  1.1  christos       lt_prog_compiler_static='$wl-a ${wl}archive'
   8019  1.1  christos       ;;
   8020  1.1  christos 
   8021  1.1  christos     irix5* | irix6* | nonstopux*)
   8022  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8023  1.1  christos       # PIC (with -KPIC) is the default.
   8024  1.1  christos       lt_prog_compiler_static='-non_shared'
   8025  1.1  christos       ;;
   8026  1.1  christos 
   8027  1.1  christos     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8028  1.1  christos       case $cc_basename in
   8029  1.1  christos       # old Intel for x86_64, which still supported -KPIC.
   8030  1.1  christos       ecc*)
   8031  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8032  1.1  christos 	lt_prog_compiler_pic='-KPIC'
   8033  1.1  christos 	lt_prog_compiler_static='-static'
   8034  1.1  christos         ;;
   8035  1.1  christos       # icc used to be incompatible with GCC.
   8036  1.1  christos       # ICC 10 doesn't accept -KPIC any more.
   8037  1.1  christos       icc* | ifort*)
   8038  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8039  1.1  christos 	lt_prog_compiler_pic='-fPIC'
   8040  1.1  christos 	lt_prog_compiler_static='-static'
   8041  1.1  christos         ;;
   8042  1.1  christos       # Lahey Fortran 8.1.
   8043  1.1  christos       lf95*)
   8044  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8045  1.1  christos 	lt_prog_compiler_pic='--shared'
   8046  1.1  christos 	lt_prog_compiler_static='--static'
   8047  1.1  christos 	;;
   8048  1.1  christos       nagfor*)
   8049  1.1  christos 	# NAG Fortran compiler
   8050  1.1  christos 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8051  1.1  christos 	lt_prog_compiler_pic='-PIC'
   8052  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   8053  1.1  christos 	;;
   8054  1.1  christos       tcc*)
   8055  1.1  christos 	# Fabrice Bellard et al's Tiny C Compiler
   8056  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8057  1.1  christos 	lt_prog_compiler_pic='-fPIC'
   8058  1.1  christos 	lt_prog_compiler_static='-static'
   8059  1.1  christos 	;;
   8060  1.1  christos       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8061  1.1  christos         # Portland Group compilers (*not* the Pentium gcc compiler,
   8062  1.1  christos 	# which looks to be a dead project)
   8063  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8064  1.1  christos 	lt_prog_compiler_pic='-fpic'
   8065  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   8066  1.1  christos         ;;
   8067  1.1  christos       ccc*)
   8068  1.1  christos         lt_prog_compiler_wl='-Wl,'
   8069  1.1  christos         # All Alpha code is PIC.
   8070  1.1  christos         lt_prog_compiler_static='-non_shared'
   8071  1.1  christos         ;;
   8072  1.1  christos       xl* | bgxl* | bgf* | mpixl*)
   8073  1.1  christos 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8074  1.1  christos 	lt_prog_compiler_wl='-Wl,'
   8075  1.1  christos 	lt_prog_compiler_pic='-qpic'
   8076  1.1  christos 	lt_prog_compiler_static='-qstaticlink'
   8077  1.1  christos 	;;
   8078  1.1  christos       *)
   8079  1.1  christos 	case `$CC -V 2>&1 | sed 5q` in
   8080  1.1  christos 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8081  1.1  christos 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8082  1.1  christos 	  lt_prog_compiler_pic='-KPIC'
   8083  1.1  christos 	  lt_prog_compiler_static='-Bstatic'
   8084  1.1  christos 	  lt_prog_compiler_wl=''
   8085  1.1  christos 	  ;;
   8086  1.1  christos 	*Sun\ F* | *Sun*Fortran*)
   8087  1.1  christos 	  lt_prog_compiler_pic='-KPIC'
   8088  1.1  christos 	  lt_prog_compiler_static='-Bstatic'
   8089  1.1  christos 	  lt_prog_compiler_wl='-Qoption ld '
   8090  1.1  christos 	  ;;
   8091  1.1  christos 	*Sun\ C*)
   8092  1.1  christos 	  # Sun C 5.9
   8093  1.1  christos 	  lt_prog_compiler_pic='-KPIC'
   8094  1.1  christos 	  lt_prog_compiler_static='-Bstatic'
   8095  1.1  christos 	  lt_prog_compiler_wl='-Wl,'
   8096  1.1  christos 	  ;;
   8097  1.1  christos         *Intel*\ [CF]*Compiler*)
   8098  1.1  christos 	  lt_prog_compiler_wl='-Wl,'
   8099  1.1  christos 	  lt_prog_compiler_pic='-fPIC'
   8100  1.1  christos 	  lt_prog_compiler_static='-static'
   8101  1.1  christos 	  ;;
   8102  1.1  christos 	*Portland\ Group*)
   8103  1.1  christos 	  lt_prog_compiler_wl='-Wl,'
   8104  1.1  christos 	  lt_prog_compiler_pic='-fpic'
   8105  1.1  christos 	  lt_prog_compiler_static='-Bstatic'
   8106  1.1  christos 	  ;;
   8107  1.1  christos 	esac
   8108  1.1  christos 	;;
   8109  1.1  christos       esac
   8110  1.1  christos       ;;
   8111  1.1  christos 
   8112  1.1  christos     newsos6)
   8113  1.1  christos       lt_prog_compiler_pic='-KPIC'
   8114  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8115  1.1  christos       ;;
   8116  1.1  christos 
   8117  1.1  christos     *nto* | *qnx*)
   8118  1.1  christos       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8119  1.1  christos       # it will coredump.
   8120  1.1  christos       lt_prog_compiler_pic='-fPIC -shared'
   8121  1.1  christos       ;;
   8122  1.1  christos 
   8123  1.1  christos     osf3* | osf4* | osf5*)
   8124  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8125  1.1  christos       # All OSF/1 code is PIC.
   8126  1.1  christos       lt_prog_compiler_static='-non_shared'
   8127  1.1  christos       ;;
   8128  1.1  christos 
   8129  1.1  christos     rdos*)
   8130  1.1  christos       lt_prog_compiler_static='-non_shared'
   8131  1.1  christos       ;;
   8132  1.1  christos 
   8133  1.1  christos     solaris*)
   8134  1.1  christos       lt_prog_compiler_pic='-KPIC'
   8135  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8136  1.1  christos       case $cc_basename in
   8137  1.1  christos       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8138  1.1  christos 	lt_prog_compiler_wl='-Qoption ld ';;
   8139  1.1  christos       *)
   8140  1.1  christos 	lt_prog_compiler_wl='-Wl,';;
   8141  1.1  christos       esac
   8142  1.1  christos       ;;
   8143  1.1  christos 
   8144  1.1  christos     sunos4*)
   8145  1.1  christos       lt_prog_compiler_wl='-Qoption ld '
   8146  1.1  christos       lt_prog_compiler_pic='-PIC'
   8147  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8148  1.1  christos       ;;
   8149  1.1  christos 
   8150  1.1  christos     sysv4 | sysv4.2uw2* | sysv4.3*)
   8151  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8152  1.1  christos       lt_prog_compiler_pic='-KPIC'
   8153  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8154  1.1  christos       ;;
   8155  1.1  christos 
   8156  1.1  christos     sysv4*MP*)
   8157  1.1  christos       if test -d /usr/nec; then
   8158  1.1  christos 	lt_prog_compiler_pic='-Kconform_pic'
   8159  1.1  christos 	lt_prog_compiler_static='-Bstatic'
   8160  1.1  christos       fi
   8161  1.1  christos       ;;
   8162  1.1  christos 
   8163  1.1  christos     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8164  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8165  1.1  christos       lt_prog_compiler_pic='-KPIC'
   8166  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8167  1.1  christos       ;;
   8168  1.1  christos 
   8169  1.1  christos     unicos*)
   8170  1.1  christos       lt_prog_compiler_wl='-Wl,'
   8171  1.1  christos       lt_prog_compiler_can_build_shared=no
   8172  1.1  christos       ;;
   8173  1.1  christos 
   8174  1.1  christos     uts4*)
   8175  1.1  christos       lt_prog_compiler_pic='-pic'
   8176  1.1  christos       lt_prog_compiler_static='-Bstatic'
   8177  1.1  christos       ;;
   8178  1.1  christos 
   8179  1.1  christos     *)
   8180  1.1  christos       lt_prog_compiler_can_build_shared=no
   8181  1.1  christos       ;;
   8182  1.1  christos     esac
   8183  1.1  christos   fi
   8184  1.1  christos 
   8185  1.1  christos case $host_os in
   8186  1.1  christos   # For platforms that do not support PIC, -DPIC is meaningless:
   8187  1.1  christos   *djgpp*)
   8188  1.1  christos     lt_prog_compiler_pic=
   8189  1.1  christos     ;;
   8190  1.1  christos   *)
   8191  1.1  christos     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8192  1.1  christos     ;;
   8193  1.1  christos esac
   8194  1.1  christos 
   8195  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8196  1.1  christos $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8197  1.1  christos if ${lt_cv_prog_compiler_pic+:} false; then :
   8198  1.1  christos   $as_echo_n "(cached) " >&6
   8199  1.1  christos else
   8200  1.1  christos   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8201  1.1  christos fi
   8202  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8203  1.1  christos $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8204  1.1  christos lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8205  1.1  christos 
   8206  1.1  christos #
   8207  1.1  christos # Check to make sure the PIC flag actually works.
   8208  1.1  christos #
   8209  1.1  christos if test -n "$lt_prog_compiler_pic"; then
   8210  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8211  1.1  christos $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8212  1.1  christos if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8213  1.1  christos   $as_echo_n "(cached) " >&6
   8214  1.1  christos else
   8215  1.1  christos   lt_cv_prog_compiler_pic_works=no
   8216  1.1  christos    ac_outfile=conftest.$ac_objext
   8217  1.1  christos    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8218  1.1  christos    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8219  1.1  christos    # Insert the option either (1) after the last *FLAGS variable, or
   8220  1.1  christos    # (2) before a word containing "conftest.", or (3) at the end.
   8221  1.1  christos    # Note that $ac_compile itself does not contain backslashes and begins
   8222  1.1  christos    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8223  1.1  christos    # The option is referenced via a variable to avoid confusing sed.
   8224  1.1  christos    lt_compile=`echo "$ac_compile" | $SED \
   8225  1.1  christos    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8226  1.1  christos    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8227  1.1  christos    -e 's:$: $lt_compiler_flag:'`
   8228  1.1  christos    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8229  1.1  christos    (eval "$lt_compile" 2>conftest.err)
   8230  1.1  christos    ac_status=$?
   8231  1.1  christos    cat conftest.err >&5
   8232  1.1  christos    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8233  1.1  christos    if (exit $ac_status) && test -s "$ac_outfile"; then
   8234  1.1  christos      # The compiler can only warn and ignore the option if not recognized
   8235  1.1  christos      # So say no if there are warnings other than the usual output.
   8236  1.1  christos      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8237  1.1  christos      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8238  1.1  christos      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8239  1.1  christos        lt_cv_prog_compiler_pic_works=yes
   8240  1.1  christos      fi
   8241  1.1  christos    fi
   8242  1.1  christos    $RM conftest*
   8243  1.1  christos 
   8244  1.1  christos fi
   8245  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8246  1.1  christos $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8247  1.1  christos 
   8248  1.1  christos if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8249  1.1  christos     case $lt_prog_compiler_pic in
   8250  1.1  christos      "" | " "*) ;;
   8251  1.1  christos      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8252  1.1  christos      esac
   8253  1.1  christos else
   8254  1.1  christos     lt_prog_compiler_pic=
   8255  1.1  christos      lt_prog_compiler_can_build_shared=no
   8256  1.1  christos fi
   8257  1.1  christos 
   8258  1.1  christos fi
   8259  1.1  christos 
   8260  1.1  christos 
   8261  1.1  christos 
   8262  1.1  christos 
   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 # Check to make sure the static flag actually works.
   8272  1.1  christos #
   8273  1.1  christos wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8274  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8275  1.1  christos $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8276  1.1  christos if ${lt_cv_prog_compiler_static_works+:} false; then :
   8277  1.1  christos   $as_echo_n "(cached) " >&6
   8278  1.1  christos else
   8279  1.1  christos   lt_cv_prog_compiler_static_works=no
   8280  1.1  christos    save_LDFLAGS=$LDFLAGS
   8281  1.1  christos    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8282  1.1  christos    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8283  1.1  christos    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8284  1.1  christos      # The linker can only warn and ignore the option if not recognized
   8285  1.1  christos      # So say no if there are warnings
   8286  1.1  christos      if test -s conftest.err; then
   8287  1.1  christos        # Append any errors to the config.log.
   8288  1.1  christos        cat conftest.err 1>&5
   8289  1.1  christos        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8290  1.1  christos        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8291  1.1  christos        if diff conftest.exp conftest.er2 >/dev/null; then
   8292  1.1  christos          lt_cv_prog_compiler_static_works=yes
   8293  1.1  christos        fi
   8294  1.1  christos      else
   8295  1.1  christos        lt_cv_prog_compiler_static_works=yes
   8296  1.1  christos      fi
   8297  1.1  christos    fi
   8298  1.1  christos    $RM -r conftest*
   8299  1.1  christos    LDFLAGS=$save_LDFLAGS
   8300  1.1  christos 
   8301  1.1  christos fi
   8302  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8303  1.1  christos $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8304  1.1  christos 
   8305  1.1  christos if test yes = "$lt_cv_prog_compiler_static_works"; then
   8306  1.1  christos     :
   8307  1.1  christos else
   8308  1.1  christos     lt_prog_compiler_static=
   8309  1.1  christos fi
   8310  1.1  christos 
   8311  1.1  christos 
   8312  1.1  christos 
   8313  1.1  christos 
   8314  1.1  christos 
   8315  1.1  christos 
   8316  1.1  christos 
   8317  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8318  1.1  christos $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8319  1.1  christos if ${lt_cv_prog_compiler_c_o+:} false; then :
   8320  1.1  christos   $as_echo_n "(cached) " >&6
   8321  1.1  christos else
   8322  1.1  christos   lt_cv_prog_compiler_c_o=no
   8323  1.1  christos    $RM -r conftest 2>/dev/null
   8324  1.1  christos    mkdir conftest
   8325  1.1  christos    cd conftest
   8326  1.1  christos    mkdir out
   8327  1.1  christos    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8328  1.1  christos 
   8329  1.1  christos    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8330  1.1  christos    # Insert the option either (1) after the last *FLAGS variable, or
   8331  1.1  christos    # (2) before a word containing "conftest.", or (3) at the end.
   8332  1.1  christos    # Note that $ac_compile itself does not contain backslashes and begins
   8333  1.1  christos    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8334  1.1  christos    lt_compile=`echo "$ac_compile" | $SED \
   8335  1.1  christos    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8336  1.1  christos    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8337  1.1  christos    -e 's:$: $lt_compiler_flag:'`
   8338  1.1  christos    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8339  1.1  christos    (eval "$lt_compile" 2>out/conftest.err)
   8340  1.1  christos    ac_status=$?
   8341  1.1  christos    cat out/conftest.err >&5
   8342  1.1  christos    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8343  1.1  christos    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8344  1.1  christos    then
   8345  1.1  christos      # The compiler can only warn and ignore the option if not recognized
   8346  1.1  christos      # So say no if there are warnings
   8347  1.1  christos      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8348  1.1  christos      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8349  1.1  christos      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8350  1.1  christos        lt_cv_prog_compiler_c_o=yes
   8351  1.1  christos      fi
   8352  1.1  christos    fi
   8353  1.1  christos    chmod u+w . 2>&5
   8354  1.1  christos    $RM conftest*
   8355  1.1  christos    # SGI C++ compiler will create directory out/ii_files/ for
   8356  1.1  christos    # template instantiation
   8357  1.1  christos    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8358  1.1  christos    $RM out/* && rmdir out
   8359  1.1  christos    cd ..
   8360  1.1  christos    $RM -r conftest
   8361  1.1  christos    $RM conftest*
   8362  1.1  christos 
   8363  1.1  christos fi
   8364  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8365  1.1  christos $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8366  1.1  christos 
   8367  1.1  christos 
   8368  1.1  christos 
   8369  1.1  christos 
   8370  1.1  christos 
   8371  1.1  christos 
   8372  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8373  1.1  christos $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8374  1.1  christos if ${lt_cv_prog_compiler_c_o+:} false; then :
   8375  1.1  christos   $as_echo_n "(cached) " >&6
   8376  1.1  christos else
   8377  1.1  christos   lt_cv_prog_compiler_c_o=no
   8378  1.1  christos    $RM -r conftest 2>/dev/null
   8379  1.1  christos    mkdir conftest
   8380  1.1  christos    cd conftest
   8381  1.1  christos    mkdir out
   8382  1.1  christos    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8383  1.1  christos 
   8384  1.1  christos    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8385  1.1  christos    # Insert the option either (1) after the last *FLAGS variable, or
   8386  1.1  christos    # (2) before a word containing "conftest.", or (3) at the end.
   8387  1.1  christos    # Note that $ac_compile itself does not contain backslashes and begins
   8388  1.1  christos    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8389  1.1  christos    lt_compile=`echo "$ac_compile" | $SED \
   8390  1.1  christos    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8391  1.1  christos    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8392  1.1  christos    -e 's:$: $lt_compiler_flag:'`
   8393  1.1  christos    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8394  1.1  christos    (eval "$lt_compile" 2>out/conftest.err)
   8395  1.1  christos    ac_status=$?
   8396  1.1  christos    cat out/conftest.err >&5
   8397  1.1  christos    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8398  1.1  christos    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8399  1.1  christos    then
   8400  1.1  christos      # The compiler can only warn and ignore the option if not recognized
   8401  1.1  christos      # So say no if there are warnings
   8402  1.1  christos      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8403  1.1  christos      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8404  1.1  christos      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8405  1.1  christos        lt_cv_prog_compiler_c_o=yes
   8406  1.1  christos      fi
   8407  1.1  christos    fi
   8408  1.1  christos    chmod u+w . 2>&5
   8409  1.1  christos    $RM conftest*
   8410  1.1  christos    # SGI C++ compiler will create directory out/ii_files/ for
   8411  1.1  christos    # template instantiation
   8412  1.1  christos    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8413  1.1  christos    $RM out/* && rmdir out
   8414  1.1  christos    cd ..
   8415  1.1  christos    $RM -r conftest
   8416  1.1  christos    $RM conftest*
   8417  1.1  christos 
   8418  1.1  christos fi
   8419  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8420  1.1  christos $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8421  1.1  christos 
   8422  1.1  christos 
   8423  1.1  christos 
   8424  1.1  christos 
   8425  1.1  christos hard_links=nottested
   8426  1.1  christos if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8427  1.1  christos   # do not overwrite the value of need_locks provided by the user
   8428  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8429  1.1  christos $as_echo_n "checking if we can lock with hard links... " >&6; }
   8430  1.1  christos   hard_links=yes
   8431  1.1  christos   $RM conftest*
   8432  1.1  christos   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8433  1.1  christos   touch conftest.a
   8434  1.1  christos   ln conftest.a conftest.b 2>&5 || hard_links=no
   8435  1.1  christos   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8436  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8437  1.1  christos $as_echo "$hard_links" >&6; }
   8438  1.1  christos   if test no = "$hard_links"; then
   8439  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8440  1.1  christos $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8441  1.1  christos     need_locks=warn
   8442  1.1  christos   fi
   8443  1.1  christos else
   8444  1.1  christos   need_locks=no
   8445  1.1  christos fi
   8446  1.1  christos 
   8447  1.1  christos 
   8448  1.1  christos 
   8449  1.1  christos 
   8450  1.1  christos 
   8451  1.1  christos 
   8452  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8453  1.1  christos $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8454  1.1  christos 
   8455  1.1  christos   runpath_var=
   8456  1.1  christos   allow_undefined_flag=
   8457  1.1  christos   always_export_symbols=no
   8458  1.1  christos   archive_cmds=
   8459  1.1  christos   archive_expsym_cmds=
   8460  1.1  christos   compiler_needs_object=no
   8461  1.1  christos   enable_shared_with_static_runtimes=no
   8462  1.1  christos   export_dynamic_flag_spec=
   8463  1.1  christos   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8464  1.1  christos   hardcode_automatic=no
   8465  1.1  christos   hardcode_direct=no
   8466  1.1  christos   hardcode_direct_absolute=no
   8467  1.1  christos   hardcode_libdir_flag_spec=
   8468  1.1  christos   hardcode_libdir_separator=
   8469  1.1  christos   hardcode_minus_L=no
   8470  1.1  christos   hardcode_shlibpath_var=unsupported
   8471  1.1  christos   inherit_rpath=no
   8472  1.1  christos   link_all_deplibs=unknown
   8473  1.1  christos   module_cmds=
   8474  1.1  christos   module_expsym_cmds=
   8475  1.1  christos   old_archive_from_new_cmds=
   8476  1.1  christos   old_archive_from_expsyms_cmds=
   8477  1.1  christos   thread_safe_flag_spec=
   8478  1.1  christos   whole_archive_flag_spec=
   8479  1.1  christos   # include_expsyms should be a list of space-separated symbols to be *always*
   8480  1.1  christos   # included in the symbol list
   8481  1.1  christos   include_expsyms=
   8482  1.1  christos   # exclude_expsyms can be an extended regexp of symbols to exclude
   8483  1.1  christos   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8484  1.1  christos   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8485  1.1  christos   # as well as any symbol that contains 'd'.
   8486  1.1  christos   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8487  1.1  christos   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8488  1.1  christos   # platforms (ab)use it in PIC code, but their linkers get confused if
   8489  1.1  christos   # the symbol is explicitly referenced.  Since portable code cannot
   8490  1.1  christos   # rely on this symbol name, it's probably fine to never include it in
   8491  1.1  christos   # preloaded symbol tables.
   8492  1.1  christos   # Exclude shared library initialization/finalization symbols.
   8493  1.1  christos   extract_expsyms_cmds=
   8494  1.1  christos 
   8495  1.1  christos   case $host_os in
   8496  1.1  christos   cygwin* | mingw* | pw32* | cegcc*)
   8497  1.1  christos     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8498  1.1  christos     # When not using gcc, we currently assume that we are using
   8499  1.1  christos     # Microsoft Visual C++.
   8500  1.1  christos     if test yes != "$GCC"; then
   8501  1.1  christos       with_gnu_ld=no
   8502  1.1  christos     fi
   8503  1.1  christos     ;;
   8504  1.1  christos   interix*)
   8505  1.1  christos     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8506  1.1  christos     with_gnu_ld=yes
   8507  1.1  christos     ;;
   8508  1.1  christos   openbsd* | bitrig*)
   8509  1.1  christos     with_gnu_ld=no
   8510  1.1  christos     ;;
   8511  1.1  christos   esac
   8512  1.1  christos 
   8513  1.1  christos   ld_shlibs=yes
   8514  1.1  christos 
   8515  1.1  christos   # On some targets, GNU ld is compatible enough with the native linker
   8516  1.1  christos   # that we're better off using the native interface for both.
   8517  1.1  christos   lt_use_gnu_ld_interface=no
   8518  1.1  christos   if test yes = "$with_gnu_ld"; then
   8519  1.1  christos     case $host_os in
   8520  1.1  christos       aix*)
   8521  1.1  christos 	# The AIX port of GNU ld has always aspired to compatibility
   8522  1.1  christos 	# with the native linker.  However, as the warning in the GNU ld
   8523  1.1  christos 	# block says, versions before 2.19.5* couldn't really create working
   8524  1.1  christos 	# shared libraries, regardless of the interface used.
   8525  1.1  christos 	case `$LD -v 2>&1` in
   8526  1.1  christos 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8527  1.1  christos 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8528  1.1  christos 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8529  1.1  christos 	  *)
   8530  1.1  christos 	    lt_use_gnu_ld_interface=yes
   8531  1.1  christos 	    ;;
   8532  1.1  christos 	esac
   8533  1.1  christos 	;;
   8534  1.1  christos       *)
   8535  1.1  christos 	lt_use_gnu_ld_interface=yes
   8536  1.1  christos 	;;
   8537  1.1  christos     esac
   8538  1.1  christos   fi
   8539  1.1  christos 
   8540  1.1  christos   if test yes = "$lt_use_gnu_ld_interface"; then
   8541  1.1  christos     # If archive_cmds runs LD, not CC, wlarc should be empty
   8542  1.1  christos     wlarc='$wl'
   8543  1.1  christos 
   8544  1.1  christos     # Set some defaults for GNU ld with shared library support. These
   8545  1.1  christos     # are reset later if shared libraries are not supported. Putting them
   8546  1.1  christos     # here allows them to be overridden if necessary.
   8547  1.1  christos     runpath_var=LD_RUN_PATH
   8548  1.1  christos     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8549  1.1  christos     export_dynamic_flag_spec='$wl--export-dynamic'
   8550  1.1  christos     # ancient GNU ld didn't support --whole-archive et. al.
   8551  1.1  christos     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8552  1.1  christos       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8553  1.1  christos     else
   8554  1.1  christos       whole_archive_flag_spec=
   8555  1.1  christos     fi
   8556  1.1  christos     supports_anon_versioning=no
   8557  1.1  christos     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8558  1.1  christos       *GNU\ gold*) supports_anon_versioning=yes ;;
   8559  1.1  christos       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8560  1.1  christos       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8561  1.1  christos       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8562  1.1  christos       *\ 2.11.*) ;; # other 2.11 versions
   8563  1.1  christos       *) supports_anon_versioning=yes ;;
   8564  1.1  christos     esac
   8565  1.1  christos 
   8566  1.1  christos     # See if GNU ld supports shared libraries.
   8567  1.1  christos     case $host_os in
   8568  1.1  christos     aix[3-9]*)
   8569  1.1  christos       # On AIX/PPC, the GNU linker is very broken
   8570  1.1  christos       if test ia64 != "$host_cpu"; then
   8571  1.1  christos 	ld_shlibs=no
   8572  1.1  christos 	cat <<_LT_EOF 1>&2
   8573  1.1  christos 
   8574  1.1  christos *** Warning: the GNU linker, at least up to release 2.19, is reported
   8575  1.1  christos *** to be unable to reliably create shared libraries on AIX.
   8576  1.1  christos *** Therefore, libtool is disabling shared libraries support.  If you
   8577  1.1  christos *** really care for shared libraries, you may want to install binutils
   8578  1.1  christos *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8579  1.1  christos *** You will then need to restart the configuration process.
   8580  1.1  christos 
   8581  1.1  christos _LT_EOF
   8582  1.1  christos       fi
   8583  1.1  christos       ;;
   8584  1.1  christos 
   8585  1.1  christos     amigaos*)
   8586  1.1  christos       case $host_cpu in
   8587  1.1  christos       powerpc)
   8588  1.1  christos             # see comment about AmigaOS4 .so support
   8589  1.1  christos             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8590  1.1  christos             archive_expsym_cmds=''
   8591  1.1  christos         ;;
   8592  1.1  christos       m68k)
   8593  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)'
   8594  1.1  christos             hardcode_libdir_flag_spec='-L$libdir'
   8595  1.1  christos             hardcode_minus_L=yes
   8596  1.1  christos         ;;
   8597  1.1  christos       esac
   8598  1.1  christos       ;;
   8599  1.1  christos 
   8600  1.1  christos     beos*)
   8601  1.1  christos       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8602  1.1  christos 	allow_undefined_flag=unsupported
   8603  1.1  christos 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8604  1.1  christos 	# support --undefined.  This deserves some investigation.  FIXME
   8605  1.1  christos 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8606  1.1  christos       else
   8607  1.1  christos 	ld_shlibs=no
   8608  1.1  christos       fi
   8609  1.1  christos       ;;
   8610  1.1  christos 
   8611  1.1  christos     cygwin* | mingw* | pw32* | cegcc*)
   8612  1.1  christos       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8613  1.1  christos       # as there is no search path for DLLs.
   8614  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   8615  1.1  christos       export_dynamic_flag_spec='$wl--export-all-symbols'
   8616  1.1  christos       allow_undefined_flag=unsupported
   8617  1.1  christos       always_export_symbols=no
   8618  1.1  christos       enable_shared_with_static_runtimes=yes
   8619  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'
   8620  1.1  christos       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8621  1.1  christos 
   8622  1.1  christos       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8623  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'
   8624  1.1  christos 	# If the export-symbols file already is a .def file, use it as
   8625  1.1  christos 	# is; otherwise, prepend EXPORTS...
   8626  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
   8627  1.1  christos           cp $export_symbols $output_objdir/$soname.def;
   8628  1.1  christos         else
   8629  1.1  christos           echo EXPORTS > $output_objdir/$soname.def;
   8630  1.1  christos           cat $export_symbols >> $output_objdir/$soname.def;
   8631  1.1  christos         fi~
   8632  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'
   8633  1.1  christos       else
   8634  1.1  christos 	ld_shlibs=no
   8635  1.1  christos       fi
   8636  1.1  christos       ;;
   8637  1.1  christos 
   8638  1.1  christos     haiku*)
   8639  1.1  christos       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8640  1.1  christos       link_all_deplibs=yes
   8641  1.1  christos       ;;
   8642  1.1  christos 
   8643  1.1  christos     os2*)
   8644  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   8645  1.1  christos       hardcode_minus_L=yes
   8646  1.1  christos       allow_undefined_flag=unsupported
   8647  1.1  christos       shrext_cmds=.dll
   8648  1.1  christos       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8649  1.1  christos 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8650  1.1  christos 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8651  1.1  christos 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8652  1.1  christos 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   8653  1.1  christos 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8654  1.1  christos 	emximp -o $lib $output_objdir/$libname.def'
   8655  1.1  christos       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8656  1.1  christos 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8657  1.1  christos 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8658  1.1  christos 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8659  1.1  christos 	prefix_cmds="$SED"~
   8660  1.1  christos 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   8661  1.1  christos 	  prefix_cmds="$prefix_cmds -e 1d";
   8662  1.1  christos 	fi~
   8663  1.1  christos 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   8664  1.1  christos 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   8665  1.1  christos 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8666  1.1  christos 	emximp -o $lib $output_objdir/$libname.def'
   8667  1.1  christos       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   8668  1.1  christos       enable_shared_with_static_runtimes=yes
   8669  1.1  christos       ;;
   8670  1.1  christos 
   8671  1.1  christos     interix[3-9]*)
   8672  1.1  christos       hardcode_direct=no
   8673  1.1  christos       hardcode_shlibpath_var=no
   8674  1.1  christos       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   8675  1.1  christos       export_dynamic_flag_spec='$wl-E'
   8676  1.1  christos       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   8677  1.1  christos       # Instead, shared libraries are loaded at an image base (0x10000000 by
   8678  1.1  christos       # default) and relocated if they conflict, which is a slow very memory
   8679  1.1  christos       # consuming and fragmenting process.  To avoid this, we pick a random,
   8680  1.1  christos       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   8681  1.1  christos       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   8682  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'
   8683  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'
   8684  1.1  christos       ;;
   8685  1.1  christos 
   8686  1.1  christos     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   8687  1.1  christos       tmp_diet=no
   8688  1.1  christos       if test linux-dietlibc = "$host_os"; then
   8689  1.1  christos 	case $cc_basename in
   8690  1.1  christos 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   8691  1.1  christos 	esac
   8692  1.1  christos       fi
   8693  1.1  christos       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   8694  1.1  christos 	 && test no = "$tmp_diet"
   8695  1.1  christos       then
   8696  1.1  christos 	tmp_addflag=' $pic_flag'
   8697  1.1  christos 	tmp_sharedflag='-shared'
   8698  1.1  christos 	case $cc_basename,$host_cpu in
   8699  1.1  christos         pgcc*)				# Portland Group C compiler
   8700  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'
   8701  1.1  christos 	  tmp_addflag=' $pic_flag'
   8702  1.1  christos 	  ;;
   8703  1.1  christos 	pgf77* | pgf90* | pgf95* | pgfortran*)
   8704  1.1  christos 					# Portland Group f77 and f90 compilers
   8705  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'
   8706  1.1  christos 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   8707  1.1  christos 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   8708  1.1  christos 	  tmp_addflag=' -i_dynamic' ;;
   8709  1.1  christos 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   8710  1.1  christos 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   8711  1.1  christos 	ifc* | ifort*)			# Intel Fortran compiler
   8712  1.1  christos 	  tmp_addflag=' -nofor_main' ;;
   8713  1.1  christos 	lf95*)				# Lahey Fortran 8.1
   8714  1.1  christos 	  whole_archive_flag_spec=
   8715  1.1  christos 	  tmp_sharedflag='--shared' ;;
   8716  1.1  christos         nagfor*)                        # NAGFOR 5.3
   8717  1.1  christos           tmp_sharedflag='-Wl,-shared' ;;
   8718  1.1  christos 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   8719  1.1  christos 	  tmp_sharedflag='-qmkshrobj'
   8720  1.1  christos 	  tmp_addflag= ;;
   8721  1.1  christos 	nvcc*)	# Cuda Compiler Driver 2.2
   8722  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'
   8723  1.1  christos 	  compiler_needs_object=yes
   8724  1.1  christos 	  ;;
   8725  1.1  christos 	esac
   8726  1.1  christos 	case `$CC -V 2>&1 | sed 5q` in
   8727  1.1  christos 	*Sun\ C*)			# Sun C 5.9
   8728  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'
   8729  1.1  christos 	  compiler_needs_object=yes
   8730  1.1  christos 	  tmp_sharedflag='-G' ;;
   8731  1.1  christos 	*Sun\ F*)			# Sun Fortran 8.3
   8732  1.1  christos 	  tmp_sharedflag='-G' ;;
   8733  1.1  christos 	esac
   8734  1.1  christos 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8735  1.1  christos 
   8736  1.1  christos         if test yes = "$supports_anon_versioning"; then
   8737  1.1  christos           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8738  1.1  christos             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8739  1.1  christos             echo "local: *; };" >> $output_objdir/$libname.ver~
   8740  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'
   8741  1.1  christos         fi
   8742  1.1  christos 
   8743  1.1  christos 	case $cc_basename in
   8744  1.1  christos 	tcc*)
   8745  1.1  christos 	  export_dynamic_flag_spec='-rdynamic'
   8746  1.1  christos 	  ;;
   8747  1.1  christos 	xlf* | bgf* | bgxlf* | mpixlf*)
   8748  1.1  christos 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   8749  1.1  christos 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   8750  1.1  christos 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8751  1.1  christos 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   8752  1.1  christos 	  if test yes = "$supports_anon_versioning"; then
   8753  1.1  christos 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8754  1.1  christos               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8755  1.1  christos               echo "local: *; };" >> $output_objdir/$libname.ver~
   8756  1.1  christos               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   8757  1.1  christos 	  fi
   8758  1.1  christos 	  ;;
   8759  1.1  christos 	esac
   8760  1.1  christos       else
   8761  1.1  christos         ld_shlibs=no
   8762  1.1  christos       fi
   8763  1.1  christos       ;;
   8764  1.1  christos 
   8765  1.1  christos     netbsd*)
   8766  1.1  christos       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   8767  1.1  christos 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   8768  1.1  christos 	wlarc=
   8769  1.1  christos       else
   8770  1.1  christos 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8771  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'
   8772  1.1  christos       fi
   8773  1.1  christos       ;;
   8774  1.1  christos 
   8775  1.1  christos     solaris*)
   8776  1.1  christos       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   8777  1.1  christos 	ld_shlibs=no
   8778  1.1  christos 	cat <<_LT_EOF 1>&2
   8779  1.1  christos 
   8780  1.1  christos *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   8781  1.1  christos *** create shared libraries on Solaris systems.  Therefore, libtool
   8782  1.1  christos *** is disabling shared libraries support.  We urge you to upgrade GNU
   8783  1.1  christos *** binutils to release 2.9.1 or newer.  Another option is to modify
   8784  1.1  christos *** your PATH or compiler configuration so that the native linker is
   8785  1.1  christos *** used, and then restart.
   8786  1.1  christos 
   8787  1.1  christos _LT_EOF
   8788  1.1  christos       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8789  1.1  christos 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8790  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'
   8791  1.1  christos       else
   8792  1.1  christos 	ld_shlibs=no
   8793  1.1  christos       fi
   8794  1.1  christos       ;;
   8795  1.1  christos 
   8796  1.1  christos     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   8797  1.1  christos       case `$LD -v 2>&1` in
   8798  1.1  christos         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   8799  1.1  christos 	ld_shlibs=no
   8800  1.1  christos 	cat <<_LT_EOF 1>&2
   8801  1.1  christos 
   8802  1.1  christos *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   8803  1.1  christos *** reliably create shared libraries on SCO systems.  Therefore, libtool
   8804  1.1  christos *** is disabling shared libraries support.  We urge you to upgrade GNU
   8805  1.1  christos *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   8806  1.1  christos *** your PATH or compiler configuration so that the native linker is
   8807  1.1  christos *** used, and then restart.
   8808  1.1  christos 
   8809  1.1  christos _LT_EOF
   8810  1.1  christos 	;;
   8811  1.1  christos 	*)
   8812  1.1  christos 	  # For security reasons, it is highly recommended that you always
   8813  1.1  christos 	  # use absolute paths for naming shared libraries, and exclude the
   8814  1.1  christos 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   8815  1.1  christos 	  # requires that you compile everything twice, which is a pain.
   8816  1.1  christos 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8817  1.1  christos 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8818  1.1  christos 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8819  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'
   8820  1.1  christos 	  else
   8821  1.1  christos 	    ld_shlibs=no
   8822  1.1  christos 	  fi
   8823  1.1  christos 	;;
   8824  1.1  christos       esac
   8825  1.1  christos       ;;
   8826  1.1  christos 
   8827  1.1  christos     sunos4*)
   8828  1.1  christos       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8829  1.1  christos       wlarc=
   8830  1.1  christos       hardcode_direct=yes
   8831  1.1  christos       hardcode_shlibpath_var=no
   8832  1.1  christos       ;;
   8833  1.1  christos 
   8834  1.1  christos     *)
   8835  1.1  christos       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8836  1.1  christos 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8837  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'
   8838  1.1  christos       else
   8839  1.1  christos 	ld_shlibs=no
   8840  1.1  christos       fi
   8841  1.1  christos       ;;
   8842  1.1  christos     esac
   8843  1.1  christos 
   8844  1.1  christos     if test no = "$ld_shlibs"; then
   8845  1.1  christos       runpath_var=
   8846  1.1  christos       hardcode_libdir_flag_spec=
   8847  1.1  christos       export_dynamic_flag_spec=
   8848  1.1  christos       whole_archive_flag_spec=
   8849  1.1  christos     fi
   8850  1.1  christos   else
   8851  1.1  christos     # PORTME fill in a description of your system's linker (not GNU ld)
   8852  1.1  christos     case $host_os in
   8853  1.1  christos     aix3*)
   8854  1.1  christos       allow_undefined_flag=unsupported
   8855  1.1  christos       always_export_symbols=yes
   8856  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'
   8857  1.1  christos       # Note: this linker hardcodes the directories in LIBPATH if there
   8858  1.1  christos       # are no directories specified by -L.
   8859  1.1  christos       hardcode_minus_L=yes
   8860  1.1  christos       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   8861  1.1  christos 	# Neither direct hardcoding nor static linking is supported with a
   8862  1.1  christos 	# broken collect2.
   8863  1.1  christos 	hardcode_direct=unsupported
   8864  1.1  christos       fi
   8865  1.1  christos       ;;
   8866  1.1  christos 
   8867  1.1  christos     aix[4-9]*)
   8868  1.1  christos       if test ia64 = "$host_cpu"; then
   8869  1.1  christos 	# On IA64, the linker does run time linking by default, so we don't
   8870  1.1  christos 	# have to do anything special.
   8871  1.1  christos 	aix_use_runtimelinking=no
   8872  1.1  christos 	exp_sym_flag='-Bexport'
   8873  1.1  christos 	no_entry_flag=
   8874  1.1  christos       else
   8875  1.1  christos 	# If we're using GNU nm, then we don't want the "-C" option.
   8876  1.1  christos 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   8877  1.1  christos 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   8878  1.1  christos 	# weak defined symbols like other global defined symbols, whereas
   8879  1.1  christos 	# GNU nm marks them as "W".
   8880  1.1  christos 	# While the 'weak' keyword is ignored in the Export File, we need
   8881  1.1  christos 	# it in the Import File for the 'aix-soname' feature, so we have
   8882  1.1  christos 	# to replace the "-B" option with "-P" for AIX nm.
   8883  1.1  christos 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   8884  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'
   8885  1.1  christos 	else
   8886  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'
   8887  1.1  christos 	fi
   8888  1.1  christos 	aix_use_runtimelinking=no
   8889  1.1  christos 
   8890  1.1  christos 	# Test if we are trying to use run time linking or normal
   8891  1.1  christos 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   8892  1.1  christos 	# have runtime linking enabled, and use it for executables.
   8893  1.1  christos 	# For shared libraries, we enable/disable runtime linking
   8894  1.1  christos 	# depending on the kind of the shared library created -
   8895  1.1  christos 	# when "with_aix_soname,aix_use_runtimelinking" is:
   8896  1.1  christos 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   8897  1.1  christos 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   8898  1.1  christos 	#            lib.a           static archive
   8899  1.1  christos 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   8900  1.1  christos 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   8901  1.1  christos 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   8902  1.1  christos 	#            lib.a(lib.so.V) shared, rtl:no
   8903  1.1  christos 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   8904  1.1  christos 	#            lib.a           static archive
   8905  1.1  christos 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   8906  1.1  christos 	  for ld_flag in $LDFLAGS; do
   8907  1.1  christos 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   8908  1.1  christos 	    aix_use_runtimelinking=yes
   8909  1.1  christos 	    break
   8910  1.1  christos 	  fi
   8911  1.1  christos 	  done
   8912  1.1  christos 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   8913  1.1  christos 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   8914  1.1  christos 	    # so we don't have lib.a shared libs to link our executables.
   8915  1.1  christos 	    # We have to force runtime linking in this case.
   8916  1.1  christos 	    aix_use_runtimelinking=yes
   8917  1.1  christos 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   8918  1.1  christos 	  fi
   8919  1.1  christos 	  ;;
   8920  1.1  christos 	esac
   8921  1.1  christos 
   8922  1.1  christos 	exp_sym_flag='-bexport'
   8923  1.1  christos 	no_entry_flag='-bnoentry'
   8924  1.1  christos       fi
   8925  1.1  christos 
   8926  1.1  christos       # When large executables or shared objects are built, AIX ld can
   8927  1.1  christos       # have problems creating the table of contents.  If linking a library
   8928  1.1  christos       # or program results in "error TOC overflow" add -mminimal-toc to
   8929  1.1  christos       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   8930  1.1  christos       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   8931  1.1  christos 
   8932  1.1  christos       archive_cmds=''
   8933  1.1  christos       hardcode_direct=yes
   8934  1.1  christos       hardcode_direct_absolute=yes
   8935  1.1  christos       hardcode_libdir_separator=':'
   8936  1.1  christos       link_all_deplibs=yes
   8937  1.1  christos       file_list_spec='$wl-f,'
   8938  1.1  christos       case $with_aix_soname,$aix_use_runtimelinking in
   8939  1.1  christos       aix,*) ;; # traditional, no import file
   8940  1.1  christos       svr4,* | *,yes) # use import file
   8941  1.1  christos 	# The Import File defines what to hardcode.
   8942  1.1  christos 	hardcode_direct=no
   8943  1.1  christos 	hardcode_direct_absolute=no
   8944  1.1  christos 	;;
   8945  1.1  christos       esac
   8946  1.1  christos 
   8947  1.1  christos       if test yes = "$GCC"; then
   8948  1.1  christos 	case $host_os in aix4.[012]|aix4.[012].*)
   8949  1.1  christos 	# We only want to do this on AIX 4.2 and lower, the check
   8950  1.1  christos 	# below for broken collect2 doesn't work under 4.3+
   8951  1.1  christos 	  collect2name=`$CC -print-prog-name=collect2`
   8952  1.1  christos 	  if test -f "$collect2name" &&
   8953  1.1  christos 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   8954  1.1  christos 	  then
   8955  1.1  christos 	  # We have reworked collect2
   8956  1.1  christos 	  :
   8957  1.1  christos 	  else
   8958  1.1  christos 	  # We have old collect2
   8959  1.1  christos 	  hardcode_direct=unsupported
   8960  1.1  christos 	  # It fails to find uninstalled libraries when the uninstalled
   8961  1.1  christos 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   8962  1.1  christos 	  # to unsupported forces relinking
   8963  1.1  christos 	  hardcode_minus_L=yes
   8964  1.1  christos 	  hardcode_libdir_flag_spec='-L$libdir'
   8965  1.1  christos 	  hardcode_libdir_separator=
   8966  1.1  christos 	  fi
   8967  1.1  christos 	  ;;
   8968  1.1  christos 	esac
   8969  1.1  christos 	shared_flag='-shared'
   8970  1.1  christos 	if test yes = "$aix_use_runtimelinking"; then
   8971  1.1  christos 	  shared_flag="$shared_flag "'$wl-G'
   8972  1.1  christos 	fi
   8973  1.1  christos 	# Need to ensure runtime linking is disabled for the traditional
   8974  1.1  christos 	# shared library, or the linker may eventually find shared libraries
   8975  1.1  christos 	# /with/ Import File - we do not want to mix them.
   8976  1.1  christos 	shared_flag_aix='-shared'
   8977  1.1  christos 	shared_flag_svr4='-shared $wl-G'
   8978  1.1  christos       else
   8979  1.1  christos 	# not using gcc
   8980  1.1  christos 	if test ia64 = "$host_cpu"; then
   8981  1.1  christos 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   8982  1.1  christos 	# chokes on -Wl,-G. The following line is correct:
   8983  1.1  christos 	  shared_flag='-G'
   8984  1.1  christos 	else
   8985  1.1  christos 	  if test yes = "$aix_use_runtimelinking"; then
   8986  1.1  christos 	    shared_flag='$wl-G'
   8987  1.1  christos 	  else
   8988  1.1  christos 	    shared_flag='$wl-bM:SRE'
   8989  1.1  christos 	  fi
   8990  1.1  christos 	  shared_flag_aix='$wl-bM:SRE'
   8991  1.1  christos 	  shared_flag_svr4='$wl-G'
   8992  1.1  christos 	fi
   8993  1.1  christos       fi
   8994  1.1  christos 
   8995  1.1  christos       export_dynamic_flag_spec='$wl-bexpall'
   8996  1.1  christos       # It seems that -bexpall does not export symbols beginning with
   8997  1.1  christos       # underscore (_), so it is better to generate a list of symbols to export.
   8998  1.1  christos       always_export_symbols=yes
   8999  1.1  christos       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   9000  1.1  christos 	# Warning - without using the other runtime loading flags (-brtl),
   9001  1.1  christos 	# -berok will link without error, but may produce a broken library.
   9002  1.1  christos 	allow_undefined_flag='-berok'
   9003  1.1  christos         # Determine the default libpath from the value encoded in an
   9004  1.1  christos         # empty executable.
   9005  1.1  christos         if test set = "${lt_cv_aix_libpath+set}"; then
   9006  1.1  christos   aix_libpath=$lt_cv_aix_libpath
   9007  1.1  christos else
   9008  1.1  christos   if ${lt_cv_aix_libpath_+:} false; then :
   9009  1.1  christos   $as_echo_n "(cached) " >&6
   9010  1.1  christos else
   9011  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9012  1.1  christos /* end confdefs.h.  */
   9013  1.1  christos 
   9014  1.1  christos int
   9015  1.1  christos main ()
   9016  1.1  christos {
   9017  1.1  christos 
   9018  1.1  christos   ;
   9019  1.1  christos   return 0;
   9020  1.1  christos }
   9021  1.1  christos _ACEOF
   9022  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   9023  1.1  christos 
   9024  1.1  christos   lt_aix_libpath_sed='
   9025  1.1  christos       /Import File Strings/,/^$/ {
   9026  1.1  christos 	  /^0/ {
   9027  1.1  christos 	      s/^0  *\([^ ]*\) *$/\1/
   9028  1.1  christos 	      p
   9029  1.1  christos 	  }
   9030  1.1  christos       }'
   9031  1.1  christos   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9032  1.1  christos   # Check for a 64-bit object if we didn't find anything.
   9033  1.1  christos   if test -z "$lt_cv_aix_libpath_"; then
   9034  1.1  christos     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9035  1.1  christos   fi
   9036  1.1  christos fi
   9037  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   9038  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   9039  1.1  christos   if test -z "$lt_cv_aix_libpath_"; then
   9040  1.1  christos     lt_cv_aix_libpath_=/usr/lib:/lib
   9041  1.1  christos   fi
   9042  1.1  christos 
   9043  1.1  christos fi
   9044  1.1  christos 
   9045  1.1  christos   aix_libpath=$lt_cv_aix_libpath_
   9046  1.1  christos fi
   9047  1.1  christos 
   9048  1.1  christos         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9049  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
   9050  1.1  christos       else
   9051  1.1  christos 	if test ia64 = "$host_cpu"; then
   9052  1.1  christos 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9053  1.1  christos 	  allow_undefined_flag="-z nodefs"
   9054  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"
   9055  1.1  christos 	else
   9056  1.1  christos 	 # Determine the default libpath from the value encoded in an
   9057  1.1  christos 	 # empty executable.
   9058  1.1  christos 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9059  1.1  christos   aix_libpath=$lt_cv_aix_libpath
   9060  1.1  christos else
   9061  1.1  christos   if ${lt_cv_aix_libpath_+:} false; then :
   9062  1.1  christos   $as_echo_n "(cached) " >&6
   9063  1.1  christos else
   9064  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9065  1.1  christos /* end confdefs.h.  */
   9066  1.1  christos 
   9067  1.1  christos int
   9068  1.1  christos main ()
   9069  1.1  christos {
   9070  1.1  christos 
   9071  1.1  christos   ;
   9072  1.1  christos   return 0;
   9073  1.1  christos }
   9074  1.1  christos _ACEOF
   9075  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   9076  1.1  christos 
   9077  1.1  christos   lt_aix_libpath_sed='
   9078  1.1  christos       /Import File Strings/,/^$/ {
   9079  1.1  christos 	  /^0/ {
   9080  1.1  christos 	      s/^0  *\([^ ]*\) *$/\1/
   9081  1.1  christos 	      p
   9082  1.1  christos 	  }
   9083  1.1  christos       }'
   9084  1.1  christos   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9085  1.1  christos   # Check for a 64-bit object if we didn't find anything.
   9086  1.1  christos   if test -z "$lt_cv_aix_libpath_"; then
   9087  1.1  christos     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9088  1.1  christos   fi
   9089  1.1  christos fi
   9090  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   9091  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   9092  1.1  christos   if test -z "$lt_cv_aix_libpath_"; then
   9093  1.1  christos     lt_cv_aix_libpath_=/usr/lib:/lib
   9094  1.1  christos   fi
   9095  1.1  christos 
   9096  1.1  christos fi
   9097  1.1  christos 
   9098  1.1  christos   aix_libpath=$lt_cv_aix_libpath_
   9099  1.1  christos fi
   9100  1.1  christos 
   9101  1.1  christos 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9102  1.1  christos 	  # Warning - without using the other run time loading flags,
   9103  1.1  christos 	  # -berok will link without error, but may produce a broken library.
   9104  1.1  christos 	  no_undefined_flag=' $wl-bernotok'
   9105  1.1  christos 	  allow_undefined_flag=' $wl-berok'
   9106  1.1  christos 	  if test yes = "$with_gnu_ld"; then
   9107  1.1  christos 	    # We only use this code for GNU lds that support --whole-archive.
   9108  1.1  christos 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9109  1.1  christos 	  else
   9110  1.1  christos 	    # Exported symbols can be pulled into shared objects from archives
   9111  1.1  christos 	    whole_archive_flag_spec='$convenience'
   9112  1.1  christos 	  fi
   9113  1.1  christos 	  archive_cmds_need_lc=yes
   9114  1.1  christos 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9115  1.1  christos 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9116  1.1  christos 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9117  1.1  christos 	  if test svr4 != "$with_aix_soname"; then
   9118  1.1  christos 	    # This is similar to how AIX traditionally builds its shared libraries.
   9119  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'
   9120  1.1  christos 	  fi
   9121  1.1  christos 	  if test aix != "$with_aix_soname"; then
   9122  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'
   9123  1.1  christos 	  else
   9124  1.1  christos 	    # used by -dlpreopen to get the symbols
   9125  1.1  christos 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9126  1.1  christos 	  fi
   9127  1.1  christos 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9128  1.1  christos 	fi
   9129  1.1  christos       fi
   9130  1.1  christos       ;;
   9131  1.1  christos 
   9132  1.1  christos     amigaos*)
   9133  1.1  christos       case $host_cpu in
   9134  1.1  christos       powerpc)
   9135  1.1  christos             # see comment about AmigaOS4 .so support
   9136  1.1  christos             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9137  1.1  christos             archive_expsym_cmds=''
   9138  1.1  christos         ;;
   9139  1.1  christos       m68k)
   9140  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)'
   9141  1.1  christos             hardcode_libdir_flag_spec='-L$libdir'
   9142  1.1  christos             hardcode_minus_L=yes
   9143  1.1  christos         ;;
   9144  1.1  christos       esac
   9145  1.1  christos       ;;
   9146  1.1  christos 
   9147  1.1  christos     bsdi[45]*)
   9148  1.1  christos       export_dynamic_flag_spec=-rdynamic
   9149  1.1  christos       ;;
   9150  1.1  christos 
   9151  1.1  christos     cygwin* | mingw* | pw32* | cegcc*)
   9152  1.1  christos       # When not using gcc, we currently assume that we are using
   9153  1.1  christos       # Microsoft Visual C++.
   9154  1.1  christos       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9155  1.1  christos       # no search path for DLLs.
   9156  1.1  christos       case $cc_basename in
   9157  1.1  christos       cl*)
   9158  1.1  christos 	# Native MSVC
   9159  1.1  christos 	hardcode_libdir_flag_spec=' '
   9160  1.1  christos 	allow_undefined_flag=unsupported
   9161  1.1  christos 	always_export_symbols=yes
   9162  1.1  christos 	file_list_spec='@'
   9163  1.1  christos 	# Tell ltmain to make .lib files, not .a files.
   9164  1.1  christos 	libext=lib
   9165  1.1  christos 	# Tell ltmain to make .dll files, not .so files.
   9166  1.1  christos 	shrext_cmds=.dll
   9167  1.1  christos 	# FIXME: Setting linknames here is a bad hack.
   9168  1.1  christos 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9169  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
   9170  1.1  christos             cp "$export_symbols" "$output_objdir/$soname.def";
   9171  1.1  christos             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9172  1.1  christos           else
   9173  1.1  christos             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9174  1.1  christos           fi~
   9175  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"~
   9176  1.1  christos           linknames='
   9177  1.1  christos 	# The linker will not automatically build a static lib if we build a DLL.
   9178  1.1  christos 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9179  1.1  christos 	enable_shared_with_static_runtimes=yes
   9180  1.1  christos 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9181  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'
   9182  1.1  christos 	# Don't use ranlib
   9183  1.1  christos 	old_postinstall_cmds='chmod 644 $oldlib'
   9184  1.1  christos 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9185  1.1  christos           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9186  1.1  christos           case $lt_outputfile in
   9187  1.1  christos             *.exe|*.EXE) ;;
   9188  1.1  christos             *)
   9189  1.1  christos               lt_outputfile=$lt_outputfile.exe
   9190  1.1  christos               lt_tool_outputfile=$lt_tool_outputfile.exe
   9191  1.1  christos               ;;
   9192  1.1  christos           esac~
   9193  1.1  christos           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9194  1.1  christos             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9195  1.1  christos             $RM "$lt_outputfile.manifest";
   9196  1.1  christos           fi'
   9197  1.1  christos 	;;
   9198  1.1  christos       *)
   9199  1.1  christos 	# Assume MSVC wrapper
   9200  1.1  christos 	hardcode_libdir_flag_spec=' '
   9201  1.1  christos 	allow_undefined_flag=unsupported
   9202  1.1  christos 	# Tell ltmain to make .lib files, not .a files.
   9203  1.1  christos 	libext=lib
   9204  1.1  christos 	# Tell ltmain to make .dll files, not .so files.
   9205  1.1  christos 	shrext_cmds=.dll
   9206  1.1  christos 	# FIXME: Setting linknames here is a bad hack.
   9207  1.1  christos 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9208  1.1  christos 	# The linker will automatically build a .lib file if we build a DLL.
   9209  1.1  christos 	old_archive_from_new_cmds='true'
   9210  1.1  christos 	# FIXME: Should let the user specify the lib program.
   9211  1.1  christos 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9212  1.1  christos 	enable_shared_with_static_runtimes=yes
   9213  1.1  christos 	;;
   9214  1.1  christos       esac
   9215  1.1  christos       ;;
   9216  1.1  christos 
   9217  1.1  christos     darwin* | rhapsody*)
   9218  1.1  christos 
   9219  1.1  christos 
   9220  1.1  christos   archive_cmds_need_lc=no
   9221  1.1  christos   hardcode_direct=no
   9222  1.1  christos   hardcode_automatic=yes
   9223  1.1  christos   hardcode_shlibpath_var=unsupported
   9224  1.1  christos   if test yes = "$lt_cv_ld_force_load"; then
   9225  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\"`'
   9226  1.1  christos 
   9227  1.1  christos   else
   9228  1.1  christos     whole_archive_flag_spec=''
   9229  1.1  christos   fi
   9230  1.1  christos   link_all_deplibs=yes
   9231  1.1  christos   allow_undefined_flag=$_lt_dar_allow_undefined
   9232  1.1  christos   case $cc_basename in
   9233  1.1  christos      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9234  1.1  christos      *) _lt_dar_can_shared=$GCC ;;
   9235  1.1  christos   esac
   9236  1.1  christos   if test yes = "$_lt_dar_can_shared"; then
   9237  1.1  christos     output_verbose_link_cmd=func_echo_all
   9238  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"
   9239  1.1  christos     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9240  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"
   9241  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"
   9242  1.1  christos 
   9243  1.1  christos   else
   9244  1.1  christos   ld_shlibs=no
   9245  1.1  christos   fi
   9246  1.1  christos 
   9247  1.1  christos       ;;
   9248  1.1  christos 
   9249  1.1  christos     dgux*)
   9250  1.1  christos       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9251  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   9252  1.1  christos       hardcode_shlibpath_var=no
   9253  1.1  christos       ;;
   9254  1.1  christos 
   9255  1.1  christos     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9256  1.1  christos     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9257  1.1  christos     # does not break anything, and helps significantly (at the cost of a little
   9258  1.1  christos     # extra space).
   9259  1.1  christos     freebsd2.2*)
   9260  1.1  christos       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9261  1.1  christos       hardcode_libdir_flag_spec='-R$libdir'
   9262  1.1  christos       hardcode_direct=yes
   9263  1.1  christos       hardcode_shlibpath_var=no
   9264  1.1  christos       ;;
   9265  1.1  christos 
   9266  1.1  christos     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9267  1.1  christos     freebsd2.*)
   9268  1.1  christos       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9269  1.1  christos       hardcode_direct=yes
   9270  1.1  christos       hardcode_minus_L=yes
   9271  1.1  christos       hardcode_shlibpath_var=no
   9272  1.1  christos       ;;
   9273  1.1  christos 
   9274  1.1  christos     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9275  1.1  christos     freebsd* | dragonfly*)
   9276  1.1  christos       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9277  1.1  christos       hardcode_libdir_flag_spec='-R$libdir'
   9278  1.1  christos       hardcode_direct=yes
   9279  1.1  christos       hardcode_shlibpath_var=no
   9280  1.1  christos       ;;
   9281  1.1  christos 
   9282  1.1  christos     hpux9*)
   9283  1.1  christos       if test yes = "$GCC"; then
   9284  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'
   9285  1.1  christos       else
   9286  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'
   9287  1.1  christos       fi
   9288  1.1  christos       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9289  1.1  christos       hardcode_libdir_separator=:
   9290  1.1  christos       hardcode_direct=yes
   9291  1.1  christos 
   9292  1.1  christos       # hardcode_minus_L: Not really in the search PATH,
   9293  1.1  christos       # but as the default location of the library.
   9294  1.1  christos       hardcode_minus_L=yes
   9295  1.1  christos       export_dynamic_flag_spec='$wl-E'
   9296  1.1  christos       ;;
   9297  1.1  christos 
   9298  1.1  christos     hpux10*)
   9299  1.1  christos       if test yes,no = "$GCC,$with_gnu_ld"; then
   9300  1.1  christos 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9301  1.1  christos       else
   9302  1.1  christos 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9303  1.1  christos       fi
   9304  1.1  christos       if test no = "$with_gnu_ld"; then
   9305  1.1  christos 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9306  1.1  christos 	hardcode_libdir_separator=:
   9307  1.1  christos 	hardcode_direct=yes
   9308  1.1  christos 	hardcode_direct_absolute=yes
   9309  1.1  christos 	export_dynamic_flag_spec='$wl-E'
   9310  1.1  christos 	# hardcode_minus_L: Not really in the search PATH,
   9311  1.1  christos 	# but as the default location of the library.
   9312  1.1  christos 	hardcode_minus_L=yes
   9313  1.1  christos       fi
   9314  1.1  christos       ;;
   9315  1.1  christos 
   9316  1.1  christos     hpux11*)
   9317  1.1  christos       if test yes,no = "$GCC,$with_gnu_ld"; then
   9318  1.1  christos 	case $host_cpu in
   9319  1.1  christos 	hppa*64*)
   9320  1.1  christos 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9321  1.1  christos 	  ;;
   9322  1.1  christos 	ia64*)
   9323  1.1  christos 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9324  1.1  christos 	  ;;
   9325  1.1  christos 	*)
   9326  1.1  christos 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9327  1.1  christos 	  ;;
   9328  1.1  christos 	esac
   9329  1.1  christos       else
   9330  1.1  christos 	case $host_cpu in
   9331  1.1  christos 	hppa*64*)
   9332  1.1  christos 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9333  1.1  christos 	  ;;
   9334  1.1  christos 	ia64*)
   9335  1.1  christos 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9336  1.1  christos 	  ;;
   9337  1.1  christos 	*)
   9338  1.1  christos 
   9339  1.1  christos 	  # Older versions of the 11.00 compiler do not understand -b yet
   9340  1.1  christos 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9341  1.1  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9342  1.1  christos $as_echo_n "checking if $CC understands -b... " >&6; }
   9343  1.1  christos if ${lt_cv_prog_compiler__b+:} false; then :
   9344  1.1  christos   $as_echo_n "(cached) " >&6
   9345  1.1  christos else
   9346  1.1  christos   lt_cv_prog_compiler__b=no
   9347  1.1  christos    save_LDFLAGS=$LDFLAGS
   9348  1.1  christos    LDFLAGS="$LDFLAGS -b"
   9349  1.1  christos    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9350  1.1  christos    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9351  1.1  christos      # The linker can only warn and ignore the option if not recognized
   9352  1.1  christos      # So say no if there are warnings
   9353  1.1  christos      if test -s conftest.err; then
   9354  1.1  christos        # Append any errors to the config.log.
   9355  1.1  christos        cat conftest.err 1>&5
   9356  1.1  christos        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9357  1.1  christos        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9358  1.1  christos        if diff conftest.exp conftest.er2 >/dev/null; then
   9359  1.1  christos          lt_cv_prog_compiler__b=yes
   9360  1.1  christos        fi
   9361  1.1  christos      else
   9362  1.1  christos        lt_cv_prog_compiler__b=yes
   9363  1.1  christos      fi
   9364  1.1  christos    fi
   9365  1.1  christos    $RM -r conftest*
   9366  1.1  christos    LDFLAGS=$save_LDFLAGS
   9367  1.1  christos 
   9368  1.1  christos fi
   9369  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9370  1.1  christos $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9371  1.1  christos 
   9372  1.1  christos if test yes = "$lt_cv_prog_compiler__b"; then
   9373  1.1  christos     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9374  1.1  christos else
   9375  1.1  christos     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9376  1.1  christos fi
   9377  1.1  christos 
   9378  1.1  christos 	  ;;
   9379  1.1  christos 	esac
   9380  1.1  christos       fi
   9381  1.1  christos       if test no = "$with_gnu_ld"; then
   9382  1.1  christos 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9383  1.1  christos 	hardcode_libdir_separator=:
   9384  1.1  christos 
   9385  1.1  christos 	case $host_cpu in
   9386  1.1  christos 	hppa*64*|ia64*)
   9387  1.1  christos 	  hardcode_direct=no
   9388  1.1  christos 	  hardcode_shlibpath_var=no
   9389  1.1  christos 	  ;;
   9390  1.1  christos 	*)
   9391  1.1  christos 	  hardcode_direct=yes
   9392  1.1  christos 	  hardcode_direct_absolute=yes
   9393  1.1  christos 	  export_dynamic_flag_spec='$wl-E'
   9394  1.1  christos 
   9395  1.1  christos 	  # hardcode_minus_L: Not really in the search PATH,
   9396  1.1  christos 	  # but as the default location of the library.
   9397  1.1  christos 	  hardcode_minus_L=yes
   9398  1.1  christos 	  ;;
   9399  1.1  christos 	esac
   9400  1.1  christos       fi
   9401  1.1  christos       ;;
   9402  1.1  christos 
   9403  1.1  christos     irix5* | irix6* | nonstopux*)
   9404  1.1  christos       if test yes = "$GCC"; then
   9405  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'
   9406  1.1  christos 	# Try to use the -exported_symbol ld option, if it does not
   9407  1.1  christos 	# work, assume that -exports_file does not work either and
   9408  1.1  christos 	# implicitly export all symbols.
   9409  1.1  christos 	# This should be the same for all languages, so no per-tag cache variable.
   9410  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9411  1.1  christos $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9412  1.1  christos if ${lt_cv_irix_exported_symbol+:} false; then :
   9413  1.1  christos   $as_echo_n "(cached) " >&6
   9414  1.1  christos else
   9415  1.1  christos   save_LDFLAGS=$LDFLAGS
   9416  1.1  christos 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9417  1.1  christos 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9418  1.1  christos /* end confdefs.h.  */
   9419  1.1  christos int foo (void) { return 0; }
   9420  1.1  christos _ACEOF
   9421  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   9422  1.1  christos   lt_cv_irix_exported_symbol=yes
   9423  1.1  christos else
   9424  1.1  christos   lt_cv_irix_exported_symbol=no
   9425  1.1  christos fi
   9426  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   9427  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   9428  1.1  christos            LDFLAGS=$save_LDFLAGS
   9429  1.1  christos fi
   9430  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9431  1.1  christos $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9432  1.1  christos 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9433  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'
   9434  1.1  christos 	fi
   9435  1.1  christos       else
   9436  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'
   9437  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'
   9438  1.1  christos       fi
   9439  1.1  christos       archive_cmds_need_lc='no'
   9440  1.1  christos       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9441  1.1  christos       hardcode_libdir_separator=:
   9442  1.1  christos       inherit_rpath=yes
   9443  1.1  christos       link_all_deplibs=yes
   9444  1.1  christos       ;;
   9445  1.1  christos 
   9446  1.1  christos     linux*)
   9447  1.1  christos       case $cc_basename in
   9448  1.1  christos       tcc*)
   9449  1.1  christos 	# Fabrice Bellard et al's Tiny C Compiler
   9450  1.1  christos 	ld_shlibs=yes
   9451  1.1  christos 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9452  1.1  christos 	;;
   9453  1.1  christos       esac
   9454  1.1  christos       ;;
   9455  1.1  christos 
   9456  1.1  christos     netbsd*)
   9457  1.1  christos       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9458  1.1  christos 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9459  1.1  christos       else
   9460  1.1  christos 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9461  1.1  christos       fi
   9462  1.1  christos       hardcode_libdir_flag_spec='-R$libdir'
   9463  1.1  christos       hardcode_direct=yes
   9464  1.1  christos       hardcode_shlibpath_var=no
   9465  1.1  christos       ;;
   9466  1.1  christos 
   9467  1.1  christos     newsos6)
   9468  1.1  christos       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9469  1.1  christos       hardcode_direct=yes
   9470  1.1  christos       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9471  1.1  christos       hardcode_libdir_separator=:
   9472  1.1  christos       hardcode_shlibpath_var=no
   9473  1.1  christos       ;;
   9474  1.1  christos 
   9475  1.1  christos     *nto* | *qnx*)
   9476  1.1  christos       ;;
   9477  1.1  christos 
   9478  1.1  christos     openbsd* | bitrig*)
   9479  1.1  christos       if test -f /usr/libexec/ld.so; then
   9480  1.1  christos 	hardcode_direct=yes
   9481  1.1  christos 	hardcode_shlibpath_var=no
   9482  1.1  christos 	hardcode_direct_absolute=yes
   9483  1.1  christos 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9484  1.1  christos 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9485  1.1  christos 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9486  1.1  christos 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9487  1.1  christos 	  export_dynamic_flag_spec='$wl-E'
   9488  1.1  christos 	else
   9489  1.1  christos 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9490  1.1  christos 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9491  1.1  christos 	fi
   9492  1.1  christos       else
   9493  1.1  christos 	ld_shlibs=no
   9494  1.1  christos       fi
   9495  1.1  christos       ;;
   9496  1.1  christos 
   9497  1.1  christos     os2*)
   9498  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   9499  1.1  christos       hardcode_minus_L=yes
   9500  1.1  christos       allow_undefined_flag=unsupported
   9501  1.1  christos       shrext_cmds=.dll
   9502  1.1  christos       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9503  1.1  christos 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9504  1.1  christos 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9505  1.1  christos 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9506  1.1  christos 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9507  1.1  christos 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9508  1.1  christos 	emximp -o $lib $output_objdir/$libname.def'
   9509  1.1  christos       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9510  1.1  christos 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9511  1.1  christos 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9512  1.1  christos 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9513  1.1  christos 	prefix_cmds="$SED"~
   9514  1.1  christos 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9515  1.1  christos 	  prefix_cmds="$prefix_cmds -e 1d";
   9516  1.1  christos 	fi~
   9517  1.1  christos 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9518  1.1  christos 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9519  1.1  christos 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9520  1.1  christos 	emximp -o $lib $output_objdir/$libname.def'
   9521  1.1  christos       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9522  1.1  christos       enable_shared_with_static_runtimes=yes
   9523  1.1  christos       ;;
   9524  1.1  christos 
   9525  1.1  christos     osf3*)
   9526  1.1  christos       if test yes = "$GCC"; then
   9527  1.1  christos 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9528  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'
   9529  1.1  christos       else
   9530  1.1  christos 	allow_undefined_flag=' -expect_unresolved \*'
   9531  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'
   9532  1.1  christos       fi
   9533  1.1  christos       archive_cmds_need_lc='no'
   9534  1.1  christos       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9535  1.1  christos       hardcode_libdir_separator=:
   9536  1.1  christos       ;;
   9537  1.1  christos 
   9538  1.1  christos     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9539  1.1  christos       if test yes = "$GCC"; then
   9540  1.1  christos 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9541  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'
   9542  1.1  christos 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9543  1.1  christos       else
   9544  1.1  christos 	allow_undefined_flag=' -expect_unresolved \*'
   9545  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'
   9546  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~
   9547  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'
   9548  1.1  christos 
   9549  1.1  christos 	# Both c and cxx compiler support -rpath directly
   9550  1.1  christos 	hardcode_libdir_flag_spec='-rpath $libdir'
   9551  1.1  christos       fi
   9552  1.1  christos       archive_cmds_need_lc='no'
   9553  1.1  christos       hardcode_libdir_separator=:
   9554  1.1  christos       ;;
   9555  1.1  christos 
   9556  1.1  christos     solaris*)
   9557  1.1  christos       no_undefined_flag=' -z defs'
   9558  1.1  christos       if test yes = "$GCC"; then
   9559  1.1  christos 	wlarc='$wl'
   9560  1.1  christos 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9561  1.1  christos 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9562  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'
   9563  1.1  christos       else
   9564  1.1  christos 	case `$CC -V 2>&1` in
   9565  1.1  christos 	*"Compilers 5.0"*)
   9566  1.1  christos 	  wlarc=''
   9567  1.1  christos 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9568  1.1  christos 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9569  1.1  christos             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9570  1.1  christos 	  ;;
   9571  1.1  christos 	*)
   9572  1.1  christos 	  wlarc='$wl'
   9573  1.1  christos 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9574  1.1  christos 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9575  1.1  christos             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9576  1.1  christos 	  ;;
   9577  1.1  christos 	esac
   9578  1.1  christos       fi
   9579  1.1  christos       hardcode_libdir_flag_spec='-R$libdir'
   9580  1.1  christos       hardcode_shlibpath_var=no
   9581  1.1  christos       case $host_os in
   9582  1.1  christos       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9583  1.1  christos       *)
   9584  1.1  christos 	# The compiler driver will combine and reorder linker options,
   9585  1.1  christos 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9586  1.1  christos 	# but is careful enough not to reorder.
   9587  1.1  christos 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9588  1.1  christos 	if test yes = "$GCC"; then
   9589  1.1  christos 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9590  1.1  christos 	else
   9591  1.1  christos 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9592  1.1  christos 	fi
   9593  1.1  christos 	;;
   9594  1.1  christos       esac
   9595  1.1  christos       link_all_deplibs=yes
   9596  1.1  christos       ;;
   9597  1.1  christos 
   9598  1.1  christos     sunos4*)
   9599  1.1  christos       if test sequent = "$host_vendor"; then
   9600  1.1  christos 	# Use $CC to link under sequent, because it throws in some extra .o
   9601  1.1  christos 	# files that make .init and .fini sections work.
   9602  1.1  christos 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9603  1.1  christos       else
   9604  1.1  christos 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9605  1.1  christos       fi
   9606  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   9607  1.1  christos       hardcode_direct=yes
   9608  1.1  christos       hardcode_minus_L=yes
   9609  1.1  christos       hardcode_shlibpath_var=no
   9610  1.1  christos       ;;
   9611  1.1  christos 
   9612  1.1  christos     sysv4)
   9613  1.1  christos       case $host_vendor in
   9614  1.1  christos 	sni)
   9615  1.1  christos 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9616  1.1  christos 	  hardcode_direct=yes # is this really true???
   9617  1.1  christos 	;;
   9618  1.1  christos 	siemens)
   9619  1.1  christos 	  ## LD is ld it makes a PLAMLIB
   9620  1.1  christos 	  ## CC just makes a GrossModule.
   9621  1.1  christos 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   9622  1.1  christos 	  reload_cmds='$CC -r -o $output$reload_objs'
   9623  1.1  christos 	  hardcode_direct=no
   9624  1.1  christos         ;;
   9625  1.1  christos 	motorola)
   9626  1.1  christos 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9627  1.1  christos 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   9628  1.1  christos 	;;
   9629  1.1  christos       esac
   9630  1.1  christos       runpath_var='LD_RUN_PATH'
   9631  1.1  christos       hardcode_shlibpath_var=no
   9632  1.1  christos       ;;
   9633  1.1  christos 
   9634  1.1  christos     sysv4.3*)
   9635  1.1  christos       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9636  1.1  christos       hardcode_shlibpath_var=no
   9637  1.1  christos       export_dynamic_flag_spec='-Bexport'
   9638  1.1  christos       ;;
   9639  1.1  christos 
   9640  1.1  christos     sysv4*MP*)
   9641  1.1  christos       if test -d /usr/nec; then
   9642  1.1  christos 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9643  1.1  christos 	hardcode_shlibpath_var=no
   9644  1.1  christos 	runpath_var=LD_RUN_PATH
   9645  1.1  christos 	hardcode_runpath_var=yes
   9646  1.1  christos 	ld_shlibs=yes
   9647  1.1  christos       fi
   9648  1.1  christos       ;;
   9649  1.1  christos 
   9650  1.1  christos     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   9651  1.1  christos       no_undefined_flag='$wl-z,text'
   9652  1.1  christos       archive_cmds_need_lc=no
   9653  1.1  christos       hardcode_shlibpath_var=no
   9654  1.1  christos       runpath_var='LD_RUN_PATH'
   9655  1.1  christos 
   9656  1.1  christos       if test yes = "$GCC"; then
   9657  1.1  christos 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9658  1.1  christos 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9659  1.1  christos       else
   9660  1.1  christos 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9661  1.1  christos 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9662  1.1  christos       fi
   9663  1.1  christos       ;;
   9664  1.1  christos 
   9665  1.1  christos     sysv5* | sco3.2v5* | sco5v6*)
   9666  1.1  christos       # Note: We CANNOT use -z defs as we might desire, because we do not
   9667  1.1  christos       # link with -lc, and that would cause any symbols used from libc to
   9668  1.1  christos       # always be unresolved, which means just about no library would
   9669  1.1  christos       # ever link correctly.  If we're not using GNU ld we use -z text
   9670  1.1  christos       # though, which does catch some bad symbols but isn't as heavy-handed
   9671  1.1  christos       # as -z defs.
   9672  1.1  christos       no_undefined_flag='$wl-z,text'
   9673  1.1  christos       allow_undefined_flag='$wl-z,nodefs'
   9674  1.1  christos       archive_cmds_need_lc=no
   9675  1.1  christos       hardcode_shlibpath_var=no
   9676  1.1  christos       hardcode_libdir_flag_spec='$wl-R,$libdir'
   9677  1.1  christos       hardcode_libdir_separator=':'
   9678  1.1  christos       link_all_deplibs=yes
   9679  1.1  christos       export_dynamic_flag_spec='$wl-Bexport'
   9680  1.1  christos       runpath_var='LD_RUN_PATH'
   9681  1.1  christos 
   9682  1.1  christos       if test yes = "$GCC"; then
   9683  1.1  christos 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9684  1.1  christos 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9685  1.1  christos       else
   9686  1.1  christos 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9687  1.1  christos 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9688  1.1  christos       fi
   9689  1.1  christos       ;;
   9690  1.1  christos 
   9691  1.1  christos     uts4*)
   9692  1.1  christos       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9693  1.1  christos       hardcode_libdir_flag_spec='-L$libdir'
   9694  1.1  christos       hardcode_shlibpath_var=no
   9695  1.1  christos       ;;
   9696  1.1  christos 
   9697  1.1  christos     *)
   9698  1.1  christos       ld_shlibs=no
   9699  1.1  christos       ;;
   9700  1.1  christos     esac
   9701  1.1  christos 
   9702  1.1  christos     if test sni = "$host_vendor"; then
   9703  1.1  christos       case $host in
   9704  1.1  christos       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   9705  1.1  christos 	export_dynamic_flag_spec='$wl-Blargedynsym'
   9706  1.1  christos 	;;
   9707  1.1  christos       esac
   9708  1.1  christos     fi
   9709  1.1  christos   fi
   9710  1.1  christos 
   9711  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   9712  1.1  christos $as_echo "$ld_shlibs" >&6; }
   9713  1.1  christos test no = "$ld_shlibs" && can_build_shared=no
   9714  1.1  christos 
   9715  1.1  christos with_gnu_ld=$with_gnu_ld
   9716  1.1  christos 
   9717  1.1  christos 
   9718  1.1  christos 
   9719  1.1  christos 
   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 # Do we need to explicitly link libc?
   9733  1.1  christos #
   9734  1.1  christos case "x$archive_cmds_need_lc" in
   9735  1.1  christos x|xyes)
   9736  1.1  christos   # Assume -lc should be added
   9737  1.1  christos   archive_cmds_need_lc=yes
   9738  1.1  christos 
   9739  1.1  christos   if test yes,yes = "$GCC,$enable_shared"; then
   9740  1.1  christos     case $archive_cmds in
   9741  1.1  christos     *'~'*)
   9742  1.1  christos       # FIXME: we may have to deal with multi-command sequences.
   9743  1.1  christos       ;;
   9744  1.1  christos     '$CC '*)
   9745  1.1  christos       # Test whether the compiler implicitly links with -lc since on some
   9746  1.1  christos       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   9747  1.1  christos       # to ld, don't add -lc before -lgcc.
   9748  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   9749  1.1  christos $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   9750  1.1  christos if ${lt_cv_archive_cmds_need_lc+:} false; then :
   9751  1.1  christos   $as_echo_n "(cached) " >&6
   9752  1.1  christos else
   9753  1.1  christos   $RM conftest*
   9754  1.1  christos 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9755  1.1  christos 
   9756  1.1  christos 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9757  1.1  christos   (eval $ac_compile) 2>&5
   9758  1.1  christos   ac_status=$?
   9759  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9760  1.1  christos   test $ac_status = 0; } 2>conftest.err; then
   9761  1.1  christos 	  soname=conftest
   9762  1.1  christos 	  lib=conftest
   9763  1.1  christos 	  libobjs=conftest.$ac_objext
   9764  1.1  christos 	  deplibs=
   9765  1.1  christos 	  wl=$lt_prog_compiler_wl
   9766  1.1  christos 	  pic_flag=$lt_prog_compiler_pic
   9767  1.1  christos 	  compiler_flags=-v
   9768  1.1  christos 	  linker_flags=-v
   9769  1.1  christos 	  verstring=
   9770  1.1  christos 	  output_objdir=.
   9771  1.1  christos 	  libname=conftest
   9772  1.1  christos 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   9773  1.1  christos 	  allow_undefined_flag=
   9774  1.1  christos 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   9775  1.1  christos   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   9776  1.1  christos   ac_status=$?
   9777  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9778  1.1  christos   test $ac_status = 0; }
   9779  1.1  christos 	  then
   9780  1.1  christos 	    lt_cv_archive_cmds_need_lc=no
   9781  1.1  christos 	  else
   9782  1.1  christos 	    lt_cv_archive_cmds_need_lc=yes
   9783  1.1  christos 	  fi
   9784  1.1  christos 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   9785  1.1  christos 	else
   9786  1.1  christos 	  cat conftest.err 1>&5
   9787  1.1  christos 	fi
   9788  1.1  christos 	$RM conftest*
   9789  1.1  christos 
   9790  1.1  christos fi
   9791  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   9792  1.1  christos $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   9793  1.1  christos       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   9794  1.1  christos       ;;
   9795  1.1  christos     esac
   9796  1.1  christos   fi
   9797  1.1  christos   ;;
   9798  1.1  christos esac
   9799  1.1  christos 
   9800  1.1  christos 
   9801  1.1  christos 
   9802  1.1  christos 
   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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   9952  1.1  christos $as_echo_n "checking dynamic linker characteristics... " >&6; }
   9953  1.1  christos 
   9954  1.1  christos if test yes = "$GCC"; then
   9955  1.1  christos   case $host_os in
   9956  1.1  christos     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   9957  1.1  christos     *) lt_awk_arg='/^libraries:/' ;;
   9958  1.1  christos   esac
   9959  1.1  christos   case $host_os in
   9960  1.1  christos     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   9961  1.1  christos     *) lt_sed_strip_eq='s|=/|/|g' ;;
   9962  1.1  christos   esac
   9963  1.1  christos   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   9964  1.1  christos   case $lt_search_path_spec in
   9965  1.1  christos   *\;*)
   9966  1.1  christos     # if the path contains ";" then we assume it to be the separator
   9967  1.1  christos     # otherwise default to the standard path separator (i.e. ":") - it is
   9968  1.1  christos     # assumed that no part of a normal pathname contains ";" but that should
   9969  1.1  christos     # okay in the real world where ";" in dirpaths is itself problematic.
   9970  1.1  christos     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   9971  1.1  christos     ;;
   9972  1.1  christos   *)
   9973  1.1  christos     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   9974  1.1  christos     ;;
   9975  1.1  christos   esac
   9976  1.1  christos   # Ok, now we have the path, separated by spaces, we can step through it
   9977  1.1  christos   # and add multilib dir if necessary...
   9978  1.1  christos   lt_tmp_lt_search_path_spec=
   9979  1.1  christos   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   9980  1.1  christos   # ...but if some path component already ends with the multilib dir we assume
   9981  1.1  christos   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   9982  1.1  christos   case "$lt_multi_os_dir; $lt_search_path_spec " in
   9983  1.1  christos   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   9984  1.1  christos     lt_multi_os_dir=
   9985  1.1  christos     ;;
   9986  1.1  christos   esac
   9987  1.1  christos   for lt_sys_path in $lt_search_path_spec; do
   9988  1.1  christos     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   9989  1.1  christos       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   9990  1.1  christos     elif test -n "$lt_multi_os_dir"; then
   9991  1.1  christos       test -d "$lt_sys_path" && \
   9992  1.1  christos 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   9993  1.1  christos     fi
   9994  1.1  christos   done
   9995  1.1  christos   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   9996  1.1  christos BEGIN {RS = " "; FS = "/|\n";} {
   9997  1.1  christos   lt_foo = "";
   9998  1.1  christos   lt_count = 0;
   9999  1.1  christos   for (lt_i = NF; lt_i > 0; lt_i--) {
   10000  1.1  christos     if ($lt_i != "" && $lt_i != ".") {
   10001  1.1  christos       if ($lt_i == "..") {
   10002  1.1  christos         lt_count++;
   10003  1.1  christos       } else {
   10004  1.1  christos         if (lt_count == 0) {
   10005  1.1  christos           lt_foo = "/" $lt_i lt_foo;
   10006  1.1  christos         } else {
   10007  1.1  christos           lt_count--;
   10008  1.1  christos         }
   10009  1.1  christos       }
   10010  1.1  christos     }
   10011  1.1  christos   }
   10012  1.1  christos   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10013  1.1  christos   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10014  1.1  christos }'`
   10015  1.1  christos   # AWK program above erroneously prepends '/' to C:/dos/paths
   10016  1.1  christos   # for these hosts.
   10017  1.1  christos   case $host_os in
   10018  1.1  christos     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10019  1.1  christos       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10020  1.1  christos   esac
   10021  1.1  christos   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10022  1.1  christos else
   10023  1.1  christos   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10024  1.1  christos fi
   10025  1.1  christos library_names_spec=
   10026  1.1  christos libname_spec='lib$name'
   10027  1.1  christos soname_spec=
   10028  1.1  christos shrext_cmds=.so
   10029  1.1  christos postinstall_cmds=
   10030  1.1  christos postuninstall_cmds=
   10031  1.1  christos finish_cmds=
   10032  1.1  christos finish_eval=
   10033  1.1  christos shlibpath_var=
   10034  1.1  christos shlibpath_overrides_runpath=unknown
   10035  1.1  christos version_type=none
   10036  1.1  christos dynamic_linker="$host_os ld.so"
   10037  1.1  christos sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10038  1.1  christos need_lib_prefix=unknown
   10039  1.1  christos hardcode_into_libs=no
   10040  1.1  christos 
   10041  1.1  christos # when you set need_version to no, make sure it does not cause -set_version
   10042  1.1  christos # flags to be left without arguments
   10043  1.1  christos need_version=unknown
   10044  1.1  christos 
   10045  1.1  christos 
   10046  1.1  christos 
   10047  1.1  christos case $host_os in
   10048  1.1  christos aix3*)
   10049  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10050  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10051  1.1  christos   shlibpath_var=LIBPATH
   10052  1.1  christos 
   10053  1.1  christos   # AIX 3 has no versioning support, so we append a major version to the name.
   10054  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10055  1.1  christos   ;;
   10056  1.1  christos 
   10057  1.1  christos aix[4-9]*)
   10058  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10059  1.1  christos   need_lib_prefix=no
   10060  1.1  christos   need_version=no
   10061  1.1  christos   hardcode_into_libs=yes
   10062  1.1  christos   if test ia64 = "$host_cpu"; then
   10063  1.1  christos     # AIX 5 supports IA64
   10064  1.1  christos     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10065  1.1  christos     shlibpath_var=LD_LIBRARY_PATH
   10066  1.1  christos   else
   10067  1.1  christos     # With GCC up to 2.95.x, collect2 would create an import file
   10068  1.1  christos     # for dependence libraries.  The import file would start with
   10069  1.1  christos     # the line '#! .'.  This would cause the generated library to
   10070  1.1  christos     # depend on '.', always an invalid library.  This was fixed in
   10071  1.1  christos     # development snapshots of GCC prior to 3.0.
   10072  1.1  christos     case $host_os in
   10073  1.1  christos       aix4 | aix4.[01] | aix4.[01].*)
   10074  1.1  christos       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10075  1.1  christos 	   echo ' yes '
   10076  1.1  christos 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10077  1.1  christos 	:
   10078  1.1  christos       else
   10079  1.1  christos 	can_build_shared=no
   10080  1.1  christos       fi
   10081  1.1  christos       ;;
   10082  1.1  christos     esac
   10083  1.1  christos     # Using Import Files as archive members, it is possible to support
   10084  1.1  christos     # filename-based versioning of shared library archives on AIX. While
   10085  1.1  christos     # this would work for both with and without runtime linking, it will
   10086  1.1  christos     # prevent static linking of such archives. So we do filename-based
   10087  1.1  christos     # shared library versioning with .so extension only, which is used
   10088  1.1  christos     # when both runtime linking and shared linking is enabled.
   10089  1.1  christos     # Unfortunately, runtime linking may impact performance, so we do
   10090  1.1  christos     # not want this to be the default eventually. Also, we use the
   10091  1.1  christos     # versioned .so libs for executables only if there is the -brtl
   10092  1.1  christos     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10093  1.1  christos     # To allow for filename-based versioning support, we need to create
   10094  1.1  christos     # libNAME.so.V as an archive file, containing:
   10095  1.1  christos     # *) an Import File, referring to the versioned filename of the
   10096  1.1  christos     #    archive as well as the shared archive member, telling the
   10097  1.1  christos     #    bitwidth (32 or 64) of that shared object, and providing the
   10098  1.1  christos     #    list of exported symbols of that shared object, eventually
   10099  1.1  christos     #    decorated with the 'weak' keyword
   10100  1.1  christos     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10101  1.1  christos     #    it being seen by the linker.
   10102  1.1  christos     # At run time we better use the real file rather than another symlink,
   10103  1.1  christos     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10104  1.1  christos 
   10105  1.1  christos     case $with_aix_soname,$aix_use_runtimelinking in
   10106  1.1  christos     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10107  1.1  christos     # soname into executable. Probably we can add versioning support to
   10108  1.1  christos     # collect2, so additional links can be useful in future.
   10109  1.1  christos     aix,yes) # traditional libtool
   10110  1.1  christos       dynamic_linker='AIX unversionable lib.so'
   10111  1.1  christos       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10112  1.1  christos       # instead of lib<name>.a to let people know that these are not
   10113  1.1  christos       # typical AIX shared libraries.
   10114  1.1  christos       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10115  1.1  christos       ;;
   10116  1.1  christos     aix,no) # traditional AIX only
   10117  1.1  christos       dynamic_linker='AIX lib.a(lib.so.V)'
   10118  1.1  christos       # We preserve .a as extension for shared libraries through AIX4.2
   10119  1.1  christos       # and later when we are not doing run time linking.
   10120  1.1  christos       library_names_spec='$libname$release.a $libname.a'
   10121  1.1  christos       soname_spec='$libname$release$shared_ext$major'
   10122  1.1  christos       ;;
   10123  1.1  christos     svr4,*) # full svr4 only
   10124  1.1  christos       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10125  1.1  christos       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10126  1.1  christos       # We do not specify a path in Import Files, so LIBPATH fires.
   10127  1.1  christos       shlibpath_overrides_runpath=yes
   10128  1.1  christos       ;;
   10129  1.1  christos     *,yes) # both, prefer svr4
   10130  1.1  christos       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10131  1.1  christos       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10132  1.1  christos       # unpreferred sharedlib libNAME.a needs extra handling
   10133  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"'
   10134  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"'
   10135  1.1  christos       # We do not specify a path in Import Files, so LIBPATH fires.
   10136  1.1  christos       shlibpath_overrides_runpath=yes
   10137  1.1  christos       ;;
   10138  1.1  christos     *,no) # both, prefer aix
   10139  1.1  christos       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10140  1.1  christos       library_names_spec='$libname$release.a $libname.a'
   10141  1.1  christos       soname_spec='$libname$release$shared_ext$major'
   10142  1.1  christos       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10143  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)'
   10144  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"'
   10145  1.1  christos       ;;
   10146  1.1  christos     esac
   10147  1.1  christos     shlibpath_var=LIBPATH
   10148  1.1  christos   fi
   10149  1.1  christos   ;;
   10150  1.1  christos 
   10151  1.1  christos amigaos*)
   10152  1.1  christos   case $host_cpu in
   10153  1.1  christos   powerpc)
   10154  1.1  christos     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10155  1.1  christos     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10156  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10157  1.1  christos     ;;
   10158  1.1  christos   m68k)
   10159  1.1  christos     library_names_spec='$libname.ixlibrary $libname.a'
   10160  1.1  christos     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10161  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'
   10162  1.1  christos     ;;
   10163  1.1  christos   esac
   10164  1.1  christos   ;;
   10165  1.1  christos 
   10166  1.1  christos beos*)
   10167  1.1  christos   library_names_spec='$libname$shared_ext'
   10168  1.1  christos   dynamic_linker="$host_os ld.so"
   10169  1.1  christos   shlibpath_var=LIBRARY_PATH
   10170  1.1  christos   ;;
   10171  1.1  christos 
   10172  1.1  christos bsdi[45]*)
   10173  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10174  1.1  christos   need_version=no
   10175  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10176  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10177  1.1  christos   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10178  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10179  1.1  christos   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10180  1.1  christos   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10181  1.1  christos   # the default ld.so.conf also contains /usr/contrib/lib and
   10182  1.1  christos   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10183  1.1  christos   # libtool to hard-code these into programs
   10184  1.1  christos   ;;
   10185  1.1  christos 
   10186  1.1  christos cygwin* | mingw* | pw32* | cegcc*)
   10187  1.1  christos   version_type=windows
   10188  1.1  christos   shrext_cmds=.dll
   10189  1.1  christos   need_version=no
   10190  1.1  christos   need_lib_prefix=no
   10191  1.1  christos 
   10192  1.1  christos   case $GCC,$cc_basename in
   10193  1.1  christos   yes,*)
   10194  1.1  christos     # gcc
   10195  1.1  christos     library_names_spec='$libname.dll.a'
   10196  1.1  christos     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10197  1.1  christos     postinstall_cmds='base_file=`basename \$file`~
   10198  1.1  christos       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10199  1.1  christos       dldir=$destdir/`dirname \$dlpath`~
   10200  1.1  christos       test -d \$dldir || mkdir -p \$dldir~
   10201  1.1  christos       $install_prog $dir/$dlname \$dldir/$dlname~
   10202  1.1  christos       chmod a+x \$dldir/$dlname~
   10203  1.1  christos       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10204  1.1  christos         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10205  1.1  christos       fi'
   10206  1.1  christos     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10207  1.1  christos       dlpath=$dir/\$dldll~
   10208  1.1  christos        $RM \$dlpath'
   10209  1.1  christos     shlibpath_overrides_runpath=yes
   10210  1.1  christos 
   10211  1.1  christos     case $host_os in
   10212  1.1  christos     cygwin*)
   10213  1.1  christos       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10214  1.1  christos       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10215  1.1  christos 
   10216  1.1  christos       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10217  1.1  christos       ;;
   10218  1.1  christos     mingw* | cegcc*)
   10219  1.1  christos       # MinGW DLLs use traditional 'lib' prefix
   10220  1.1  christos       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10221  1.1  christos       ;;
   10222  1.1  christos     pw32*)
   10223  1.1  christos       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10224  1.1  christos       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10225  1.1  christos       ;;
   10226  1.1  christos     esac
   10227  1.1  christos     dynamic_linker='Win32 ld.exe'
   10228  1.1  christos     ;;
   10229  1.1  christos 
   10230  1.1  christos   *,cl*)
   10231  1.1  christos     # Native MSVC
   10232  1.1  christos     libname_spec='$name'
   10233  1.1  christos     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10234  1.1  christos     library_names_spec='$libname.dll.lib'
   10235  1.1  christos 
   10236  1.1  christos     case $build_os in
   10237  1.1  christos     mingw*)
   10238  1.1  christos       sys_lib_search_path_spec=
   10239  1.1  christos       lt_save_ifs=$IFS
   10240  1.1  christos       IFS=';'
   10241  1.1  christos       for lt_path in $LIB
   10242  1.1  christos       do
   10243  1.1  christos         IFS=$lt_save_ifs
   10244  1.1  christos         # Let DOS variable expansion print the short 8.3 style file name.
   10245  1.1  christos         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10246  1.1  christos         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10247  1.1  christos       done
   10248  1.1  christos       IFS=$lt_save_ifs
   10249  1.1  christos       # Convert to MSYS style.
   10250  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|^ ||'`
   10251  1.1  christos       ;;
   10252  1.1  christos     cygwin*)
   10253  1.1  christos       # Convert to unix form, then to dos form, then back to unix form
   10254  1.1  christos       # but this time dos style (no spaces!) so that the unix form looks
   10255  1.1  christos       # like /cygdrive/c/PROGRA~1:/cygdr...
   10256  1.1  christos       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10257  1.1  christos       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10258  1.1  christos       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10259  1.1  christos       ;;
   10260  1.1  christos     *)
   10261  1.1  christos       sys_lib_search_path_spec=$LIB
   10262  1.1  christos       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10263  1.1  christos         # It is most probably a Windows format PATH.
   10264  1.1  christos         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10265  1.1  christos       else
   10266  1.1  christos         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10267  1.1  christos       fi
   10268  1.1  christos       # FIXME: find the short name or the path components, as spaces are
   10269  1.1  christos       # common. (e.g. "Program Files" -> "PROGRA~1")
   10270  1.1  christos       ;;
   10271  1.1  christos     esac
   10272  1.1  christos 
   10273  1.1  christos     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10274  1.1  christos     postinstall_cmds='base_file=`basename \$file`~
   10275  1.1  christos       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10276  1.1  christos       dldir=$destdir/`dirname \$dlpath`~
   10277  1.1  christos       test -d \$dldir || mkdir -p \$dldir~
   10278  1.1  christos       $install_prog $dir/$dlname \$dldir/$dlname'
   10279  1.1  christos     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10280  1.1  christos       dlpath=$dir/\$dldll~
   10281  1.1  christos        $RM \$dlpath'
   10282  1.1  christos     shlibpath_overrides_runpath=yes
   10283  1.1  christos     dynamic_linker='Win32 link.exe'
   10284  1.1  christos     ;;
   10285  1.1  christos 
   10286  1.1  christos   *)
   10287  1.1  christos     # Assume MSVC wrapper
   10288  1.1  christos     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10289  1.1  christos     dynamic_linker='Win32 ld.exe'
   10290  1.1  christos     ;;
   10291  1.1  christos   esac
   10292  1.1  christos   # FIXME: first we should search . and the directory the executable is in
   10293  1.1  christos   shlibpath_var=PATH
   10294  1.1  christos   ;;
   10295  1.1  christos 
   10296  1.1  christos darwin* | rhapsody*)
   10297  1.1  christos   dynamic_linker="$host_os dyld"
   10298  1.1  christos   version_type=darwin
   10299  1.1  christos   need_lib_prefix=no
   10300  1.1  christos   need_version=no
   10301  1.1  christos   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10302  1.1  christos   soname_spec='$libname$release$major$shared_ext'
   10303  1.1  christos   shlibpath_overrides_runpath=yes
   10304  1.1  christos   shlibpath_var=DYLD_LIBRARY_PATH
   10305  1.1  christos   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10306  1.1  christos 
   10307  1.1  christos   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10308  1.1  christos   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10309  1.1  christos   ;;
   10310  1.1  christos 
   10311  1.1  christos dgux*)
   10312  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10313  1.1  christos   need_lib_prefix=no
   10314  1.1  christos   need_version=no
   10315  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10316  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10317  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10318  1.1  christos   ;;
   10319  1.1  christos 
   10320  1.1  christos freebsd* | dragonfly*)
   10321  1.1  christos   # DragonFly does not have aout.  When/if they implement a new
   10322  1.1  christos   # versioning mechanism, adjust this.
   10323  1.1  christos   if test -x /usr/bin/objformat; then
   10324  1.1  christos     objformat=`/usr/bin/objformat`
   10325  1.1  christos   else
   10326  1.1  christos     case $host_os in
   10327  1.1  christos     freebsd[23].*) objformat=aout ;;
   10328  1.1  christos     *) objformat=elf ;;
   10329  1.1  christos     esac
   10330  1.1  christos   fi
   10331  1.1  christos   version_type=freebsd-$objformat
   10332  1.1  christos   case $version_type in
   10333  1.1  christos     freebsd-elf*)
   10334  1.1  christos       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10335  1.1  christos       soname_spec='$libname$release$shared_ext$major'
   10336  1.1  christos       need_version=no
   10337  1.1  christos       need_lib_prefix=no
   10338  1.1  christos       ;;
   10339  1.1  christos     freebsd-*)
   10340  1.1  christos       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10341  1.1  christos       need_version=yes
   10342  1.1  christos       ;;
   10343  1.1  christos   esac
   10344  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10345  1.1  christos   case $host_os in
   10346  1.1  christos   freebsd2.*)
   10347  1.1  christos     shlibpath_overrides_runpath=yes
   10348  1.1  christos     ;;
   10349  1.1  christos   freebsd3.[01]* | freebsdelf3.[01]*)
   10350  1.1  christos     shlibpath_overrides_runpath=yes
   10351  1.1  christos     hardcode_into_libs=yes
   10352  1.1  christos     ;;
   10353  1.1  christos   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10354  1.1  christos   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10355  1.1  christos     shlibpath_overrides_runpath=no
   10356  1.1  christos     hardcode_into_libs=yes
   10357  1.1  christos     ;;
   10358  1.1  christos   *) # from 4.6 on, and DragonFly
   10359  1.1  christos     shlibpath_overrides_runpath=yes
   10360  1.1  christos     hardcode_into_libs=yes
   10361  1.1  christos     ;;
   10362  1.1  christos   esac
   10363  1.1  christos   ;;
   10364  1.1  christos 
   10365  1.1  christos haiku*)
   10366  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10367  1.1  christos   need_lib_prefix=no
   10368  1.1  christos   need_version=no
   10369  1.1  christos   dynamic_linker="$host_os runtime_loader"
   10370  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10371  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10372  1.1  christos   shlibpath_var=LIBRARY_PATH
   10373  1.1  christos   shlibpath_overrides_runpath=no
   10374  1.1  christos   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10375  1.1  christos   hardcode_into_libs=yes
   10376  1.1  christos   ;;
   10377  1.1  christos 
   10378  1.1  christos hpux9* | hpux10* | hpux11*)
   10379  1.1  christos   # Give a soname corresponding to the major version so that dld.sl refuses to
   10380  1.1  christos   # link against other versions.
   10381  1.1  christos   version_type=sunos
   10382  1.1  christos   need_lib_prefix=no
   10383  1.1  christos   need_version=no
   10384  1.1  christos   case $host_cpu in
   10385  1.1  christos   ia64*)
   10386  1.1  christos     shrext_cmds='.so'
   10387  1.1  christos     hardcode_into_libs=yes
   10388  1.1  christos     dynamic_linker="$host_os dld.so"
   10389  1.1  christos     shlibpath_var=LD_LIBRARY_PATH
   10390  1.1  christos     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10391  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10392  1.1  christos     soname_spec='$libname$release$shared_ext$major'
   10393  1.1  christos     if test 32 = "$HPUX_IA64_MODE"; then
   10394  1.1  christos       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10395  1.1  christos       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10396  1.1  christos     else
   10397  1.1  christos       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10398  1.1  christos       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10399  1.1  christos     fi
   10400  1.1  christos     ;;
   10401  1.1  christos   hppa*64*)
   10402  1.1  christos     shrext_cmds='.sl'
   10403  1.1  christos     hardcode_into_libs=yes
   10404  1.1  christos     dynamic_linker="$host_os dld.sl"
   10405  1.1  christos     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10406  1.1  christos     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10407  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10408  1.1  christos     soname_spec='$libname$release$shared_ext$major'
   10409  1.1  christos     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10410  1.1  christos     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10411  1.1  christos     ;;
   10412  1.1  christos   *)
   10413  1.1  christos     shrext_cmds='.sl'
   10414  1.1  christos     dynamic_linker="$host_os dld.sl"
   10415  1.1  christos     shlibpath_var=SHLIB_PATH
   10416  1.1  christos     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10417  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10418  1.1  christos     soname_spec='$libname$release$shared_ext$major'
   10419  1.1  christos     ;;
   10420  1.1  christos   esac
   10421  1.1  christos   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10422  1.1  christos   postinstall_cmds='chmod 555 $lib'
   10423  1.1  christos   # or fails outright, so override atomically:
   10424  1.1  christos   install_override_mode=555
   10425  1.1  christos   ;;
   10426  1.1  christos 
   10427  1.1  christos interix[3-9]*)
   10428  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10429  1.1  christos   need_lib_prefix=no
   10430  1.1  christos   need_version=no
   10431  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10432  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10433  1.1  christos   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10434  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10435  1.1  christos   shlibpath_overrides_runpath=no
   10436  1.1  christos   hardcode_into_libs=yes
   10437  1.1  christos   ;;
   10438  1.1  christos 
   10439  1.1  christos irix5* | irix6* | nonstopux*)
   10440  1.1  christos   case $host_os in
   10441  1.1  christos     nonstopux*) version_type=nonstopux ;;
   10442  1.1  christos     *)
   10443  1.1  christos 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10444  1.1  christos 		version_type=linux # correct to gnu/linux during the next big refactor
   10445  1.1  christos 	else
   10446  1.1  christos 		version_type=irix
   10447  1.1  christos 	fi ;;
   10448  1.1  christos   esac
   10449  1.1  christos   need_lib_prefix=no
   10450  1.1  christos   need_version=no
   10451  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10452  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10453  1.1  christos   case $host_os in
   10454  1.1  christos   irix5* | nonstopux*)
   10455  1.1  christos     libsuff= shlibsuff=
   10456  1.1  christos     ;;
   10457  1.1  christos   *)
   10458  1.1  christos     case $LD in # libtool.m4 will add one of these switches to LD
   10459  1.1  christos     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10460  1.1  christos       libsuff= shlibsuff= libmagic=32-bit;;
   10461  1.1  christos     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10462  1.1  christos       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10463  1.1  christos     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10464  1.1  christos       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10465  1.1  christos     *) libsuff= shlibsuff= libmagic=never-match;;
   10466  1.1  christos     esac
   10467  1.1  christos     ;;
   10468  1.1  christos   esac
   10469  1.1  christos   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10470  1.1  christos   shlibpath_overrides_runpath=no
   10471  1.1  christos   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10472  1.1  christos   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10473  1.1  christos   hardcode_into_libs=yes
   10474  1.1  christos   ;;
   10475  1.1  christos 
   10476  1.1  christos # No shared lib support for Linux oldld, aout, or coff.
   10477  1.1  christos linux*oldld* | linux*aout* | linux*coff*)
   10478  1.1  christos   dynamic_linker=no
   10479  1.1  christos   ;;
   10480  1.1  christos 
   10481  1.1  christos linux*android*)
   10482  1.1  christos   version_type=none # Android doesn't support versioned libraries.
   10483  1.1  christos   need_lib_prefix=no
   10484  1.1  christos   need_version=no
   10485  1.1  christos   library_names_spec='$libname$release$shared_ext'
   10486  1.1  christos   soname_spec='$libname$release$shared_ext'
   10487  1.1  christos   finish_cmds=
   10488  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10489  1.1  christos   shlibpath_overrides_runpath=yes
   10490  1.1  christos 
   10491  1.1  christos   # This implies no fast_install, which is unacceptable.
   10492  1.1  christos   # Some rework will be needed to allow for fast_install
   10493  1.1  christos   # before this can be enabled.
   10494  1.1  christos   hardcode_into_libs=yes
   10495  1.1  christos 
   10496  1.1  christos   dynamic_linker='Android linker'
   10497  1.1  christos   # Don't embed -rpath directories since the linker doesn't support them.
   10498  1.1  christos   hardcode_libdir_flag_spec='-L$libdir'
   10499  1.1  christos   ;;
   10500  1.1  christos 
   10501  1.1  christos # This must be glibc/ELF.
   10502  1.1  christos linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10503  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10504  1.1  christos   need_lib_prefix=no
   10505  1.1  christos   need_version=no
   10506  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10507  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10508  1.1  christos   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10509  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10510  1.1  christos   shlibpath_overrides_runpath=no
   10511  1.1  christos 
   10512  1.1  christos   # Some binutils ld are patched to set DT_RUNPATH
   10513  1.1  christos   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10514  1.1  christos   $as_echo_n "(cached) " >&6
   10515  1.1  christos else
   10516  1.1  christos   lt_cv_shlibpath_overrides_runpath=no
   10517  1.1  christos     save_LDFLAGS=$LDFLAGS
   10518  1.1  christos     save_libdir=$libdir
   10519  1.1  christos     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10520  1.1  christos 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10521  1.1  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10522  1.1  christos /* end confdefs.h.  */
   10523  1.1  christos 
   10524  1.1  christos int
   10525  1.1  christos main ()
   10526  1.1  christos {
   10527  1.1  christos 
   10528  1.1  christos   ;
   10529  1.1  christos   return 0;
   10530  1.1  christos }
   10531  1.1  christos _ACEOF
   10532  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   10533  1.1  christos   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10534  1.1  christos   lt_cv_shlibpath_overrides_runpath=yes
   10535  1.1  christos fi
   10536  1.1  christos fi
   10537  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   10538  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   10539  1.1  christos     LDFLAGS=$save_LDFLAGS
   10540  1.1  christos     libdir=$save_libdir
   10541  1.1  christos 
   10542  1.1  christos fi
   10543  1.1  christos 
   10544  1.1  christos   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10545  1.1  christos 
   10546  1.1  christos   # This implies no fast_install, which is unacceptable.
   10547  1.1  christos   # Some rework will be needed to allow for fast_install
   10548  1.1  christos   # before this can be enabled.
   10549  1.1  christos   hardcode_into_libs=yes
   10550  1.1  christos 
   10551  1.1  christos   # Ideally, we could use ldconfig to report *all* directores which are
   10552  1.1  christos   # searched for libraries, however this is still not possible.  Aside from not
   10553  1.1  christos   # being certain /sbin/ldconfig is available, command
   10554  1.1  christos   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10555  1.1  christos   # even though it is searched at run-time.  Try to do the best guess by
   10556  1.1  christos   # appending ld.so.conf contents (and includes) to the search path.
   10557  1.1  christos   if test -f /etc/ld.so.conf; then
   10558  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' ' '`
   10559  1.1  christos     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10560  1.1  christos   fi
   10561  1.1  christos 
   10562  1.1  christos   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10563  1.1  christos   # powerpc, because MkLinux only supported shared libraries with the
   10564  1.1  christos   # GNU dynamic linker.  Since this was broken with cross compilers,
   10565  1.1  christos   # most powerpc-linux boxes support dynamic linking these days and
   10566  1.1  christos   # people can always --disable-shared, the test was removed, and we
   10567  1.1  christos   # assume the GNU/Linux dynamic linker is in use.
   10568  1.1  christos   dynamic_linker='GNU/Linux ld.so'
   10569  1.1  christos   ;;
   10570  1.1  christos 
   10571  1.1  christos netbsd*)
   10572  1.1  christos   version_type=sunos
   10573  1.1  christos   need_lib_prefix=no
   10574  1.1  christos   need_version=no
   10575  1.1  christos   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10576  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10577  1.1  christos     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10578  1.1  christos     dynamic_linker='NetBSD (a.out) ld.so'
   10579  1.1  christos   else
   10580  1.1  christos     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10581  1.1  christos     soname_spec='$libname$release$shared_ext$major'
   10582  1.1  christos     dynamic_linker='NetBSD ld.elf_so'
   10583  1.1  christos   fi
   10584  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10585  1.1  christos   shlibpath_overrides_runpath=yes
   10586  1.1  christos   hardcode_into_libs=yes
   10587  1.1  christos   ;;
   10588  1.1  christos 
   10589  1.1  christos newsos6)
   10590  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10591  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10592  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10593  1.1  christos   shlibpath_overrides_runpath=yes
   10594  1.1  christos   ;;
   10595  1.1  christos 
   10596  1.1  christos *nto* | *qnx*)
   10597  1.1  christos   version_type=qnx
   10598  1.1  christos   need_lib_prefix=no
   10599  1.1  christos   need_version=no
   10600  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10601  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10602  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10603  1.1  christos   shlibpath_overrides_runpath=no
   10604  1.1  christos   hardcode_into_libs=yes
   10605  1.1  christos   dynamic_linker='ldqnx.so'
   10606  1.1  christos   ;;
   10607  1.1  christos 
   10608  1.1  christos openbsd* | bitrig*)
   10609  1.1  christos   version_type=sunos
   10610  1.1  christos   sys_lib_dlsearch_path_spec=/usr/lib
   10611  1.1  christos   need_lib_prefix=no
   10612  1.1  christos   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10613  1.1  christos     need_version=no
   10614  1.1  christos   else
   10615  1.1  christos     need_version=yes
   10616  1.1  christos   fi
   10617  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10618  1.1  christos   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10619  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10620  1.1  christos   shlibpath_overrides_runpath=yes
   10621  1.1  christos   ;;
   10622  1.1  christos 
   10623  1.1  christos os2*)
   10624  1.1  christos   libname_spec='$name'
   10625  1.1  christos   version_type=windows
   10626  1.1  christos   shrext_cmds=.dll
   10627  1.1  christos   need_version=no
   10628  1.1  christos   need_lib_prefix=no
   10629  1.1  christos   # OS/2 can only load a DLL with a base name of 8 characters or less.
   10630  1.1  christos   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   10631  1.1  christos     v=$($ECHO $release$versuffix | tr -d .-);
   10632  1.1  christos     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   10633  1.1  christos     $ECHO $n$v`$shared_ext'
   10634  1.1  christos   library_names_spec='${libname}_dll.$libext'
   10635  1.1  christos   dynamic_linker='OS/2 ld.exe'
   10636  1.1  christos   shlibpath_var=BEGINLIBPATH
   10637  1.1  christos   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10638  1.1  christos   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10639  1.1  christos   postinstall_cmds='base_file=`basename \$file`~
   10640  1.1  christos     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   10641  1.1  christos     dldir=$destdir/`dirname \$dlpath`~
   10642  1.1  christos     test -d \$dldir || mkdir -p \$dldir~
   10643  1.1  christos     $install_prog $dir/$dlname \$dldir/$dlname~
   10644  1.1  christos     chmod a+x \$dldir/$dlname~
   10645  1.1  christos     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10646  1.1  christos       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10647  1.1  christos     fi'
   10648  1.1  christos   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   10649  1.1  christos     dlpath=$dir/\$dldll~
   10650  1.1  christos     $RM \$dlpath'
   10651  1.1  christos   ;;
   10652  1.1  christos 
   10653  1.1  christos osf3* | osf4* | osf5*)
   10654  1.1  christos   version_type=osf
   10655  1.1  christos   need_lib_prefix=no
   10656  1.1  christos   need_version=no
   10657  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10658  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10659  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10660  1.1  christos   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   10661  1.1  christos   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10662  1.1  christos   ;;
   10663  1.1  christos 
   10664  1.1  christos rdos*)
   10665  1.1  christos   dynamic_linker=no
   10666  1.1  christos   ;;
   10667  1.1  christos 
   10668  1.1  christos solaris*)
   10669  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10670  1.1  christos   need_lib_prefix=no
   10671  1.1  christos   need_version=no
   10672  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10673  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10674  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10675  1.1  christos   shlibpath_overrides_runpath=yes
   10676  1.1  christos   hardcode_into_libs=yes
   10677  1.1  christos   # ldd complains unless libraries are executable
   10678  1.1  christos   postinstall_cmds='chmod +x $lib'
   10679  1.1  christos   ;;
   10680  1.1  christos 
   10681  1.1  christos sunos4*)
   10682  1.1  christos   version_type=sunos
   10683  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10684  1.1  christos   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   10685  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10686  1.1  christos   shlibpath_overrides_runpath=yes
   10687  1.1  christos   if test yes = "$with_gnu_ld"; then
   10688  1.1  christos     need_lib_prefix=no
   10689  1.1  christos   fi
   10690  1.1  christos   need_version=yes
   10691  1.1  christos   ;;
   10692  1.1  christos 
   10693  1.1  christos sysv4 | sysv4.3*)
   10694  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10695  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10696  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10697  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10698  1.1  christos   case $host_vendor in
   10699  1.1  christos     sni)
   10700  1.1  christos       shlibpath_overrides_runpath=no
   10701  1.1  christos       need_lib_prefix=no
   10702  1.1  christos       runpath_var=LD_RUN_PATH
   10703  1.1  christos       ;;
   10704  1.1  christos     siemens)
   10705  1.1  christos       need_lib_prefix=no
   10706  1.1  christos       ;;
   10707  1.1  christos     motorola)
   10708  1.1  christos       need_lib_prefix=no
   10709  1.1  christos       need_version=no
   10710  1.1  christos       shlibpath_overrides_runpath=no
   10711  1.1  christos       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   10712  1.1  christos       ;;
   10713  1.1  christos   esac
   10714  1.1  christos   ;;
   10715  1.1  christos 
   10716  1.1  christos sysv4*MP*)
   10717  1.1  christos   if test -d /usr/nec; then
   10718  1.1  christos     version_type=linux # correct to gnu/linux during the next big refactor
   10719  1.1  christos     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   10720  1.1  christos     soname_spec='$libname$shared_ext.$major'
   10721  1.1  christos     shlibpath_var=LD_LIBRARY_PATH
   10722  1.1  christos   fi
   10723  1.1  christos   ;;
   10724  1.1  christos 
   10725  1.1  christos sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10726  1.1  christos   version_type=sco
   10727  1.1  christos   need_lib_prefix=no
   10728  1.1  christos   need_version=no
   10729  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   10730  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10731  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10732  1.1  christos   shlibpath_overrides_runpath=yes
   10733  1.1  christos   hardcode_into_libs=yes
   10734  1.1  christos   if test yes = "$with_gnu_ld"; then
   10735  1.1  christos     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   10736  1.1  christos   else
   10737  1.1  christos     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   10738  1.1  christos     case $host_os in
   10739  1.1  christos       sco3.2v5*)
   10740  1.1  christos         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   10741  1.1  christos 	;;
   10742  1.1  christos     esac
   10743  1.1  christos   fi
   10744  1.1  christos   sys_lib_dlsearch_path_spec='/usr/lib'
   10745  1.1  christos   ;;
   10746  1.1  christos 
   10747  1.1  christos tpf*)
   10748  1.1  christos   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   10749  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10750  1.1  christos   need_lib_prefix=no
   10751  1.1  christos   need_version=no
   10752  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10753  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10754  1.1  christos   shlibpath_overrides_runpath=no
   10755  1.1  christos   hardcode_into_libs=yes
   10756  1.1  christos   ;;
   10757  1.1  christos 
   10758  1.1  christos uts4*)
   10759  1.1  christos   version_type=linux # correct to gnu/linux during the next big refactor
   10760  1.1  christos   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10761  1.1  christos   soname_spec='$libname$release$shared_ext$major'
   10762  1.1  christos   shlibpath_var=LD_LIBRARY_PATH
   10763  1.1  christos   ;;
   10764  1.1  christos 
   10765  1.1  christos *)
   10766  1.1  christos   dynamic_linker=no
   10767  1.1  christos   ;;
   10768  1.1  christos esac
   10769  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   10770  1.1  christos $as_echo "$dynamic_linker" >&6; }
   10771  1.1  christos test no = "$dynamic_linker" && can_build_shared=no
   10772  1.1  christos 
   10773  1.1  christos variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   10774  1.1  christos if test yes = "$GCC"; then
   10775  1.1  christos   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   10776  1.1  christos fi
   10777  1.1  christos 
   10778  1.1  christos if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   10779  1.1  christos   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   10780  1.1  christos fi
   10781  1.1  christos 
   10782  1.1  christos if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   10783  1.1  christos   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   10784  1.1  christos fi
   10785  1.1  christos 
   10786  1.1  christos # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   10787  1.1  christos configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   10788  1.1  christos 
   10789  1.1  christos # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   10790  1.1  christos func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   10791  1.1  christos 
   10792  1.1  christos # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   10793  1.1  christos configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   10794  1.1  christos 
   10795  1.1  christos 
   10796  1.1  christos 
   10797  1.1  christos 
   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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   10892  1.1  christos $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   10893  1.1  christos hardcode_action=
   10894  1.1  christos if test -n "$hardcode_libdir_flag_spec" ||
   10895  1.1  christos    test -n "$runpath_var" ||
   10896  1.1  christos    test yes = "$hardcode_automatic"; then
   10897  1.1  christos 
   10898  1.1  christos   # We can hardcode non-existent directories.
   10899  1.1  christos   if test no != "$hardcode_direct" &&
   10900  1.1  christos      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   10901  1.1  christos      # have to relink, otherwise we might link with an installed library
   10902  1.1  christos      # when we should be linking with a yet-to-be-installed one
   10903  1.1  christos      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   10904  1.1  christos      test no != "$hardcode_minus_L"; then
   10905  1.1  christos     # Linking always hardcodes the temporary library directory.
   10906  1.1  christos     hardcode_action=relink
   10907  1.1  christos   else
   10908  1.1  christos     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   10909  1.1  christos     hardcode_action=immediate
   10910  1.1  christos   fi
   10911  1.1  christos else
   10912  1.1  christos   # We cannot hardcode anything, or else we can only hardcode existing
   10913  1.1  christos   # directories.
   10914  1.1  christos   hardcode_action=unsupported
   10915  1.1  christos fi
   10916  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   10917  1.1  christos $as_echo "$hardcode_action" >&6; }
   10918  1.1  christos 
   10919  1.1  christos if test relink = "$hardcode_action" ||
   10920  1.1  christos    test yes = "$inherit_rpath"; then
   10921  1.1  christos   # Fast installation is not supported
   10922  1.1  christos   enable_fast_install=no
   10923  1.1  christos elif test yes = "$shlibpath_overrides_runpath" ||
   10924  1.1  christos      test no = "$enable_shared"; then
   10925  1.1  christos   # Fast installation is not necessary
   10926  1.1  christos   enable_fast_install=needless
   10927  1.1  christos fi
   10928  1.1  christos 
   10929  1.1  christos 
   10930  1.1  christos 
   10931  1.1  christos 
   10932  1.1  christos 
   10933  1.1  christos 
   10934  1.1  christos   if test yes != "$enable_dlopen"; then
   10935  1.1  christos   enable_dlopen=unknown
   10936  1.1  christos   enable_dlopen_self=unknown
   10937  1.1  christos   enable_dlopen_self_static=unknown
   10938  1.1  christos else
   10939  1.1  christos   lt_cv_dlopen=no
   10940  1.1  christos   lt_cv_dlopen_libs=
   10941  1.1  christos 
   10942  1.1  christos   case $host_os in
   10943  1.1  christos   beos*)
   10944  1.1  christos     lt_cv_dlopen=load_add_on
   10945  1.1  christos     lt_cv_dlopen_libs=
   10946  1.1  christos     lt_cv_dlopen_self=yes
   10947  1.1  christos     ;;
   10948  1.1  christos 
   10949  1.1  christos   mingw* | pw32* | cegcc*)
   10950  1.1  christos     lt_cv_dlopen=LoadLibrary
   10951  1.1  christos     lt_cv_dlopen_libs=
   10952  1.1  christos     ;;
   10953  1.1  christos 
   10954  1.1  christos   cygwin*)
   10955  1.1  christos     lt_cv_dlopen=dlopen
   10956  1.1  christos     lt_cv_dlopen_libs=
   10957  1.1  christos     ;;
   10958  1.1  christos 
   10959  1.1  christos   darwin*)
   10960  1.1  christos     # if libdl is installed we need to link against it
   10961  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   10962  1.1  christos $as_echo_n "checking for dlopen in -ldl... " >&6; }
   10963  1.1  christos if ${ac_cv_lib_dl_dlopen+:} false; then :
   10964  1.1  christos   $as_echo_n "(cached) " >&6
   10965  1.1  christos else
   10966  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   10967  1.1  christos LIBS="-ldl  $LIBS"
   10968  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10969  1.1  christos /* end confdefs.h.  */
   10970  1.1  christos 
   10971  1.1  christos /* Override any GCC internal prototype to avoid an error.
   10972  1.1  christos    Use char because int might match the return type of a GCC
   10973  1.1  christos    builtin and then its argument prototype would still apply.  */
   10974  1.1  christos #ifdef __cplusplus
   10975  1.1  christos extern "C"
   10976  1.1  christos #endif
   10977  1.1  christos char dlopen ();
   10978  1.1  christos int
   10979  1.1  christos main ()
   10980  1.1  christos {
   10981  1.1  christos return dlopen ();
   10982  1.1  christos   ;
   10983  1.1  christos   return 0;
   10984  1.1  christos }
   10985  1.1  christos _ACEOF
   10986  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   10987  1.1  christos   ac_cv_lib_dl_dlopen=yes
   10988  1.1  christos else
   10989  1.1  christos   ac_cv_lib_dl_dlopen=no
   10990  1.1  christos fi
   10991  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   10992  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   10993  1.1  christos LIBS=$ac_check_lib_save_LIBS
   10994  1.1  christos fi
   10995  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   10996  1.1  christos $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   10997  1.1  christos if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   10998  1.1  christos   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   10999  1.1  christos else
   11000  1.1  christos 
   11001  1.1  christos     lt_cv_dlopen=dyld
   11002  1.1  christos     lt_cv_dlopen_libs=
   11003  1.1  christos     lt_cv_dlopen_self=yes
   11004  1.1  christos 
   11005  1.1  christos fi
   11006  1.1  christos 
   11007  1.1  christos     ;;
   11008  1.1  christos 
   11009  1.1  christos   tpf*)
   11010  1.1  christos     # Don't try to run any link tests for TPF.  We know it's impossible
   11011  1.1  christos     # because TPF is a cross-compiler, and we know how we open DSOs.
   11012  1.1  christos     lt_cv_dlopen=dlopen
   11013  1.1  christos     lt_cv_dlopen_libs=
   11014  1.1  christos     lt_cv_dlopen_self=no
   11015  1.1  christos     ;;
   11016  1.1  christos 
   11017  1.1  christos   *)
   11018  1.1  christos     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11019  1.1  christos if test "x$ac_cv_func_shl_load" = xyes; then :
   11020  1.1  christos   lt_cv_dlopen=shl_load
   11021  1.1  christos else
   11022  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11023  1.1  christos $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11024  1.1  christos if ${ac_cv_lib_dld_shl_load+:} false; then :
   11025  1.1  christos   $as_echo_n "(cached) " >&6
   11026  1.1  christos else
   11027  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11028  1.1  christos LIBS="-ldld  $LIBS"
   11029  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11030  1.1  christos /* end confdefs.h.  */
   11031  1.1  christos 
   11032  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11033  1.1  christos    Use char because int might match the return type of a GCC
   11034  1.1  christos    builtin and then its argument prototype would still apply.  */
   11035  1.1  christos #ifdef __cplusplus
   11036  1.1  christos extern "C"
   11037  1.1  christos #endif
   11038  1.1  christos char shl_load ();
   11039  1.1  christos int
   11040  1.1  christos main ()
   11041  1.1  christos {
   11042  1.1  christos return shl_load ();
   11043  1.1  christos   ;
   11044  1.1  christos   return 0;
   11045  1.1  christos }
   11046  1.1  christos _ACEOF
   11047  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   11048  1.1  christos   ac_cv_lib_dld_shl_load=yes
   11049  1.1  christos else
   11050  1.1  christos   ac_cv_lib_dld_shl_load=no
   11051  1.1  christos fi
   11052  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   11053  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   11054  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11055  1.1  christos fi
   11056  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11057  1.1  christos $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11058  1.1  christos if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11059  1.1  christos   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11060  1.1  christos else
   11061  1.1  christos   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11062  1.1  christos if test "x$ac_cv_func_dlopen" = xyes; then :
   11063  1.1  christos   lt_cv_dlopen=dlopen
   11064  1.1  christos else
   11065  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11066  1.1  christos $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11067  1.1  christos if ${ac_cv_lib_dl_dlopen+:} false; then :
   11068  1.1  christos   $as_echo_n "(cached) " >&6
   11069  1.1  christos else
   11070  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11071  1.1  christos LIBS="-ldl  $LIBS"
   11072  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11073  1.1  christos /* end confdefs.h.  */
   11074  1.1  christos 
   11075  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11076  1.1  christos    Use char because int might match the return type of a GCC
   11077  1.1  christos    builtin and then its argument prototype would still apply.  */
   11078  1.1  christos #ifdef __cplusplus
   11079  1.1  christos extern "C"
   11080  1.1  christos #endif
   11081  1.1  christos char dlopen ();
   11082  1.1  christos int
   11083  1.1  christos main ()
   11084  1.1  christos {
   11085  1.1  christos return dlopen ();
   11086  1.1  christos   ;
   11087  1.1  christos   return 0;
   11088  1.1  christos }
   11089  1.1  christos _ACEOF
   11090  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   11091  1.1  christos   ac_cv_lib_dl_dlopen=yes
   11092  1.1  christos else
   11093  1.1  christos   ac_cv_lib_dl_dlopen=no
   11094  1.1  christos fi
   11095  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   11096  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   11097  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11098  1.1  christos fi
   11099  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11100  1.1  christos $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11101  1.1  christos if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11102  1.1  christos   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11103  1.1  christos else
   11104  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11105  1.1  christos $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11106  1.1  christos if ${ac_cv_lib_svld_dlopen+:} false; then :
   11107  1.1  christos   $as_echo_n "(cached) " >&6
   11108  1.1  christos else
   11109  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11110  1.1  christos LIBS="-lsvld  $LIBS"
   11111  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11112  1.1  christos /* end confdefs.h.  */
   11113  1.1  christos 
   11114  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11115  1.1  christos    Use char because int might match the return type of a GCC
   11116  1.1  christos    builtin and then its argument prototype would still apply.  */
   11117  1.1  christos #ifdef __cplusplus
   11118  1.1  christos extern "C"
   11119  1.1  christos #endif
   11120  1.1  christos char dlopen ();
   11121  1.1  christos int
   11122  1.1  christos main ()
   11123  1.1  christos {
   11124  1.1  christos return dlopen ();
   11125  1.1  christos   ;
   11126  1.1  christos   return 0;
   11127  1.1  christos }
   11128  1.1  christos _ACEOF
   11129  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   11130  1.1  christos   ac_cv_lib_svld_dlopen=yes
   11131  1.1  christos else
   11132  1.1  christos   ac_cv_lib_svld_dlopen=no
   11133  1.1  christos fi
   11134  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   11135  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   11136  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11137  1.1  christos fi
   11138  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11139  1.1  christos $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11140  1.1  christos if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11141  1.1  christos   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11142  1.1  christos else
   11143  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11144  1.1  christos $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11145  1.1  christos if ${ac_cv_lib_dld_dld_link+:} false; then :
   11146  1.1  christos   $as_echo_n "(cached) " >&6
   11147  1.1  christos else
   11148  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11149  1.1  christos LIBS="-ldld  $LIBS"
   11150  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11151  1.1  christos /* end confdefs.h.  */
   11152  1.1  christos 
   11153  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11154  1.1  christos    Use char because int might match the return type of a GCC
   11155  1.1  christos    builtin and then its argument prototype would still apply.  */
   11156  1.1  christos #ifdef __cplusplus
   11157  1.1  christos extern "C"
   11158  1.1  christos #endif
   11159  1.1  christos char dld_link ();
   11160  1.1  christos int
   11161  1.1  christos main ()
   11162  1.1  christos {
   11163  1.1  christos return dld_link ();
   11164  1.1  christos   ;
   11165  1.1  christos   return 0;
   11166  1.1  christos }
   11167  1.1  christos _ACEOF
   11168  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   11169  1.1  christos   ac_cv_lib_dld_dld_link=yes
   11170  1.1  christos else
   11171  1.1  christos   ac_cv_lib_dld_dld_link=no
   11172  1.1  christos fi
   11173  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   11174  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   11175  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11176  1.1  christos fi
   11177  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11178  1.1  christos $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11179  1.1  christos if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11180  1.1  christos   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11181  1.1  christos fi
   11182  1.1  christos 
   11183  1.1  christos 
   11184  1.1  christos fi
   11185  1.1  christos 
   11186  1.1  christos 
   11187  1.1  christos fi
   11188  1.1  christos 
   11189  1.1  christos 
   11190  1.1  christos fi
   11191  1.1  christos 
   11192  1.1  christos 
   11193  1.1  christos fi
   11194  1.1  christos 
   11195  1.1  christos 
   11196  1.1  christos fi
   11197  1.1  christos 
   11198  1.1  christos     ;;
   11199  1.1  christos   esac
   11200  1.1  christos 
   11201  1.1  christos   if test no = "$lt_cv_dlopen"; then
   11202  1.1  christos     enable_dlopen=no
   11203  1.1  christos   else
   11204  1.1  christos     enable_dlopen=yes
   11205  1.1  christos   fi
   11206  1.1  christos 
   11207  1.1  christos   case $lt_cv_dlopen in
   11208  1.1  christos   dlopen)
   11209  1.1  christos     save_CPPFLAGS=$CPPFLAGS
   11210  1.1  christos     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11211  1.1  christos 
   11212  1.1  christos     save_LDFLAGS=$LDFLAGS
   11213  1.1  christos     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11214  1.1  christos 
   11215  1.1  christos     save_LIBS=$LIBS
   11216  1.1  christos     LIBS="$lt_cv_dlopen_libs $LIBS"
   11217  1.1  christos 
   11218  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11219  1.1  christos $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11220  1.1  christos if ${lt_cv_dlopen_self+:} false; then :
   11221  1.1  christos   $as_echo_n "(cached) " >&6
   11222  1.1  christos else
   11223  1.1  christos   	  if test yes = "$cross_compiling"; then :
   11224  1.1  christos   lt_cv_dlopen_self=cross
   11225  1.1  christos else
   11226  1.1  christos   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11227  1.1  christos   lt_status=$lt_dlunknown
   11228  1.1  christos   cat > conftest.$ac_ext <<_LT_EOF
   11229  1.1  christos #line $LINENO "configure"
   11230  1.1  christos #include "confdefs.h"
   11231  1.1  christos 
   11232  1.1  christos #if HAVE_DLFCN_H
   11233  1.1  christos #include <dlfcn.h>
   11234  1.1  christos #endif
   11235  1.1  christos 
   11236  1.1  christos #include <stdio.h>
   11237  1.1  christos 
   11238  1.1  christos #ifdef RTLD_GLOBAL
   11239  1.1  christos #  define LT_DLGLOBAL		RTLD_GLOBAL
   11240  1.1  christos #else
   11241  1.1  christos #  ifdef DL_GLOBAL
   11242  1.1  christos #    define LT_DLGLOBAL		DL_GLOBAL
   11243  1.1  christos #  else
   11244  1.1  christos #    define LT_DLGLOBAL		0
   11245  1.1  christos #  endif
   11246  1.1  christos #endif
   11247  1.1  christos 
   11248  1.1  christos /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11249  1.1  christos    find out it does not work in some platform. */
   11250  1.1  christos #ifndef LT_DLLAZY_OR_NOW
   11251  1.1  christos #  ifdef RTLD_LAZY
   11252  1.1  christos #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11253  1.1  christos #  else
   11254  1.1  christos #    ifdef DL_LAZY
   11255  1.1  christos #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11256  1.1  christos #    else
   11257  1.1  christos #      ifdef RTLD_NOW
   11258  1.1  christos #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11259  1.1  christos #      else
   11260  1.1  christos #        ifdef DL_NOW
   11261  1.1  christos #          define LT_DLLAZY_OR_NOW	DL_NOW
   11262  1.1  christos #        else
   11263  1.1  christos #          define LT_DLLAZY_OR_NOW	0
   11264  1.1  christos #        endif
   11265  1.1  christos #      endif
   11266  1.1  christos #    endif
   11267  1.1  christos #  endif
   11268  1.1  christos #endif
   11269  1.1  christos 
   11270  1.1  christos /* When -fvisibility=hidden is used, assume the code has been annotated
   11271  1.1  christos    correspondingly for the symbols needed.  */
   11272  1.1  christos #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11273  1.1  christos int fnord () __attribute__((visibility("default")));
   11274  1.1  christos #endif
   11275  1.1  christos 
   11276  1.1  christos int fnord () { return 42; }
   11277  1.1  christos int main ()
   11278  1.1  christos {
   11279  1.1  christos   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11280  1.1  christos   int status = $lt_dlunknown;
   11281  1.1  christos 
   11282  1.1  christos   if (self)
   11283  1.1  christos     {
   11284  1.1  christos       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11285  1.1  christos       else
   11286  1.1  christos         {
   11287  1.1  christos 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11288  1.1  christos           else puts (dlerror ());
   11289  1.1  christos 	}
   11290  1.1  christos       /* dlclose (self); */
   11291  1.1  christos     }
   11292  1.1  christos   else
   11293  1.1  christos     puts (dlerror ());
   11294  1.1  christos 
   11295  1.1  christos   return status;
   11296  1.1  christos }
   11297  1.1  christos _LT_EOF
   11298  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11299  1.1  christos   (eval $ac_link) 2>&5
   11300  1.1  christos   ac_status=$?
   11301  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11302  1.1  christos   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11303  1.1  christos     (./conftest; exit; ) >&5 2>/dev/null
   11304  1.1  christos     lt_status=$?
   11305  1.1  christos     case x$lt_status in
   11306  1.1  christos       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11307  1.1  christos       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11308  1.1  christos       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11309  1.1  christos     esac
   11310  1.1  christos   else :
   11311  1.1  christos     # compilation failed
   11312  1.1  christos     lt_cv_dlopen_self=no
   11313  1.1  christos   fi
   11314  1.1  christos fi
   11315  1.1  christos rm -fr conftest*
   11316  1.1  christos 
   11317  1.1  christos 
   11318  1.1  christos fi
   11319  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11320  1.1  christos $as_echo "$lt_cv_dlopen_self" >&6; }
   11321  1.1  christos 
   11322  1.1  christos     if test yes = "$lt_cv_dlopen_self"; then
   11323  1.1  christos       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11324  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11325  1.1  christos $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11326  1.1  christos if ${lt_cv_dlopen_self_static+:} false; then :
   11327  1.1  christos   $as_echo_n "(cached) " >&6
   11328  1.1  christos else
   11329  1.1  christos   	  if test yes = "$cross_compiling"; then :
   11330  1.1  christos   lt_cv_dlopen_self_static=cross
   11331  1.1  christos else
   11332  1.1  christos   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11333  1.1  christos   lt_status=$lt_dlunknown
   11334  1.1  christos   cat > conftest.$ac_ext <<_LT_EOF
   11335  1.1  christos #line $LINENO "configure"
   11336  1.1  christos #include "confdefs.h"
   11337  1.1  christos 
   11338  1.1  christos #if HAVE_DLFCN_H
   11339  1.1  christos #include <dlfcn.h>
   11340  1.1  christos #endif
   11341  1.1  christos 
   11342  1.1  christos #include <stdio.h>
   11343  1.1  christos 
   11344  1.1  christos #ifdef RTLD_GLOBAL
   11345  1.1  christos #  define LT_DLGLOBAL		RTLD_GLOBAL
   11346  1.1  christos #else
   11347  1.1  christos #  ifdef DL_GLOBAL
   11348  1.1  christos #    define LT_DLGLOBAL		DL_GLOBAL
   11349  1.1  christos #  else
   11350  1.1  christos #    define LT_DLGLOBAL		0
   11351  1.1  christos #  endif
   11352  1.1  christos #endif
   11353  1.1  christos 
   11354  1.1  christos /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11355  1.1  christos    find out it does not work in some platform. */
   11356  1.1  christos #ifndef LT_DLLAZY_OR_NOW
   11357  1.1  christos #  ifdef RTLD_LAZY
   11358  1.1  christos #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11359  1.1  christos #  else
   11360  1.1  christos #    ifdef DL_LAZY
   11361  1.1  christos #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11362  1.1  christos #    else
   11363  1.1  christos #      ifdef RTLD_NOW
   11364  1.1  christos #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11365  1.1  christos #      else
   11366  1.1  christos #        ifdef DL_NOW
   11367  1.1  christos #          define LT_DLLAZY_OR_NOW	DL_NOW
   11368  1.1  christos #        else
   11369  1.1  christos #          define LT_DLLAZY_OR_NOW	0
   11370  1.1  christos #        endif
   11371  1.1  christos #      endif
   11372  1.1  christos #    endif
   11373  1.1  christos #  endif
   11374  1.1  christos #endif
   11375  1.1  christos 
   11376  1.1  christos /* When -fvisibility=hidden is used, assume the code has been annotated
   11377  1.1  christos    correspondingly for the symbols needed.  */
   11378  1.1  christos #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11379  1.1  christos int fnord () __attribute__((visibility("default")));
   11380  1.1  christos #endif
   11381  1.1  christos 
   11382  1.1  christos int fnord () { return 42; }
   11383  1.1  christos int main ()
   11384  1.1  christos {
   11385  1.1  christos   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11386  1.1  christos   int status = $lt_dlunknown;
   11387  1.1  christos 
   11388  1.1  christos   if (self)
   11389  1.1  christos     {
   11390  1.1  christos       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11391  1.1  christos       else
   11392  1.1  christos         {
   11393  1.1  christos 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11394  1.1  christos           else puts (dlerror ());
   11395  1.1  christos 	}
   11396  1.1  christos       /* dlclose (self); */
   11397  1.1  christos     }
   11398  1.1  christos   else
   11399  1.1  christos     puts (dlerror ());
   11400  1.1  christos 
   11401  1.1  christos   return status;
   11402  1.1  christos }
   11403  1.1  christos _LT_EOF
   11404  1.1  christos   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11405  1.1  christos   (eval $ac_link) 2>&5
   11406  1.1  christos   ac_status=$?
   11407  1.1  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11408  1.1  christos   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11409  1.1  christos     (./conftest; exit; ) >&5 2>/dev/null
   11410  1.1  christos     lt_status=$?
   11411  1.1  christos     case x$lt_status in
   11412  1.1  christos       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11413  1.1  christos       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11414  1.1  christos       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11415  1.1  christos     esac
   11416  1.1  christos   else :
   11417  1.1  christos     # compilation failed
   11418  1.1  christos     lt_cv_dlopen_self_static=no
   11419  1.1  christos   fi
   11420  1.1  christos fi
   11421  1.1  christos rm -fr conftest*
   11422  1.1  christos 
   11423  1.1  christos 
   11424  1.1  christos fi
   11425  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11426  1.1  christos $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11427  1.1  christos     fi
   11428  1.1  christos 
   11429  1.1  christos     CPPFLAGS=$save_CPPFLAGS
   11430  1.1  christos     LDFLAGS=$save_LDFLAGS
   11431  1.1  christos     LIBS=$save_LIBS
   11432  1.1  christos     ;;
   11433  1.1  christos   esac
   11434  1.1  christos 
   11435  1.1  christos   case $lt_cv_dlopen_self in
   11436  1.1  christos   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11437  1.1  christos   *) enable_dlopen_self=unknown ;;
   11438  1.1  christos   esac
   11439  1.1  christos 
   11440  1.1  christos   case $lt_cv_dlopen_self_static in
   11441  1.1  christos   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11442  1.1  christos   *) enable_dlopen_self_static=unknown ;;
   11443  1.1  christos   esac
   11444  1.1  christos fi
   11445  1.1  christos 
   11446  1.1  christos 
   11447  1.1  christos 
   11448  1.1  christos 
   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 striplib=
   11463  1.1  christos old_striplib=
   11464  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11465  1.1  christos $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11466  1.1  christos if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11467  1.1  christos   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11468  1.1  christos   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11469  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11470  1.1  christos $as_echo "yes" >&6; }
   11471  1.1  christos else
   11472  1.1  christos # FIXME - insert some real tests, host_os isn't really good enough
   11473  1.1  christos   case $host_os in
   11474  1.1  christos   darwin*)
   11475  1.1  christos     if test -n "$STRIP"; then
   11476  1.1  christos       striplib="$STRIP -x"
   11477  1.1  christos       old_striplib="$STRIP -S"
   11478  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11479  1.1  christos $as_echo "yes" >&6; }
   11480  1.1  christos     else
   11481  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11482  1.1  christos $as_echo "no" >&6; }
   11483  1.1  christos     fi
   11484  1.1  christos     ;;
   11485  1.1  christos   *)
   11486  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11487  1.1  christos $as_echo "no" >&6; }
   11488  1.1  christos     ;;
   11489  1.1  christos   esac
   11490  1.1  christos fi
   11491  1.1  christos 
   11492  1.1  christos 
   11493  1.1  christos 
   11494  1.1  christos 
   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   # Report what library types will actually be built
   11504  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11505  1.1  christos $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11506  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11507  1.1  christos $as_echo "$can_build_shared" >&6; }
   11508  1.1  christos 
   11509  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11510  1.1  christos $as_echo_n "checking whether to build shared libraries... " >&6; }
   11511  1.1  christos   test no = "$can_build_shared" && enable_shared=no
   11512  1.1  christos 
   11513  1.1  christos   # On AIX, shared libraries and static libraries use the same namespace, and
   11514  1.1  christos   # are all built from PIC.
   11515  1.1  christos   case $host_os in
   11516  1.1  christos   aix3*)
   11517  1.1  christos     test yes = "$enable_shared" && enable_static=no
   11518  1.1  christos     if test -n "$RANLIB"; then
   11519  1.1  christos       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11520  1.1  christos       postinstall_cmds='$RANLIB $lib'
   11521  1.1  christos     fi
   11522  1.1  christos     ;;
   11523  1.1  christos 
   11524  1.1  christos   aix[4-9]*)
   11525  1.1  christos     if test ia64 != "$host_cpu"; then
   11526  1.1  christos       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11527  1.1  christos       yes,aix,yes) ;;			# shared object as lib.so file only
   11528  1.1  christos       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11529  1.1  christos       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11530  1.1  christos       esac
   11531  1.1  christos     fi
   11532  1.1  christos     ;;
   11533  1.1  christos   esac
   11534  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11535  1.1  christos $as_echo "$enable_shared" >&6; }
   11536  1.1  christos 
   11537  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11538  1.1  christos $as_echo_n "checking whether to build static libraries... " >&6; }
   11539  1.1  christos   # Make sure either enable_shared or enable_static is yes.
   11540  1.1  christos   test yes = "$enable_shared" || enable_static=yes
   11541  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11542  1.1  christos $as_echo "$enable_static" >&6; }
   11543  1.1  christos 
   11544  1.1  christos 
   11545  1.1  christos 
   11546  1.1  christos 
   11547  1.1  christos fi
   11548  1.1  christos ac_ext=c
   11549  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   11550  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11551  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11552  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11553  1.1  christos 
   11554  1.1  christos CC=$lt_save_CC
   11555  1.1  christos 
   11556  1.1  christos 
   11557  1.1  christos 
   11558  1.1  christos 
   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         ac_config_commands="$ac_config_commands libtool"
   11571  1.1  christos 
   11572  1.1  christos 
   11573  1.1  christos 
   11574  1.1  christos 
   11575  1.1  christos # Only expand once:
   11576  1.1  christos 
   11577  1.1  christos 
   11578  1.1  christos # Find a good install program.  We prefer a C program (faster),
   11579  1.1  christos # so one script is as good as another.  But avoid the broken or
   11580  1.1  christos # incompatible versions:
   11581  1.1  christos # SysV /etc/install, /usr/sbin/install
   11582  1.1  christos # SunOS /usr/etc/install
   11583  1.1  christos # IRIX /sbin/install
   11584  1.1  christos # AIX /bin/install
   11585  1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   11586  1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11587  1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11588  1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11589  1.1  christos # OS/2's system install, which has a completely different semantic
   11590  1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   11591  1.1  christos # Reject install programs that cannot install multiple files.
   11592  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   11593  1.1  christos $as_echo_n "checking for a BSD-compatible install... " >&6; }
   11594  1.1  christos if test -z "$INSTALL"; then
   11595  1.1  christos if ${ac_cv_path_install+:} false; then :
   11596  1.1  christos   $as_echo_n "(cached) " >&6
   11597  1.1  christos else
   11598  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11599  1.1  christos for as_dir in $PATH
   11600  1.1  christos do
   11601  1.1  christos   IFS=$as_save_IFS
   11602  1.1  christos   test -z "$as_dir" && as_dir=.
   11603  1.1  christos     # Account for people who put trailing slashes in PATH elements.
   11604  1.1  christos case $as_dir/ in #((
   11605  1.1  christos   ./ | .// | /[cC]/* | \
   11606  1.1  christos   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11607  1.1  christos   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   11608  1.1  christos   /usr/ucb/* ) ;;
   11609  1.1  christos   *)
   11610  1.1  christos     # OSF1 and SCO ODT 3.0 have their own names for install.
   11611  1.1  christos     # Don't use installbsd from OSF since it installs stuff as root
   11612  1.1  christos     # by default.
   11613  1.1  christos     for ac_prog in ginstall scoinst install; do
   11614  1.1  christos       for ac_exec_ext in '' $ac_executable_extensions; do
   11615  1.1  christos 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   11616  1.1  christos 	  if test $ac_prog = install &&
   11617  1.1  christos 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11618  1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   11619  1.1  christos 	    :
   11620  1.1  christos 	  elif test $ac_prog = install &&
   11621  1.1  christos 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11622  1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   11623  1.1  christos 	    :
   11624  1.1  christos 	  else
   11625  1.1  christos 	    rm -rf conftest.one conftest.two conftest.dir
   11626  1.1  christos 	    echo one > conftest.one
   11627  1.1  christos 	    echo two > conftest.two
   11628  1.1  christos 	    mkdir conftest.dir
   11629  1.1  christos 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   11630  1.1  christos 	      test -s conftest.one && test -s conftest.two &&
   11631  1.1  christos 	      test -s conftest.dir/conftest.one &&
   11632  1.1  christos 	      test -s conftest.dir/conftest.two
   11633  1.1  christos 	    then
   11634  1.1  christos 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   11635  1.1  christos 	      break 3
   11636  1.1  christos 	    fi
   11637  1.1  christos 	  fi
   11638  1.1  christos 	fi
   11639  1.1  christos       done
   11640  1.1  christos     done
   11641  1.1  christos     ;;
   11642  1.1  christos esac
   11643  1.1  christos 
   11644  1.1  christos   done
   11645  1.1  christos IFS=$as_save_IFS
   11646  1.1  christos 
   11647  1.1  christos rm -rf conftest.one conftest.two conftest.dir
   11648  1.1  christos 
   11649  1.1  christos fi
   11650  1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   11651  1.1  christos     INSTALL=$ac_cv_path_install
   11652  1.1  christos   else
   11653  1.1  christos     # As a last resort, use the slow shell script.  Don't cache a
   11654  1.1  christos     # value for INSTALL within a source directory, because that will
   11655  1.1  christos     # break other packages using the cache if that directory is
   11656  1.1  christos     # removed, or if the value is a relative name.
   11657  1.1  christos     INSTALL=$ac_install_sh
   11658  1.1  christos   fi
   11659  1.1  christos fi
   11660  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   11661  1.1  christos $as_echo "$INSTALL" >&6; }
   11662  1.1  christos 
   11663  1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   11664  1.1  christos # It thinks the first close brace ends the variable substitution.
   11665  1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   11666  1.1  christos 
   11667  1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   11668  1.1  christos 
   11669  1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   11670  1.1  christos 
   11671  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   11672  1.1  christos $as_echo_n "checking whether ln -s works... " >&6; }
   11673  1.1  christos LN_S=$as_ln_s
   11674  1.1  christos if test "$LN_S" = "ln -s"; then
   11675  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11676  1.1  christos $as_echo "yes" >&6; }
   11677  1.1  christos else
   11678  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   11679  1.1  christos $as_echo "no, using $LN_S" >&6; }
   11680  1.1  christos fi
   11681  1.1  christos 
   11682  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   11683  1.3  christos $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   11684  1.3  christos if ${ac_cv_prog_shell+:} false; then :
   11685  1.3  christos   $as_echo_n "(cached) " >&6
   11686  1.3  christos else
   11687  1.3  christos   ac_test_shell_script='
   11688  1.3  christos 			  test "$(expr 1 + 1)" = "2" &&
   11689  1.3  christos 			  test "$(( 1 + 1 ))" = "2"
   11690  1.3  christos 			  '
   11691  1.3  christos 
   11692  1.3  christos 			  for ac_cv_prog_shell in \
   11693  1.3  christos 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   11694  1.3  christos 			    case $ac_cv_prog_shell in #(
   11695  1.3  christos   /*) :
   11696  1.3  christos 
   11697  1.3  christos 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   11698  1.4  christos   break
   11699  1.3  christos fi
   11700  1.3  christos 				     ;; #(
   11701  1.3  christos   *) :
   11702  1.3  christos      ;;
   11703  1.3  christos esac
   11704  1.3  christos 			  done
   11705  1.3  christos 
   11706  1.3  christos fi
   11707  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   11708  1.3  christos $as_echo "$ac_cv_prog_shell" >&6; }
   11709  1.3  christos 	  if test "$ac_cv_prog_shell" = "no"; then :
   11710  1.3  christos   SHELL=/bin/sh
   11711  1.3  christos 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   11712  1.3  christos $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   11713  1.3  christos 
   11714  1.3  christos else
   11715  1.3  christos   SHELL="$ac_cv_prog_shell"
   11716  1.3  christos 
   11717  1.3  christos fi
   11718  1.3  christos 
   11719  1.3  christos 
   11720  1.3  christos 
   11721  1.3  christos 
   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 # Use pkg-config
   11730  1.3  christos #
   11731  1.3  christos 
   11732  1.3  christos 
   11733  1.3  christos 
   11734  1.3  christos 
   11735  1.3  christos 
   11736  1.3  christos 
   11737  1.3  christos 
   11738  1.1  christos 
   11739  1.3  christos if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   11740  1.3  christos 	if test -n "$ac_tool_prefix"; then
   11741  1.3  christos   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   11742  1.3  christos set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   11743  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11744  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   11745  1.3  christos if ${ac_cv_path_PKG_CONFIG+:} false; then :
   11746  1.3  christos   $as_echo_n "(cached) " >&6
   11747  1.3  christos else
   11748  1.3  christos   case $PKG_CONFIG in
   11749  1.3  christos   [\\/]* | ?:[\\/]*)
   11750  1.3  christos   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   11751  1.3  christos   ;;
   11752  1.3  christos   *)
   11753  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11754  1.3  christos for as_dir in $PATH
   11755  1.3  christos do
   11756  1.3  christos   IFS=$as_save_IFS
   11757  1.3  christos   test -z "$as_dir" && as_dir=.
   11758  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   11759  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11760  1.3  christos     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11761  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11762  1.3  christos     break 2
   11763  1.3  christos   fi
   11764  1.3  christos done
   11765  1.3  christos   done
   11766  1.3  christos IFS=$as_save_IFS
   11767  1.1  christos 
   11768  1.3  christos   ;;
   11769  1.3  christos esac
   11770  1.3  christos fi
   11771  1.3  christos PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   11772  1.3  christos if test -n "$PKG_CONFIG"; then
   11773  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   11774  1.3  christos $as_echo "$PKG_CONFIG" >&6; }
   11775  1.3  christos else
   11776  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11777  1.3  christos $as_echo "no" >&6; }
   11778  1.3  christos fi
   11779  1.1  christos 
   11780  1.1  christos 
   11781  1.3  christos fi
   11782  1.3  christos if test -z "$ac_cv_path_PKG_CONFIG"; then
   11783  1.3  christos   ac_pt_PKG_CONFIG=$PKG_CONFIG
   11784  1.3  christos   # Extract the first word of "pkg-config", so it can be a program name with args.
   11785  1.3  christos set dummy pkg-config; ac_word=$2
   11786  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11787  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   11788  1.3  christos if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   11789  1.3  christos   $as_echo_n "(cached) " >&6
   11790  1.3  christos else
   11791  1.3  christos   case $ac_pt_PKG_CONFIG in
   11792  1.3  christos   [\\/]* | ?:[\\/]*)
   11793  1.3  christos   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   11794  1.3  christos   ;;
   11795  1.3  christos   *)
   11796  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11797  1.3  christos for as_dir in $PATH
   11798  1.3  christos do
   11799  1.3  christos   IFS=$as_save_IFS
   11800  1.3  christos   test -z "$as_dir" && as_dir=.
   11801  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   11802  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11803  1.3  christos     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11804  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11805  1.3  christos     break 2
   11806  1.3  christos   fi
   11807  1.3  christos done
   11808  1.3  christos   done
   11809  1.3  christos IFS=$as_save_IFS
   11810  1.1  christos 
   11811  1.3  christos   ;;
   11812  1.3  christos esac
   11813  1.3  christos fi
   11814  1.3  christos ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   11815  1.3  christos if test -n "$ac_pt_PKG_CONFIG"; then
   11816  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   11817  1.3  christos $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   11818  1.3  christos else
   11819  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11820  1.3  christos $as_echo "no" >&6; }
   11821  1.3  christos fi
   11822  1.1  christos 
   11823  1.3  christos   if test "x$ac_pt_PKG_CONFIG" = x; then
   11824  1.3  christos     PKG_CONFIG=""
   11825  1.3  christos   else
   11826  1.3  christos     case $cross_compiling:$ac_tool_warned in
   11827  1.3  christos yes:)
   11828  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   11829  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   11830  1.3  christos ac_tool_warned=yes ;;
   11831  1.3  christos esac
   11832  1.3  christos     PKG_CONFIG=$ac_pt_PKG_CONFIG
   11833  1.3  christos   fi
   11834  1.3  christos else
   11835  1.3  christos   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   11836  1.3  christos fi
   11837  1.1  christos 
   11838  1.3  christos fi
   11839  1.3  christos if test -n "$PKG_CONFIG"; then
   11840  1.3  christos 	_pkg_min_version=0.9.0
   11841  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   11842  1.3  christos $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   11843  1.3  christos 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   11844  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11845  1.3  christos $as_echo "yes" >&6; }
   11846  1.3  christos 	else
   11847  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11848  1.3  christos $as_echo "no" >&6; }
   11849  1.3  christos 		PKG_CONFIG=""
   11850  1.3  christos 	fi
   11851  1.3  christos fi
   11852  1.1  christos 
   11853  1.1  christos # Warn if the user specified libbind, which is now deprecated
   11854  1.1  christos # Check whether --enable-libbind was given.
   11855  1.1  christos if test "${enable_libbind+set}" = set; then :
   11856  1.1  christos   enableval=$enable_libbind;
   11857  1.1  christos fi
   11858  1.1  christos 
   11859  1.1  christos 
   11860  1.1  christos case "$enable_libbind" in
   11861  1.1  christos 	yes)
   11862  1.1  christos 		as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
   11863  1.1  christos It is available from http://www.isc.org as a separate download." "$LINENO" 5
   11864  1.1  christos 		;;
   11865  1.1  christos 	no|'')
   11866  1.1  christos 		;;
   11867  1.1  christos esac
   11868  1.1  christos 
   11869  1.1  christos # Check whether --enable-buffer_useinline was given.
   11870  1.1  christos if test "${enable_buffer_useinline+set}" = set; then :
   11871  1.1  christos   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   11872  1.1  christos 	      then
   11873  1.1  christos 
   11874  1.1  christos $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11875  1.1  christos 
   11876  1.1  christos 	      fi
   11877  1.1  christos else
   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 
   11882  1.1  christos 
   11883  1.1  christos # Check whether --enable-warn_shadow was given.
   11884  1.1  christos if test "${enable_warn_shadow+set}" = set; then :
   11885  1.1  christos   enableval=$enable_warn_shadow;
   11886  1.1  christos fi
   11887  1.1  christos 
   11888  1.1  christos 
   11889  1.1  christos # Check whether --enable-warn_error was given.
   11890  1.1  christos if test "${enable_warn_error+set}" = set; then :
   11891  1.1  christos   enableval=$enable_warn_error;
   11892  1.1  christos fi
   11893  1.1  christos 
   11894  1.1  christos 
   11895  1.1  christos # Check whether --enable-developer was given.
   11896  1.1  christos if test "${enable_developer+set}" = set; then :
   11897  1.1  christos   enableval=$enable_developer;
   11898  1.1  christos fi
   11899  1.1  christos 
   11900  1.1  christos XTARGETS=
   11901  1.1  christos case "$enable_developer" in
   11902  1.1  christos yes)
   11903  1.3  christos 	STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   11904  1.1  christos 	test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   11905  1.1  christos 	test "${enable_querytrace+set}" = set || enable_querytrace=yes
   11906  1.3  christos 	test "${with_cmocka+set}" = set || with_cmocka=yes
   11907  1.1  christos 	test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   11908  1.1  christos 	test "${enable_symtable+set}" = set || enable_symtable=all
   11909  1.1  christos 	test "${enable_warn_error+set}" = set || enable_warn_error=yes
   11910  1.1  christos 	test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   11911  1.1  christos 	test "${with_zlib+set}" = set || with_zlib=yes
   11912  1.1  christos 	XTARGETS='${XTARGETS}'
   11913  1.1  christos 	;;
   11914  1.1  christos esac
   11915  1.1  christos 
   11916  1.1  christos 
   11917  1.3  christos # Check whether --enable-fuzzing was given.
   11918  1.3  christos if test "${enable_fuzzing+set}" = set; then :
   11919  1.3  christos   enableval=$enable_fuzzing;
   11920  1.3  christos else
   11921  1.3  christos   enable_fuzzing=no
   11922  1.1  christos fi
   11923  1.1  christos 
   11924  1.1  christos 
   11925  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   11926  1.3  christos $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   11927  1.3  christos case $enable_fuzzing in #(
   11928  1.3  christos   no) :
   11929  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11930  1.3  christos $as_echo "no" >&6; } ;; #(
   11931  1.3  christos   afl) :
   11932  1.1  christos 
   11933  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   11934  1.3  christos $as_echo "using AFL" >&6; }
   11935  1.1  christos 
   11936  1.3  christos $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   11937  1.1  christos 
   11938  1.3  christos 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   11939  1.3  christos 	  LIBS="$LIBS -lpthread" ;; #(
   11940  1.3  christos   libfuzzer) :
   11941  1.3  christos 
   11942  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   11943  1.3  christos $as_echo "using libFuzzer" >&6; }
   11944  1.3  christos 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   11945  1.3  christos 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   11946  1.3  christos   *) :
   11947  1.3  christos     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   11948  1.3  christos   *) :
   11949  1.3  christos      ;;
   11950  1.3  christos esac
   11951  1.1  christos 
   11952  1.3  christos if test "$enable_fuzzing" = "afl"; then :
   11953  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   11954  1.3  christos $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   11955  1.3  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11956  1.1  christos /* end confdefs.h.  */
   11957  1.1  christos 
   11958  1.1  christos int
   11959  1.1  christos main ()
   11960  1.1  christos {
   11961  1.3  christos #ifndef __AFL_COMPILER
   11962  1.3  christos 					   #error AFL compiler required
   11963  1.3  christos 					   #endif
   11964  1.3  christos 
   11965  1.1  christos   ;
   11966  1.1  christos   return 0;
   11967  1.1  christos }
   11968  1.1  christos _ACEOF
   11969  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   11970  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11971  1.3  christos $as_echo "yes" >&6; }
   11972  1.3  christos else
   11973  1.3  christos   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   11974  1.1  christos fi
   11975  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11976  1.3  christos 
   11977  1.1  christos fi
   11978  1.1  christos 
   11979  1.3  christos #
   11980  1.3  christos # Make very sure that these are the first files processed by
   11981  1.1  christos # config.status, since we use the processed output as the input for
   11982  1.1  christos # AC_SUBST_FILE() substitutions in other files.
   11983  1.1  christos #
   11984  1.1  christos ac_config_files="$ac_config_files make/rules make/includes"
   11985  1.1  christos 
   11986  1.1  christos 
   11987  1.1  christos # Extract the first word of "ar", so it can be a program name with args.
   11988  1.1  christos set dummy ar; ac_word=$2
   11989  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11990  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   11991  1.1  christos if ${ac_cv_path_AR+:} false; then :
   11992  1.1  christos   $as_echo_n "(cached) " >&6
   11993  1.1  christos else
   11994  1.1  christos   case $AR in
   11995  1.1  christos   [\\/]* | ?:[\\/]*)
   11996  1.1  christos   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   11997  1.1  christos   ;;
   11998  1.1  christos   *)
   11999  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12000  1.1  christos for as_dir in $PATH
   12001  1.1  christos do
   12002  1.1  christos   IFS=$as_save_IFS
   12003  1.1  christos   test -z "$as_dir" && as_dir=.
   12004  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12005  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12006  1.1  christos     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12007  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12008  1.1  christos     break 2
   12009  1.1  christos   fi
   12010  1.1  christos done
   12011  1.1  christos   done
   12012  1.1  christos IFS=$as_save_IFS
   12013  1.1  christos 
   12014  1.1  christos   ;;
   12015  1.1  christos esac
   12016  1.1  christos fi
   12017  1.1  christos AR=$ac_cv_path_AR
   12018  1.1  christos if test -n "$AR"; then
   12019  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12020  1.1  christos $as_echo "$AR" >&6; }
   12021  1.1  christos else
   12022  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12023  1.1  christos $as_echo "no" >&6; }
   12024  1.1  christos fi
   12025  1.1  christos 
   12026  1.1  christos 
   12027  1.1  christos ARFLAGS="cruv"
   12028  1.1  christos 
   12029  1.1  christos 
   12030  1.1  christos 
   12031  1.1  christos # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12032  1.1  christos # "copy" or something.
   12033  1.1  christos LN=ln
   12034  1.1  christos 
   12035  1.1  christos 
   12036  1.1  christos case "$AR" in
   12037  1.1  christos 	"")
   12038  1.1  christos 		as_fn_error $? "
   12039  1.1  christos ar program not found.  Please fix your PATH to include the directory in
   12040  1.1  christos which ar resides, or set AR in the environment with the full path to ar.
   12041  1.1  christos " "$LINENO" 5
   12042  1.1  christos 
   12043  1.1  christos 		;;
   12044  1.1  christos esac
   12045  1.1  christos 
   12046  1.1  christos #
   12047  1.1  christos # Etags.
   12048  1.1  christos #
   12049  1.1  christos for ac_prog in etags emacs-etags
   12050  1.1  christos do
   12051  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12052  1.1  christos set dummy $ac_prog; ac_word=$2
   12053  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12054  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12055  1.1  christos if ${ac_cv_path_ETAGS+:} false; then :
   12056  1.1  christos   $as_echo_n "(cached) " >&6
   12057  1.1  christos else
   12058  1.1  christos   case $ETAGS in
   12059  1.1  christos   [\\/]* | ?:[\\/]*)
   12060  1.1  christos   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
   12061  1.1  christos   ;;
   12062  1.1  christos   *)
   12063  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12064  1.1  christos for as_dir in $PATH
   12065  1.1  christos do
   12066  1.1  christos   IFS=$as_save_IFS
   12067  1.1  christos   test -z "$as_dir" && as_dir=.
   12068  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12069  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12070  1.1  christos     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
   12071  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12072  1.1  christos     break 2
   12073  1.1  christos   fi
   12074  1.1  christos done
   12075  1.1  christos   done
   12076  1.1  christos IFS=$as_save_IFS
   12077  1.1  christos 
   12078  1.1  christos   ;;
   12079  1.1  christos esac
   12080  1.1  christos fi
   12081  1.1  christos ETAGS=$ac_cv_path_ETAGS
   12082  1.1  christos if test -n "$ETAGS"; then
   12083  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
   12084  1.1  christos $as_echo "$ETAGS" >&6; }
   12085  1.1  christos else
   12086  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12087  1.1  christos $as_echo "no" >&6; }
   12088  1.1  christos fi
   12089  1.1  christos 
   12090  1.1  christos 
   12091  1.1  christos   test -n "$ETAGS" && break
   12092  1.1  christos done
   12093  1.1  christos 
   12094  1.1  christos 
   12095  1.1  christos #
   12096  1.1  christos # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
   12097  1.1  christos # GNU emacs etags, and it requires the -L flag.
   12098  1.1  christos #
   12099  1.1  christos if test "X$ETAGS" != "X"; then
   12100  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
   12101  1.1  christos $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
   12102  1.1  christos 	if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
   12103  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12104  1.1  christos $as_echo "yes" >&6; }
   12105  1.1  christos 		ETAGS="$ETAGS -L"
   12106  1.1  christos 	else
   12107  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12108  1.1  christos $as_echo "no" >&6; }
   12109  1.1  christos 	fi
   12110  1.1  christos fi
   12111  1.1  christos 
   12112  1.1  christos 
   12113  1.1  christos #
   12114  1.1  christos # Perl is optional; it is used only by some of the system test scripts.
   12115  1.1  christos # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12116  1.1  christos # but it still compiles without perl, in which case an empty table will be used.
   12117  1.1  christos #
   12118  1.1  christos for ac_prog in perl5 perl
   12119  1.1  christos do
   12120  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12121  1.1  christos set dummy $ac_prog; ac_word=$2
   12122  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12123  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12124  1.1  christos if ${ac_cv_path_PERL+:} false; then :
   12125  1.1  christos   $as_echo_n "(cached) " >&6
   12126  1.1  christos else
   12127  1.1  christos   case $PERL in
   12128  1.1  christos   [\\/]* | ?:[\\/]*)
   12129  1.1  christos   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12130  1.1  christos   ;;
   12131  1.1  christos   *)
   12132  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12133  1.1  christos for as_dir in $PATH
   12134  1.1  christos do
   12135  1.1  christos   IFS=$as_save_IFS
   12136  1.1  christos   test -z "$as_dir" && as_dir=.
   12137  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12138  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12139  1.1  christos     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12140  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12141  1.1  christos     break 2
   12142  1.1  christos   fi
   12143  1.1  christos done
   12144  1.1  christos   done
   12145  1.1  christos IFS=$as_save_IFS
   12146  1.1  christos 
   12147  1.1  christos   ;;
   12148  1.1  christos esac
   12149  1.1  christos fi
   12150  1.1  christos PERL=$ac_cv_path_PERL
   12151  1.1  christos if test -n "$PERL"; then
   12152  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12153  1.1  christos $as_echo "$PERL" >&6; }
   12154  1.1  christos else
   12155  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12156  1.1  christos $as_echo "no" >&6; }
   12157  1.1  christos fi
   12158  1.1  christos 
   12159  1.1  christos 
   12160  1.1  christos   test -n "$PERL" && break
   12161  1.1  christos done
   12162  1.1  christos 
   12163  1.1  christos 
   12164  1.1  christos 
   12165  1.1  christos #
   12166  1.3  christos # Python is also optional but required by default so that dnssec-keymgr gets
   12167  1.3  christos # installed unless explicitly prevented by the user using --without-python.
   12168  1.1  christos #
   12169  1.3  christos testminvers='import sys
   12170  1.3  christos if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12171  1.3  christos    exit(1)'
   12172  1.3  christos 
   12173  1.3  christos testargparse='try: import argparse
   12174  1.3  christos except: exit(1)'
   12175  1.3  christos 
   12176  1.3  christos testply='try: import ply
   12177  1.3  christos except: exit(1)'
   12178  1.3  christos 
   12179  1.4  christos default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12180  1.4  christos 
   12181  1.1  christos 
   12182  1.1  christos # Check whether --with-python was given.
   12183  1.1  christos if test "${with_python+set}" = set; then :
   12184  1.3  christos   withval=$with_python;
   12185  1.1  christos else
   12186  1.4  christos   with_python=$default_with_python
   12187  1.1  christos fi
   12188  1.1  christos 
   12189  1.1  christos 
   12190  1.1  christos # Check whether --with-python-install-dir was given.
   12191  1.1  christos if test "${with_python_install_dir+set}" = set; then :
   12192  1.3  christos   withval=$with_python_install_dir;
   12193  1.1  christos else
   12194  1.3  christos   with_python_install_dir=""
   12195  1.1  christos fi
   12196  1.1  christos 
   12197  1.1  christos 
   12198  1.4  christos if test "$with_python" = "yes"; then :
   12199  1.4  christos   with_python=$default_with_python
   12200  1.4  christos fi
   12201  1.4  christos 
   12202  1.3  christos if test "$with_python" = "no"; then :
   12203  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12204  1.3  christos $as_echo_n "checking for Python support... " >&6; }
   12205  1.3  christos        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12206  1.3  christos $as_echo "disabled" >&6; }
   12207  1.3  christos else
   12208  1.3  christos   for p in $with_python
   12209  1.3  christos        do
   12210  1.3  christos 	 case $p in #(
   12211  1.3  christos   /*) :
   12212  1.3  christos     PYTHON="$p" ;; #(
   12213  1.3  christos   *) :
   12214  1.3  christos      ;;
   12215  1.3  christos esac
   12216  1.1  christos 
   12217  1.3  christos 	 # Extract the first word of "$p", so it can be a program name with args.
   12218  1.3  christos set dummy $p; ac_word=$2
   12219  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12220  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12221  1.1  christos if ${ac_cv_path_PYTHON+:} false; then :
   12222  1.1  christos   $as_echo_n "(cached) " >&6
   12223  1.1  christos else
   12224  1.1  christos   case $PYTHON in
   12225  1.1  christos   [\\/]* | ?:[\\/]*)
   12226  1.1  christos   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12227  1.1  christos   ;;
   12228  1.1  christos   *)
   12229  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12230  1.1  christos for as_dir in $PATH
   12231  1.1  christos do
   12232  1.1  christos   IFS=$as_save_IFS
   12233  1.1  christos   test -z "$as_dir" && as_dir=.
   12234  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12235  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12236  1.1  christos     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12237  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12238  1.1  christos     break 2
   12239  1.1  christos   fi
   12240  1.1  christos done
   12241  1.1  christos   done
   12242  1.1  christos IFS=$as_save_IFS
   12243  1.1  christos 
   12244  1.1  christos   ;;
   12245  1.1  christos esac
   12246  1.1  christos fi
   12247  1.1  christos PYTHON=$ac_cv_path_PYTHON
   12248  1.1  christos if test -n "$PYTHON"; then
   12249  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12250  1.1  christos $as_echo "$PYTHON" >&6; }
   12251  1.1  christos else
   12252  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12253  1.1  christos $as_echo "no" >&6; }
   12254  1.1  christos fi
   12255  1.1  christos 
   12256  1.1  christos 
   12257  1.3  christos 	 # Do not cache the result of the check from the previous line.  If the
   12258  1.3  christos 	 # first found Python interpreter has missing module dependencies and
   12259  1.3  christos 	 # the result of the above check is cached, subsequent module checks
   12260  1.3  christos 	 # will erroneously keep on using the cached path to the first found
   12261  1.3  christos 	 # Python interpreter instead of different ones.
   12262  1.3  christos 	 unset ac_cv_path_PYTHON
   12263  1.3  christos 
   12264  1.3  christos 	 if test -z "$PYTHON"; then :
   12265  1.3  christos   continue
   12266  1.3  christos fi
   12267  1.1  christos 
   12268  1.3  christos 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12269  1.3  christos $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12270  1.3  christos 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12271  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12272  1.3  christos $as_echo "yes" >&6; }
   12273  1.3  christos else
   12274  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12275  1.3  christos $as_echo "no" >&6; }
   12276  1.3  christos 		unset PYTHON
   12277  1.3  christos 		continue
   12278  1.3  christos fi
   12279  1.1  christos 
   12280  1.3  christos 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12281  1.3  christos $as_echo_n "checking Python module 'argparse'... " >&6; }
   12282  1.3  christos 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12283  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12284  1.3  christos $as_echo "yes" >&6; }
   12285  1.1  christos else
   12286  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12287  1.3  christos $as_echo "no" >&6; }
   12288  1.3  christos 		unset PYTHON
   12289  1.3  christos 		continue
   12290  1.3  christos fi
   12291  1.1  christos 
   12292  1.3  christos 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12293  1.3  christos $as_echo_n "checking Python module 'ply'... " >&6; }
   12294  1.3  christos 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12295  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12296  1.3  christos $as_echo "yes" >&6; }
   12297  1.1  christos else
   12298  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12299  1.1  christos $as_echo "no" >&6; }
   12300  1.3  christos 		unset PYTHON
   12301  1.3  christos 		continue
   12302  1.1  christos fi
   12303  1.1  christos 
   12304  1.3  christos 	 # Stop looking any further once we find a Python interpreter
   12305  1.3  christos 	 # satisfying all requirements.
   12306  1.3  christos 	 break
   12307  1.3  christos        done
   12308  1.1  christos 
   12309  1.3  christos        if test "X$PYTHON" = "X"; then :
   12310  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12311  1.3  christos $as_echo_n "checking for Python support... " >&6; }
   12312  1.3  christos 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12313  1.3  christos $as_echo "no" >&6; }
   12314  1.3  christos 	      as_fn_error $? "Python required for dnssec-keymgr" "$LINENO" 5
   12315  1.3  christos fi
   12316  1.3  christos fi
   12317  1.1  christos 
   12318  1.1  christos PYTHON_TOOLS=''
   12319  1.1  christos CHECKDS=''
   12320  1.1  christos COVERAGE=''
   12321  1.1  christos KEYMGR=''
   12322  1.3  christos if test "X$PYTHON" != "X"; then :
   12323  1.3  christos   PYTHON_TOOLS=python
   12324  1.3  christos        CHECKDS=checkds
   12325  1.3  christos        COVERAGE=coverage
   12326  1.3  christos        KEYMGR=keymgr
   12327  1.3  christos        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12328  1.3  christos        if test -n "$with_python_install_dir"; then :
   12329  1.3  christos   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12330  1.3  christos fi
   12331  1.1  christos fi
   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 
   12339  1.1  christos #
   12340  1.1  christos # Special processing of paths depending on whether --prefix,
   12341  1.1  christos # --sysconfdir or --localstatedir arguments were given.  What's
   12342  1.1  christos # desired is some compatibility with the way previous versions
   12343  1.1  christos # of BIND built; they defaulted to /usr/local for most parts of
   12344  1.1  christos # the installation, but named.boot/named.conf was in /etc
   12345  1.1  christos # and named.pid was in /var/run.
   12346  1.1  christos #
   12347  1.1  christos # So ... if none of --prefix, --sysconfdir or --localstatedir are
   12348  1.1  christos # specified, set things up that way.  If --prefix is given, use
   12349  1.1  christos # it for sysconfdir and localstatedir the way configure normally
   12350  1.1  christos # would.  To change the prefix for everything but leave named.conf
   12351  1.1  christos # in /etc or named.pid in /var/run, then do this the usual configure way:
   12352  1.1  christos # ./configure --prefix=/somewhere --sysconfdir=/etc
   12353  1.1  christos # ./configure --prefix=/somewhere --localstatedir=/var
   12354  1.1  christos #
   12355  1.1  christos # To put named.conf and named.pid in /usr/local with everything else,
   12356  1.1  christos # set the prefix explicitly to /usr/local even though that's the default:
   12357  1.1  christos # ./configure --prefix=/usr/local
   12358  1.1  christos #
   12359  1.1  christos case "$prefix" in
   12360  1.1  christos 	NONE)
   12361  1.1  christos 		case "$sysconfdir" in
   12362  1.1  christos 			'${prefix}/etc')
   12363  1.1  christos 				sysconfdir=/etc
   12364  1.1  christos 				;;
   12365  1.1  christos 		esac
   12366  1.1  christos 		case "$localstatedir" in
   12367  1.1  christos 			'${prefix}/var')
   12368  1.1  christos 				localstatedir=/var
   12369  1.1  christos 				;;
   12370  1.1  christos 		esac
   12371  1.1  christos 		;;
   12372  1.1  christos esac
   12373  1.1  christos expanded_sysconfdir=`eval echo $sysconfdir`
   12374  1.1  christos 
   12375  1.1  christos 
   12376  1.1  christos #
   12377  1.1  christos # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12378  1.1  christos # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12379  1.1  christos # configure based on the location of the file where it is substituted.
   12380  1.1  christos # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12381  1.1  christos # subdirectory of install-sh, This relative path will be wrong for all
   12382  1.1  christos # directories more than one level down from install-sh.
   12383  1.1  christos #
   12384  1.1  christos case "$INSTALL" in
   12385  1.1  christos 	/*)
   12386  1.1  christos 		;;
   12387  1.1  christos 	*)
   12388  1.1  christos 		#
   12389  1.1  christos 		# Not all systems have dirname.
   12390  1.1  christos 		#
   12391  1.1  christos 
   12392  1.1  christos 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12393  1.1  christos 
   12394  1.1  christos 
   12395  1.1  christos 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12396  1.1  christos 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12397  1.1  christos 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12398  1.1  christos 		INSTALL="$ac_dir/$ac_prog"
   12399  1.1  christos 		;;
   12400  1.1  christos esac
   12401  1.1  christos 
   12402  1.1  christos ac_ext=c
   12403  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   12404  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12405  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12406  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12407  1.1  christos if test -n "$ac_tool_prefix"; then
   12408  1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12409  1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12410  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12411  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12412  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   12413  1.1  christos   $as_echo_n "(cached) " >&6
   12414  1.1  christos else
   12415  1.1  christos   if test -n "$CC"; then
   12416  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   12417  1.1  christos else
   12418  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12419  1.1  christos for as_dir in $PATH
   12420  1.1  christos do
   12421  1.1  christos   IFS=$as_save_IFS
   12422  1.1  christos   test -z "$as_dir" && as_dir=.
   12423  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12424  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12425  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12426  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12427  1.1  christos     break 2
   12428  1.1  christos   fi
   12429  1.1  christos done
   12430  1.1  christos   done
   12431  1.1  christos IFS=$as_save_IFS
   12432  1.1  christos 
   12433  1.1  christos fi
   12434  1.1  christos fi
   12435  1.1  christos CC=$ac_cv_prog_CC
   12436  1.1  christos if test -n "$CC"; then
   12437  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12438  1.1  christos $as_echo "$CC" >&6; }
   12439  1.1  christos else
   12440  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12441  1.1  christos $as_echo "no" >&6; }
   12442  1.1  christos fi
   12443  1.1  christos 
   12444  1.1  christos 
   12445  1.1  christos fi
   12446  1.1  christos if test -z "$ac_cv_prog_CC"; then
   12447  1.1  christos   ac_ct_CC=$CC
   12448  1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   12449  1.1  christos set dummy gcc; ac_word=$2
   12450  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12451  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12452  1.1  christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12453  1.1  christos   $as_echo_n "(cached) " >&6
   12454  1.1  christos else
   12455  1.1  christos   if test -n "$ac_ct_CC"; then
   12456  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12457  1.1  christos else
   12458  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12459  1.1  christos for as_dir in $PATH
   12460  1.1  christos do
   12461  1.1  christos   IFS=$as_save_IFS
   12462  1.1  christos   test -z "$as_dir" && as_dir=.
   12463  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12464  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12465  1.1  christos     ac_cv_prog_ac_ct_CC="gcc"
   12466  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12467  1.1  christos     break 2
   12468  1.1  christos   fi
   12469  1.1  christos done
   12470  1.1  christos   done
   12471  1.1  christos IFS=$as_save_IFS
   12472  1.1  christos 
   12473  1.1  christos fi
   12474  1.1  christos fi
   12475  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12476  1.1  christos if test -n "$ac_ct_CC"; then
   12477  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12478  1.1  christos $as_echo "$ac_ct_CC" >&6; }
   12479  1.1  christos else
   12480  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12481  1.1  christos $as_echo "no" >&6; }
   12482  1.1  christos fi
   12483  1.1  christos 
   12484  1.1  christos   if test "x$ac_ct_CC" = x; then
   12485  1.1  christos     CC=""
   12486  1.1  christos   else
   12487  1.1  christos     case $cross_compiling:$ac_tool_warned in
   12488  1.1  christos yes:)
   12489  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12490  1.1  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12491  1.1  christos ac_tool_warned=yes ;;
   12492  1.1  christos esac
   12493  1.1  christos     CC=$ac_ct_CC
   12494  1.1  christos   fi
   12495  1.1  christos else
   12496  1.1  christos   CC="$ac_cv_prog_CC"
   12497  1.1  christos fi
   12498  1.1  christos 
   12499  1.1  christos if test -z "$CC"; then
   12500  1.1  christos           if test -n "$ac_tool_prefix"; then
   12501  1.1  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   12502  1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   12503  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12504  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   12505  1.1  christos if ${ac_cv_prog_CC+:} false; then :
   12506  1.1  christos   $as_echo_n "(cached) " >&6
   12507  1.1  christos else
   12508  1.1  christos   if test -n "$CC"; then
   12509  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   12510  1.1  christos else
   12511  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12512  1.1  christos for as_dir in $PATH
   12513  1.1  christos do
   12514  1.1  christos   IFS=$as_save_IFS
   12515  1.1  christos   test -z "$as_dir" && as_dir=.
   12516  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12517  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12518  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   12519  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12520  1.1  christos     break 2
   12521  1.1  christos   fi
   12522  1.1  christos done
   12523  1.1  christos   done
   12524  1.1  christos IFS=$as_save_IFS
   12525  1.1  christos 
   12526  1.3  christos fi
   12527  1.3  christos fi
   12528  1.3  christos CC=$ac_cv_prog_CC
   12529  1.3  christos if test -n "$CC"; then
   12530  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12531  1.3  christos $as_echo "$CC" >&6; }
   12532  1.1  christos else
   12533  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12534  1.3  christos $as_echo "no" >&6; }
   12535  1.1  christos fi
   12536  1.1  christos 
   12537  1.1  christos 
   12538  1.3  christos   fi
   12539  1.3  christos fi
   12540  1.3  christos if test -z "$CC"; then
   12541  1.3  christos   # Extract the first word of "cc", so it can be a program name with args.
   12542  1.3  christos set dummy cc; ac_word=$2
   12543  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12544  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   12545  1.3  christos if ${ac_cv_prog_CC+:} false; then :
   12546  1.1  christos   $as_echo_n "(cached) " >&6
   12547  1.1  christos else
   12548  1.3  christos   if test -n "$CC"; then
   12549  1.3  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   12550  1.1  christos else
   12551  1.3  christos   ac_prog_rejected=no
   12552  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12553  1.3  christos for as_dir in $PATH
   12554  1.3  christos do
   12555  1.3  christos   IFS=$as_save_IFS
   12556  1.3  christos   test -z "$as_dir" && as_dir=.
   12557  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12558  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12559  1.3  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   12560  1.3  christos        ac_prog_rejected=yes
   12561  1.3  christos        continue
   12562  1.3  christos      fi
   12563  1.3  christos     ac_cv_prog_CC="cc"
   12564  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12565  1.3  christos     break 2
   12566  1.3  christos   fi
   12567  1.3  christos done
   12568  1.3  christos   done
   12569  1.3  christos IFS=$as_save_IFS
   12570  1.3  christos 
   12571  1.3  christos if test $ac_prog_rejected = yes; then
   12572  1.3  christos   # We found a bogon in the path, so make sure we never use it.
   12573  1.3  christos   set dummy $ac_cv_prog_CC
   12574  1.3  christos   shift
   12575  1.3  christos   if test $# != 0; then
   12576  1.3  christos     # We chose a different compiler from the bogus one.
   12577  1.3  christos     # However, it has the same basename, so the bogon will be chosen
   12578  1.3  christos     # first if we set CC to just the basename; use the full file name.
   12579  1.3  christos     shift
   12580  1.3  christos     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   12581  1.3  christos   fi
   12582  1.1  christos fi
   12583  1.1  christos fi
   12584  1.1  christos fi
   12585  1.3  christos CC=$ac_cv_prog_CC
   12586  1.3  christos if test -n "$CC"; then
   12587  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12588  1.3  christos $as_echo "$CC" >&6; }
   12589  1.3  christos else
   12590  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12591  1.3  christos $as_echo "no" >&6; }
   12592  1.1  christos fi
   12593  1.1  christos 
   12594  1.1  christos 
   12595  1.1  christos fi
   12596  1.3  christos if test -z "$CC"; then
   12597  1.3  christos   if test -n "$ac_tool_prefix"; then
   12598  1.3  christos   for ac_prog in cl.exe
   12599  1.3  christos   do
   12600  1.3  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   12601  1.3  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   12602  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12603  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   12604  1.3  christos if ${ac_cv_prog_CC+:} false; then :
   12605  1.3  christos   $as_echo_n "(cached) " >&6
   12606  1.3  christos else
   12607  1.3  christos   if test -n "$CC"; then
   12608  1.3  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   12609  1.3  christos else
   12610  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12611  1.3  christos for as_dir in $PATH
   12612  1.3  christos do
   12613  1.3  christos   IFS=$as_save_IFS
   12614  1.3  christos   test -z "$as_dir" && as_dir=.
   12615  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12616  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12617  1.3  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   12618  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12619  1.3  christos     break 2
   12620  1.3  christos   fi
   12621  1.1  christos done
   12622  1.3  christos   done
   12623  1.3  christos IFS=$as_save_IFS
   12624  1.1  christos 
   12625  1.1  christos fi
   12626  1.3  christos fi
   12627  1.3  christos CC=$ac_cv_prog_CC
   12628  1.3  christos if test -n "$CC"; then
   12629  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12630  1.3  christos $as_echo "$CC" >&6; }
   12631  1.3  christos else
   12632  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12633  1.3  christos $as_echo "no" >&6; }
   12634  1.3  christos fi
   12635  1.1  christos 
   12636  1.1  christos 
   12637  1.3  christos     test -n "$CC" && break
   12638  1.3  christos   done
   12639  1.1  christos fi
   12640  1.3  christos if test -z "$CC"; then
   12641  1.3  christos   ac_ct_CC=$CC
   12642  1.3  christos   for ac_prog in cl.exe
   12643  1.3  christos do
   12644  1.3  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12645  1.3  christos set dummy $ac_prog; ac_word=$2
   12646  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12647  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   12648  1.3  christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12649  1.3  christos   $as_echo_n "(cached) " >&6
   12650  1.3  christos else
   12651  1.3  christos   if test -n "$ac_ct_CC"; then
   12652  1.3  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12653  1.3  christos else
   12654  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12655  1.3  christos for as_dir in $PATH
   12656  1.3  christos do
   12657  1.3  christos   IFS=$as_save_IFS
   12658  1.3  christos   test -z "$as_dir" && as_dir=.
   12659  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   12660  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12661  1.3  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   12662  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12663  1.3  christos     break 2
   12664  1.3  christos   fi
   12665  1.1  christos done
   12666  1.3  christos   done
   12667  1.3  christos IFS=$as_save_IFS
   12668  1.1  christos 
   12669  1.3  christos fi
   12670  1.3  christos fi
   12671  1.3  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12672  1.3  christos if test -n "$ac_ct_CC"; then
   12673  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12674  1.3  christos $as_echo "$ac_ct_CC" >&6; }
   12675  1.3  christos else
   12676  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12677  1.3  christos $as_echo "no" >&6; }
   12678  1.3  christos fi
   12679  1.1  christos 
   12680  1.1  christos 
   12681  1.3  christos   test -n "$ac_ct_CC" && break
   12682  1.3  christos done
   12683  1.1  christos 
   12684  1.3  christos   if test "x$ac_ct_CC" = x; then
   12685  1.3  christos     CC=""
   12686  1.3  christos   else
   12687  1.3  christos     case $cross_compiling:$ac_tool_warned in
   12688  1.3  christos yes:)
   12689  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12690  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12691  1.3  christos ac_tool_warned=yes ;;
   12692  1.1  christos esac
   12693  1.3  christos     CC=$ac_ct_CC
   12694  1.3  christos   fi
   12695  1.3  christos fi
   12696  1.1  christos 
   12697  1.1  christos fi
   12698  1.1  christos 
   12699  1.3  christos 
   12700  1.3  christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   12701  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   12702  1.3  christos as_fn_error $? "no acceptable C compiler found in \$PATH
   12703  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   12704  1.3  christos 
   12705  1.3  christos # Provide some information about the compiler.
   12706  1.3  christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   12707  1.3  christos set X $ac_compile
   12708  1.3  christos ac_compiler=$2
   12709  1.3  christos for ac_option in --version -v -V -qversion; do
   12710  1.3  christos   { { ac_try="$ac_compiler $ac_option >&5"
   12711  1.3  christos case "(($ac_try" in
   12712  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12713  1.3  christos   *) ac_try_echo=$ac_try;;
   12714  1.1  christos esac
   12715  1.3  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   12716  1.3  christos $as_echo "$ac_try_echo"; } >&5
   12717  1.3  christos   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   12718  1.3  christos   ac_status=$?
   12719  1.3  christos   if test -s conftest.err; then
   12720  1.3  christos     sed '10a\
   12721  1.3  christos ... rest of stderr output deleted ...
   12722  1.3  christos          10q' conftest.err >conftest.er1
   12723  1.3  christos     cat conftest.er1 >&5
   12724  1.3  christos   fi
   12725  1.3  christos   rm -f conftest.er1 conftest.err
   12726  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12727  1.3  christos   test $ac_status = 0; }
   12728  1.3  christos done
   12729  1.1  christos 
   12730  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   12731  1.3  christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   12732  1.3  christos if ${ac_cv_c_compiler_gnu+:} false; then :
   12733  1.3  christos   $as_echo_n "(cached) " >&6
   12734  1.1  christos else
   12735  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12736  1.3  christos /* end confdefs.h.  */
   12737  1.1  christos 
   12738  1.1  christos int
   12739  1.1  christos main ()
   12740  1.1  christos {
   12741  1.3  christos #ifndef __GNUC__
   12742  1.3  christos        choke me
   12743  1.3  christos #endif
   12744  1.3  christos 
   12745  1.1  christos   ;
   12746  1.1  christos   return 0;
   12747  1.1  christos }
   12748  1.1  christos _ACEOF
   12749  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   12750  1.3  christos   ac_compiler_gnu=yes
   12751  1.3  christos else
   12752  1.3  christos   ac_compiler_gnu=no
   12753  1.3  christos fi
   12754  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12755  1.3  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   12756  1.3  christos 
   12757  1.3  christos fi
   12758  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   12759  1.3  christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   12760  1.3  christos if test $ac_compiler_gnu = yes; then
   12761  1.3  christos   GCC=yes
   12762  1.1  christos else
   12763  1.3  christos   GCC=
   12764  1.1  christos fi
   12765  1.3  christos ac_test_CFLAGS=${CFLAGS+set}
   12766  1.3  christos ac_save_CFLAGS=$CFLAGS
   12767  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   12768  1.3  christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
   12769  1.3  christos if ${ac_cv_prog_cc_g+:} false; then :
   12770  1.1  christos   $as_echo_n "(cached) " >&6
   12771  1.1  christos else
   12772  1.3  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   12773  1.3  christos    ac_c_werror_flag=yes
   12774  1.3  christos    ac_cv_prog_cc_g=no
   12775  1.3  christos    CFLAGS="-g"
   12776  1.3  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12777  1.1  christos /* end confdefs.h.  */
   12778  1.1  christos 
   12779  1.1  christos int
   12780  1.1  christos main ()
   12781  1.1  christos {
   12782  1.3  christos 
   12783  1.1  christos   ;
   12784  1.1  christos   return 0;
   12785  1.1  christos }
   12786  1.1  christos _ACEOF
   12787  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   12788  1.3  christos   ac_cv_prog_cc_g=yes
   12789  1.1  christos else
   12790  1.3  christos   CFLAGS=""
   12791  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12792  1.3  christos /* end confdefs.h.  */
   12793  1.3  christos 
   12794  1.3  christos int
   12795  1.3  christos main ()
   12796  1.3  christos {
   12797  1.3  christos 
   12798  1.3  christos   ;
   12799  1.3  christos   return 0;
   12800  1.3  christos }
   12801  1.1  christos _ACEOF
   12802  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   12803  1.1  christos 
   12804  1.1  christos else
   12805  1.3  christos   ac_c_werror_flag=$ac_save_c_werror_flag
   12806  1.3  christos 	 CFLAGS="-g"
   12807  1.3  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12808  1.1  christos /* end confdefs.h.  */
   12809  1.1  christos 
   12810  1.1  christos int
   12811  1.1  christos main ()
   12812  1.1  christos {
   12813  1.3  christos 
   12814  1.1  christos   ;
   12815  1.1  christos   return 0;
   12816  1.1  christos }
   12817  1.1  christos _ACEOF
   12818  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   12819  1.3  christos   ac_cv_prog_cc_g=yes
   12820  1.3  christos fi
   12821  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12822  1.3  christos fi
   12823  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12824  1.1  christos fi
   12825  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12826  1.3  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   12827  1.1  christos fi
   12828  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   12829  1.3  christos $as_echo "$ac_cv_prog_cc_g" >&6; }
   12830  1.3  christos if test "$ac_test_CFLAGS" = set; then
   12831  1.3  christos   CFLAGS=$ac_save_CFLAGS
   12832  1.3  christos elif test $ac_cv_prog_cc_g = yes; then
   12833  1.3  christos   if test "$GCC" = yes; then
   12834  1.3  christos     CFLAGS="-g -O2"
   12835  1.3  christos   else
   12836  1.3  christos     CFLAGS="-g"
   12837  1.3  christos   fi
   12838  1.1  christos else
   12839  1.3  christos   if test "$GCC" = yes; then
   12840  1.3  christos     CFLAGS="-O2"
   12841  1.3  christos   else
   12842  1.3  christos     CFLAGS=
   12843  1.3  christos   fi
   12844  1.3  christos fi
   12845  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   12846  1.3  christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   12847  1.3  christos if ${ac_cv_prog_cc_c89+:} false; then :
   12848  1.1  christos   $as_echo_n "(cached) " >&6
   12849  1.1  christos else
   12850  1.3  christos   ac_cv_prog_cc_c89=no
   12851  1.3  christos ac_save_CC=$CC
   12852  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12853  1.1  christos /* end confdefs.h.  */
   12854  1.3  christos #include <stdarg.h>
   12855  1.3  christos #include <stdio.h>
   12856  1.3  christos struct stat;
   12857  1.3  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   12858  1.3  christos struct buf { int x; };
   12859  1.3  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   12860  1.3  christos static char *e (p, i)
   12861  1.3  christos      char **p;
   12862  1.3  christos      int i;
   12863  1.3  christos {
   12864  1.3  christos   return p[i];
   12865  1.3  christos }
   12866  1.3  christos static char *f (char * (*g) (char **, int), char **p, ...)
   12867  1.3  christos {
   12868  1.3  christos   char *s;
   12869  1.3  christos   va_list v;
   12870  1.3  christos   va_start (v,p);
   12871  1.3  christos   s = g (p, va_arg (v,int));
   12872  1.3  christos   va_end (v);
   12873  1.3  christos   return s;
   12874  1.3  christos }
   12875  1.3  christos 
   12876  1.3  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   12877  1.3  christos    function prototypes and stuff, but not '\xHH' hex character constants.
   12878  1.3  christos    These don't provoke an error unfortunately, instead are silently treated
   12879  1.3  christos    as 'x'.  The following induces an error, until -std is added to get
   12880  1.3  christos    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   12881  1.3  christos    array size at least.  It's necessary to write '\x00'==0 to get something
   12882  1.3  christos    that's true only with -std.  */
   12883  1.3  christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   12884  1.3  christos 
   12885  1.3  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   12886  1.3  christos    inside strings and character constants.  */
   12887  1.3  christos #define FOO(x) 'x'
   12888  1.3  christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   12889  1.1  christos 
   12890  1.3  christos int test (int i, double x);
   12891  1.3  christos struct s1 {int (*f) (int a);};
   12892  1.3  christos struct s2 {int (*f) (double a);};
   12893  1.3  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   12894  1.3  christos int argc;
   12895  1.3  christos char **argv;
   12896  1.1  christos int
   12897  1.1  christos main ()
   12898  1.1  christos {
   12899  1.3  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   12900  1.1  christos   ;
   12901  1.1  christos   return 0;
   12902  1.1  christos }
   12903  1.1  christos _ACEOF
   12904  1.3  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   12905  1.3  christos 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   12906  1.3  christos do
   12907  1.3  christos   CC="$ac_save_CC $ac_arg"
   12908  1.3  christos   if ac_fn_c_try_compile "$LINENO"; then :
   12909  1.3  christos   ac_cv_prog_cc_c89=$ac_arg
   12910  1.3  christos fi
   12911  1.3  christos rm -f core conftest.err conftest.$ac_objext
   12912  1.3  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   12913  1.3  christos done
   12914  1.3  christos rm -f conftest.$ac_ext
   12915  1.3  christos CC=$ac_save_CC
   12916  1.3  christos 
   12917  1.1  christos fi
   12918  1.3  christos # AC_CACHE_VAL
   12919  1.3  christos case "x$ac_cv_prog_cc_c89" in
   12920  1.3  christos   x)
   12921  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   12922  1.3  christos $as_echo "none needed" >&6; } ;;
   12923  1.3  christos   xno)
   12924  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   12925  1.3  christos $as_echo "unsupported" >&6; } ;;
   12926  1.3  christos   *)
   12927  1.3  christos     CC="$CC $ac_cv_prog_cc_c89"
   12928  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   12929  1.3  christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   12930  1.3  christos esac
   12931  1.3  christos if test "x$ac_cv_prog_cc_c89" != xno; then :
   12932  1.3  christos 
   12933  1.1  christos fi
   12934  1.1  christos 
   12935  1.3  christos ac_ext=c
   12936  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   12937  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12938  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12939  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12940  1.1  christos 
   12941  1.3  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   12942  1.3  christos $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   12943  1.3  christos if ${ac_cv_prog_cc_c99+:} false; then :
   12944  1.1  christos   $as_echo_n "(cached) " >&6
   12945  1.1  christos else
   12946  1.3  christos   ac_cv_prog_cc_c99=no
   12947  1.3  christos ac_save_CC=$CC
   12948  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12949  1.1  christos /* end confdefs.h.  */
   12950  1.3  christos #include <stdarg.h>
   12951  1.3  christos #include <stdbool.h>
   12952  1.3  christos #include <stdlib.h>
   12953  1.3  christos #include <wchar.h>
   12954  1.3  christos #include <stdio.h>
   12955  1.1  christos 
   12956  1.3  christos // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   12957  1.3  christos #define debug(...) fprintf (stderr, __VA_ARGS__)
   12958  1.3  christos #define showlist(...) puts (#__VA_ARGS__)
   12959  1.3  christos #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   12960  1.3  christos static void
   12961  1.3  christos test_varargs_macros (void)
   12962  1.3  christos {
   12963  1.3  christos   int x = 1234;
   12964  1.3  christos   int y = 5678;
   12965  1.3  christos   debug ("Flag");
   12966  1.3  christos   debug ("X = %d\n", x);
   12967  1.3  christos   showlist (The first, second, and third items.);
   12968  1.3  christos   report (x>y, "x is %d but y is %d", x, y);
   12969  1.3  christos }
   12970  1.3  christos 
   12971  1.3  christos // Check long long types.
   12972  1.3  christos #define BIG64 18446744073709551615ull
   12973  1.3  christos #define BIG32 4294967295ul
   12974  1.3  christos #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   12975  1.3  christos #if !BIG_OK
   12976  1.3  christos   your preprocessor is broken;
   12977  1.3  christos #endif
   12978  1.3  christos #if BIG_OK
   12979  1.3  christos #else
   12980  1.3  christos   your preprocessor is broken;
   12981  1.1  christos #endif
   12982  1.3  christos static long long int bignum = -9223372036854775807LL;
   12983  1.3  christos static unsigned long long int ubignum = BIG64;
   12984  1.3  christos 
   12985  1.3  christos struct incomplete_array
   12986  1.3  christos {
   12987  1.3  christos   int datasize;
   12988  1.3  christos   double data[];
   12989  1.3  christos };
   12990  1.3  christos 
   12991  1.3  christos struct named_init {
   12992  1.3  christos   int number;
   12993  1.3  christos   const wchar_t *name;
   12994  1.3  christos   double average;
   12995  1.3  christos };
   12996  1.3  christos 
   12997  1.3  christos typedef const char *ccp;
   12998  1.3  christos 
   12999  1.3  christos static inline int
   13000  1.3  christos test_restrict (ccp restrict text)
   13001  1.3  christos {
   13002  1.3  christos   // See if C++-style comments work.
   13003  1.3  christos   // Iterate through items via the restricted pointer.
   13004  1.3  christos   // Also check for declarations in for loops.
   13005  1.3  christos   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13006  1.3  christos     continue;
   13007  1.3  christos   return 0;
   13008  1.3  christos }
   13009  1.3  christos 
   13010  1.3  christos // Check varargs and va_copy.
   13011  1.3  christos static void
   13012  1.3  christos test_varargs (const char *format, ...)
   13013  1.3  christos {
   13014  1.3  christos   va_list args;
   13015  1.3  christos   va_start (args, format);
   13016  1.3  christos   va_list args_copy;
   13017  1.3  christos   va_copy (args_copy, args);
   13018  1.3  christos 
   13019  1.3  christos   const char *str;
   13020  1.3  christos   int number;
   13021  1.3  christos   float fnumber;
   13022  1.3  christos 
   13023  1.3  christos   while (*format)
   13024  1.3  christos     {
   13025  1.3  christos       switch (*format++)
   13026  1.3  christos 	{
   13027  1.3  christos 	case 's': // string
   13028  1.3  christos 	  str = va_arg (args_copy, const char *);
   13029  1.3  christos 	  break;
   13030  1.3  christos 	case 'd': // int
   13031  1.3  christos 	  number = va_arg (args_copy, int);
   13032  1.3  christos 	  break;
   13033  1.3  christos 	case 'f': // float
   13034  1.3  christos 	  fnumber = va_arg (args_copy, double);
   13035  1.3  christos 	  break;
   13036  1.3  christos 	default:
   13037  1.3  christos 	  break;
   13038  1.3  christos 	}
   13039  1.3  christos     }
   13040  1.3  christos   va_end (args_copy);
   13041  1.3  christos   va_end (args);
   13042  1.3  christos }
   13043  1.3  christos 
   13044  1.1  christos int
   13045  1.3  christos main ()
   13046  1.3  christos {
   13047  1.3  christos 
   13048  1.3  christos   // Check bool.
   13049  1.3  christos   _Bool success = false;
   13050  1.3  christos 
   13051  1.3  christos   // Check restrict.
   13052  1.3  christos   if (test_restrict ("String literal") == 0)
   13053  1.3  christos     success = true;
   13054  1.3  christos   char *restrict newvar = "Another string";
   13055  1.3  christos 
   13056  1.3  christos   // Check varargs.
   13057  1.3  christos   test_varargs ("s, d' f .", "string", 65, 34.234);
   13058  1.3  christos   test_varargs_macros ();
   13059  1.3  christos 
   13060  1.3  christos   // Check flexible array members.
   13061  1.3  christos   struct incomplete_array *ia =
   13062  1.3  christos     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13063  1.3  christos   ia->datasize = 10;
   13064  1.3  christos   for (int i = 0; i < ia->datasize; ++i)
   13065  1.3  christos     ia->data[i] = i * 1.234;
   13066  1.3  christos 
   13067  1.3  christos   // Check named initializers.
   13068  1.3  christos   struct named_init ni = {
   13069  1.3  christos     .number = 34,
   13070  1.3  christos     .name = L"Test wide string",
   13071  1.3  christos     .average = 543.34343,
   13072  1.3  christos   };
   13073  1.3  christos 
   13074  1.3  christos   ni.number = 58;
   13075  1.3  christos 
   13076  1.3  christos   int dynamic_array[ni.number];
   13077  1.3  christos   dynamic_array[ni.number - 1] = 543;
   13078  1.3  christos 
   13079  1.3  christos   // work around unused variable warnings
   13080  1.3  christos   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13081  1.3  christos 	  || dynamic_array[ni.number - 1] != 543);
   13082  1.3  christos 
   13083  1.1  christos   ;
   13084  1.1  christos   return 0;
   13085  1.1  christos }
   13086  1.1  christos _ACEOF
   13087  1.3  christos for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13088  1.3  christos do
   13089  1.3  christos   CC="$ac_save_CC $ac_arg"
   13090  1.3  christos   if ac_fn_c_try_compile "$LINENO"; then :
   13091  1.3  christos   ac_cv_prog_cc_c99=$ac_arg
   13092  1.1  christos fi
   13093  1.3  christos rm -f core conftest.err conftest.$ac_objext
   13094  1.3  christos   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13095  1.3  christos done
   13096  1.3  christos rm -f conftest.$ac_ext
   13097  1.3  christos CC=$ac_save_CC
   13098  1.3  christos 
   13099  1.1  christos fi
   13100  1.3  christos # AC_CACHE_VAL
   13101  1.3  christos case "x$ac_cv_prog_cc_c99" in
   13102  1.3  christos   x)
   13103  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13104  1.3  christos $as_echo "none needed" >&6; } ;;
   13105  1.3  christos   xno)
   13106  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13107  1.3  christos $as_echo "unsupported" >&6; } ;;
   13108  1.3  christos   *)
   13109  1.3  christos     CC="$CC $ac_cv_prog_cc_c99"
   13110  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13111  1.3  christos $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13112  1.3  christos esac
   13113  1.3  christos if test "x$ac_cv_prog_cc_c99" != xno; then :
   13114  1.1  christos 
   13115  1.1  christos fi
   13116  1.1  christos 
   13117  1.1  christos 
   13118  1.1  christos 
   13119  1.3  christos #
   13120  1.3  christos # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13121  1.3  christos #
   13122  1.3  christos if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13123  1.3  christos 	CCNOOPT="-O0"
   13124  1.1  christos fi
   13125  1.1  christos 
   13126  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13127  1.3  christos $as_echo_n "checking for ANSI C header files... " >&6; }
   13128  1.3  christos if ${ac_cv_header_stdc+:} false; then :
   13129  1.1  christos   $as_echo_n "(cached) " >&6
   13130  1.1  christos else
   13131  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13132  1.1  christos /* end confdefs.h.  */
   13133  1.3  christos #include <stdlib.h>
   13134  1.3  christos #include <stdarg.h>
   13135  1.3  christos #include <string.h>
   13136  1.3  christos #include <float.h>
   13137  1.1  christos 
   13138  1.1  christos int
   13139  1.1  christos main ()
   13140  1.1  christos {
   13141  1.3  christos 
   13142  1.1  christos   ;
   13143  1.1  christos   return 0;
   13144  1.1  christos }
   13145  1.1  christos _ACEOF
   13146  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13147  1.3  christos   ac_cv_header_stdc=yes
   13148  1.1  christos else
   13149  1.3  christos   ac_cv_header_stdc=no
   13150  1.1  christos fi
   13151  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13152  1.1  christos 
   13153  1.3  christos if test $ac_cv_header_stdc = yes; then
   13154  1.3  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13155  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13156  1.1  christos /* end confdefs.h.  */
   13157  1.3  christos #include <string.h>
   13158  1.1  christos 
   13159  1.1  christos _ACEOF
   13160  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13161  1.3  christos   $EGREP "memchr" >/dev/null 2>&1; then :
   13162  1.3  christos 
   13163  1.1  christos else
   13164  1.3  christos   ac_cv_header_stdc=no
   13165  1.1  christos fi
   13166  1.3  christos rm -f conftest*
   13167  1.3  christos 
   13168  1.1  christos fi
   13169  1.1  christos 
   13170  1.3  christos if test $ac_cv_header_stdc = yes; then
   13171  1.3  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13172  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13173  1.1  christos /* end confdefs.h.  */
   13174  1.3  christos #include <stdlib.h>
   13175  1.1  christos 
   13176  1.1  christos _ACEOF
   13177  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13178  1.3  christos   $EGREP "free" >/dev/null 2>&1; then :
   13179  1.3  christos 
   13180  1.1  christos else
   13181  1.3  christos   ac_cv_header_stdc=no
   13182  1.1  christos fi
   13183  1.3  christos rm -f conftest*
   13184  1.3  christos 
   13185  1.1  christos fi
   13186  1.1  christos 
   13187  1.3  christos if test $ac_cv_header_stdc = yes; then
   13188  1.3  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13189  1.3  christos   if test "$cross_compiling" = yes; then :
   13190  1.3  christos   :
   13191  1.1  christos else
   13192  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13193  1.1  christos /* end confdefs.h.  */
   13194  1.3  christos #include <ctype.h>
   13195  1.3  christos #include <stdlib.h>
   13196  1.3  christos #if ((' ' & 0x0FF) == 0x020)
   13197  1.3  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13198  1.3  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13199  1.3  christos #else
   13200  1.3  christos # define ISLOWER(c) \
   13201  1.3  christos 		   (('a' <= (c) && (c) <= 'i') \
   13202  1.3  christos 		     || ('j' <= (c) && (c) <= 'r') \
   13203  1.3  christos 		     || ('s' <= (c) && (c) <= 'z'))
   13204  1.3  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13205  1.3  christos #endif
   13206  1.1  christos 
   13207  1.3  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13208  1.1  christos int
   13209  1.1  christos main ()
   13210  1.1  christos {
   13211  1.3  christos   int i;
   13212  1.3  christos   for (i = 0; i < 256; i++)
   13213  1.3  christos     if (XOR (islower (i), ISLOWER (i))
   13214  1.3  christos 	|| toupper (i) != TOUPPER (i))
   13215  1.3  christos       return 2;
   13216  1.1  christos   return 0;
   13217  1.1  christos }
   13218  1.1  christos _ACEOF
   13219  1.3  christos if ac_fn_c_try_run "$LINENO"; then :
   13220  1.3  christos 
   13221  1.1  christos else
   13222  1.3  christos   ac_cv_header_stdc=no
   13223  1.1  christos fi
   13224  1.3  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13225  1.3  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13226  1.1  christos fi
   13227  1.1  christos 
   13228  1.1  christos fi
   13229  1.1  christos fi
   13230  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13231  1.3  christos $as_echo "$ac_cv_header_stdc" >&6; }
   13232  1.3  christos if test $ac_cv_header_stdc = yes; then
   13233  1.1  christos 
   13234  1.3  christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13235  1.1  christos 
   13236  1.1  christos fi
   13237  1.1  christos 
   13238  1.1  christos 
   13239  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
   13240  1.3  christos do :
   13241  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13242  1.3  christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13243  1.3  christos #ifdef HAVE_SYS_PARAM_H
   13244  1.3  christos # include <sys/param.h>
   13245  1.3  christos #endif
   13246  1.3  christos #ifdef HAVE_SYS_SOCKET_H
   13247  1.3  christos # include <sys/socket.h>
   13248  1.3  christos #endif
   13249  1.3  christos 
   13250  1.3  christos "
   13251  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13252  1.3  christos   cat >>confdefs.h <<_ACEOF
   13253  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13254  1.3  christos _ACEOF
   13255  1.1  christos 
   13256  1.1  christos fi
   13257  1.1  christos 
   13258  1.3  christos done
   13259  1.1  christos 
   13260  1.1  christos 
   13261  1.3  christos #
   13262  1.3  christos # Check for thread local storage
   13263  1.3  christos #
   13264  1.3  christos for ac_header in threads.h
   13265  1.3  christos do :
   13266  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13267  1.3  christos if test "x$ac_cv_header_threads_h" = xyes; then :
   13268  1.3  christos   cat >>confdefs.h <<_ACEOF
   13269  1.3  christos #define HAVE_THREADS_H 1
   13270  1.3  christos _ACEOF
   13271  1.1  christos 
   13272  1.3  christos 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13273  1.3  christos $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13274  1.3  christos 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13275  1.1  christos /* end confdefs.h.  */
   13276  1.1  christos 
   13277  1.3  christos 				  #include <threads.h>
   13278  1.3  christos 
   13279  1.1  christos int
   13280  1.1  christos main ()
   13281  1.1  christos {
   13282  1.3  christos 
   13283  1.3  christos 				  static thread_local int tls = 0;
   13284  1.3  christos 				  return (tls);
   13285  1.3  christos 
   13286  1.1  christos   ;
   13287  1.1  christos   return 0;
   13288  1.1  christos }
   13289  1.3  christos 
   13290  1.1  christos _ACEOF
   13291  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13292  1.3  christos 
   13293  1.3  christos 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13294  1.3  christos $as_echo "yes" >&6; }
   13295  1.3  christos 
   13296  1.3  christos $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13297  1.3  christos 
   13298  1.3  christos 
   13299  1.3  christos $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13300  1.3  christos 
   13301  1.3  christos 
   13302  1.1  christos else
   13303  1.3  christos 
   13304  1.3  christos 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13305  1.3  christos $as_echo "no" >&6; }
   13306  1.3  christos 
   13307  1.1  christos fi
   13308  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13309  1.1  christos 
   13310  1.1  christos else
   13311  1.3  christos 
   13312  1.3  christos 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13313  1.3  christos $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13314  1.3  christos 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13315  1.1  christos /* end confdefs.h.  */
   13316  1.1  christos 
   13317  1.3  christos 
   13318  1.1  christos int
   13319  1.1  christos main ()
   13320  1.1  christos {
   13321  1.3  christos 
   13322  1.3  christos 				  static __thread int tls = 0;
   13323  1.3  christos 				  return (tls);
   13324  1.3  christos 
   13325  1.1  christos   ;
   13326  1.1  christos   return 0;
   13327  1.1  christos }
   13328  1.3  christos 
   13329  1.1  christos _ACEOF
   13330  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13331  1.3  christos 
   13332  1.3  christos 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13333  1.3  christos $as_echo "yes" >&6; }
   13334  1.3  christos 
   13335  1.3  christos $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13336  1.3  christos 
   13337  1.3  christos 
   13338  1.3  christos $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13339  1.3  christos 
   13340  1.3  christos 
   13341  1.1  christos else
   13342  1.3  christos 
   13343  1.3  christos 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13344  1.3  christos $as_echo "no" >&6; }
   13345  1.3  christos 
   13346  1.1  christos fi
   13347  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13348  1.3  christos 
   13349  1.1  christos fi
   13350  1.1  christos 
   13351  1.3  christos done
   13352  1.3  christos 
   13353  1.3  christos 
   13354  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13355  1.3  christos $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13356  1.3  christos if ${ac_cv_c_const+:} false; then :
   13357  1.1  christos   $as_echo_n "(cached) " >&6
   13358  1.1  christos else
   13359  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13360  1.1  christos /* end confdefs.h.  */
   13361  1.1  christos 
   13362  1.1  christos int
   13363  1.1  christos main ()
   13364  1.1  christos {
   13365  1.3  christos 
   13366  1.3  christos #ifndef __cplusplus
   13367  1.3  christos   /* Ultrix mips cc rejects this sort of thing.  */
   13368  1.3  christos   typedef int charset[2];
   13369  1.3  christos   const charset cs = { 0, 0 };
   13370  1.3  christos   /* SunOS 4.1.1 cc rejects this.  */
   13371  1.3  christos   char const *const *pcpcc;
   13372  1.3  christos   char **ppc;
   13373  1.3  christos   /* NEC SVR4.0.2 mips cc rejects this.  */
   13374  1.3  christos   struct point {int x, y;};
   13375  1.3  christos   static struct point const zero = {0,0};
   13376  1.3  christos   /* AIX XL C 1.02.0.0 rejects this.
   13377  1.3  christos      It does not let you subtract one const X* pointer from another in
   13378  1.3  christos      an arm of an if-expression whose if-part is not a constant
   13379  1.3  christos      expression */
   13380  1.3  christos   const char *g = "string";
   13381  1.3  christos   pcpcc = &g + (g ? g-g : 0);
   13382  1.3  christos   /* HPUX 7.0 cc rejects these. */
   13383  1.3  christos   ++pcpcc;
   13384  1.3  christos   ppc = (char**) pcpcc;
   13385  1.3  christos   pcpcc = (char const *const *) ppc;
   13386  1.3  christos   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13387  1.3  christos     char tx;
   13388  1.3  christos     char *t = &tx;
   13389  1.3  christos     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13390  1.3  christos 
   13391  1.3  christos     *t++ = 0;
   13392  1.3  christos     if (s) return 0;
   13393  1.3  christos   }
   13394  1.3  christos   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13395  1.3  christos     int x[] = {25, 17};
   13396  1.3  christos     const int *foo = &x[0];
   13397  1.3  christos     ++foo;
   13398  1.3  christos   }
   13399  1.3  christos   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13400  1.3  christos     typedef const int *iptr;
   13401  1.3  christos     iptr p = 0;
   13402  1.3  christos     ++p;
   13403  1.3  christos   }
   13404  1.3  christos   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13405  1.3  christos        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13406  1.3  christos     struct s { int j; const int *ap[3]; } bx;
   13407  1.3  christos     struct s *b = &bx; b->j = 5;
   13408  1.3  christos   }
   13409  1.3  christos   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13410  1.3  christos     const int foo = 10;
   13411  1.3  christos     if (!foo) return 0;
   13412  1.3  christos   }
   13413  1.3  christos   return !cs[0] && !zero.x;
   13414  1.3  christos #endif
   13415  1.3  christos 
   13416  1.1  christos   ;
   13417  1.1  christos   return 0;
   13418  1.1  christos }
   13419  1.1  christos _ACEOF
   13420  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13421  1.3  christos   ac_cv_c_const=yes
   13422  1.1  christos else
   13423  1.3  christos   ac_cv_c_const=no
   13424  1.1  christos fi
   13425  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13426  1.1  christos fi
   13427  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13428  1.3  christos $as_echo "$ac_cv_c_const" >&6; }
   13429  1.3  christos if test $ac_cv_c_const = no; then
   13430  1.1  christos 
   13431  1.3  christos $as_echo "#define const /**/" >>confdefs.h
   13432  1.1  christos 
   13433  1.1  christos fi
   13434  1.1  christos 
   13435  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13436  1.3  christos $as_echo_n "checking for inline... " >&6; }
   13437  1.3  christos if ${ac_cv_c_inline+:} false; then :
   13438  1.3  christos   $as_echo_n "(cached) " >&6
   13439  1.3  christos else
   13440  1.3  christos   ac_cv_c_inline=no
   13441  1.3  christos for ac_kw in inline __inline__ __inline; do
   13442  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13443  1.3  christos /* end confdefs.h.  */
   13444  1.3  christos #ifndef __cplusplus
   13445  1.3  christos typedef int foo_t;
   13446  1.3  christos static $ac_kw foo_t static_foo () {return 0; }
   13447  1.3  christos $ac_kw foo_t foo () {return 0; }
   13448  1.3  christos #endif
   13449  1.1  christos 
   13450  1.3  christos _ACEOF
   13451  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13452  1.3  christos   ac_cv_c_inline=$ac_kw
   13453  1.1  christos fi
   13454  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13455  1.3  christos   test "$ac_cv_c_inline" != no && break
   13456  1.3  christos done
   13457  1.1  christos 
   13458  1.1  christos fi
   13459  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13460  1.3  christos $as_echo "$ac_cv_c_inline" >&6; }
   13461  1.1  christos 
   13462  1.3  christos case $ac_cv_c_inline in
   13463  1.3  christos   inline | yes) ;;
   13464  1.3  christos   *)
   13465  1.3  christos     case $ac_cv_c_inline in
   13466  1.3  christos       no) ac_val=;;
   13467  1.3  christos       *) ac_val=$ac_cv_c_inline;;
   13468  1.3  christos     esac
   13469  1.3  christos     cat >>confdefs.h <<_ACEOF
   13470  1.3  christos #ifndef __cplusplus
   13471  1.3  christos #define inline $ac_val
   13472  1.3  christos #endif
   13473  1.3  christos _ACEOF
   13474  1.3  christos     ;;
   13475  1.3  christos esac
   13476  1.1  christos 
   13477  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   13478  1.3  christos $as_echo_n "checking for working volatile... " >&6; }
   13479  1.3  christos if ${ac_cv_c_volatile+:} false; then :
   13480  1.3  christos   $as_echo_n "(cached) " >&6
   13481  1.1  christos else
   13482  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13483  1.1  christos /* end confdefs.h.  */
   13484  1.1  christos 
   13485  1.1  christos int
   13486  1.1  christos main ()
   13487  1.1  christos {
   13488  1.1  christos 
   13489  1.3  christos volatile int x;
   13490  1.3  christos int * volatile y = (int *) 0;
   13491  1.3  christos return !x && !y;
   13492  1.1  christos   ;
   13493  1.1  christos   return 0;
   13494  1.1  christos }
   13495  1.1  christos _ACEOF
   13496  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   13497  1.3  christos   ac_cv_c_volatile=yes
   13498  1.1  christos else
   13499  1.3  christos   ac_cv_c_volatile=no
   13500  1.1  christos fi
   13501  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13502  1.3  christos fi
   13503  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   13504  1.3  christos $as_echo "$ac_cv_c_volatile" >&6; }
   13505  1.3  christos if test $ac_cv_c_volatile = no; then
   13506  1.1  christos 
   13507  1.3  christos $as_echo "#define volatile /**/" >>confdefs.h
   13508  1.1  christos 
   13509  1.1  christos fi
   13510  1.1  christos 
   13511  1.1  christos 
   13512  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   13513  1.3  christos $as_echo_n "checking for flexible array members... " >&6; }
   13514  1.3  christos if ${ac_cv_c_flexmember+:} false; then :
   13515  1.1  christos   $as_echo_n "(cached) " >&6
   13516  1.1  christos else
   13517  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13518  1.1  christos /* end confdefs.h.  */
   13519  1.3  christos #include <stdlib.h>
   13520  1.3  christos 	    #include <stdio.h>
   13521  1.3  christos 	    #include <stddef.h>
   13522  1.3  christos 	    struct s { int n; double d[]; };
   13523  1.1  christos int
   13524  1.1  christos main ()
   13525  1.1  christos {
   13526  1.3  christos int m = getchar ();
   13527  1.3  christos 	    struct s *p = malloc (offsetof (struct s, d)
   13528  1.3  christos 				  + m * sizeof (double));
   13529  1.3  christos 	    p->d[0] = 0.0;
   13530  1.3  christos 	    return p->d != (double *) NULL;
   13531  1.1  christos   ;
   13532  1.1  christos   return 0;
   13533  1.1  christos }
   13534  1.1  christos _ACEOF
   13535  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13536  1.3  christos   ac_cv_c_flexmember=yes
   13537  1.1  christos else
   13538  1.3  christos   ac_cv_c_flexmember=no
   13539  1.1  christos fi
   13540  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13541  1.1  christos fi
   13542  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   13543  1.3  christos $as_echo "$ac_cv_c_flexmember" >&6; }
   13544  1.3  christos   if test $ac_cv_c_flexmember = yes; then
   13545  1.1  christos 
   13546  1.3  christos $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   13547  1.1  christos 
   13548  1.3  christos   else
   13549  1.3  christos     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   13550  1.1  christos 
   13551  1.3  christos   fi
   13552  1.1  christos 
   13553  1.1  christos 
   13554  1.3  christos #
   13555  1.3  christos # Check for yield support on ARM processors
   13556  1.3  christos #
   13557  1.3  christos case $host in #(
   13558  1.3  christos   arm*) :
   13559  1.1  christos 
   13560  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   13561  1.3  christos $as_echo_n "checking for yield instruction support... " >&6; }
   13562  1.3  christos 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13563  1.1  christos /* end confdefs.h.  */
   13564  1.1  christos 
   13565  1.1  christos int
   13566  1.1  christos main ()
   13567  1.1  christos {
   13568  1.3  christos __asm__ __volatile__ ("yield")
   13569  1.3  christos 
   13570  1.1  christos   ;
   13571  1.1  christos   return 0;
   13572  1.1  christos }
   13573  1.1  christos _ACEOF
   13574  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13575  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13576  1.3  christos $as_echo "yes" >&6; }
   13577  1.1  christos else
   13578  1.4  christos   as_fn_error $? "no, try adding -march=native or -march=armv7-a to CFLAGS (see PLATFORMS.md for more information)" "$LINENO" 5
   13579  1.1  christos fi
   13580  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   13581  1.3  christos   *) :
   13582  1.3  christos      ;;
   13583  1.3  christos esac
   13584  1.3  christos 
   13585  1.3  christos for ac_func in sysctlbyname
   13586  1.3  christos do :
   13587  1.3  christos   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   13588  1.3  christos if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   13589  1.3  christos   cat >>confdefs.h <<_ACEOF
   13590  1.3  christos #define HAVE_SYSCTLBYNAME 1
   13591  1.3  christos _ACEOF
   13592  1.1  christos 
   13593  1.1  christos fi
   13594  1.3  christos done
   13595  1.1  christos 
   13596  1.1  christos 
   13597  1.3  christos #
   13598  1.3  christos # Check for the existence of mmap to enable the fast format zones
   13599  1.3  christos #
   13600  1.3  christos for ac_func in mmap
   13601  1.3  christos do :
   13602  1.3  christos   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   13603  1.3  christos if test "x$ac_cv_func_mmap" = xyes; then :
   13604  1.3  christos   cat >>confdefs.h <<_ACEOF
   13605  1.3  christos #define HAVE_MMAP 1
   13606  1.3  christos _ACEOF
   13607  1.1  christos 
   13608  1.1  christos fi
   13609  1.3  christos done
   13610  1.1  christos 
   13611  1.1  christos 
   13612  1.3  christos #
   13613  1.3  christos # Older versions of HP/UX don't define seteuid() and setegid()
   13614  1.3  christos #
   13615  1.3  christos for ac_func in seteuid setresuid
   13616  1.1  christos do :
   13617  1.1  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13618  1.1  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13619  1.1  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13620  1.1  christos   cat >>confdefs.h <<_ACEOF
   13621  1.1  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13622  1.1  christos _ACEOF
   13623  1.1  christos 
   13624  1.1  christos fi
   13625  1.1  christos done
   13626  1.1  christos 
   13627  1.3  christos for ac_func in setegid setresgid
   13628  1.1  christos do :
   13629  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13630  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13631  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13632  1.1  christos   cat >>confdefs.h <<_ACEOF
   13633  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13634  1.1  christos _ACEOF
   13635  1.1  christos 
   13636  1.1  christos fi
   13637  1.1  christos done
   13638  1.1  christos 
   13639  1.1  christos 
   13640  1.3  christos ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   13641  1.3  christos if test "x$ac_cv_type_size_t" = xyes; then :
   13642  1.1  christos 
   13643  1.1  christos else
   13644  1.1  christos 
   13645  1.3  christos cat >>confdefs.h <<_ACEOF
   13646  1.3  christos #define size_t unsigned int
   13647  1.3  christos _ACEOF
   13648  1.1  christos 
   13649  1.1  christos fi
   13650  1.1  christos 
   13651  1.3  christos ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   13652  1.3  christos if test "x$ac_cv_type_ssize_t" = xyes; then :
   13653  1.1  christos 
   13654  1.1  christos else
   13655  1.1  christos 
   13656  1.3  christos cat >>confdefs.h <<_ACEOF
   13657  1.3  christos #define ssize_t int
   13658  1.3  christos _ACEOF
   13659  1.1  christos 
   13660  1.1  christos fi
   13661  1.1  christos 
   13662  1.1  christos 
   13663  1.3  christos   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   13664  1.3  christos if test "x$ac_cv_type_uintptr_t" = xyes; then :
   13665  1.1  christos 
   13666  1.3  christos $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   13667  1.1  christos 
   13668  1.1  christos else
   13669  1.3  christos   for ac_type in 'unsigned int' 'unsigned long int' \
   13670  1.3  christos 	'unsigned long long int'; do
   13671  1.3  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13672  1.1  christos /* end confdefs.h.  */
   13673  1.3  christos $ac_includes_default
   13674  1.3  christos int
   13675  1.3  christos main ()
   13676  1.3  christos {
   13677  1.3  christos static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   13678  1.3  christos test_array [0] = 0;
   13679  1.3  christos return test_array [0];
   13680  1.1  christos 
   13681  1.3  christos   ;
   13682  1.3  christos   return 0;
   13683  1.1  christos }
   13684  1.3  christos _ACEOF
   13685  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13686  1.1  christos 
   13687  1.3  christos cat >>confdefs.h <<_ACEOF
   13688  1.3  christos #define uintptr_t $ac_type
   13689  1.1  christos _ACEOF
   13690  1.3  christos 
   13691  1.3  christos 	  ac_type=
   13692  1.1  christos fi
   13693  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13694  1.3  christos        test -z "$ac_type" && break
   13695  1.3  christos      done
   13696  1.1  christos fi
   13697  1.1  christos 
   13698  1.1  christos 
   13699  1.3  christos 
   13700  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   13701  1.3  christos $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   13702  1.3  christos if ${ac_cv_header_time+:} false; then :
   13703  1.3  christos   $as_echo_n "(cached) " >&6
   13704  1.3  christos else
   13705  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13706  1.1  christos /* end confdefs.h.  */
   13707  1.3  christos #include <sys/types.h>
   13708  1.3  christos #include <sys/time.h>
   13709  1.3  christos #include <time.h>
   13710  1.1  christos 
   13711  1.1  christos int
   13712  1.1  christos main ()
   13713  1.1  christos {
   13714  1.3  christos if ((struct tm *) 0)
   13715  1.3  christos return 0;
   13716  1.1  christos   ;
   13717  1.1  christos   return 0;
   13718  1.1  christos }
   13719  1.1  christos _ACEOF
   13720  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13721  1.3  christos   ac_cv_header_time=yes
   13722  1.1  christos else
   13723  1.3  christos   ac_cv_header_time=no
   13724  1.3  christos fi
   13725  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13726  1.3  christos fi
   13727  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   13728  1.3  christos $as_echo "$ac_cv_header_time" >&6; }
   13729  1.3  christos if test $ac_cv_header_time = yes; then
   13730  1.3  christos 
   13731  1.3  christos $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   13732  1.3  christos 
   13733  1.3  christos fi
   13734  1.3  christos 
   13735  1.3  christos 
   13736  1.3  christos #
   13737  1.3  christos # check for uname library routine
   13738  1.3  christos #
   13739  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   13740  1.3  christos $as_echo_n "checking for uname... " >&6; }
   13741  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13742  1.1  christos /* end confdefs.h.  */
   13743  1.3  christos #include <sys/utsname.h>
   13744  1.3  christos        #include <stdio.h>
   13745  1.1  christos 
   13746  1.1  christos int
   13747  1.1  christos main ()
   13748  1.1  christos {
   13749  1.1  christos 
   13750  1.3  christos        struct utsname uts;
   13751  1.3  christos        uname(&uts);
   13752  1.3  christos        printf("running on %s %s %s for %s\n",
   13753  1.3  christos 	      uts.sysname, uts.release, uts.version, uts.machine);
   13754  1.1  christos 
   13755  1.1  christos   ;
   13756  1.1  christos   return 0;
   13757  1.1  christos }
   13758  1.1  christos _ACEOF
   13759  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13760  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13761  1.1  christos $as_echo "yes" >&6; }
   13762  1.3  christos 
   13763  1.3  christos $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   13764  1.3  christos 
   13765  1.1  christos 
   13766  1.1  christos else
   13767  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13768  1.3  christos $as_echo "no" >&6; }
   13769  1.3  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   13770  1.3  christos $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   13771  1.1  christos 
   13772  1.1  christos fi
   13773  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13774  1.1  christos 
   13775  1.3  christos #
   13776  1.3  christos # check for GCC noreturn attribute
   13777  1.3  christos #
   13778  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   13779  1.3  christos $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   13780  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13781  1.1  christos /* end confdefs.h.  */
   13782  1.3  christos 
   13783  1.1  christos int
   13784  1.1  christos main ()
   13785  1.1  christos {
   13786  1.3  christos void foo() __attribute__((noreturn));
   13787  1.1  christos   ;
   13788  1.1  christos   return 0;
   13789  1.1  christos }
   13790  1.1  christos _ACEOF
   13791  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13792  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13793  1.3  christos $as_echo "yes" >&6; }
   13794  1.3  christos 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13795  1.3  christos 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   13796  1.3  christos else
   13797  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13798  1.3  christos $as_echo "no" >&6; }
   13799  1.3  christos 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13800  1.3  christos 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   13801  1.3  christos fi
   13802  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13803  1.3  christos 
   13804  1.3  christos 
   13805  1.3  christos 
   13806  1.3  christos #
   13807  1.3  christos # check if we have kqueue
   13808  1.3  christos #
   13809  1.3  christos # Check whether --enable-kqueue was given.
   13810  1.3  christos if test "${enable_kqueue+set}" = set; then :
   13811  1.3  christos   enableval=$enable_kqueue;
   13812  1.3  christos else
   13813  1.3  christos   enable_kqueue="yes"
   13814  1.3  christos fi
   13815  1.3  christos 
   13816  1.3  christos 
   13817  1.3  christos if test "$enable_kqueue" = "yes"; then :
   13818  1.3  christos   for ac_func in kqueue
   13819  1.3  christos do :
   13820  1.3  christos   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   13821  1.3  christos if test "x$ac_cv_func_kqueue" = xyes; then :
   13822  1.3  christos   cat >>confdefs.h <<_ACEOF
   13823  1.3  christos #define HAVE_KQUEUE 1
   13824  1.3  christos _ACEOF
   13825  1.3  christos 
   13826  1.3  christos fi
   13827  1.3  christos done
   13828  1.3  christos 
   13829  1.3  christos fi
   13830  1.3  christos 
   13831  1.3  christos #
   13832  1.3  christos # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   13833  1.3  christos # so we need to try running the code, not just test its existence.
   13834  1.3  christos #
   13835  1.3  christos # Check whether --enable-epoll was given.
   13836  1.3  christos if test "${enable_epoll+set}" = set; then :
   13837  1.3  christos   enableval=$enable_epoll;
   13838  1.1  christos else
   13839  1.3  christos   enable_epoll="yes"
   13840  1.1  christos fi
   13841  1.1  christos 
   13842  1.1  christos 
   13843  1.3  christos if test "$enable_epoll" = "yes"; then :
   13844  1.3  christos   for ac_func in epoll_create1
   13845  1.3  christos do :
   13846  1.3  christos   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   13847  1.3  christos if test "x$ac_cv_func_epoll_create1" = xyes; then :
   13848  1.3  christos   cat >>confdefs.h <<_ACEOF
   13849  1.3  christos #define HAVE_EPOLL_CREATE1 1
   13850  1.3  christos _ACEOF
   13851  1.3  christos 
   13852  1.3  christos fi
   13853  1.3  christos done
   13854  1.1  christos 
   13855  1.3  christos fi
   13856  1.1  christos 
   13857  1.3  christos #
   13858  1.3  christos # check if we support /dev/poll
   13859  1.3  christos #
   13860  1.3  christos # Check whether --enable-devpoll was given.
   13861  1.3  christos if test "${enable_devpoll+set}" = set; then :
   13862  1.3  christos   enableval=$enable_devpoll;
   13863  1.3  christos else
   13864  1.3  christos   enable_devpoll="yes"
   13865  1.3  christos fi
   13866  1.1  christos 
   13867  1.3  christos if test "$enable_devpoll" = "yes"; then :
   13868  1.3  christos   for ac_header in sys/devpoll.h devpoll.h
   13869  1.1  christos do :
   13870  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13871  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13872  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13873  1.1  christos   cat >>confdefs.h <<_ACEOF
   13874  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13875  1.3  christos _ACEOF
   13876  1.3  christos 
   13877  1.3  christos fi
   13878  1.3  christos 
   13879  1.3  christos done
   13880  1.3  christos 
   13881  1.3  christos fi
   13882  1.3  christos 
   13883  1.3  christos #
   13884  1.3  christos # Find the machine's endian flavor.
   13885  1.3  christos #
   13886  1.3  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   13887  1.3  christos $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   13888  1.3  christos if ${ac_cv_c_bigendian+:} false; then :
   13889  1.3  christos   $as_echo_n "(cached) " >&6
   13890  1.3  christos else
   13891  1.3  christos   ac_cv_c_bigendian=unknown
   13892  1.3  christos     # See if we're dealing with a universal compiler.
   13893  1.3  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13894  1.3  christos /* end confdefs.h.  */
   13895  1.3  christos #ifndef __APPLE_CC__
   13896  1.3  christos 	       not a universal capable compiler
   13897  1.3  christos 	     #endif
   13898  1.3  christos 	     typedef int dummy;
   13899  1.3  christos 
   13900  1.3  christos _ACEOF
   13901  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13902  1.3  christos 
   13903  1.3  christos 	# Check for potential -arch flags.  It is not universal unless
   13904  1.3  christos 	# there are at least two -arch flags with different values.
   13905  1.3  christos 	ac_arch=
   13906  1.3  christos 	ac_prev=
   13907  1.3  christos 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   13908  1.3  christos 	 if test -n "$ac_prev"; then
   13909  1.3  christos 	   case $ac_word in
   13910  1.3  christos 	     i?86 | x86_64 | ppc | ppc64)
   13911  1.3  christos 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   13912  1.3  christos 		 ac_arch=$ac_word
   13913  1.3  christos 	       else
   13914  1.3  christos 		 ac_cv_c_bigendian=universal
   13915  1.3  christos 		 break
   13916  1.3  christos 	       fi
   13917  1.3  christos 	       ;;
   13918  1.3  christos 	   esac
   13919  1.3  christos 	   ac_prev=
   13920  1.3  christos 	 elif test "x$ac_word" = "x-arch"; then
   13921  1.3  christos 	   ac_prev=arch
   13922  1.3  christos 	 fi
   13923  1.3  christos        done
   13924  1.1  christos fi
   13925  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13926  1.3  christos     if test $ac_cv_c_bigendian = unknown; then
   13927  1.3  christos       # See if sys/param.h defines the BYTE_ORDER macro.
   13928  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13929  1.3  christos /* end confdefs.h.  */
   13930  1.3  christos #include <sys/types.h>
   13931  1.3  christos 	     #include <sys/param.h>
   13932  1.1  christos 
   13933  1.3  christos int
   13934  1.3  christos main ()
   13935  1.3  christos {
   13936  1.3  christos #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   13937  1.3  christos 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   13938  1.3  christos 		     && LITTLE_ENDIAN)
   13939  1.3  christos 	      bogus endian macros
   13940  1.3  christos 	     #endif
   13941  1.1  christos 
   13942  1.3  christos   ;
   13943  1.3  christos   return 0;
   13944  1.3  christos }
   13945  1.1  christos _ACEOF
   13946  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13947  1.3  christos   # It does; now see whether it defined to BIG_ENDIAN or not.
   13948  1.3  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13949  1.1  christos /* end confdefs.h.  */
   13950  1.3  christos #include <sys/types.h>
   13951  1.3  christos 		#include <sys/param.h>
   13952  1.1  christos 
   13953  1.3  christos int
   13954  1.3  christos main ()
   13955  1.3  christos {
   13956  1.3  christos #if BYTE_ORDER != BIG_ENDIAN
   13957  1.3  christos 		 not big endian
   13958  1.3  christos 		#endif
   13959  1.1  christos 
   13960  1.3  christos   ;
   13961  1.3  christos   return 0;
   13962  1.1  christos }
   13963  1.1  christos _ACEOF
   13964  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13965  1.3  christos   ac_cv_c_bigendian=yes
   13966  1.1  christos else
   13967  1.3  christos   ac_cv_c_bigendian=no
   13968  1.1  christos fi
   13969  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13970  1.1  christos fi
   13971  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13972  1.3  christos     fi
   13973  1.3  christos     if test $ac_cv_c_bigendian = unknown; then
   13974  1.3  christos       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   13975  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13976  1.3  christos /* end confdefs.h.  */
   13977  1.3  christos #include <limits.h>
   13978  1.1  christos 
   13979  1.3  christos int
   13980  1.3  christos main ()
   13981  1.3  christos {
   13982  1.3  christos #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   13983  1.3  christos 	      bogus endian macros
   13984  1.3  christos 	     #endif
   13985  1.1  christos 
   13986  1.3  christos   ;
   13987  1.3  christos   return 0;
   13988  1.1  christos }
   13989  1.1  christos _ACEOF
   13990  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   13991  1.3  christos   # It does; now see whether it defined to _BIG_ENDIAN or not.
   13992  1.3  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13993  1.3  christos /* end confdefs.h.  */
   13994  1.3  christos #include <limits.h>
   13995  1.1  christos 
   13996  1.3  christos int
   13997  1.3  christos main ()
   13998  1.3  christos {
   13999  1.3  christos #ifndef _BIG_ENDIAN
   14000  1.3  christos 		 not big endian
   14001  1.3  christos 		#endif
   14002  1.1  christos 
   14003  1.3  christos   ;
   14004  1.3  christos   return 0;
   14005  1.1  christos }
   14006  1.1  christos _ACEOF
   14007  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   14008  1.3  christos   ac_cv_c_bigendian=yes
   14009  1.1  christos else
   14010  1.3  christos   ac_cv_c_bigendian=no
   14011  1.1  christos fi
   14012  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14013  1.1  christos fi
   14014  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14015  1.3  christos     fi
   14016  1.3  christos     if test $ac_cv_c_bigendian = unknown; then
   14017  1.3  christos       # Compile a test program.
   14018  1.3  christos       if test "$cross_compiling" = yes; then :
   14019  1.3  christos   # Try to guess by grepping values from an object file.
   14020  1.3  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14021  1.1  christos /* end confdefs.h.  */
   14022  1.3  christos short int ascii_mm[] =
   14023  1.3  christos 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14024  1.3  christos 		short int ascii_ii[] =
   14025  1.3  christos 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14026  1.3  christos 		int use_ascii (int i) {
   14027  1.3  christos 		  return ascii_mm[i] + ascii_ii[i];
   14028  1.3  christos 		}
   14029  1.3  christos 		short int ebcdic_ii[] =
   14030  1.3  christos 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14031  1.3  christos 		short int ebcdic_mm[] =
   14032  1.3  christos 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14033  1.3  christos 		int use_ebcdic (int i) {
   14034  1.3  christos 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14035  1.3  christos 		}
   14036  1.3  christos 		extern int foo;
   14037  1.1  christos 
   14038  1.3  christos int
   14039  1.3  christos main ()
   14040  1.3  christos {
   14041  1.3  christos return use_ascii (foo) == use_ebcdic (foo);
   14042  1.3  christos   ;
   14043  1.3  christos   return 0;
   14044  1.1  christos }
   14045  1.1  christos _ACEOF
   14046  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   14047  1.3  christos   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14048  1.3  christos 	      ac_cv_c_bigendian=yes
   14049  1.3  christos 	    fi
   14050  1.3  christos 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14051  1.3  christos 	      if test "$ac_cv_c_bigendian" = unknown; then
   14052  1.3  christos 		ac_cv_c_bigendian=no
   14053  1.3  christos 	      else
   14054  1.3  christos 		# finding both strings is unlikely to happen, but who knows?
   14055  1.3  christos 		ac_cv_c_bigendian=unknown
   14056  1.3  christos 	      fi
   14057  1.3  christos 	    fi
   14058  1.1  christos fi
   14059  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14060  1.1  christos else
   14061  1.1  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14062  1.1  christos /* end confdefs.h.  */
   14063  1.3  christos $ac_includes_default
   14064  1.3  christos int
   14065  1.3  christos main ()
   14066  1.3  christos {
   14067  1.3  christos 
   14068  1.3  christos 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14069  1.3  christos 	     union
   14070  1.3  christos 	     {
   14071  1.3  christos 	       long int l;
   14072  1.3  christos 	       char c[sizeof (long int)];
   14073  1.3  christos 	     } u;
   14074  1.3  christos 	     u.l = 1;
   14075  1.3  christos 	     return u.c[sizeof (long int) - 1] == 1;
   14076  1.1  christos 
   14077  1.3  christos   ;
   14078  1.3  christos   return 0;
   14079  1.1  christos }
   14080  1.1  christos _ACEOF
   14081  1.1  christos if ac_fn_c_try_run "$LINENO"; then :
   14082  1.3  christos   ac_cv_c_bigendian=no
   14083  1.1  christos else
   14084  1.3  christos   ac_cv_c_bigendian=yes
   14085  1.1  christos fi
   14086  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14087  1.1  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14088  1.1  christos fi
   14089  1.1  christos 
   14090  1.3  christos     fi
   14091  1.3  christos fi
   14092  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14093  1.3  christos $as_echo "$ac_cv_c_bigendian" >&6; }
   14094  1.3  christos  case $ac_cv_c_bigendian in #(
   14095  1.3  christos    yes)
   14096  1.3  christos      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14097  1.3  christos ;; #(
   14098  1.3  christos    no)
   14099  1.3  christos       ;; #(
   14100  1.3  christos    universal)
   14101  1.1  christos 
   14102  1.3  christos $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14103  1.1  christos 
   14104  1.3  christos      ;; #(
   14105  1.3  christos    *)
   14106  1.3  christos      as_fn_error $? "unknown endianness
   14107  1.3  christos  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14108  1.3  christos  esac
   14109  1.1  christos 
   14110  1.1  christos 
   14111  1.1  christos #
   14112  1.3  christos # GeoIP support?
   14113  1.1  christos #
   14114  1.3  christos GEOIPLINKSRCS=
   14115  1.3  christos GEOIPLINKOBJS=
   14116  1.1  christos 
   14117  1.3  christos # Check whether --with-geoip was given.
   14118  1.3  christos if test "${with_geoip+set}" = set; then :
   14119  1.3  christos   withval=$with_geoip; use_geoip="$withval"
   14120  1.3  christos else
   14121  1.3  christos   use_geoip="no"
   14122  1.1  christos fi
   14123  1.1  christos 
   14124  1.1  christos 
   14125  1.3  christos if test "yes" = "$use_geoip"
   14126  1.1  christos then
   14127  1.3  christos 	for d in /usr /usr/local /opt/local
   14128  1.3  christos 	do
   14129  1.3  christos 		if test -f $d/include/GeoIP.h
   14130  1.3  christos 		then
   14131  1.3  christos 			use_geoip=$d
   14132  1.3  christos 			break
   14133  1.3  christos 		fi
   14134  1.3  christos 	done
   14135  1.1  christos fi
   14136  1.1  christos 
   14137  1.3  christos case "$use_geoip" in
   14138  1.3  christos 	no|'')
   14139  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14140  1.3  christos $as_echo_n "checking for GeoIP support... " >&6; }
   14141  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   14142  1.3  christos $as_echo "disabled" >&6; }
   14143  1.1  christos 		;;
   14144  1.3  christos 	*)
   14145  1.3  christos 		if test -d "$use_geoip" -o -L "$use_geoip"
   14146  1.3  christos 		then
   14147  1.3  christos 			CFLAGS="$CFLAGS -I$use_geoip/include"
   14148  1.3  christos 			CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
   14149  1.3  christos 			LIBS="$LIBS -L$use_geoip/lib"
   14150  1.3  christos 			case "$host_os" in
   14151  1.3  christos 				netbsd*|openbsd*|solaris*)
   14152  1.3  christos 					LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
   14153  1.3  christos 					;;
   14154  1.3  christos 			esac
   14155  1.3  christos 		elif test "yes" = "$use_geoip"
   14156  1.3  christos 		then
   14157  1.3  christos 			as_fn_error $? "GeoIP path not found" "$LINENO" 5
   14158  1.3  christos 		else
   14159  1.3  christos 			as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
   14160  1.3  christos 		fi
   14161  1.3  christos 		ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
   14162  1.3  christos if test "x$ac_cv_header_GeoIP_h" = xyes; then :
   14163  1.1  christos 
   14164  1.3  christos else
   14165  1.3  christos   as_fn_error $? "GeoIP header file not found" "$LINENO" 5
   14166  1.1  christos 
   14167  1.3  christos fi
   14168  1.1  christos 
   14169  1.1  christos 
   14170  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
   14171  1.3  christos $as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
   14172  1.3  christos if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14173  1.3  christos   $as_echo_n "(cached) " >&6
   14174  1.3  christos else
   14175  1.3  christos   ac_func_search_save_LIBS=$LIBS
   14176  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14177  1.3  christos /* end confdefs.h.  */
   14178  1.1  christos 
   14179  1.3  christos /* Override any GCC internal prototype to avoid an error.
   14180  1.3  christos    Use char because int might match the return type of a GCC
   14181  1.3  christos    builtin and then its argument prototype would still apply.  */
   14182  1.3  christos #ifdef __cplusplus
   14183  1.3  christos extern "C"
   14184  1.3  christos #endif
   14185  1.3  christos char GeoIP_id_by_addr_gl ();
   14186  1.3  christos int
   14187  1.3  christos main ()
   14188  1.3  christos {
   14189  1.3  christos return GeoIP_id_by_addr_gl ();
   14190  1.3  christos   ;
   14191  1.3  christos   return 0;
   14192  1.3  christos }
   14193  1.3  christos _ACEOF
   14194  1.3  christos for ac_lib in '' GeoIP; do
   14195  1.3  christos   if test -z "$ac_lib"; then
   14196  1.3  christos     ac_res="none required"
   14197  1.3  christos   else
   14198  1.3  christos     ac_res=-l$ac_lib
   14199  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14200  1.3  christos   fi
   14201  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   14202  1.3  christos   ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
   14203  1.3  christos fi
   14204  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14205  1.3  christos     conftest$ac_exeext
   14206  1.3  christos   if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14207  1.3  christos   break
   14208  1.3  christos fi
   14209  1.3  christos done
   14210  1.3  christos if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14211  1.1  christos 
   14212  1.1  christos else
   14213  1.3  christos   ac_cv_search_GeoIP_id_by_addr_gl=no
   14214  1.3  christos fi
   14215  1.3  christos rm conftest.$ac_ext
   14216  1.3  christos LIBS=$ac_func_search_save_LIBS
   14217  1.1  christos fi
   14218  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
   14219  1.3  christos $as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
   14220  1.3  christos ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
   14221  1.3  christos if test "$ac_res" != no; then :
   14222  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14223  1.1  christos 
   14224  1.3  christos else
   14225  1.3  christos   as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
   14226  1.1  christos 
   14227  1.1  christos fi
   14228  1.1  christos 
   14229  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
   14230  1.3  christos $as_echo_n "checking for library containing fabsf... " >&6; }
   14231  1.3  christos if ${ac_cv_search_fabsf+:} false; then :
   14232  1.3  christos   $as_echo_n "(cached) " >&6
   14233  1.3  christos else
   14234  1.3  christos   ac_func_search_save_LIBS=$LIBS
   14235  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14236  1.3  christos /* end confdefs.h.  */
   14237  1.1  christos 
   14238  1.3  christos /* Override any GCC internal prototype to avoid an error.
   14239  1.3  christos    Use char because int might match the return type of a GCC
   14240  1.3  christos    builtin and then its argument prototype would still apply.  */
   14241  1.3  christos #ifdef __cplusplus
   14242  1.3  christos extern "C"
   14243  1.3  christos #endif
   14244  1.3  christos char fabsf ();
   14245  1.3  christos int
   14246  1.3  christos main ()
   14247  1.3  christos {
   14248  1.3  christos return fabsf ();
   14249  1.3  christos   ;
   14250  1.3  christos   return 0;
   14251  1.3  christos }
   14252  1.3  christos _ACEOF
   14253  1.3  christos for ac_lib in '' m; do
   14254  1.3  christos   if test -z "$ac_lib"; then
   14255  1.3  christos     ac_res="none required"
   14256  1.3  christos   else
   14257  1.3  christos     ac_res=-l$ac_lib
   14258  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14259  1.3  christos   fi
   14260  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   14261  1.3  christos   ac_cv_search_fabsf=$ac_res
   14262  1.1  christos fi
   14263  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14264  1.3  christos     conftest$ac_exeext
   14265  1.3  christos   if ${ac_cv_search_fabsf+:} false; then :
   14266  1.3  christos   break
   14267  1.1  christos fi
   14268  1.3  christos done
   14269  1.3  christos if ${ac_cv_search_fabsf+:} false; then :
   14270  1.1  christos 
   14271  1.1  christos else
   14272  1.3  christos   ac_cv_search_fabsf=no
   14273  1.1  christos fi
   14274  1.3  christos rm conftest.$ac_ext
   14275  1.3  christos LIBS=$ac_func_search_save_LIBS
   14276  1.1  christos fi
   14277  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
   14278  1.3  christos $as_echo "$ac_cv_search_fabsf" >&6; }
   14279  1.3  christos ac_res=$ac_cv_search_fabsf
   14280  1.3  christos if test "$ac_res" != no; then :
   14281  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14282  1.1  christos 
   14283  1.3  christos else
   14284  1.3  christos   as_fn_error $? "Math library not found" "$LINENO" 5
   14285  1.1  christos 
   14286  1.1  christos fi
   14287  1.1  christos 
   14288  1.1  christos 
   14289  1.3  christos $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
   14290  1.1  christos 
   14291  1.3  christos 		GEOIPLINKSRCS='${GEOIPLINKSRCS}'
   14292  1.3  christos 		GEOIPLINKOBJS='${GEOIPLINKOBJS}'
   14293  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14294  1.3  christos $as_echo_n "checking for GeoIP support... " >&6; }
   14295  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14296  1.3  christos $as_echo "yes" >&6; }
   14297  1.1  christos 
   14298  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
   14299  1.3  christos $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
   14300  1.3  christos 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14301  1.3  christos /* end confdefs.h.  */
   14302  1.1  christos 
   14303  1.3  christos 				#include <GeoIP.h>
   14304  1.3  christos 				#include <netinet/in.h>
   14305  1.1  christos 
   14306  1.3  christos int
   14307  1.3  christos main ()
   14308  1.3  christos {
   14309  1.1  christos 
   14310  1.3  christos 				struct in6_addr in6;
   14311  1.3  christos 				GeoIP_country_name_by_ipnum_v6(NULL, in6);
   14312  1.1  christos 
   14313  1.3  christos   ;
   14314  1.3  christos   return 0;
   14315  1.3  christos }
   14316  1.3  christos _ACEOF
   14317  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   14318  1.1  christos 
   14319  1.3  christos 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14320  1.3  christos $as_echo "yes" >&6; }
   14321  1.1  christos 
   14322  1.3  christos $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
   14323  1.1  christos 
   14324  1.1  christos 
   14325  1.3  christos else
   14326  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14327  1.3  christos $as_echo "no" >&6; }
   14328  1.1  christos 
   14329  1.3  christos fi
   14330  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14331  1.1  christos 
   14332  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
   14333  1.3  christos $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
   14334  1.3  christos 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14335  1.3  christos /* end confdefs.h.  */
   14336  1.1  christos 
   14337  1.3  christos 				#include <GeoIP.h>
   14338  1.3  christos 				#include <GeoIPCity.h>
   14339  1.3  christos 				#include <netinet/in.h>
   14340  1.1  christos 
   14341  1.3  christos int
   14342  1.3  christos main ()
   14343  1.3  christos {
   14344  1.1  christos 
   14345  1.3  christos 				struct in6_addr in6;
   14346  1.3  christos 				int i = GEOIP_CITY_EDITION_REV0_V6;
   14347  1.3  christos 				GeoIP_record_by_ipnum_v6(NULL, in6);
   14348  1.1  christos 
   14349  1.3  christos   ;
   14350  1.3  christos   return 0;
   14351  1.3  christos }
   14352  1.3  christos _ACEOF
   14353  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   14354  1.1  christos 
   14355  1.3  christos 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14356  1.3  christos $as_echo "yes" >&6; }
   14357  1.1  christos 
   14358  1.3  christos $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
   14359  1.1  christos 
   14360  1.1  christos 
   14361  1.3  christos else
   14362  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14363  1.3  christos $as_echo "no" >&6; }
   14364  1.1  christos 
   14365  1.3  christos fi
   14366  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14367  1.1  christos 		;;
   14368  1.1  christos esac
   14369  1.1  christos 
   14370  1.1  christos 
   14371  1.1  christos 
   14372  1.3  christos #
   14373  1.3  christos # Do we have arc4random(), etc ?
   14374  1.3  christos #
   14375  1.3  christos for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   14376  1.3  christos do :
   14377  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14378  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14379  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14380  1.3  christos   cat >>confdefs.h <<_ACEOF
   14381  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14382  1.3  christos _ACEOF
   14383  1.3  christos 
   14384  1.3  christos fi
   14385  1.3  christos done
   14386  1.1  christos 
   14387  1.1  christos 
   14388  1.1  christos 
   14389  1.1  christos 
   14390  1.1  christos 
   14391  1.1  christos 
   14392  1.3  christos ac_ext=c
   14393  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   14394  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14395  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14396  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14397  1.1  christos 
   14398  1.3  christos ax_pthread_ok=no
   14399  1.1  christos 
   14400  1.3  christos # We used to check for pthread.h first, but this fails if pthread.h
   14401  1.3  christos # requires special compiler flags (e.g. on Tru64 or Sequent).
   14402  1.3  christos # It gets checked for in the link test anyway.
   14403  1.3  christos 
   14404  1.3  christos # First of all, check if the user has set any of the PTHREAD_LIBS,
   14405  1.3  christos # etcetera environment variables, and if threads linking works using
   14406  1.3  christos # them:
   14407  1.3  christos if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   14408  1.3  christos         ax_pthread_save_CC="$CC"
   14409  1.3  christos         ax_pthread_save_CFLAGS="$CFLAGS"
   14410  1.3  christos         ax_pthread_save_LIBS="$LIBS"
   14411  1.3  christos         if test "x$PTHREAD_CC" != "x"; then :
   14412  1.3  christos   CC="$PTHREAD_CC"
   14413  1.3  christos fi
   14414  1.3  christos         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14415  1.3  christos         LIBS="$PTHREAD_LIBS $LIBS"
   14416  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   14417  1.3  christos $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   14418  1.3  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14419  1.1  christos /* end confdefs.h.  */
   14420  1.1  christos 
   14421  1.1  christos /* Override any GCC internal prototype to avoid an error.
   14422  1.1  christos    Use char because int might match the return type of a GCC
   14423  1.1  christos    builtin and then its argument prototype would still apply.  */
   14424  1.1  christos #ifdef __cplusplus
   14425  1.1  christos extern "C"
   14426  1.1  christos #endif
   14427  1.3  christos char pthread_join ();
   14428  1.1  christos int
   14429  1.1  christos main ()
   14430  1.1  christos {
   14431  1.3  christos return pthread_join ();
   14432  1.1  christos   ;
   14433  1.1  christos   return 0;
   14434  1.1  christos }
   14435  1.1  christos _ACEOF
   14436  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   14437  1.3  christos   ax_pthread_ok=yes
   14438  1.1  christos fi
   14439  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   14440  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   14441  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14442  1.3  christos $as_echo "$ax_pthread_ok" >&6; }
   14443  1.3  christos         if test "x$ax_pthread_ok" = "xno"; then
   14444  1.3  christos                 PTHREAD_LIBS=""
   14445  1.3  christos                 PTHREAD_CFLAGS=""
   14446  1.3  christos         fi
   14447  1.3  christos         CC="$ax_pthread_save_CC"
   14448  1.3  christos         CFLAGS="$ax_pthread_save_CFLAGS"
   14449  1.3  christos         LIBS="$ax_pthread_save_LIBS"
   14450  1.3  christos fi
   14451  1.3  christos 
   14452  1.3  christos # We must check for the threads library under a number of different
   14453  1.3  christos # names; the ordering is very important because some systems
   14454  1.3  christos # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   14455  1.3  christos # libraries is broken (non-POSIX).
   14456  1.3  christos 
   14457  1.3  christos # Create a list of thread flags to try.  Items starting with a "-" are
   14458  1.3  christos # C compiler flags, and other items are library names, except for "none"
   14459  1.3  christos # which indicates that we try without any flags at all, and "pthread-config"
   14460  1.3  christos # which is a program returning the flags for the Pth emulation library.
   14461  1.3  christos 
   14462  1.3  christos ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   14463  1.3  christos 
   14464  1.3  christos # The ordering *is* (sometimes) important.  Some notes on the
   14465  1.3  christos # individual items follow:
   14466  1.3  christos 
   14467  1.3  christos # pthreads: AIX (must check this before -lpthread)
   14468  1.3  christos # none: in case threads are in libc; should be tried before -Kthread and
   14469  1.3  christos #       other compiler flags to prevent continual compiler warnings
   14470  1.3  christos # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   14471  1.3  christos # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   14472  1.3  christos #           (Note: HP C rejects this with "bad form for `-t' option")
   14473  1.3  christos # -pthreads: Solaris/gcc (Note: HP C also rejects)
   14474  1.3  christos # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   14475  1.3  christos #      doesn't hurt to check since this sometimes defines pthreads and
   14476  1.3  christos #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   14477  1.3  christos #      is present but should not be used directly; and before -mthreads,
   14478  1.3  christos #      because the compiler interprets this as "-mt" + "-hreads")
   14479  1.3  christos # -mthreads: Mingw32/gcc, Lynx/gcc
   14480  1.3  christos # pthread: Linux, etcetera
   14481  1.3  christos # --thread-safe: KAI C++
   14482  1.3  christos # pthread-config: use pthread-config program (for GNU Pth library)
   14483  1.1  christos 
   14484  1.3  christos case $host_os in
   14485  1.1  christos 
   14486  1.3  christos         freebsd*)
   14487  1.1  christos 
   14488  1.3  christos         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   14489  1.3  christos         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   14490  1.1  christos 
   14491  1.3  christos         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   14492  1.3  christos         ;;
   14493  1.1  christos 
   14494  1.3  christos         hpux*)
   14495  1.1  christos 
   14496  1.3  christos         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   14497  1.3  christos         # multi-threading and also sets -lpthread."
   14498  1.1  christos 
   14499  1.3  christos         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   14500  1.3  christos         ;;
   14501  1.1  christos 
   14502  1.3  christos         openedition*)
   14503  1.1  christos 
   14504  1.3  christos         # IBM z/OS requires a feature-test macro to be defined in order to
   14505  1.3  christos         # enable POSIX threads at all, so give the user a hint if this is
   14506  1.3  christos         # not set. (We don't define these ourselves, as they can affect
   14507  1.3  christos         # other portions of the system API in unpredictable ways.)
   14508  1.1  christos 
   14509  1.3  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14510  1.3  christos /* end confdefs.h.  */
   14511  1.1  christos 
   14512  1.3  christos #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   14513  1.3  christos              AX_PTHREAD_ZOS_MISSING
   14514  1.3  christos #            endif
   14515  1.1  christos 
   14516  1.1  christos _ACEOF
   14517  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14518  1.3  christos   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   14519  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
   14520  1.3  christos $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   14521  1.1  christos fi
   14522  1.3  christos rm -f conftest*
   14523  1.3  christos 
   14524  1.3  christos         ;;
   14525  1.3  christos 
   14526  1.3  christos         solaris*)
   14527  1.3  christos 
   14528  1.3  christos         # On Solaris (at least, for some versions), libc contains stubbed
   14529  1.3  christos         # (non-functional) versions of the pthreads routines, so link-based
   14530  1.3  christos         # tests will erroneously succeed. (N.B.: The stubs are missing
   14531  1.3  christos         # pthread_cleanup_push, or rather a function called by this macro,
   14532  1.3  christos         # so we could check for that, but who knows whether they'll stub
   14533  1.3  christos         # that too in a future libc.)  So we'll check first for the
   14534  1.3  christos         # standard Solaris way of linking pthreads (-mt -lpthread).
   14535  1.1  christos 
   14536  1.3  christos         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   14537  1.3  christos         ;;
   14538  1.1  christos esac
   14539  1.1  christos 
   14540  1.3  christos # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   14541  1.3  christos 
   14542  1.3  christos if test "x$GCC" = "xyes"; then :
   14543  1.3  christos   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   14544  1.3  christos fi
   14545  1.1  christos 
   14546  1.3  christos # The presence of a feature test macro requesting re-entrant function
   14547  1.3  christos # definitions is, on some systems, a strong hint that pthreads support is
   14548  1.3  christos # correctly enabled
   14549  1.1  christos 
   14550  1.3  christos case $host_os in
   14551  1.3  christos         darwin* | hpux* | linux* | osf* | solaris*)
   14552  1.3  christos         ax_pthread_check_macro="_REENTRANT"
   14553  1.3  christos         ;;
   14554  1.1  christos 
   14555  1.3  christos         aix*)
   14556  1.3  christos         ax_pthread_check_macro="_THREAD_SAFE"
   14557  1.3  christos         ;;
   14558  1.1  christos 
   14559  1.3  christos         *)
   14560  1.3  christos         ax_pthread_check_macro="--"
   14561  1.3  christos         ;;
   14562  1.1  christos esac
   14563  1.3  christos if test "x$ax_pthread_check_macro" = "x--"; then :
   14564  1.3  christos   ax_pthread_check_cond=0
   14565  1.3  christos else
   14566  1.3  christos   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   14567  1.3  christos fi
   14568  1.1  christos 
   14569  1.3  christos # Are we compiling with Clang?
   14570  1.3  christos 
   14571  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   14572  1.3  christos $as_echo_n "checking whether $CC is Clang... " >&6; }
   14573  1.3  christos if ${ax_cv_PTHREAD_CLANG+:} false; then :
   14574  1.1  christos   $as_echo_n "(cached) " >&6
   14575  1.1  christos else
   14576  1.3  christos   ax_cv_PTHREAD_CLANG=no
   14577  1.3  christos      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   14578  1.3  christos      if test "x$GCC" = "xyes"; then
   14579  1.3  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14580  1.1  christos /* end confdefs.h.  */
   14581  1.3  christos /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   14582  1.3  christos #            if defined(__clang__) && defined(__llvm__)
   14583  1.3  christos              AX_PTHREAD_CC_IS_CLANG
   14584  1.3  christos #            endif
   14585  1.1  christos 
   14586  1.1  christos _ACEOF
   14587  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14588  1.3  christos   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   14589  1.3  christos   ax_cv_PTHREAD_CLANG=yes
   14590  1.3  christos fi
   14591  1.3  christos rm -f conftest*
   14592  1.3  christos 
   14593  1.3  christos      fi
   14594  1.3  christos 
   14595  1.3  christos fi
   14596  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   14597  1.3  christos $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   14598  1.3  christos ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   14599  1.3  christos 
   14600  1.3  christos ax_pthread_clang_warning=no
   14601  1.3  christos 
   14602  1.3  christos # Clang needs special handling, because older versions handle the -pthread
   14603  1.3  christos # option in a rather... idiosyncratic way
   14604  1.3  christos 
   14605  1.3  christos if test "x$ax_pthread_clang" = "xyes"; then
   14606  1.3  christos 
   14607  1.3  christos         # Clang takes -pthread; it has never supported any other flag
   14608  1.3  christos 
   14609  1.3  christos         # (Note 1: This will need to be revisited if a system that Clang
   14610  1.3  christos         # supports has POSIX threads in a separate library.  This tends not
   14611  1.3  christos         # to be the way of modern systems, but it's conceivable.)
   14612  1.3  christos 
   14613  1.3  christos         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   14614  1.3  christos         # to get POSIX threads support; the API is always present and
   14615  1.3  christos         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   14616  1.3  christos         # -pthread does define _REENTRANT, and while the Darwin headers
   14617  1.3  christos         # ignore this macro, third-party headers might not.)
   14618  1.3  christos 
   14619  1.3  christos         PTHREAD_CFLAGS="-pthread"
   14620  1.3  christos         PTHREAD_LIBS=
   14621  1.3  christos 
   14622  1.3  christos         ax_pthread_ok=yes
   14623  1.3  christos 
   14624  1.3  christos         # However, older versions of Clang make a point of warning the user
   14625  1.3  christos         # that, in an invocation where only linking and no compilation is
   14626  1.3  christos         # taking place, the -pthread option has no effect ("argument unused
   14627  1.3  christos         # during compilation").  They expect -pthread to be passed in only
   14628  1.3  christos         # when source code is being compiled.
   14629  1.3  christos         #
   14630  1.3  christos         # Problem is, this is at odds with the way Automake and most other
   14631  1.3  christos         # C build frameworks function, which is that the same flags used in
   14632  1.3  christos         # compilation (CFLAGS) are also used in linking.  Many systems
   14633  1.3  christos         # supported by AX_PTHREAD require exactly this for POSIX threads
   14634  1.3  christos         # support, and in fact it is often not straightforward to specify a
   14635  1.3  christos         # flag that is used only in the compilation phase and not in
   14636  1.3  christos         # linking.  Such a scenario is extremely rare in practice.
   14637  1.3  christos         #
   14638  1.3  christos         # Even though use of the -pthread flag in linking would only print
   14639  1.3  christos         # a warning, this can be a nuisance for well-run software projects
   14640  1.3  christos         # that build with -Werror.  So if the active version of Clang has
   14641  1.3  christos         # this misfeature, we search for an option to squash it.
   14642  1.3  christos 
   14643  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
   14644  1.3  christos $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   14645  1.3  christos if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   14646  1.3  christos   $as_echo_n "(cached) " >&6
   14647  1.3  christos else
   14648  1.3  christos   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   14649  1.3  christos              # Create an alternate version of $ac_link that compiles and
   14650  1.3  christos              # links in two steps (.c -> .o, .o -> exe) instead of one
   14651  1.3  christos              # (.c -> exe), because the warning occurs only in the second
   14652  1.3  christos              # step
   14653  1.3  christos              ax_pthread_save_ac_link="$ac_link"
   14654  1.3  christos              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   14655  1.3  christos              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   14656  1.3  christos              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   14657  1.3  christos              ax_pthread_save_CFLAGS="$CFLAGS"
   14658  1.3  christos              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   14659  1.3  christos                 if test "x$ax_pthread_try" = "xunknown"; then :
   14660  1.3  christos   break
   14661  1.1  christos fi
   14662  1.3  christos                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   14663  1.3  christos                 ac_link="$ax_pthread_save_ac_link"
   14664  1.3  christos                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14665  1.3  christos /* end confdefs.h.  */
   14666  1.3  christos int main(void){return 0;}
   14667  1.3  christos _ACEOF
   14668  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   14669  1.3  christos   ac_link="$ax_pthread_2step_ac_link"
   14670  1.3  christos                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14671  1.3  christos /* end confdefs.h.  */
   14672  1.3  christos int main(void){return 0;}
   14673  1.3  christos _ACEOF
   14674  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   14675  1.1  christos   break
   14676  1.1  christos fi
   14677  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14678  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   14679  1.1  christos 
   14680  1.1  christos fi
   14681  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14682  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   14683  1.3  christos              done
   14684  1.3  christos              ac_link="$ax_pthread_save_ac_link"
   14685  1.3  christos              CFLAGS="$ax_pthread_save_CFLAGS"
   14686  1.3  christos              if test "x$ax_pthread_try" = "x"; then :
   14687  1.3  christos   ax_pthread_try=no
   14688  1.3  christos fi
   14689  1.3  christos              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   14690  1.3  christos 
   14691  1.1  christos fi
   14692  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   14693  1.3  christos $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   14694  1.3  christos 
   14695  1.3  christos         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   14696  1.3  christos                 no | unknown) ;;
   14697  1.3  christos                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   14698  1.3  christos         esac
   14699  1.3  christos 
   14700  1.3  christos fi # $ax_pthread_clang = yes
   14701  1.3  christos 
   14702  1.3  christos if test "x$ax_pthread_ok" = "xno"; then
   14703  1.3  christos for ax_pthread_try_flag in $ax_pthread_flags; do
   14704  1.1  christos 
   14705  1.3  christos         case $ax_pthread_try_flag in
   14706  1.3  christos                 none)
   14707  1.3  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   14708  1.3  christos $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   14709  1.3  christos                 ;;
   14710  1.3  christos 
   14711  1.3  christos                 -mt,pthread)
   14712  1.3  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   14713  1.3  christos $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   14714  1.3  christos                 PTHREAD_CFLAGS="-mt"
   14715  1.3  christos                 PTHREAD_LIBS="-lpthread"
   14716  1.3  christos                 ;;
   14717  1.3  christos 
   14718  1.3  christos                 -*)
   14719  1.3  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   14720  1.3  christos $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   14721  1.3  christos                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   14722  1.3  christos                 ;;
   14723  1.3  christos 
   14724  1.3  christos                 pthread-config)
   14725  1.3  christos                 # Extract the first word of "pthread-config", so it can be a program name with args.
   14726  1.3  christos set dummy pthread-config; ac_word=$2
   14727  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14728  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   14729  1.3  christos if ${ac_cv_prog_ax_pthread_config+:} false; then :
   14730  1.3  christos   $as_echo_n "(cached) " >&6
   14731  1.1  christos else
   14732  1.3  christos   if test -n "$ax_pthread_config"; then
   14733  1.3  christos   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   14734  1.3  christos else
   14735  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14736  1.3  christos for as_dir in $PATH
   14737  1.3  christos do
   14738  1.3  christos   IFS=$as_save_IFS
   14739  1.3  christos   test -z "$as_dir" && as_dir=.
   14740  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   14741  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14742  1.3  christos     ac_cv_prog_ax_pthread_config="yes"
   14743  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14744  1.3  christos     break 2
   14745  1.3  christos   fi
   14746  1.3  christos done
   14747  1.3  christos   done
   14748  1.3  christos IFS=$as_save_IFS
   14749  1.3  christos 
   14750  1.3  christos   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   14751  1.3  christos fi
   14752  1.1  christos fi
   14753  1.3  christos ax_pthread_config=$ac_cv_prog_ax_pthread_config
   14754  1.3  christos if test -n "$ax_pthread_config"; then
   14755  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   14756  1.3  christos $as_echo "$ax_pthread_config" >&6; }
   14757  1.1  christos else
   14758  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14759  1.1  christos $as_echo "no" >&6; }
   14760  1.1  christos fi
   14761  1.1  christos 
   14762  1.1  christos 
   14763  1.3  christos                 if test "x$ax_pthread_config" = "xno"; then :
   14764  1.3  christos   continue
   14765  1.1  christos fi
   14766  1.3  christos                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   14767  1.3  christos                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   14768  1.3  christos                 ;;
   14769  1.1  christos 
   14770  1.3  christos                 *)
   14771  1.3  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   14772  1.3  christos $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   14773  1.3  christos                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   14774  1.3  christos                 ;;
   14775  1.3  christos         esac
   14776  1.1  christos 
   14777  1.3  christos         ax_pthread_save_CFLAGS="$CFLAGS"
   14778  1.3  christos         ax_pthread_save_LIBS="$LIBS"
   14779  1.3  christos         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14780  1.3  christos         LIBS="$PTHREAD_LIBS $LIBS"
   14781  1.3  christos 
   14782  1.3  christos         # Check for various functions.  We must include pthread.h,
   14783  1.3  christos         # since some functions may be macros.  (On the Sequent, we
   14784  1.3  christos         # need a special flag -Kthread to make this header compile.)
   14785  1.3  christos         # We check for pthread_join because it is in -lpthread on IRIX
   14786  1.3  christos         # while pthread_create is in libc.  We check for pthread_attr_init
   14787  1.3  christos         # due to DEC craziness with -lpthreads.  We check for
   14788  1.3  christos         # pthread_cleanup_push because it is one of the few pthread
   14789  1.3  christos         # functions on Solaris that doesn't have a non-functional libc stub.
   14790  1.3  christos         # We try pthread_create on general principles.
   14791  1.1  christos 
   14792  1.3  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14793  1.3  christos /* end confdefs.h.  */
   14794  1.3  christos #include <pthread.h>
   14795  1.3  christos #                       if $ax_pthread_check_cond
   14796  1.3  christos #                        error "$ax_pthread_check_macro must be defined"
   14797  1.3  christos #                       endif
   14798  1.3  christos                         static void routine(void *a) { a = 0; }
   14799  1.3  christos                         static void *start_routine(void *a) { return a; }
   14800  1.3  christos int
   14801  1.3  christos main ()
   14802  1.3  christos {
   14803  1.3  christos pthread_t th; pthread_attr_t attr;
   14804  1.3  christos                         pthread_create(&th, 0, start_routine, 0);
   14805  1.3  christos                         pthread_join(th, 0);
   14806  1.3  christos                         pthread_attr_init(&attr);
   14807  1.3  christos                         pthread_cleanup_push(routine, 0);
   14808  1.3  christos                         pthread_cleanup_pop(0) /* ; */
   14809  1.3  christos   ;
   14810  1.3  christos   return 0;
   14811  1.3  christos }
   14812  1.3  christos _ACEOF
   14813  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   14814  1.3  christos   ax_pthread_ok=yes
   14815  1.3  christos fi
   14816  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   14817  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   14818  1.1  christos 
   14819  1.3  christos         CFLAGS="$ax_pthread_save_CFLAGS"
   14820  1.3  christos         LIBS="$ax_pthread_save_LIBS"
   14821  1.1  christos 
   14822  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14823  1.3  christos $as_echo "$ax_pthread_ok" >&6; }
   14824  1.3  christos         if test "x$ax_pthread_ok" = "xyes"; then :
   14825  1.3  christos   break
   14826  1.1  christos fi
   14827  1.1  christos 
   14828  1.3  christos         PTHREAD_LIBS=""
   14829  1.3  christos         PTHREAD_CFLAGS=""
   14830  1.3  christos done
   14831  1.3  christos fi
   14832  1.1  christos 
   14833  1.3  christos # Various other checks:
   14834  1.3  christos if test "x$ax_pthread_ok" = "xyes"; then
   14835  1.3  christos         ax_pthread_save_CFLAGS="$CFLAGS"
   14836  1.3  christos         ax_pthread_save_LIBS="$LIBS"
   14837  1.3  christos         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14838  1.3  christos         LIBS="$PTHREAD_LIBS $LIBS"
   14839  1.1  christos 
   14840  1.3  christos         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   14841  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   14842  1.3  christos $as_echo_n "checking for joinable pthread attribute... " >&6; }
   14843  1.3  christos if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   14844  1.3  christos   $as_echo_n "(cached) " >&6
   14845  1.3  christos else
   14846  1.3  christos   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   14847  1.3  christos              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   14848  1.3  christos                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14849  1.1  christos /* end confdefs.h.  */
   14850  1.3  christos #include <pthread.h>
   14851  1.1  christos int
   14852  1.1  christos main ()
   14853  1.1  christos {
   14854  1.3  christos int attr = $ax_pthread_attr; return attr /* ; */
   14855  1.1  christos   ;
   14856  1.1  christos   return 0;
   14857  1.1  christos }
   14858  1.1  christos _ACEOF
   14859  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   14860  1.3  christos   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   14861  1.1  christos fi
   14862  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   14863  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   14864  1.3  christos              done
   14865  1.1  christos 
   14866  1.1  christos fi
   14867  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   14868  1.3  christos $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   14869  1.3  christos         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   14870  1.3  christos                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   14871  1.3  christos                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   14872  1.1  christos 
   14873  1.3  christos cat >>confdefs.h <<_ACEOF
   14874  1.3  christos #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   14875  1.3  christos _ACEOF
   14876  1.1  christos 
   14877  1.3  christos                ax_pthread_joinable_attr_defined=yes
   14878  1.1  christos 
   14879  1.1  christos fi
   14880  1.1  christos 
   14881  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   14882  1.3  christos $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   14883  1.3  christos if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   14884  1.3  christos   $as_echo_n "(cached) " >&6
   14885  1.3  christos else
   14886  1.3  christos   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   14887  1.3  christos              case $host_os in
   14888  1.3  christos              solaris*)
   14889  1.3  christos              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   14890  1.3  christos              ;;
   14891  1.3  christos              esac
   14892  1.1  christos 
   14893  1.3  christos fi
   14894  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   14895  1.3  christos $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   14896  1.3  christos         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   14897  1.3  christos                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   14898  1.3  christos   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   14899  1.3  christos                ax_pthread_special_flags_added=yes
   14900  1.3  christos fi
   14901  1.1  christos 
   14902  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   14903  1.3  christos $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   14904  1.3  christos if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   14905  1.1  christos   $as_echo_n "(cached) " >&6
   14906  1.1  christos else
   14907  1.3  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14908  1.1  christos /* end confdefs.h.  */
   14909  1.3  christos #include <pthread.h>
   14910  1.1  christos int
   14911  1.1  christos main ()
   14912  1.1  christos {
   14913  1.3  christos int i = PTHREAD_PRIO_INHERIT;
   14914  1.1  christos   ;
   14915  1.1  christos   return 0;
   14916  1.1  christos }
   14917  1.1  christos _ACEOF
   14918  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   14919  1.3  christos   ax_cv_PTHREAD_PRIO_INHERIT=yes
   14920  1.3  christos else
   14921  1.3  christos   ax_cv_PTHREAD_PRIO_INHERIT=no
   14922  1.1  christos fi
   14923  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   14924  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   14925  1.3  christos 
   14926  1.3  christos fi
   14927  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   14928  1.3  christos $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   14929  1.3  christos         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   14930  1.3  christos                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   14931  1.3  christos 
   14932  1.3  christos $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   14933  1.3  christos 
   14934  1.3  christos                ax_pthread_prio_inherit_defined=yes
   14935  1.3  christos 
   14936  1.1  christos fi
   14937  1.3  christos 
   14938  1.3  christos         CFLAGS="$ax_pthread_save_CFLAGS"
   14939  1.3  christos         LIBS="$ax_pthread_save_LIBS"
   14940  1.3  christos 
   14941  1.3  christos         # More AIX lossage: compile with *_r variant
   14942  1.3  christos         if test "x$GCC" != "xyes"; then
   14943  1.3  christos             case $host_os in
   14944  1.3  christos                 aix*)
   14945  1.3  christos                 case "x/$CC" in #(
   14946  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) :
   14947  1.3  christos     #handle absolute path differently from PATH based program lookup
   14948  1.3  christos                      case "x$CC" in #(
   14949  1.3  christos   x/*) :
   14950  1.3  christos     if as_fn_executable_p ${CC}_r; then :
   14951  1.3  christos   PTHREAD_CC="${CC}_r"
   14952  1.3  christos fi ;; #(
   14953  1.3  christos   *) :
   14954  1.3  christos     for ac_prog in ${CC}_r
   14955  1.3  christos do
   14956  1.3  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14957  1.3  christos set dummy $ac_prog; ac_word=$2
   14958  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14959  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   14960  1.3  christos if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   14961  1.3  christos   $as_echo_n "(cached) " >&6
   14962  1.3  christos else
   14963  1.3  christos   if test -n "$PTHREAD_CC"; then
   14964  1.3  christos   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   14965  1.3  christos else
   14966  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14967  1.3  christos for as_dir in $PATH
   14968  1.3  christos do
   14969  1.3  christos   IFS=$as_save_IFS
   14970  1.3  christos   test -z "$as_dir" && as_dir=.
   14971  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   14972  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14973  1.3  christos     ac_cv_prog_PTHREAD_CC="$ac_prog"
   14974  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14975  1.3  christos     break 2
   14976  1.3  christos   fi
   14977  1.1  christos done
   14978  1.3  christos   done
   14979  1.3  christos IFS=$as_save_IFS
   14980  1.1  christos 
   14981  1.1  christos fi
   14982  1.1  christos fi
   14983  1.3  christos PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   14984  1.3  christos if test -n "$PTHREAD_CC"; then
   14985  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   14986  1.3  christos $as_echo "$PTHREAD_CC" >&6; }
   14987  1.1  christos else
   14988  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14989  1.3  christos $as_echo "no" >&6; }
   14990  1.1  christos fi
   14991  1.1  christos 
   14992  1.3  christos 
   14993  1.3  christos   test -n "$PTHREAD_CC" && break
   14994  1.3  christos done
   14995  1.3  christos test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   14996  1.3  christos  ;;
   14997  1.3  christos esac ;; #(
   14998  1.3  christos   *) :
   14999  1.3  christos      ;;
   15000  1.3  christos esac
   15001  1.3  christos                 ;;
   15002  1.3  christos             esac
   15003  1.3  christos         fi
   15004  1.1  christos fi
   15005  1.1  christos 
   15006  1.3  christos test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15007  1.3  christos 
   15008  1.3  christos 
   15009  1.3  christos 
   15010  1.3  christos 
   15011  1.1  christos 
   15012  1.3  christos # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15013  1.3  christos if test "x$ax_pthread_ok" = "xyes"; then
   15014  1.1  christos 
   15015  1.3  christos $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15016  1.1  christos 
   15017  1.3  christos         :
   15018  1.3  christos else
   15019  1.3  christos         ax_pthread_ok=no
   15020  1.1  christos 
   15021  1.1  christos fi
   15022  1.3  christos ac_ext=c
   15023  1.3  christos ac_cpp='$CPP $CPPFLAGS'
   15024  1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15025  1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15026  1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15027  1.3  christos 
   15028  1.1  christos 
   15029  1.1  christos 
   15030  1.3  christos LIBS="$PTHREAD_LIBS $LIBS"
   15031  1.3  christos CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15032  1.3  christos CC="$PTHREAD_CC"
   15033  1.3  christos 
   15034  1.1  christos #
   15035  1.3  christos # We'd like to use sigwait() too
   15036  1.1  christos #
   15037  1.3  christos for ac_func in sigwait pthread_attr_getstacksize pthread_attr_setstacksize
   15038  1.3  christos do :
   15039  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15040  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15041  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15042  1.3  christos   cat >>confdefs.h <<_ACEOF
   15043  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15044  1.3  christos _ACEOF
   15045  1.3  christos 
   15046  1.3  christos fi
   15047  1.3  christos done
   15048  1.3  christos 
   15049  1.3  christos 
   15050  1.1  christos 
   15051  1.3  christos # Check whether --with-locktype was given.
   15052  1.3  christos if test "${with_locktype+set}" = set; then :
   15053  1.3  christos   withval=$with_locktype;
   15054  1.1  christos else
   15055  1.3  christos   with_locktype="adaptive"
   15056  1.1  christos fi
   15057  1.1  christos 
   15058  1.1  christos 
   15059  1.3  christos case $with_locktype in #(
   15060  1.3  christos   adaptive) :
   15061  1.1  christos 
   15062  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15063  1.3  christos $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15064  1.3  christos 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15065  1.1  christos /* end confdefs.h.  */
   15066  1.1  christos 
   15067  1.3  christos 		 #ifndef _GNU_SOURCE
   15068  1.3  christos 		 #define _GNU_SOURCE
   15069  1.3  christos 		 #endif
   15070  1.3  christos 		 #include <pthread.h>
   15071  1.3  christos 
   15072  1.1  christos int
   15073  1.1  christos main ()
   15074  1.1  christos {
   15075  1.3  christos 
   15076  1.3  christos 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   15077  1.3  christos 
   15078  1.3  christos 
   15079  1.1  christos   ;
   15080  1.1  christos   return 0;
   15081  1.1  christos }
   15082  1.1  christos _ACEOF
   15083  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15084  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   15085  1.3  christos $as_echo "using adaptive lock type" >&6; }
   15086  1.1  christos 
   15087  1.3  christos $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   15088  1.1  christos 
   15089  1.1  christos else
   15090  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15091  1.3  christos $as_echo "using standard lock type" >&6; }
   15092  1.1  christos 
   15093  1.1  christos fi
   15094  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   15095  1.3  christos   standard) :
   15096  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15097  1.3  christos $as_echo "using standard lock type" >&6; } ;; #(
   15098  1.3  christos   *) :
   15099  1.3  christos     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   15100  1.3  christos         ;;
   15101  1.3  christos esac
   15102  1.1  christos 
   15103  1.3  christos for ac_header in sched.h
   15104  1.3  christos do :
   15105  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15106  1.3  christos if test "x$ac_cv_header_sched_h" = xyes; then :
   15107  1.3  christos   cat >>confdefs.h <<_ACEOF
   15108  1.3  christos #define HAVE_SCHED_H 1
   15109  1.3  christos _ACEOF
   15110  1.1  christos 
   15111  1.1  christos fi
   15112  1.1  christos 
   15113  1.3  christos done
   15114  1.1  christos 
   15115  1.1  christos 
   15116  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   15117  1.3  christos $as_echo_n "checking for library containing sched_yield... " >&6; }
   15118  1.3  christos if ${ac_cv_search_sched_yield+:} false; then :
   15119  1.1  christos   $as_echo_n "(cached) " >&6
   15120  1.1  christos else
   15121  1.3  christos   ac_func_search_save_LIBS=$LIBS
   15122  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15123  1.1  christos /* end confdefs.h.  */
   15124  1.1  christos 
   15125  1.1  christos /* Override any GCC internal prototype to avoid an error.
   15126  1.1  christos    Use char because int might match the return type of a GCC
   15127  1.1  christos    builtin and then its argument prototype would still apply.  */
   15128  1.1  christos #ifdef __cplusplus
   15129  1.1  christos extern "C"
   15130  1.1  christos #endif
   15131  1.3  christos char sched_yield ();
   15132  1.1  christos int
   15133  1.1  christos main ()
   15134  1.1  christos {
   15135  1.3  christos return sched_yield ();
   15136  1.1  christos   ;
   15137  1.1  christos   return 0;
   15138  1.1  christos }
   15139  1.1  christos _ACEOF
   15140  1.3  christos for ac_lib in '' rt; do
   15141  1.3  christos   if test -z "$ac_lib"; then
   15142  1.3  christos     ac_res="none required"
   15143  1.3  christos   else
   15144  1.3  christos     ac_res=-l$ac_lib
   15145  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15146  1.3  christos   fi
   15147  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   15148  1.3  christos   ac_cv_search_sched_yield=$ac_res
   15149  1.3  christos fi
   15150  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   15151  1.3  christos     conftest$ac_exeext
   15152  1.3  christos   if ${ac_cv_search_sched_yield+:} false; then :
   15153  1.3  christos   break
   15154  1.3  christos fi
   15155  1.3  christos done
   15156  1.3  christos if ${ac_cv_search_sched_yield+:} false; then :
   15157  1.3  christos 
   15158  1.1  christos else
   15159  1.3  christos   ac_cv_search_sched_yield=no
   15160  1.3  christos fi
   15161  1.3  christos rm conftest.$ac_ext
   15162  1.3  christos LIBS=$ac_func_search_save_LIBS
   15163  1.3  christos fi
   15164  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   15165  1.3  christos $as_echo "$ac_cv_search_sched_yield" >&6; }
   15166  1.3  christos ac_res=$ac_cv_search_sched_yield
   15167  1.3  christos if test "$ac_res" != no; then :
   15168  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15169  1.3  christos 
   15170  1.3  christos fi
   15171  1.3  christos 
   15172  1.3  christos for ac_func in sched_yield pthread_yield pthread_yield_np
   15173  1.3  christos do :
   15174  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15175  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15176  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15177  1.3  christos   cat >>confdefs.h <<_ACEOF
   15178  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15179  1.3  christos _ACEOF
   15180  1.3  christos 
   15181  1.1  christos fi
   15182  1.3  christos done
   15183  1.3  christos 
   15184  1.3  christos 
   15185  1.3  christos for ac_header in sys/cpuset.h
   15186  1.3  christos do :
   15187  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
   15188  1.3  christos if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
   15189  1.3  christos   cat >>confdefs.h <<_ACEOF
   15190  1.3  christos #define HAVE_SYS_CPUSET_H 1
   15191  1.3  christos _ACEOF
   15192  1.3  christos 
   15193  1.1  christos fi
   15194  1.3  christos 
   15195  1.3  christos done
   15196  1.3  christos 
   15197  1.3  christos for ac_header in sys/procset.h
   15198  1.3  christos do :
   15199  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
   15200  1.3  christos if test "x$ac_cv_header_sys_procset_h" = xyes; then :
   15201  1.1  christos   cat >>confdefs.h <<_ACEOF
   15202  1.3  christos #define HAVE_SYS_PROCSET_H 1
   15203  1.1  christos _ACEOF
   15204  1.1  christos 
   15205  1.3  christos fi
   15206  1.3  christos 
   15207  1.3  christos done
   15208  1.3  christos 
   15209  1.3  christos for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
   15210  1.3  christos do :
   15211  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15212  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15213  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15214  1.3  christos   cat >>confdefs.h <<_ACEOF
   15215  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15216  1.3  christos _ACEOF
   15217  1.1  christos 
   15218  1.1  christos fi
   15219  1.3  christos done
   15220  1.1  christos 
   15221  1.1  christos 
   15222  1.3  christos # Look for functions relating to thread naming
   15223  1.3  christos for ac_func in pthread_setname_np pthread_set_name_np
   15224  1.3  christos do :
   15225  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15226  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15227  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15228  1.3  christos   cat >>confdefs.h <<_ACEOF
   15229  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15230  1.3  christos _ACEOF
   15231  1.1  christos 
   15232  1.1  christos fi
   15233  1.3  christos done
   15234  1.1  christos 
   15235  1.3  christos for ac_header in pthread_np.h
   15236  1.3  christos do :
   15237  1.3  christos   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   15238  1.3  christos "
   15239  1.3  christos if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   15240  1.3  christos   cat >>confdefs.h <<_ACEOF
   15241  1.3  christos #define HAVE_PTHREAD_NP_H 1
   15242  1.3  christos _ACEOF
   15243  1.1  christos 
   15244  1.1  christos fi
   15245  1.1  christos 
   15246  1.3  christos done
   15247  1.3  christos 
   15248  1.1  christos 
   15249  1.1  christos #
   15250  1.3  christos # Look for sysconf to allow detection of the number of processors.
   15251  1.1  christos #
   15252  1.3  christos for ac_func in sysconf
   15253  1.3  christos do :
   15254  1.3  christos   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   15255  1.3  christos if test "x$ac_cv_func_sysconf" = xyes; then :
   15256  1.3  christos   cat >>confdefs.h <<_ACEOF
   15257  1.3  christos #define HAVE_SYSCONF 1
   15258  1.3  christos _ACEOF
   15259  1.3  christos 
   15260  1.1  christos fi
   15261  1.3  christos done
   15262  1.1  christos 
   15263  1.1  christos 
   15264  1.3  christos 
   15265  1.3  christos 
   15266  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   15267  1.3  christos $as_echo_n "checking for libtool... " >&6; }
   15268  1.3  christos 
   15269  1.3  christos # Check whether --with-libtool was given.
   15270  1.3  christos if test "${with_libtool+set}" = set; then :
   15271  1.3  christos   withval=$with_libtool; use_libtool="$withval"
   15272  1.1  christos else
   15273  1.3  christos   use_libtool="no"
   15274  1.1  christos fi
   15275  1.1  christos 
   15276  1.3  christos 
   15277  1.3  christos case $use_libtool in
   15278  1.1  christos 	yes)
   15279  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15280  1.3  christos $as_echo "yes" >&6; }
   15281  1.3  christos 
   15282  1.3  christos 		O=lo
   15283  1.3  christos 		A=la
   15284  1.3  christos 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   15285  1.3  christos 		LIBTOOL_MODE_COMPILE='--mode=compile'
   15286  1.3  christos 		LIBTOOL_MODE_INSTALL='--mode=install'
   15287  1.3  christos 		LIBTOOL_MODE_LINK='--mode=link'
   15288  1.3  christos 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   15289  1.3  christos 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   15290  1.1  christos 		;;
   15291  1.1  christos 	*)
   15292  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15293  1.3  christos $as_echo "no" >&6; }
   15294  1.3  christos 		O=o
   15295  1.3  christos 		A=a
   15296  1.3  christos 		LIBTOOL=
   15297  1.3  christos 
   15298  1.3  christos 		LIBTOOL_MKDEP_SED=
   15299  1.3  christos 		LIBTOOL_MODE_COMPILE=
   15300  1.3  christos 		LIBTOOL_MODE_INSTALL=
   15301  1.3  christos 		LIBTOOL_MODE_LINK=
   15302  1.3  christos 		LIBTOOL_MODE_UNINSTALL=
   15303  1.3  christos 		INSTALL_LIBRARY='${INSTALL_DATA}'
   15304  1.1  christos 		;;
   15305  1.1  christos esac
   15306  1.1  christos 
   15307  1.3  christos 
   15308  1.3  christos #
   15309  1.3  christos # If PIC is disabled, shared libraries must also be
   15310  1.3  christos #
   15311  1.3  christos if test "$pic_mode" = "no"; then :
   15312  1.3  christos   enable_shared="no"
   15313  1.3  christos fi
   15314  1.3  christos 
   15315  1.3  christos CRYPTO=OpenSSL
   15316  1.3  christos 
   15317  1.1  christos #
   15318  1.3  christos # was --with-openssl specified?
   15319  1.1  christos #
   15320  1.1  christos 
   15321  1.3  christos     found=false
   15322  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"
   15323  1.3  christos 
   15324  1.3  christos # Check whether --with-openssl was given.
   15325  1.3  christos if test "${with_openssl+set}" = set; then :
   15326  1.3  christos   withval=$with_openssl;
   15327  1.3  christos 	    case $with_openssl in #(
   15328  1.3  christos   ""|y|ye|yes) :
   15329  1.3  christos     ssldirs="$default_ssldirs" ;; #(
   15330  1.3  christos   n|no) :
   15331  1.3  christos     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   15332  1.3  christos   *) :
   15333  1.3  christos     ssldirs="$withval" ;; #(
   15334  1.3  christos   *) :
   15335  1.3  christos     ssldirs="$default_ssldirs"
   15336  1.3  christos 	     ;;
   15337  1.3  christos esac
   15338  1.3  christos 
   15339  1.3  christos else
   15340  1.3  christos 
   15341  1.3  christos             # if pkg-config is installed and openssl has installed a .pc file,
   15342  1.3  christos             # then use that information and don't search ssldirs
   15343  1.1  christos 
   15344  1.3  christos pkg_failed=no
   15345  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   15346  1.3  christos $as_echo_n "checking for crypto... " >&6; }
   15347  1.1  christos 
   15348  1.3  christos if test -n "$OPENSSL_CFLAGS"; then
   15349  1.3  christos     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   15350  1.3  christos  elif test -n "$PKG_CONFIG"; then
   15351  1.3  christos     if test -n "$PKG_CONFIG" && \
   15352  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15353  1.3  christos   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15354  1.3  christos   ac_status=$?
   15355  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15356  1.3  christos   test $ac_status = 0; }; then
   15357  1.3  christos   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   15358  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   15359  1.3  christos else
   15360  1.3  christos   pkg_failed=yes
   15361  1.3  christos fi
   15362  1.3  christos  else
   15363  1.3  christos     pkg_failed=untried
   15364  1.3  christos fi
   15365  1.3  christos if test -n "$OPENSSL_LIBS"; then
   15366  1.3  christos     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   15367  1.3  christos  elif test -n "$PKG_CONFIG"; then
   15368  1.3  christos     if test -n "$PKG_CONFIG" && \
   15369  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15370  1.3  christos   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15371  1.3  christos   ac_status=$?
   15372  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15373  1.3  christos   test $ac_status = 0; }; then
   15374  1.3  christos   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   15375  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   15376  1.1  christos else
   15377  1.3  christos   pkg_failed=yes
   15378  1.3  christos fi
   15379  1.3  christos  else
   15380  1.3  christos     pkg_failed=untried
   15381  1.1  christos fi
   15382  1.3  christos 
   15383  1.3  christos 
   15384  1.3  christos 
   15385  1.3  christos if test $pkg_failed = yes; then
   15386  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15387  1.1  christos $as_echo "no" >&6; }
   15388  1.1  christos 
   15389  1.3  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   15390  1.3  christos         _pkg_short_errors_supported=yes
   15391  1.1  christos else
   15392  1.3  christos         _pkg_short_errors_supported=no
   15393  1.1  christos fi
   15394  1.3  christos         if test $_pkg_short_errors_supported = yes; then
   15395  1.3  christos 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   15396  1.3  christos         else
   15397  1.3  christos 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   15398  1.3  christos         fi
   15399  1.3  christos 	# Put the nasty error message in config.log where it belongs
   15400  1.3  christos 	echo "$OPENSSL_PKG_ERRORS" >&5
   15401  1.3  christos 
   15402  1.3  christos 	ssldirs="$default_ssldirs"
   15403  1.3  christos elif test $pkg_failed = untried; then
   15404  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15405  1.3  christos $as_echo "no" >&6; }
   15406  1.3  christos 	ssldirs="$default_ssldirs"
   15407  1.3  christos else
   15408  1.3  christos 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   15409  1.3  christos 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   15410  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15411  1.1  christos $as_echo "yes" >&6; }
   15412  1.3  christos 	found=true
   15413  1.3  christos fi
   15414  1.3  christos 
   15415  1.3  christos 
   15416  1.3  christos 
   15417  1.1  christos fi
   15418  1.1  christos 
   15419  1.1  christos 
   15420  1.1  christos 
   15421  1.3  christos     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   15422  1.3  christos     # an 'openssl' subdirectory
   15423  1.3  christos 
   15424  1.3  christos     if ! $found; then :
   15425  1.3  christos 
   15426  1.3  christos         OPENSSL_INCLUDES=
   15427  1.3  christos         for ssldir in $ssldirs; do
   15428  1.3  christos             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   15429  1.3  christos $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   15430  1.3  christos 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   15431  1.3  christos 
   15432  1.3  christos 		    OPENSSL_INCLUDES="-I$ssldir/include"
   15433  1.3  christos                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   15434  1.3  christos                     found=true
   15435  1.3  christos                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15436  1.3  christos $as_echo "yes" >&6; }
   15437  1.3  christos                     break
   15438  1.3  christos 
   15439  1.3  christos else
   15440  1.1  christos 
   15441  1.3  christos 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15442  1.3  christos $as_echo "no" >&6; }
   15443  1.1  christos 
   15444  1.3  christos fi
   15445  1.3  christos         done
   15446  1.1  christos 
   15447  1.3  christos         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   15448  1.3  christos         # it will just work!
   15449  1.1  christos 
   15450  1.1  christos fi
   15451  1.1  christos 
   15452  1.3  christos     # try the preprocessor and linker with our new flags,
   15453  1.3  christos     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   15454  1.1  christos 
   15455  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   15456  1.3  christos $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   15457  1.3  christos     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES])
   15458  1.3  christos 
   15459  1.3  christos     save_LIBS="$LIBS"
   15460  1.3  christos     save_CPPFLAGS="$CPPFLAGS"
   15461  1.3  christos     LIBS="$OPENSSL_LIBS $LIBS"
   15462  1.3  christos     CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
   15463  1.3  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15464  1.1  christos /* end confdefs.h.  */
   15465  1.1  christos 
   15466  1.3  christos                 #include <openssl/crypto.h>
   15467  1.3  christos 
   15468  1.1  christos int
   15469  1.1  christos main ()
   15470  1.1  christos {
   15471  1.3  christos 
   15472  1.3  christos 	        OPENSSL_free(NULL);
   15473  1.3  christos 
   15474  1.1  christos   ;
   15475  1.1  christos   return 0;
   15476  1.1  christos }
   15477  1.1  christos _ACEOF
   15478  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   15479  1.3  christos 
   15480  1.3  christos             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15481  1.3  christos $as_echo "yes" >&6; }
   15482  1.3  christos             :
   15483  1.3  christos 
   15484  1.1  christos else
   15485  1.3  christos 
   15486  1.3  christos             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15487  1.3  christos $as_echo "no" >&6; }
   15488  1.3  christos             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15489  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15490  1.3  christos as_fn_error $? "OpenSSL/LibreSSL not found
   15491  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15492  1.3  christos 
   15493  1.1  christos fi
   15494  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   15495  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   15496  1.3  christos     CPPFLAGS="$save_CPPFLAGS"
   15497  1.3  christos     LIBS="$save_LIBS"
   15498  1.3  christos 
   15499  1.3  christos 
   15500  1.3  christos 
   15501  1.1  christos 
   15502  1.1  christos 
   15503  1.3  christos save_CFLAGS="$CFLAGS"
   15504  1.3  christos save_LIBS="$LIBS"
   15505  1.3  christos save_LDFLAGS="$LDFLAGS"
   15506  1.3  christos CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
   15507  1.3  christos LIBS="$LIBS $OPENSSL_LIBS"
   15508  1.3  christos LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
   15509  1.1  christos 
   15510  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
   15511  1.3  christos $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
   15512  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15513  1.1  christos /* end confdefs.h.  */
   15514  1.3  christos #include <openssl/opensslv.h>
   15515  1.1  christos int
   15516  1.1  christos main ()
   15517  1.1  christos {
   15518  1.3  christos #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
   15519  1.3  christos 		       #error OpenSSL >= 1.0.0 or LibreSSL required
   15520  1.3  christos 		       #endif
   15521  1.3  christos 
   15522  1.1  christos   ;
   15523  1.1  christos   return 0;
   15524  1.1  christos }
   15525  1.1  christos _ACEOF
   15526  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15527  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15528  1.3  christos $as_echo "yes" >&6; }
   15529  1.1  christos else
   15530  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15531  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15532  1.3  christos as_fn_error $? "not found
   15533  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15534  1.1  christos fi
   15535  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15536  1.1  christos 
   15537  1.1  christos #
   15538  1.3  christos # Check for functions added in OpenSSL or LibreSSL
   15539  1.1  christos #
   15540  1.1  christos 
   15541  1.3  christos for ac_func in CRYPTO_zalloc
   15542  1.3  christos do :
   15543  1.3  christos   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   15544  1.3  christos if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   15545  1.3  christos   cat >>confdefs.h <<_ACEOF
   15546  1.3  christos #define HAVE_CRYPTO_ZALLOC 1
   15547  1.3  christos _ACEOF
   15548  1.1  christos 
   15549  1.3  christos fi
   15550  1.3  christos done
   15551  1.1  christos 
   15552  1.3  christos for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   15553  1.3  christos do :
   15554  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15555  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15556  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15557  1.3  christos   cat >>confdefs.h <<_ACEOF
   15558  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15559  1.3  christos _ACEOF
   15560  1.1  christos 
   15561  1.1  christos fi
   15562  1.3  christos done
   15563  1.1  christos 
   15564  1.3  christos for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   15565  1.3  christos do :
   15566  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15567  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15568  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15569  1.3  christos   cat >>confdefs.h <<_ACEOF
   15570  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15571  1.3  christos _ACEOF
   15572  1.1  christos 
   15573  1.3  christos fi
   15574  1.1  christos done
   15575  1.1  christos 
   15576  1.3  christos for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   15577  1.3  christos do :
   15578  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15579  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15580  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15581  1.3  christos   cat >>confdefs.h <<_ACEOF
   15582  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15583  1.3  christos _ACEOF
   15584  1.3  christos 
   15585  1.1  christos fi
   15586  1.3  christos done
   15587  1.1  christos 
   15588  1.1  christos 
   15589  1.1  christos #
   15590  1.3  christos # Check for algorithm support in OpenSSL
   15591  1.1  christos #
   15592  1.1  christos 
   15593  1.3  christos for ac_func in ECDSA_sign ECDSA_verify
   15594  1.3  christos do :
   15595  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15596  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15597  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15598  1.3  christos   cat >>confdefs.h <<_ACEOF
   15599  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15600  1.3  christos _ACEOF
   15601  1.3  christos  :
   15602  1.1  christos else
   15603  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15604  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15605  1.3  christos as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   15606  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15607  1.1  christos fi
   15608  1.3  christos done
   15609  1.1  christos 
   15610  1.1  christos 
   15611  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   15612  1.3  christos $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   15613  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15614  1.3  christos /* end confdefs.h.  */
   15615  1.3  christos #include <openssl/evp.h>
   15616  1.4  christos 		       #include <openssl/ec.h>
   15617  1.3  christos int
   15618  1.3  christos main ()
   15619  1.3  christos {
   15620  1.4  christos EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
   15621  1.3  christos   ;
   15622  1.3  christos   return 0;
   15623  1.3  christos }
   15624  1.3  christos _ACEOF
   15625  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15626  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15627  1.1  christos $as_echo "yes" >&6; }
   15628  1.3  christos else
   15629  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15630  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15631  1.3  christos as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   15632  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15633  1.3  christos fi
   15634  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15635  1.1  christos 
   15636  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   15637  1.3  christos $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   15638  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15639  1.3  christos /* end confdefs.h.  */
   15640  1.3  christos #include <openssl/evp.h>
   15641  1.4  christos 		       #include <openssl/ec.h>
   15642  1.3  christos int
   15643  1.3  christos main ()
   15644  1.3  christos {
   15645  1.4  christos EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
   15646  1.3  christos   ;
   15647  1.3  christos   return 0;
   15648  1.3  christos }
   15649  1.3  christos _ACEOF
   15650  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15651  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15652  1.3  christos $as_echo "yes" >&6; }
   15653  1.1  christos else
   15654  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15655  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15656  1.3  christos as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   15657  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15658  1.1  christos fi
   15659  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15660  1.1  christos 
   15661  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   15662  1.3  christos $as_echo_n "checking for Ed25519 support... " >&6; }
   15663  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15664  1.1  christos /* end confdefs.h.  */
   15665  1.3  christos #include <openssl/evp.h>
   15666  1.4  christos 		       #include <openssl/ec.h>
   15667  1.1  christos int
   15668  1.1  christos main ()
   15669  1.1  christos {
   15670  1.4  christos EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
   15671  1.1  christos   ;
   15672  1.1  christos   return 0;
   15673  1.1  christos }
   15674  1.1  christos _ACEOF
   15675  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   15676  1.1  christos 
   15677  1.3  christos $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   15678  1.1  christos 
   15679  1.3  christos      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15680  1.3  christos $as_echo "yes" >&6; }
   15681  1.3  christos else
   15682  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15683  1.3  christos $as_echo "no" >&6; }
   15684  1.1  christos fi
   15685  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15686  1.1  christos 
   15687  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   15688  1.3  christos $as_echo_n "checking for Ed448 support... " >&6; }
   15689  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
   15690  1.3  christos $as_echo "broken" >&6; }
   15691  1.3  christos #AC_COMPILE_IFELSE(
   15692  1.4  christos #    [AC_LANG_PROGRAM([[#include <openssl/evp.h>
   15693  1.4  christos #		       #include <openssl/ec.h>]],
   15694  1.4  christos #		     [[EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);]])],
   15695  1.3  christos #    [AC_DEFINE([HAVE_OPENSSL_ED448], [1], [define if OpenSSL supports Ed448])
   15696  1.3  christos #     AC_MSG_RESULT([yes])],
   15697  1.3  christos #    [AC_MSG_RESULT([no])])
   15698  1.1  christos 
   15699  1.3  christos #
   15700  1.3  christos # Check for OpenSSL SHA-1 support
   15701  1.3  christos #
   15702  1.3  christos for ac_func in EVP_sha1
   15703  1.3  christos do :
   15704  1.3  christos   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   15705  1.3  christos if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   15706  1.3  christos   cat >>confdefs.h <<_ACEOF
   15707  1.3  christos #define HAVE_EVP_SHA1 1
   15708  1.3  christos _ACEOF
   15709  1.3  christos  :
   15710  1.1  christos else
   15711  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15712  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15713  1.3  christos as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   15714  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15715  1.1  christos fi
   15716  1.3  christos done
   15717  1.1  christos 
   15718  1.1  christos 
   15719  1.3  christos #
   15720  1.3  christos # Check for OpenSSL SHA-2 support
   15721  1.3  christos #
   15722  1.3  christos for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   15723  1.3  christos do :
   15724  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15725  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15726  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15727  1.3  christos   cat >>confdefs.h <<_ACEOF
   15728  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15729  1.3  christos _ACEOF
   15730  1.3  christos  :
   15731  1.3  christos else
   15732  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15733  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15734  1.3  christos as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   15735  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15736  1.3  christos fi
   15737  1.3  christos done
   15738  1.1  christos 
   15739  1.1  christos 
   15740  1.1  christos #
   15741  1.3  christos # Check for OpenSSL AES support
   15742  1.1  christos #
   15743  1.3  christos for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   15744  1.3  christos do :
   15745  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15746  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15747  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15748  1.3  christos   cat >>confdefs.h <<_ACEOF
   15749  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15750  1.3  christos _ACEOF
   15751  1.3  christos  :
   15752  1.3  christos else
   15753  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15754  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15755  1.3  christos as_fn_error $? "AES support in OpenSSL is mandatory.
   15756  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15757  1.3  christos fi
   15758  1.3  christos done
   15759  1.1  christos 
   15760  1.1  christos 
   15761  1.3  christos #
   15762  1.3  christos # Check for OpenSSL 1.1.x/LibreSSL functions
   15763  1.3  christos #
   15764  1.3  christos for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   15765  1.3  christos do :
   15766  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15767  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15768  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15769  1.3  christos   cat >>confdefs.h <<_ACEOF
   15770  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15771  1.3  christos _ACEOF
   15772  1.1  christos 
   15773  1.3  christos fi
   15774  1.3  christos done
   15775  1.1  christos 
   15776  1.1  christos 
   15777  1.3  christos #
   15778  1.3  christos # Check whether FIPS mode is available and whether we should enable it
   15779  1.3  christos #
   15780  1.3  christos # Check whether --enable-fips-mode was given.
   15781  1.3  christos if test "${enable_fips_mode+set}" = set; then :
   15782  1.3  christos   enableval=$enable_fips_mode;
   15783  1.3  christos else
   15784  1.3  christos   enable_fips_mode="no"
   15785  1.3  christos fi
   15786  1.1  christos 
   15787  1.1  christos 
   15788  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   15789  1.3  christos $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   15790  1.3  christos case $enable_fips_mode in #(
   15791  1.3  christos   yes) :
   15792  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15793  1.3  christos $as_echo "yes" >&6; }
   15794  1.3  christos 		for ac_func in FIPS_mode
   15795  1.3  christos do :
   15796  1.3  christos   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   15797  1.3  christos if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   15798  1.3  christos   cat >>confdefs.h <<_ACEOF
   15799  1.3  christos #define HAVE_FIPS_MODE 1
   15800  1.3  christos _ACEOF
   15801  1.1  christos 
   15802  1.3  christos else
   15803  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15804  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15805  1.3  christos as_fn_error $? "OpenSSL FIPS mode requested but not available.
   15806  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   15807  1.3  christos fi
   15808  1.3  christos done
   15809  1.3  christos  ;; #(
   15810  1.3  christos   no) :
   15811  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15812  1.3  christos $as_echo "no" >&6; } ;; #(
   15813  1.3  christos   *) :
   15814  1.3  christos      ;;
   15815  1.3  christos esac
   15816  1.1  christos 
   15817  1.3  christos CFLAGS="$save_CFLAGS"
   15818  1.3  christos LIBS="$save_LIBS"
   15819  1.3  christos LDFLAGS="$save_LDFLAGS"
   15820  1.1  christos 
   15821  1.1  christos 
   15822  1.1  christos 
   15823  1.1  christos 
   15824  1.1  christos 
   15825  1.1  christos #
   15826  1.3  christos # Client Cookie algorithm choice
   15827  1.1  christos #
   15828  1.1  christos 
   15829  1.3  christos # Check whether --with-cc-alg was given.
   15830  1.3  christos if test "${with_cc_alg+set}" = set; then :
   15831  1.3  christos   withval=$with_cc_alg; :
   15832  1.3  christos else
   15833  1.3  christos   with_cc_alg="aes"
   15834  1.1  christos fi
   15835  1.1  christos 
   15836  1.1  christos 
   15837  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the algorithm for Client Cookie" >&5
   15838  1.3  christos $as_echo_n "checking for the algorithm for Client Cookie... " >&6; }
   15839  1.3  christos case $with_cc_alg in #(
   15840  1.3  christos   sha1|SHA1) :
   15841  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha1" >&5
   15842  1.3  christos $as_echo "sha1" >&6; }
   15843  1.3  christos 
   15844  1.3  christos $as_echo "#define HMAC_SHA1_CC 1" >>confdefs.h
   15845  1.3  christos  ;; #(
   15846  1.3  christos   sha256|SHA256) :
   15847  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha256" >&5
   15848  1.3  christos $as_echo "sha256" >&6; }
   15849  1.3  christos 
   15850  1.3  christos $as_echo "#define HMAC_SHA256_CC 1" >>confdefs.h
   15851  1.3  christos  ;; #(
   15852  1.3  christos   aes|AES|auto) :
   15853  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: aes" >&5
   15854  1.3  christos $as_echo "aes" >&6; }
   15855  1.1  christos 
   15856  1.3  christos $as_echo "#define AES_CC 1" >>confdefs.h
   15857  1.3  christos  ;; #(
   15858  1.3  christos   *) :
   15859  1.3  christos     as_fn_error $? "Invalid $with_cc_alg algorithm for Client Cookie" "$LINENO" 5 ;;
   15860  1.1  christos esac
   15861  1.1  christos 
   15862  1.3  christos 
   15863  1.3  christos PKCS11_TOOLS=
   15864  1.3  christos PKCS11_TEST=
   15865  1.1  christos #
   15866  1.3  christos # was --enable-native-pkcs11 specified?
   15867  1.1  christos #
   15868  1.3  christos # Check whether --enable-native-pkcs11 was given.
   15869  1.3  christos if test "${enable_native_pkcs11+set}" = set; then :
   15870  1.3  christos   enableval=$enable_native_pkcs11; :
   15871  1.3  christos else
   15872  1.3  christos   enable_native_pkcs11="no"
   15873  1.3  christos fi
   15874  1.3  christos 
   15875  1.1  christos 
   15876  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   15877  1.3  christos $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   15878  1.3  christos case $enable_native_pkcs11 in #(
   15879  1.3  christos   no) :
   15880  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15881  1.3  christos $as_echo "no" >&6; } ;; #(
   15882  1.3  christos   yes) :
   15883  1.3  christos     PKCS11_TOOLS=pkcs11
   15884  1.3  christos 	       PKCS11_TEST=pkcs11
   15885  1.3  christos 	       CRYPTO=pkcs11
   15886  1.3  christos 	       if $use_threads; then :
   15887  1.3  christos   :
   15888  1.1  christos else
   15889  1.3  christos   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   15890  1.1  christos fi
   15891  1.3  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15892  1.3  christos $as_echo "yes" >&6; }
   15893  1.3  christos 	       for ac_func in getpassphrase
   15894  1.3  christos do :
   15895  1.3  christos   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   15896  1.3  christos if test "x$ac_cv_func_getpassphrase" = xyes; then :
   15897  1.3  christos   cat >>confdefs.h <<_ACEOF
   15898  1.3  christos #define HAVE_GETPASSPHRASE 1
   15899  1.3  christos _ACEOF
   15900  1.1  christos 
   15901  1.3  christos fi
   15902  1.3  christos done
   15903  1.1  christos 
   15904  1.3  christos 	       ;; #(
   15905  1.3  christos   *) :
   15906  1.3  christos      ;;
   15907  1.3  christos esac
   15908  1.1  christos 
   15909  1.1  christos 
   15910  1.1  christos 
   15911  1.3  christos case $CRYPTO in #(
   15912  1.3  christos   pkcs11) :
   15913  1.1  christos 
   15914  1.3  christos $as_echo "#define USE_PKCS11 1" >>confdefs.h
   15915  1.3  christos  ;; #(
   15916  1.3  christos   *) :
   15917  1.1  christos 
   15918  1.3  christos $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   15919  1.3  christos  ;;
   15920  1.1  christos esac
   15921  1.1  christos 
   15922  1.3  christos # preparation for automake
   15923  1.3  christos # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   15924  1.3  christos 
   15925  1.1  christos #
   15926  1.3  christos # was --with-pkcs11 specified?
   15927  1.1  christos #
   15928  1.1  christos 
   15929  1.3  christos # Check whether --with-pkcs11 was given.
   15930  1.3  christos if test "${with_pkcs11+set}" = set; then :
   15931  1.3  christos   withval=$with_pkcs11; :
   15932  1.3  christos else
   15933  1.3  christos   with_pkcs11="undefined"
   15934  1.3  christos fi
   15935  1.1  christos 
   15936  1.1  christos 
   15937  1.3  christos case $with_pkcs11 in #(
   15938  1.3  christos   yes|auto) :
   15939  1.3  christos     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   15940  1.3  christos   no|undefined) :
   15941  1.3  christos     with_pkcs11="undefined" ;; #(
   15942  1.3  christos   *) :
   15943  1.3  christos      ;;
   15944  1.1  christos esac
   15945  1.1  christos 
   15946  1.3  christos cat >>confdefs.h <<_ACEOF
   15947  1.3  christos #define PK11_LIB_LOCATION "$with_pkcs11"
   15948  1.3  christos _ACEOF
   15949  1.1  christos 
   15950  1.1  christos 
   15951  1.3  christos # for PKCS11 benchmarks
   15952  1.1  christos 
   15953  1.3  christos have_clock_gt=no
   15954  1.3  christos ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   15955  1.3  christos if test "x$ac_cv_func_clock_gettime" = xyes; then :
   15956  1.3  christos   have_clock_gt=yes
   15957  1.1  christos fi
   15958  1.1  christos 
   15959  1.3  christos if test "no" = "$have_clock_gt"; then
   15960  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   15961  1.3  christos $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   15962  1.3  christos if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   15963  1.3  christos   $as_echo_n "(cached) " >&6
   15964  1.3  christos else
   15965  1.3  christos   ac_check_lib_save_LIBS=$LIBS
   15966  1.3  christos LIBS="-lrt  $LIBS"
   15967  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15968  1.1  christos /* end confdefs.h.  */
   15969  1.1  christos 
   15970  1.3  christos /* Override any GCC internal prototype to avoid an error.
   15971  1.3  christos    Use char because int might match the return type of a GCC
   15972  1.3  christos    builtin and then its argument prototype would still apply.  */
   15973  1.3  christos #ifdef __cplusplus
   15974  1.3  christos extern "C"
   15975  1.3  christos #endif
   15976  1.3  christos char clock_gettime ();
   15977  1.1  christos int
   15978  1.1  christos main ()
   15979  1.1  christos {
   15980  1.3  christos return clock_gettime ();
   15981  1.1  christos   ;
   15982  1.1  christos   return 0;
   15983  1.1  christos }
   15984  1.1  christos _ACEOF
   15985  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   15986  1.3  christos   ac_cv_lib_rt_clock_gettime=yes
   15987  1.1  christos else
   15988  1.3  christos   ac_cv_lib_rt_clock_gettime=no
   15989  1.1  christos fi
   15990  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   15991  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   15992  1.3  christos LIBS=$ac_check_lib_save_LIBS
   15993  1.3  christos fi
   15994  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   15995  1.3  christos $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   15996  1.3  christos if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   15997  1.3  christos   have_clock_gt=rt
   15998  1.3  christos fi
   15999  1.3  christos 
   16000  1.3  christos fi
   16001  1.3  christos 
   16002  1.3  christos if test "no" != "$have_clock_gt"; then
   16003  1.1  christos 
   16004  1.3  christos $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   16005  1.3  christos 
   16006  1.3  christos fi
   16007  1.3  christos 
   16008  1.3  christos if test "rt" = "$have_clock_gt"; then
   16009  1.3  christos 	LIBS="-lrt $LIBS"
   16010  1.3  christos fi
   16011  1.1  christos 
   16012  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   16013  1.3  christos $as_echo_n "checking for GSSAPI library... " >&6; }
   16014  1.1  christos 
   16015  1.3  christos # Check whether --with-gssapi was given.
   16016  1.3  christos if test "${with_gssapi+set}" = set; then :
   16017  1.3  christos   withval=$with_gssapi; use_gssapi="$withval"
   16018  1.1  christos else
   16019  1.3  christos   use_gssapi="yes"
   16020  1.1  christos fi
   16021  1.1  christos 
   16022  1.1  christos 
   16023  1.3  christos # first try using krb5-config, if that does not work then fall back to "yes" method.
   16024  1.3  christos 
   16025  1.3  christos case "$use_gssapi" in
   16026  1.3  christos */krb5-config|krb5-config)
   16027  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   16028  1.3  christos $as_echo "trying $use_gssapi" >&6; }
   16029  1.3  christos     if test krb5-config = "$use_gssapi"
   16030  1.3  christos     then
   16031  1.3  christos 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   16032  1.3  christos set dummy $use_gssapi; ac_word=$2
   16033  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16034  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   16035  1.3  christos if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   16036  1.3  christos   $as_echo_n "(cached) " >&6
   16037  1.3  christos else
   16038  1.3  christos   case $KRB5_CONFIG in
   16039  1.3  christos   [\\/]* | ?:[\\/]*)
   16040  1.3  christos   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   16041  1.3  christos   ;;
   16042  1.3  christos   *)
   16043  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16044  1.3  christos for as_dir in $PATH
   16045  1.3  christos do
   16046  1.3  christos   IFS=$as_save_IFS
   16047  1.3  christos   test -z "$as_dir" && as_dir=.
   16048  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   16049  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16050  1.3  christos     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   16051  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16052  1.3  christos     break 2
   16053  1.3  christos   fi
   16054  1.3  christos done
   16055  1.3  christos   done
   16056  1.3  christos IFS=$as_save_IFS
   16057  1.1  christos 
   16058  1.3  christos   ;;
   16059  1.3  christos esac
   16060  1.3  christos fi
   16061  1.3  christos KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   16062  1.3  christos if test -n "$KRB5_CONFIG"; then
   16063  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   16064  1.3  christos $as_echo "$KRB5_CONFIG" >&6; }
   16065  1.1  christos else
   16066  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16067  1.1  christos $as_echo "no" >&6; }
   16068  1.1  christos fi
   16069  1.1  christos 
   16070  1.1  christos 
   16071  1.3  christos     else
   16072  1.3  christos 	KRB5_CONFIG="$use_gssapi"
   16073  1.3  christos     fi
   16074  1.3  christos     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   16075  1.3  christos     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   16076  1.3  christos     saved_cppflags="$CPPFLAGS"
   16077  1.3  christos     CPPFLAGS="$gssapi_cflags $CPPFLAGS"
   16078  1.3  christos     for ac_header in gssapi.h gssapi/gssapi.h
   16079  1.3  christos do :
   16080  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16081  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16082  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16083  1.3  christos   cat >>confdefs.h <<_ACEOF
   16084  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16085  1.3  christos _ACEOF
   16086  1.3  christos  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16087  1.3  christos fi
   16088  1.3  christos 
   16089  1.3  christos done
   16090  1.1  christos 
   16091  1.3  christos     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16092  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   16093  1.3  christos $as_echo "krb5-config: gssapi.h not found" >&6; }
   16094  1.3  christos 	CPPFLAGS="$saved_cppflags"
   16095  1.3  christos 	use_gssapi="yes"
   16096  1.3  christos     else
   16097  1.3  christos 	for ac_header in krb5/krb5.h krb5.h
   16098  1.3  christos do :
   16099  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16100  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16101  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16102  1.3  christos   cat >>confdefs.h <<_ACEOF
   16103  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16104  1.1  christos _ACEOF
   16105  1.3  christos  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16106  1.1  christos fi
   16107  1.1  christos 
   16108  1.3  christos done
   16109  1.3  christos 
   16110  1.3  christos 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16111  1.3  christos 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   16112  1.3  christos $as_echo "krb5-config: krb5.h not found" >&6; }
   16113  1.3  christos 	    CPPFLAGS="$saved_cppflags"
   16114  1.3  christos 	    use_gssapi="yes"
   16115  1.3  christos 	else
   16116  1.3  christos 	    CPPFLAGS="$saved_cppflags"
   16117  1.3  christos 	    saved_libs="$LIBS"
   16118  1.3  christos 	    LIBS=$gssapi_libs
   16119  1.3  christos 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   16120  1.3  christos $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   16121  1.3  christos 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16122  1.1  christos /* end confdefs.h.  */
   16123  1.1  christos 
   16124  1.1  christos int
   16125  1.1  christos main ()
   16126  1.1  christos {
   16127  1.3  christos gss_acquire_cred();krb5_init_context()
   16128  1.1  christos   ;
   16129  1.1  christos   return 0;
   16130  1.1  christos }
   16131  1.1  christos _ACEOF
   16132  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   16133  1.3  christos   gssapi_linked=yes
   16134  1.1  christos else
   16135  1.3  christos   gssapi_linked=no
   16136  1.1  christos fi
   16137  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16138  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   16139  1.3  christos 	    case $gssapi_linked in
   16140  1.3  christos 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   16141  1.3  christos $as_echo "krb5-config: linked" >&6; };;
   16142  1.3  christos 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   16143  1.3  christos $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   16144  1.3  christos 		    use_gssapi="yes"
   16145  1.3  christos 		    ;;
   16146  1.3  christos 	    esac
   16147  1.3  christos 	    LIBS=$saved_libs
   16148  1.3  christos 	fi
   16149  1.3  christos     fi
   16150  1.3  christos     if test "yes" = "$use_gssapi"; then
   16151  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   16152  1.3  christos $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   16153  1.3  christos     fi
   16154  1.3  christos     ;;
   16155  1.3  christos esac
   16156  1.1  christos 
   16157  1.3  christos case "$host" in
   16158  1.3  christos *darwin*)
   16159  1.3  christos 	if test "yes" = "$use_gssapi"
   16160  1.3  christos 	then
   16161  1.3  christos 		use_gssapi=framework
   16162  1.3  christos 	fi
   16163  1.3  christos 	;;
   16164  1.3  christos esac
   16165  1.1  christos 
   16166  1.3  christos # gssapi is just the framework, we really require kerberos v5, so
   16167  1.3  christos # look for those headers (the gssapi headers must be there, too)
   16168  1.3  christos # The problem with this implementation is that it doesn't allow
   16169  1.3  christos # for the specification of gssapi and krb5 headers in different locations,
   16170  1.3  christos # which probably ought to be fixed although fixing might raise the issue of
   16171  1.3  christos # trying to build with incompatible versions of gssapi and krb5.
   16172  1.3  christos if test "yes" = "$use_gssapi"
   16173  1.3  christos then
   16174  1.3  christos 	# first, deal with the obvious
   16175  1.3  christos 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   16176  1.3  christos 		   -f /usr/include/krb5/krb5.h -o \
   16177  1.3  christos 		   -f /usr/include/krb5.h \)   -a \
   16178  1.3  christos 		\( -f /usr/include/gssapi.h -o \
   16179  1.3  christos 		   -f /usr/include/gssapi/gssapi.h \)
   16180  1.3  christos 	then
   16181  1.3  christos 		use_gssapi=/usr
   16182  1.3  christos 	else
   16183  1.3  christos 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   16184  1.3  christos 	    for d in $krb5dirs
   16185  1.3  christos 	    do
   16186  1.3  christos 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   16187  1.3  christos 			-f $d/include/krb5.h
   16188  1.3  christos 		then
   16189  1.3  christos 			if test -f $d/include/gssapi/gssapi.h -o \
   16190  1.3  christos 				-f $d/include/gssapi.h
   16191  1.3  christos 			then
   16192  1.3  christos 				use_gssapi=$d
   16193  1.3  christos 				break
   16194  1.3  christos 			fi
   16195  1.3  christos 		fi
   16196  1.3  christos 		use_gssapi="no"
   16197  1.3  christos 	    done
   16198  1.3  christos 	fi
   16199  1.3  christos fi
   16200  1.1  christos 
   16201  1.3  christos case "$use_gssapi" in
   16202  1.3  christos 	no)
   16203  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   16204  1.3  christos $as_echo "disabled" >&6; }
   16205  1.3  christos 		USE_GSSAPI=''
   16206  1.3  christos 		;;
   16207  1.3  christos 	yes)
   16208  1.3  christos 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   16209  1.3  christos 		;;
   16210  1.3  christos 	*/krb5-config|krb5-config)
   16211  1.3  christos 		USE_GSSAPI='-DGSSAPI'
   16212  1.3  christos 		DST_GSSAPI_INC="$gssapi_cflags"
   16213  1.3  christos 		DNS_GSSAPI_LIBS="$gssapi_libs"
   16214  1.3  christos 		;;
   16215  1.3  christos 	framework)
   16216  1.3  christos 		USE_GSSAPI='-DGSSAPI'
   16217  1.3  christos 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   16218  1.3  christos 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   16219  1.3  christos 		DNS_GSSAPI_LIBS="-framework Kerberos"
   16220  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   16221  1.3  christos $as_echo "framework" >&6; }
   16222  1.3  christos 		;;
   16223  1.1  christos 
   16224  1.3  christos 	*)
   16225  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   16226  1.3  christos $as_echo "looking in $use_gssapi/lib" >&6; }
   16227  1.3  christos 		USE_GSSAPI='-DGSSAPI'
   16228  1.3  christos 		saved_cppflags="$CPPFLAGS"
   16229  1.3  christos 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   16230  1.3  christos 		for ac_header in gssapi.h gssapi/gssapi.h
   16231  1.3  christos do :
   16232  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16233  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16234  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16235  1.3  christos   cat >>confdefs.h <<_ACEOF
   16236  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16237  1.3  christos _ACEOF
   16238  1.3  christos  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16239  1.3  christos 		     gssapi_hack="#include <$ac_header>"
   16240  1.3  christos fi
   16241  1.1  christos 
   16242  1.3  christos done
   16243  1.1  christos 
   16244  1.1  christos 
   16245  1.3  christos 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16246  1.3  christos 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   16247  1.3  christos 		fi
   16248  1.1  christos 
   16249  1.3  christos 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   16250  1.3  christos do :
   16251  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16252  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16253  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16254  1.3  christos   cat >>confdefs.h <<_ACEOF
   16255  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16256  1.3  christos _ACEOF
   16257  1.3  christos  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   16258  1.3  christos 		     gssapi_krb5_hack="#include <$ac_header>"
   16259  1.3  christos fi
   16260  1.1  christos 
   16261  1.3  christos done
   16262  1.1  christos 
   16263  1.1  christos 
   16264  1.3  christos 		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
   16265  1.3  christos do :
   16266  1.3  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16267  1.3  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16268  1.3  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16269  1.3  christos   cat >>confdefs.h <<_ACEOF
   16270  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16271  1.3  christos _ACEOF
   16272  1.3  christos  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16273  1.3  christos 		    krb5_hack="#include <$ac_header>"
   16274  1.3  christos fi
   16275  1.1  christos 
   16276  1.3  christos done
   16277  1.1  christos 
   16278  1.1  christos 
   16279  1.3  christos 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16280  1.3  christos 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   16281  1.3  christos 		fi
   16282  1.1  christos 
   16283  1.3  christos 		#
   16284  1.3  christos 		# XXXDCL This probably doesn't work right on all systems.
   16285  1.3  christos 		# It will need to be worked on as problems become evident.
   16286  1.3  christos 		#
   16287  1.3  christos 		# Essentially the problems here relate to two different
   16288  1.3  christos 		# areas.  The first area is building with either KTH
   16289  1.3  christos 		# or MIT Kerberos, particularly when both are present on
   16290  1.3  christos 		# the machine.  The other is static versus dynamic linking.
   16291  1.3  christos 		#
   16292  1.3  christos 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   16293  1.3  christos 		# up the works if one implementation ends up trying to
   16294  1.3  christos 		# use the other's krb.  This is unfortunately a situation
   16295  1.3  christos 		# that very easily arises.
   16296  1.3  christos 		#
   16297  1.3  christos 		# Dynamic linking when the dependency information is built
   16298  1.3  christos 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   16299  1.3  christos 		# all such problems go away, but when that setup is not
   16300  1.3  christos 		# present, because either the dynamic libraries lack
   16301  1.3  christos 		# dependencies or static linking is being done, then the
   16302  1.3  christos 		# problems start to show up.
   16303  1.3  christos 		saved_libs="$LIBS"
   16304  1.3  christos 		for TRY_LIBS in \
   16305  1.3  christos 		    "-lgssapi_krb5" \
   16306  1.3  christos 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   16307  1.3  christos 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   16308  1.3  christos 		    "-lgssapi" \
   16309  1.3  christos 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   16310  1.3  christos 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16311  1.3  christos 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16312  1.3  christos 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   16313  1.3  christos 		    "-lgss -lkrb5"
   16314  1.3  christos 		do
   16315  1.3  christos 		    # Note that this does not include $saved_libs, because
   16316  1.3  christos 		    # on FreeBSD machines this configure script has added
   16317  1.3  christos 		    # -L/usr/local/lib to LIBS, which can make the
   16318  1.3  christos 		    # -lgssapi_krb5 test succeed with shared libraries even
   16319  1.3  christos 		    # when you are trying to build with KTH in /usr/lib.
   16320  1.3  christos 		    if test "/usr" = "$use_gssapi"
   16321  1.3  christos 		    then
   16322  1.3  christos 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   16323  1.3  christos 		    else
   16324  1.3  christos 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   16325  1.3  christos 		    fi
   16326  1.3  christos 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   16327  1.3  christos $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   16328  1.3  christos 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16329  1.1  christos /* end confdefs.h.  */
   16330  1.1  christos 
   16331  1.1  christos #include <sys/types.h>
   16332  1.3  christos $gssapi_hack
   16333  1.3  christos $gssapi_krb5_hack
   16334  1.3  christos $krb5_hack
   16335  1.1  christos 
   16336  1.1  christos int
   16337  1.1  christos main ()
   16338  1.1  christos {
   16339  1.3  christos gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   16340  1.3  christos #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   16341  1.3  christos gsskrb5_register_acceptor_identity(NULL);
   16342  1.3  christos #endif
   16343  1.1  christos   ;
   16344  1.1  christos   return 0;
   16345  1.1  christos }
   16346  1.1  christos _ACEOF
   16347  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   16348  1.3  christos   gssapi_linked=yes
   16349  1.1  christos else
   16350  1.3  christos   gssapi_linked=no
   16351  1.1  christos fi
   16352  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   16353  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   16354  1.3  christos 		    case $gssapi_linked in
   16355  1.3  christos 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16356  1.3  christos $as_echo "yes" >&6; }; break ;;
   16357  1.3  christos 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16358  1.3  christos $as_echo "no" >&6; } ;;
   16359  1.3  christos 		    esac
   16360  1.3  christos 		done
   16361  1.3  christos 
   16362  1.3  christos 		CPPFLAGS="$saved_cppflags"
   16363  1.3  christos 
   16364  1.3  christos 		case $gssapi_linked in
   16365  1.3  christos 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   16366  1.3  christos 		esac
   16367  1.3  christos 
   16368  1.3  christos 		#
   16369  1.3  christos 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   16370  1.3  christos 		# but MIT in /usr/local/lib and trying to build with KTH.
   16371  1.3  christos 		# /usr/local/lib can end up earlier on the link lines.
   16372  1.3  christos 		# Like most kludges, this one is not only inelegant it
   16373  1.3  christos 		# is also likely to be the wrong thing to do at least as
   16374  1.3  christos 		# many times as it is the right thing.  Something better
   16375  1.3  christos 		# needs to be done.
   16376  1.3  christos 		#
   16377  1.3  christos 		if test "/usr" = "$use_gssapi" -a \
   16378  1.3  christos 			-f /usr/local/lib/libkrb5.a; then
   16379  1.3  christos 		    FIX_KTH_VS_MIT=yes
   16380  1.3  christos 		fi
   16381  1.3  christos 
   16382  1.3  christos 		case "$FIX_KTH_VS_MIT" in
   16383  1.3  christos 		yes)
   16384  1.3  christos 		    case "$enable_static_linking" in
   16385  1.3  christos 		    yes) gssapi_lib_suffix=".a"  ;;
   16386  1.3  christos 		    *)   gssapi_lib_suffix=".so" ;;
   16387  1.3  christos 		    esac
   16388  1.3  christos 
   16389  1.3  christos 		    for lib in $LIBS; do
   16390  1.3  christos 			case $lib in
   16391  1.3  christos 			-L*)
   16392  1.3  christos 			    ;;
   16393  1.3  christos 			-l*)
   16394  1.3  christos 			    new_lib=`echo $lib |
   16395  1.3  christos 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   16396  1.3  christos 					 -e s%$%$gssapi_lib_suffix%`
   16397  1.3  christos 			    NEW_LIBS="$NEW_LIBS $new_lib"
   16398  1.3  christos 			    ;;
   16399  1.3  christos 			*)
   16400  1.3  christos 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   16401  1.3  christos 			    ;;
   16402  1.3  christos 			esac
   16403  1.3  christos 		    done
   16404  1.3  christos 		    LIBS="$NEW_LIBS"
   16405  1.3  christos 		    ;;
   16406  1.3  christos 		esac
   16407  1.1  christos 
   16408  1.3  christos 		DST_GSSAPI_INC="-I$use_gssapi/include"
   16409  1.3  christos 		DNS_GSSAPI_LIBS="$LIBS"
   16410  1.1  christos 
   16411  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   16412  1.3  christos $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   16413  1.3  christos 		LIBS="$saved_libs"
   16414  1.3  christos 		;;
   16415  1.3  christos esac
   16416  1.1  christos 
   16417  1.1  christos 
   16418  1.1  christos 
   16419  1.1  christos 
   16420  1.1  christos 
   16421  1.1  christos 
   16422  1.1  christos 
   16423  1.1  christos 
   16424  1.1  christos 
   16425  1.3  christos DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   16426  1.1  christos 
   16427  1.3  christos #
   16428  1.3  christos # Applications linking with libdns also need to link with these libraries.
   16429  1.3  christos #
   16430  1.1  christos 
   16431  1.1  christos 
   16432  1.1  christos 
   16433  1.3  christos #
   16434  1.3  christos # was --with-lmdb specified?
   16435  1.3  christos #
   16436  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   16437  1.3  christos $as_echo_n "checking for lmdb library... " >&6; }
   16438  1.1  christos 
   16439  1.3  christos # Check whether --with-lmdb was given.
   16440  1.3  christos if test "${with_lmdb+set}" = set; then :
   16441  1.3  christos   withval=$with_lmdb; use_lmdb="$withval"
   16442  1.3  christos else
   16443  1.3  christos   use_lmdb="auto"
   16444  1.3  christos fi
   16445  1.1  christos 
   16446  1.1  christos 
   16447  1.3  christos have_lmdb=""
   16448  1.3  christos case "$use_lmdb" in
   16449  1.3  christos 	no)
   16450  1.3  christos 		lmdb_libs=""
   16451  1.3  christos 		;;
   16452  1.3  christos 	auto|yes)
   16453  1.3  christos 		for d in /usr /usr/local /opt/local
   16454  1.3  christos 		do
   16455  1.3  christos 			if test -f "${d}/include/lmdb.h"
   16456  1.3  christos 			then
   16457  1.3  christos 				if test ${d} != /usr
   16458  1.3  christos 				then
   16459  1.3  christos 					lmdb_cflags="-I ${d}/include"
   16460  1.3  christos 					LIBS="$LIBS -L${d}/lib"
   16461  1.3  christos 				fi
   16462  1.3  christos 				have_lmdb="yes"
   16463  1.3  christos 			fi
   16464  1.3  christos 		done
   16465  1.3  christos 		;;
   16466  1.3  christos 	*)
   16467  1.3  christos 		if test -f "${use_lmdb}/include/lmdb.h"
   16468  1.3  christos 		then
   16469  1.3  christos 			lmdb_cflags="-I${use_lmdb}/include"
   16470  1.3  christos 			LIBS="$LIBS -L${use_lmdb}/lib"
   16471  1.3  christos 			have_lmdb="yes"
   16472  1.3  christos 		else
   16473  1.3  christos 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   16474  1.3  christos 		fi
   16475  1.1  christos 		;;
   16476  1.1  christos esac
   16477  1.1  christos 
   16478  1.3  christos if test "X${have_lmdb}" != "X"
   16479  1.3  christos then
   16480  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16481  1.1  christos $as_echo "yes" >&6; }
   16482  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   16483  1.3  christos $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   16484  1.3  christos if ${ac_cv_search_mdb_env_create+:} false; then :
   16485  1.3  christos   $as_echo_n "(cached) " >&6
   16486  1.1  christos else
   16487  1.3  christos   ac_func_search_save_LIBS=$LIBS
   16488  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16489  1.1  christos /* end confdefs.h.  */
   16490  1.1  christos 
   16491  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16492  1.3  christos    Use char because int might match the return type of a GCC
   16493  1.3  christos    builtin and then its argument prototype would still apply.  */
   16494  1.3  christos #ifdef __cplusplus
   16495  1.3  christos extern "C"
   16496  1.3  christos #endif
   16497  1.3  christos char mdb_env_create ();
   16498  1.1  christos int
   16499  1.1  christos main ()
   16500  1.1  christos {
   16501  1.3  christos return mdb_env_create ();
   16502  1.1  christos   ;
   16503  1.1  christos   return 0;
   16504  1.1  christos }
   16505  1.1  christos _ACEOF
   16506  1.3  christos for ac_lib in '' lmdb; do
   16507  1.3  christos   if test -z "$ac_lib"; then
   16508  1.3  christos     ac_res="none required"
   16509  1.3  christos   else
   16510  1.3  christos     ac_res=-l$ac_lib
   16511  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16512  1.3  christos   fi
   16513  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   16514  1.3  christos   ac_cv_search_mdb_env_create=$ac_res
   16515  1.3  christos fi
   16516  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16517  1.3  christos     conftest$ac_exeext
   16518  1.3  christos   if ${ac_cv_search_mdb_env_create+:} false; then :
   16519  1.3  christos   break
   16520  1.1  christos fi
   16521  1.3  christos done
   16522  1.3  christos if ${ac_cv_search_mdb_env_create+:} false; then :
   16523  1.1  christos 
   16524  1.3  christos else
   16525  1.3  christos   ac_cv_search_mdb_env_create=no
   16526  1.3  christos fi
   16527  1.3  christos rm conftest.$ac_ext
   16528  1.3  christos LIBS=$ac_func_search_save_LIBS
   16529  1.3  christos fi
   16530  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   16531  1.3  christos $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   16532  1.3  christos ac_res=$ac_cv_search_mdb_env_create
   16533  1.3  christos if test "$ac_res" != no; then :
   16534  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16535  1.1  christos 
   16536  1.3  christos else
   16537  1.3  christos   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   16538  1.3  christos 			have_lmdb=""
   16539  1.3  christos fi
   16540  1.1  christos 
   16541  1.3  christos elif test "X$use_lmdb" = Xyes
   16542  1.3  christos then
   16543  1.3  christos 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   16544  1.1  christos else
   16545  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16546  1.1  christos $as_echo "no" >&6; }
   16547  1.1  christos fi
   16548  1.1  christos 
   16549  1.3  christos NZD_TOOLS=""
   16550  1.3  christos NZDSRCS=
   16551  1.3  christos NZDTARGETS=
   16552  1.3  christos if test "X${have_lmdb}" != "X"
   16553  1.3  christos then
   16554  1.3  christos 	CFLAGS="$CFLAGS $lmdb_cflags"
   16555  1.1  christos 
   16556  1.3  christos $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   16557  1.1  christos 
   16558  1.3  christos 	NZD_TOOLS="nzd"
   16559  1.3  christos 	NZDSRCS='${NZDSRCS}'
   16560  1.3  christos 	NZDTARGETS='${NZDTARGETS}'
   16561  1.1  christos fi
   16562  1.1  christos 
   16563  1.1  christos 
   16564  1.1  christos 
   16565  1.1  christos 
   16566  1.3  christos #
   16567  1.3  christos # was --with-libxml2 specified?
   16568  1.3  christos #
   16569  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
   16570  1.3  christos $as_echo_n "checking for libxml2 library... " >&6; }
   16571  1.3  christos 
   16572  1.3  christos # Check whether --with-libxml2 was given.
   16573  1.3  christos if test "${with_libxml2+set}" = set; then :
   16574  1.3  christos   withval=$with_libxml2; use_libxml2="$withval"
   16575  1.1  christos else
   16576  1.3  christos   use_libxml2="auto"
   16577  1.3  christos fi
   16578  1.3  christos 
   16579  1.3  christos 
   16580  1.3  christos case "$use_libxml2" in
   16581  1.3  christos 	no)
   16582  1.3  christos 		DST_LIBXML2_INC=""
   16583  1.3  christos 		;;
   16584  1.3  christos 	auto|yes)
   16585  1.3  christos 		case X`(xml2-config --version) 2>/dev/null` in
   16586  1.3  christos 		X2.[6789].*)
   16587  1.3  christos 			libxml2_libs=`xml2-config --libs`
   16588  1.3  christos 			libxml2_cflags=`xml2-config --cflags`
   16589  1.3  christos 			;;
   16590  1.3  christos 		*)
   16591  1.3  christos 			if test "yes" = "$use_libxml2" ; then
   16592  1.3  christos 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16593  1.1  christos $as_echo "no" >&6; }
   16594  1.3  christos 				as_fn_error $? "required libxml2 version not available" "$LINENO" 5
   16595  1.3  christos 			else
   16596  1.3  christos 				libxml2_libs=
   16597  1.3  christos 				libxml2_cflags=
   16598  1.3  christos 			fi
   16599  1.3  christos 			;;
   16600  1.3  christos 		esac
   16601  1.1  christos 		;;
   16602  1.3  christos 	*)
   16603  1.3  christos 		if test -f "$use_libxml2/bin/xml2-config" ; then
   16604  1.3  christos 			libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
   16605  1.3  christos 			libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
   16606  1.3  christos 		fi
   16607  1.1  christos 		;;
   16608  1.1  christos esac
   16609  1.1  christos 
   16610  1.3  christos if test "X$libxml2_libs" != "X"
   16611  1.3  christos then
   16612  1.3  christos 	CFLAGS="$CFLAGS $libxml2_cflags"
   16613  1.3  christos 	LIBS="$LIBS $libxml2_libs"
   16614  1.3  christos 	#
   16615  1.3  christos 	# Sanity check xml2-config output.
   16616  1.3  christos 	#
   16617  1.3  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16618  1.1  christos /* end confdefs.h.  */
   16619  1.3  christos #include <libxml/xmlwriter.h>
   16620  1.1  christos int
   16621  1.1  christos main ()
   16622  1.1  christos {
   16623  1.3  christos return(xmlTextWriterStartElement(NULL, NULL));
   16624  1.1  christos   ;
   16625  1.1  christos   return 0;
   16626  1.1  christos }
   16627  1.1  christos _ACEOF
   16628  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   16629  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16630  1.1  christos $as_echo "yes" >&6; }
   16631  1.3  christos else
   16632  1.3  christos   as_fn_error $? "xml2-config returns badness" "$LINENO" 5
   16633  1.3  christos fi
   16634  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16635  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   16636  1.3  christos 
   16637  1.3  christos $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   16638  1.1  christos 
   16639  1.3  christos 	XMLSTATS=1
   16640  1.1  christos else
   16641  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16642  1.1  christos $as_echo "no" >&6; }
   16643  1.1  christos fi
   16644  1.1  christos 
   16645  1.1  christos 
   16646  1.1  christos #
   16647  1.3  christos # was --with-libjson specified?
   16648  1.1  christos #
   16649  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
   16650  1.3  christos $as_echo_n "checking for json library... " >&6; }
   16651  1.1  christos 
   16652  1.3  christos # Check whether --with-libjson was given.
   16653  1.3  christos if test "${with_libjson+set}" = set; then :
   16654  1.3  christos   withval=$with_libjson; use_libjson="$withval"
   16655  1.1  christos else
   16656  1.3  christos   use_libjson="auto"
   16657  1.3  christos fi
   16658  1.1  christos 
   16659  1.1  christos 
   16660  1.3  christos have_libjson=""
   16661  1.3  christos have_libjson_c=""
   16662  1.3  christos case "$use_libjson" in
   16663  1.3  christos 	no)
   16664  1.3  christos 		libjson_libs=""
   16665  1.3  christos 		;;
   16666  1.3  christos 	auto|yes)
   16667  1.3  christos 		for d in /usr /usr/local /opt/local
   16668  1.3  christos 		do
   16669  1.3  christos 			if test -f "${d}/include/json/json.h"
   16670  1.3  christos 			then
   16671  1.3  christos 				if test ${d} != /usr
   16672  1.3  christos 				then
   16673  1.3  christos 					libjson_cflags="-I ${d}/include"
   16674  1.3  christos 					LIBS="$LIBS -L${d}/lib"
   16675  1.3  christos 				fi
   16676  1.3  christos 				have_libjson="yes"
   16677  1.3  christos 			elif test -f "${d}/include/json-c/json.h"
   16678  1.3  christos 			then
   16679  1.3  christos 				if test ${d} != /usr
   16680  1.3  christos 				then
   16681  1.3  christos 					libjson_cflags="-I ${d}/include"
   16682  1.3  christos 					LIBS="$LIBS -L${d}/lib"
   16683  1.3  christos 				fi
   16684  1.3  christos 				have_libjson="yes"
   16685  1.3  christos 				have_libjson_c="yes"
   16686  1.3  christos 			fi
   16687  1.3  christos 		done
   16688  1.3  christos 		;;
   16689  1.3  christos 	*)
   16690  1.3  christos 		if test -f "${use_libjson}/include/json/json.h"
   16691  1.3  christos 		then
   16692  1.3  christos 			libjson_cflags="-I${use_libjson}/include"
   16693  1.3  christos 			LIBS="$LIBS -L${use_libjson}/lib"
   16694  1.3  christos 			have_libjson="yes"
   16695  1.3  christos 		elif test -f "${use_libjson}/include/json-c/json.h"
   16696  1.3  christos 		then
   16697  1.3  christos 			libjson_cflags="-I${use_libjson}/include"
   16698  1.3  christos 			LIBS="$LIBS -L${use_libjson}/lib"
   16699  1.3  christos 			have_libjson="yes"
   16700  1.3  christos 			have_libjson_c="yes"
   16701  1.3  christos 		else
   16702  1.3  christos 			as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
   16703  1.3  christos 		fi
   16704  1.3  christos 		;;
   16705  1.3  christos esac
   16706  1.1  christos 
   16707  1.3  christos if test "X${have_libjson}" != "X"
   16708  1.3  christos then
   16709  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16710  1.3  christos $as_echo "yes" >&6; }
   16711  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
   16712  1.3  christos $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
   16713  1.3  christos if ${ac_cv_search_json_object_new_int64+:} false; then :
   16714  1.3  christos   $as_echo_n "(cached) " >&6
   16715  1.1  christos else
   16716  1.3  christos   ac_func_search_save_LIBS=$LIBS
   16717  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16718  1.1  christos /* end confdefs.h.  */
   16719  1.1  christos 
   16720  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16721  1.3  christos    Use char because int might match the return type of a GCC
   16722  1.3  christos    builtin and then its argument prototype would still apply.  */
   16723  1.3  christos #ifdef __cplusplus
   16724  1.3  christos extern "C"
   16725  1.3  christos #endif
   16726  1.3  christos char json_object_new_int64 ();
   16727  1.1  christos int
   16728  1.1  christos main ()
   16729  1.1  christos {
   16730  1.3  christos return json_object_new_int64 ();
   16731  1.1  christos   ;
   16732  1.1  christos   return 0;
   16733  1.1  christos }
   16734  1.1  christos _ACEOF
   16735  1.3  christos for ac_lib in '' json json-c; do
   16736  1.3  christos   if test -z "$ac_lib"; then
   16737  1.3  christos     ac_res="none required"
   16738  1.3  christos   else
   16739  1.3  christos     ac_res=-l$ac_lib
   16740  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16741  1.3  christos   fi
   16742  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   16743  1.3  christos   ac_cv_search_json_object_new_int64=$ac_res
   16744  1.3  christos fi
   16745  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16746  1.3  christos     conftest$ac_exeext
   16747  1.3  christos   if ${ac_cv_search_json_object_new_int64+:} false; then :
   16748  1.3  christos   break
   16749  1.3  christos fi
   16750  1.3  christos done
   16751  1.3  christos if ${ac_cv_search_json_object_new_int64+:} false; then :
   16752  1.1  christos 
   16753  1.1  christos else
   16754  1.3  christos   ac_cv_search_json_object_new_int64=no
   16755  1.1  christos fi
   16756  1.3  christos rm conftest.$ac_ext
   16757  1.3  christos LIBS=$ac_func_search_save_LIBS
   16758  1.1  christos fi
   16759  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
   16760  1.3  christos $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
   16761  1.3  christos ac_res=$ac_cv_search_json_object_new_int64
   16762  1.3  christos if test "$ac_res" != no; then :
   16763  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16764  1.1  christos 
   16765  1.1  christos else
   16766  1.3  christos   as_fn_error $? "found libjson include but not library." "$LINENO" 5
   16767  1.3  christos 			have_libjson=""
   16768  1.1  christos fi
   16769  1.1  christos 
   16770  1.3  christos elif test "X$use_libjson" = Xyes
   16771  1.3  christos then
   16772  1.3  christos 	as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
   16773  1.3  christos else
   16774  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16775  1.3  christos $as_echo "no" >&6; }
   16776  1.1  christos fi
   16777  1.1  christos 
   16778  1.3  christos if test "X${have_libjson}" != "X"
   16779  1.3  christos then
   16780  1.3  christos 	CFLAGS="$CFLAGS $libjson_cflags"
   16781  1.1  christos 
   16782  1.3  christos $as_echo "#define HAVE_JSON 1" >>confdefs.h
   16783  1.1  christos 
   16784  1.3  christos 	if test "X${have_libjson_c}" = Xyes
   16785  1.3  christos 	then
   16786  1.1  christos 
   16787  1.3  christos $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   16788  1.1  christos 
   16789  1.3  christos 	fi
   16790  1.3  christos 	JSONSTATS=1
   16791  1.1  christos fi
   16792  1.1  christos 
   16793  1.1  christos 
   16794  1.1  christos #
   16795  1.3  christos # was --with-zlib specified?
   16796  1.1  christos #
   16797  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
   16798  1.3  christos $as_echo_n "checking for zlib library... " >&6; }
   16799  1.1  christos 
   16800  1.3  christos # Check whether --with-zlib was given.
   16801  1.3  christos if test "${with_zlib+set}" = set; then :
   16802  1.3  christos   withval=$with_zlib; with_zlib="$withval"
   16803  1.3  christos else
   16804  1.3  christos   with_zlib="auto"
   16805  1.1  christos fi
   16806  1.1  christos 
   16807  1.1  christos 
   16808  1.3  christos have_zlib=""
   16809  1.3  christos case "$with_zlib" in
   16810  1.3  christos 	no)
   16811  1.3  christos 		zlib_libs=""
   16812  1.3  christos 		;;
   16813  1.3  christos 	auto|yes)
   16814  1.3  christos 		for d in /usr /usr/local /opt/local
   16815  1.3  christos 		do
   16816  1.3  christos 			if test -f "${d}/include/zlib.h"
   16817  1.3  christos 			then
   16818  1.3  christos 				if test ${d} != /usr
   16819  1.3  christos 				then
   16820  1.3  christos 					zlib_cflags="-I ${d}/include"
   16821  1.3  christos 					LIBS="$LIBS -L${d}/lib"
   16822  1.3  christos 				fi
   16823  1.3  christos 				have_zlib="yes"
   16824  1.3  christos 			fi
   16825  1.3  christos 		done
   16826  1.3  christos 		;;
   16827  1.3  christos 	*)
   16828  1.3  christos 		if test -f "${with_zlib}/include/zlib.h"
   16829  1.3  christos 		then
   16830  1.3  christos 			zlib_cflags="-I${with_zlib}/include"
   16831  1.3  christos 			LIBS="$LIBS -L${with_zlib}/lib"
   16832  1.3  christos 			have_zlib="yes"
   16833  1.3  christos 		else
   16834  1.3  christos 			as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
   16835  1.3  christos 		fi
   16836  1.3  christos 		;;
   16837  1.1  christos esac
   16838  1.1  christos 
   16839  1.3  christos if test "X${have_zlib}" != "X"
   16840  1.3  christos then
   16841  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16842  1.3  christos $as_echo "yes" >&6; }
   16843  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
   16844  1.3  christos $as_echo_n "checking for library containing deflate... " >&6; }
   16845  1.3  christos if ${ac_cv_search_deflate+:} false; then :
   16846  1.3  christos   $as_echo_n "(cached) " >&6
   16847  1.3  christos else
   16848  1.3  christos   ac_func_search_save_LIBS=$LIBS
   16849  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16850  1.1  christos /* end confdefs.h.  */
   16851  1.1  christos 
   16852  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16853  1.3  christos    Use char because int might match the return type of a GCC
   16854  1.3  christos    builtin and then its argument prototype would still apply.  */
   16855  1.3  christos #ifdef __cplusplus
   16856  1.3  christos extern "C"
   16857  1.1  christos #endif
   16858  1.3  christos char deflate ();
   16859  1.1  christos int
   16860  1.1  christos main ()
   16861  1.1  christos {
   16862  1.3  christos return deflate ();
   16863  1.1  christos   ;
   16864  1.1  christos   return 0;
   16865  1.1  christos }
   16866  1.1  christos _ACEOF
   16867  1.3  christos for ac_lib in '' z; do
   16868  1.3  christos   if test -z "$ac_lib"; then
   16869  1.3  christos     ac_res="none required"
   16870  1.3  christos   else
   16871  1.3  christos     ac_res=-l$ac_lib
   16872  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16873  1.3  christos   fi
   16874  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   16875  1.3  christos   ac_cv_search_deflate=$ac_res
   16876  1.1  christos fi
   16877  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   16878  1.3  christos     conftest$ac_exeext
   16879  1.3  christos   if ${ac_cv_search_deflate+:} false; then :
   16880  1.3  christos   break
   16881  1.3  christos fi
   16882  1.3  christos done
   16883  1.3  christos if ${ac_cv_search_deflate+:} false; then :
   16884  1.1  christos 
   16885  1.1  christos else
   16886  1.3  christos   ac_cv_search_deflate=no
   16887  1.1  christos fi
   16888  1.3  christos rm conftest.$ac_ext
   16889  1.3  christos LIBS=$ac_func_search_save_LIBS
   16890  1.1  christos fi
   16891  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
   16892  1.3  christos $as_echo "$ac_cv_search_deflate" >&6; }
   16893  1.3  christos ac_res=$ac_cv_search_deflate
   16894  1.3  christos if test "$ac_res" != no; then :
   16895  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16896  1.1  christos 
   16897  1.1  christos else
   16898  1.3  christos   as_fn_error $? "found zlib include but not library." "$LINENO" 5
   16899  1.3  christos 			have_zlib=""
   16900  1.1  christos fi
   16901  1.1  christos 
   16902  1.3  christos elif test "X$with_zlib" = Xyes
   16903  1.3  christos then
   16904  1.3  christos 	as_fn_error $? "include/zlib.h not found." "$LINENO" 5
   16905  1.1  christos else
   16906  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16907  1.3  christos $as_echo "no" >&6; }
   16908  1.1  christos fi
   16909  1.1  christos 
   16910  1.3  christos ZLIB=
   16911  1.3  christos if test "X${have_zlib}" != "X"
   16912  1.3  christos then
   16913  1.3  christos 	CFLAGS="$CFLAGS $zlib_cflags"
   16914  1.1  christos 
   16915  1.3  christos $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   16916  1.1  christos 
   16917  1.3  christos 	ZLIB=1
   16918  1.1  christos fi
   16919  1.1  christos 
   16920  1.1  christos 
   16921  1.1  christos 
   16922  1.3  christos #
   16923  1.3  christos # In solaris 10, SMF can manage named service
   16924  1.3  christos #
   16925  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   16926  1.3  christos $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   16927  1.3  christos if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   16928  1.3  christos   $as_echo_n "(cached) " >&6
   16929  1.1  christos else
   16930  1.3  christos   ac_check_lib_save_LIBS=$LIBS
   16931  1.3  christos LIBS="-lscf  $LIBS"
   16932  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16933  1.3  christos /* end confdefs.h.  */
   16934  1.1  christos 
   16935  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16936  1.3  christos    Use char because int might match the return type of a GCC
   16937  1.3  christos    builtin and then its argument prototype would still apply.  */
   16938  1.3  christos #ifdef __cplusplus
   16939  1.3  christos extern "C"
   16940  1.3  christos #endif
   16941  1.3  christos char smf_enable_instance ();
   16942  1.3  christos int
   16943  1.3  christos main ()
   16944  1.3  christos {
   16945  1.3  christos return smf_enable_instance ();
   16946  1.3  christos   ;
   16947  1.3  christos   return 0;
   16948  1.3  christos }
   16949  1.1  christos _ACEOF
   16950  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   16951  1.3  christos   ac_cv_lib_scf_smf_enable_instance=yes
   16952  1.3  christos else
   16953  1.3  christos   ac_cv_lib_scf_smf_enable_instance=no
   16954  1.1  christos fi
   16955  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   16956  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   16957  1.3  christos LIBS=$ac_check_lib_save_LIBS
   16958  1.1  christos fi
   16959  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   16960  1.3  christos $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   16961  1.3  christos if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   16962  1.1  christos   cat >>confdefs.h <<_ACEOF
   16963  1.3  christos #define HAVE_LIBSCF 1
   16964  1.1  christos _ACEOF
   16965  1.1  christos 
   16966  1.3  christos   LIBS="-lscf $LIBS"
   16967  1.3  christos 
   16968  1.1  christos fi
   16969  1.1  christos 
   16970  1.1  christos 
   16971  1.3  christos #
   16972  1.3  christos # Large File
   16973  1.3  christos #
   16974  1.3  christos # Check whether --enable-largefile was given.
   16975  1.3  christos if test "${enable_largefile+set}" = set; then :
   16976  1.3  christos   enableval=$enable_largefile; want_largefile="yes"
   16977  1.3  christos else
   16978  1.3  christos   want_largefile="no"
   16979  1.1  christos fi
   16980  1.1  christos 
   16981  1.3  christos case $want_largefile in
   16982  1.3  christos 	yes)
   16983  1.3  christos 		ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
   16984  1.3  christos 		;;
   16985  1.3  christos 	*)
   16986  1.3  christos 		;;
   16987  1.3  christos esac
   16988  1.3  christos 
   16989  1.3  christos #
   16990  1.3  christos # Additional compiler settings.
   16991  1.3  christos #
   16992  1.3  christos MKDEPCC="$CC"
   16993  1.3  christos MKDEPCFLAGS="-M"
   16994  1.1  christos 
   16995  1.3  christos if test "X$GCC" = "Xyes"; then
   16996  1.3  christos 	STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
   16997  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
   16998  1.3  christos $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
   16999  1.3  christos 	SAVE_CFLAGS="$CFLAGS"
   17000  1.3  christos 	CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
   17001  1.3  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17002  1.1  christos /* end confdefs.h.  */
   17003  1.1  christos 
   17004  1.1  christos int
   17005  1.1  christos main ()
   17006  1.1  christos {
   17007  1.3  christos 
   17008  1.1  christos   ;
   17009  1.1  christos   return 0;
   17010  1.1  christos }
   17011  1.1  christos _ACEOF
   17012  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   17013  1.3  christos   FNOSTRICTALIASING=yes
   17014  1.1  christos else
   17015  1.3  christos   FNOSTRICTALIASING=no
   17016  1.1  christos fi
   17017  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17018  1.3  christos 	CFLAGS="$SAVE_CFLAGS"
   17019  1.3  christos 	if test "yes" = "$FNOSTRICTALIASING"; then
   17020  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17021  1.3  christos $as_echo "yes" >&6; }
   17022  1.3  christos 		STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   17023  1.3  christos 	else
   17024  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17025  1.3  christos $as_echo "no" >&6; }
   17026  1.3  christos 	fi
   17027  1.3  christos 	#
   17028  1.3  christos 	# turn off delete null pointer checks
   17029  1.3  christos 	#
   17030  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
   17031  1.3  christos $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
   17032  1.3  christos 	SAVE_CFLAGS="$CFLAGS"
   17033  1.3  christos 	CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
   17034  1.3  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17035  1.1  christos /* end confdefs.h.  */
   17036  1.1  christos 
   17037  1.3  christos int
   17038  1.3  christos main ()
   17039  1.3  christos {
   17040  1.1  christos 
   17041  1.3  christos   ;
   17042  1.3  christos   return 0;
   17043  1.1  christos }
   17044  1.1  christos _ACEOF
   17045  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   17046  1.3  christos   FNODELETENULLPOINTERCHECKS=yes
   17047  1.3  christos else
   17048  1.3  christos   FNODELETENULLPOINTERCHECKS=no
   17049  1.3  christos fi
   17050  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17051  1.3  christos 	CFLAGS="$SAVE_CFLAGS"
   17052  1.3  christos 	if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
   17053  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17054  1.1  christos $as_echo "yes" >&6; }
   17055  1.3  christos 		STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   17056  1.3  christos 	else
   17057  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17058  1.3  christos $as_echo "no" >&6; }
   17059  1.3  christos 	fi
   17060  1.3  christos 	if test "X$enable_warn_shadow" = Xyes; then
   17061  1.3  christos 		STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   17062  1.3  christos 	fi
   17063  1.3  christos 	if test "X$enable_warn_error" = Xyes; then
   17064  1.3  christos 		STD_CWARNINGS="$STD_CWARNINGS -Werror"
   17065  1.3  christos 	fi
   17066  1.1  christos else
   17067  1.3  christos 	case $host in
   17068  1.3  christos 	*-solaris*)
   17069  1.3  christos 		MKDEPCFLAGS="-xM"
   17070  1.3  christos 		;;
   17071  1.1  christos 	esac
   17072  1.1  christos fi
   17073  1.1  christos 
   17074  1.1  christos 
   17075  1.1  christos 
   17076  1.1  christos 
   17077  1.1  christos 
   17078  1.1  christos #
   17079  1.3  christos # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   17080  1.3  christos #
   17081  1.3  christos # AC_CHECK_LIB(xnet, socket, ,
   17082  1.3  christos #    AC_CHECK_LIB(socket, socket)
   17083  1.3  christos # )
   17084  1.3  christos #
   17085  1.3  christos # Use this for now, instead:
   17086  1.3  christos #
   17087  1.3  christos case "$host" in
   17088  1.3  christos 	*-linux*)
   17089  1.1  christos 		;;
   17090  1.3  christos 	*)
   17091  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   17092  1.3  christos $as_echo_n "checking for socket in -lsocket... " >&6; }
   17093  1.3  christos if ${ac_cv_lib_socket_socket+:} false; then :
   17094  1.3  christos   $as_echo_n "(cached) " >&6
   17095  1.3  christos else
   17096  1.3  christos   ac_check_lib_save_LIBS=$LIBS
   17097  1.3  christos LIBS="-lsocket  $LIBS"
   17098  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17099  1.3  christos /* end confdefs.h.  */
   17100  1.1  christos 
   17101  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17102  1.3  christos    Use char because int might match the return type of a GCC
   17103  1.3  christos    builtin and then its argument prototype would still apply.  */
   17104  1.3  christos #ifdef __cplusplus
   17105  1.3  christos extern "C"
   17106  1.3  christos #endif
   17107  1.3  christos char socket ();
   17108  1.3  christos int
   17109  1.3  christos main ()
   17110  1.3  christos {
   17111  1.3  christos return socket ();
   17112  1.3  christos   ;
   17113  1.3  christos   return 0;
   17114  1.3  christos }
   17115  1.1  christos _ACEOF
   17116  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   17117  1.3  christos   ac_cv_lib_socket_socket=yes
   17118  1.3  christos else
   17119  1.3  christos   ac_cv_lib_socket_socket=no
   17120  1.3  christos fi
   17121  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   17122  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   17123  1.3  christos LIBS=$ac_check_lib_save_LIBS
   17124  1.1  christos fi
   17125  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   17126  1.3  christos $as_echo "$ac_cv_lib_socket_socket" >&6; }
   17127  1.3  christos if test "x$ac_cv_lib_socket_socket" = xyes; then :
   17128  1.1  christos   cat >>confdefs.h <<_ACEOF
   17129  1.3  christos #define HAVE_LIBSOCKET 1
   17130  1.1  christos _ACEOF
   17131  1.1  christos 
   17132  1.3  christos   LIBS="-lsocket $LIBS"
   17133  1.1  christos 
   17134  1.1  christos fi
   17135  1.1  christos 
   17136  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   17137  1.3  christos $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   17138  1.3  christos if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   17139  1.1  christos   $as_echo_n "(cached) " >&6
   17140  1.1  christos else
   17141  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   17142  1.3  christos LIBS="-lnsl  $LIBS"
   17143  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17144  1.1  christos /* end confdefs.h.  */
   17145  1.1  christos 
   17146  1.1  christos /* Override any GCC internal prototype to avoid an error.
   17147  1.1  christos    Use char because int might match the return type of a GCC
   17148  1.1  christos    builtin and then its argument prototype would still apply.  */
   17149  1.1  christos #ifdef __cplusplus
   17150  1.1  christos extern "C"
   17151  1.1  christos #endif
   17152  1.3  christos char inet_addr ();
   17153  1.1  christos int
   17154  1.1  christos main ()
   17155  1.1  christos {
   17156  1.3  christos return inet_addr ();
   17157  1.1  christos   ;
   17158  1.1  christos   return 0;
   17159  1.1  christos }
   17160  1.1  christos _ACEOF
   17161  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   17162  1.3  christos   ac_cv_lib_nsl_inet_addr=yes
   17163  1.1  christos else
   17164  1.3  christos   ac_cv_lib_nsl_inet_addr=no
   17165  1.1  christos fi
   17166  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   17167  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   17168  1.1  christos LIBS=$ac_check_lib_save_LIBS
   17169  1.1  christos fi
   17170  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   17171  1.3  christos $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   17172  1.3  christos if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   17173  1.1  christos   cat >>confdefs.h <<_ACEOF
   17174  1.3  christos #define HAVE_LIBNSL 1
   17175  1.1  christos _ACEOF
   17176  1.1  christos 
   17177  1.3  christos   LIBS="-lnsl $LIBS"
   17178  1.1  christos 
   17179  1.1  christos fi
   17180  1.1  christos 
   17181  1.1  christos 		;;
   17182  1.1  christos esac
   17183  1.1  christos 
   17184  1.3  christos #
   17185  1.3  christos # Work around Solaris's select() limitations.
   17186  1.3  christos #
   17187  1.1  christos case "$host" in
   17188  1.3  christos 	*-solaris2.[89]|*-solaris2.1?)
   17189  1.1  christos 
   17190  1.3  christos $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   17191  1.1  christos 
   17192  1.1  christos 	;;
   17193  1.1  christos esac
   17194  1.1  christos 
   17195  1.1  christos #
   17196  1.3  christos # Purify support
   17197  1.1  christos #
   17198  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   17199  1.3  christos $as_echo_n "checking whether to use purify... " >&6; }
   17200  1.1  christos 
   17201  1.3  christos # Check whether --with-purify was given.
   17202  1.3  christos if test "${with_purify+set}" = set; then :
   17203  1.3  christos   withval=$with_purify; use_purify="$withval"
   17204  1.3  christos else
   17205  1.3  christos   use_purify="no"
   17206  1.1  christos fi
   17207  1.1  christos 
   17208  1.1  christos 
   17209  1.3  christos case "$use_purify" in
   17210  1.3  christos 	no)
   17211  1.3  christos 		;;
   17212  1.3  christos 	yes)
   17213  1.3  christos 		# Extract the first word of "purify", so it can be a program name with args.
   17214  1.3  christos set dummy purify; ac_word=$2
   17215  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17216  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   17217  1.3  christos if ${ac_cv_path_purify_path+:} false; then :
   17218  1.3  christos   $as_echo_n "(cached) " >&6
   17219  1.1  christos else
   17220  1.3  christos   case $purify_path in
   17221  1.3  christos   [\\/]* | ?:[\\/]*)
   17222  1.3  christos   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   17223  1.3  christos   ;;
   17224  1.3  christos   *)
   17225  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17226  1.3  christos for as_dir in $PATH
   17227  1.3  christos do
   17228  1.3  christos   IFS=$as_save_IFS
   17229  1.3  christos   test -z "$as_dir" && as_dir=.
   17230  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   17231  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17232  1.3  christos     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   17233  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17234  1.3  christos     break 2
   17235  1.3  christos   fi
   17236  1.3  christos done
   17237  1.3  christos   done
   17238  1.3  christos IFS=$as_save_IFS
   17239  1.1  christos 
   17240  1.3  christos   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   17241  1.3  christos   ;;
   17242  1.3  christos esac
   17243  1.1  christos fi
   17244  1.3  christos purify_path=$ac_cv_path_purify_path
   17245  1.3  christos if test -n "$purify_path"; then
   17246  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17247  1.3  christos $as_echo "$purify_path" >&6; }
   17248  1.1  christos else
   17249  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17250  1.1  christos $as_echo "no" >&6; }
   17251  1.1  christos fi
   17252  1.1  christos 
   17253  1.1  christos 
   17254  1.3  christos 		;;
   17255  1.3  christos 	*)
   17256  1.3  christos 		purify_path="$use_purify"
   17257  1.3  christos 		;;
   17258  1.3  christos esac
   17259  1.1  christos 
   17260  1.3  christos case "$use_purify" in
   17261  1.3  christos 	no)
   17262  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17263  1.1  christos $as_echo "no" >&6; }
   17264  1.3  christos 		PURIFY=""
   17265  1.3  christos 		;;
   17266  1.3  christos 	*)
   17267  1.3  christos 		if test -f "$purify_path" || test purify = "$purify_path"; then
   17268  1.3  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17269  1.3  christos $as_echo "$purify_path" >&6; }
   17270  1.3  christos 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   17271  1.3  christos 			PURIFY="$purify_path $PURIFYFLAGS"
   17272  1.3  christos 		else
   17273  1.3  christos 			as_fn_error $? "$purify_path not found.
   17274  1.1  christos 
   17275  1.3  christos Please choose the proper path with the following command:
   17276  1.1  christos 
   17277  1.3  christos     configure --with-purify=PATH
   17278  1.3  christos " "$LINENO" 5
   17279  1.3  christos 		fi
   17280  1.3  christos 		;;
   17281  1.3  christos esac
   17282  1.1  christos 
   17283  1.1  christos 
   17284  1.1  christos 
   17285  1.3  christos #
   17286  1.3  christos # Google/Great Performance Tools CPU Profiler
   17287  1.3  christos #
   17288  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   17289  1.3  christos $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   17290  1.1  christos 
   17291  1.3  christos # Check whether --with-gperftools-profiler was given.
   17292  1.3  christos if test "${with_gperftools_profiler+set}" = set; then :
   17293  1.3  christos   withval=$with_gperftools_profiler; use_profiler="$withval"
   17294  1.1  christos else
   17295  1.3  christos   use_profiler="no"
   17296  1.1  christos fi
   17297  1.1  christos 
   17298  1.1  christos 
   17299  1.3  christos case $use_profiler in
   17300  1.3  christos 	yes)
   17301  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17302  1.3  christos $as_echo "yes" >&6; }
   17303  1.1  christos 
   17304  1.3  christos $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   17305  1.1  christos 
   17306  1.3  christos 		LIBS="$LIBS -lprofiler"
   17307  1.1  christos 		;;
   17308  1.1  christos 	*)
   17309  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17310  1.3  christos $as_echo "no" >&6; }
   17311  1.1  christos 		;;
   17312  1.1  christos esac
   17313  1.1  christos 
   17314  1.1  christos #
   17315  1.3  christos # enable/disable dumping stack backtrace.  Also check if the system supports
   17316  1.3  christos # glibc-compatible backtrace() function.
   17317  1.1  christos #
   17318  1.3  christos # Check whether --enable-backtrace was given.
   17319  1.3  christos if test "${enable_backtrace+set}" = set; then :
   17320  1.3  christos   enableval=$enable_backtrace;
   17321  1.1  christos else
   17322  1.3  christos   enable_backtrace="yes"
   17323  1.3  christos fi
   17324  1.3  christos 
   17325  1.3  christos 
   17326  1.3  christos if test "$enable_backtrace" = "yes"; then :
   17327  1.3  christos 
   17328  1.3  christos $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   17329  1.3  christos 
   17330  1.3  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17331  1.1  christos /* end confdefs.h.  */
   17332  1.3  christos #include <execinfo.h>
   17333  1.1  christos int
   17334  1.1  christos main ()
   17335  1.1  christos {
   17336  1.3  christos return (backtrace((void **)0, 0));
   17337  1.3  christos 
   17338  1.1  christos   ;
   17339  1.1  christos   return 0;
   17340  1.1  christos }
   17341  1.1  christos _ACEOF
   17342  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   17343  1.3  christos 
   17344  1.3  christos $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   17345  1.3  christos 
   17346  1.3  christos 
   17347  1.1  christos fi
   17348  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   17349  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   17350  1.1  christos fi
   17351  1.3  christos 
   17352  1.3  christos # Check whether --enable-symtable was given.
   17353  1.3  christos if test "${enable_symtable+set}" = set; then :
   17354  1.3  christos   enableval=$enable_symtable; want_symtable="$enableval"
   17355  1.3  christos else
   17356  1.3  christos   want_symtable="minimal"
   17357  1.1  christos fi
   17358  1.1  christos 
   17359  1.3  christos case $want_symtable in
   17360  1.3  christos yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   17361  1.3  christos 	if test "" = "$PERL"
   17362  1.3  christos 	then
   17363  1.3  christos 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   17364  1.3  christos Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   17365  1.3  christos 	fi
   17366  1.3  christos 	if test "yes" = "$use_libtool"; then
   17367  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   17368  1.3  christos $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   17369  1.3  christos 	else
   17370  1.3  christos 		# we generate the internal symbol table only for those systems
   17371  1.3  christos 		# known to work to avoid unexpected build failure.  Also, warn
   17372  1.3  christos 		# about unsupported systems when the feature is enabled
   17373  1.3  christos 		#  manually.
   17374  1.3  christos 		case $host_os in
   17375  1.3  christos 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   17376  1.3  christos 			MKSYMTBL_PROGRAM="$PERL"
   17377  1.3  christos 			if test "all" = "$want_symtable"; then
   17378  1.3  christos 				ALWAYS_MAKE_SYMTABLE="yes"
   17379  1.3  christos 			fi
   17380  1.3  christos 			;;
   17381  1.3  christos 		*)
   17382  1.3  christos 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   17383  1.3  christos 			then
   17384  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
   17385  1.3  christos $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   17386  1.3  christos 			fi
   17387  1.3  christos 		esac
   17388  1.3  christos 	fi
   17389  1.3  christos 	;;
   17390  1.3  christos *)
   17391  1.3  christos 	;;
   17392  1.3  christos esac
   17393  1.1  christos 
   17394  1.1  christos 
   17395  1.1  christos 
   17396  1.1  christos #
   17397  1.3  christos # File name extension for static archive files, for those few places
   17398  1.3  christos # where they are treated differently from dynamic ones.
   17399  1.1  christos #
   17400  1.3  christos SA=a
   17401  1.3  christos 
   17402  1.3  christos 
   17403  1.3  christos 
   17404  1.3  christos 
   17405  1.3  christos 
   17406  1.3  christos 
   17407  1.3  christos 
   17408  1.3  christos 
   17409  1.3  christos 
   17410  1.1  christos 
   17411  1.3  christos BIND9_CO_RULE=".c.$O:"
   17412  1.1  christos 
   17413  1.1  christos 
   17414  1.1  christos #
   17415  1.3  christos # Here begins a very long section to determine the system's networking
   17416  1.3  christos # capabilities.  The order of the tests is significant.
   17417  1.1  christos #
   17418  1.1  christos 
   17419  1.1  christos #
   17420  1.3  christos # We do the IPv6 compilation checking after libtool so that we can put
   17421  1.3  christos # the right suffix on the files.
   17422  1.1  christos #
   17423  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   17424  1.3  christos $as_echo_n "checking for IPv6 structures... " >&6; }
   17425  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17426  1.3  christos /* end confdefs.h.  */
   17427  1.1  christos 
   17428  1.3  christos        #include <sys/types.h>
   17429  1.3  christos        #include <sys/socket.h>
   17430  1.3  christos        #include <netinet/in.h>
   17431  1.1  christos 
   17432  1.1  christos int
   17433  1.1  christos main ()
   17434  1.1  christos {
   17435  1.3  christos 
   17436  1.3  christos        struct sockaddr_in6 sin6;
   17437  1.3  christos        struct in6_addr in6;
   17438  1.3  christos        struct in6_pktinfo in6_pi;
   17439  1.3  christos        struct sockaddr_storage storage;
   17440  1.3  christos        in6 = in6addr_any;
   17441  1.3  christos        in6 = in6addr_loopback;
   17442  1.3  christos        sin6.sin6_scope_id = 0;
   17443  1.3  christos        return (0);
   17444  1.3  christos 
   17445  1.1  christos   ;
   17446  1.1  christos   return 0;
   17447  1.1  christos }
   17448  1.1  christos _ACEOF
   17449  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   17450  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17451  1.3  christos $as_echo "yes" >&6; }
   17452  1.3  christos else
   17453  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17454  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17455  1.3  christos as_fn_error $? "IPv6 support is mandatory
   17456  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   17457  1.1  christos fi
   17458  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17459  1.1  christos 
   17460  1.3  christos #
   17461  1.3  christos # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   17462  1.3  christos # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   17463  1.3  christos # comment in lib/isc/unix/socket.c).
   17464  1.3  christos #
   17465  1.1  christos 
   17466  1.3  christos # Check whether --enable-tcp_fastopen was given.
   17467  1.3  christos if test "${enable_tcp_fastopen+set}" = set; then :
   17468  1.3  christos   enableval=$enable_tcp_fastopen;
   17469  1.3  christos else
   17470  1.3  christos   enable_tcp_fastopen="yes"
   17471  1.3  christos fi
   17472  1.1  christos 
   17473  1.1  christos 
   17474  1.3  christos if test "$enable_tcp_fastopen" = "yes"; then :
   17475  1.1  christos 
   17476  1.3  christos $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   17477  1.1  christos 
   17478  1.3  christos fi
   17479  1.1  christos 
   17480  1.3  christos #
   17481  1.3  christos # Check for some other useful functions that are not ever-present.
   17482  1.3  christos #
   17483  1.3  christos for ac_func in strlcpy strlcat
   17484  1.1  christos do :
   17485  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17486  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17487  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17488  1.1  christos   cat >>confdefs.h <<_ACEOF
   17489  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17490  1.1  christos _ACEOF
   17491  1.1  christos 
   17492  1.1  christos fi
   17493  1.3  christos done
   17494  1.1  christos 
   17495  1.1  christos 
   17496  1.1  christos 
   17497  1.1  christos 
   17498  1.3  christos # Check whether --with-readline was given.
   17499  1.3  christos if test "${with_readline+set}" = set; then :
   17500  1.3  christos   withval=$with_readline; use_readline="$withval"
   17501  1.1  christos else
   17502  1.3  christos   use_readline="auto"
   17503  1.1  christos fi
   17504  1.1  christos 
   17505  1.3  christos case "$use_readline" in
   17506  1.3  christos no)	;;
   17507  1.3  christos *)
   17508  1.3  christos 	saved_LIBS="$LIBS"
   17509  1.3  christos 	case "$use_readline" in
   17510  1.3  christos 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   17511  1.3  christos 	*) try_readline="$use_readline"
   17512  1.3  christos 	esac
   17513  1.3  christos 	for readline in "$try_readline" $or_readline
   17514  1.3  christos 	do
   17515  1.3  christos 		LIBS="$readline"
   17516  1.3  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   17517  1.3  christos $as_echo "$as_me: checking for readline with $readline" >&6;}
   17518  1.3  christos 		for ac_func in readline
   17519  1.3  christos do :
   17520  1.3  christos   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17521  1.3  christos if test "x$ac_cv_func_readline" = xyes; then :
   17522  1.3  christos   cat >>confdefs.h <<_ACEOF
   17523  1.3  christos #define HAVE_READLINE 1
   17524  1.3  christos _ACEOF
   17525  1.3  christos 
   17526  1.3  christos fi
   17527  1.3  christos done
   17528  1.1  christos 
   17529  1.3  christos 		if test "yes" = "$ac_cv_func_readline"
   17530  1.3  christos 		then
   17531  1.3  christos 			READLINE_LIB="$readline"
   17532  1.3  christos 			break
   17533  1.3  christos 		fi
   17534  1.3  christos 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   17535  1.3  christos 		do
   17536  1.3  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   17537  1.3  christos $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   17538  1.3  christos 			unset ac_cv_func_readline
   17539  1.3  christos 			LIBS="$readline $lib"
   17540  1.3  christos 			for ac_func in readline
   17541  1.3  christos do :
   17542  1.3  christos   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17543  1.3  christos if test "x$ac_cv_func_readline" = xyes; then :
   17544  1.3  christos   cat >>confdefs.h <<_ACEOF
   17545  1.3  christos #define HAVE_READLINE 1
   17546  1.1  christos _ACEOF
   17547  1.3  christos 
   17548  1.1  christos fi
   17549  1.3  christos done
   17550  1.3  christos 
   17551  1.3  christos 			if test "yes" = "$ac_cv_func_readline"
   17552  1.3  christos 			then
   17553  1.3  christos 				READLINE_LIB="$readline $lib"
   17554  1.3  christos 				break
   17555  1.3  christos 			fi
   17556  1.3  christos 		done
   17557  1.3  christos 		if test "yes" = "$ac_cv_func_readline"
   17558  1.3  christos 		then
   17559  1.3  christos 			break
   17560  1.3  christos 		fi
   17561  1.3  christos 	done
   17562  1.3  christos 	if test "auto" != "$use_readline" &&
   17563  1.3  christos 	   test "X$READLINE_LIB" = "X"
   17564  1.3  christos 	then
   17565  1.3  christos 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   17566  1.3  christos 	fi
   17567  1.3  christos 	LIBS="$saved_LIBS"
   17568  1.1  christos 	;;
   17569  1.1  christos esac
   17570  1.3  christos if test "yes" = "$ac_cv_func_readline"
   17571  1.3  christos then
   17572  1.3  christos 	case "$READLINE_LIB" in
   17573  1.3  christos 	*edit*)
   17574  1.3  christos 		for ac_header in editline/readline.h
   17575  1.3  christos do :
   17576  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   17577  1.3  christos if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   17578  1.3  christos   cat >>confdefs.h <<_ACEOF
   17579  1.3  christos #define HAVE_EDITLINE_READLINE_H 1
   17580  1.3  christos _ACEOF
   17581  1.1  christos 
   17582  1.3  christos fi
   17583  1.1  christos 
   17584  1.3  christos done
   17585  1.1  christos 
   17586  1.3  christos 		for ac_header in edit/readline/readline.h
   17587  1.1  christos do :
   17588  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   17589  1.3  christos if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   17590  1.1  christos   cat >>confdefs.h <<_ACEOF
   17591  1.3  christos #define HAVE_EDIT_READLINE_READLINE_H 1
   17592  1.1  christos _ACEOF
   17593  1.1  christos 
   17594  1.1  christos fi
   17595  1.3  christos 
   17596  1.1  christos done
   17597  1.1  christos 
   17598  1.3  christos 		for ac_header in edit/readline/history.h
   17599  1.3  christos do :
   17600  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   17601  1.3  christos if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   17602  1.3  christos   cat >>confdefs.h <<_ACEOF
   17603  1.3  christos #define HAVE_EDIT_READLINE_HISTORY_H 1
   17604  1.3  christos _ACEOF
   17605  1.1  christos 
   17606  1.3  christos fi
   17607  1.1  christos 
   17608  1.3  christos done
   17609  1.1  christos 
   17610  1.3  christos 		;;
   17611  1.3  christos 	esac
   17612  1.3  christos 	for ac_header in readline/readline.h
   17613  1.3  christos do :
   17614  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   17615  1.3  christos if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   17616  1.3  christos   cat >>confdefs.h <<_ACEOF
   17617  1.3  christos #define HAVE_READLINE_READLINE_H 1
   17618  1.1  christos _ACEOF
   17619  1.1  christos 
   17620  1.1  christos fi
   17621  1.1  christos 
   17622  1.3  christos done
   17623  1.1  christos 
   17624  1.3  christos 	for ac_header in readline/history.h
   17625  1.3  christos do :
   17626  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   17627  1.3  christos if test "x$ac_cv_header_readline_history_h" = xyes; then :
   17628  1.3  christos   cat >>confdefs.h <<_ACEOF
   17629  1.3  christos #define HAVE_READLINE_HISTORY_H 1
   17630  1.1  christos _ACEOF
   17631  1.1  christos 
   17632  1.3  christos fi
   17633  1.1  christos 
   17634  1.3  christos done
   17635  1.1  christos 
   17636  1.1  christos fi
   17637  1.3  christos 
   17638  1.3  christos #
   17639  1.3  christos # Use our own SPNEGO implementation?
   17640  1.3  christos #
   17641  1.3  christos # Check whether --enable-isc-spnego was given.
   17642  1.3  christos if test "${enable_isc_spnego+set}" = set; then :
   17643  1.3  christos   enableval=$enable_isc_spnego;
   17644  1.1  christos fi
   17645  1.1  christos 
   17646  1.1  christos 
   17647  1.3  christos if test -n "$USE_GSSAPI"
   17648  1.3  christos then
   17649  1.3  christos 	case "$enable_isc_spnego" in
   17650  1.3  christos 		yes|'')
   17651  1.3  christos 			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
   17652  1.3  christos 			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
   17653  1.3  christos 			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
   17654  1.3  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
   17655  1.3  christos $as_echo "using SPNEGO from lib/dns" >&6; }
   17656  1.1  christos 			;;
   17657  1.3  christos 		no)
   17658  1.3  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
   17659  1.3  christos $as_echo "using SPNEGO from GSSAPI library" >&6; }
   17660  1.1  christos 			;;
   17661  1.3  christos 	esac
   17662  1.3  christos fi
   17663  1.1  christos 
   17664  1.1  christos 
   17665  1.1  christos 
   17666  1.1  christos 
   17667  1.1  christos 
   17668  1.1  christos 
   17669  1.3  christos #
   17670  1.3  christos # Security Stuff
   17671  1.3  christos #
   17672  1.3  christos # Note it is very recommended to *not* disable chroot(),
   17673  1.3  christos # this is only because chroot() was made obsolete by Posix.
   17674  1.3  christos # Check whether --enable-chroot was given.
   17675  1.3  christos if test "${enable_chroot+set}" = set; then :
   17676  1.3  christos   enableval=$enable_chroot;
   17677  1.1  christos fi
   17678  1.1  christos 
   17679  1.3  christos case "$enable_chroot" in
   17680  1.3  christos 	yes|'')
   17681  1.3  christos 		for ac_func in chroot
   17682  1.3  christos do :
   17683  1.3  christos   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   17684  1.3  christos if test "x$ac_cv_func_chroot" = xyes; then :
   17685  1.3  christos   cat >>confdefs.h <<_ACEOF
   17686  1.3  christos #define HAVE_CHROOT 1
   17687  1.1  christos _ACEOF
   17688  1.1  christos 
   17689  1.3  christos fi
   17690  1.3  christos done
   17691  1.1  christos 
   17692  1.3  christos 		;;
   17693  1.3  christos 	no)
   17694  1.3  christos 		;;
   17695  1.3  christos esac
   17696  1.1  christos 
   17697  1.3  christos LIBCAP_LIBS=""
   17698  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   17699  1.3  christos $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   17700  1.3  christos # Check whether --enable-linux-caps was given.
   17701  1.3  christos if test "${enable_linux_caps+set}" = set; then :
   17702  1.3  christos   enableval=$enable_linux_caps;
   17703  1.3  christos else
   17704  1.3  christos   case $host in #(
   17705  1.3  christos   *-linux*) :
   17706  1.3  christos     enable_linux_caps=yes ;; #(
   17707  1.3  christos   *) :
   17708  1.3  christos     enable_linux_caps=no ;;
   17709  1.3  christos esac
   17710  1.3  christos fi
   17711  1.1  christos 
   17712  1.1  christos 
   17713  1.3  christos if test "$enable_linux_caps" = "yes"; then :
   17714  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17715  1.3  christos $as_echo "yes" >&6; }
   17716  1.3  christos        for ac_header in sys/capability.h
   17717  1.3  christos do :
   17718  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   17719  1.3  christos if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   17720  1.3  christos   cat >>confdefs.h <<_ACEOF
   17721  1.3  christos #define HAVE_SYS_CAPABILITY_H 1
   17722  1.1  christos _ACEOF
   17723  1.1  christos 
   17724  1.1  christos else
   17725  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
   17726  1.1  christos fi
   17727  1.1  christos 
   17728  1.3  christos done
   17729  1.1  christos 
   17730  1.3  christos        save_LIBS="$LIBS"
   17731  1.3  christos        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   17732  1.3  christos $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   17733  1.3  christos if ${ac_cv_search_cap_set_proc+:} false; then :
   17734  1.3  christos   $as_echo_n "(cached) " >&6
   17735  1.3  christos else
   17736  1.3  christos   ac_func_search_save_LIBS=$LIBS
   17737  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17738  1.1  christos /* end confdefs.h.  */
   17739  1.1  christos 
   17740  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17741  1.3  christos    Use char because int might match the return type of a GCC
   17742  1.3  christos    builtin and then its argument prototype would still apply.  */
   17743  1.3  christos #ifdef __cplusplus
   17744  1.3  christos extern "C"
   17745  1.3  christos #endif
   17746  1.3  christos char cap_set_proc ();
   17747  1.1  christos int
   17748  1.1  christos main ()
   17749  1.1  christos {
   17750  1.3  christos return cap_set_proc ();
   17751  1.1  christos   ;
   17752  1.1  christos   return 0;
   17753  1.1  christos }
   17754  1.1  christos _ACEOF
   17755  1.3  christos for ac_lib in '' cap; do
   17756  1.3  christos   if test -z "$ac_lib"; then
   17757  1.3  christos     ac_res="none required"
   17758  1.3  christos   else
   17759  1.3  christos     ac_res=-l$ac_lib
   17760  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17761  1.3  christos   fi
   17762  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   17763  1.3  christos   ac_cv_search_cap_set_proc=$ac_res
   17764  1.1  christos fi
   17765  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   17766  1.3  christos     conftest$ac_exeext
   17767  1.3  christos   if ${ac_cv_search_cap_set_proc+:} false; then :
   17768  1.3  christos   break
   17769  1.3  christos fi
   17770  1.3  christos done
   17771  1.3  christos if ${ac_cv_search_cap_set_proc+:} false; then :
   17772  1.1  christos 
   17773  1.3  christos else
   17774  1.3  christos   ac_cv_search_cap_set_proc=no
   17775  1.3  christos fi
   17776  1.3  christos rm conftest.$ac_ext
   17777  1.3  christos LIBS=$ac_func_search_save_LIBS
   17778  1.3  christos fi
   17779  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   17780  1.3  christos $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   17781  1.3  christos ac_res=$ac_cv_search_cap_set_proc
   17782  1.3  christos if test "$ac_res" != no; then :
   17783  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17784  1.3  christos   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   17785  1.3  christos else
   17786  1.3  christos   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17787  1.1  christos fi
   17788  1.1  christos 
   17789  1.3  christos        LIBS="$save_LIBS"
   17790  1.1  christos else
   17791  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17792  1.3  christos $as_echo "no" >&6; }
   17793  1.1  christos fi
   17794  1.1  christos 
   17795  1.1  christos 
   17796  1.3  christos for ac_header in sys/un.h
   17797  1.3  christos do :
   17798  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   17799  1.3  christos if test "x$ac_cv_header_sys_un_h" = xyes; then :
   17800  1.3  christos   cat >>confdefs.h <<_ACEOF
   17801  1.3  christos #define HAVE_SYS_UN_H 1
   17802  1.3  christos _ACEOF
   17803  1.3  christos  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   17804  1.1  christos 
   17805  1.3  christos else
   17806  1.3  christos   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   17807  1.1  christos 
   17808  1.3  christos fi
   17809  1.1  christos 
   17810  1.3  christos done
   17811  1.1  christos 
   17812  1.1  christos 
   17813  1.1  christos 
   17814  1.3  christos case "$host" in
   17815  1.3  christos *-solaris*)
   17816  1.1  christos 
   17817  1.3  christos $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   17818  1.1  christos 
   17819  1.3  christos 	;;
   17820  1.3  christos esac
   17821  1.1  christos 
   17822  1.3  christos #
   17823  1.3  christos # Time Zone Stuff
   17824  1.3  christos #
   17825  1.3  christos for ac_func in tzset
   17826  1.3  christos do :
   17827  1.3  christos   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   17828  1.3  christos if test "x$ac_cv_func_tzset" = xyes; then :
   17829  1.3  christos   cat >>confdefs.h <<_ACEOF
   17830  1.3  christos #define HAVE_TZSET 1
   17831  1.3  christos _ACEOF
   17832  1.1  christos 
   17833  1.3  christos fi
   17834  1.3  christos done
   17835  1.1  christos 
   17836  1.1  christos 
   17837  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   17838  1.3  christos $as_echo_n "checking for optarg declaration... " >&6; }
   17839  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17840  1.1  christos /* end confdefs.h.  */
   17841  1.1  christos 
   17842  1.3  christos #include <unistd.h>
   17843  1.3  christos 
   17844  1.1  christos int
   17845  1.1  christos main ()
   17846  1.1  christos {
   17847  1.3  christos optarg = 0;
   17848  1.1  christos   ;
   17849  1.1  christos   return 0;
   17850  1.1  christos }
   17851  1.1  christos _ACEOF
   17852  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   17853  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17854  1.1  christos $as_echo "yes" >&6; }
   17855  1.1  christos else
   17856  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17857  1.1  christos $as_echo "no" >&6; }
   17858  1.3  christos GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   17859  1.1  christos 
   17860  1.3  christos $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   17861  1.1  christos 
   17862  1.1  christos fi
   17863  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17864  1.1  christos 
   17865  1.1  christos #
   17866  1.3  christos # Check for nanoseconds in file stats
   17867  1.1  christos #
   17868  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   17869  1.3  christos $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   17870  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17871  1.1  christos /* end confdefs.h.  */
   17872  1.3  christos #include <sys/fcntl.h>
   17873  1.1  christos int
   17874  1.1  christos main ()
   17875  1.1  christos {
   17876  1.3  christos struct stat s;
   17877  1.3  christos        return(s.st_mtim.tv_nsec);
   17878  1.1  christos 
   17879  1.1  christos   ;
   17880  1.1  christos   return 0;
   17881  1.1  christos }
   17882  1.1  christos _ACEOF
   17883  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   17884  1.1  christos 
   17885  1.3  christos $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   17886  1.1  christos 
   17887  1.3  christos fi
   17888  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17889  1.1  christos 
   17890  1.3  christos #
   17891  1.3  christos # Check for if_nametoindex() for IPv6 scoped addresses support
   17892  1.3  christos #
   17893  1.3  christos for ac_func in if_nametoindex
   17894  1.3  christos do :
   17895  1.3  christos   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   17896  1.3  christos if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   17897  1.3  christos   cat >>confdefs.h <<_ACEOF
   17898  1.3  christos #define HAVE_IF_NAMETOINDEX 1
   17899  1.3  christos _ACEOF
   17900  1.1  christos 
   17901  1.1  christos fi
   17902  1.3  christos done
   17903  1.3  christos 
   17904  1.1  christos 
   17905  1.3  christos for ac_func in nanosleep usleep explicit_bzero
   17906  1.3  christos do :
   17907  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17908  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17909  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17910  1.3  christos   cat >>confdefs.h <<_ACEOF
   17911  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17912  1.3  christos _ACEOF
   17913  1.1  christos 
   17914  1.1  christos fi
   17915  1.3  christos done
   17916  1.3  christos 
   17917  1.1  christos 
   17918  1.3  christos ISC_ATOMIC_LIBS=""
   17919  1.3  christos for ac_header in stdatomic.h
   17920  1.3  christos do :
   17921  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   17922  1.3  christos if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   17923  1.3  christos   cat >>confdefs.h <<_ACEOF
   17924  1.3  christos #define HAVE_STDATOMIC_H 1
   17925  1.3  christos _ACEOF
   17926  1.3  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17927  1.3  christos $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17928  1.3  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17929  1.1  christos /* end confdefs.h.  */
   17930  1.3  christos #include <stdatomic.h>
   17931  1.3  christos int
   17932  1.3  christos main ()
   17933  1.3  christos {
   17934  1.3  christos atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17935  1.1  christos 
   17936  1.3  christos   ;
   17937  1.3  christos   return 0;
   17938  1.3  christos }
   17939  1.3  christos _ACEOF
   17940  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   17941  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   17942  1.3  christos $as_echo "stdatomic.h" >&6; }
   17943  1.3  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   17944  1.3  christos $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   17945  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17946  1.3  christos /* end confdefs.h.  */
   17947  1.3  christos #include <stdatomic.h>
   17948  1.1  christos int
   17949  1.1  christos main ()
   17950  1.1  christos {
   17951  1.3  christos atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17952  1.3  christos 
   17953  1.1  christos   ;
   17954  1.1  christos   return 0;
   17955  1.1  christos }
   17956  1.1  christos _ACEOF
   17957  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   17958  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17959  1.3  christos $as_echo "no" >&6; }
   17960  1.3  christos else
   17961  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17962  1.1  christos $as_echo "yes" >&6; }
   17963  1.3  christos 	 ISC_ATOMIC_LIBS="-latomic"
   17964  1.3  christos 
   17965  1.3  christos fi
   17966  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   17967  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   17968  1.3  christos 
   17969  1.1  christos else
   17970  1.3  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17971  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17972  1.3  christos as_fn_error $? "stdatomic.h header found, but compilation failed, fix your toolchaing.
   17973  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   17974  1.3  christos 
   17975  1.1  christos fi
   17976  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17977  1.3  christos else
   17978  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17979  1.3  christos $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17980  1.3  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17981  1.1  christos /* end confdefs.h.  */
   17982  1.3  christos #include <inttypes.h>
   17983  1.1  christos int
   17984  1.1  christos main ()
   17985  1.1  christos {
   17986  1.3  christos int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   17987  1.3  christos 
   17988  1.1  christos   ;
   17989  1.1  christos   return 0;
   17990  1.1  christos }
   17991  1.1  christos _ACEOF
   17992  1.1  christos if ac_fn_c_try_compile "$LINENO"; then :
   17993  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   17994  1.3  christos $as_echo "__atomic builtins" >&6; }
   17995  1.3  christos 
   17996  1.3  christos $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   17997  1.3  christos 
   17998  1.3  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   17999  1.3  christos $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   18000  1.3  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18001  1.1  christos /* end confdefs.h.  */
   18002  1.3  christos #include <inttypes.h>
   18003  1.1  christos int
   18004  1.1  christos main ()
   18005  1.1  christos {
   18006  1.3  christos int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   18007  1.3  christos 
   18008  1.1  christos   ;
   18009  1.1  christos   return 0;
   18010  1.1  christos }
   18011  1.1  christos _ACEOF
   18012  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   18013  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18014  1.1  christos $as_echo "no" >&6; }
   18015  1.1  christos else
   18016  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18017  1.1  christos $as_echo "yes" >&6; }
   18018  1.3  christos 	 ISC_ATOMIC_LIBS="-latomic"
   18019  1.1  christos 
   18020  1.1  christos fi
   18021  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   18022  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   18023  1.1  christos 
   18024  1.3  christos else
   18025  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   18026  1.3  christos $as_echo "__sync builtins" >&6; }
   18027  1.1  christos 
   18028  1.1  christos fi
   18029  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18030  1.1  christos 
   18031  1.1  christos fi
   18032  1.1  christos 
   18033  1.3  christos done
   18034  1.1  christos 
   18035  1.3  christos LIBS="$LIBS $ISC_ATOMIC_LIBS"
   18036  1.1  christos 
   18037  1.3  christos for ac_header in uchar.h
   18038  1.3  christos do :
   18039  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   18040  1.3  christos if test "x$ac_cv_header_uchar_h" = xyes; then :
   18041  1.3  christos   cat >>confdefs.h <<_ACEOF
   18042  1.3  christos #define HAVE_UCHAR_H 1
   18043  1.3  christos _ACEOF
   18044  1.1  christos 
   18045  1.1  christos fi
   18046  1.1  christos 
   18047  1.3  christos done
   18048  1.1  christos 
   18049  1.1  christos 
   18050  1.1  christos #
   18051  1.3  christos # Check for __builtin_unreachable
   18052  1.1  christos #
   18053  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   18054  1.3  christos $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   18055  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18056  1.1  christos /* end confdefs.h.  */
   18057  1.1  christos 
   18058  1.1  christos int
   18059  1.1  christos main ()
   18060  1.1  christos {
   18061  1.3  christos __builtin_unreachable();
   18062  1.1  christos 
   18063  1.1  christos   ;
   18064  1.1  christos   return 0;
   18065  1.1  christos }
   18066  1.1  christos _ACEOF
   18067  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   18068  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18069  1.3  christos $as_echo "yes" >&6; }
   18070  1.3  christos 
   18071  1.3  christos $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   18072  1.1  christos 
   18073  1.1  christos 
   18074  1.1  christos else
   18075  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18076  1.1  christos $as_echo "no" >&6; }
   18077  1.3  christos 
   18078  1.1  christos fi
   18079  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   18080  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   18081  1.1  christos 
   18082  1.3  christos #
   18083  1.3  christos # Check for __builtin_expect
   18084  1.3  christos #
   18085  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   18086  1.3  christos $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   18087  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18088  1.1  christos /* end confdefs.h.  */
   18089  1.1  christos 
   18090  1.1  christos int
   18091  1.1  christos main ()
   18092  1.1  christos {
   18093  1.3  christos 
   18094  1.3  christos 	return (__builtin_expect(1, 1) ? 1 : 0);
   18095  1.3  christos 
   18096  1.1  christos   ;
   18097  1.1  christos   return 0;
   18098  1.1  christos }
   18099  1.1  christos _ACEOF
   18100  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   18101  1.1  christos 
   18102  1.3  christos 	have_builtin_expect=yes
   18103  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18104  1.3  christos $as_echo "yes" >&6; }
   18105  1.1  christos 
   18106  1.1  christos else
   18107  1.1  christos 
   18108  1.3  christos 	have_builtin_expect=no
   18109  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18110  1.3  christos $as_echo "no" >&6; }
   18111  1.1  christos 
   18112  1.1  christos fi
   18113  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   18114  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   18115  1.3  christos if test "yes" = "$have_builtin_expect"; then
   18116  1.1  christos 
   18117  1.3  christos $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   18118  1.1  christos 
   18119  1.1  christos fi
   18120  1.1  christos 
   18121  1.3  christos #
   18122  1.3  christos # Check for __builtin_clz
   18123  1.3  christos #
   18124  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   18125  1.3  christos $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   18126  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18127  1.1  christos /* end confdefs.h.  */
   18128  1.1  christos 
   18129  1.1  christos int
   18130  1.1  christos main ()
   18131  1.1  christos {
   18132  1.3  christos 
   18133  1.3  christos 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   18134  1.3  christos 
   18135  1.1  christos   ;
   18136  1.1  christos   return 0;
   18137  1.1  christos }
   18138  1.1  christos _ACEOF
   18139  1.3  christos if ac_fn_c_try_link "$LINENO"; then :
   18140  1.3  christos 
   18141  1.3  christos 	have_builtin_clz=yes
   18142  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18143  1.3  christos $as_echo "yes" >&6; }
   18144  1.3  christos 
   18145  1.3  christos else
   18146  1.3  christos 
   18147  1.3  christos 	have_builtin_clz=no
   18148  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18149  1.3  christos $as_echo "no" >&6; }
   18150  1.3  christos 
   18151  1.1  christos fi
   18152  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   18153  1.3  christos     conftest$ac_exeext conftest.$ac_ext
   18154  1.3  christos if test "yes" = "$have_builtin_clz"; then
   18155  1.3  christos 
   18156  1.3  christos $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   18157  1.3  christos 
   18158  1.1  christos fi
   18159  1.1  christos 
   18160  1.3  christos #
   18161  1.3  christos # Activate "rrset-order fixed" or not?
   18162  1.3  christos #
   18163  1.3  christos # Check whether --enable-fixed-rrset was given.
   18164  1.3  christos if test "${enable_fixed_rrset+set}" = set; then :
   18165  1.3  christos   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   18166  1.1  christos else
   18167  1.3  christos   enable_fixed="no"
   18168  1.1  christos fi
   18169  1.1  christos 
   18170  1.3  christos case "$enable_fixed" in
   18171  1.3  christos 	yes)
   18172  1.3  christos 
   18173  1.3  christos $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   18174  1.3  christos 
   18175  1.3  christos 		;;
   18176  1.3  christos 	no)
   18177  1.3  christos 		;;
   18178  1.3  christos 	*)
   18179  1.3  christos 		;;
   18180  1.3  christos esac
   18181  1.3  christos 
   18182  1.3  christos #
   18183  1.1  christos # Activate dnstap?
   18184  1.1  christos #
   18185  1.1  christos # Check whether --enable-dnstap was given.
   18186  1.1  christos if test "${enable_dnstap+set}" = set; then :
   18187  1.1  christos   enableval=$enable_dnstap; use_dnstap=$enableval
   18188  1.1  christos else
   18189  1.1  christos   use_dnstap=no
   18190  1.1  christos fi
   18191  1.1  christos 
   18192  1.1  christos 
   18193  1.1  christos DNSTAP=
   18194  1.1  christos DNSTAPSRCS=
   18195  1.1  christos DNSTAPOBJS=
   18196  1.1  christos DNSTAPTARGETS=
   18197  1.1  christos DNSTAP_PB_C_H=
   18198  1.1  christos if test "x$use_dnstap" != "xno"; then
   18199  1.1  christos 
   18200  1.1  christos # Check whether --with-protobuf-c was given.
   18201  1.1  christos if test "${with_protobuf_c+set}" = set; then :
   18202  1.1  christos   withval=$with_protobuf_c;
   18203  1.1  christos 	    # workaround for protobuf-c includes at old dir
   18204  1.1  christos 	    # before protobuf-c-1.0.0
   18205  1.1  christos 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   18206  1.1  christos 	    then
   18207  1.1  christos 		CFLAGS="$CFLAGS -I$withval/include/google"
   18208  1.1  christos 	    else
   18209  1.1  christos 		CFLAGS="$CFLAGS -I$withval/include"
   18210  1.1  christos 	    fi
   18211  1.1  christos 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18212  1.1  christos 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18213  1.1  christos set dummy protoc-c; ac_word=$2
   18214  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18215  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18216  1.1  christos if ${ac_cv_path_PROTOC_C+:} false; then :
   18217  1.1  christos   $as_echo_n "(cached) " >&6
   18218  1.1  christos else
   18219  1.1  christos   case $PROTOC_C in
   18220  1.1  christos   [\\/]* | ?:[\\/]*)
   18221  1.1  christos   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18222  1.1  christos   ;;
   18223  1.1  christos   *)
   18224  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18225  1.1  christos for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18226  1.1  christos do
   18227  1.1  christos   IFS=$as_save_IFS
   18228  1.1  christos   test -z "$as_dir" && as_dir=.
   18229  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18230  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18231  1.1  christos     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18232  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18233  1.1  christos     break 2
   18234  1.1  christos   fi
   18235  1.1  christos done
   18236  1.1  christos   done
   18237  1.1  christos IFS=$as_save_IFS
   18238  1.1  christos 
   18239  1.1  christos   ;;
   18240  1.1  christos esac
   18241  1.1  christos fi
   18242  1.1  christos PROTOC_C=$ac_cv_path_PROTOC_C
   18243  1.1  christos if test -n "$PROTOC_C"; then
   18244  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18245  1.1  christos $as_echo "$PROTOC_C" >&6; }
   18246  1.1  christos else
   18247  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18248  1.1  christos $as_echo "no" >&6; }
   18249  1.1  christos fi
   18250  1.1  christos 
   18251  1.1  christos 
   18252  1.1  christos 
   18253  1.1  christos else
   18254  1.1  christos 
   18255  1.1  christos 	    # workaround for protobuf-c includes at old dir
   18256  1.1  christos 	    # before protobuf-c-1.0.0
   18257  1.1  christos 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   18258  1.1  christos 	    then
   18259  1.1  christos 		CFLAGS="$CFLAGS -I/usr/include/google"
   18260  1.1  christos 	    else
   18261  1.1  christos 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   18262  1.1  christos 		then
   18263  1.1  christos 		    CFLAGS="$CFLAGS -I/usr/local/include/google"
   18264  1.1  christos 		    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   18265  1.1  christos 		fi
   18266  1.1  christos 	    fi
   18267  1.1  christos 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18268  1.1  christos set dummy protoc-c; ac_word=$2
   18269  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18270  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18271  1.1  christos if ${ac_cv_path_PROTOC_C+:} false; then :
   18272  1.1  christos   $as_echo_n "(cached) " >&6
   18273  1.1  christos else
   18274  1.1  christos   case $PROTOC_C in
   18275  1.1  christos   [\\/]* | ?:[\\/]*)
   18276  1.1  christos   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18277  1.1  christos   ;;
   18278  1.1  christos   *)
   18279  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18280  1.1  christos for as_dir in $PATH
   18281  1.1  christos do
   18282  1.1  christos   IFS=$as_save_IFS
   18283  1.1  christos   test -z "$as_dir" && as_dir=.
   18284  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18285  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18286  1.1  christos     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18287  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18288  1.1  christos     break 2
   18289  1.1  christos   fi
   18290  1.1  christos done
   18291  1.1  christos   done
   18292  1.1  christos IFS=$as_save_IFS
   18293  1.1  christos 
   18294  1.1  christos   ;;
   18295  1.1  christos esac
   18296  1.1  christos fi
   18297  1.1  christos PROTOC_C=$ac_cv_path_PROTOC_C
   18298  1.1  christos if test -n "$PROTOC_C"; then
   18299  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18300  1.1  christos $as_echo "$PROTOC_C" >&6; }
   18301  1.1  christos else
   18302  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18303  1.1  christos $as_echo "no" >&6; }
   18304  1.1  christos fi
   18305  1.1  christos 
   18306  1.1  christos 
   18307  1.1  christos 
   18308  1.1  christos fi
   18309  1.1  christos 
   18310  1.1  christos 	if test -z "$PROTOC_C"; then
   18311  1.1  christos 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   18312  1.1  christos 	fi
   18313  1.1  christos 
   18314  1.1  christos # Check whether --with-libfstrm was given.
   18315  1.1  christos if test "${with_libfstrm+set}" = set; then :
   18316  1.1  christos   withval=$with_libfstrm;
   18317  1.1  christos 	    CFLAGS="$CFLAGS -I$withval/include"
   18318  1.1  christos 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18319  1.1  christos 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18320  1.1  christos set dummy fstrm_capture; ac_word=$2
   18321  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18322  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18323  1.1  christos if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18324  1.1  christos   $as_echo_n "(cached) " >&6
   18325  1.1  christos else
   18326  1.1  christos   case $FSTRM_CAPTURE in
   18327  1.1  christos   [\\/]* | ?:[\\/]*)
   18328  1.1  christos   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18329  1.1  christos   ;;
   18330  1.1  christos   *)
   18331  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18332  1.1  christos for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18333  1.1  christos do
   18334  1.1  christos   IFS=$as_save_IFS
   18335  1.1  christos   test -z "$as_dir" && as_dir=.
   18336  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18337  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18338  1.1  christos     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18339  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18340  1.1  christos     break 2
   18341  1.1  christos   fi
   18342  1.1  christos done
   18343  1.1  christos   done
   18344  1.1  christos IFS=$as_save_IFS
   18345  1.1  christos 
   18346  1.1  christos   ;;
   18347  1.1  christos esac
   18348  1.1  christos fi
   18349  1.1  christos FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18350  1.1  christos if test -n "$FSTRM_CAPTURE"; then
   18351  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18352  1.1  christos $as_echo "$FSTRM_CAPTURE" >&6; }
   18353  1.1  christos else
   18354  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18355  1.1  christos $as_echo "no" >&6; }
   18356  1.1  christos fi
   18357  1.1  christos 
   18358  1.1  christos 
   18359  1.1  christos 
   18360  1.1  christos else
   18361  1.1  christos 
   18362  1.1  christos 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18363  1.1  christos set dummy fstrm_capture; ac_word=$2
   18364  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18365  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18366  1.1  christos if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18367  1.1  christos   $as_echo_n "(cached) " >&6
   18368  1.1  christos else
   18369  1.1  christos   case $FSTRM_CAPTURE in
   18370  1.1  christos   [\\/]* | ?:[\\/]*)
   18371  1.1  christos   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18372  1.1  christos   ;;
   18373  1.1  christos   *)
   18374  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18375  1.1  christos for as_dir in $PATH
   18376  1.1  christos do
   18377  1.1  christos   IFS=$as_save_IFS
   18378  1.1  christos   test -z "$as_dir" && as_dir=.
   18379  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18380  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18381  1.1  christos     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18382  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18383  1.1  christos     break 2
   18384  1.1  christos   fi
   18385  1.1  christos done
   18386  1.1  christos   done
   18387  1.1  christos IFS=$as_save_IFS
   18388  1.1  christos 
   18389  1.1  christos   ;;
   18390  1.1  christos esac
   18391  1.1  christos fi
   18392  1.1  christos FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18393  1.1  christos if test -n "$FSTRM_CAPTURE"; then
   18394  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18395  1.1  christos $as_echo "$FSTRM_CAPTURE" >&6; }
   18396  1.1  christos else
   18397  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18398  1.1  christos $as_echo "no" >&6; }
   18399  1.1  christos fi
   18400  1.1  christos 
   18401  1.1  christos 
   18402  1.1  christos 
   18403  1.1  christos fi
   18404  1.1  christos 
   18405  1.1  christos 
   18406  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   18407  1.1  christos $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   18408  1.1  christos if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18409  1.1  christos   $as_echo_n "(cached) " >&6
   18410  1.1  christos else
   18411  1.1  christos   ac_func_search_save_LIBS=$LIBS
   18412  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18413  1.1  christos /* end confdefs.h.  */
   18414  1.1  christos 
   18415  1.1  christos /* Override any GCC internal prototype to avoid an error.
   18416  1.1  christos    Use char because int might match the return type of a GCC
   18417  1.1  christos    builtin and then its argument prototype would still apply.  */
   18418  1.1  christos #ifdef __cplusplus
   18419  1.1  christos extern "C"
   18420  1.1  christos #endif
   18421  1.1  christos char fstrm_iothr_init ();
   18422  1.1  christos int
   18423  1.1  christos main ()
   18424  1.1  christos {
   18425  1.1  christos return fstrm_iothr_init ();
   18426  1.1  christos   ;
   18427  1.1  christos   return 0;
   18428  1.1  christos }
   18429  1.1  christos _ACEOF
   18430  1.1  christos for ac_lib in '' fstrm; do
   18431  1.1  christos   if test -z "$ac_lib"; then
   18432  1.1  christos     ac_res="none required"
   18433  1.1  christos   else
   18434  1.1  christos     ac_res=-l$ac_lib
   18435  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18436  1.1  christos   fi
   18437  1.1  christos   if ac_fn_c_try_link "$LINENO"; then :
   18438  1.1  christos   ac_cv_search_fstrm_iothr_init=$ac_res
   18439  1.1  christos fi
   18440  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   18441  1.1  christos     conftest$ac_exeext
   18442  1.1  christos   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18443  1.1  christos   break
   18444  1.1  christos fi
   18445  1.1  christos done
   18446  1.1  christos if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18447  1.1  christos 
   18448  1.1  christos else
   18449  1.1  christos   ac_cv_search_fstrm_iothr_init=no
   18450  1.1  christos fi
   18451  1.1  christos rm conftest.$ac_ext
   18452  1.1  christos LIBS=$ac_func_search_save_LIBS
   18453  1.1  christos fi
   18454  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   18455  1.1  christos $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   18456  1.1  christos ac_res=$ac_cv_search_fstrm_iothr_init
   18457  1.1  christos if test "$ac_res" != no; then :
   18458  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18459  1.1  christos 
   18460  1.1  christos else
   18461  1.1  christos   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   18462  1.1  christos fi
   18463  1.1  christos 
   18464  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   18465  1.1  christos $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   18466  1.1  christos if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18467  1.1  christos   $as_echo_n "(cached) " >&6
   18468  1.1  christos else
   18469  1.1  christos   ac_func_search_save_LIBS=$LIBS
   18470  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18471  1.1  christos /* end confdefs.h.  */
   18472  1.1  christos 
   18473  1.1  christos /* Override any GCC internal prototype to avoid an error.
   18474  1.1  christos    Use char because int might match the return type of a GCC
   18475  1.1  christos    builtin and then its argument prototype would still apply.  */
   18476  1.1  christos #ifdef __cplusplus
   18477  1.1  christos extern "C"
   18478  1.1  christos #endif
   18479  1.1  christos char protobuf_c_message_pack ();
   18480  1.1  christos int
   18481  1.1  christos main ()
   18482  1.1  christos {
   18483  1.1  christos return protobuf_c_message_pack ();
   18484  1.1  christos   ;
   18485  1.1  christos   return 0;
   18486  1.1  christos }
   18487  1.1  christos _ACEOF
   18488  1.1  christos for ac_lib in '' protobuf-c; do
   18489  1.1  christos   if test -z "$ac_lib"; then
   18490  1.1  christos     ac_res="none required"
   18491  1.1  christos   else
   18492  1.1  christos     ac_res=-l$ac_lib
   18493  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18494  1.1  christos   fi
   18495  1.1  christos   if ac_fn_c_try_link "$LINENO"; then :
   18496  1.1  christos   ac_cv_search_protobuf_c_message_pack=$ac_res
   18497  1.1  christos fi
   18498  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   18499  1.1  christos     conftest$ac_exeext
   18500  1.1  christos   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18501  1.1  christos   break
   18502  1.1  christos fi
   18503  1.1  christos done
   18504  1.1  christos if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18505  1.1  christos 
   18506  1.1  christos else
   18507  1.1  christos   ac_cv_search_protobuf_c_message_pack=no
   18508  1.1  christos fi
   18509  1.1  christos rm conftest.$ac_ext
   18510  1.1  christos LIBS=$ac_func_search_save_LIBS
   18511  1.1  christos fi
   18512  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   18513  1.1  christos $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   18514  1.1  christos ac_res=$ac_cv_search_protobuf_c_message_pack
   18515  1.1  christos if test "$ac_res" != no; then :
   18516  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18517  1.1  christos 
   18518  1.1  christos else
   18519  1.1  christos   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   18520  1.1  christos fi
   18521  1.1  christos 
   18522  1.1  christos 
   18523  1.1  christos 
   18524  1.1  christos $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   18525  1.1  christos 
   18526  1.1  christos 	DNSTAP=dnstap
   18527  1.1  christos 	DNSTAPSRCS='${DNSTAPSRCS}'
   18528  1.1  christos 	DNSTAPOBJS='${DNSTAPOBJS}'
   18529  1.1  christos 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   18530  1.1  christos 	DNSTAP_PB_C_H="dnstap.pb-c.h"
   18531  1.1  christos fi
   18532  1.1  christos 
   18533  1.1  christos 
   18534  1.1  christos 
   18535  1.1  christos 
   18536  1.1  christos 
   18537  1.1  christos 
   18538  1.1  christos #
   18539  1.1  christos #  The following sets up how non-blocking i/o is established.
   18540  1.3  christos #  cygwin and solaris 2.x (x<5) require special handling.
   18541  1.1  christos #
   18542  1.1  christos case "$host" in
   18543  1.1  christos *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   18544  1.1  christos ;;
   18545  1.1  christos *-solaris2.[01234])
   18546  1.1  christos 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18547  1.1  christos 
   18548  1.1  christos 
   18549  1.1  christos $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   18550  1.1  christos 
   18551  1.1  christos 	;;
   18552  1.1  christos *)
   18553  1.1  christos $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18554  1.1  christos 
   18555  1.1  christos 	;;
   18556  1.1  christos esac
   18557  1.1  christos #
   18558  1.1  christos # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   18559  1.1  christos # This prevents the source address being set.
   18560  1.1  christos #
   18561  1.1  christos case "$host" in
   18562  1.1  christos *-solaris2.[012345]|*-solaris2.5.1)
   18563  1.1  christos 
   18564  1.1  christos $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   18565  1.1  christos 
   18566  1.1  christos 	;;
   18567  1.1  christos esac
   18568  1.1  christos #
   18569  1.1  christos # The following sections deal with tools used for formatting
   18570  1.1  christos # the documentation.  They are all optional, unless you are
   18571  1.1  christos # a developer editing the documentation source.
   18572  1.1  christos #
   18573  1.1  christos 
   18574  1.1  christos #
   18575  1.1  christos # Look for TeX.
   18576  1.1  christos #
   18577  1.1  christos 
   18578  1.1  christos for ac_prog in latex
   18579  1.1  christos do
   18580  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18581  1.1  christos set dummy $ac_prog; ac_word=$2
   18582  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18583  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18584  1.1  christos if ${ac_cv_path_LATEX+:} false; then :
   18585  1.1  christos   $as_echo_n "(cached) " >&6
   18586  1.1  christos else
   18587  1.1  christos   case $LATEX in
   18588  1.1  christos   [\\/]* | ?:[\\/]*)
   18589  1.1  christos   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
   18590  1.1  christos   ;;
   18591  1.1  christos   *)
   18592  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18593  1.1  christos for as_dir in $PATH
   18594  1.1  christos do
   18595  1.1  christos   IFS=$as_save_IFS
   18596  1.1  christos   test -z "$as_dir" && as_dir=.
   18597  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18598  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18599  1.1  christos     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
   18600  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18601  1.1  christos     break 2
   18602  1.1  christos   fi
   18603  1.1  christos done
   18604  1.1  christos   done
   18605  1.1  christos IFS=$as_save_IFS
   18606  1.1  christos 
   18607  1.1  christos   ;;
   18608  1.1  christos esac
   18609  1.1  christos fi
   18610  1.1  christos LATEX=$ac_cv_path_LATEX
   18611  1.1  christos if test -n "$LATEX"; then
   18612  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
   18613  1.1  christos $as_echo "$LATEX" >&6; }
   18614  1.1  christos else
   18615  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18616  1.1  christos $as_echo "no" >&6; }
   18617  1.1  christos fi
   18618  1.1  christos 
   18619  1.1  christos 
   18620  1.1  christos   test -n "$LATEX" && break
   18621  1.1  christos done
   18622  1.1  christos test -n "$LATEX" || LATEX="latex"
   18623  1.1  christos 
   18624  1.1  christos 
   18625  1.1  christos 
   18626  1.1  christos for ac_prog in pdflatex
   18627  1.1  christos do
   18628  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18629  1.1  christos set dummy $ac_prog; ac_word=$2
   18630  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18631  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18632  1.1  christos if ${ac_cv_path_PDFLATEX+:} false; then :
   18633  1.1  christos   $as_echo_n "(cached) " >&6
   18634  1.1  christos else
   18635  1.1  christos   case $PDFLATEX in
   18636  1.1  christos   [\\/]* | ?:[\\/]*)
   18637  1.1  christos   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   18638  1.1  christos   ;;
   18639  1.1  christos   *)
   18640  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18641  1.1  christos for as_dir in $PATH
   18642  1.1  christos do
   18643  1.1  christos   IFS=$as_save_IFS
   18644  1.1  christos   test -z "$as_dir" && as_dir=.
   18645  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18646  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18647  1.1  christos     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   18648  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18649  1.1  christos     break 2
   18650  1.1  christos   fi
   18651  1.1  christos done
   18652  1.1  christos   done
   18653  1.1  christos IFS=$as_save_IFS
   18654  1.1  christos 
   18655  1.1  christos   ;;
   18656  1.1  christos esac
   18657  1.1  christos fi
   18658  1.1  christos PDFLATEX=$ac_cv_path_PDFLATEX
   18659  1.1  christos if test -n "$PDFLATEX"; then
   18660  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   18661  1.1  christos $as_echo "$PDFLATEX" >&6; }
   18662  1.1  christos else
   18663  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18664  1.1  christos $as_echo "no" >&6; }
   18665  1.1  christos fi
   18666  1.1  christos 
   18667  1.1  christos 
   18668  1.1  christos   test -n "$PDFLATEX" && break
   18669  1.1  christos done
   18670  1.1  christos test -n "$PDFLATEX" || PDFLATEX="pdflatex"
   18671  1.1  christos 
   18672  1.1  christos 
   18673  1.1  christos 
   18674  1.1  christos for ac_prog in dblatex
   18675  1.1  christos do
   18676  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18677  1.1  christos set dummy $ac_prog; ac_word=$2
   18678  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18679  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18680  1.1  christos if ${ac_cv_path_DBLATEX+:} false; then :
   18681  1.1  christos   $as_echo_n "(cached) " >&6
   18682  1.1  christos else
   18683  1.1  christos   case $DBLATEX in
   18684  1.1  christos   [\\/]* | ?:[\\/]*)
   18685  1.1  christos   ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
   18686  1.1  christos   ;;
   18687  1.1  christos   *)
   18688  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18689  1.1  christos for as_dir in $PATH
   18690  1.1  christos do
   18691  1.1  christos   IFS=$as_save_IFS
   18692  1.1  christos   test -z "$as_dir" && as_dir=.
   18693  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18694  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18695  1.1  christos     ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
   18696  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18697  1.1  christos     break 2
   18698  1.1  christos   fi
   18699  1.1  christos done
   18700  1.1  christos   done
   18701  1.1  christos IFS=$as_save_IFS
   18702  1.1  christos 
   18703  1.1  christos   ;;
   18704  1.1  christos esac
   18705  1.1  christos fi
   18706  1.1  christos DBLATEX=$ac_cv_path_DBLATEX
   18707  1.1  christos if test -n "$DBLATEX"; then
   18708  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
   18709  1.1  christos $as_echo "$DBLATEX" >&6; }
   18710  1.1  christos else
   18711  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18712  1.1  christos $as_echo "no" >&6; }
   18713  1.1  christos fi
   18714  1.1  christos 
   18715  1.1  christos 
   18716  1.1  christos   test -n "$DBLATEX" && break
   18717  1.1  christos done
   18718  1.1  christos test -n "$DBLATEX" || DBLATEX="dblatex"
   18719  1.1  christos 
   18720  1.1  christos 
   18721  1.1  christos 
   18722  1.1  christos #
   18723  1.1  christos # Look for w3m
   18724  1.1  christos #
   18725  1.1  christos 
   18726  1.1  christos for ac_prog in w3m
   18727  1.1  christos do
   18728  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18729  1.1  christos set dummy $ac_prog; ac_word=$2
   18730  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18731  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18732  1.1  christos if ${ac_cv_path_W3M+:} false; then :
   18733  1.1  christos   $as_echo_n "(cached) " >&6
   18734  1.1  christos else
   18735  1.1  christos   case $W3M in
   18736  1.1  christos   [\\/]* | ?:[\\/]*)
   18737  1.1  christos   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
   18738  1.1  christos   ;;
   18739  1.1  christos   *)
   18740  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18741  1.1  christos for as_dir in $PATH
   18742  1.1  christos do
   18743  1.1  christos   IFS=$as_save_IFS
   18744  1.1  christos   test -z "$as_dir" && as_dir=.
   18745  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18746  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18747  1.1  christos     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
   18748  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18749  1.1  christos     break 2
   18750  1.1  christos   fi
   18751  1.1  christos done
   18752  1.1  christos   done
   18753  1.1  christos IFS=$as_save_IFS
   18754  1.1  christos 
   18755  1.1  christos   ;;
   18756  1.1  christos esac
   18757  1.1  christos fi
   18758  1.1  christos W3M=$ac_cv_path_W3M
   18759  1.1  christos if test -n "$W3M"; then
   18760  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
   18761  1.1  christos $as_echo "$W3M" >&6; }
   18762  1.1  christos else
   18763  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18764  1.1  christos $as_echo "no" >&6; }
   18765  1.1  christos fi
   18766  1.1  christos 
   18767  1.1  christos 
   18768  1.1  christos   test -n "$W3M" && break
   18769  1.1  christos done
   18770  1.1  christos test -n "$W3M" || W3M="w3m"
   18771  1.1  christos 
   18772  1.1  christos 
   18773  1.1  christos 
   18774  1.1  christos #
   18775  1.1  christos # Look for pandoc
   18776  1.1  christos #
   18777  1.1  christos # Extract the first word of "pandoc", so it can be a program name with args.
   18778  1.1  christos set dummy pandoc; ac_word=$2
   18779  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18780  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18781  1.1  christos if ${ac_cv_path_PANDOC+:} false; then :
   18782  1.1  christos   $as_echo_n "(cached) " >&6
   18783  1.1  christos else
   18784  1.1  christos   case $PANDOC in
   18785  1.1  christos   [\\/]* | ?:[\\/]*)
   18786  1.1  christos   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
   18787  1.1  christos   ;;
   18788  1.1  christos   *)
   18789  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18790  1.1  christos for as_dir in $PATH
   18791  1.1  christos do
   18792  1.1  christos   IFS=$as_save_IFS
   18793  1.1  christos   test -z "$as_dir" && as_dir=.
   18794  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18795  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18796  1.1  christos     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
   18797  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18798  1.1  christos     break 2
   18799  1.1  christos   fi
   18800  1.1  christos done
   18801  1.1  christos   done
   18802  1.1  christos IFS=$as_save_IFS
   18803  1.1  christos 
   18804  1.1  christos   test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
   18805  1.1  christos   ;;
   18806  1.1  christos esac
   18807  1.1  christos fi
   18808  1.1  christos PANDOC=$ac_cv_path_PANDOC
   18809  1.1  christos if test -n "$PANDOC"; then
   18810  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
   18811  1.1  christos $as_echo "$PANDOC" >&6; }
   18812  1.1  christos else
   18813  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18814  1.1  christos $as_echo "no" >&6; }
   18815  1.1  christos fi
   18816  1.1  christos 
   18817  1.1  christos 
   18818  1.1  christos 
   18819  1.1  christos 
   18820  1.1  christos 
   18821  1.1  christos #
   18822  1.1  christos # Look for xsltproc (libxslt)
   18823  1.1  christos #
   18824  1.1  christos 
   18825  1.1  christos # Extract the first word of "xsltproc", so it can be a program name with args.
   18826  1.1  christos set dummy xsltproc; ac_word=$2
   18827  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18828  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18829  1.1  christos if ${ac_cv_path_XSLTPROC+:} false; then :
   18830  1.1  christos   $as_echo_n "(cached) " >&6
   18831  1.1  christos else
   18832  1.1  christos   case $XSLTPROC in
   18833  1.1  christos   [\\/]* | ?:[\\/]*)
   18834  1.1  christos   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   18835  1.1  christos   ;;
   18836  1.1  christos   *)
   18837  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18838  1.1  christos for as_dir in $PATH
   18839  1.1  christos do
   18840  1.1  christos   IFS=$as_save_IFS
   18841  1.1  christos   test -z "$as_dir" && as_dir=.
   18842  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18843  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18844  1.1  christos     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   18845  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18846  1.1  christos     break 2
   18847  1.1  christos   fi
   18848  1.1  christos done
   18849  1.1  christos   done
   18850  1.1  christos IFS=$as_save_IFS
   18851  1.1  christos 
   18852  1.1  christos   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
   18853  1.1  christos   ;;
   18854  1.1  christos esac
   18855  1.1  christos fi
   18856  1.1  christos XSLTPROC=$ac_cv_path_XSLTPROC
   18857  1.1  christos if test -n "$XSLTPROC"; then
   18858  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   18859  1.1  christos $as_echo "$XSLTPROC" >&6; }
   18860  1.1  christos else
   18861  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18862  1.1  christos $as_echo "no" >&6; }
   18863  1.1  christos fi
   18864  1.1  christos 
   18865  1.1  christos 
   18866  1.1  christos 
   18867  1.1  christos 
   18868  1.1  christos #
   18869  1.1  christos # Look for xmllint (libxml2)
   18870  1.1  christos #
   18871  1.1  christos 
   18872  1.1  christos # Extract the first word of "xmllint", so it can be a program name with args.
   18873  1.1  christos set dummy xmllint; ac_word=$2
   18874  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18875  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18876  1.1  christos if ${ac_cv_path_XMLLINT+:} false; then :
   18877  1.1  christos   $as_echo_n "(cached) " >&6
   18878  1.1  christos else
   18879  1.1  christos   case $XMLLINT in
   18880  1.1  christos   [\\/]* | ?:[\\/]*)
   18881  1.1  christos   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
   18882  1.1  christos   ;;
   18883  1.1  christos   *)
   18884  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18885  1.1  christos for as_dir in $PATH
   18886  1.1  christos do
   18887  1.1  christos   IFS=$as_save_IFS
   18888  1.1  christos   test -z "$as_dir" && as_dir=.
   18889  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18890  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18891  1.1  christos     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
   18892  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18893  1.1  christos     break 2
   18894  1.1  christos   fi
   18895  1.1  christos done
   18896  1.1  christos   done
   18897  1.1  christos IFS=$as_save_IFS
   18898  1.1  christos 
   18899  1.1  christos   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
   18900  1.1  christos   ;;
   18901  1.1  christos esac
   18902  1.1  christos fi
   18903  1.1  christos XMLLINT=$ac_cv_path_XMLLINT
   18904  1.1  christos if test -n "$XMLLINT"; then
   18905  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
   18906  1.1  christos $as_echo "$XMLLINT" >&6; }
   18907  1.1  christos else
   18908  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18909  1.1  christos $as_echo "no" >&6; }
   18910  1.1  christos fi
   18911  1.1  christos 
   18912  1.1  christos 
   18913  1.1  christos 
   18914  1.1  christos 
   18915  1.1  christos #
   18916  1.1  christos # Look for Doxygen
   18917  1.1  christos #
   18918  1.1  christos 
   18919  1.1  christos # Extract the first word of "doxygen", so it can be a program name with args.
   18920  1.1  christos set dummy doxygen; ac_word=$2
   18921  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18922  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18923  1.1  christos if ${ac_cv_path_DOXYGEN+:} false; then :
   18924  1.1  christos   $as_echo_n "(cached) " >&6
   18925  1.1  christos else
   18926  1.1  christos   case $DOXYGEN in
   18927  1.1  christos   [\\/]* | ?:[\\/]*)
   18928  1.1  christos   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   18929  1.1  christos   ;;
   18930  1.1  christos   *)
   18931  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18932  1.1  christos for as_dir in $PATH
   18933  1.1  christos do
   18934  1.1  christos   IFS=$as_save_IFS
   18935  1.1  christos   test -z "$as_dir" && as_dir=.
   18936  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18937  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18938  1.1  christos     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   18939  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18940  1.1  christos     break 2
   18941  1.1  christos   fi
   18942  1.1  christos done
   18943  1.1  christos   done
   18944  1.1  christos IFS=$as_save_IFS
   18945  1.1  christos 
   18946  1.1  christos   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
   18947  1.1  christos   ;;
   18948  1.1  christos esac
   18949  1.1  christos fi
   18950  1.1  christos DOXYGEN=$ac_cv_path_DOXYGEN
   18951  1.1  christos if test -n "$DOXYGEN"; then
   18952  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   18953  1.1  christos $as_echo "$DOXYGEN" >&6; }
   18954  1.1  christos else
   18955  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18956  1.1  christos $as_echo "no" >&6; }
   18957  1.1  christos fi
   18958  1.1  christos 
   18959  1.1  christos 
   18960  1.1  christos 
   18961  1.1  christos 
   18962  1.1  christos #
   18963  1.1  christos # Look for curl
   18964  1.1  christos #
   18965  1.1  christos 
   18966  1.1  christos # Extract the first word of "curl", so it can be a program name with args.
   18967  1.1  christos set dummy curl; ac_word=$2
   18968  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18969  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   18970  1.1  christos if ${ac_cv_path_CURL+:} false; then :
   18971  1.1  christos   $as_echo_n "(cached) " >&6
   18972  1.1  christos else
   18973  1.1  christos   case $CURL in
   18974  1.1  christos   [\\/]* | ?:[\\/]*)
   18975  1.1  christos   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   18976  1.1  christos   ;;
   18977  1.1  christos   *)
   18978  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18979  1.1  christos for as_dir in $PATH
   18980  1.1  christos do
   18981  1.1  christos   IFS=$as_save_IFS
   18982  1.1  christos   test -z "$as_dir" && as_dir=.
   18983  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   18984  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18985  1.1  christos     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   18986  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18987  1.1  christos     break 2
   18988  1.1  christos   fi
   18989  1.1  christos done
   18990  1.1  christos   done
   18991  1.1  christos IFS=$as_save_IFS
   18992  1.1  christos 
   18993  1.1  christos   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   18994  1.1  christos   ;;
   18995  1.1  christos esac
   18996  1.1  christos fi
   18997  1.1  christos CURL=$ac_cv_path_CURL
   18998  1.1  christos if test -n "$CURL"; then
   18999  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   19000  1.1  christos $as_echo "$CURL" >&6; }
   19001  1.1  christos else
   19002  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19003  1.1  christos $as_echo "no" >&6; }
   19004  1.1  christos fi
   19005  1.1  christos 
   19006  1.1  christos 
   19007  1.1  christos 
   19008  1.1  christos 
   19009  1.1  christos #
   19010  1.1  christos # Subroutine for searching for an ordinary file (e.g., a stylesheet)
   19011  1.1  christos # in a number of directories:
   19012  1.1  christos #
   19013  1.1  christos #   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
   19014  1.1  christos #
   19015  1.1  christos # If the file FILENAME is found in one of the DIRECTORIES, the shell
   19016  1.1  christos # variable VARIABLE is defined to its absolute pathname.  Otherwise,
   19017  1.1  christos # it is set to FILENAME, with no directory prefix (that's not terribly
   19018  1.1  christos # useful, but looks less confusing in substitutions than leaving it
   19019  1.1  christos # empty).  The variable VARIABLE will be substituted into output files.
   19020  1.1  christos #
   19021  1.1  christos 
   19022  1.1  christos 
   19023  1.1  christos 
   19024  1.1  christos #
   19025  1.1  christos # Look for Docbook-XSL stylesheets.  Location probably varies by system.
   19026  1.1  christos # If it's not explicitly specified, guess where it might be found, based on
   19027  1.1  christos # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
   19028  1.1  christos # of at the moment).
   19029  1.1  christos #
   19030  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
   19031  1.1  christos $as_echo_n "checking for Docbook-XSL path... " >&6; }
   19032  1.1  christos 
   19033  1.1  christos # Check whether --with-docbook-xsl was given.
   19034  1.1  christos if test "${with_docbook_xsl+set}" = set; then :
   19035  1.1  christos   withval=$with_docbook_xsl; docbook_path="$withval"
   19036  1.1  christos else
   19037  1.1  christos   docbook_path="auto"
   19038  1.1  christos fi
   19039  1.1  christos 
   19040  1.1  christos case "$docbook_path" in
   19041  1.1  christos auto)
   19042  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
   19043  1.1  christos $as_echo "auto" >&6; }
   19044  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"
   19045  1.1  christos 	;;
   19046  1.1  christos *)
   19047  1.1  christos 	docbook_xsl_trees="$withval"
   19048  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
   19049  1.1  christos $as_echo "$docbook_xsl_trees" >&6; }
   19050  1.1  christos 	;;
   19051  1.1  christos esac
   19052  1.1  christos 
   19053  1.1  christos #
   19054  1.1  christos # Look for stylesheets we need.
   19055  1.1  christos #
   19056  1.1  christos 
   19057  1.1  christos 
   19058  1.1  christos XSLT_DOCBOOK_STYLE_HTML=""
   19059  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
   19060  1.1  christos $as_echo_n "checking for html/docbook.xsl... " >&6; }
   19061  1.1  christos for d in $docbook_xsl_trees
   19062  1.1  christos do
   19063  1.1  christos 	f=$d/html/docbook.xsl
   19064  1.1  christos 	if test -f $f
   19065  1.1  christos 	then
   19066  1.1  christos 		XSLT_DOCBOOK_STYLE_HTML=$f
   19067  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19068  1.1  christos $as_echo "$f" >&6; }
   19069  1.1  christos 		break
   19070  1.1  christos 	fi
   19071  1.1  christos done
   19072  1.1  christos if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
   19073  1.1  christos then
   19074  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19075  1.1  christos $as_echo "\"not found\"" >&6; };
   19076  1.1  christos 	XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
   19077  1.1  christos fi
   19078  1.1  christos 
   19079  1.1  christos 
   19080  1.1  christos 
   19081  1.1  christos XSLT_DOCBOOK_STYLE_XHTML=""
   19082  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
   19083  1.1  christos $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
   19084  1.1  christos for d in $docbook_xsl_trees
   19085  1.1  christos do
   19086  1.1  christos 	f=$d/xhtml/docbook.xsl
   19087  1.1  christos 	if test -f $f
   19088  1.1  christos 	then
   19089  1.1  christos 		XSLT_DOCBOOK_STYLE_XHTML=$f
   19090  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19091  1.1  christos $as_echo "$f" >&6; }
   19092  1.1  christos 		break
   19093  1.1  christos 	fi
   19094  1.1  christos done
   19095  1.1  christos if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
   19096  1.1  christos then
   19097  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19098  1.1  christos $as_echo "\"not found\"" >&6; };
   19099  1.1  christos 	XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
   19100  1.1  christos fi
   19101  1.1  christos 
   19102  1.1  christos 
   19103  1.1  christos 
   19104  1.1  christos XSLT_DOCBOOK_STYLE_MAN=""
   19105  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
   19106  1.1  christos $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
   19107  1.1  christos for d in $docbook_xsl_trees
   19108  1.1  christos do
   19109  1.1  christos 	f=$d/manpages/docbook.xsl
   19110  1.1  christos 	if test -f $f
   19111  1.1  christos 	then
   19112  1.1  christos 		XSLT_DOCBOOK_STYLE_MAN=$f
   19113  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19114  1.1  christos $as_echo "$f" >&6; }
   19115  1.1  christos 		break
   19116  1.1  christos 	fi
   19117  1.1  christos done
   19118  1.1  christos if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
   19119  1.1  christos then
   19120  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19121  1.1  christos $as_echo "\"not found\"" >&6; };
   19122  1.1  christos 	XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
   19123  1.1  christos fi
   19124  1.1  christos 
   19125  1.1  christos 
   19126  1.1  christos 
   19127  1.1  christos XSLT_DOCBOOK_CHUNK_HTML=""
   19128  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
   19129  1.1  christos $as_echo_n "checking for html/chunk.xsl... " >&6; }
   19130  1.1  christos for d in $docbook_xsl_trees
   19131  1.1  christos do
   19132  1.1  christos 	f=$d/html/chunk.xsl
   19133  1.1  christos 	if test -f $f
   19134  1.1  christos 	then
   19135  1.1  christos 		XSLT_DOCBOOK_CHUNK_HTML=$f
   19136  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19137  1.1  christos $as_echo "$f" >&6; }
   19138  1.1  christos 		break
   19139  1.1  christos 	fi
   19140  1.1  christos done
   19141  1.1  christos if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
   19142  1.1  christos then
   19143  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19144  1.1  christos $as_echo "\"not found\"" >&6; };
   19145  1.1  christos 	XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
   19146  1.1  christos fi
   19147  1.1  christos 
   19148  1.1  christos 
   19149  1.1  christos 
   19150  1.1  christos XSLT_DOCBOOK_CHUNK_XHTML=""
   19151  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
   19152  1.1  christos $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
   19153  1.1  christos for d in $docbook_xsl_trees
   19154  1.1  christos do
   19155  1.1  christos 	f=$d/xhtml/chunk.xsl
   19156  1.1  christos 	if test -f $f
   19157  1.1  christos 	then
   19158  1.1  christos 		XSLT_DOCBOOK_CHUNK_XHTML=$f
   19159  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19160  1.1  christos $as_echo "$f" >&6; }
   19161  1.1  christos 		break
   19162  1.1  christos 	fi
   19163  1.1  christos done
   19164  1.1  christos if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
   19165  1.1  christos then
   19166  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19167  1.1  christos $as_echo "\"not found\"" >&6; };
   19168  1.1  christos 	XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
   19169  1.1  christos fi
   19170  1.1  christos 
   19171  1.1  christos 
   19172  1.1  christos 
   19173  1.1  christos XSLT_DOCBOOK_CHUNKTOC_HTML=""
   19174  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
   19175  1.1  christos $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
   19176  1.1  christos for d in $docbook_xsl_trees
   19177  1.1  christos do
   19178  1.1  christos 	f=$d/html/chunktoc.xsl
   19179  1.1  christos 	if test -f $f
   19180  1.1  christos 	then
   19181  1.1  christos 		XSLT_DOCBOOK_CHUNKTOC_HTML=$f
   19182  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19183  1.1  christos $as_echo "$f" >&6; }
   19184  1.1  christos 		break
   19185  1.1  christos 	fi
   19186  1.1  christos done
   19187  1.1  christos if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
   19188  1.1  christos then
   19189  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19190  1.1  christos $as_echo "\"not found\"" >&6; };
   19191  1.1  christos 	XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
   19192  1.1  christos fi
   19193  1.1  christos 
   19194  1.1  christos 
   19195  1.1  christos 
   19196  1.1  christos XSLT_DOCBOOK_CHUNKTOC_XHTML=""
   19197  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
   19198  1.1  christos $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
   19199  1.1  christos for d in $docbook_xsl_trees
   19200  1.1  christos do
   19201  1.1  christos 	f=$d/xhtml/chunktoc.xsl
   19202  1.1  christos 	if test -f $f
   19203  1.1  christos 	then
   19204  1.1  christos 		XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
   19205  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19206  1.1  christos $as_echo "$f" >&6; }
   19207  1.1  christos 		break
   19208  1.1  christos 	fi
   19209  1.1  christos done
   19210  1.1  christos if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
   19211  1.1  christos then
   19212  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19213  1.1  christos $as_echo "\"not found\"" >&6; };
   19214  1.1  christos 	XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
   19215  1.1  christos fi
   19216  1.1  christos 
   19217  1.1  christos 
   19218  1.1  christos 
   19219  1.1  christos XSLT_DOCBOOK_MAKETOC_HTML=""
   19220  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
   19221  1.1  christos $as_echo_n "checking for html/maketoc.xsl... " >&6; }
   19222  1.1  christos for d in $docbook_xsl_trees
   19223  1.1  christos do
   19224  1.1  christos 	f=$d/html/maketoc.xsl
   19225  1.1  christos 	if test -f $f
   19226  1.1  christos 	then
   19227  1.1  christos 		XSLT_DOCBOOK_MAKETOC_HTML=$f
   19228  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19229  1.1  christos $as_echo "$f" >&6; }
   19230  1.1  christos 		break
   19231  1.1  christos 	fi
   19232  1.1  christos done
   19233  1.1  christos if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
   19234  1.1  christos then
   19235  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19236  1.1  christos $as_echo "\"not found\"" >&6; };
   19237  1.1  christos 	XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
   19238  1.1  christos fi
   19239  1.1  christos 
   19240  1.1  christos 
   19241  1.1  christos 
   19242  1.1  christos XSLT_DOCBOOK_MAKETOC_XHTML=""
   19243  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
   19244  1.1  christos $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
   19245  1.1  christos for d in $docbook_xsl_trees
   19246  1.1  christos do
   19247  1.1  christos 	f=$d/xhtml/maketoc.xsl
   19248  1.1  christos 	if test -f $f
   19249  1.1  christos 	then
   19250  1.1  christos 		XSLT_DOCBOOK_MAKETOC_XHTML=$f
   19251  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19252  1.1  christos $as_echo "$f" >&6; }
   19253  1.1  christos 		break
   19254  1.1  christos 	fi
   19255  1.1  christos done
   19256  1.1  christos if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
   19257  1.1  christos then
   19258  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19259  1.1  christos $as_echo "\"not found\"" >&6; };
   19260  1.1  christos 	XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
   19261  1.1  christos fi
   19262  1.1  christos 
   19263  1.1  christos 
   19264  1.1  christos 
   19265  1.1  christos #
   19266  1.1  christos # Same dance for dblatex
   19267  1.1  christos #
   19268  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"
   19269  1.1  christos 
   19270  1.1  christos XSLT_DBLATEX_STYLE=""
   19271  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/docbook.xsl" >&5
   19272  1.1  christos $as_echo_n "checking for xsl/docbook.xsl... " >&6; }
   19273  1.1  christos for d in $dblatex_xsl_trees
   19274  1.1  christos do
   19275  1.1  christos 	f=$d/xsl/docbook.xsl
   19276  1.1  christos 	if test -f $f
   19277  1.1  christos 	then
   19278  1.1  christos 		XSLT_DBLATEX_STYLE=$f
   19279  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19280  1.1  christos $as_echo "$f" >&6; }
   19281  1.1  christos 		break
   19282  1.1  christos 	fi
   19283  1.1  christos done
   19284  1.1  christos if test "X$XSLT_DBLATEX_STYLE" = "X"
   19285  1.1  christos then
   19286  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19287  1.1  christos $as_echo "\"not found\"" >&6; };
   19288  1.1  christos 	XSLT_DBLATEX_STYLE=xsl/docbook.xsl
   19289  1.1  christos fi
   19290  1.1  christos 
   19291  1.1  christos 
   19292  1.1  christos 
   19293  1.1  christos XSLT_DBLATEX_FASTBOOK=""
   19294  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/latex_book_fast.xsl" >&5
   19295  1.1  christos $as_echo_n "checking for xsl/latex_book_fast.xsl... " >&6; }
   19296  1.1  christos for d in $dblatex_xsl_trees
   19297  1.1  christos do
   19298  1.1  christos 	f=$d/xsl/latex_book_fast.xsl
   19299  1.1  christos 	if test -f $f
   19300  1.1  christos 	then
   19301  1.1  christos 		XSLT_DBLATEX_FASTBOOK=$f
   19302  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19303  1.1  christos $as_echo "$f" >&6; }
   19304  1.1  christos 		break
   19305  1.1  christos 	fi
   19306  1.1  christos done
   19307  1.1  christos if test "X$XSLT_DBLATEX_FASTBOOK" = "X"
   19308  1.1  christos then
   19309  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19310  1.1  christos $as_echo "\"not found\"" >&6; };
   19311  1.1  christos 	XSLT_DBLATEX_FASTBOOK=xsl/latex_book_fast.xsl
   19312  1.1  christos fi
   19313  1.1  christos 
   19314  1.1  christos 
   19315  1.1  christos 
   19316  1.1  christos #
   19317  1.3  christos # IDN support using libidn2
   19318  1.1  christos #
   19319  1.1  christos 
   19320  1.3  christos LIBIDN2_CFLAGS=
   19321  1.3  christos LIBIDN2_LDFLAGS=
   19322  1.3  christos LIBIDN2_LIBS=
   19323  1.3  christos 
   19324  1.3  christos # Check whether --with-libidn2 was given.
   19325  1.3  christos if test "${with_libidn2+set}" = set; then :
   19326  1.3  christos   withval=$with_libidn2; with_libidn2="$withval"
   19327  1.3  christos else
   19328  1.3  christos   with_libidn2="no"
   19329  1.3  christos fi
   19330  1.3  christos 
   19331  1.3  christos case $with_libidn2 in #(
   19332  1.3  christos   yes) :
   19333  1.3  christos 
   19334  1.3  christos pkg_failed=no
   19335  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   19336  1.3  christos $as_echo_n "checking for libidn2... " >&6; }
   19337  1.3  christos 
   19338  1.3  christos if test -n "$LIBIDN2_CFLAGS"; then
   19339  1.3  christos     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   19340  1.3  christos  elif test -n "$PKG_CONFIG"; then
   19341  1.3  christos     if test -n "$PKG_CONFIG" && \
   19342  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19343  1.3  christos   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19344  1.3  christos   ac_status=$?
   19345  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19346  1.3  christos   test $ac_status = 0; }; then
   19347  1.3  christos   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   19348  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19349  1.3  christos else
   19350  1.3  christos   pkg_failed=yes
   19351  1.3  christos fi
   19352  1.3  christos  else
   19353  1.3  christos     pkg_failed=untried
   19354  1.3  christos fi
   19355  1.3  christos if test -n "$LIBIDN2_LIBS"; then
   19356  1.3  christos     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   19357  1.3  christos  elif test -n "$PKG_CONFIG"; then
   19358  1.3  christos     if test -n "$PKG_CONFIG" && \
   19359  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19360  1.3  christos   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19361  1.3  christos   ac_status=$?
   19362  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19363  1.3  christos   test $ac_status = 0; }; then
   19364  1.3  christos   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   19365  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19366  1.1  christos else
   19367  1.3  christos   pkg_failed=yes
   19368  1.3  christos fi
   19369  1.3  christos  else
   19370  1.3  christos     pkg_failed=untried
   19371  1.1  christos fi
   19372  1.1  christos 
   19373  1.1  christos 
   19374  1.1  christos 
   19375  1.3  christos if test $pkg_failed = yes; then
   19376  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19377  1.3  christos $as_echo "no" >&6; }
   19378  1.3  christos 
   19379  1.3  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19380  1.3  christos         _pkg_short_errors_supported=yes
   19381  1.1  christos else
   19382  1.3  christos         _pkg_short_errors_supported=no
   19383  1.1  christos fi
   19384  1.3  christos         if test $_pkg_short_errors_supported = yes; then
   19385  1.3  christos 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   19386  1.3  christos         else
   19387  1.3  christos 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   19388  1.3  christos         fi
   19389  1.3  christos 	# Put the nasty error message in config.log where it belongs
   19390  1.3  christos 	echo "$LIBIDN2_PKG_ERRORS" >&5
   19391  1.3  christos 
   19392  1.3  christos 	as_fn_error $? "Package requirements (libidn2) were not met:
   19393  1.3  christos 
   19394  1.3  christos $LIBIDN2_PKG_ERRORS
   19395  1.3  christos 
   19396  1.3  christos Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19397  1.3  christos installed software in a non-standard prefix.
   19398  1.3  christos 
   19399  1.3  christos Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19400  1.3  christos and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19401  1.3  christos See the pkg-config man page for more details." "$LINENO" 5
   19402  1.3  christos elif test $pkg_failed = untried; then
   19403  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19404  1.3  christos $as_echo "no" >&6; }
   19405  1.3  christos 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19406  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19407  1.3  christos as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19408  1.3  christos is in your PATH or set the PKG_CONFIG environment variable to the full
   19409  1.3  christos path to pkg-config.
   19410  1.3  christos 
   19411  1.3  christos Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19412  1.3  christos and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19413  1.3  christos See the pkg-config man page for more details.
   19414  1.1  christos 
   19415  1.3  christos To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19416  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   19417  1.3  christos else
   19418  1.3  christos 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   19419  1.3  christos 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   19420  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19421  1.3  christos $as_echo "yes" >&6; }
   19422  1.3  christos 
   19423  1.3  christos $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19424  1.1  christos 
   19425  1.3  christos fi ;; #(
   19426  1.3  christos   no) :
   19427  1.3  christos      ;; #(
   19428  1.3  christos   *) :
   19429  1.3  christos     save_CFLAGS="$CFLAGS"
   19430  1.3  christos 		 save_CPPFLAGS="$CPPFLAGS"
   19431  1.3  christos 		 save_LDFLAGS="$LDFLAGS"
   19432  1.3  christos 		 save_LIBS="$LIBS"
   19433  1.3  christos 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   19434  1.3  christos 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   19435  1.3  christos 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   19436  1.3  christos 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   19437  1.3  christos 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   19438  1.3  christos 		 for ac_header in idn2.h
   19439  1.3  christos do :
   19440  1.3  christos   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   19441  1.3  christos if test "x$ac_cv_header_idn2_h" = xyes; then :
   19442  1.3  christos   cat >>confdefs.h <<_ACEOF
   19443  1.3  christos #define HAVE_IDN2_H 1
   19444  1.3  christos _ACEOF
   19445  1.1  christos 
   19446  1.3  christos else
   19447  1.3  christos   as_fn_error $? "idn2.h not found" "$LINENO" 5
   19448  1.1  christos fi
   19449  1.1  christos 
   19450  1.3  christos done
   19451  1.3  christos 
   19452  1.3  christos 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   19453  1.3  christos $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   19454  1.3  christos if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19455  1.3  christos   $as_echo_n "(cached) " >&6
   19456  1.3  christos else
   19457  1.3  christos   ac_func_search_save_LIBS=$LIBS
   19458  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19459  1.3  christos /* end confdefs.h.  */
   19460  1.1  christos 
   19461  1.3  christos /* Override any GCC internal prototype to avoid an error.
   19462  1.3  christos    Use char because int might match the return type of a GCC
   19463  1.3  christos    builtin and then its argument prototype would still apply.  */
   19464  1.3  christos #ifdef __cplusplus
   19465  1.3  christos extern "C"
   19466  1.3  christos #endif
   19467  1.3  christos char idn2_to_ascii_lz ();
   19468  1.3  christos int
   19469  1.3  christos main ()
   19470  1.3  christos {
   19471  1.3  christos return idn2_to_ascii_lz ();
   19472  1.3  christos   ;
   19473  1.3  christos   return 0;
   19474  1.3  christos }
   19475  1.3  christos _ACEOF
   19476  1.3  christos for ac_lib in '' idn2; do
   19477  1.3  christos   if test -z "$ac_lib"; then
   19478  1.3  christos     ac_res="none required"
   19479  1.3  christos   else
   19480  1.3  christos     ac_res=-l$ac_lib
   19481  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19482  1.3  christos   fi
   19483  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   19484  1.3  christos   ac_cv_search_idn2_to_ascii_lz=$ac_res
   19485  1.3  christos fi
   19486  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   19487  1.3  christos     conftest$ac_exeext
   19488  1.3  christos   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19489  1.3  christos   break
   19490  1.3  christos fi
   19491  1.3  christos done
   19492  1.3  christos if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19493  1.1  christos 
   19494  1.1  christos else
   19495  1.3  christos   ac_cv_search_idn2_to_ascii_lz=no
   19496  1.3  christos fi
   19497  1.3  christos rm conftest.$ac_ext
   19498  1.3  christos LIBS=$ac_func_search_save_LIBS
   19499  1.1  christos fi
   19500  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   19501  1.3  christos $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   19502  1.3  christos ac_res=$ac_cv_search_idn2_to_ascii_lz
   19503  1.3  christos if test "$ac_res" != no; then :
   19504  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19505  1.3  christos   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   19506  1.1  christos 
   19507  1.3  christos $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19508  1.3  christos 
   19509  1.3  christos else
   19510  1.3  christos   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   19511  1.1  christos fi
   19512  1.1  christos 
   19513  1.3  christos 		 CFLAGS="$save_CFLAGS"
   19514  1.3  christos 		 CPPFLAGS="$save_CPPFLAGS"
   19515  1.3  christos 		 LDFLAGS="$save_LDFLAGS"
   19516  1.3  christos 		 LIBS="$save_LIBS" ;; #(
   19517  1.3  christos   *) :
   19518  1.3  christos      ;;
   19519  1.3  christos esac
   19520  1.1  christos 
   19521  1.1  christos 
   19522  1.1  christos 
   19523  1.1  christos 
   19524  1.1  christos #
   19525  1.3  christos # Check whether to build with cmocka unit testing framework
   19526  1.1  christos #
   19527  1.1  christos 
   19528  1.1  christos 
   19529  1.3  christos # Check whether --with-cmocka was given.
   19530  1.3  christos if test "${with_cmocka+set}" = set; then :
   19531  1.4  christos   withval=$with_cmocka;
   19532  1.1  christos else
   19533  1.4  christos   with_cmocka=detect
   19534  1.1  christos fi
   19535  1.1  christos 
   19536  1.3  christos 
   19537  1.3  christos case $with_cmocka in #(
   19538  1.1  christos   no) :
   19539  1.4  christos      ;; #(
   19540  1.4  christos   detect) :
   19541  1.4  christos 
   19542  1.4  christos pkg_failed=no
   19543  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   19544  1.4  christos $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   19545  1.4  christos 
   19546  1.4  christos if test -n "$CMOCKA_CFLAGS"; then
   19547  1.4  christos     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   19548  1.4  christos  elif test -n "$PKG_CONFIG"; then
   19549  1.4  christos     if test -n "$PKG_CONFIG" && \
   19550  1.4  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19551  1.4  christos   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19552  1.4  christos   ac_status=$?
   19553  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19554  1.4  christos   test $ac_status = 0; }; then
   19555  1.4  christos   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   19556  1.4  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19557  1.4  christos else
   19558  1.4  christos   pkg_failed=yes
   19559  1.4  christos fi
   19560  1.4  christos  else
   19561  1.4  christos     pkg_failed=untried
   19562  1.4  christos fi
   19563  1.4  christos if test -n "$CMOCKA_LIBS"; then
   19564  1.4  christos     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   19565  1.4  christos  elif test -n "$PKG_CONFIG"; then
   19566  1.4  christos     if test -n "$PKG_CONFIG" && \
   19567  1.4  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19568  1.4  christos   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19569  1.4  christos   ac_status=$?
   19570  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19571  1.4  christos   test $ac_status = 0; }; then
   19572  1.4  christos   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   19573  1.4  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19574  1.4  christos else
   19575  1.4  christos   pkg_failed=yes
   19576  1.4  christos fi
   19577  1.4  christos  else
   19578  1.4  christos     pkg_failed=untried
   19579  1.4  christos fi
   19580  1.4  christos 
   19581  1.4  christos 
   19582  1.4  christos 
   19583  1.4  christos if test $pkg_failed = yes; then
   19584  1.4  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19585  1.4  christos $as_echo "no" >&6; }
   19586  1.4  christos 
   19587  1.4  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19588  1.4  christos         _pkg_short_errors_supported=yes
   19589  1.4  christos else
   19590  1.4  christos         _pkg_short_errors_supported=no
   19591  1.4  christos fi
   19592  1.4  christos         if test $_pkg_short_errors_supported = yes; then
   19593  1.4  christos 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19594  1.4  christos         else
   19595  1.4  christos 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19596  1.4  christos         fi
   19597  1.4  christos 	# Put the nasty error message in config.log where it belongs
   19598  1.4  christos 	echo "$CMOCKA_PKG_ERRORS" >&5
   19599  1.4  christos 
   19600  1.4  christos 	with_cmocka=no
   19601  1.4  christos elif test $pkg_failed = untried; then
   19602  1.4  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19603  1.4  christos $as_echo "no" >&6; }
   19604  1.4  christos 	with_cmocka=no
   19605  1.4  christos else
   19606  1.4  christos 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   19607  1.4  christos 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   19608  1.4  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19609  1.4  christos $as_echo "yes" >&6; }
   19610  1.4  christos 
   19611  1.4  christos $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19612  1.4  christos 
   19613  1.4  christos 				     UNITTESTS=tests
   19614  1.4  christos fi ;; #(
   19615  1.1  christos   yes) :
   19616  1.3  christos 
   19617  1.3  christos pkg_failed=no
   19618  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   19619  1.3  christos $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   19620  1.3  christos 
   19621  1.3  christos if test -n "$CMOCKA_CFLAGS"; then
   19622  1.3  christos     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   19623  1.3  christos  elif test -n "$PKG_CONFIG"; then
   19624  1.3  christos     if test -n "$PKG_CONFIG" && \
   19625  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19626  1.3  christos   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19627  1.3  christos   ac_status=$?
   19628  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19629  1.3  christos   test $ac_status = 0; }; then
   19630  1.3  christos   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   19631  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19632  1.3  christos else
   19633  1.3  christos   pkg_failed=yes
   19634  1.3  christos fi
   19635  1.3  christos  else
   19636  1.3  christos     pkg_failed=untried
   19637  1.3  christos fi
   19638  1.3  christos if test -n "$CMOCKA_LIBS"; then
   19639  1.3  christos     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   19640  1.3  christos  elif test -n "$PKG_CONFIG"; then
   19641  1.3  christos     if test -n "$PKG_CONFIG" && \
   19642  1.3  christos     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19643  1.3  christos   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19644  1.3  christos   ac_status=$?
   19645  1.3  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19646  1.3  christos   test $ac_status = 0; }; then
   19647  1.3  christos   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   19648  1.3  christos 		      test "x$?" != "x0" && pkg_failed=yes
   19649  1.3  christos else
   19650  1.3  christos   pkg_failed=yes
   19651  1.3  christos fi
   19652  1.3  christos  else
   19653  1.3  christos     pkg_failed=untried
   19654  1.3  christos fi
   19655  1.3  christos 
   19656  1.3  christos 
   19657  1.3  christos 
   19658  1.3  christos if test $pkg_failed = yes; then
   19659  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19660  1.3  christos $as_echo "no" >&6; }
   19661  1.3  christos 
   19662  1.3  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19663  1.3  christos         _pkg_short_errors_supported=yes
   19664  1.3  christos else
   19665  1.3  christos         _pkg_short_errors_supported=no
   19666  1.3  christos fi
   19667  1.3  christos         if test $_pkg_short_errors_supported = yes; then
   19668  1.3  christos 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19669  1.3  christos         else
   19670  1.3  christos 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19671  1.3  christos         fi
   19672  1.3  christos 	# Put the nasty error message in config.log where it belongs
   19673  1.3  christos 	echo "$CMOCKA_PKG_ERRORS" >&5
   19674  1.3  christos 
   19675  1.3  christos 	as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
   19676  1.3  christos 
   19677  1.3  christos $CMOCKA_PKG_ERRORS
   19678  1.3  christos 
   19679  1.3  christos Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19680  1.3  christos installed software in a non-standard prefix.
   19681  1.3  christos 
   19682  1.3  christos Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19683  1.3  christos and CMOCKA_LIBS to avoid the need to call pkg-config.
   19684  1.3  christos See the pkg-config man page for more details." "$LINENO" 5
   19685  1.3  christos elif test $pkg_failed = untried; then
   19686  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19687  1.3  christos $as_echo "no" >&6; }
   19688  1.3  christos 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19689  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19690  1.3  christos as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19691  1.3  christos is in your PATH or set the PKG_CONFIG environment variable to the full
   19692  1.3  christos path to pkg-config.
   19693  1.3  christos 
   19694  1.3  christos Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19695  1.3  christos and CMOCKA_LIBS to avoid the need to call pkg-config.
   19696  1.3  christos See the pkg-config man page for more details.
   19697  1.3  christos 
   19698  1.3  christos To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19699  1.3  christos See \`config.log' for more details" "$LINENO" 5; }
   19700  1.3  christos else
   19701  1.3  christos 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   19702  1.3  christos 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   19703  1.3  christos         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19704  1.3  christos $as_echo "yes" >&6; }
   19705  1.3  christos 
   19706  1.3  christos $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19707  1.3  christos 
   19708  1.3  christos fi
   19709  1.4  christos 	                          UNITTESTS=tests ;; #(
   19710  1.1  christos   *) :
   19711  1.4  christos     as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
   19712  1.4  christos         ;;
   19713  1.3  christos esac
   19714  1.3  christos 
   19715  1.3  christos 
   19716  1.3  christos 
   19717  1.3  christos 
   19718  1.3  christos #
   19719  1.3  christos # Check for kyua execution engine if CMocka was requested
   19720  1.3  christos # and bail out if execution engine was not found
   19721  1.3  christos #
   19722  1.1  christos 
   19723  1.3  christos if test "$with_cmocka" != "no"; then :
   19724  1.3  christos   for ac_prog in kyua
   19725  1.3  christos do
   19726  1.3  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19727  1.3  christos set dummy $ac_prog; ac_word=$2
   19728  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19729  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   19730  1.3  christos if ${ac_cv_path_KYUA+:} false; then :
   19731  1.3  christos   $as_echo_n "(cached) " >&6
   19732  1.3  christos else
   19733  1.3  christos   case $KYUA in
   19734  1.3  christos   [\\/]* | ?:[\\/]*)
   19735  1.3  christos   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   19736  1.3  christos   ;;
   19737  1.3  christos   *)
   19738  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19739  1.3  christos for as_dir in $PATH
   19740  1.3  christos do
   19741  1.3  christos   IFS=$as_save_IFS
   19742  1.3  christos   test -z "$as_dir" && as_dir=.
   19743  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   19744  1.3  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19745  1.3  christos     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   19746  1.3  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19747  1.3  christos     break 2
   19748  1.3  christos   fi
   19749  1.3  christos done
   19750  1.3  christos   done
   19751  1.3  christos IFS=$as_save_IFS
   19752  1.1  christos 
   19753  1.3  christos   ;;
   19754  1.3  christos esac
   19755  1.3  christos fi
   19756  1.3  christos KYUA=$ac_cv_path_KYUA
   19757  1.3  christos if test -n "$KYUA"; then
   19758  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   19759  1.3  christos $as_echo "$KYUA" >&6; }
   19760  1.1  christos else
   19761  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19762  1.1  christos $as_echo "no" >&6; }
   19763  1.1  christos fi
   19764  1.1  christos 
   19765  1.1  christos 
   19766  1.3  christos   test -n "$KYUA" && break
   19767  1.3  christos done
   19768  1.1  christos 
   19769  1.3  christos        if test -z "$KYUA"; then :
   19770  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   19771  1.3  christos $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   19772  1.3  christos fi
   19773  1.1  christos fi
   19774  1.1  christos 
   19775  1.1  christos 
   19776  1.1  christos 
   19777  1.1  christos #
   19778  1.3  christos # Check for -Wl,--wrap= support
   19779  1.1  christos #
   19780  1.1  christos 
   19781  1.3  christos save_LDFLAGS=$LDFLAGS
   19782  1.3  christos LDFLAGS="--wrap=printf"
   19783  1.1  christos 
   19784  1.3  christos LD_WRAP_TESTS=false
   19785  1.3  christos enable_ld_wrap=no
   19786  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   19787  1.3  christos $as_echo_n "checking for linker support for --wrap option... " >&6; }
   19788  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19789  1.1  christos /* end confdefs.h.  */
   19790  1.3  christos #include <stdio.h>
   19791  1.1  christos int
   19792  1.1  christos main ()
   19793  1.1  christos {
   19794  1.3  christos __wrap_printf("success"); return (0);
   19795  1.1  christos   ;
   19796  1.1  christos   return 0;
   19797  1.1  christos }
   19798  1.1  christos _ACEOF
   19799  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   19800  1.3  christos   enable_ld_wrap=yes
   19801  1.3  christos      LD_WRAP_TESTS=true
   19802  1.3  christos 
   19803  1.3  christos $as_echo "#define LD_WRAP 1" >>confdefs.h
   19804  1.3  christos 
   19805  1.3  christos      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19806  1.3  christos $as_echo "yes" >&6; }
   19807  1.1  christos else
   19808  1.3  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19809  1.3  christos $as_echo "no" >&6; }
   19810  1.1  christos fi
   19811  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   19812  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   19813  1.3  christos # AM_CONDITIONAL([LD_WRAP], [test $enable_ld_wrap = yes])
   19814  1.1  christos 
   19815  1.1  christos 
   19816  1.3  christos LDFLAGS=$save_LDFLAGS
   19817  1.1  christos 
   19818  1.3  christos #
   19819  1.3  christos # Check for i18n
   19820  1.3  christos #
   19821  1.1  christos for ac_header in locale.h
   19822  1.1  christos do :
   19823  1.1  christos   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   19824  1.1  christos if test "x$ac_cv_header_locale_h" = xyes; then :
   19825  1.1  christos   cat >>confdefs.h <<_ACEOF
   19826  1.1  christos #define HAVE_LOCALE_H 1
   19827  1.1  christos _ACEOF
   19828  1.1  christos 
   19829  1.1  christos fi
   19830  1.1  christos 
   19831  1.1  christos done
   19832  1.1  christos 
   19833  1.1  christos for ac_func in setlocale
   19834  1.1  christos do :
   19835  1.1  christos   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   19836  1.1  christos if test "x$ac_cv_func_setlocale" = xyes; then :
   19837  1.1  christos   cat >>confdefs.h <<_ACEOF
   19838  1.1  christos #define HAVE_SETLOCALE 1
   19839  1.1  christos _ACEOF
   19840  1.1  christos 
   19841  1.1  christos fi
   19842  1.1  christos done
   19843  1.1  christos 
   19844  1.1  christos 
   19845  1.1  christos #
   19846  1.1  christos # was --with-tuning specified?
   19847  1.1  christos #
   19848  1.1  christos 
   19849  1.1  christos # Check whether --with-tuning was given.
   19850  1.1  christos if test "${with_tuning+set}" = set; then :
   19851  1.1  christos   withval=$with_tuning; use_tuning="$withval"
   19852  1.1  christos else
   19853  1.1  christos   use_tuning="no"
   19854  1.1  christos fi
   19855  1.1  christos 
   19856  1.1  christos 
   19857  1.1  christos case "$use_tuning" in
   19858  1.1  christos 	large)
   19859  1.1  christos 
   19860  1.1  christos $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   19861  1.1  christos 
   19862  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
   19863  1.1  christos $as_echo "using large-system tuning" >&6; }
   19864  1.1  christos 		;;
   19865  1.1  christos 	no|default)
   19866  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
   19867  1.1  christos $as_echo "using default tuning" >&6; }
   19868  1.1  christos 		;;
   19869  1.1  christos 	yes|*)
   19870  1.1  christos 		as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
   19871  1.1  christos 		;;
   19872  1.1  christos esac
   19873  1.1  christos 
   19874  1.1  christos #
   19875  1.1  christos # was --enable-querytrace specified?
   19876  1.1  christos #
   19877  1.1  christos # Check whether --enable-querytrace was given.
   19878  1.1  christos if test "${enable_querytrace+set}" = set; then :
   19879  1.1  christos   enableval=$enable_querytrace; want_querytrace="$enableval"
   19880  1.1  christos else
   19881  1.1  christos   want_querytrace="no"
   19882  1.1  christos fi
   19883  1.1  christos 
   19884  1.1  christos 
   19885  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   19886  1.1  christos $as_echo_n "checking whether to enable query trace logging... " >&6; }
   19887  1.1  christos case "$want_querytrace" in
   19888  1.1  christos yes)
   19889  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19890  1.1  christos $as_echo "yes" >&6; }
   19891  1.1  christos 
   19892  1.1  christos $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   19893  1.1  christos 
   19894  1.1  christos 	;;
   19895  1.1  christos no)
   19896  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19897  1.1  christos $as_echo "no" >&6; }
   19898  1.1  christos 	;;
   19899  1.1  christos *)
   19900  1.1  christos 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   19901  1.1  christos 	;;
   19902  1.1  christos esac
   19903  1.1  christos 
   19904  1.1  christos #
   19905  1.3  christos # Was --disable-auto-validation specified?
   19906  1.3  christos #
   19907  1.3  christos validation_default=auto
   19908  1.3  christos # Check whether --enable-auto-validation was given.
   19909  1.3  christos if test "${enable_auto_validation+set}" = set; then :
   19910  1.3  christos   enableval=$enable_auto_validation; :
   19911  1.3  christos else
   19912  1.3  christos   enable_auto_validation=yes
   19913  1.3  christos fi
   19914  1.3  christos 
   19915  1.3  christos if test "$enable_auto_validation" = "no"; then :
   19916  1.3  christos   validation_default=yes
   19917  1.3  christos fi
   19918  1.3  christos 
   19919  1.3  christos cat >>confdefs.h <<_ACEOF
   19920  1.3  christos #define VALIDATION_DEFAULT "$validation_default"
   19921  1.3  christos _ACEOF
   19922  1.3  christos 
   19923  1.3  christos 
   19924  1.3  christos #
   19925  1.1  christos # Substitutions
   19926  1.1  christos #
   19927  1.1  christos 
   19928  1.1  christos BIND9_TOP_BUILDDIR=`pwd`
   19929  1.1  christos 
   19930  1.1  christos 
   19931  1.1  christos 
   19932  1.1  christos 
   19933  1.1  christos 
   19934  1.1  christos 
   19935  1.1  christos 
   19936  1.1  christos 
   19937  1.1  christos if test "X$srcdir" != "X"; then
   19938  1.1  christos 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   19939  1.1  christos 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   19940  1.1  christos 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   19941  1.1  christos 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   19942  1.1  christos 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   19943  1.1  christos 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   19944  1.1  christos 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   19945  1.1  christos else
   19946  1.1  christos 	BIND9_ISC_BUILDINCLUDE=""
   19947  1.1  christos 	BIND9_ISCCC_BUILDINCLUDE=""
   19948  1.1  christos 	BIND9_ISCCFG_BUILDINCLUDE=""
   19949  1.1  christos 	BIND9_DNS_BUILDINCLUDE=""
   19950  1.1  christos 	BIND9_NS_BUILDINCLUDE=""
   19951  1.3  christos 	BIND9_BIND9_BUILDINCLUDE=""
   19952  1.3  christos 	BIND9_IRS_BUILDINCLUDE=""
   19953  1.3  christos fi
   19954  1.3  christos 
   19955  1.3  christos 
   19956  1.3  christos BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   19957  1.3  christos 
   19958  1.3  christos 
   19959  1.3  christos BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   19960  1.3  christos 
   19961  1.3  christos . "$srcdir/version"
   19962  1.3  christos BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   19963  1.3  christos 
   19964  1.3  christos BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   19965  1.3  christos 
   19966  1.3  christos BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   19967  1.3  christos 
   19968  1.3  christos BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   19969  1.3  christos 
   19970  1.3  christos BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   19971  1.3  christos 
   19972  1.3  christos BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   19973  1.3  christos 
   19974  1.3  christos 
   19975  1.3  christos BIND9_SRCID="SRCID=unset_id"
   19976  1.3  christos if test -f "${srcdir}/srcid"; then
   19977  1.3  christos 	. "${srcdir}/srcid"
   19978  1.3  christos 	BIND9_SRCID="SRCID=$SRCID"
   19979  1.3  christos elif test -d "${srcdir}/.git"; then
   19980  1.3  christos 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   19981  1.3  christos fi
   19982  1.3  christos 
   19983  1.3  christos 
   19984  1.3  christos 
   19985  1.3  christos if test -z "$ac_configure_args"; then
   19986  1.3  christos 	BIND9_CONFIGARGS="defaults"
   19987  1.3  christos else
   19988  1.3  christos 	for a in $ac_configure_args
   19989  1.3  christos 	do
   19990  1.3  christos 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   19991  1.3  christos 	done
   19992  1.3  christos fi
   19993  1.3  christos BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   19994  1.3  christos BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   19995  1.3  christos 
   19996  1.3  christos 
   19997  1.3  christos 
   19998  1.3  christos LIBISC_API="$srcdir/lib/isc/api"
   19999  1.3  christos 
   20000  1.3  christos 
   20001  1.3  christos LIBISCCC_API="$srcdir/lib/isccc/api"
   20002  1.3  christos 
   20003  1.3  christos 
   20004  1.3  christos LIBISCCFG_API="$srcdir/lib/isccfg/api"
   20005  1.3  christos 
   20006  1.3  christos 
   20007  1.3  christos LIBDNS_API="$srcdir/lib/dns/api"
   20008  1.3  christos 
   20009  1.3  christos 
   20010  1.3  christos LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   20011  1.3  christos 
   20012  1.3  christos 
   20013  1.3  christos LIBBIND9_API="$srcdir/lib/bind9/api"
   20014  1.3  christos 
   20015  1.3  christos 
   20016  1.3  christos LIBIRS_API="$srcdir/lib/irs/api"
   20017  1.3  christos 
   20018  1.3  christos 
   20019  1.3  christos LIBNS_API="$srcdir/lib/ns/api"
   20020  1.3  christos 
   20021  1.3  christos #
   20022  1.3  christos # Configure any DLZ drivers.
   20023  1.3  christos #
   20024  1.3  christos # If config.dlz.in selects one or more DLZ drivers, it will set
   20025  1.3  christos # CONTRIB_DLZ to a non-empty value, which will be our clue to
   20026  1.3  christos # build DLZ drivers in contrib.
   20027  1.3  christos #
   20028  1.3  christos # This section has to come after the libtool stuff because it needs to
   20029  1.3  christos # know how to name the driver object files.
   20030  1.3  christos #
   20031  1.3  christos 
   20032  1.3  christos CONTRIB_DLZ=""
   20033  1.3  christos DLZ_DRIVER_INCLUDES=""
   20034  1.3  christos DLZ_DRIVER_LIBS=""
   20035  1.3  christos DLZ_DRIVER_SRCS=""
   20036  1.3  christos DLZ_DRIVER_OBJS=""
   20037  1.3  christos DLZ_SYSTEM_TEST=""
   20038  1.3  christos DLZ_DRIVER_MYSQL_INCLUDES=""
   20039  1.3  christos DLZ_DRIVER_MYSQL_LIBS=""
   20040  1.3  christos 
   20041  1.3  christos #
   20042  1.3  christos # Configure support for building a shared library object
   20043  1.3  christos #
   20044  1.3  christos # Even when libtool is available it can't always be relied upon
   20045  1.3  christos # to build an object that can be dlopen()'ed, but this is necessary
   20046  1.3  christos # for building the dlzexternal system test, so we'll try it the
   20047  1.3  christos # old-fashioned way.
   20048  1.3  christos #
   20049  1.3  christos SO="so"
   20050  1.3  christos SO_CFLAGS=""
   20051  1.3  christos SO_LDFLAGS=""
   20052  1.3  christos SO_LD=""
   20053  1.3  christos SO_TARGETS=""
   20054  1.3  christos SO_STRIP="cat"
   20055  1.3  christos 
   20056  1.3  christos 
   20057  1.3  christos # Check whether --with-dlopen was given.
   20058  1.3  christos if test "${with_dlopen+set}" = set; then :
   20059  1.3  christos   withval=$with_dlopen;
   20060  1.3  christos else
   20061  1.3  christos   with_dlopen="auto"
   20062  1.3  christos fi
   20063  1.3  christos 
   20064  1.3  christos 
   20065  1.3  christos 
   20066  1.3  christos #
   20067  1.3  christos # If PIC is disabled, dlopen must also be
   20068  1.3  christos #
   20069  1.3  christos if test "$pic_mode" = "no"; then :
   20070  1.3  christos   case $with_dlopen in #(
   20071  1.3  christos   auto) :
   20072  1.3  christos     with_dlopen="no" ;; #(
   20073  1.3  christos   yes) :
   20074  1.3  christos     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   20075  1.3  christos   *) :
   20076  1.3  christos      ;;
   20077  1.3  christos esac
   20078  1.3  christos fi
   20079  1.3  christos 
   20080  1.3  christos case $with_dlopen in #(
   20081  1.3  christos   auto|yes) :
   20082  1.3  christos 
   20083  1.3  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   20084  1.3  christos $as_echo_n "checking for library containing dlopen... " >&6; }
   20085  1.3  christos if ${ac_cv_search_dlopen+:} false; then :
   20086  1.3  christos   $as_echo_n "(cached) " >&6
   20087  1.3  christos else
   20088  1.3  christos   ac_func_search_save_LIBS=$LIBS
   20089  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20090  1.3  christos /* end confdefs.h.  */
   20091  1.3  christos 
   20092  1.3  christos /* Override any GCC internal prototype to avoid an error.
   20093  1.3  christos    Use char because int might match the return type of a GCC
   20094  1.3  christos    builtin and then its argument prototype would still apply.  */
   20095  1.3  christos #ifdef __cplusplus
   20096  1.3  christos extern "C"
   20097  1.3  christos #endif
   20098  1.3  christos char dlopen ();
   20099  1.3  christos int
   20100  1.3  christos main ()
   20101  1.3  christos {
   20102  1.3  christos return dlopen ();
   20103  1.3  christos   ;
   20104  1.3  christos   return 0;
   20105  1.3  christos }
   20106  1.3  christos _ACEOF
   20107  1.3  christos for ac_lib in '' dl; do
   20108  1.3  christos   if test -z "$ac_lib"; then
   20109  1.3  christos     ac_res="none required"
   20110  1.3  christos   else
   20111  1.3  christos     ac_res=-l$ac_lib
   20112  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20113  1.3  christos   fi
   20114  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   20115  1.3  christos   ac_cv_search_dlopen=$ac_res
   20116  1.3  christos fi
   20117  1.3  christos rm -f core conftest.err conftest.$ac_objext \
   20118  1.3  christos     conftest$ac_exeext
   20119  1.3  christos   if ${ac_cv_search_dlopen+:} false; then :
   20120  1.3  christos   break
   20121  1.3  christos fi
   20122  1.3  christos done
   20123  1.3  christos if ${ac_cv_search_dlopen+:} false; then :
   20124  1.3  christos 
   20125  1.3  christos else
   20126  1.3  christos   ac_cv_search_dlopen=no
   20127  1.3  christos fi
   20128  1.3  christos rm conftest.$ac_ext
   20129  1.3  christos LIBS=$ac_func_search_save_LIBS
   20130  1.3  christos fi
   20131  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   20132  1.3  christos $as_echo "$ac_cv_search_dlopen" >&6; }
   20133  1.3  christos ac_res=$ac_cv_search_dlopen
   20134  1.3  christos if test "$ac_res" != no; then :
   20135  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20136  1.3  christos 
   20137  1.3  christos fi
   20138  1.3  christos 
   20139  1.3  christos 	  for ac_func in dlopen dlclose dlsym
   20140  1.3  christos do :
   20141  1.3  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20142  1.3  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   20143  1.3  christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   20144  1.3  christos   cat >>confdefs.h <<_ACEOF
   20145  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20146  1.3  christos _ACEOF
   20147  1.3  christos  with_dlopen="yes"
   20148  1.3  christos else
   20149  1.3  christos   with_dlopen="no"
   20150  1.3  christos fi
   20151  1.3  christos done
   20152  1.3  christos 
   20153  1.3  christos 	 ;; #(
   20154  1.3  christos   *) :
   20155  1.3  christos      ;;
   20156  1.3  christos esac
   20157  1.3  christos 
   20158  1.3  christos if test "$with_dlopen" = "yes"; then :
   20159  1.3  christos   case $host in #(
   20160  1.3  christos   *-linux*|*-gnu*) :
   20161  1.3  christos 
   20162  1.3  christos 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   20163  1.3  christos 		 SO_CFLAGS="-fPIC"
   20164  1.3  christos 		 SO_LDFLAGS=""
   20165  1.3  christos 		 if test "$use_libtool" = "yes"; then :
   20166  1.3  christos 
   20167  1.3  christos 			 SO_LDFLAGS="-Xcompiler -shared"
   20168  1.3  christos 			 SO_LD="${CC}"
   20169  1.3  christos 
   20170  1.3  christos else
   20171  1.3  christos 
   20172  1.3  christos 			 SO_LDFLAGS="-shared"
   20173  1.3  christos 			 SO_LD="${CC}"
   20174  1.3  christos 
   20175  1.1  christos fi
   20176  1.3  christos 	        ;; #(
   20177  1.3  christos   *-freebsd*|*-openbsd*|*-netbsd*) :
   20178  1.1  christos 
   20179  1.3  christos 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   20180  1.3  christos 		 SO_CFLAGS="-fpic"
   20181  1.3  christos 		 if test "$use_libtool" = "yes"; then :
   20182  1.1  christos 
   20183  1.3  christos 			 SO_LDFLAGS="-Xcompiler -shared"
   20184  1.3  christos 			 SO_LD="${CC}"
   20185  1.1  christos 
   20186  1.3  christos else
   20187  1.1  christos 
   20188  1.3  christos 			 SO_LDFLAGS="-shared"
   20189  1.3  christos 			 SO_LD="${CC}"
   20190  1.1  christos 
   20191  1.3  christos fi
   20192  1.3  christos 	        ;; #(
   20193  1.3  christos   *-darwin*) :
   20194  1.1  christos 
   20195  1.3  christos 		 SO_CFLAGS="-fPIC"
   20196  1.3  christos                  SO_LD="${CC}"
   20197  1.3  christos 		 if test "$use_libtool" = "yes"; then :
   20198  1.1  christos 
   20199  1.3  christos 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   20200  1.1  christos 
   20201  1.3  christos else
   20202  1.1  christos 
   20203  1.3  christos 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   20204  1.1  christos 
   20205  1.3  christos fi
   20206  1.3  christos 	        ;; #(
   20207  1.3  christos   *-solaris*) :
   20208  1.1  christos 
   20209  1.3  christos 		 SO_CFLAGS="-KPIC"
   20210  1.3  christos 		 SO_LDFLAGS="-G -z text"
   20211  1.3  christos 		 SO_LD="ld"
   20212  1.3  christos 	        ;; #(
   20213  1.3  christos   *) :
   20214  1.1  christos 
   20215  1.3  christos 		 SO_CFLAGS="-fPIC"
   20216  1.3  christos 	        ;;
   20217  1.3  christos esac
   20218  1.3  christos        if test "$GCC" = "yes"; then :
   20219  1.1  christos 
   20220  1.3  christos 	       SO_CFLAGS="-fPIC"
   20221  1.3  christos 	       if test -z "$SO_LD"; then :
   20222  1.3  christos   if test "$use_libtool" = "yes"; then :
   20223  1.1  christos 
   20224  1.3  christos 			      SO_LDFLAGS="-Xcompiler -shared"
   20225  1.3  christos 			      SO_LD="${CC}"
   20226  1.1  christos 
   20227  1.1  christos else
   20228  1.1  christos 
   20229  1.3  christos 			      SO_LDFLAGS="-shared"
   20230  1.3  christos 			      SO_LD="${CC}"
   20231  1.1  christos 
   20232  1.3  christos fi
   20233  1.1  christos 
   20234  1.3  christos fi
   20235  1.1  christos 
   20236  1.3  christos fi
   20237  1.3  christos        # If we still don't know how to make shared objects, don't make any.
   20238  1.3  christos        if test -n "$SO_LD"; then :
   20239  1.3  christos   SO_TARGETS="\${SO_TARGETS}"
   20240  1.1  christos 
   20241  1.3  christos $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   20242  1.1  christos 
   20243  1.1  christos 
   20244  1.3  christos fi
   20245  1.1  christos 
   20246  1.3  christos fi
   20247  1.1  christos 
   20248  1.3  christos CFLAGS="$CFLAGS $SO_CFLAGS"
   20249  1.1  christos 
   20250  1.1  christos 
   20251  1.1  christos 
   20252  1.1  christos 
   20253  1.1  christos 
   20254  1.1  christos 
   20255  1.1  christos 
   20256  1.1  christos 
   20257  1.1  christos #
   20258  1.3  christos # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   20259  1.3  christos # interface.
   20260  1.1  christos #
   20261  1.3  christos # DNSRPS can be compiled into BIND everywhere with a reasonably
   20262  1.3  christos # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   20263  1.1  christos #
   20264  1.3  christos dnsrps_avail=yes
   20265  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   20266  1.3  christos $as_echo_n "checking for librpz __attribute__s... " >&6; }
   20267  1.3  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20268  1.3  christos /* end confdefs.h.  */
   20269  1.3  christos 
   20270  1.3  christos int
   20271  1.3  christos main ()
   20272  1.3  christos {
   20273  1.3  christos 
   20274  1.3  christos        extern void f(char *p __attribute__((unused)), ...)
   20275  1.3  christos        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   20276  1.3  christos 
   20277  1.3  christos   ;
   20278  1.3  christos   return 0;
   20279  1.3  christos }
   20280  1.3  christos _ACEOF
   20281  1.3  christos if ac_fn_c_try_compile "$LINENO"; then :
   20282  1.3  christos 
   20283  1.3  christos     librpz_have_attr=yes
   20284  1.3  christos 
   20285  1.3  christos $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   20286  1.3  christos 
   20287  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20288  1.3  christos $as_echo "yes" >&6; }
   20289  1.3  christos 
   20290  1.3  christos else
   20291  1.3  christos 
   20292  1.3  christos     librpz_have_attr=no
   20293  1.3  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20294  1.3  christos $as_echo "no" >&6; }
   20295  1.3  christos 
   20296  1.3  christos fi
   20297  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20298  1.3  christos 
   20299  1.3  christos # Check whether --enable-dnsrps-dl was given.
   20300  1.3  christos if test "${enable_dnsrps_dl+set}" = set; then :
   20301  1.3  christos   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   20302  1.3  christos else
   20303  1.3  christos   enable_librpz_dl="$with_dlopen"
   20304  1.3  christos fi
   20305  1.3  christos 
   20306  1.3  christos 
   20307  1.3  christos if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   20308  1.3  christos   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   20309  1.3  christos fi
   20310  1.1  christos 
   20311  1.1  christos 
   20312  1.3  christos # Check whether --with-dnsrps-libname was given.
   20313  1.3  christos if test "${with_dnsrps_libname+set}" = set; then :
   20314  1.3  christos   withval=$with_dnsrps_libname; librpz_name="$withval"
   20315  1.3  christos else
   20316  1.3  christos   librpz_name="librpz.so"
   20317  1.3  christos fi
   20318  1.1  christos 
   20319  1.1  christos 
   20320  1.3  christos # Check whether --with-dnsrps-dir was given.
   20321  1.3  christos if test "${with_dnsrps_dir+set}" = set; then :
   20322  1.3  christos   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   20323  1.1  christos else
   20324  1.3  christos   librpz_path="$librpz_name"
   20325  1.1  christos fi
   20326  1.1  christos 
   20327  1.1  christos 
   20328  1.3  christos cat >>confdefs.h <<_ACEOF
   20329  1.3  christos #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   20330  1.3  christos _ACEOF
   20331  1.3  christos 
   20332  1.3  christos if test "$enable_librpz_dl" = "yes"; then :
   20333  1.3  christos 
   20334  1.3  christos 	dnsrps_lib_open=2
   20335  1.3  christos 
   20336  1.3  christos else
   20337  1.1  christos 
   20338  1.3  christos 	dnsrps_lib_open=1
   20339  1.3  christos 	# Add librpz.so to linked libraries if we are not using dlopen()
   20340  1.3  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   20341  1.3  christos $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   20342  1.3  christos if ${ac_cv_search_librpz_client_create+:} false; then :
   20343  1.1  christos   $as_echo_n "(cached) " >&6
   20344  1.1  christos else
   20345  1.3  christos   ac_func_search_save_LIBS=$LIBS
   20346  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20347  1.1  christos /* end confdefs.h.  */
   20348  1.1  christos 
   20349  1.1  christos /* Override any GCC internal prototype to avoid an error.
   20350  1.1  christos    Use char because int might match the return type of a GCC
   20351  1.1  christos    builtin and then its argument prototype would still apply.  */
   20352  1.1  christos #ifdef __cplusplus
   20353  1.1  christos extern "C"
   20354  1.1  christos #endif
   20355  1.3  christos char librpz_client_create ();
   20356  1.1  christos int
   20357  1.1  christos main ()
   20358  1.1  christos {
   20359  1.3  christos return librpz_client_create ();
   20360  1.1  christos   ;
   20361  1.1  christos   return 0;
   20362  1.1  christos }
   20363  1.1  christos _ACEOF
   20364  1.3  christos for ac_lib in '' rpz; do
   20365  1.3  christos   if test -z "$ac_lib"; then
   20366  1.3  christos     ac_res="none required"
   20367  1.3  christos   else
   20368  1.3  christos     ac_res=-l$ac_lib
   20369  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20370  1.3  christos   fi
   20371  1.3  christos   if ac_fn_c_try_link "$LINENO"; then :
   20372  1.3  christos   ac_cv_search_librpz_client_create=$ac_res
   20373  1.1  christos fi
   20374  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   20375  1.3  christos     conftest$ac_exeext
   20376  1.3  christos   if ${ac_cv_search_librpz_client_create+:} false; then :
   20377  1.3  christos   break
   20378  1.1  christos fi
   20379  1.3  christos done
   20380  1.3  christos if ${ac_cv_search_librpz_client_create+:} false; then :
   20381  1.3  christos 
   20382  1.1  christos else
   20383  1.3  christos   ac_cv_search_librpz_client_create=no
   20384  1.3  christos fi
   20385  1.3  christos rm conftest.$ac_ext
   20386  1.3  christos LIBS=$ac_func_search_save_LIBS
   20387  1.1  christos fi
   20388  1.3  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   20389  1.3  christos $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   20390  1.3  christos ac_res=$ac_cv_search_librpz_client_create
   20391  1.3  christos if test "$ac_res" != no; then :
   20392  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20393  1.1  christos 
   20394  1.1  christos else
   20395  1.3  christos   dnsrps_lib_open=0
   20396  1.3  christos 		 dnsrps_avail=no
   20397  1.1  christos fi
   20398  1.3  christos 
   20399  1.1  christos 
   20400  1.1  christos fi
   20401  1.1  christos 
   20402  1.3  christos cat >>confdefs.h <<_ACEOF
   20403  1.3  christos #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   20404  1.3  christos _ACEOF
   20405  1.1  christos 
   20406  1.1  christos 
   20407  1.3  christos # Check whether --enable-dnsrps was given.
   20408  1.3  christos if test "${enable_dnsrps+set}" = set; then :
   20409  1.3  christos   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   20410  1.3  christos else
   20411  1.3  christos   enable_dnsrps=no
   20412  1.1  christos fi
   20413  1.1  christos 
   20414  1.1  christos 
   20415  1.3  christos if test "$enable_dnsrps" != "no"; then :
   20416  1.1  christos 
   20417  1.3  christos 	if test "$dnsrps_avail" != "yes"; then :
   20418  1.3  christos   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20419  1.3  christos fi
   20420  1.3  christos 	if test "$dnsrps_lib_open" = "0"; then :
   20421  1.3  christos   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20422  1.3  christos fi
   20423  1.1  christos 
   20424  1.3  christos $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   20425  1.1  christos 
   20426  1.1  christos 
   20427  1.3  christos fi
   20428  1.1  christos 
   20429  1.1  christos # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   20430  1.1  christos #
   20431  1.1  christos # Permission to use, copy, modify, and distribute this software for any
   20432  1.1  christos # purpose with or without fee is hereby granted, provided that the above
   20433  1.1  christos # copyright notice and this permission notice appear in all copies.
   20434  1.1  christos #
   20435  1.1  christos # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   20436  1.1  christos # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   20437  1.1  christos # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   20438  1.1  christos # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   20439  1.1  christos # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   20440  1.1  christos # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   20441  1.1  christos # PERFORMANCE OF THIS SOFTWARE.
   20442  1.1  christos 
   20443  1.1  christos #
   20444  1.1  christos # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   20445  1.1  christos #
   20446  1.1  christos dlzdir='${DLZ_DRIVER_DIR}'
   20447  1.1  christos 
   20448  1.1  christos #
   20449  1.1  christos # Private autoconf macro to simplify configuring drivers:
   20450  1.1  christos #
   20451  1.1  christos #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   20452  1.1  christos #
   20453  1.1  christos # where:
   20454  1.1  christos #   DEFINE is FOO (to define -DDLZ_FOO)
   20455  1.1  christos #   DRIVER is dlz_foo_driver (sources without the .c)
   20456  1.1  christos #   INCLUDES is any necessary include definitions
   20457  1.1  christos #   LIBS is any necessary library definitions
   20458  1.1  christos #
   20459  1.1  christos 
   20460  1.1  christos 
   20461  1.1  christos #
   20462  1.1  christos # Check for the various DLZ drivers
   20463  1.1  christos #
   20464  1.1  christos 
   20465  1.1  christos #
   20466  1.1  christos # Was --with-dlz-postgres specified?
   20467  1.1  christos #
   20468  1.1  christos 
   20469  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   20470  1.1  christos $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   20471  1.1  christos 
   20472  1.1  christos # Check whether --with-dlz_postgres was given.
   20473  1.1  christos if test "${with_dlz_postgres+set}" = set; then :
   20474  1.1  christos   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   20475  1.1  christos else
   20476  1.1  christos   use_dlz_postgres="no"
   20477  1.1  christos fi
   20478  1.1  christos 
   20479  1.1  christos 
   20480  1.1  christos if test "$use_dlz_postgres" != "no"
   20481  1.1  christos then
   20482  1.1  christos 	if test "$use_dlz_postgres" != "yes"
   20483  1.1  christos         then
   20484  1.1  christos                 for ac_prog in pg_config
   20485  1.1  christos do
   20486  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20487  1.1  christos set dummy $ac_prog; ac_word=$2
   20488  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20489  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   20490  1.1  christos if ${ac_cv_path_PG_CONFIG+:} false; then :
   20491  1.1  christos   $as_echo_n "(cached) " >&6
   20492  1.1  christos else
   20493  1.1  christos   case $PG_CONFIG in
   20494  1.1  christos   [\\/]* | ?:[\\/]*)
   20495  1.1  christos   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20496  1.1  christos   ;;
   20497  1.1  christos   *)
   20498  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20499  1.1  christos for as_dir in $use_dlz_postgres/bin
   20500  1.1  christos do
   20501  1.1  christos   IFS=$as_save_IFS
   20502  1.1  christos   test -z "$as_dir" && as_dir=.
   20503  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   20504  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20505  1.1  christos     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20506  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20507  1.1  christos     break 2
   20508  1.1  christos   fi
   20509  1.1  christos done
   20510  1.1  christos   done
   20511  1.1  christos IFS=$as_save_IFS
   20512  1.1  christos 
   20513  1.1  christos   ;;
   20514  1.1  christos esac
   20515  1.1  christos fi
   20516  1.1  christos PG_CONFIG=$ac_cv_path_PG_CONFIG
   20517  1.1  christos if test -n "$PG_CONFIG"; then
   20518  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20519  1.1  christos $as_echo "$PG_CONFIG" >&6; }
   20520  1.1  christos else
   20521  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20522  1.1  christos $as_echo "no" >&6; }
   20523  1.1  christos fi
   20524  1.1  christos 
   20525  1.1  christos 
   20526  1.1  christos   test -n "$PG_CONFIG" && break
   20527  1.1  christos done
   20528  1.1  christos test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20529  1.1  christos 
   20530  1.1  christos 	else
   20531  1.1  christos                 for ac_prog in pg_config
   20532  1.1  christos do
   20533  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20534  1.1  christos set dummy $ac_prog; ac_word=$2
   20535  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20536  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   20537  1.1  christos if ${ac_cv_path_PG_CONFIG+:} false; then :
   20538  1.1  christos   $as_echo_n "(cached) " >&6
   20539  1.1  christos else
   20540  1.1  christos   case $PG_CONFIG in
   20541  1.1  christos   [\\/]* | ?:[\\/]*)
   20542  1.1  christos   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20543  1.1  christos   ;;
   20544  1.1  christos   *)
   20545  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20546  1.1  christos for as_dir in $PATH
   20547  1.1  christos do
   20548  1.1  christos   IFS=$as_save_IFS
   20549  1.1  christos   test -z "$as_dir" && as_dir=.
   20550  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   20551  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20552  1.1  christos     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20553  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20554  1.1  christos     break 2
   20555  1.1  christos   fi
   20556  1.1  christos done
   20557  1.1  christos   done
   20558  1.1  christos IFS=$as_save_IFS
   20559  1.1  christos 
   20560  1.1  christos   ;;
   20561  1.1  christos esac
   20562  1.1  christos fi
   20563  1.1  christos PG_CONFIG=$ac_cv_path_PG_CONFIG
   20564  1.1  christos if test -n "$PG_CONFIG"; then
   20565  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20566  1.1  christos $as_echo "$PG_CONFIG" >&6; }
   20567  1.1  christos else
   20568  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20569  1.1  christos $as_echo "no" >&6; }
   20570  1.1  christos fi
   20571  1.1  christos 
   20572  1.1  christos 
   20573  1.1  christos   test -n "$PG_CONFIG" && break
   20574  1.1  christos done
   20575  1.1  christos test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20576  1.1  christos 
   20577  1.1  christos 	fi
   20578  1.1  christos 
   20579  1.1  christos 	if test "$PG_CONFIG" != "not found"
   20580  1.1  christos 	then
   20581  1.1  christos 		use_dlz_postgres=`$PG_CONFIG --includedir`
   20582  1.1  christos 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   20583  1.1  christos 	else
   20584  1.1  christos 		pgprefix="$use_dlz_postgres"
   20585  1.1  christos 		use_dlz_postgres="$pgprefix/include"
   20586  1.1  christos 		use_dlz_postgres_lib="$pgprefix/lib"
   20587  1.1  christos 	fi
   20588  1.1  christos fi
   20589  1.1  christos 
   20590  1.1  christos if test "$use_dlz_postgres" = "yes/include"
   20591  1.1  christos then
   20592  1.1  christos 	# User did not specify path and Postgres didn't say - guess it
   20593  1.1  christos 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   20594  1.1  christos 	for d in $pgdirs
   20595  1.1  christos 	do
   20596  1.1  christos 		if test -f $d/include/libpq-fe.h
   20597  1.1  christos 		then
   20598  1.1  christos 			use_dlz_postgres=$d/include
   20599  1.1  christos 			use_dlz_postgres_lib=$d/lib
   20600  1.1  christos 			break
   20601  1.1  christos 		fi
   20602  1.1  christos 	done
   20603  1.1  christos fi
   20604  1.1  christos 
   20605  1.1  christos if test "$use_dlz_postgres" = "yes/include"
   20606  1.1  christos then
   20607  1.1  christos 	# Still no joy, give up
   20608  1.1  christos 
   20609  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20610  1.1  christos $as_echo "not found" >&6; }
   20611  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
   20612  1.1  christos fi
   20613  1.1  christos 
   20614  1.1  christos case "$use_dlz_postgres" in
   20615  1.1  christos 	no)
   20616  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20617  1.1  christos $as_echo "no" >&6; }
   20618  1.1  christos 		;;
   20619  1.1  christos 	*)
   20620  1.1  christos 
   20621  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   20622  1.1  christos 	for i in dlz_postgres_driver
   20623  1.1  christos 	do
   20624  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20625  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20626  1.1  christos 	done
   20627  1.1  christos 	if test -n "-I$use_dlz_postgres"
   20628  1.1  christos 	then
   20629  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   20630  1.1  christos 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   20631  1.1  christos 	fi
   20632  1.1  christos 	if test -n "-L$use_dlz_postgres_lib -lpq"
   20633  1.1  christos 	then
   20634  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   20635  1.1  christos 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   20636  1.1  christos 	fi
   20637  1.1  christos 
   20638  1.1  christos 
   20639  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   20640  1.1  christos $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   20641  1.1  christos 		;;
   20642  1.1  christos esac
   20643  1.1  christos 
   20644  1.1  christos 
   20645  1.1  christos #
   20646  1.1  christos # Was --with-dlz-mysql specified?
   20647  1.1  christos #
   20648  1.1  christos 
   20649  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   20650  1.1  christos $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   20651  1.1  christos 
   20652  1.1  christos # Check whether --with-dlz_mysql was given.
   20653  1.1  christos if test "${with_dlz_mysql+set}" = set; then :
   20654  1.1  christos   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   20655  1.1  christos else
   20656  1.1  christos   use_dlz_mysql="no"
   20657  1.1  christos fi
   20658  1.1  christos 
   20659  1.1  christos 
   20660  1.1  christos mysql_include=""
   20661  1.1  christos mysql_lib=""
   20662  1.1  christos if test "$use_dlz_mysql" = "yes"
   20663  1.1  christos then
   20664  1.1  christos 	for ac_prog in mysql_config
   20665  1.1  christos do
   20666  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20667  1.1  christos set dummy $ac_prog; ac_word=$2
   20668  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20669  1.1  christos $as_echo_n "checking for $ac_word... " >&6; }
   20670  1.1  christos if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   20671  1.1  christos   $as_echo_n "(cached) " >&6
   20672  1.1  christos else
   20673  1.1  christos   if test -n "$MYSQL_CONFIG"; then
   20674  1.1  christos   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   20675  1.1  christos else
   20676  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20677  1.1  christos for as_dir in $PATH
   20678  1.1  christos do
   20679  1.1  christos   IFS=$as_save_IFS
   20680  1.1  christos   test -z "$as_dir" && as_dir=.
   20681  1.1  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   20682  1.1  christos   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20683  1.1  christos     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   20684  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20685  1.1  christos     break 2
   20686  1.1  christos   fi
   20687  1.1  christos done
   20688  1.1  christos   done
   20689  1.1  christos IFS=$as_save_IFS
   20690  1.1  christos 
   20691  1.1  christos fi
   20692  1.1  christos fi
   20693  1.1  christos MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   20694  1.1  christos if test -n "$MYSQL_CONFIG"; then
   20695  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   20696  1.1  christos $as_echo "$MYSQL_CONFIG" >&6; }
   20697  1.1  christos else
   20698  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20699  1.1  christos $as_echo "no" >&6; }
   20700  1.1  christos fi
   20701  1.1  christos 
   20702  1.1  christos 
   20703  1.1  christos   test -n "$MYSQL_CONFIG" && break
   20704  1.1  christos done
   20705  1.1  christos 
   20706  1.1  christos 	if test -n "$MYSQL_CONFIG"
   20707  1.1  christos 	then
   20708  1.1  christos 		mysql_include=`${MYSQL_CONFIG} --include`
   20709  1.1  christos 		mysql_lib=`${MYSQL_CONFIG} --libs`
   20710  1.1  christos 		use_dlz_mysql="config"
   20711  1.1  christos 
   20712  1.1  christos 	else
   20713  1.1  christos 		# User did not specify a path - guess it
   20714  1.1  christos 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   20715  1.1  christos 		for d in $mysqldirs
   20716  1.1  christos 		do
   20717  1.1  christos 			if test -f $d/include/mysql/mysql.h
   20718  1.1  christos 			then
   20719  1.1  christos 				use_dlz_mysql=$d
   20720  1.1  christos 				mysql_include=$d/include/mysql
   20721  1.1  christos 				break
   20722  1.1  christos 			elif test -f $d/include/mysql.h
   20723  1.1  christos 			then
   20724  1.1  christos 				use_dlz_mysql=$d
   20725  1.1  christos 				mysql_include=$d/include
   20726  1.1  christos 				break
   20727  1.1  christos 			fi
   20728  1.1  christos 		done
   20729  1.1  christos 	fi
   20730  1.1  christos elif test "$use_dlz_mysql" != "no"
   20731  1.1  christos then
   20732  1.1  christos 	d=$use_dlz_mysql
   20733  1.1  christos 	if test -f $d/include/mysql/mysql.h
   20734  1.1  christos 	then
   20735  1.1  christos 		mysql_include=$d/include/mysql
   20736  1.1  christos 	elif test -f $d/include/mysql.h
   20737  1.1  christos 	then
   20738  1.1  christos 		mysql_include=$d/include
   20739  1.1  christos 	fi
   20740  1.1  christos fi
   20741  1.1  christos 
   20742  1.1  christos if test "$use_dlz_mysql" = "yes"
   20743  1.1  christos then
   20744  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20745  1.1  christos $as_echo "not found" >&6; }
   20746  1.1  christos 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   20747  1.1  christos fi
   20748  1.1  christos 
   20749  1.1  christos case "$use_dlz_mysql" in
   20750  1.1  christos 	no)
   20751  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20752  1.1  christos $as_echo "no" >&6; }
   20753  1.1  christos 		;;
   20754  1.1  christos 	config)
   20755  1.1  christos 
   20756  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20757  1.1  christos 	for i in dlz_mysql_driver
   20758  1.1  christos 	do
   20759  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20760  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20761  1.1  christos 	done
   20762  1.1  christos 	if test -n "${mysql_include}"
   20763  1.1  christos 	then
   20764  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   20765  1.1  christos 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   20766  1.1  christos 	fi
   20767  1.1  christos 	if test -n "${mysql_lib}"
   20768  1.1  christos 	then
   20769  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   20770  1.1  christos 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   20771  1.1  christos 	fi
   20772  1.1  christos 
   20773  1.1  christos 
   20774  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   20775  1.1  christos $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   20776  1.1  christos 		;;
   20777  1.1  christos 	*)
   20778  1.1  christos 		if test -d "$use_dlz_mysql/lib/mysql"
   20779  1.1  christos 		then
   20780  1.1  christos 			mysql_lib="$use_dlz_mysql/lib/mysql"
   20781  1.1  christos 		else
   20782  1.1  christos 			mysql_lib="$use_dlz_mysql/lib"
   20783  1.1  christos 		fi
   20784  1.1  christos 
   20785  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20786  1.1  christos 	for i in dlz_mysql_driver
   20787  1.1  christos 	do
   20788  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20789  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20790  1.1  christos 	done
   20791  1.1  christos 	if test -n "-I${mysql_include}"
   20792  1.1  christos 	then
   20793  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   20794  1.1  christos 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   20795  1.1  christos 	fi
   20796  1.1  christos 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20797  1.1  christos 	then
   20798  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20799  1.1  christos 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20800  1.1  christos 	fi
   20801  1.1  christos 
   20802  1.1  christos 
   20803  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   20804  1.1  christos $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   20805  1.1  christos 		;;
   20806  1.1  christos esac
   20807  1.1  christos 
   20808  1.1  christos 
   20809  1.1  christos #
   20810  1.1  christos # Was --with-dlz-bdb specified?
   20811  1.1  christos #
   20812  1.1  christos 
   20813  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   20814  1.1  christos $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   20815  1.1  christos 
   20816  1.1  christos # Check whether --with-dlz_bdb was given.
   20817  1.1  christos if test "${with_dlz_bdb+set}" = set; then :
   20818  1.1  christos   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   20819  1.1  christos else
   20820  1.1  christos   use_dlz_bdb="no"
   20821  1.1  christos fi
   20822  1.1  christos 
   20823  1.1  christos 
   20824  1.1  christos case "$use_dlz_bdb" in
   20825  1.1  christos 	no)
   20826  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20827  1.1  christos $as_echo "no" >&6; }
   20828  1.1  christos 		;;
   20829  1.1  christos 	*)
   20830  1.1  christos 		if test "$use_dlz_bdb" = "yes"
   20831  1.1  christos 		then
   20832  1.1  christos 			# User did not specify a path - guess directories
   20833  1.1  christos 			bdbdirs="/usr/local /usr/pkg /usr"
   20834  1.1  christos 		elif test -d "$use_dlz_bdb"
   20835  1.1  christos 		then
   20836  1.1  christos 			# User specified directory and it exists
   20837  1.1  christos 			bdbdirs="$use_dlz_bdb"
   20838  1.1  christos 		else
   20839  1.1  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20840  1.1  christos $as_echo "not found" >&6; }
   20841  1.1  christos 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   20842  1.1  christos 			bdbdirs=""
   20843  1.1  christos 		fi
   20844  1.1  christos 
   20845  1.1  christos 		# Use path we were given or guessed.  This is insanely
   20846  1.1  christos 		# complicated because we have to search for a bunch of
   20847  1.1  christos 		# platform-specific variations and have to check
   20848  1.1  christos 		# separately for include and library directories.
   20849  1.1  christos 
   20850  1.1  christos 		# Set both to yes, so we can check them later
   20851  1.1  christos 		dlz_bdb_inc="yes"
   20852  1.1  christos 		dlz_bdb_libs="yes"
   20853  1.1  christos 
   20854  1.1  christos                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   20855  1.1  christos $as_echo "" >&6; }
   20856  1.1  christos 		for dd in $bdbdirs
   20857  1.1  christos 		do
   20858  1.1  christos 			# Skip nonexistant directories
   20859  1.1  christos 			if test ! -d "$dd"
   20860  1.1  christos 			then
   20861  1.1  christos 				continue
   20862  1.1  christos 			fi
   20863  1.1  christos 
   20864  1.1  christos 			# Check other locations for includes.
   20865  1.1  christos 			# Order is important (sigh).
   20866  1.1  christos 
   20867  1.1  christos 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   20868  1.1  christos 			# include a blank element first
   20869  1.1  christos 			for d in "" $bdb_incdirs
   20870  1.1  christos 			do
   20871  1.1  christos 				if test -f "$dd/include${d}/db.h"
   20872  1.1  christos 				then
   20873  1.1  christos 					dlz_bdb_inc="-I$dd/include${d}"
   20874  1.1  christos 					break
   20875  1.1  christos 				fi
   20876  1.1  christos 			done
   20877  1.1  christos 
   20878  1.1  christos 			# Give up on this directory if we couldn't
   20879  1.1  christos 			# find the include subdir
   20880  1.1  christos 
   20881  1.1  christos 			if test "$dlz_bdb_inc" = "yes"
   20882  1.1  christos 			then
   20883  1.1  christos 				continue
   20884  1.1  christos 			fi
   20885  1.1  christos 
   20886  1.1  christos 			# Look for libname other than libdb.so.
   20887  1.1  christos 			# Order is important (sigh).
   20888  1.1  christos 
   20889  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"
   20890  1.1  christos 			for d in $bdb_libnames
   20891  1.1  christos 			do
   20892  1.1  christos 				if test "$dd" = "/usr"
   20893  1.1  christos 				then
   20894  1.1  christos 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   20895  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   20896  1.1  christos $as_echo_n "checking for db_create in -l$d... " >&6; }
   20897  1.1  christos if eval \${$as_ac_Lib+:} false; then :
   20898  1.1  christos   $as_echo_n "(cached) " >&6
   20899  1.1  christos else
   20900  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   20901  1.1  christos LIBS="-l$d  $LIBS"
   20902  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20903  1.1  christos /* end confdefs.h.  */
   20904  1.1  christos 
   20905  1.1  christos /* Override any GCC internal prototype to avoid an error.
   20906  1.1  christos    Use char because int might match the return type of a GCC
   20907  1.1  christos    builtin and then its argument prototype would still apply.  */
   20908  1.1  christos #ifdef __cplusplus
   20909  1.1  christos extern "C"
   20910  1.1  christos #endif
   20911  1.1  christos char db_create ();
   20912  1.1  christos int
   20913  1.1  christos main ()
   20914  1.1  christos {
   20915  1.1  christos return db_create ();
   20916  1.1  christos   ;
   20917  1.1  christos   return 0;
   20918  1.1  christos }
   20919  1.1  christos _ACEOF
   20920  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   20921  1.1  christos   eval "$as_ac_Lib=yes"
   20922  1.1  christos else
   20923  1.1  christos   eval "$as_ac_Lib=no"
   20924  1.1  christos fi
   20925  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   20926  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   20927  1.1  christos LIBS=$ac_check_lib_save_LIBS
   20928  1.1  christos fi
   20929  1.1  christos eval ac_res=\$$as_ac_Lib
   20930  1.1  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   20931  1.1  christos $as_echo "$ac_res" >&6; }
   20932  1.1  christos if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   20933  1.1  christos   dlz_bdb_libs="-l${d}"
   20934  1.1  christos fi
   20935  1.1  christos 
   20936  1.1  christos 					if test $dlz_bdb_libs != "yes"
   20937  1.1  christos 					then
   20938  1.1  christos 						break
   20939  1.1  christos 					fi
   20940  1.1  christos 				elif test -f "$dd/lib/lib${d}.so"
   20941  1.1  christos 				then
   20942  1.1  christos 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   20943  1.1  christos 					break
   20944  1.1  christos 				fi
   20945  1.1  christos 			done
   20946  1.1  christos 
   20947  1.1  christos 			# If we found both incdir and lib, we're done
   20948  1.1  christos 			if test "$dlz_bdb_libs" != "yes"
   20949  1.1  christos 			then
   20950  1.1  christos 				break
   20951  1.1  christos 			fi
   20952  1.1  christos 
   20953  1.1  christos 			# Otherwise, we're starting over
   20954  1.1  christos 
   20955  1.1  christos 			dlz_bdb_inc="yes"
   20956  1.1  christos 			dlz_bdb_libs="yes"
   20957  1.1  christos 		done
   20958  1.1  christos 
   20959  1.1  christos 		# Done searching, now make sure we got everything.
   20960  1.1  christos 
   20961  1.1  christos 		if test "$dlz_bdb_inc" = "yes"
   20962  1.1  christos 		then
   20963  1.1  christos 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   20964  1.1  christos 		fi
   20965  1.1  christos 
   20966  1.1  christos 		if test "$dlz_bdb_libs" = "yes"
   20967  1.1  christos 		then
   20968  1.1  christos 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20969  1.1  christos $as_echo "not found" >&6; }
   20970  1.1  christos 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   20971  1.1  christos 		fi
   20972  1.1  christos 
   20973  1.1  christos 
   20974  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   20975  1.1  christos 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   20976  1.1  christos 	do
   20977  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20978  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20979  1.1  christos 	done
   20980  1.1  christos 	if test -n "$dlz_bdb_inc"
   20981  1.1  christos 	then
   20982  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   20983  1.1  christos 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   20984  1.1  christos 	fi
   20985  1.1  christos 	if test -n "$dlz_bdb_libs"
   20986  1.1  christos 	then
   20987  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   20988  1.1  christos 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   20989  1.1  christos 	fi
   20990  1.1  christos 
   20991  1.1  christos 
   20992  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   20993  1.1  christos $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   20994  1.1  christos 
   20995  1.1  christos 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   20996  1.1  christos 
   20997  1.1  christos 		;;
   20998  1.1  christos esac
   20999  1.1  christos 
   21000  1.1  christos 
   21001  1.1  christos #
   21002  1.1  christos # Was --with-dlz-filesystem specified?
   21003  1.1  christos #
   21004  1.1  christos 
   21005  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   21006  1.1  christos $as_echo_n "checking for file system DLZ driver... " >&6; }
   21007  1.1  christos 
   21008  1.1  christos # Check whether --with-dlz_filesystem was given.
   21009  1.1  christos if test "${with_dlz_filesystem+set}" = set; then :
   21010  1.1  christos   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   21011  1.1  christos else
   21012  1.1  christos   use_dlz_filesystem="no"
   21013  1.1  christos fi
   21014  1.1  christos 
   21015  1.1  christos 
   21016  1.1  christos case "$use_dlz_filesystem" in
   21017  1.1  christos 	no)
   21018  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21019  1.1  christos $as_echo "no" >&6; }
   21020  1.1  christos 		;;
   21021  1.1  christos 	*)
   21022  1.1  christos 
   21023  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   21024  1.1  christos 	for i in dlz_filesystem_driver
   21025  1.1  christos 	do
   21026  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21027  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21028  1.1  christos 	done
   21029  1.1  christos 	if test -n ""
   21030  1.1  christos 	then
   21031  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21032  1.1  christos 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   21033  1.1  christos 	fi
   21034  1.1  christos 	if test -n ""
   21035  1.1  christos 	then
   21036  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21037  1.1  christos 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   21038  1.1  christos 	fi
   21039  1.1  christos 
   21040  1.1  christos 		DLZ_SYSTEM_TEST=filesystem
   21041  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21042  1.1  christos $as_echo "yes" >&6; }
   21043  1.1  christos 		;;
   21044  1.1  christos esac
   21045  1.1  christos 
   21046  1.1  christos 
   21047  1.1  christos #
   21048  1.1  christos # Was --with-dlz-ldap specified?
   21049  1.1  christos #
   21050  1.1  christos 
   21051  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   21052  1.1  christos $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   21053  1.1  christos 
   21054  1.1  christos # Check whether --with-dlz_ldap was given.
   21055  1.1  christos if test "${with_dlz_ldap+set}" = set; then :
   21056  1.1  christos   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   21057  1.1  christos else
   21058  1.1  christos   use_dlz_ldap="no"
   21059  1.1  christos fi
   21060  1.1  christos 
   21061  1.1  christos 
   21062  1.1  christos if test "$use_dlz_ldap" = "yes"
   21063  1.1  christos then
   21064  1.1  christos 	# User did not specify a path - guess it
   21065  1.1  christos 	ldapdirs="/usr /usr/local /usr/pkg"
   21066  1.1  christos 	for d in $ldapdirs
   21067  1.1  christos 	do
   21068  1.1  christos 		if test -f $d/include/ldap.h
   21069  1.1  christos 		then
   21070  1.1  christos 			use_dlz_ldap=$d
   21071  1.1  christos 			break
   21072  1.1  christos 		fi
   21073  1.1  christos 	done
   21074  1.1  christos fi
   21075  1.1  christos 
   21076  1.1  christos if test "$use_dlz_ldap" = "yes"
   21077  1.1  christos then
   21078  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21079  1.1  christos $as_echo "not found" >&6; }
   21080  1.1  christos 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   21081  1.1  christos fi
   21082  1.1  christos 
   21083  1.1  christos case "$use_dlz_ldap" in
   21084  1.1  christos 	no)
   21085  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21086  1.1  christos $as_echo "no" >&6; }
   21087  1.1  christos 		;;
   21088  1.1  christos 	*)
   21089  1.1  christos 
   21090  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   21091  1.1  christos 	for i in dlz_ldap_driver
   21092  1.1  christos 	do
   21093  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21094  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21095  1.1  christos 	done
   21096  1.1  christos 	if test -n "-I$use_dlz_ldap/include"
   21097  1.1  christos 	then
   21098  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   21099  1.1  christos 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   21100  1.1  christos 	fi
   21101  1.1  christos 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   21102  1.1  christos 	then
   21103  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   21104  1.1  christos 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   21105  1.1  christos 	fi
   21106  1.1  christos 
   21107  1.1  christos 
   21108  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   21109  1.1  christos $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   21110  1.1  christos 		;;
   21111  1.1  christos esac
   21112  1.1  christos 
   21113  1.1  christos 
   21114  1.1  christos #
   21115  1.1  christos # Was --with-dlz-odbc specified?
   21116  1.1  christos #
   21117  1.1  christos 
   21118  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   21119  1.1  christos $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   21120  1.1  christos 
   21121  1.1  christos # Check whether --with-dlz_odbc was given.
   21122  1.1  christos if test "${with_dlz_odbc+set}" = set; then :
   21123  1.1  christos   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   21124  1.1  christos else
   21125  1.1  christos   use_dlz_odbc="no"
   21126  1.1  christos fi
   21127  1.1  christos 
   21128  1.1  christos 
   21129  1.1  christos if test "$use_dlz_odbc" = "yes"
   21130  1.1  christos then
   21131  1.1  christos 	# User did not specify a path - guess it
   21132  1.1  christos 	libodbc_found=no
   21133  1.1  christos 	sql_h_found=no
   21134  1.1  christos 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   21135  1.1  christos if test "x$ac_cv_header_sql_h" = xyes; then :
   21136  1.1  christos   sql_h_found=yes
   21137  1.1  christos fi
   21138  1.1  christos 
   21139  1.1  christos 
   21140  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   21141  1.1  christos $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   21142  1.1  christos if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   21143  1.1  christos   $as_echo_n "(cached) " >&6
   21144  1.1  christos else
   21145  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   21146  1.1  christos LIBS="-lodbc  $LIBS"
   21147  1.1  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21148  1.1  christos /* end confdefs.h.  */
   21149  1.1  christos 
   21150  1.1  christos /* Override any GCC internal prototype to avoid an error.
   21151  1.1  christos    Use char because int might match the return type of a GCC
   21152  1.1  christos    builtin and then its argument prototype would still apply.  */
   21153  1.1  christos #ifdef __cplusplus
   21154  1.1  christos extern "C"
   21155  1.1  christos #endif
   21156  1.1  christos char SQLConnect ();
   21157  1.1  christos int
   21158  1.1  christos main ()
   21159  1.1  christos {
   21160  1.1  christos return SQLConnect ();
   21161  1.1  christos   ;
   21162  1.1  christos   return 0;
   21163  1.1  christos }
   21164  1.1  christos _ACEOF
   21165  1.1  christos if ac_fn_c_try_link "$LINENO"; then :
   21166  1.1  christos   ac_cv_lib_odbc_SQLConnect=yes
   21167  1.1  christos else
   21168  1.1  christos   ac_cv_lib_odbc_SQLConnect=no
   21169  1.1  christos fi
   21170  1.1  christos rm -f core conftest.err conftest.$ac_objext \
   21171  1.1  christos     conftest$ac_exeext conftest.$ac_ext
   21172  1.1  christos LIBS=$ac_check_lib_save_LIBS
   21173  1.1  christos fi
   21174  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   21175  1.1  christos $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   21176  1.1  christos if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   21177  1.1  christos   libodbc_found=yes
   21178  1.1  christos fi
   21179  1.1  christos 
   21180  1.1  christos 
   21181  1.1  christos 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   21182  1.1  christos 	then
   21183  1.1  christos 		use_dlz_odbc=system
   21184  1.1  christos 		dlz_odbc_include=""
   21185  1.1  christos 		dlz_odbc_libs="-lodbc"
   21186  1.1  christos 	else
   21187  1.1  christos 		odbcdirs="/usr /usr/local /usr/pkg"
   21188  1.1  christos 		for d in $odbcdirs
   21189  1.1  christos 		do
   21190  1.1  christos 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   21191  1.1  christos 			then
   21192  1.1  christos 				use_dlz_odbc=$d
   21193  1.1  christos 				dlz_odbc_include="-I$use_dlz_odbc/include"
   21194  1.1  christos 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   21195  1.1  christos 				break
   21196  1.1  christos 			fi
   21197  1.1  christos 		done
   21198  1.1  christos 	fi
   21199  1.1  christos fi
   21200  1.1  christos 
   21201  1.1  christos case "$use_dlz_odbc" in
   21202  1.1  christos 	no)
   21203  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21204  1.1  christos $as_echo "no" >&6; }
   21205  1.1  christos 		;;
   21206  1.1  christos 	yes)
   21207  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21208  1.1  christos $as_echo "not found" >&6; }
   21209  1.1  christos 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   21210  1.1  christos 		;;
   21211  1.1  christos 	*)
   21212  1.1  christos 
   21213  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   21214  1.1  christos 	for i in dlz_odbc_driver
   21215  1.1  christos 	do
   21216  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21217  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21218  1.1  christos 	done
   21219  1.1  christos 	if test -n "$dlz_odbc_include"
   21220  1.1  christos 	then
   21221  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   21222  1.1  christos 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   21223  1.1  christos 	fi
   21224  1.1  christos 	if test -n "$dlz_odbc_libs"
   21225  1.1  christos 	then
   21226  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   21227  1.1  christos 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   21228  1.1  christos 	fi
   21229  1.1  christos 
   21230  1.1  christos 
   21231  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   21232  1.1  christos $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   21233  1.1  christos 		;;
   21234  1.1  christos esac
   21235  1.1  christos 
   21236  1.1  christos 
   21237  1.1  christos #
   21238  1.1  christos # Was --with-dlz-stub specified?
   21239  1.1  christos #
   21240  1.1  christos 
   21241  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   21242  1.1  christos $as_echo_n "checking for stub DLZ driver... " >&6; }
   21243  1.1  christos 
   21244  1.1  christos # Check whether --with-dlz_stub was given.
   21245  1.1  christos if test "${with_dlz_stub+set}" = set; then :
   21246  1.1  christos   withval=$with_dlz_stub; use_dlz_stub="$withval"
   21247  1.1  christos else
   21248  1.1  christos   use_dlz_stub="no"
   21249  1.1  christos fi
   21250  1.1  christos 
   21251  1.1  christos 
   21252  1.1  christos case "$use_dlz_stub" in
   21253  1.1  christos 	no)
   21254  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21255  1.1  christos $as_echo "no" >&6; }
   21256  1.1  christos 		;;
   21257  1.1  christos 	*)
   21258  1.1  christos 
   21259  1.1  christos 
   21260  1.1  christos 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   21261  1.1  christos 	for i in dlz_stub_driver
   21262  1.1  christos 	do
   21263  1.1  christos 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21264  1.1  christos 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21265  1.1  christos 	done
   21266  1.1  christos 	if test -n ""
   21267  1.1  christos 	then
   21268  1.1  christos 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21269  1.1  christos 		DLZ_DRIVER_STUB_INCLUDES=""
   21270  1.1  christos 	fi
   21271  1.1  christos 	if test -n ""
   21272  1.1  christos 	then
   21273  1.1  christos 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21274  1.1  christos 		DLZ_DRIVER_STUB_LIBS=""
   21275  1.1  christos 	fi
   21276  1.1  christos 
   21277  1.1  christos 
   21278  1.1  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21279  1.1  christos $as_echo "yes" >&6; }
   21280  1.1  christos 		;;
   21281  1.1  christos esac
   21282  1.1  christos 
   21283  1.1  christos # Add any additional DLZ drivers here.
   21284  1.1  christos 
   21285  1.1  christos #
   21286  1.1  christos # Finally, some generic stuff that applies to all drivers, assuming
   21287  1.1  christos # we're compiling contrib DLZ drivers at all.
   21288  1.1  christos #
   21289  1.1  christos if test -n "$CONTRIB_DLZ"
   21290  1.1  christos then
   21291  1.1  christos 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   21292  1.1  christos 
   21293  1.1  christos 	#
   21294  1.1  christos 	# Where to find DLZ driver header files.
   21295  1.1  christos 	#
   21296  1.1  christos 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   21297  1.1  christos 
   21298  1.1  christos 	#
   21299  1.1  christos 	# Initialization and shutdown wrappers, helper functions.
   21300  1.1  christos 	#
   21301  1.1  christos 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   21302  1.1  christos 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   21303  1.1  christos fi
   21304  1.1  christos 
   21305  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   21306  1.1  christos $as_echo_n "checking contributed DLZ drivers... " >&6; }
   21307  1.1  christos 
   21308  1.1  christos if test -n "$CONTRIB_DLZ"
   21309  1.1  christos then
   21310  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21311  1.1  christos $as_echo "yes" >&6; }
   21312  1.1  christos 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   21313  1.1  christos 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   21314  1.1  christos 
   21315  1.1  christos else
   21316  1.1  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21317  1.1  christos $as_echo "no" >&6; }
   21318  1.1  christos 	DLZ_DRIVER_RULES=/dev/null
   21319  1.1  christos fi
   21320  1.1  christos 
   21321  1.1  christos 
   21322  1.1  christos 
   21323  1.1  christos 
   21324  1.1  christos 
   21325  1.1  christos 
   21326  1.1  christos 
   21327  1.1  christos 
   21328  1.1  christos 
   21329  1.1  christos 
   21330  1.1  christos 
   21331  1.1  christos if test "yes" = "$cross_compiling"; then
   21332  1.1  christos 	if test -z "$BUILD_CC"; then
   21333  1.1  christos 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   21334  1.1  christos 	fi
   21335  1.1  christos 	BUILD_CFLAGS="$BUILD_CFLAGS"
   21336  1.1  christos 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   21337  1.1  christos 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   21338  1.1  christos 	BUILD_LIBS="$BUILD_LIBS"
   21339  1.1  christos else
   21340  1.1  christos 	BUILD_CC="$CC"
   21341  1.1  christos 	BUILD_CFLAGS="$CFLAGS"
   21342  1.1  christos 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   21343  1.1  christos 	BUILD_LDFLAGS="$LDFLAGS"
   21344  1.1  christos 	BUILD_LIBS="$LIBS"
   21345  1.1  christos fi
   21346  1.1  christos 
   21347  1.1  christos NEWFLAGS=""
   21348  1.1  christos for e in $BUILD_LDFLAGS ; do
   21349  1.1  christos     case $e in
   21350  1.1  christos 	-L*)
   21351  1.1  christos 	    case $host_os in
   21352  1.1  christos 		netbsd*)
   21353  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21354  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21355  1.1  christos 		    ;;
   21356  1.1  christos 		freebsd*)
   21357  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21358  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21359  1.1  christos 		    ;;
   21360  1.1  christos 		solaris*)
   21361  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21362  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21363  1.1  christos 		    ;;
   21364  1.1  christos 		*)
   21365  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e"
   21366  1.1  christos 		    ;;
   21367  1.1  christos 		esac
   21368  1.1  christos 	    ;;
   21369  1.1  christos 	*)
   21370  1.1  christos 	    NEWFLAGS="$NEWFLAGS $e"
   21371  1.1  christos 	    ;;
   21372  1.1  christos     esac
   21373  1.1  christos done
   21374  1.1  christos BUILD_LDFLAGS="$NEWFLAGS"
   21375  1.1  christos 
   21376  1.1  christos NEWFLAGS=""
   21377  1.1  christos for e in $DNS_GSSAPI_LIBS ; do
   21378  1.1  christos     case $e in
   21379  1.1  christos 	-L*)
   21380  1.1  christos 	    case $host_os in
   21381  1.1  christos 		netbsd*)
   21382  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21383  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21384  1.1  christos 		    ;;
   21385  1.1  christos 		freebsd*)
   21386  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21387  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21388  1.1  christos 		    ;;
   21389  1.1  christos 		solaris*)
   21390  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21391  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21392  1.1  christos 		    ;;
   21393  1.1  christos 		*)
   21394  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e"
   21395  1.1  christos 		    ;;
   21396  1.1  christos 		esac
   21397  1.1  christos 	    ;;
   21398  1.1  christos 	*)
   21399  1.1  christos 	    NEWFLAGS="$NEWFLAGS $e"
   21400  1.1  christos 	    ;;
   21401  1.1  christos     esac
   21402  1.1  christos done
   21403  1.1  christos DNS_GSSAPI_LIBS="$NEWFLAGS"
   21404  1.1  christos 
   21405  1.1  christos NEWFLAGS=""
   21406  1.1  christos for e in $ISC_OPENSSL_LIBS ; do
   21407  1.1  christos     case $e in
   21408  1.1  christos 	-L*)
   21409  1.1  christos 	    case $host_os in
   21410  1.1  christos 		netbsd*)
   21411  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21412  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21413  1.1  christos 		    ;;
   21414  1.1  christos 		freebsd*)
   21415  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21416  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21417  1.1  christos 		    ;;
   21418  1.1  christos 		solaris*)
   21419  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21420  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21421  1.1  christos 		    ;;
   21422  1.1  christos 		*)
   21423  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e"
   21424  1.1  christos 		    ;;
   21425  1.1  christos 		esac
   21426  1.1  christos 	    ;;
   21427  1.1  christos 	*)
   21428  1.1  christos 	    NEWFLAGS="$NEWFLAGS $e"
   21429  1.1  christos 	    ;;
   21430  1.1  christos     esac
   21431  1.1  christos done
   21432  1.1  christos ISC_OPENSSL_LIBS="$NEWFLAGS"
   21433  1.1  christos 
   21434  1.1  christos NEWFLAGS=""
   21435  1.1  christos for e in $DNS_CRYPTO_LIBS ; do
   21436  1.1  christos     case $e in
   21437  1.1  christos 	-L*)
   21438  1.1  christos 	    case $host_os in
   21439  1.1  christos 		netbsd*)
   21440  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21441  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21442  1.1  christos 		    ;;
   21443  1.1  christos 		freebsd*)
   21444  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21445  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21446  1.1  christos 		    ;;
   21447  1.1  christos 		solaris*)
   21448  1.1  christos 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21449  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21450  1.1  christos 		    ;;
   21451  1.1  christos 		*)
   21452  1.1  christos 		    NEWFLAGS="$NEWFLAGS $e"
   21453  1.1  christos 		    ;;
   21454  1.1  christos 		esac
   21455  1.1  christos 	    ;;
   21456  1.1  christos 	*)
   21457  1.1  christos 	    NEWFLAGS="$NEWFLAGS $e"
   21458  1.1  christos 	    ;;
   21459  1.1  christos     esac
   21460  1.1  christos done
   21461  1.1  christos DNS_CRYPTO_LIBS="$NEWFLAGS"
   21462  1.1  christos 
   21463  1.1  christos 
   21464  1.1  christos 
   21465  1.1  christos 
   21466  1.1  christos 
   21467  1.1  christos 
   21468  1.1  christos 
   21469  1.1  christos #
   21470  1.1  christos # Commands to run at the end of config.status.
   21471  1.1  christos # Don't just put these into configure, it won't work right if somebody
   21472  1.1  christos # runs config.status directly (which autoconf allows).
   21473  1.1  christos #
   21474  1.1  christos 
   21475  1.1  christos ac_config_commands="$ac_config_commands chmod"
   21476  1.1  christos 
   21477  1.1  christos 
   21478  1.1  christos #
   21479  1.1  christos # Files to configure.  These are listed here because we used to
   21480  1.1  christos # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   21481  1.1  christos # elsewhere if there's a good reason for doing so.
   21482  1.1  christos #
   21483  1.1  christos 
   21484  1.4  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/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"
   21485  1.1  christos 
   21486  1.1  christos 
   21487  1.1  christos #
   21488  1.1  christos # Do it
   21489  1.1  christos #
   21490  1.1  christos 
   21491  1.1  christos cat >confcache <<\_ACEOF
   21492  1.1  christos # This file is a shell script that caches the results of configure
   21493  1.1  christos # tests run on this system so they can be shared between configure
   21494  1.1  christos # scripts and configure runs, see configure's option --config-cache.
   21495  1.1  christos # It is not useful on other systems.  If it contains results you don't
   21496  1.1  christos # want to keep, you may remove or edit it.
   21497  1.1  christos #
   21498  1.1  christos # config.status only pays attention to the cache file if you give it
   21499  1.1  christos # the --recheck option to rerun configure.
   21500  1.1  christos #
   21501  1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
   21502  1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21503  1.1  christos # following values.
   21504  1.1  christos 
   21505  1.1  christos _ACEOF
   21506  1.1  christos 
   21507  1.1  christos # The following way of writing the cache mishandles newlines in values,
   21508  1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   21509  1.1  christos # So, we kill variables containing newlines.
   21510  1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   21511  1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   21512  1.1  christos (
   21513  1.1  christos   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   21514  1.1  christos     eval ac_val=\$$ac_var
   21515  1.1  christos     case $ac_val in #(
   21516  1.1  christos     *${as_nl}*)
   21517  1.1  christos       case $ac_var in #(
   21518  1.1  christos       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   21519  1.1  christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   21520  1.1  christos       esac
   21521  1.1  christos       case $ac_var in #(
   21522  1.1  christos       _ | IFS | as_nl) ;; #(
   21523  1.1  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   21524  1.1  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   21525  1.1  christos       esac ;;
   21526  1.1  christos     esac
   21527  1.1  christos   done
   21528  1.1  christos 
   21529  1.1  christos   (set) 2>&1 |
   21530  1.1  christos     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   21531  1.1  christos     *${as_nl}ac_space=\ *)
   21532  1.1  christos       # `set' does not quote correctly, so add quotes: double-quote
   21533  1.1  christos       # substitution turns \\\\ into \\, and sed turns \\ into \.
   21534  1.1  christos       sed -n \
   21535  1.1  christos 	"s/'/'\\\\''/g;
   21536  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   21537  1.1  christos       ;; #(
   21538  1.1  christos     *)
   21539  1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   21540  1.1  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   21541  1.1  christos       ;;
   21542  1.1  christos     esac |
   21543  1.1  christos     sort
   21544  1.1  christos ) |
   21545  1.1  christos   sed '
   21546  1.1  christos      /^ac_cv_env_/b end
   21547  1.1  christos      t clear
   21548  1.1  christos      :clear
   21549  1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   21550  1.1  christos      t end
   21551  1.1  christos      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   21552  1.1  christos      :end' >>confcache
   21553  1.1  christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   21554  1.1  christos   if test -w "$cache_file"; then
   21555  1.1  christos     if test "x$cache_file" != "x/dev/null"; then
   21556  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   21557  1.1  christos $as_echo "$as_me: updating cache $cache_file" >&6;}
   21558  1.1  christos       if test ! -f "$cache_file" || test -h "$cache_file"; then
   21559  1.1  christos 	cat confcache >"$cache_file"
   21560  1.1  christos       else
   21561  1.1  christos         case $cache_file in #(
   21562  1.1  christos         */* | ?:*)
   21563  1.1  christos 	  mv -f confcache "$cache_file"$$ &&
   21564  1.1  christos 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   21565  1.1  christos         *)
   21566  1.1  christos 	  mv -f confcache "$cache_file" ;;
   21567  1.1  christos 	esac
   21568  1.1  christos       fi
   21569  1.1  christos     fi
   21570  1.1  christos   else
   21571  1.1  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   21572  1.1  christos $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   21573  1.1  christos   fi
   21574  1.1  christos fi
   21575  1.1  christos rm -f confcache
   21576  1.1  christos 
   21577  1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   21578  1.1  christos # Let make expand exec_prefix.
   21579  1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   21580  1.1  christos 
   21581  1.1  christos DEFS=-DHAVE_CONFIG_H
   21582  1.1  christos 
   21583  1.1  christos ac_libobjs=
   21584  1.1  christos ac_ltlibobjs=
   21585  1.1  christos U=
   21586  1.1  christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21587  1.1  christos   # 1. Remove the extension, and $U if already installed.
   21588  1.1  christos   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21589  1.1  christos   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   21590  1.1  christos   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21591  1.1  christos   #    will be set to the directory where LIBOBJS objects are built.
   21592  1.1  christos   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21593  1.1  christos   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   21594  1.1  christos done
   21595  1.1  christos LIBOBJS=$ac_libobjs
   21596  1.1  christos 
   21597  1.1  christos LTLIBOBJS=$ac_ltlibobjs
   21598  1.1  christos 
   21599  1.1  christos 
   21600  1.1  christos 
   21601  1.1  christos 
   21602  1.1  christos : "${CONFIG_STATUS=./config.status}"
   21603  1.1  christos ac_write_fail=0
   21604  1.1  christos ac_clean_files_save=$ac_clean_files
   21605  1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21606  1.1  christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   21607  1.1  christos $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21608  1.1  christos as_write_fail=0
   21609  1.1  christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   21610  1.1  christos #! $SHELL
   21611  1.1  christos # Generated by $as_me.
   21612  1.1  christos # Run this file to recreate the current configuration.
   21613  1.1  christos # Compiler output produced by configure, useful for debugging
   21614  1.1  christos # configure, is in config.log if it exists.
   21615  1.1  christos 
   21616  1.1  christos debug=false
   21617  1.1  christos ac_cs_recheck=false
   21618  1.1  christos ac_cs_silent=false
   21619  1.1  christos 
   21620  1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   21621  1.1  christos export SHELL
   21622  1.1  christos _ASEOF
   21623  1.1  christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   21624  1.1  christos ## -------------------- ##
   21625  1.1  christos ## M4sh Initialization. ##
   21626  1.1  christos ## -------------------- ##
   21627  1.1  christos 
   21628  1.1  christos # Be more Bourne compatible
   21629  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
   21630  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   21631  1.1  christos   emulate sh
   21632  1.1  christos   NULLCMD=:
   21633  1.1  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21634  1.1  christos   # is contrary to our usage.  Disable this feature.
   21635  1.1  christos   alias -g '${1+"$@"}'='"$@"'
   21636  1.1  christos   setopt NO_GLOB_SUBST
   21637  1.1  christos else
   21638  1.1  christos   case `(set -o) 2>/dev/null` in #(
   21639  1.1  christos   *posix*) :
   21640  1.1  christos     set -o posix ;; #(
   21641  1.1  christos   *) :
   21642  1.1  christos      ;;
   21643  1.1  christos esac
   21644  1.1  christos fi
   21645  1.1  christos 
   21646  1.1  christos 
   21647  1.1  christos as_nl='
   21648  1.1  christos '
   21649  1.1  christos export as_nl
   21650  1.1  christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
   21651  1.1  christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   21652  1.1  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   21653  1.1  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   21654  1.1  christos # Prefer a ksh shell builtin over an external printf program on Solaris,
   21655  1.1  christos # but without wasting forks for bash or zsh.
   21656  1.1  christos if test -z "$BASH_VERSION$ZSH_VERSION" \
   21657  1.1  christos     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   21658  1.1  christos   as_echo='print -r --'
   21659  1.1  christos   as_echo_n='print -rn --'
   21660  1.1  christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   21661  1.1  christos   as_echo='printf %s\n'
   21662  1.1  christos   as_echo_n='printf %s'
   21663  1.1  christos else
   21664  1.1  christos   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   21665  1.1  christos     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   21666  1.1  christos     as_echo_n='/usr/ucb/echo -n'
   21667  1.1  christos   else
   21668  1.1  christos     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   21669  1.1  christos     as_echo_n_body='eval
   21670  1.1  christos       arg=$1;
   21671  1.1  christos       case $arg in #(
   21672  1.1  christos       *"$as_nl"*)
   21673  1.1  christos 	expr "X$arg" : "X\\(.*\\)$as_nl";
   21674  1.1  christos 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   21675  1.1  christos       esac;
   21676  1.1  christos       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   21677  1.1  christos     '
   21678  1.1  christos     export as_echo_n_body
   21679  1.1  christos     as_echo_n='sh -c $as_echo_n_body as_echo'
   21680  1.1  christos   fi
   21681  1.1  christos   export as_echo_body
   21682  1.1  christos   as_echo='sh -c $as_echo_body as_echo'
   21683  1.1  christos fi
   21684  1.1  christos 
   21685  1.1  christos # The user is always right.
   21686  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
   21687  1.1  christos   PATH_SEPARATOR=:
   21688  1.1  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   21689  1.1  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   21690  1.1  christos       PATH_SEPARATOR=';'
   21691  1.1  christos   }
   21692  1.1  christos fi
   21693  1.1  christos 
   21694  1.1  christos 
   21695  1.1  christos # IFS
   21696  1.1  christos # We need space, tab and new line, in precisely that order.  Quoting is
   21697  1.1  christos # there to prevent editors from complaining about space-tab.
   21698  1.1  christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21699  1.1  christos # splitting by setting IFS to empty value.)
   21700  1.1  christos IFS=" ""	$as_nl"
   21701  1.1  christos 
   21702  1.1  christos # Find who we are.  Look in the path if we contain no directory separator.
   21703  1.1  christos as_myself=
   21704  1.1  christos case $0 in #((
   21705  1.1  christos   *[\\/]* ) as_myself=$0 ;;
   21706  1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21707  1.1  christos for as_dir in $PATH
   21708  1.1  christos do
   21709  1.1  christos   IFS=$as_save_IFS
   21710  1.1  christos   test -z "$as_dir" && as_dir=.
   21711  1.1  christos     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21712  1.1  christos   done
   21713  1.1  christos IFS=$as_save_IFS
   21714  1.1  christos 
   21715  1.1  christos      ;;
   21716  1.1  christos esac
   21717  1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
   21718  1.1  christos # in which case we are not to be found in the path.
   21719  1.1  christos if test "x$as_myself" = x; then
   21720  1.1  christos   as_myself=$0
   21721  1.1  christos fi
   21722  1.1  christos if test ! -f "$as_myself"; then
   21723  1.1  christos   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21724  1.1  christos   exit 1
   21725  1.1  christos fi
   21726  1.1  christos 
   21727  1.1  christos # Unset variables that we do not need and which cause bugs (e.g. in
   21728  1.1  christos # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   21729  1.1  christos # suppresses any "Segmentation fault" message there.  '((' could
   21730  1.1  christos # trigger a bug in pdksh 5.2.14.
   21731  1.1  christos for as_var in BASH_ENV ENV MAIL MAILPATH
   21732  1.1  christos do eval test x\${$as_var+set} = xset \
   21733  1.1  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   21734  1.1  christos done
   21735  1.1  christos PS1='$ '
   21736  1.1  christos PS2='> '
   21737  1.1  christos PS4='+ '
   21738  1.1  christos 
   21739  1.1  christos # NLS nuisances.
   21740  1.1  christos LC_ALL=C
   21741  1.1  christos export LC_ALL
   21742  1.1  christos LANGUAGE=C
   21743  1.1  christos export LANGUAGE
   21744  1.1  christos 
   21745  1.1  christos # CDPATH.
   21746  1.1  christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   21747  1.1  christos 
   21748  1.1  christos 
   21749  1.1  christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
   21750  1.1  christos # ----------------------------------------
   21751  1.1  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   21752  1.1  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   21753  1.1  christos # script with STATUS, using 1 if that was 0.
   21754  1.1  christos as_fn_error ()
   21755  1.1  christos {
   21756  1.1  christos   as_status=$1; test $as_status -eq 0 && as_status=1
   21757  1.1  christos   if test "$4"; then
   21758  1.1  christos     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   21759  1.1  christos     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   21760  1.1  christos   fi
   21761  1.1  christos   $as_echo "$as_me: error: $2" >&2
   21762  1.1  christos   as_fn_exit $as_status
   21763  1.1  christos } # as_fn_error
   21764  1.1  christos 
   21765  1.1  christos 
   21766  1.1  christos # as_fn_set_status STATUS
   21767  1.1  christos # -----------------------
   21768  1.1  christos # Set $? to STATUS, without forking.
   21769  1.1  christos as_fn_set_status ()
   21770  1.1  christos {
   21771  1.1  christos   return $1
   21772  1.1  christos } # as_fn_set_status
   21773  1.1  christos 
   21774  1.1  christos # as_fn_exit STATUS
   21775  1.1  christos # -----------------
   21776  1.1  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   21777  1.1  christos as_fn_exit ()
   21778  1.1  christos {
   21779  1.1  christos   set +e
   21780  1.1  christos   as_fn_set_status $1
   21781  1.1  christos   exit $1
   21782  1.1  christos } # as_fn_exit
   21783  1.1  christos 
   21784  1.1  christos # as_fn_unset VAR
   21785  1.1  christos # ---------------
   21786  1.1  christos # Portably unset VAR.
   21787  1.1  christos as_fn_unset ()
   21788  1.1  christos {
   21789  1.1  christos   { eval $1=; unset $1;}
   21790  1.1  christos }
   21791  1.1  christos as_unset=as_fn_unset
   21792  1.1  christos # as_fn_append VAR VALUE
   21793  1.1  christos # ----------------------
   21794  1.1  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
   21795  1.1  christos # advantage of any shell optimizations that allow amortized linear growth over
   21796  1.1  christos # repeated appends, instead of the typical quadratic growth present in naive
   21797  1.1  christos # implementations.
   21798  1.1  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   21799  1.1  christos   eval 'as_fn_append ()
   21800  1.1  christos   {
   21801  1.1  christos     eval $1+=\$2
   21802  1.1  christos   }'
   21803  1.1  christos else
   21804  1.1  christos   as_fn_append ()
   21805  1.1  christos   {
   21806  1.1  christos     eval $1=\$$1\$2
   21807  1.1  christos   }
   21808  1.1  christos fi # as_fn_append
   21809  1.1  christos 
   21810  1.1  christos # as_fn_arith ARG...
   21811  1.1  christos # ------------------
   21812  1.1  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
   21813  1.1  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
   21814  1.1  christos # must be portable across $(()) and expr.
   21815  1.1  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   21816  1.1  christos   eval 'as_fn_arith ()
   21817  1.1  christos   {
   21818  1.1  christos     as_val=$(( $* ))
   21819  1.1  christos   }'
   21820  1.1  christos else
   21821  1.1  christos   as_fn_arith ()
   21822  1.1  christos   {
   21823  1.1  christos     as_val=`expr "$@" || test $? -eq 1`
   21824  1.1  christos   }
   21825  1.1  christos fi # as_fn_arith
   21826  1.1  christos 
   21827  1.1  christos 
   21828  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
   21829  1.1  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21830  1.1  christos   as_expr=expr
   21831  1.1  christos else
   21832  1.1  christos   as_expr=false
   21833  1.1  christos fi
   21834  1.1  christos 
   21835  1.1  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21836  1.1  christos   as_basename=basename
   21837  1.1  christos else
   21838  1.1  christos   as_basename=false
   21839  1.1  christos fi
   21840  1.1  christos 
   21841  1.1  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21842  1.1  christos   as_dirname=dirname
   21843  1.1  christos else
   21844  1.1  christos   as_dirname=false
   21845  1.1  christos fi
   21846  1.1  christos 
   21847  1.1  christos as_me=`$as_basename -- "$0" ||
   21848  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21849  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
   21850  1.1  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21851  1.1  christos $as_echo X/"$0" |
   21852  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21853  1.1  christos 	    s//\1/
   21854  1.1  christos 	    q
   21855  1.1  christos 	  }
   21856  1.1  christos 	  /^X\/\(\/\/\)$/{
   21857  1.1  christos 	    s//\1/
   21858  1.1  christos 	    q
   21859  1.1  christos 	  }
   21860  1.1  christos 	  /^X\/\(\/\).*/{
   21861  1.1  christos 	    s//\1/
   21862  1.1  christos 	    q
   21863  1.1  christos 	  }
   21864  1.1  christos 	  s/.*/./; q'`
   21865  1.1  christos 
   21866  1.1  christos # Avoid depending upon Character Ranges.
   21867  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21868  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21869  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21870  1.1  christos as_cr_digits='0123456789'
   21871  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
   21872  1.1  christos 
   21873  1.1  christos ECHO_C= ECHO_N= ECHO_T=
   21874  1.1  christos case `echo -n x` in #(((((
   21875  1.1  christos -n*)
   21876  1.1  christos   case `echo 'xy\c'` in
   21877  1.1  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21878  1.1  christos   xy)  ECHO_C='\c';;
   21879  1.1  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   21880  1.1  christos        ECHO_T='	';;
   21881  1.1  christos   esac;;
   21882  1.1  christos *)
   21883  1.1  christos   ECHO_N='-n';;
   21884  1.1  christos esac
   21885  1.1  christos 
   21886  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   21887  1.1  christos if test -d conf$$.dir; then
   21888  1.1  christos   rm -f conf$$.dir/conf$$.file
   21889  1.1  christos else
   21890  1.1  christos   rm -f conf$$.dir
   21891  1.1  christos   mkdir conf$$.dir 2>/dev/null
   21892  1.1  christos fi
   21893  1.1  christos if (echo >conf$$.file) 2>/dev/null; then
   21894  1.1  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
   21895  1.1  christos     as_ln_s='ln -s'
   21896  1.1  christos     # ... but there are two gotchas:
   21897  1.1  christos     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21898  1.1  christos     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21899  1.1  christos     # In both cases, we have to default to `cp -pR'.
   21900  1.1  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21901  1.1  christos       as_ln_s='cp -pR'
   21902  1.1  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
   21903  1.1  christos     as_ln_s=ln
   21904  1.1  christos   else
   21905  1.1  christos     as_ln_s='cp -pR'
   21906  1.1  christos   fi
   21907  1.1  christos else
   21908  1.1  christos   as_ln_s='cp -pR'
   21909  1.1  christos fi
   21910  1.1  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21911  1.1  christos rmdir conf$$.dir 2>/dev/null
   21912  1.1  christos 
   21913  1.1  christos 
   21914  1.1  christos # as_fn_mkdir_p
   21915  1.1  christos # -------------
   21916  1.1  christos # Create "$as_dir" as a directory, including parents if necessary.
   21917  1.1  christos as_fn_mkdir_p ()
   21918  1.1  christos {
   21919  1.1  christos 
   21920  1.1  christos   case $as_dir in #(
   21921  1.1  christos   -*) as_dir=./$as_dir;;
   21922  1.1  christos   esac
   21923  1.1  christos   test -d "$as_dir" || eval $as_mkdir_p || {
   21924  1.1  christos     as_dirs=
   21925  1.1  christos     while :; do
   21926  1.1  christos       case $as_dir in #(
   21927  1.1  christos       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   21928  1.1  christos       *) as_qdir=$as_dir;;
   21929  1.1  christos       esac
   21930  1.1  christos       as_dirs="'$as_qdir' $as_dirs"
   21931  1.1  christos       as_dir=`$as_dirname -- "$as_dir" ||
   21932  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21933  1.1  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   21934  1.1  christos 	 X"$as_dir" : 'X\(//\)$' \| \
   21935  1.1  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   21936  1.1  christos $as_echo X"$as_dir" |
   21937  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21938  1.1  christos 	    s//\1/
   21939  1.1  christos 	    q
   21940  1.1  christos 	  }
   21941  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   21942  1.1  christos 	    s//\1/
   21943  1.1  christos 	    q
   21944  1.1  christos 	  }
   21945  1.1  christos 	  /^X\(\/\/\)$/{
   21946  1.1  christos 	    s//\1/
   21947  1.1  christos 	    q
   21948  1.1  christos 	  }
   21949  1.1  christos 	  /^X\(\/\).*/{
   21950  1.1  christos 	    s//\1/
   21951  1.1  christos 	    q
   21952  1.1  christos 	  }
   21953  1.1  christos 	  s/.*/./; q'`
   21954  1.1  christos       test -d "$as_dir" && break
   21955  1.1  christos     done
   21956  1.1  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
   21957  1.1  christos   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   21958  1.1  christos 
   21959  1.1  christos 
   21960  1.1  christos } # as_fn_mkdir_p
   21961  1.1  christos if mkdir -p . 2>/dev/null; then
   21962  1.1  christos   as_mkdir_p='mkdir -p "$as_dir"'
   21963  1.1  christos else
   21964  1.1  christos   test -d ./-p && rmdir ./-p
   21965  1.1  christos   as_mkdir_p=false
   21966  1.1  christos fi
   21967  1.1  christos 
   21968  1.1  christos 
   21969  1.1  christos # as_fn_executable_p FILE
   21970  1.1  christos # -----------------------
   21971  1.1  christos # Test if FILE is an executable regular file.
   21972  1.1  christos as_fn_executable_p ()
   21973  1.1  christos {
   21974  1.1  christos   test -f "$1" && test -x "$1"
   21975  1.1  christos } # as_fn_executable_p
   21976  1.1  christos as_test_x='test -x'
   21977  1.1  christos as_executable_p=as_fn_executable_p
   21978  1.1  christos 
   21979  1.1  christos # Sed expression to map a string onto a valid CPP name.
   21980  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   21981  1.1  christos 
   21982  1.1  christos # Sed expression to map a string onto a valid variable name.
   21983  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   21984  1.1  christos 
   21985  1.1  christos 
   21986  1.1  christos exec 6>&1
   21987  1.1  christos ## ----------------------------------- ##
   21988  1.1  christos ## Main body of $CONFIG_STATUS script. ##
   21989  1.1  christos ## ----------------------------------- ##
   21990  1.1  christos _ASEOF
   21991  1.1  christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   21992  1.1  christos 
   21993  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21994  1.1  christos # Save the log message, to keep $0 and so on meaningful, and to
   21995  1.1  christos # report actual input values of CONFIG_FILES etc. instead of their
   21996  1.1  christos # values after options handling.
   21997  1.1  christos ac_log="
   21998  1.3  christos This file was extended by BIND $as_me 9.13, which was
   21999  1.1  christos generated by GNU Autoconf 2.69.  Invocation command line was
   22000  1.1  christos 
   22001  1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   22002  1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   22003  1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   22004  1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   22005  1.1  christos   $ $0 $@
   22006  1.1  christos 
   22007  1.1  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   22008  1.1  christos "
   22009  1.1  christos 
   22010  1.1  christos _ACEOF
   22011  1.1  christos 
   22012  1.1  christos case $ac_config_files in *"
   22013  1.1  christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
   22014  1.1  christos esac
   22015  1.1  christos 
   22016  1.1  christos case $ac_config_headers in *"
   22017  1.1  christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   22018  1.1  christos esac
   22019  1.1  christos 
   22020  1.1  christos 
   22021  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22022  1.1  christos # Files that config.status was made for.
   22023  1.1  christos config_files="$ac_config_files"
   22024  1.1  christos config_headers="$ac_config_headers"
   22025  1.1  christos config_commands="$ac_config_commands"
   22026  1.1  christos 
   22027  1.1  christos _ACEOF
   22028  1.1  christos 
   22029  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22030  1.1  christos ac_cs_usage="\
   22031  1.1  christos \`$as_me' instantiates files and other configuration actions
   22032  1.1  christos from templates according to the current configuration.  Unless the files
   22033  1.1  christos and actions are specified as TAGs, all are instantiated by default.
   22034  1.1  christos 
   22035  1.1  christos Usage: $0 [OPTION]... [TAG]...
   22036  1.1  christos 
   22037  1.1  christos   -h, --help       print this help, then exit
   22038  1.1  christos   -V, --version    print version number and configuration settings, then exit
   22039  1.1  christos       --config     print configuration, then exit
   22040  1.1  christos   -q, --quiet, --silent
   22041  1.1  christos                    do not print progress messages
   22042  1.1  christos   -d, --debug      don't remove temporary files
   22043  1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   22044  1.1  christos       --file=FILE[:TEMPLATE]
   22045  1.1  christos                    instantiate the configuration file FILE
   22046  1.1  christos       --header=FILE[:TEMPLATE]
   22047  1.1  christos                    instantiate the configuration header FILE
   22048  1.1  christos 
   22049  1.1  christos Configuration files:
   22050  1.1  christos $config_files
   22051  1.1  christos 
   22052  1.1  christos Configuration headers:
   22053  1.1  christos $config_headers
   22054  1.1  christos 
   22055  1.1  christos Configuration commands:
   22056  1.1  christos $config_commands
   22057  1.1  christos 
   22058  1.1  christos Report bugs to <info@isc.org>.
   22059  1.1  christos BIND home page: <https://www.isc.org/downloads/BIND/>."
   22060  1.1  christos 
   22061  1.1  christos _ACEOF
   22062  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22063  1.1  christos ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   22064  1.1  christos ac_cs_version="\\
   22065  1.3  christos BIND config.status 9.13
   22066  1.1  christos configured by $0, generated by GNU Autoconf 2.69,
   22067  1.1  christos   with options \\"\$ac_cs_config\\"
   22068  1.1  christos 
   22069  1.1  christos Copyright (C) 2012 Free Software Foundation, Inc.
   22070  1.1  christos This config.status script is free software; the Free Software Foundation
   22071  1.1  christos gives unlimited permission to copy, distribute and modify it."
   22072  1.1  christos 
   22073  1.1  christos ac_pwd='$ac_pwd'
   22074  1.1  christos srcdir='$srcdir'
   22075  1.1  christos INSTALL='$INSTALL'
   22076  1.1  christos AWK='$AWK'
   22077  1.1  christos test -n "\$AWK" || AWK=awk
   22078  1.1  christos _ACEOF
   22079  1.1  christos 
   22080  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22081  1.1  christos # The default lists apply if the user does not specify any file.
   22082  1.1  christos ac_need_defaults=:
   22083  1.1  christos while test $# != 0
   22084  1.1  christos do
   22085  1.1  christos   case $1 in
   22086  1.1  christos   --*=?*)
   22087  1.1  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22088  1.1  christos     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   22089  1.1  christos     ac_shift=:
   22090  1.1  christos     ;;
   22091  1.1  christos   --*=)
   22092  1.1  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22093  1.1  christos     ac_optarg=
   22094  1.1  christos     ac_shift=:
   22095  1.1  christos     ;;
   22096  1.1  christos   *)
   22097  1.1  christos     ac_option=$1
   22098  1.1  christos     ac_optarg=$2
   22099  1.1  christos     ac_shift=shift
   22100  1.1  christos     ;;
   22101  1.1  christos   esac
   22102  1.1  christos 
   22103  1.1  christos   case $ac_option in
   22104  1.1  christos   # Handling of the options.
   22105  1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   22106  1.1  christos     ac_cs_recheck=: ;;
   22107  1.1  christos   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   22108  1.1  christos     $as_echo "$ac_cs_version"; exit ;;
   22109  1.1  christos   --config | --confi | --conf | --con | --co | --c )
   22110  1.1  christos     $as_echo "$ac_cs_config"; exit ;;
   22111  1.1  christos   --debug | --debu | --deb | --de | --d | -d )
   22112  1.1  christos     debug=: ;;
   22113  1.1  christos   --file | --fil | --fi | --f )
   22114  1.1  christos     $ac_shift
   22115  1.1  christos     case $ac_optarg in
   22116  1.1  christos     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22117  1.1  christos     '') as_fn_error $? "missing file argument" ;;
   22118  1.1  christos     esac
   22119  1.1  christos     as_fn_append CONFIG_FILES " '$ac_optarg'"
   22120  1.1  christos     ac_need_defaults=false;;
   22121  1.1  christos   --header | --heade | --head | --hea )
   22122  1.1  christos     $ac_shift
   22123  1.1  christos     case $ac_optarg in
   22124  1.1  christos     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22125  1.1  christos     esac
   22126  1.1  christos     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   22127  1.1  christos     ac_need_defaults=false;;
   22128  1.1  christos   --he | --h)
   22129  1.1  christos     # Conflict between --help and --header
   22130  1.1  christos     as_fn_error $? "ambiguous option: \`$1'
   22131  1.1  christos Try \`$0 --help' for more information.";;
   22132  1.1  christos   --help | --hel | -h )
   22133  1.1  christos     $as_echo "$ac_cs_usage"; exit ;;
   22134  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   22135  1.1  christos   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   22136  1.1  christos     ac_cs_silent=: ;;
   22137  1.1  christos 
   22138  1.1  christos   # This is an error.
   22139  1.1  christos   -*) as_fn_error $? "unrecognized option: \`$1'
   22140  1.1  christos Try \`$0 --help' for more information." ;;
   22141  1.1  christos 
   22142  1.1  christos   *) as_fn_append ac_config_targets " $1"
   22143  1.1  christos      ac_need_defaults=false ;;
   22144  1.1  christos 
   22145  1.1  christos   esac
   22146  1.1  christos   shift
   22147  1.1  christos done
   22148  1.1  christos 
   22149  1.1  christos ac_configure_extra_args=
   22150  1.1  christos 
   22151  1.1  christos if $ac_cs_silent; then
   22152  1.1  christos   exec 6>/dev/null
   22153  1.1  christos   ac_configure_extra_args="$ac_configure_extra_args --silent"
   22154  1.1  christos fi
   22155  1.1  christos 
   22156  1.1  christos _ACEOF
   22157  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22158  1.1  christos if \$ac_cs_recheck; then
   22159  1.1  christos   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   22160  1.1  christos   shift
   22161  1.1  christos   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   22162  1.1  christos   CONFIG_SHELL='$SHELL'
   22163  1.1  christos   export CONFIG_SHELL
   22164  1.1  christos   exec "\$@"
   22165  1.1  christos fi
   22166  1.1  christos 
   22167  1.1  christos _ACEOF
   22168  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22169  1.1  christos exec 5>>config.log
   22170  1.1  christos {
   22171  1.1  christos   echo
   22172  1.1  christos   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   22173  1.1  christos ## Running $as_me. ##
   22174  1.1  christos _ASBOX
   22175  1.1  christos   $as_echo "$ac_log"
   22176  1.1  christos } >&5
   22177  1.1  christos 
   22178  1.1  christos _ACEOF
   22179  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22180  1.1  christos #
   22181  1.1  christos # INIT-COMMANDS
   22182  1.1  christos #
   22183  1.1  christos 
   22184  1.1  christos 
   22185  1.1  christos # The HP-UX ksh and POSIX shell print the target directory to stdout
   22186  1.1  christos # if CDPATH is set.
   22187  1.1  christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   22188  1.1  christos 
   22189  1.1  christos sed_quote_subst='$sed_quote_subst'
   22190  1.1  christos double_quote_subst='$double_quote_subst'
   22191  1.1  christos delay_variable_subst='$delay_variable_subst'
   22192  1.1  christos macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   22193  1.1  christos macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   22194  1.1  christos enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   22195  1.1  christos enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   22196  1.1  christos pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   22197  1.1  christos enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   22198  1.1  christos shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   22199  1.1  christos SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   22200  1.1  christos ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   22201  1.1  christos PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   22202  1.1  christos host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   22203  1.1  christos host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   22204  1.1  christos host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   22205  1.1  christos build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   22206  1.1  christos build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   22207  1.1  christos build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   22208  1.1  christos SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   22209  1.1  christos Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   22210  1.1  christos GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   22211  1.1  christos EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   22212  1.1  christos FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   22213  1.1  christos LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   22214  1.1  christos NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   22215  1.1  christos LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   22216  1.1  christos max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   22217  1.1  christos ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   22218  1.1  christos exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   22219  1.1  christos lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   22220  1.1  christos lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   22221  1.1  christos lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   22222  1.1  christos lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   22223  1.1  christos lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   22224  1.1  christos reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   22225  1.1  christos reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   22226  1.1  christos OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   22227  1.1  christos deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   22228  1.1  christos file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   22229  1.1  christos file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   22230  1.1  christos want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   22231  1.1  christos DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   22232  1.1  christos sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   22233  1.1  christos AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   22234  1.1  christos AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   22235  1.1  christos archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   22236  1.1  christos STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   22237  1.1  christos RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   22238  1.1  christos old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22239  1.1  christos old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22240  1.1  christos old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   22241  1.1  christos lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   22242  1.1  christos CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   22243  1.1  christos CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   22244  1.1  christos compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   22245  1.1  christos GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   22246  1.1  christos lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   22247  1.1  christos lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   22248  1.1  christos lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   22249  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"`'
   22250  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"`'
   22251  1.1  christos lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   22252  1.1  christos nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   22253  1.1  christos lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   22254  1.1  christos lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   22255  1.1  christos objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   22256  1.1  christos MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   22257  1.1  christos lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   22258  1.1  christos lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   22259  1.1  christos lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   22260  1.1  christos lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   22261  1.1  christos lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   22262  1.1  christos need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   22263  1.1  christos MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   22264  1.1  christos DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   22265  1.1  christos NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   22266  1.1  christos LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   22267  1.1  christos OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   22268  1.1  christos OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   22269  1.1  christos libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   22270  1.1  christos shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   22271  1.1  christos extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22272  1.1  christos archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   22273  1.1  christos enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   22274  1.1  christos export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   22275  1.1  christos whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   22276  1.1  christos compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   22277  1.1  christos old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   22278  1.1  christos old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22279  1.1  christos archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   22280  1.1  christos archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22281  1.1  christos module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   22282  1.1  christos module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22283  1.1  christos with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   22284  1.1  christos allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22285  1.1  christos no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22286  1.1  christos hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   22287  1.1  christos hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   22288  1.1  christos hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   22289  1.1  christos hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   22290  1.1  christos hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   22291  1.1  christos hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22292  1.1  christos hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   22293  1.1  christos inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   22294  1.1  christos link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   22295  1.1  christos always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   22296  1.1  christos export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   22297  1.1  christos exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   22298  1.1  christos include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   22299  1.1  christos prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   22300  1.1  christos postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   22301  1.1  christos file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   22302  1.1  christos variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   22303  1.1  christos need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   22304  1.1  christos need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   22305  1.1  christos version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   22306  1.1  christos runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   22307  1.1  christos shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22308  1.1  christos shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   22309  1.1  christos libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   22310  1.1  christos library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   22311  1.1  christos soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   22312  1.1  christos install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   22313  1.1  christos postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22314  1.1  christos postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22315  1.1  christos finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   22316  1.1  christos finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   22317  1.1  christos hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   22318  1.1  christos sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   22319  1.1  christos configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   22320  1.1  christos configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   22321  1.1  christos hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   22322  1.1  christos enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   22323  1.1  christos enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   22324  1.1  christos enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   22325  1.1  christos old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   22326  1.1  christos striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   22327  1.1  christos 
   22328  1.1  christos LTCC='$LTCC'
   22329  1.1  christos LTCFLAGS='$LTCFLAGS'
   22330  1.1  christos compiler='$compiler_DEFAULT'
   22331  1.1  christos 
   22332  1.1  christos # A function that is used when there is no print builtin or printf.
   22333  1.1  christos func_fallback_echo ()
   22334  1.1  christos {
   22335  1.1  christos   eval 'cat <<_LTECHO_EOF
   22336  1.1  christos \$1
   22337  1.1  christos _LTECHO_EOF'
   22338  1.1  christos }
   22339  1.1  christos 
   22340  1.1  christos # Quote evaled strings.
   22341  1.1  christos for var in SHELL \
   22342  1.1  christos ECHO \
   22343  1.1  christos PATH_SEPARATOR \
   22344  1.1  christos SED \
   22345  1.1  christos GREP \
   22346  1.1  christos EGREP \
   22347  1.1  christos FGREP \
   22348  1.1  christos LD \
   22349  1.1  christos NM \
   22350  1.1  christos LN_S \
   22351  1.1  christos lt_SP2NL \
   22352  1.1  christos lt_NL2SP \
   22353  1.1  christos reload_flag \
   22354  1.1  christos OBJDUMP \
   22355  1.1  christos deplibs_check_method \
   22356  1.1  christos file_magic_cmd \
   22357  1.1  christos file_magic_glob \
   22358  1.1  christos want_nocaseglob \
   22359  1.1  christos DLLTOOL \
   22360  1.1  christos sharedlib_from_linklib_cmd \
   22361  1.1  christos AR \
   22362  1.1  christos AR_FLAGS \
   22363  1.1  christos archiver_list_spec \
   22364  1.1  christos STRIP \
   22365  1.1  christos RANLIB \
   22366  1.1  christos CC \
   22367  1.1  christos CFLAGS \
   22368  1.1  christos compiler \
   22369  1.1  christos lt_cv_sys_global_symbol_pipe \
   22370  1.1  christos lt_cv_sys_global_symbol_to_cdecl \
   22371  1.1  christos lt_cv_sys_global_symbol_to_import \
   22372  1.1  christos lt_cv_sys_global_symbol_to_c_name_address \
   22373  1.1  christos lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   22374  1.1  christos lt_cv_nm_interface \
   22375  1.1  christos nm_file_list_spec \
   22376  1.1  christos lt_cv_truncate_bin \
   22377  1.1  christos lt_prog_compiler_no_builtin_flag \
   22378  1.1  christos lt_prog_compiler_pic \
   22379  1.1  christos lt_prog_compiler_wl \
   22380  1.1  christos lt_prog_compiler_static \
   22381  1.1  christos lt_cv_prog_compiler_c_o \
   22382  1.1  christos need_locks \
   22383  1.1  christos MANIFEST_TOOL \
   22384  1.1  christos DSYMUTIL \
   22385  1.1  christos NMEDIT \
   22386  1.1  christos LIPO \
   22387  1.1  christos OTOOL \
   22388  1.1  christos OTOOL64 \
   22389  1.1  christos shrext_cmds \
   22390  1.1  christos export_dynamic_flag_spec \
   22391  1.1  christos whole_archive_flag_spec \
   22392  1.1  christos compiler_needs_object \
   22393  1.1  christos with_gnu_ld \
   22394  1.1  christos allow_undefined_flag \
   22395  1.1  christos no_undefined_flag \
   22396  1.1  christos hardcode_libdir_flag_spec \
   22397  1.1  christos hardcode_libdir_separator \
   22398  1.1  christos exclude_expsyms \
   22399  1.1  christos include_expsyms \
   22400  1.1  christos file_list_spec \
   22401  1.1  christos variables_saved_for_relink \
   22402  1.1  christos libname_spec \
   22403  1.1  christos library_names_spec \
   22404  1.1  christos soname_spec \
   22405  1.1  christos install_override_mode \
   22406  1.1  christos finish_eval \
   22407  1.1  christos old_striplib \
   22408  1.1  christos striplib; do
   22409  1.1  christos     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22410  1.1  christos     *[\\\\\\\`\\"\\\$]*)
   22411  1.1  christos       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22412  1.1  christos       ;;
   22413  1.1  christos     *)
   22414  1.1  christos       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22415  1.1  christos       ;;
   22416  1.1  christos     esac
   22417  1.1  christos done
   22418  1.1  christos 
   22419  1.1  christos # Double-quote double-evaled strings.
   22420  1.1  christos for var in reload_cmds \
   22421  1.1  christos old_postinstall_cmds \
   22422  1.1  christos old_postuninstall_cmds \
   22423  1.1  christos old_archive_cmds \
   22424  1.1  christos extract_expsyms_cmds \
   22425  1.1  christos old_archive_from_new_cmds \
   22426  1.1  christos old_archive_from_expsyms_cmds \
   22427  1.1  christos archive_cmds \
   22428  1.1  christos archive_expsym_cmds \
   22429  1.1  christos module_cmds \
   22430  1.1  christos module_expsym_cmds \
   22431  1.1  christos export_symbols_cmds \
   22432  1.1  christos prelink_cmds \
   22433  1.1  christos postlink_cmds \
   22434  1.1  christos postinstall_cmds \
   22435  1.1  christos postuninstall_cmds \
   22436  1.1  christos finish_cmds \
   22437  1.1  christos sys_lib_search_path_spec \
   22438  1.1  christos configure_time_dlsearch_path \
   22439  1.1  christos configure_time_lt_sys_library_path; do
   22440  1.1  christos     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22441  1.1  christos     *[\\\\\\\`\\"\\\$]*)
   22442  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
   22443  1.1  christos       ;;
   22444  1.1  christos     *)
   22445  1.1  christos       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22446  1.1  christos       ;;
   22447  1.1  christos     esac
   22448  1.1  christos done
   22449  1.1  christos 
   22450  1.1  christos ac_aux_dir='$ac_aux_dir'
   22451  1.1  christos 
   22452  1.1  christos # See if we are running on zsh, and set the options that allow our
   22453  1.1  christos # commands through without removal of \ escapes INIT.
   22454  1.1  christos if test -n "\${ZSH_VERSION+set}"; then
   22455  1.1  christos    setopt NO_GLOB_SUBST
   22456  1.1  christos fi
   22457  1.1  christos 
   22458  1.1  christos 
   22459  1.1  christos     PACKAGE='$PACKAGE'
   22460  1.1  christos     VERSION='$VERSION'
   22461  1.1  christos     RM='$RM'
   22462  1.1  christos     ofile='$ofile'
   22463  1.1  christos 
   22464  1.1  christos 
   22465  1.1  christos 
   22466  1.1  christos 
   22467  1.1  christos _ACEOF
   22468  1.1  christos 
   22469  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22470  1.1  christos 
   22471  1.1  christos # Handling of arguments.
   22472  1.1  christos for ac_config_target in $ac_config_targets
   22473  1.1  christos do
   22474  1.1  christos   case $ac_config_target in
   22475  1.1  christos     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   22476  1.1  christos     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   22477  1.1  christos     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   22478  1.1  christos     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   22479  1.1  christos     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   22480  1.1  christos     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   22481  1.1  christos     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   22482  1.1  christos     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   22483  1.1  christos     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   22484  1.1  christos     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   22485  1.1  christos     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   22486  1.1  christos     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   22487  1.1  christos     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   22488  1.1  christos     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   22489  1.1  christos     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   22490  1.1  christos     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   22491  1.1  christos     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   22492  1.1  christos     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   22493  1.1  christos     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   22494  1.1  christos     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   22495  1.1  christos     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   22496  1.1  christos     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   22497  1.1  christos     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   22498  1.3  christos     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   22499  1.1  christos     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   22500  1.1  christos     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   22501  1.1  christos     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   22502  1.1  christos     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   22503  1.1  christos     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   22504  1.1  christos     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   22505  1.1  christos     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   22506  1.1  christos     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   22507  1.1  christos     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   22508  1.1  christos     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   22509  1.1  christos     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   22510  1.1  christos     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   22511  1.1  christos     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   22512  1.1  christos     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   22513  1.1  christos     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   22514  1.1  christos     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   22515  1.1  christos     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   22516  1.1  christos     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   22517  1.1  christos     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   22518  1.1  christos     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   22519  1.1  christos     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   22520  1.1  christos     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   22521  1.1  christos     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   22522  1.1  christos     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   22523  1.1  christos     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   22524  1.1  christos     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   22525  1.1  christos     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   22526  1.1  christos     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   22527  1.1  christos     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   22528  1.1  christos     "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;;
   22529  1.1  christos     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   22530  1.1  christos     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   22531  1.1  christos     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   22532  1.1  christos     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   22533  1.1  christos     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   22534  1.1  christos     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   22535  1.1  christos     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   22536  1.1  christos     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   22537  1.1  christos     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   22538  1.1  christos     "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
   22539  1.1  christos     "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
   22540  1.1  christos     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   22541  1.1  christos     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   22542  1.1  christos     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   22543  1.1  christos     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   22544  1.1  christos     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   22545  1.1  christos     "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
   22546  1.1  christos     "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
   22547  1.1  christos     "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
   22548  1.1  christos     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   22549  1.1  christos     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   22550  1.1  christos     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   22551  1.1  christos     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   22552  1.1  christos     "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
   22553  1.1  christos     "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
   22554  1.1  christos     "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
   22555  1.1  christos     "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
   22556  1.1  christos     "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
   22557  1.1  christos     "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
   22558  1.1  christos     "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
   22559  1.1  christos     "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
   22560  1.1  christos     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   22561  1.1  christos     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   22562  1.1  christos     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   22563  1.1  christos     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   22564  1.1  christos     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   22565  1.1  christos     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   22566  1.1  christos     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   22567  1.1  christos     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   22568  1.1  christos     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   22569  1.1  christos     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   22570  1.1  christos     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   22571  1.1  christos     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   22572  1.1  christos     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   22573  1.1  christos     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   22574  1.1  christos     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   22575  1.3  christos     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   22576  1.3  christos     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   22577  1.3  christos     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   22578  1.1  christos     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   22579  1.1  christos     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   22580  1.1  christos     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   22581  1.1  christos     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   22582  1.1  christos     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   22583  1.1  christos     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   22584  1.1  christos     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   22585  1.1  christos     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   22586  1.1  christos     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   22587  1.1  christos     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   22588  1.1  christos     "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
   22589  1.1  christos     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   22590  1.1  christos     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   22591  1.1  christos     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   22592  1.3  christos     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   22593  1.1  christos     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   22594  1.1  christos     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   22595  1.1  christos     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   22596  1.1  christos     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   22597  1.1  christos     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   22598  1.1  christos     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   22599  1.1  christos     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   22600  1.1  christos     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   22601  1.1  christos     "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
   22602  1.1  christos     "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
   22603  1.1  christos     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   22604  1.3  christos     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   22605  1.1  christos 
   22606  1.1  christos   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   22607  1.1  christos   esac
   22608  1.1  christos done
   22609  1.1  christos 
   22610  1.1  christos 
   22611  1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   22612  1.1  christos # then the envvar interface is used.  Set only those that are not.
   22613  1.1  christos # We use the long form for the default assignment because of an extremely
   22614  1.1  christos # bizarre bug on SunOS 4.1.3.
   22615  1.1  christos if $ac_need_defaults; then
   22616  1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   22617  1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   22618  1.1  christos   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   22619  1.1  christos fi
   22620  1.1  christos 
   22621  1.1  christos # Have a temporary directory for convenience.  Make it in the build tree
   22622  1.1  christos # simply because there is no reason against having it here, and in addition,
   22623  1.1  christos # creating and moving files from /tmp can sometimes cause problems.
   22624  1.1  christos # Hook for its removal unless debugging.
   22625  1.1  christos # Note that there is a small window in which the directory will not be cleaned:
   22626  1.1  christos # after its creation but before its name has been assigned to `$tmp'.
   22627  1.1  christos $debug ||
   22628  1.1  christos {
   22629  1.1  christos   tmp= ac_tmp=
   22630  1.1  christos   trap 'exit_status=$?
   22631  1.1  christos   : "${ac_tmp:=$tmp}"
   22632  1.1  christos   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   22633  1.1  christos ' 0
   22634  1.1  christos   trap 'as_fn_exit 1' 1 2 13 15
   22635  1.1  christos }
   22636  1.1  christos # Create a (secure) tmp directory for tmp files.
   22637  1.1  christos 
   22638  1.1  christos {
   22639  1.1  christos   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   22640  1.1  christos   test -d "$tmp"
   22641  1.1  christos }  ||
   22642  1.1  christos {
   22643  1.1  christos   tmp=./conf$$-$RANDOM
   22644  1.1  christos   (umask 077 && mkdir "$tmp")
   22645  1.1  christos } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   22646  1.1  christos ac_tmp=$tmp
   22647  1.1  christos 
   22648  1.1  christos # Set up the scripts for CONFIG_FILES section.
   22649  1.1  christos # No need to generate them if there are no CONFIG_FILES.
   22650  1.1  christos # This happens for instance with `./config.status config.h'.
   22651  1.1  christos if test -n "$CONFIG_FILES"; then
   22652  1.1  christos 
   22653  1.1  christos if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   22654  1.1  christos   ac_cs_awk_getline=:
   22655  1.1  christos   ac_cs_awk_pipe_init=
   22656  1.1  christos   ac_cs_awk_read_file='
   22657  1.1  christos       while ((getline aline < (F[key])) > 0)
   22658  1.1  christos 	print(aline)
   22659  1.1  christos       close(F[key])'
   22660  1.1  christos   ac_cs_awk_pipe_fini=
   22661  1.1  christos else
   22662  1.1  christos   ac_cs_awk_getline=false
   22663  1.1  christos   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   22664  1.1  christos   ac_cs_awk_read_file='
   22665  1.1  christos       print "|#_!!_#|"
   22666  1.1  christos       print "cat " F[key] " &&"
   22667  1.1  christos       '$ac_cs_awk_pipe_init
   22668  1.1  christos   # The final `:' finishes the AND list.
   22669  1.1  christos   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   22670  1.1  christos fi
   22671  1.1  christos ac_cr=`echo X | tr X '\015'`
   22672  1.1  christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
   22673  1.1  christos # But we know of no other shell where ac_cr would be empty at this
   22674  1.1  christos # point, so we can use a bashism as a fallback.
   22675  1.1  christos if test "x$ac_cr" = x; then
   22676  1.1  christos   eval ac_cr=\$\'\\r\'
   22677  1.1  christos fi
   22678  1.1  christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   22679  1.1  christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   22680  1.1  christos   ac_cs_awk_cr='\\r'
   22681  1.1  christos else
   22682  1.1  christos   ac_cs_awk_cr=$ac_cr
   22683  1.1  christos fi
   22684  1.1  christos 
   22685  1.1  christos echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   22686  1.1  christos _ACEOF
   22687  1.1  christos 
   22688  1.1  christos # Create commands to substitute file output variables.
   22689  1.1  christos {
   22690  1.1  christos   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   22691  1.1  christos   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   22692  1.1  christos   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   22693  1.1  christos   echo "_ACAWK" &&
   22694  1.1  christos   echo "_ACEOF"
   22695  1.1  christos } >conf$$files.sh &&
   22696  1.1  christos . ./conf$$files.sh ||
   22697  1.1  christos   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22698  1.1  christos rm -f conf$$files.sh
   22699  1.1  christos 
   22700  1.1  christos {
   22701  1.1  christos   echo "cat >conf$$subs.awk <<_ACEOF" &&
   22702  1.1  christos   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   22703  1.1  christos   echo "_ACEOF"
   22704  1.1  christos } >conf$$subs.sh ||
   22705  1.1  christos   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22706  1.1  christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   22707  1.1  christos ac_delim='%!_!# '
   22708  1.1  christos for ac_last_try in false false false false false :; do
   22709  1.1  christos   . ./conf$$subs.sh ||
   22710  1.1  christos     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22711  1.1  christos 
   22712  1.1  christos   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   22713  1.1  christos   if test $ac_delim_n = $ac_delim_num; then
   22714  1.1  christos     break
   22715  1.1  christos   elif $ac_last_try; then
   22716  1.1  christos     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22717  1.1  christos   else
   22718  1.1  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22719  1.1  christos   fi
   22720  1.1  christos done
   22721  1.1  christos rm -f conf$$subs.sh
   22722  1.1  christos 
   22723  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22724  1.1  christos cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   22725  1.1  christos _ACEOF
   22726  1.1  christos sed -n '
   22727  1.1  christos h
   22728  1.1  christos s/^/S["/; s/!.*/"]=/
   22729  1.1  christos p
   22730  1.1  christos g
   22731  1.1  christos s/^[^!]*!//
   22732  1.1  christos :repl
   22733  1.1  christos t repl
   22734  1.1  christos s/'"$ac_delim"'$//
   22735  1.1  christos t delim
   22736  1.1  christos :nl
   22737  1.1  christos h
   22738  1.1  christos s/\(.\{148\}\)..*/\1/
   22739  1.1  christos t more1
   22740  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   22741  1.1  christos p
   22742  1.1  christos n
   22743  1.1  christos b repl
   22744  1.1  christos :more1
   22745  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22746  1.1  christos p
   22747  1.1  christos g
   22748  1.1  christos s/.\{148\}//
   22749  1.1  christos t nl
   22750  1.1  christos :delim
   22751  1.1  christos h
   22752  1.1  christos s/\(.\{148\}\)..*/\1/
   22753  1.1  christos t more2
   22754  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/"/
   22755  1.1  christos p
   22756  1.1  christos b
   22757  1.1  christos :more2
   22758  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22759  1.1  christos p
   22760  1.1  christos g
   22761  1.1  christos s/.\{148\}//
   22762  1.1  christos t delim
   22763  1.1  christos ' <conf$$subs.awk | sed '
   22764  1.1  christos /^[^""]/{
   22765  1.1  christos   N
   22766  1.1  christos   s/\n//
   22767  1.1  christos }
   22768  1.1  christos ' >>$CONFIG_STATUS || ac_write_fail=1
   22769  1.1  christos rm -f conf$$subs.awk
   22770  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22771  1.1  christos _ACAWK
   22772  1.1  christos cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   22773  1.1  christos   for (key in S) S_is_set[key] = 1
   22774  1.1  christos   FS = ""
   22775  1.1  christos   \$ac_cs_awk_pipe_init
   22776  1.1  christos }
   22777  1.1  christos {
   22778  1.1  christos   line = $ 0
   22779  1.1  christos   nfields = split(line, field, "@")
   22780  1.1  christos   substed = 0
   22781  1.1  christos   len = length(field[1])
   22782  1.1  christos   for (i = 2; i < nfields; i++) {
   22783  1.1  christos     key = field[i]
   22784  1.1  christos     keylen = length(key)
   22785  1.1  christos     if (S_is_set[key]) {
   22786  1.1  christos       value = S[key]
   22787  1.1  christos       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   22788  1.1  christos       len += length(value) + length(field[++i])
   22789  1.1  christos       substed = 1
   22790  1.1  christos     } else
   22791  1.1  christos       len += 1 + keylen
   22792  1.1  christos   }
   22793  1.1  christos   if (nfields == 3 && !substed) {
   22794  1.1  christos     key = field[2]
   22795  1.1  christos     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   22796  1.1  christos       \$ac_cs_awk_read_file
   22797  1.1  christos       next
   22798  1.1  christos     }
   22799  1.1  christos   }
   22800  1.1  christos   print line
   22801  1.1  christos }
   22802  1.1  christos \$ac_cs_awk_pipe_fini
   22803  1.1  christos _ACAWK
   22804  1.1  christos _ACEOF
   22805  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22806  1.1  christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   22807  1.1  christos   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   22808  1.1  christos else
   22809  1.1  christos   cat
   22810  1.1  christos fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   22811  1.1  christos   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   22812  1.1  christos _ACEOF
   22813  1.1  christos 
   22814  1.1  christos # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   22815  1.1  christos # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   22816  1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   22817  1.1  christos # (actually we leave an empty line to preserve line numbers).
   22818  1.1  christos if test "x$srcdir" = x.; then
   22819  1.1  christos   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   22820  1.1  christos h
   22821  1.1  christos s///
   22822  1.1  christos s/^/:/
   22823  1.1  christos s/[	 ]*$/:/
   22824  1.1  christos s/:\$(srcdir):/:/g
   22825  1.1  christos s/:\${srcdir}:/:/g
   22826  1.1  christos s/:@srcdir@:/:/g
   22827  1.1  christos s/^:*//
   22828  1.1  christos s/:*$//
   22829  1.1  christos x
   22830  1.1  christos s/\(=[	 ]*\).*/\1/
   22831  1.1  christos G
   22832  1.1  christos s/\n//
   22833  1.1  christos s/^[^=]*=[	 ]*$//
   22834  1.1  christos }'
   22835  1.1  christos fi
   22836  1.1  christos 
   22837  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22838  1.1  christos fi # test -n "$CONFIG_FILES"
   22839  1.1  christos 
   22840  1.1  christos # Set up the scripts for CONFIG_HEADERS section.
   22841  1.1  christos # No need to generate them if there are no CONFIG_HEADERS.
   22842  1.1  christos # This happens for instance with `./config.status Makefile'.
   22843  1.1  christos if test -n "$CONFIG_HEADERS"; then
   22844  1.1  christos cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   22845  1.1  christos BEGIN {
   22846  1.1  christos _ACEOF
   22847  1.1  christos 
   22848  1.1  christos # Transform confdefs.h into an awk script `defines.awk', embedded as
   22849  1.1  christos # here-document in config.status, that substitutes the proper values into
   22850  1.1  christos # config.h.in to produce config.h.
   22851  1.1  christos 
   22852  1.1  christos # Create a delimiter string that does not exist in confdefs.h, to ease
   22853  1.1  christos # handling of long lines.
   22854  1.1  christos ac_delim='%!_!# '
   22855  1.1  christos for ac_last_try in false false :; do
   22856  1.1  christos   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   22857  1.1  christos   if test -z "$ac_tt"; then
   22858  1.1  christos     break
   22859  1.1  christos   elif $ac_last_try; then
   22860  1.1  christos     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   22861  1.1  christos   else
   22862  1.1  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22863  1.1  christos   fi
   22864  1.1  christos done
   22865  1.1  christos 
   22866  1.1  christos # For the awk script, D is an array of macro values keyed by name,
   22867  1.1  christos # likewise P contains macro parameters if any.  Preserve backslash
   22868  1.1  christos # newline sequences.
   22869  1.1  christos 
   22870  1.1  christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   22871  1.1  christos sed -n '
   22872  1.1  christos s/.\{148\}/&'"$ac_delim"'/g
   22873  1.1  christos t rset
   22874  1.1  christos :rset
   22875  1.1  christos s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   22876  1.1  christos t def
   22877  1.1  christos d
   22878  1.1  christos :def
   22879  1.1  christos s/\\$//
   22880  1.1  christos t bsnl
   22881  1.1  christos s/["\\]/\\&/g
   22882  1.1  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22883  1.1  christos D["\1"]=" \3"/p
   22884  1.1  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   22885  1.1  christos d
   22886  1.1  christos :bsnl
   22887  1.1  christos s/["\\]/\\&/g
   22888  1.1  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22889  1.1  christos D["\1"]=" \3\\\\\\n"\\/p
   22890  1.1  christos t cont
   22891  1.1  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   22892  1.1  christos t cont
   22893  1.1  christos d
   22894  1.1  christos :cont
   22895  1.1  christos n
   22896  1.1  christos s/.\{148\}/&'"$ac_delim"'/g
   22897  1.1  christos t clear
   22898  1.1  christos :clear
   22899  1.1  christos s/\\$//
   22900  1.1  christos t bsnlc
   22901  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
   22902  1.1  christos d
   22903  1.1  christos :bsnlc
   22904  1.1  christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   22905  1.1  christos b cont
   22906  1.1  christos ' <confdefs.h | sed '
   22907  1.1  christos s/'"$ac_delim"'/"\\\
   22908  1.1  christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
   22909  1.1  christos 
   22910  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22911  1.1  christos   for (key in D) D_is_set[key] = 1
   22912  1.1  christos   FS = ""
   22913  1.1  christos }
   22914  1.1  christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   22915  1.1  christos   line = \$ 0
   22916  1.1  christos   split(line, arg, " ")
   22917  1.1  christos   if (arg[1] == "#") {
   22918  1.1  christos     defundef = arg[2]
   22919  1.1  christos     mac1 = arg[3]
   22920  1.1  christos   } else {
   22921  1.1  christos     defundef = substr(arg[1], 2)
   22922  1.1  christos     mac1 = arg[2]
   22923  1.1  christos   }
   22924  1.1  christos   split(mac1, mac2, "(") #)
   22925  1.1  christos   macro = mac2[1]
   22926  1.1  christos   prefix = substr(line, 1, index(line, defundef) - 1)
   22927  1.1  christos   if (D_is_set[macro]) {
   22928  1.1  christos     # Preserve the white space surrounding the "#".
   22929  1.1  christos     print prefix "define", macro P[macro] D[macro]
   22930  1.1  christos     next
   22931  1.1  christos   } else {
   22932  1.1  christos     # Replace #undef with comments.  This is necessary, for example,
   22933  1.1  christos     # in the case of _POSIX_SOURCE, which is predefined and required
   22934  1.1  christos     # on some systems where configure will not decide to define it.
   22935  1.1  christos     if (defundef == "undef") {
   22936  1.1  christos       print "/*", prefix defundef, macro, "*/"
   22937  1.1  christos       next
   22938  1.1  christos     }
   22939  1.1  christos   }
   22940  1.1  christos }
   22941  1.1  christos { print }
   22942  1.1  christos _ACAWK
   22943  1.1  christos _ACEOF
   22944  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22945  1.1  christos   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   22946  1.1  christos fi # test -n "$CONFIG_HEADERS"
   22947  1.1  christos 
   22948  1.1  christos 
   22949  1.1  christos eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   22950  1.1  christos shift
   22951  1.1  christos for ac_tag
   22952  1.1  christos do
   22953  1.1  christos   case $ac_tag in
   22954  1.1  christos   :[FHLC]) ac_mode=$ac_tag; continue;;
   22955  1.1  christos   esac
   22956  1.1  christos   case $ac_mode$ac_tag in
   22957  1.1  christos   :[FHL]*:*);;
   22958  1.1  christos   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   22959  1.1  christos   :[FH]-) ac_tag=-:-;;
   22960  1.1  christos   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   22961  1.1  christos   esac
   22962  1.1  christos   ac_save_IFS=$IFS
   22963  1.1  christos   IFS=:
   22964  1.1  christos   set x $ac_tag
   22965  1.1  christos   IFS=$ac_save_IFS
   22966  1.1  christos   shift
   22967  1.1  christos   ac_file=$1
   22968  1.1  christos   shift
   22969  1.1  christos 
   22970  1.1  christos   case $ac_mode in
   22971  1.1  christos   :L) ac_source=$1;;
   22972  1.1  christos   :[FH])
   22973  1.1  christos     ac_file_inputs=
   22974  1.1  christos     for ac_f
   22975  1.1  christos     do
   22976  1.1  christos       case $ac_f in
   22977  1.1  christos       -) ac_f="$ac_tmp/stdin";;
   22978  1.1  christos       *) # Look for the file first in the build tree, then in the source tree
   22979  1.1  christos 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   22980  1.1  christos 	 # because $ac_f cannot contain `:'.
   22981  1.1  christos 	 test -f "$ac_f" ||
   22982  1.1  christos 	   case $ac_f in
   22983  1.1  christos 	   [\\/$]*) false;;
   22984  1.1  christos 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   22985  1.1  christos 	   esac ||
   22986  1.1  christos 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   22987  1.1  christos       esac
   22988  1.1  christos       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   22989  1.1  christos       as_fn_append ac_file_inputs " '$ac_f'"
   22990  1.1  christos     done
   22991  1.1  christos 
   22992  1.1  christos     # Let's still pretend it is `configure' which instantiates (i.e., don't
   22993  1.1  christos     # use $as_me), people would be surprised to read:
   22994  1.1  christos     #    /* config.h.  Generated by config.status.  */
   22995  1.1  christos     configure_input='Generated from '`
   22996  1.1  christos 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   22997  1.1  christos 	`' by configure.'
   22998  1.1  christos     if test x"$ac_file" != x-; then
   22999  1.1  christos       configure_input="$ac_file.  $configure_input"
   23000  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   23001  1.1  christos $as_echo "$as_me: creating $ac_file" >&6;}
   23002  1.1  christos     fi
   23003  1.1  christos     # Neutralize special characters interpreted by sed in replacement strings.
   23004  1.1  christos     case $configure_input in #(
   23005  1.1  christos     *\&* | *\|* | *\\* )
   23006  1.1  christos        ac_sed_conf_input=`$as_echo "$configure_input" |
   23007  1.1  christos        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   23008  1.1  christos     *) ac_sed_conf_input=$configure_input;;
   23009  1.1  christos     esac
   23010  1.1  christos 
   23011  1.1  christos     case $ac_tag in
   23012  1.1  christos     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   23013  1.1  christos       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   23014  1.1  christos     esac
   23015  1.1  christos     ;;
   23016  1.1  christos   esac
   23017  1.1  christos 
   23018  1.1  christos   ac_dir=`$as_dirname -- "$ac_file" ||
   23019  1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   23020  1.1  christos 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   23021  1.1  christos 	 X"$ac_file" : 'X\(//\)$' \| \
   23022  1.1  christos 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   23023  1.1  christos $as_echo X"$ac_file" |
   23024  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   23025  1.1  christos 	    s//\1/
   23026  1.1  christos 	    q
   23027  1.1  christos 	  }
   23028  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   23029  1.1  christos 	    s//\1/
   23030  1.1  christos 	    q
   23031  1.1  christos 	  }
   23032  1.1  christos 	  /^X\(\/\/\)$/{
   23033  1.1  christos 	    s//\1/
   23034  1.1  christos 	    q
   23035  1.1  christos 	  }
   23036  1.1  christos 	  /^X\(\/\).*/{
   23037  1.1  christos 	    s//\1/
   23038  1.1  christos 	    q
   23039  1.1  christos 	  }
   23040  1.1  christos 	  s/.*/./; q'`
   23041  1.1  christos   as_dir="$ac_dir"; as_fn_mkdir_p
   23042  1.1  christos   ac_builddir=.
   23043  1.1  christos 
   23044  1.1  christos case "$ac_dir" in
   23045  1.1  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23046  1.1  christos *)
   23047  1.1  christos   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   23048  1.1  christos   # A ".." for each directory in $ac_dir_suffix.
   23049  1.1  christos   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   23050  1.1  christos   case $ac_top_builddir_sub in
   23051  1.1  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23052  1.1  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   23053  1.1  christos   esac ;;
   23054  1.1  christos esac
   23055  1.1  christos ac_abs_top_builddir=$ac_pwd
   23056  1.1  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   23057  1.1  christos # for backward compatibility:
   23058  1.1  christos ac_top_builddir=$ac_top_build_prefix
   23059  1.1  christos 
   23060  1.1  christos case $srcdir in
   23061  1.1  christos   .)  # We are building in place.
   23062  1.1  christos     ac_srcdir=.
   23063  1.1  christos     ac_top_srcdir=$ac_top_builddir_sub
   23064  1.1  christos     ac_abs_top_srcdir=$ac_pwd ;;
   23065  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   23066  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   23067  1.1  christos     ac_top_srcdir=$srcdir
   23068  1.1  christos     ac_abs_top_srcdir=$srcdir ;;
   23069  1.1  christos   *) # Relative name.
   23070  1.1  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   23071  1.1  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   23072  1.1  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   23073  1.1  christos esac
   23074  1.1  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   23075  1.1  christos 
   23076  1.1  christos 
   23077  1.1  christos   case $ac_mode in
   23078  1.1  christos   :F)
   23079  1.1  christos   #
   23080  1.1  christos   # CONFIG_FILE
   23081  1.1  christos   #
   23082  1.1  christos 
   23083  1.1  christos   case $INSTALL in
   23084  1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   23085  1.1  christos   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   23086  1.1  christos   esac
   23087  1.1  christos _ACEOF
   23088  1.1  christos 
   23089  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23090  1.1  christos # If the template does not know about datarootdir, expand it.
   23091  1.1  christos # FIXME: This hack should be removed a few years after 2.60.
   23092  1.1  christos ac_datarootdir_hack=; ac_datarootdir_seen=
   23093  1.1  christos ac_sed_dataroot='
   23094  1.1  christos /datarootdir/ {
   23095  1.1  christos   p
   23096  1.1  christos   q
   23097  1.1  christos }
   23098  1.1  christos /@datadir@/p
   23099  1.1  christos /@docdir@/p
   23100  1.1  christos /@infodir@/p
   23101  1.1  christos /@localedir@/p
   23102  1.1  christos /@mandir@/p'
   23103  1.1  christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   23104  1.1  christos *datarootdir*) ac_datarootdir_seen=yes;;
   23105  1.1  christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   23106  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   23107  1.1  christos $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   23108  1.1  christos _ACEOF
   23109  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23110  1.1  christos   ac_datarootdir_hack='
   23111  1.1  christos   s&@datadir@&$datadir&g
   23112  1.1  christos   s&@docdir@&$docdir&g
   23113  1.1  christos   s&@infodir@&$infodir&g
   23114  1.1  christos   s&@localedir@&$localedir&g
   23115  1.1  christos   s&@mandir@&$mandir&g
   23116  1.1  christos   s&\\\${datarootdir}&$datarootdir&g' ;;
   23117  1.1  christos esac
   23118  1.1  christos _ACEOF
   23119  1.1  christos 
   23120  1.1  christos # Neutralize VPATH when `$srcdir' = `.'.
   23121  1.1  christos # Shell code in configure.ac might set extrasub.
   23122  1.1  christos # FIXME: do we really want to maintain this feature?
   23123  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23124  1.1  christos ac_sed_extra="$ac_vpsub
   23125  1.1  christos $extrasub
   23126  1.1  christos _ACEOF
   23127  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23128  1.1  christos :t
   23129  1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   23130  1.1  christos s|@configure_input@|$ac_sed_conf_input|;t t
   23131  1.1  christos s&@top_builddir@&$ac_top_builddir_sub&;t t
   23132  1.1  christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
   23133  1.1  christos s&@srcdir@&$ac_srcdir&;t t
   23134  1.1  christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
   23135  1.1  christos s&@top_srcdir@&$ac_top_srcdir&;t t
   23136  1.1  christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   23137  1.1  christos s&@builddir@&$ac_builddir&;t t
   23138  1.1  christos s&@abs_builddir@&$ac_abs_builddir&;t t
   23139  1.1  christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   23140  1.1  christos s&@INSTALL@&$ac_INSTALL&;t t
   23141  1.1  christos $ac_datarootdir_hack
   23142  1.1  christos "
   23143  1.1  christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   23144  1.1  christos if $ac_cs_awk_getline; then
   23145  1.1  christos   $AWK -f "$ac_tmp/subs.awk"
   23146  1.1  christos else
   23147  1.1  christos   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   23148  1.1  christos fi \
   23149  1.1  christos   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23150  1.1  christos 
   23151  1.1  christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   23152  1.1  christos   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   23153  1.1  christos   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   23154  1.1  christos       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   23155  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23156  1.1  christos which seems to be undefined.  Please make sure it is defined" >&5
   23157  1.1  christos $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23158  1.1  christos which seems to be undefined.  Please make sure it is defined" >&2;}
   23159  1.1  christos 
   23160  1.1  christos   rm -f "$ac_tmp/stdin"
   23161  1.1  christos   case $ac_file in
   23162  1.1  christos   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   23163  1.1  christos   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   23164  1.1  christos   esac \
   23165  1.1  christos   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23166  1.1  christos  ;;
   23167  1.1  christos   :H)
   23168  1.1  christos   #
   23169  1.1  christos   # CONFIG_HEADER
   23170  1.1  christos   #
   23171  1.1  christos   if test x"$ac_file" != x-; then
   23172  1.1  christos     {
   23173  1.1  christos       $as_echo "/* $configure_input  */" \
   23174  1.1  christos       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   23175  1.1  christos     } >"$ac_tmp/config.h" \
   23176  1.1  christos       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23177  1.1  christos     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   23178  1.1  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   23179  1.1  christos $as_echo "$as_me: $ac_file is unchanged" >&6;}
   23180  1.1  christos     else
   23181  1.1  christos       rm -f "$ac_file"
   23182  1.1  christos       mv "$ac_tmp/config.h" "$ac_file" \
   23183  1.1  christos 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23184  1.1  christos     fi
   23185  1.1  christos   else
   23186  1.1  christos     $as_echo "/* $configure_input  */" \
   23187  1.1  christos       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   23188  1.1  christos       || as_fn_error $? "could not create -" "$LINENO" 5
   23189  1.1  christos   fi
   23190  1.1  christos  ;;
   23191  1.1  christos 
   23192  1.1  christos   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   23193  1.1  christos $as_echo "$as_me: executing $ac_file commands" >&6;}
   23194  1.1  christos  ;;
   23195  1.1  christos   esac
   23196  1.1  christos 
   23197  1.1  christos 
   23198  1.1  christos   case $ac_file$ac_mode in
   23199  1.1  christos     "libtool":C)
   23200  1.1  christos 
   23201  1.1  christos     # See if we are running on zsh, and set the options that allow our
   23202  1.1  christos     # commands through without removal of \ escapes.
   23203  1.1  christos     if test -n "${ZSH_VERSION+set}"; then
   23204  1.1  christos       setopt NO_GLOB_SUBST
   23205  1.1  christos     fi
   23206  1.1  christos 
   23207  1.1  christos     cfgfile=${ofile}T
   23208  1.1  christos     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   23209  1.1  christos     $RM "$cfgfile"
   23210  1.1  christos 
   23211  1.1  christos     cat <<_LT_EOF >> "$cfgfile"
   23212  1.1  christos #! $SHELL
   23213  1.1  christos # Generated automatically by $as_me ($PACKAGE) $VERSION
   23214  1.1  christos # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   23215  1.1  christos # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   23216  1.1  christos 
   23217  1.1  christos # Provide generalized library-building support services.
   23218  1.1  christos # Written by Gordon Matzigkeit, 1996
   23219  1.1  christos 
   23220  1.1  christos # Copyright (C) 2014 Free Software Foundation, Inc.
   23221  1.1  christos # This is free software; see the source for copying conditions.  There is NO
   23222  1.1  christos # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   23223  1.1  christos 
   23224  1.1  christos # GNU Libtool is free software; you can redistribute it and/or modify
   23225  1.1  christos # it under the terms of the GNU General Public License as published by
   23226  1.1  christos # the Free Software Foundation; either version 2 of of the License, or
   23227  1.1  christos # (at your option) any later version.
   23228  1.1  christos #
   23229  1.1  christos # As a special exception to the GNU General Public License, if you
   23230  1.1  christos # distribute this file as part of a program or library that is built
   23231  1.1  christos # using GNU Libtool, you may include this file under the  same
   23232  1.1  christos # distribution terms that you use for the rest of that program.
   23233  1.1  christos #
   23234  1.1  christos # GNU Libtool is distributed in the hope that it will be useful, but
   23235  1.1  christos # WITHOUT ANY WARRANTY; without even the implied warranty of
   23236  1.1  christos # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   23237  1.1  christos # GNU General Public License for more details.
   23238  1.1  christos #
   23239  1.1  christos # You should have received a copy of the GNU General Public License
   23240  1.1  christos # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   23241  1.1  christos 
   23242  1.1  christos 
   23243  1.1  christos # The names of the tagged configurations supported by this script.
   23244  1.1  christos available_tags=''
   23245  1.1  christos 
   23246  1.1  christos # Configured defaults for sys_lib_dlsearch_path munging.
   23247  1.1  christos : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   23248  1.1  christos 
   23249  1.1  christos # ### BEGIN LIBTOOL CONFIG
   23250  1.1  christos 
   23251  1.1  christos # Which release of libtool.m4 was used?
   23252  1.1  christos macro_version=$macro_version
   23253  1.1  christos macro_revision=$macro_revision
   23254  1.1  christos 
   23255  1.1  christos # Whether or not to build shared libraries.
   23256  1.1  christos build_libtool_libs=$enable_shared
   23257  1.1  christos 
   23258  1.1  christos # Whether or not to build static libraries.
   23259  1.1  christos build_old_libs=$enable_static
   23260  1.1  christos 
   23261  1.1  christos # What type of objects to build.
   23262  1.1  christos pic_mode=$pic_mode
   23263  1.1  christos 
   23264  1.1  christos # Whether or not to optimize for fast installation.
   23265  1.1  christos fast_install=$enable_fast_install
   23266  1.1  christos 
   23267  1.1  christos # Shared archive member basename,for filename based shared library versioning on AIX.
   23268  1.1  christos shared_archive_member_spec=$shared_archive_member_spec
   23269  1.1  christos 
   23270  1.1  christos # Shell to use when invoking shell scripts.
   23271  1.1  christos SHELL=$lt_SHELL
   23272  1.1  christos 
   23273  1.1  christos # An echo program that protects backslashes.
   23274  1.1  christos ECHO=$lt_ECHO
   23275  1.1  christos 
   23276  1.1  christos # The PATH separator for the build system.
   23277  1.1  christos PATH_SEPARATOR=$lt_PATH_SEPARATOR
   23278  1.1  christos 
   23279  1.1  christos # The host system.
   23280  1.1  christos host_alias=$host_alias
   23281  1.1  christos host=$host
   23282  1.1  christos host_os=$host_os
   23283  1.1  christos 
   23284  1.1  christos # The build system.
   23285  1.1  christos build_alias=$build_alias
   23286  1.1  christos build=$build
   23287  1.1  christos build_os=$build_os
   23288  1.1  christos 
   23289  1.1  christos # A sed program that does not truncate output.
   23290  1.1  christos SED=$lt_SED
   23291  1.1  christos 
   23292  1.1  christos # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   23293  1.1  christos Xsed="\$SED -e 1s/^X//"
   23294  1.1  christos 
   23295  1.1  christos # A grep program that handles long lines.
   23296  1.1  christos GREP=$lt_GREP
   23297  1.1  christos 
   23298  1.1  christos # An ERE matcher.
   23299  1.1  christos EGREP=$lt_EGREP
   23300  1.1  christos 
   23301  1.1  christos # A literal string matcher.
   23302  1.1  christos FGREP=$lt_FGREP
   23303  1.1  christos 
   23304  1.1  christos # A BSD- or MS-compatible name lister.
   23305  1.1  christos NM=$lt_NM
   23306  1.1  christos 
   23307  1.1  christos # Whether we need soft or hard links.
   23308  1.1  christos LN_S=$lt_LN_S
   23309  1.1  christos 
   23310  1.1  christos # What is the maximum length of a command?
   23311  1.1  christos max_cmd_len=$max_cmd_len
   23312  1.1  christos 
   23313  1.1  christos # Object file suffix (normally "o").
   23314  1.1  christos objext=$ac_objext
   23315  1.1  christos 
   23316  1.1  christos # Executable file suffix (normally "").
   23317  1.1  christos exeext=$exeext
   23318  1.1  christos 
   23319  1.1  christos # whether the shell understands "unset".
   23320  1.1  christos lt_unset=$lt_unset
   23321  1.1  christos 
   23322  1.1  christos # turn spaces into newlines.
   23323  1.1  christos SP2NL=$lt_lt_SP2NL
   23324  1.1  christos 
   23325  1.1  christos # turn newlines into spaces.
   23326  1.1  christos NL2SP=$lt_lt_NL2SP
   23327  1.1  christos 
   23328  1.1  christos # convert \$build file names to \$host format.
   23329  1.1  christos to_host_file_cmd=$lt_cv_to_host_file_cmd
   23330  1.1  christos 
   23331  1.1  christos # convert \$build files to toolchain format.
   23332  1.1  christos to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   23333  1.1  christos 
   23334  1.1  christos # An object symbol dumper.
   23335  1.1  christos OBJDUMP=$lt_OBJDUMP
   23336  1.1  christos 
   23337  1.1  christos # Method to check whether dependent libraries are shared objects.
   23338  1.1  christos deplibs_check_method=$lt_deplibs_check_method
   23339  1.1  christos 
   23340  1.1  christos # Command to use when deplibs_check_method = "file_magic".
   23341  1.1  christos file_magic_cmd=$lt_file_magic_cmd
   23342  1.1  christos 
   23343  1.1  christos # How to find potential files when deplibs_check_method = "file_magic".
   23344  1.1  christos file_magic_glob=$lt_file_magic_glob
   23345  1.1  christos 
   23346  1.1  christos # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   23347  1.1  christos want_nocaseglob=$lt_want_nocaseglob
   23348  1.1  christos 
   23349  1.1  christos # DLL creation program.
   23350  1.1  christos DLLTOOL=$lt_DLLTOOL
   23351  1.1  christos 
   23352  1.1  christos # Command to associate shared and link libraries.
   23353  1.1  christos sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   23354  1.1  christos 
   23355  1.1  christos # The archiver.
   23356  1.1  christos AR=$lt_AR
   23357  1.1  christos 
   23358  1.1  christos # Flags to create an archive.
   23359  1.1  christos AR_FLAGS=$lt_AR_FLAGS
   23360  1.1  christos 
   23361  1.1  christos # How to feed a file listing to the archiver.
   23362  1.1  christos archiver_list_spec=$lt_archiver_list_spec
   23363  1.1  christos 
   23364  1.1  christos # A symbol stripping program.
   23365  1.1  christos STRIP=$lt_STRIP
   23366  1.1  christos 
   23367  1.1  christos # Commands used to install an old-style archive.
   23368  1.1  christos RANLIB=$lt_RANLIB
   23369  1.1  christos old_postinstall_cmds=$lt_old_postinstall_cmds
   23370  1.1  christos old_postuninstall_cmds=$lt_old_postuninstall_cmds
   23371  1.1  christos 
   23372  1.1  christos # Whether to use a lock for old archive extraction.
   23373  1.1  christos lock_old_archive_extraction=$lock_old_archive_extraction
   23374  1.1  christos 
   23375  1.1  christos # A C compiler.
   23376  1.1  christos LTCC=$lt_CC
   23377  1.1  christos 
   23378  1.1  christos # LTCC compiler flags.
   23379  1.1  christos LTCFLAGS=$lt_CFLAGS
   23380  1.1  christos 
   23381  1.1  christos # Take the output of nm and produce a listing of raw symbols and C names.
   23382  1.1  christos global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   23383  1.1  christos 
   23384  1.1  christos # Transform the output of nm in a proper C declaration.
   23385  1.1  christos global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   23386  1.1  christos 
   23387  1.1  christos # Transform the output of nm into a list of symbols to manually relocate.
   23388  1.1  christos global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   23389  1.1  christos 
   23390  1.1  christos # Transform the output of nm in a C name address pair.
   23391  1.1  christos global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   23392  1.1  christos 
   23393  1.1  christos # Transform the output of nm in a C name address pair when lib prefix is needed.
   23394  1.1  christos global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   23395  1.1  christos 
   23396  1.1  christos # The name lister interface.
   23397  1.1  christos nm_interface=$lt_lt_cv_nm_interface
   23398  1.1  christos 
   23399  1.1  christos # Specify filename containing input files for \$NM.
   23400  1.1  christos nm_file_list_spec=$lt_nm_file_list_spec
   23401  1.1  christos 
   23402  1.1  christos # The root where to search for dependent libraries,and where our libraries should be installed.
   23403  1.1  christos lt_sysroot=$lt_sysroot
   23404  1.1  christos 
   23405  1.1  christos # Command to truncate a binary pipe.
   23406  1.1  christos lt_truncate_bin=$lt_lt_cv_truncate_bin
   23407  1.1  christos 
   23408  1.1  christos # The name of the directory that contains temporary libtool files.
   23409  1.1  christos objdir=$objdir
   23410  1.1  christos 
   23411  1.1  christos # Used to examine libraries when file_magic_cmd begins with "file".
   23412  1.1  christos MAGIC_CMD=$MAGIC_CMD
   23413  1.1  christos 
   23414  1.1  christos # Must we lock files when doing compilation?
   23415  1.1  christos need_locks=$lt_need_locks
   23416  1.1  christos 
   23417  1.1  christos # Manifest tool.
   23418  1.1  christos MANIFEST_TOOL=$lt_MANIFEST_TOOL
   23419  1.1  christos 
   23420  1.1  christos # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   23421  1.1  christos DSYMUTIL=$lt_DSYMUTIL
   23422  1.1  christos 
   23423  1.1  christos # Tool to change global to local symbols on Mac OS X.
   23424  1.1  christos NMEDIT=$lt_NMEDIT
   23425  1.1  christos 
   23426  1.1  christos # Tool to manipulate fat objects and archives on Mac OS X.
   23427  1.1  christos LIPO=$lt_LIPO
   23428  1.1  christos 
   23429  1.1  christos # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   23430  1.1  christos OTOOL=$lt_OTOOL
   23431  1.1  christos 
   23432  1.1  christos # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   23433  1.1  christos OTOOL64=$lt_OTOOL64
   23434  1.1  christos 
   23435  1.1  christos # Old archive suffix (normally "a").
   23436  1.1  christos libext=$libext
   23437  1.1  christos 
   23438  1.1  christos # Shared library suffix (normally ".so").
   23439  1.1  christos shrext_cmds=$lt_shrext_cmds
   23440  1.1  christos 
   23441  1.1  christos # The commands to extract the exported symbol list from a shared archive.
   23442  1.1  christos extract_expsyms_cmds=$lt_extract_expsyms_cmds
   23443  1.1  christos 
   23444  1.1  christos # Variables whose values should be saved in libtool wrapper scripts and
   23445  1.1  christos # restored at link time.
   23446  1.1  christos variables_saved_for_relink=$lt_variables_saved_for_relink
   23447  1.1  christos 
   23448  1.1  christos # Do we need the "lib" prefix for modules?
   23449  1.1  christos need_lib_prefix=$need_lib_prefix
   23450  1.1  christos 
   23451  1.1  christos # Do we need a version for libraries?
   23452  1.1  christos need_version=$need_version
   23453  1.1  christos 
   23454  1.1  christos # Library versioning type.
   23455  1.1  christos version_type=$version_type
   23456  1.1  christos 
   23457  1.1  christos # Shared library runtime path variable.
   23458  1.1  christos runpath_var=$runpath_var
   23459  1.1  christos 
   23460  1.1  christos # Shared library path variable.
   23461  1.1  christos shlibpath_var=$shlibpath_var
   23462  1.1  christos 
   23463  1.1  christos # Is shlibpath searched before the hard-coded library search path?
   23464  1.1  christos shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   23465  1.1  christos 
   23466  1.1  christos # Format of library name prefix.
   23467  1.1  christos libname_spec=$lt_libname_spec
   23468  1.1  christos 
   23469  1.1  christos # List of archive names.  First name is the real one, the rest are links.
   23470  1.1  christos # The last name is the one that the linker finds with -lNAME
   23471  1.1  christos library_names_spec=$lt_library_names_spec
   23472  1.1  christos 
   23473  1.1  christos # The coded name of the library, if different from the real name.
   23474  1.1  christos soname_spec=$lt_soname_spec
   23475  1.1  christos 
   23476  1.1  christos # Permission mode override for installation of shared libraries.
   23477  1.1  christos install_override_mode=$lt_install_override_mode
   23478  1.1  christos 
   23479  1.1  christos # Command to use after installation of a shared archive.
   23480  1.1  christos postinstall_cmds=$lt_postinstall_cmds
   23481  1.1  christos 
   23482  1.1  christos # Command to use after uninstallation of a shared archive.
   23483  1.1  christos postuninstall_cmds=$lt_postuninstall_cmds
   23484  1.1  christos 
   23485  1.1  christos # Commands used to finish a libtool library installation in a directory.
   23486  1.1  christos finish_cmds=$lt_finish_cmds
   23487  1.1  christos 
   23488  1.1  christos # As "finish_cmds", except a single script fragment to be evaled but
   23489  1.1  christos # not shown.
   23490  1.1  christos finish_eval=$lt_finish_eval
   23491  1.1  christos 
   23492  1.1  christos # Whether we should hardcode library paths into libraries.
   23493  1.1  christos hardcode_into_libs=$hardcode_into_libs
   23494  1.1  christos 
   23495  1.1  christos # Compile-time system search path for libraries.
   23496  1.1  christos sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   23497  1.1  christos 
   23498  1.1  christos # Detected run-time system search path for libraries.
   23499  1.1  christos sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   23500  1.1  christos 
   23501  1.1  christos # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   23502  1.1  christos configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   23503  1.1  christos 
   23504  1.1  christos # Whether dlopen is supported.
   23505  1.1  christos dlopen_support=$enable_dlopen
   23506  1.1  christos 
   23507  1.1  christos # Whether dlopen of programs is supported.
   23508  1.1  christos dlopen_self=$enable_dlopen_self
   23509  1.1  christos 
   23510  1.1  christos # Whether dlopen of statically linked programs is supported.
   23511  1.1  christos dlopen_self_static=$enable_dlopen_self_static
   23512  1.1  christos 
   23513  1.1  christos # Commands to strip libraries.
   23514  1.1  christos old_striplib=$lt_old_striplib
   23515  1.1  christos striplib=$lt_striplib
   23516  1.1  christos 
   23517  1.1  christos 
   23518  1.1  christos # The linker used to build libraries.
   23519  1.1  christos LD=$lt_LD
   23520  1.1  christos 
   23521  1.1  christos # How to create reloadable object files.
   23522  1.1  christos reload_flag=$lt_reload_flag
   23523  1.1  christos reload_cmds=$lt_reload_cmds
   23524  1.1  christos 
   23525  1.1  christos # Commands used to build an old-style archive.
   23526  1.1  christos old_archive_cmds=$lt_old_archive_cmds
   23527  1.1  christos 
   23528  1.1  christos # A language specific compiler.
   23529  1.1  christos CC=$lt_compiler
   23530  1.1  christos 
   23531  1.1  christos # Is the compiler the GNU compiler?
   23532  1.1  christos with_gcc=$GCC
   23533  1.1  christos 
   23534  1.1  christos # Compiler flag to turn off builtin functions.
   23535  1.1  christos no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   23536  1.1  christos 
   23537  1.1  christos # Additional compiler flags for building library objects.
   23538  1.1  christos pic_flag=$lt_lt_prog_compiler_pic
   23539  1.1  christos 
   23540  1.1  christos # How to pass a linker flag through the compiler.
   23541  1.1  christos wl=$lt_lt_prog_compiler_wl
   23542  1.1  christos 
   23543  1.1  christos # Compiler flag to prevent dynamic linking.
   23544  1.1  christos link_static_flag=$lt_lt_prog_compiler_static
   23545  1.1  christos 
   23546  1.1  christos # Does compiler simultaneously support -c and -o options?
   23547  1.1  christos compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   23548  1.1  christos 
   23549  1.1  christos # Whether or not to add -lc for building shared libraries.
   23550  1.1  christos build_libtool_need_lc=$archive_cmds_need_lc
   23551  1.1  christos 
   23552  1.1  christos # Whether or not to disallow shared libs when runtime libs are static.
   23553  1.1  christos allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   23554  1.1  christos 
   23555  1.1  christos # Compiler flag to allow reflexive dlopens.
   23556  1.1  christos export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   23557  1.1  christos 
   23558  1.1  christos # Compiler flag to generate shared objects directly from archives.
   23559  1.1  christos whole_archive_flag_spec=$lt_whole_archive_flag_spec
   23560  1.1  christos 
   23561  1.1  christos # Whether the compiler copes with passing no objects directly.
   23562  1.1  christos compiler_needs_object=$lt_compiler_needs_object
   23563  1.1  christos 
   23564  1.1  christos # Create an old-style archive from a shared archive.
   23565  1.1  christos old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   23566  1.1  christos 
   23567  1.1  christos # Create a temporary old-style archive to link instead of a shared archive.
   23568  1.1  christos old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   23569  1.1  christos 
   23570  1.1  christos # Commands used to build a shared archive.
   23571  1.1  christos archive_cmds=$lt_archive_cmds
   23572  1.1  christos archive_expsym_cmds=$lt_archive_expsym_cmds
   23573  1.1  christos 
   23574  1.1  christos # Commands used to build a loadable module if different from building
   23575  1.1  christos # a shared archive.
   23576  1.1  christos module_cmds=$lt_module_cmds
   23577  1.1  christos module_expsym_cmds=$lt_module_expsym_cmds
   23578  1.1  christos 
   23579  1.1  christos # Whether we are building with GNU ld or not.
   23580  1.1  christos with_gnu_ld=$lt_with_gnu_ld
   23581  1.1  christos 
   23582  1.1  christos # Flag that allows shared libraries with undefined symbols to be built.
   23583  1.1  christos allow_undefined_flag=$lt_allow_undefined_flag
   23584  1.1  christos 
   23585  1.1  christos # Flag that enforces no undefined symbols.
   23586  1.1  christos no_undefined_flag=$lt_no_undefined_flag
   23587  1.1  christos 
   23588  1.1  christos # Flag to hardcode \$libdir into a binary during linking.
   23589  1.1  christos # This must work even if \$libdir does not exist
   23590  1.1  christos hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   23591  1.1  christos 
   23592  1.1  christos # Whether we need a single "-rpath" flag with a separated argument.
   23593  1.1  christos hardcode_libdir_separator=$lt_hardcode_libdir_separator
   23594  1.1  christos 
   23595  1.1  christos # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23596  1.1  christos # DIR into the resulting binary.
   23597  1.1  christos hardcode_direct=$hardcode_direct
   23598  1.1  christos 
   23599  1.1  christos # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23600  1.1  christos # DIR into the resulting binary and the resulting library dependency is
   23601  1.1  christos # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   23602  1.1  christos # library is relocated.
   23603  1.1  christos hardcode_direct_absolute=$hardcode_direct_absolute
   23604  1.1  christos 
   23605  1.1  christos # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   23606  1.1  christos # into the resulting binary.
   23607  1.1  christos hardcode_minus_L=$hardcode_minus_L
   23608  1.1  christos 
   23609  1.1  christos # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   23610  1.1  christos # into the resulting binary.
   23611  1.1  christos hardcode_shlibpath_var=$hardcode_shlibpath_var
   23612  1.1  christos 
   23613  1.1  christos # Set to "yes" if building a shared library automatically hardcodes DIR
   23614  1.1  christos # into the library and all subsequent libraries and executables linked
   23615  1.1  christos # against it.
   23616  1.1  christos hardcode_automatic=$hardcode_automatic
   23617  1.1  christos 
   23618  1.1  christos # Set to yes if linker adds runtime paths of dependent libraries
   23619  1.1  christos # to runtime path list.
   23620  1.1  christos inherit_rpath=$inherit_rpath
   23621  1.1  christos 
   23622  1.1  christos # Whether libtool must link a program against all its dependency libraries.
   23623  1.1  christos link_all_deplibs=$link_all_deplibs
   23624  1.1  christos 
   23625  1.1  christos # Set to "yes" if exported symbols are required.
   23626  1.1  christos always_export_symbols=$always_export_symbols
   23627  1.1  christos 
   23628  1.1  christos # The commands to list exported symbols.
   23629  1.1  christos export_symbols_cmds=$lt_export_symbols_cmds
   23630  1.1  christos 
   23631  1.1  christos # Symbols that should not be listed in the preloaded symbols.
   23632  1.1  christos exclude_expsyms=$lt_exclude_expsyms
   23633  1.1  christos 
   23634  1.1  christos # Symbols that must always be exported.
   23635  1.1  christos include_expsyms=$lt_include_expsyms
   23636  1.1  christos 
   23637  1.1  christos # Commands necessary for linking programs (against libraries) with templates.
   23638  1.1  christos prelink_cmds=$lt_prelink_cmds
   23639  1.1  christos 
   23640  1.1  christos # Commands necessary for finishing linking programs.
   23641  1.1  christos postlink_cmds=$lt_postlink_cmds
   23642  1.1  christos 
   23643  1.1  christos # Specify filename containing input files.
   23644  1.1  christos file_list_spec=$lt_file_list_spec
   23645  1.1  christos 
   23646  1.1  christos # How to hardcode a shared library path into an executable.
   23647  1.1  christos hardcode_action=$hardcode_action
   23648  1.1  christos 
   23649  1.1  christos # ### END LIBTOOL CONFIG
   23650  1.1  christos 
   23651  1.1  christos _LT_EOF
   23652  1.1  christos 
   23653  1.1  christos     cat <<'_LT_EOF' >> "$cfgfile"
   23654  1.1  christos 
   23655  1.1  christos # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   23656  1.1  christos 
   23657  1.1  christos # func_munge_path_list VARIABLE PATH
   23658  1.1  christos # -----------------------------------
   23659  1.1  christos # VARIABLE is name of variable containing _space_ separated list of
   23660  1.1  christos # directories to be munged by the contents of PATH, which is string
   23661  1.1  christos # having a format:
   23662  1.1  christos # "DIR[:DIR]:"
   23663  1.1  christos #       string "DIR[ DIR]" will be prepended to VARIABLE
   23664  1.1  christos # ":DIR[:DIR]"
   23665  1.1  christos #       string "DIR[ DIR]" will be appended to VARIABLE
   23666  1.1  christos # "DIRP[:DIRP]::[DIRA:]DIRA"
   23667  1.1  christos #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   23668  1.1  christos #       "DIRA[ DIRA]" will be appended to VARIABLE
   23669  1.1  christos # "DIR[:DIR]"
   23670  1.1  christos #       VARIABLE will be replaced by "DIR[ DIR]"
   23671  1.1  christos func_munge_path_list ()
   23672  1.1  christos {
   23673  1.1  christos     case x$2 in
   23674  1.1  christos     x)
   23675  1.1  christos         ;;
   23676  1.1  christos     *:)
   23677  1.1  christos         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   23678  1.1  christos         ;;
   23679  1.1  christos     x:*)
   23680  1.1  christos         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   23681  1.1  christos         ;;
   23682  1.1  christos     *::*)
   23683  1.1  christos         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   23684  1.1  christos         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   23685  1.1  christos         ;;
   23686  1.1  christos     *)
   23687  1.1  christos         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   23688  1.1  christos         ;;
   23689  1.1  christos     esac
   23690  1.1  christos }
   23691  1.1  christos 
   23692  1.1  christos 
   23693  1.1  christos # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   23694  1.1  christos func_cc_basename ()
   23695  1.1  christos {
   23696  1.1  christos     for cc_temp in $*""; do
   23697  1.1  christos       case $cc_temp in
   23698  1.1  christos         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   23699  1.1  christos         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   23700  1.1  christos         \-*) ;;
   23701  1.1  christos         *) break;;
   23702  1.1  christos       esac
   23703  1.1  christos     done
   23704  1.1  christos     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   23705  1.1  christos }
   23706  1.1  christos 
   23707  1.1  christos 
   23708  1.1  christos # ### END FUNCTIONS SHARED WITH CONFIGURE
   23709  1.1  christos 
   23710  1.1  christos _LT_EOF
   23711  1.1  christos 
   23712  1.1  christos   case $host_os in
   23713  1.1  christos   aix3*)
   23714  1.1  christos     cat <<\_LT_EOF >> "$cfgfile"
   23715  1.1  christos # AIX sometimes has problems with the GCC collect2 program.  For some
   23716  1.1  christos # reason, if we set the COLLECT_NAMES environment variable, the problems
   23717  1.1  christos # vanish in a puff of smoke.
   23718  1.1  christos if test set != "${COLLECT_NAMES+set}"; then
   23719  1.1  christos   COLLECT_NAMES=
   23720  1.1  christos   export COLLECT_NAMES
   23721  1.1  christos fi
   23722  1.1  christos _LT_EOF
   23723  1.1  christos     ;;
   23724  1.1  christos   esac
   23725  1.1  christos 
   23726  1.1  christos 
   23727  1.1  christos ltmain=$ac_aux_dir/ltmain.sh
   23728  1.1  christos 
   23729  1.1  christos 
   23730  1.1  christos   # We use sed instead of cat because bash on DJGPP gets confused if
   23731  1.1  christos   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   23732  1.1  christos   # text mode, it properly converts lines to CR/LF.  This bash problem
   23733  1.1  christos   # is reportedly fixed, but why not run on old versions too?
   23734  1.1  christos   sed '$q' "$ltmain" >> "$cfgfile" \
   23735  1.1  christos      || (rm -f "$cfgfile"; exit 1)
   23736  1.1  christos 
   23737  1.1  christos    mv -f "$cfgfile" "$ofile" ||
   23738  1.1  christos     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   23739  1.1  christos   chmod +x "$ofile"
   23740  1.1  christos 
   23741  1.1  christos  ;;
   23742  1.1  christos     "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
   23743  1.1  christos 
   23744  1.1  christos   esac
   23745  1.1  christos done # for ac_tag
   23746  1.1  christos 
   23747  1.1  christos 
   23748  1.1  christos as_fn_exit 0
   23749  1.1  christos _ACEOF
   23750  1.1  christos ac_clean_files=$ac_clean_files_save
   23751  1.1  christos 
   23752  1.1  christos test $ac_write_fail = 0 ||
   23753  1.1  christos   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   23754  1.1  christos 
   23755  1.1  christos 
   23756  1.1  christos # configure is writing to config.log, and then calls config.status.
   23757  1.1  christos # config.status does its own redirection, appending to config.log.
   23758  1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   23759  1.1  christos # by configure, so config.status won't be able to write to it; its
   23760  1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   23761  1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   23762  1.1  christos # appended to by config.status.  When coming back to configure, we
   23763  1.1  christos # need to make the FD available again.
   23764  1.1  christos if test "$no_create" != yes; then
   23765  1.1  christos   ac_cs_success=:
   23766  1.1  christos   ac_config_status_args=
   23767  1.1  christos   test "$silent" = yes &&
   23768  1.1  christos     ac_config_status_args="$ac_config_status_args --quiet"
   23769  1.1  christos   exec 5>/dev/null
   23770  1.1  christos   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   23771  1.1  christos   exec 5>>config.log
   23772  1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   23773  1.1  christos   # would make configure fail if this is the last instruction.
   23774  1.1  christos   $ac_cs_success || as_fn_exit 1
   23775  1.1  christos fi
   23776  1.1  christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   23777  1.1  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   23778  1.1  christos $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   23779  1.1  christos fi
   23780  1.1  christos 
   23781  1.1  christos 
   23782  1.1  christos #
   23783  1.1  christos # Now that the Makefiles exist we can ensure that everything is rebuilt.
   23784  1.1  christos #
   23785  1.1  christos 
   23786  1.1  christos # Check whether --with-make-clean was given.
   23787  1.1  christos if test "${with_make_clean+set}" = set; then :
   23788  1.1  christos   withval=$with_make_clean; make_clean="$withval"
   23789  1.1  christos else
   23790  1.1  christos   make_clean="yes"
   23791  1.1  christos fi
   23792  1.1  christos 
   23793  1.1  christos case "$make_clean" in
   23794  1.1  christos yes)
   23795  1.1  christos 	if test "yes" != "$no_create"
   23796  1.1  christos 	then
   23797  1.1  christos 		if test "yes" = "$silent"
   23798  1.1  christos 		then
   23799  1.1  christos 			make clean > /dev/null
   23800  1.1  christos 		else
   23801  1.1  christos 			make clean
   23802  1.1  christos 		fi
   23803  1.1  christos 	fi
   23804  1.1  christos 	;;
   23805  1.1  christos esac
   23806  1.1  christos 
   23807  1.1  christos # Check whether --enable-full-report was given.
   23808  1.1  christos if test "${enable_full_report+set}" = set; then :
   23809  1.1  christos   enableval=$enable_full_report;
   23810  1.1  christos fi
   23811  1.1  christos 
   23812  1.1  christos 
   23813  1.1  christos report() {
   23814  1.1  christos     echo "==============================================================================="
   23815  1.1  christos     echo "Configuration summary:"
   23816  1.1  christos     echo "-------------------------------------------------------------------------------"
   23817  1.1  christos     echo "Optional features enabled:"
   23818  1.3  christos     if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
   23819  1.3  christos 	echo "        Mutex lock type: $locktype"
   23820  1.1  christos     fi
   23821  1.1  christos     test "large" = "$use_tuning" && echo "    Large-system tuning (--with-tuning)"
   23822  1.1  christos     test "no" = "$use_dnstap" || \
   23823  1.1  christos 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23824  1.1  christos     test "no" = "$use_geoip" || echo "    GeoIP access control (--with-geoip)"
   23825  1.1  christos     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   23826  1.1  christos     if test "yes" = "$enable_full_report" -o "aes" != "$with_cc_alg"; then
   23827  1.1  christos 	echo "        Algorithm: $with_cc_alg"
   23828  1.1  christos     fi
   23829  1.1  christos 
   23830  1.1  christos     # these lines are only printed if run with --enable-full-report
   23831  1.1  christos     if test "yes" = "$enable_full_report"; then
   23832  1.3  christos 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   23833  1.1  christos 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   23834  1.1  christos 	test "X$XMLSTATS" = "X" || echo "    XML statistics (--with-libxml2)"
   23835  1.1  christos 	test "X$JSONSTATS" = "X" || echo "    JSON statistics (--with-libjson)"
   23836  1.1  christos 	test "X$ZLIB" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   23837  1.1  christos 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23838  1.3  christos 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   23839  1.1  christos     fi
   23840  1.1  christos 
   23841  1.1  christos     test "yes" = "$enable_dnsrps" && \
   23842  1.1  christos 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23843  1.1  christos     test "yes" = "$enable_fixed" && \
   23844  1.1  christos 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23845  1.3  christos     test "yes" = "$enable_backtrace" && \
   23846  1.1  christos 	echo "    Print backtrace on crash (--enable-backtrace)"
   23847  1.1  christos     test "minimal" = "$want_symtable" && \
   23848  1.1  christos 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   23849  1.1  christos     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   23850  1.1  christos 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   23851  1.1  christos     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23852  1.1  christos     test "yes" = "$want_querytrace" && \
   23853  1.1  christos 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23854  1.3  christos     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   23855  1.3  christos 
   23856  1.3  christos     test "no" = "$want_autoval" || echo "    DNSSEC validation active by default (--enable-auto-validation)"
   23857  1.1  christos 
   23858  1.3  christos     test "$CRYPTO" = "pkcs11" && (
   23859  1.3  christos 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   23860  1.3  christos 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   23861  1.3  christos     )
   23862  1.1  christos 
   23863  1.1  christos     echo "    Dynamically loadable zone (DLZ) drivers:"
   23864  1.1  christos     test "no" = "$use_dlz_bdb" || \
   23865  1.1  christos 	echo "        Berkeley DB (--with-dlz-bdb)"
   23866  1.1  christos     test "no" = "$use_dlz_ldap" || \
   23867  1.1  christos 	echo "        LDAP (--with-dlz-ldap)"
   23868  1.1  christos     test "no" = "$use_dlz_mysql" || \
   23869  1.1  christos 	echo "        MySQL (--with-dlz-mysql)"
   23870  1.1  christos     test "no" = "$use_dlz_odbc" || \
   23871  1.1  christos 	echo "        ODBC (--with-dlz-odbc)"
   23872  1.1  christos     test "no" = "$use_dlz_postgres" || \
   23873  1.1  christos 	echo "        Postgres (--with-dlz-postgres)"
   23874  1.1  christos     test "no" = "$use_dlz_filesystem" || \
   23875  1.1  christos 	echo "        Filesystem (--with-dlz-filesystem)"
   23876  1.1  christos     test "no" = "$use_dlz_stub" || \
   23877  1.1  christos 	echo "        Stub (--with-dlz-stub)"
   23878  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"
   23879  1.1  christos 
   23880  1.1  christos     echo "-------------------------------------------------------------------------------"
   23881  1.1  christos 
   23882  1.1  christos     echo "Features disabled or unavailable on this platform:"
   23883  1.3  christos     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   23884  1.1  christos     test "large" = "$use_tuning" || echo "    Large-system tuning (--with-tuning)"
   23885  1.1  christos 
   23886  1.1  christos     test "no" = "$use_dnstap" && \
   23887  1.1  christos 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23888  1.1  christos     test "no" = "$use_geoip" && echo "    GeoIP access control (--with-geoip)"
   23889  1.1  christos     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   23890  1.1  christos 
   23891  1.1  christos     test "no" = "$enable_dnsrps" && \
   23892  1.1  christos 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23893  1.1  christos 
   23894  1.1  christos     test "yes" = "$enable_fixed" || \
   23895  1.1  christos 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23896  1.1  christos 
   23897  1.3  christos     test "no" = "$want_autoval" && echo "    DNSSEC validation requires configuration (--disable-auto-validation)"
   23898  1.3  christos 
   23899  1.3  christos     test "$CRYPTO" = "pkcs11" || (
   23900  1.3  christos 	echo "    Using PKCS#11 for Public-Key Cryptography (--without-native-pkcs11)"
   23901  1.3  christos     )
   23902  1.3  christos 
   23903  1.3  christos     test "yes" = "$enable_backtrace" || \
   23904  1.1  christos 	echo "    Print backtrace on crash (--enable-backtrace)"
   23905  1.1  christos     test "yes" = "$want_querytrace" || \
   23906  1.1  christos 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23907  1.1  christos 
   23908  1.1  christos     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23909  1.4  christos     test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
   23910  1.1  christos 
   23911  1.1  christos     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   23912  1.1  christos     test "X$XMLSTATS" = "X" && echo "    XML statistics (--with-libxml2)"
   23913  1.1  christos     test "X$JSONSTATS" = "X" && echo "    JSON statistics (--with-libjson)"
   23914  1.1  christos     test "X$ZLIB" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   23915  1.1  christos     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23916  1.3  christos     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   23917  1.1  christos 
   23918  1.1  christos     echo "-------------------------------------------------------------------------------"
   23919  1.1  christos     echo "Configured paths:"
   23920  1.1  christos     echo "    prefix: $prefix"
   23921  1.1  christos     echo "    sysconfdir: $sysconfdir"
   23922  1.1  christos     echo "    localstatedir: $localstatedir"
   23923  1.3  christos     echo "-------------------------------------------------------------------------------"
   23924  1.3  christos     echo "Compiler: $CC"
   23925  1.3  christos     $CC --version 2>&1 | sed 's/^/    /'
   23926  1.1  christos 
   23927  1.1  christos     if test "X$ac_unrecognized_opts" != "X"; then
   23928  1.1  christos 	echo "Unrecognized options:"
   23929  1.1  christos 	echo "    $ac_unrecognized_opts"
   23930  1.1  christos     fi
   23931  1.1  christos 
   23932  1.1  christos     if test "yes" != "$enable_full_report"; then
   23933  1.1  christos 	echo "-------------------------------------------------------------------------------"
   23934  1.1  christos 	echo "For more detail, use --enable-full-report."
   23935  1.1  christos     fi
   23936  1.1  christos     echo "==============================================================================="
   23937  1.1  christos }
   23938  1.1  christos 
   23939  1.1  christos if test "yes" != "$silent"; then
   23940  1.1  christos 	report
   23941  1.1  christos fi
   23942  1.1  christos 
   23943  1.1  christos # Tell Emacs to edit this file in shell mode.
   23944  1.1  christos # Local Variables:
   23945  1.1  christos # mode: sh
   23946  1.1  christos # End:
   23947