Home | History | Annotate | Line # | Download | only in dist
      1   1.1  christos #! /bin/sh
      2   1.1  christos # Guess values for system-dependent variables and create Makefiles.
      3  1.13  christos # Generated by GNU Autoconf 2.71 for tcpdump 4.99.6.
      4   1.4  christos #
      5   1.4  christos #
      6  1.12  christos # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
      7  1.12  christos # Inc.
      8   1.4  christos #
      9   1.1  christos #
     10   1.1  christos # This configure script is free software; the Free Software Foundation
     11   1.1  christos # gives unlimited permission to copy, distribute and modify it.
     12   1.4  christos ## -------------------- ##
     13   1.4  christos ## M4sh Initialization. ##
     14   1.4  christos ## -------------------- ##
     15   1.1  christos 
     16   1.1  christos # Be more Bourne compatible
     17   1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
     18  1.12  christos as_nop=:
     19  1.12  christos if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     20  1.12  christos then :
     21   1.1  christos   emulate sh
     22   1.1  christos   NULLCMD=:
     23   1.4  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     24   1.1  christos   # is contrary to our usage.  Disable this feature.
     25   1.1  christos   alias -g '${1+"$@"}'='"$@"'
     26   1.1  christos   setopt NO_GLOB_SUBST
     27  1.12  christos else $as_nop
     28   1.4  christos   case `(set -o) 2>/dev/null` in #(
     29   1.4  christos   *posix*) :
     30   1.4  christos     set -o posix ;; #(
     31   1.4  christos   *) :
     32   1.4  christos      ;;
     33   1.1  christos esac
     34   1.1  christos fi
     35   1.1  christos 
     36   1.1  christos 
     37  1.12  christos 
     38  1.12  christos # Reset variables that may have inherited troublesome values from
     39  1.12  christos # the environment.
     40  1.12  christos 
     41  1.12  christos # IFS needs to be set, to space, tab, and newline, in precisely that order.
     42  1.12  christos # (If _AS_PATH_WALK were called with IFS unset, it would have the
     43  1.12  christos # side effect of setting IFS to empty, thus disabling word splitting.)
     44  1.12  christos # Quoting is to prevent editors from complaining about space-tab.
     45   1.4  christos as_nl='
     46   1.4  christos '
     47   1.4  christos export as_nl
     48  1.12  christos IFS=" ""	$as_nl"
     49  1.12  christos 
     50  1.12  christos PS1='$ '
     51  1.12  christos PS2='> '
     52  1.12  christos PS4='+ '
     53  1.12  christos 
     54  1.12  christos # Ensure predictable behavior from utilities with locale-dependent output.
     55  1.12  christos LC_ALL=C
     56  1.12  christos export LC_ALL
     57  1.12  christos LANGUAGE=C
     58  1.12  christos export LANGUAGE
     59  1.12  christos 
     60  1.12  christos # We cannot yet rely on "unset" to work, but we need these variables
     61  1.12  christos # to be unset--not just set to an empty or harmless value--now, to
     62  1.12  christos # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     63  1.12  christos # also avoids known problems related to "unset" and subshell syntax
     64  1.12  christos # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     65  1.12  christos for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     66  1.12  christos do eval test \${$as_var+y} \
     67  1.12  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     68  1.12  christos done
     69  1.12  christos 
     70  1.12  christos # Ensure that fds 0, 1, and 2 are open.
     71  1.12  christos if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     72  1.12  christos if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     73  1.12  christos if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     74   1.1  christos 
     75   1.4  christos # The user is always right.
     76  1.12  christos if ${PATH_SEPARATOR+false} :; then
     77   1.4  christos   PATH_SEPARATOR=:
     78   1.4  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     79   1.4  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     80   1.4  christos       PATH_SEPARATOR=';'
     81   1.4  christos   }
     82   1.1  christos fi
     83   1.1  christos 
     84   1.1  christos 
     85   1.1  christos # Find who we are.  Look in the path if we contain no directory separator.
     86   1.4  christos as_myself=
     87   1.4  christos case $0 in #((
     88   1.1  christos   *[\\/]* ) as_myself=$0 ;;
     89   1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     90   1.1  christos for as_dir in $PATH
     91   1.1  christos do
     92   1.1  christos   IFS=$as_save_IFS
     93  1.12  christos   case $as_dir in #(((
     94  1.12  christos     '') as_dir=./ ;;
     95  1.12  christos     */) ;;
     96  1.12  christos     *) as_dir=$as_dir/ ;;
     97  1.12  christos   esac
     98  1.12  christos     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
     99   1.4  christos   done
    100   1.1  christos IFS=$as_save_IFS
    101   1.1  christos 
    102   1.1  christos      ;;
    103   1.1  christos esac
    104   1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
    105   1.1  christos # in which case we are not to be found in the path.
    106   1.1  christos if test "x$as_myself" = x; then
    107   1.1  christos   as_myself=$0
    108   1.1  christos fi
    109   1.1  christos if test ! -f "$as_myself"; then
    110  1.12  christos   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   1.4  christos   exit 1
    112   1.1  christos fi
    113   1.1  christos 
    114   1.1  christos 
    115   1.4  christos # Use a proper internal environment variable to ensure we don't fall
    116   1.4  christos   # into an infinite loop, continuously re-executing ourselves.
    117   1.4  christos   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    118   1.4  christos     _as_can_reexec=no; export _as_can_reexec;
    119   1.4  christos     # We cannot yet assume a decent shell, so we have to provide a
    120   1.4  christos # neutralization value for shells without unset; and this also
    121   1.4  christos # works around shells that cannot unset nonexistent variables.
    122   1.4  christos # Preserve -v and -x to the replacement shell.
    123   1.4  christos BASH_ENV=/dev/null
    124   1.4  christos ENV=/dev/null
    125   1.4  christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    126   1.4  christos case $- in # ((((
    127   1.4  christos   *v*x* | *x*v* ) as_opts=-vx ;;
    128   1.4  christos   *v* ) as_opts=-v ;;
    129   1.4  christos   *x* ) as_opts=-x ;;
    130   1.4  christos   * ) as_opts= ;;
    131   1.4  christos esac
    132   1.4  christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    133   1.4  christos # Admittedly, this is quite paranoid, since all the known shells bail
    134   1.4  christos # out after a failed `exec'.
    135  1.12  christos printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    136  1.12  christos exit 255
    137   1.4  christos   fi
    138   1.4  christos   # We don't want this to propagate to other subprocesses.
    139   1.4  christos           { _as_can_reexec=; unset _as_can_reexec;}
    140   1.1  christos if test "x$CONFIG_SHELL" = x; then
    141  1.12  christos   as_bourne_compatible="as_nop=:
    142  1.12  christos if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
    143  1.12  christos then :
    144   1.4  christos   emulate sh
    145   1.4  christos   NULLCMD=:
    146   1.4  christos   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    147   1.4  christos   # is contrary to our usage.  Disable this feature.
    148   1.4  christos   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    149   1.4  christos   setopt NO_GLOB_SUBST
    150  1.12  christos else \$as_nop
    151   1.4  christos   case \`(set -o) 2>/dev/null\` in #(
    152   1.4  christos   *posix*) :
    153   1.4  christos     set -o posix ;; #(
    154   1.4  christos   *) :
    155   1.4  christos      ;;
    156   1.4  christos esac
    157   1.1  christos fi
    158   1.4  christos "
    159   1.4  christos   as_required="as_fn_return () { (exit \$1); }
    160   1.4  christos as_fn_success () { as_fn_return 0; }
    161   1.4  christos as_fn_failure () { as_fn_return 1; }
    162   1.4  christos as_fn_ret_success () { return 0; }
    163   1.4  christos as_fn_ret_failure () { return 1; }
    164   1.1  christos 
    165   1.1  christos exitcode=0
    166   1.4  christos as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    167   1.4  christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    168   1.4  christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    169   1.4  christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    170  1.12  christos if ( set x; as_fn_ret_success y && test x = \"\$1\" )
    171  1.12  christos then :
    172   1.4  christos 
    173  1.12  christos else \$as_nop
    174   1.4  christos   exitcode=1; echo positional parameters were not saved.
    175   1.4  christos fi
    176   1.4  christos test x\$exitcode = x0 || exit 1
    177  1.12  christos blah=\$(echo \$(echo blah))
    178  1.12  christos test x\"\$blah\" = xblah || exit 1
    179   1.4  christos test -x / || exit 1"
    180   1.4  christos   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    181   1.4  christos   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    182   1.4  christos   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    183   1.4  christos   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    184   1.4  christos test \$(( 1 + 1 )) = 2 || exit 1"
    185  1.12  christos   if (eval "$as_required") 2>/dev/null
    186  1.12  christos then :
    187   1.4  christos   as_have_required=yes
    188  1.12  christos else $as_nop
    189   1.4  christos   as_have_required=no
    190   1.1  christos fi
    191  1.12  christos   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    192  1.12  christos then :
    193   1.1  christos 
    194  1.12  christos else $as_nop
    195   1.4  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    196   1.4  christos as_found=false
    197   1.1  christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    198   1.1  christos do
    199   1.1  christos   IFS=$as_save_IFS
    200  1.12  christos   case $as_dir in #(((
    201  1.12  christos     '') as_dir=./ ;;
    202  1.12  christos     */) ;;
    203  1.12  christos     *) as_dir=$as_dir/ ;;
    204  1.12  christos   esac
    205   1.4  christos   as_found=:
    206   1.4  christos   case $as_dir in #(
    207   1.1  christos 	 /*)
    208   1.1  christos 	   for as_base in sh bash ksh sh5; do
    209   1.4  christos 	     # Try only shells that exist, to save several forks.
    210  1.12  christos 	     as_shell=$as_dir$as_base
    211   1.4  christos 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    212  1.12  christos 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    213  1.12  christos then :
    214   1.4  christos   CONFIG_SHELL=$as_shell as_have_required=yes
    215  1.12  christos 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    216  1.12  christos then :
    217   1.4  christos   break 2
    218   1.4  christos fi
    219   1.4  christos fi
    220   1.1  christos 	   done;;
    221   1.1  christos        esac
    222   1.4  christos   as_found=false
    223   1.1  christos done
    224  1.12  christos IFS=$as_save_IFS
    225  1.12  christos if $as_found
    226  1.12  christos then :
    227  1.12  christos 
    228  1.12  christos else $as_nop
    229  1.12  christos   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    230  1.12  christos 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    231  1.12  christos then :
    232   1.4  christos   CONFIG_SHELL=$SHELL as_have_required=yes
    233  1.12  christos fi
    234  1.12  christos fi
    235   1.1  christos 
    236   1.1  christos 
    237  1.12  christos       if test "x$CONFIG_SHELL" != x
    238  1.12  christos then :
    239   1.4  christos   export CONFIG_SHELL
    240   1.4  christos              # We cannot yet assume a decent shell, so we have to provide a
    241   1.4  christos # neutralization value for shells without unset; and this also
    242   1.4  christos # works around shells that cannot unset nonexistent variables.
    243   1.4  christos # Preserve -v and -x to the replacement shell.
    244   1.4  christos BASH_ENV=/dev/null
    245   1.4  christos ENV=/dev/null
    246   1.4  christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247   1.4  christos case $- in # ((((
    248   1.4  christos   *v*x* | *x*v* ) as_opts=-vx ;;
    249   1.4  christos   *v* ) as_opts=-v ;;
    250   1.4  christos   *x* ) as_opts=-x ;;
    251   1.4  christos   * ) as_opts= ;;
    252   1.4  christos esac
    253   1.4  christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254   1.4  christos # Admittedly, this is quite paranoid, since all the known shells bail
    255   1.4  christos # out after a failed `exec'.
    256  1.12  christos printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    257   1.4  christos exit 255
    258   1.4  christos fi
    259   1.4  christos 
    260  1.12  christos     if test x$as_have_required = xno
    261  1.12  christos then :
    262  1.12  christos   printf "%s\n" "$0: This script requires a shell more modern than all"
    263  1.12  christos   printf "%s\n" "$0: the shells that I found on your system."
    264  1.12  christos   if test ${ZSH_VERSION+y} ; then
    265  1.12  christos     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    266  1.12  christos     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    267   1.4  christos   else
    268  1.12  christos     printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org about your system,
    269   1.4  christos $0: including any error possibly output before this
    270   1.4  christos $0: message. Then install a modern shell, or manually run
    271   1.4  christos $0: the script under such a shell if you do have one."
    272   1.4  christos   fi
    273   1.4  christos   exit 1
    274   1.4  christos fi
    275   1.1  christos fi
    276   1.1  christos fi
    277   1.4  christos SHELL=${CONFIG_SHELL-/bin/sh}
    278   1.4  christos export SHELL
    279   1.4  christos # Unset more variables known to interfere with behavior of common tools.
    280   1.4  christos CLICOLOR_FORCE= GREP_OPTIONS=
    281   1.4  christos unset CLICOLOR_FORCE GREP_OPTIONS
    282   1.1  christos 
    283   1.4  christos ## --------------------- ##
    284   1.4  christos ## M4sh Shell Functions. ##
    285   1.4  christos ## --------------------- ##
    286   1.4  christos # as_fn_unset VAR
    287   1.4  christos # ---------------
    288   1.4  christos # Portably unset VAR.
    289   1.4  christos as_fn_unset ()
    290   1.4  christos {
    291   1.4  christos   { eval $1=; unset $1;}
    292   1.4  christos }
    293   1.4  christos as_unset=as_fn_unset
    294   1.4  christos 
    295  1.12  christos 
    296   1.4  christos # as_fn_set_status STATUS
    297   1.4  christos # -----------------------
    298   1.4  christos # Set $? to STATUS, without forking.
    299   1.4  christos as_fn_set_status ()
    300   1.4  christos {
    301   1.4  christos   return $1
    302   1.4  christos } # as_fn_set_status
    303   1.4  christos 
    304   1.4  christos # as_fn_exit STATUS
    305   1.4  christos # -----------------
    306   1.4  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    307   1.4  christos as_fn_exit ()
    308   1.4  christos {
    309   1.4  christos   set +e
    310   1.4  christos   as_fn_set_status $1
    311   1.4  christos   exit $1
    312   1.4  christos } # as_fn_exit
    313  1.12  christos # as_fn_nop
    314  1.12  christos # ---------
    315  1.12  christos # Do nothing but, unlike ":", preserve the value of $?.
    316  1.12  christos as_fn_nop ()
    317  1.12  christos {
    318  1.12  christos   return $?
    319  1.12  christos }
    320  1.12  christos as_nop=as_fn_nop
    321   1.4  christos 
    322   1.4  christos # as_fn_mkdir_p
    323   1.4  christos # -------------
    324   1.4  christos # Create "$as_dir" as a directory, including parents if necessary.
    325   1.4  christos as_fn_mkdir_p ()
    326   1.4  christos {
    327   1.1  christos 
    328   1.4  christos   case $as_dir in #(
    329   1.4  christos   -*) as_dir=./$as_dir;;
    330   1.4  christos   esac
    331   1.4  christos   test -d "$as_dir" || eval $as_mkdir_p || {
    332   1.4  christos     as_dirs=
    333   1.4  christos     while :; do
    334   1.4  christos       case $as_dir in #(
    335  1.12  christos       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    336   1.4  christos       *) as_qdir=$as_dir;;
    337   1.4  christos       esac
    338   1.4  christos       as_dirs="'$as_qdir' $as_dirs"
    339   1.4  christos       as_dir=`$as_dirname -- "$as_dir" ||
    340   1.4  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    341   1.4  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    342   1.4  christos 	 X"$as_dir" : 'X\(//\)$' \| \
    343   1.4  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    344  1.12  christos printf "%s\n" X"$as_dir" |
    345   1.4  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    346   1.4  christos 	    s//\1/
    347   1.4  christos 	    q
    348   1.4  christos 	  }
    349   1.4  christos 	  /^X\(\/\/\)[^/].*/{
    350   1.4  christos 	    s//\1/
    351   1.4  christos 	    q
    352   1.4  christos 	  }
    353   1.4  christos 	  /^X\(\/\/\)$/{
    354   1.4  christos 	    s//\1/
    355   1.4  christos 	    q
    356   1.4  christos 	  }
    357   1.4  christos 	  /^X\(\/\).*/{
    358   1.4  christos 	    s//\1/
    359   1.4  christos 	    q
    360   1.4  christos 	  }
    361   1.4  christos 	  s/.*/./; q'`
    362   1.4  christos       test -d "$as_dir" && break
    363   1.4  christos     done
    364   1.4  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
    365   1.4  christos   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    366   1.1  christos 
    367   1.1  christos 
    368   1.4  christos } # as_fn_mkdir_p
    369   1.1  christos 
    370   1.4  christos # as_fn_executable_p FILE
    371   1.4  christos # -----------------------
    372   1.4  christos # Test if FILE is an executable regular file.
    373   1.4  christos as_fn_executable_p ()
    374   1.4  christos {
    375   1.4  christos   test -f "$1" && test -x "$1"
    376   1.4  christos } # as_fn_executable_p
    377   1.4  christos # as_fn_append VAR VALUE
    378   1.4  christos # ----------------------
    379   1.4  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
    380   1.4  christos # advantage of any shell optimizations that allow amortized linear growth over
    381   1.4  christos # repeated appends, instead of the typical quadratic growth present in naive
    382   1.4  christos # implementations.
    383  1.12  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    384  1.12  christos then :
    385   1.4  christos   eval 'as_fn_append ()
    386   1.4  christos   {
    387   1.4  christos     eval $1+=\$2
    388   1.4  christos   }'
    389  1.12  christos else $as_nop
    390   1.4  christos   as_fn_append ()
    391   1.4  christos   {
    392   1.4  christos     eval $1=\$$1\$2
    393   1.4  christos   }
    394   1.4  christos fi # as_fn_append
    395   1.1  christos 
    396   1.4  christos # as_fn_arith ARG...
    397   1.4  christos # ------------------
    398   1.4  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
    399   1.4  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
    400   1.4  christos # must be portable across $(()) and expr.
    401  1.12  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    402  1.12  christos then :
    403   1.4  christos   eval 'as_fn_arith ()
    404   1.4  christos   {
    405   1.4  christos     as_val=$(( $* ))
    406   1.4  christos   }'
    407  1.12  christos else $as_nop
    408   1.4  christos   as_fn_arith ()
    409   1.4  christos   {
    410   1.4  christos     as_val=`expr "$@" || test $? -eq 1`
    411   1.4  christos   }
    412   1.4  christos fi # as_fn_arith
    413   1.1  christos 
    414  1.12  christos # as_fn_nop
    415  1.12  christos # ---------
    416  1.12  christos # Do nothing but, unlike ":", preserve the value of $?.
    417  1.12  christos as_fn_nop ()
    418  1.12  christos {
    419  1.12  christos   return $?
    420  1.12  christos }
    421  1.12  christos as_nop=as_fn_nop
    422   1.1  christos 
    423   1.4  christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
    424   1.4  christos # ----------------------------------------
    425   1.4  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    426   1.4  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    427   1.4  christos # script with STATUS, using 1 if that was 0.
    428   1.4  christos as_fn_error ()
    429   1.4  christos {
    430   1.4  christos   as_status=$1; test $as_status -eq 0 && as_status=1
    431   1.4  christos   if test "$4"; then
    432   1.4  christos     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    433  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    434   1.4  christos   fi
    435  1.12  christos   printf "%s\n" "$as_me: error: $2" >&2
    436   1.4  christos   as_fn_exit $as_status
    437   1.4  christos } # as_fn_error
    438   1.1  christos 
    439   1.4  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
    440   1.4  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    441   1.4  christos   as_expr=expr
    442   1.1  christos else
    443   1.4  christos   as_expr=false
    444   1.1  christos fi
    445   1.1  christos 
    446   1.4  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    447   1.4  christos   as_basename=basename
    448   1.1  christos else
    449   1.4  christos   as_basename=false
    450   1.1  christos fi
    451   1.1  christos 
    452   1.4  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    453   1.4  christos   as_dirname=dirname
    454   1.1  christos else
    455   1.4  christos   as_dirname=false
    456   1.1  christos fi
    457   1.1  christos 
    458   1.4  christos as_me=`$as_basename -- "$0" ||
    459   1.4  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    460   1.4  christos 	 X"$0" : 'X\(//\)$' \| \
    461   1.4  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    462  1.12  christos printf "%s\n" X/"$0" |
    463   1.4  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
    464   1.4  christos 	    s//\1/
    465   1.4  christos 	    q
    466   1.4  christos 	  }
    467   1.4  christos 	  /^X\/\(\/\/\)$/{
    468   1.4  christos 	    s//\1/
    469   1.4  christos 	    q
    470   1.4  christos 	  }
    471   1.4  christos 	  /^X\/\(\/\).*/{
    472   1.4  christos 	    s//\1/
    473   1.4  christos 	    q
    474   1.4  christos 	  }
    475   1.4  christos 	  s/.*/./; q'`
    476   1.1  christos 
    477   1.4  christos # Avoid depending upon Character Ranges.
    478   1.4  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    479   1.4  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    480   1.4  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    481   1.4  christos as_cr_digits='0123456789'
    482   1.4  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
    483   1.1  christos 
    484   1.1  christos 
    485   1.4  christos   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    486   1.4  christos   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    487   1.4  christos   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    488   1.4  christos   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    489   1.4  christos   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    490   1.1  christos   sed -n '
    491   1.1  christos     p
    492   1.1  christos     /[$]LINENO/=
    493   1.1  christos   ' <$as_myself |
    494   1.1  christos     sed '
    495   1.1  christos       s/[$]LINENO.*/&-/
    496   1.1  christos       t lineno
    497   1.1  christos       b
    498   1.1  christos       :lineno
    499   1.1  christos       N
    500   1.1  christos       :loop
    501   1.1  christos       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    502   1.1  christos       t loop
    503   1.1  christos       s/-\n.*//
    504   1.1  christos     ' >$as_me.lineno &&
    505   1.1  christos   chmod +x "$as_me.lineno" ||
    506  1.12  christos     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    507   1.1  christos 
    508   1.4  christos   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    509   1.4  christos   # already done that, so ensure we don't try to do so again and fall
    510   1.4  christos   # in an infinite loop.  This has already happened in practice.
    511   1.4  christos   _as_can_reexec=no; export _as_can_reexec
    512   1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
    513   1.1  christos   # (the dirname of $[0] is not the place where we might find the
    514   1.1  christos   # original and so on.  Autoconf is especially sensitive to this).
    515   1.1  christos   . "./$as_me.lineno"
    516   1.1  christos   # Exit status is that of the last command.
    517   1.1  christos   exit
    518   1.1  christos }
    519   1.1  christos 
    520  1.12  christos 
    521  1.12  christos # Determine whether it's possible to make 'echo' print without a newline.
    522  1.12  christos # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    523  1.12  christos # for compatibility with existing Makefiles.
    524   1.4  christos ECHO_C= ECHO_N= ECHO_T=
    525   1.4  christos case `echo -n x` in #(((((
    526   1.1  christos -n*)
    527   1.4  christos   case `echo 'xy\c'` in
    528   1.1  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    529   1.4  christos   xy)  ECHO_C='\c';;
    530   1.4  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    531   1.4  christos        ECHO_T='	';;
    532   1.1  christos   esac;;
    533   1.1  christos *)
    534   1.1  christos   ECHO_N='-n';;
    535   1.1  christos esac
    536   1.1  christos 
    537  1.12  christos # For backward compatibility with old third-party macros, we provide
    538  1.12  christos # the shell variables $as_echo and $as_echo_n.  New code should use
    539  1.12  christos # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    540  1.12  christos as_echo='printf %s\n'
    541  1.12  christos as_echo_n='printf %s'
    542  1.12  christos 
    543  1.12  christos 
    544   1.1  christos rm -f conf$$ conf$$.exe conf$$.file
    545   1.1  christos if test -d conf$$.dir; then
    546   1.1  christos   rm -f conf$$.dir/conf$$.file
    547   1.1  christos else
    548   1.1  christos   rm -f conf$$.dir
    549   1.4  christos   mkdir conf$$.dir 2>/dev/null
    550   1.1  christos fi
    551   1.4  christos if (echo >conf$$.file) 2>/dev/null; then
    552   1.4  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
    553   1.4  christos     as_ln_s='ln -s'
    554   1.4  christos     # ... but there are two gotchas:
    555   1.4  christos     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    556   1.4  christos     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    557   1.4  christos     # In both cases, we have to default to `cp -pR'.
    558   1.4  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    559   1.4  christos       as_ln_s='cp -pR'
    560   1.4  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
    561   1.4  christos     as_ln_s=ln
    562   1.4  christos   else
    563   1.4  christos     as_ln_s='cp -pR'
    564   1.4  christos   fi
    565   1.1  christos else
    566   1.4  christos   as_ln_s='cp -pR'
    567   1.1  christos fi
    568   1.1  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    569   1.1  christos rmdir conf$$.dir 2>/dev/null
    570   1.1  christos 
    571   1.1  christos if mkdir -p . 2>/dev/null; then
    572   1.4  christos   as_mkdir_p='mkdir -p "$as_dir"'
    573   1.1  christos else
    574   1.1  christos   test -d ./-p && rmdir ./-p
    575   1.1  christos   as_mkdir_p=false
    576   1.1  christos fi
    577   1.1  christos 
    578   1.4  christos as_test_x='test -x'
    579   1.4  christos as_executable_p=as_fn_executable_p
    580   1.1  christos 
    581   1.1  christos # Sed expression to map a string onto a valid CPP name.
    582   1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    583   1.1  christos 
    584   1.1  christos # Sed expression to map a string onto a valid variable name.
    585   1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    586   1.1  christos 
    587   1.1  christos 
    588   1.4  christos test -n "$DJDIR" || exec 7<&0 </dev/null
    589   1.4  christos exec 6>&1
    590   1.1  christos 
    591   1.1  christos # Name of the host.
    592   1.4  christos # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    593   1.1  christos # so uname gets run too.
    594   1.1  christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    595   1.1  christos 
    596   1.1  christos #
    597   1.1  christos # Initializations.
    598   1.1  christos #
    599   1.1  christos ac_default_prefix=/usr/local
    600   1.1  christos ac_clean_files=
    601   1.1  christos ac_config_libobj_dir=.
    602   1.1  christos LIBOBJS=
    603   1.1  christos cross_compiling=no
    604   1.1  christos subdirs=
    605   1.1  christos MFLAGS=
    606   1.1  christos MAKEFLAGS=
    607   1.1  christos 
    608   1.1  christos # Identity of this package.
    609  1.11  christos PACKAGE_NAME='tcpdump'
    610  1.11  christos PACKAGE_TARNAME='tcpdump'
    611  1.13  christos PACKAGE_VERSION='4.99.6'
    612  1.13  christos PACKAGE_STRING='tcpdump 4.99.6'
    613  1.11  christos PACKAGE_BUGREPORT=''
    614  1.11  christos PACKAGE_URL=''
    615   1.1  christos 
    616   1.1  christos ac_unique_file="tcpdump.c"
    617   1.1  christos # Factoring default headers for most tests.
    618   1.1  christos ac_includes_default="\
    619  1.12  christos #include <stddef.h>
    620  1.12  christos #ifdef HAVE_STDIO_H
    621  1.12  christos # include <stdio.h>
    622   1.1  christos #endif
    623  1.12  christos #ifdef HAVE_STDLIB_H
    624   1.1  christos # include <stdlib.h>
    625   1.1  christos #endif
    626   1.1  christos #ifdef HAVE_STRING_H
    627   1.1  christos # include <string.h>
    628   1.1  christos #endif
    629   1.1  christos #ifdef HAVE_INTTYPES_H
    630   1.1  christos # include <inttypes.h>
    631   1.1  christos #endif
    632   1.1  christos #ifdef HAVE_STDINT_H
    633   1.1  christos # include <stdint.h>
    634   1.1  christos #endif
    635  1.12  christos #ifdef HAVE_STRINGS_H
    636  1.12  christos # include <strings.h>
    637  1.12  christos #endif
    638  1.12  christos #ifdef HAVE_SYS_TYPES_H
    639  1.12  christos # include <sys/types.h>
    640  1.12  christos #endif
    641  1.12  christos #ifdef HAVE_SYS_STAT_H
    642  1.12  christos # include <sys/stat.h>
    643  1.12  christos #endif
    644   1.1  christos #ifdef HAVE_UNISTD_H
    645   1.1  christos # include <unistd.h>
    646   1.1  christos #endif"
    647   1.1  christos 
    648  1.12  christos ac_header_c_list=
    649   1.4  christos ac_subst_vars='LTLIBOBJS
    650   1.4  christos INSTALL_DATA
    651   1.4  christos INSTALL_SCRIPT
    652   1.4  christos INSTALL_PROGRAM
    653   1.4  christos MAN_MISC_INFO
    654   1.4  christos MAN_FILE_FORMATS
    655   1.4  christos LOCALSRC
    656   1.4  christos V_PCAPDEP
    657   1.4  christos V_INCLS
    658   1.4  christos V_DEFS
    659   1.4  christos V_CCOPT
    660  1.12  christos LIBCRYPTO_LIBS_STATIC
    661  1.12  christos LIBCRYPTO_LIBS
    662  1.12  christos LIBCRYPTO_CFLAGS
    663   1.4  christos MKDEP
    664   1.4  christos DEPENDENCY_CFLAG
    665   1.5  christos AR
    666   1.4  christos RANLIB
    667   1.4  christos PCAP_CONFIG
    668   1.4  christos LIBOBJS
    669   1.4  christos EGREP
    670   1.4  christos GREP
    671   1.4  christos CPP
    672  1.12  christos BREW
    673  1.12  christos PKG_CONFIG_LIBDIR
    674  1.12  christos PKG_CONFIG_PATH
    675  1.12  christos PKG_CONFIG
    676   1.4  christos OBJEXT
    677   1.4  christos EXEEXT
    678   1.4  christos ac_ct_CC
    679   1.4  christos CPPFLAGS
    680   1.4  christos LDFLAGS
    681   1.4  christos CFLAGS
    682   1.4  christos CC
    683   1.4  christos SHLICC2
    684   1.4  christos host_os
    685   1.4  christos host_vendor
    686   1.4  christos host_cpu
    687   1.4  christos host
    688   1.4  christos build_os
    689   1.4  christos build_vendor
    690   1.4  christos build_cpu
    691   1.4  christos build
    692   1.4  christos target_alias
    693   1.4  christos host_alias
    694   1.4  christos build_alias
    695   1.4  christos LIBS
    696   1.4  christos ECHO_T
    697   1.4  christos ECHO_N
    698   1.4  christos ECHO_C
    699   1.4  christos DEFS
    700   1.4  christos mandir
    701   1.4  christos localedir
    702   1.4  christos libdir
    703   1.4  christos psdir
    704   1.4  christos pdfdir
    705   1.4  christos dvidir
    706   1.4  christos htmldir
    707   1.4  christos infodir
    708   1.4  christos docdir
    709   1.4  christos oldincludedir
    710   1.4  christos includedir
    711  1.12  christos runstatedir
    712   1.4  christos localstatedir
    713   1.4  christos sharedstatedir
    714   1.4  christos sysconfdir
    715   1.4  christos datadir
    716   1.4  christos datarootdir
    717   1.4  christos libexecdir
    718   1.4  christos sbindir
    719   1.4  christos bindir
    720   1.4  christos program_transform_name
    721   1.4  christos prefix
    722   1.4  christos exec_prefix
    723   1.4  christos PACKAGE_URL
    724   1.4  christos PACKAGE_BUGREPORT
    725   1.4  christos PACKAGE_STRING
    726   1.4  christos PACKAGE_VERSION
    727   1.4  christos PACKAGE_TARNAME
    728   1.4  christos PACKAGE_NAME
    729   1.1  christos PATH_SEPARATOR
    730   1.4  christos SHELL'
    731   1.1  christos ac_subst_files=''
    732   1.4  christos ac_user_opts='
    733   1.4  christos enable_option_checking
    734   1.4  christos with_gcc
    735   1.4  christos enable_universal
    736   1.4  christos with_smi
    737  1.12  christos enable_instrument_functions
    738   1.4  christos enable_smb
    739   1.4  christos with_user
    740   1.4  christos with_chroot
    741   1.5  christos with_sandbox_capsicum
    742  1.11  christos enable_local_libpcap
    743   1.4  christos with_crypto
    744   1.6  christos with_cap_ng
    745   1.4  christos '
    746   1.1  christos       ac_precious_vars='build_alias
    747   1.1  christos host_alias
    748   1.1  christos target_alias
    749   1.1  christos CC
    750   1.1  christos CFLAGS
    751   1.1  christos LDFLAGS
    752   1.1  christos LIBS
    753   1.1  christos CPPFLAGS
    754  1.12  christos PKG_CONFIG
    755  1.12  christos PKG_CONFIG_PATH
    756  1.12  christos PKG_CONFIG_LIBDIR
    757  1.12  christos CPP
    758  1.12  christos LIBCRYPTO_CFLAGS
    759  1.12  christos LIBCRYPTO_LIBS
    760  1.12  christos LIBCRYPTO_LIBS_STATIC'
    761   1.1  christos 
    762   1.1  christos 
    763   1.1  christos # Initialize some variables set by options.
    764   1.1  christos ac_init_help=
    765   1.1  christos ac_init_version=false
    766   1.4  christos ac_unrecognized_opts=
    767   1.4  christos ac_unrecognized_sep=
    768   1.1  christos # The variables have the same names as the options, with
    769   1.1  christos # dashes changed to underlines.
    770   1.1  christos cache_file=/dev/null
    771   1.1  christos exec_prefix=NONE
    772   1.1  christos no_create=
    773   1.1  christos no_recursion=
    774   1.1  christos prefix=NONE
    775   1.1  christos program_prefix=NONE
    776   1.1  christos program_suffix=NONE
    777   1.1  christos program_transform_name=s,x,x,
    778   1.1  christos silent=
    779   1.1  christos site=
    780   1.1  christos srcdir=
    781   1.1  christos verbose=
    782   1.1  christos x_includes=NONE
    783   1.1  christos x_libraries=NONE
    784   1.1  christos 
    785   1.1  christos # Installation directory options.
    786   1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    787   1.1  christos # and all the variables that are supposed to be based on exec_prefix
    788   1.1  christos # by default will actually change.
    789   1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    790   1.1  christos # (The list follows the same order as the GNU Coding Standards.)
    791   1.1  christos bindir='${exec_prefix}/bin'
    792   1.1  christos sbindir='${exec_prefix}/sbin'
    793   1.1  christos libexecdir='${exec_prefix}/libexec'
    794   1.1  christos datarootdir='${prefix}/share'
    795   1.1  christos datadir='${datarootdir}'
    796   1.1  christos sysconfdir='${prefix}/etc'
    797   1.1  christos sharedstatedir='${prefix}/com'
    798   1.1  christos localstatedir='${prefix}/var'
    799  1.12  christos runstatedir='${localstatedir}/run'
    800   1.1  christos includedir='${prefix}/include'
    801   1.1  christos oldincludedir='/usr/include'
    802  1.11  christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    803   1.1  christos infodir='${datarootdir}/info'
    804   1.1  christos htmldir='${docdir}'
    805   1.1  christos dvidir='${docdir}'
    806   1.1  christos pdfdir='${docdir}'
    807   1.1  christos psdir='${docdir}'
    808   1.1  christos libdir='${exec_prefix}/lib'
    809   1.1  christos localedir='${datarootdir}/locale'
    810   1.1  christos mandir='${datarootdir}/man'
    811   1.1  christos 
    812   1.1  christos ac_prev=
    813   1.1  christos ac_dashdash=
    814   1.1  christos for ac_option
    815   1.1  christos do
    816   1.1  christos   # If the previous option needs an argument, assign it.
    817   1.1  christos   if test -n "$ac_prev"; then
    818   1.1  christos     eval $ac_prev=\$ac_option
    819   1.1  christos     ac_prev=
    820   1.1  christos     continue
    821   1.1  christos   fi
    822   1.1  christos 
    823   1.1  christos   case $ac_option in
    824   1.4  christos   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    825   1.4  christos   *=)   ac_optarg= ;;
    826   1.4  christos   *)    ac_optarg=yes ;;
    827   1.1  christos   esac
    828   1.1  christos 
    829   1.1  christos   case $ac_dashdash$ac_option in
    830   1.1  christos   --)
    831   1.1  christos     ac_dashdash=yes ;;
    832   1.1  christos 
    833   1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    834   1.1  christos     ac_prev=bindir ;;
    835   1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    836   1.1  christos     bindir=$ac_optarg ;;
    837   1.1  christos 
    838   1.1  christos   -build | --build | --buil | --bui | --bu)
    839   1.1  christos     ac_prev=build_alias ;;
    840   1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    841   1.1  christos     build_alias=$ac_optarg ;;
    842   1.1  christos 
    843   1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
    844   1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    845   1.1  christos     ac_prev=cache_file ;;
    846   1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    847   1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    848   1.1  christos     cache_file=$ac_optarg ;;
    849   1.1  christos 
    850   1.1  christos   --config-cache | -C)
    851   1.1  christos     cache_file=config.cache ;;
    852   1.1  christos 
    853   1.1  christos   -datadir | --datadir | --datadi | --datad)
    854   1.1  christos     ac_prev=datadir ;;
    855   1.1  christos   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    856   1.1  christos     datadir=$ac_optarg ;;
    857   1.1  christos 
    858   1.1  christos   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    859   1.1  christos   | --dataroo | --dataro | --datar)
    860   1.1  christos     ac_prev=datarootdir ;;
    861   1.1  christos   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    862   1.1  christos   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    863   1.1  christos     datarootdir=$ac_optarg ;;
    864   1.1  christos 
    865   1.1  christos   -disable-* | --disable-*)
    866   1.4  christos     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    867   1.1  christos     # Reject names that are not valid shell variable names.
    868   1.4  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    869  1.12  christos       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    870   1.4  christos     ac_useropt_orig=$ac_useropt
    871  1.12  christos     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    872   1.4  christos     case $ac_user_opts in
    873   1.4  christos       *"
    874   1.4  christos "enable_$ac_useropt"
    875   1.4  christos "*) ;;
    876   1.4  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    877   1.4  christos 	 ac_unrecognized_sep=', ';;
    878   1.4  christos     esac
    879   1.4  christos     eval enable_$ac_useropt=no ;;
    880   1.1  christos 
    881   1.1  christos   -docdir | --docdir | --docdi | --doc | --do)
    882   1.1  christos     ac_prev=docdir ;;
    883   1.1  christos   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    884   1.1  christos     docdir=$ac_optarg ;;
    885   1.1  christos 
    886   1.1  christos   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    887   1.1  christos     ac_prev=dvidir ;;
    888   1.1  christos   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    889   1.1  christos     dvidir=$ac_optarg ;;
    890   1.1  christos 
    891   1.1  christos   -enable-* | --enable-*)
    892   1.4  christos     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    893   1.1  christos     # Reject names that are not valid shell variable names.
    894   1.4  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    895  1.12  christos       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    896   1.4  christos     ac_useropt_orig=$ac_useropt
    897  1.12  christos     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    898   1.4  christos     case $ac_user_opts in
    899   1.4  christos       *"
    900   1.4  christos "enable_$ac_useropt"
    901   1.4  christos "*) ;;
    902   1.4  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    903   1.4  christos 	 ac_unrecognized_sep=', ';;
    904   1.4  christos     esac
    905   1.4  christos     eval enable_$ac_useropt=\$ac_optarg ;;
    906   1.1  christos 
    907   1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    908   1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    909   1.1  christos   | --exec | --exe | --ex)
    910   1.1  christos     ac_prev=exec_prefix ;;
    911   1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    912   1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    913   1.1  christos   | --exec=* | --exe=* | --ex=*)
    914   1.1  christos     exec_prefix=$ac_optarg ;;
    915   1.1  christos 
    916   1.1  christos   -gas | --gas | --ga | --g)
    917   1.1  christos     # Obsolete; use --with-gas.
    918   1.1  christos     with_gas=yes ;;
    919   1.1  christos 
    920   1.1  christos   -help | --help | --hel | --he | -h)
    921   1.1  christos     ac_init_help=long ;;
    922   1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    923   1.1  christos     ac_init_help=recursive ;;
    924   1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    925   1.1  christos     ac_init_help=short ;;
    926   1.1  christos 
    927   1.1  christos   -host | --host | --hos | --ho)
    928   1.1  christos     ac_prev=host_alias ;;
    929   1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
    930   1.1  christos     host_alias=$ac_optarg ;;
    931   1.1  christos 
    932   1.1  christos   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    933   1.1  christos     ac_prev=htmldir ;;
    934   1.1  christos   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    935   1.1  christos   | --ht=*)
    936   1.1  christos     htmldir=$ac_optarg ;;
    937   1.1  christos 
    938   1.1  christos   -includedir | --includedir | --includedi | --included | --include \
    939   1.1  christos   | --includ | --inclu | --incl | --inc)
    940   1.1  christos     ac_prev=includedir ;;
    941   1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    942   1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
    943   1.1  christos     includedir=$ac_optarg ;;
    944   1.1  christos 
    945   1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
    946   1.1  christos     ac_prev=infodir ;;
    947   1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    948   1.1  christos     infodir=$ac_optarg ;;
    949   1.1  christos 
    950   1.1  christos   -libdir | --libdir | --libdi | --libd)
    951   1.1  christos     ac_prev=libdir ;;
    952   1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    953   1.1  christos     libdir=$ac_optarg ;;
    954   1.1  christos 
    955   1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    956   1.1  christos   | --libexe | --libex | --libe)
    957   1.1  christos     ac_prev=libexecdir ;;
    958   1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    959   1.1  christos   | --libexe=* | --libex=* | --libe=*)
    960   1.1  christos     libexecdir=$ac_optarg ;;
    961   1.1  christos 
    962   1.1  christos   -localedir | --localedir | --localedi | --localed | --locale)
    963   1.1  christos     ac_prev=localedir ;;
    964   1.1  christos   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    965   1.1  christos     localedir=$ac_optarg ;;
    966   1.1  christos 
    967   1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
    968   1.1  christos   | --localstate | --localstat | --localsta | --localst | --locals)
    969   1.1  christos     ac_prev=localstatedir ;;
    970   1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    971   1.1  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    972   1.1  christos     localstatedir=$ac_optarg ;;
    973   1.1  christos 
    974   1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    975   1.1  christos     ac_prev=mandir ;;
    976   1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    977   1.1  christos     mandir=$ac_optarg ;;
    978   1.1  christos 
    979   1.1  christos   -nfp | --nfp | --nf)
    980   1.1  christos     # Obsolete; use --without-fp.
    981   1.1  christos     with_fp=no ;;
    982   1.1  christos 
    983   1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    984   1.1  christos   | --no-cr | --no-c | -n)
    985   1.1  christos     no_create=yes ;;
    986   1.1  christos 
    987   1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    988   1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    989   1.1  christos     no_recursion=yes ;;
    990   1.1  christos 
    991   1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    992   1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    993   1.1  christos   | --oldin | --oldi | --old | --ol | --o)
    994   1.1  christos     ac_prev=oldincludedir ;;
    995   1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    996   1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    997   1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    998   1.1  christos     oldincludedir=$ac_optarg ;;
    999   1.1  christos 
   1000   1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1001   1.1  christos     ac_prev=prefix ;;
   1002   1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1003   1.1  christos     prefix=$ac_optarg ;;
   1004   1.1  christos 
   1005   1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1006   1.1  christos   | --program-pre | --program-pr | --program-p)
   1007   1.1  christos     ac_prev=program_prefix ;;
   1008   1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1009   1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1010   1.1  christos     program_prefix=$ac_optarg ;;
   1011   1.1  christos 
   1012   1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1013   1.1  christos   | --program-suf | --program-su | --program-s)
   1014   1.1  christos     ac_prev=program_suffix ;;
   1015   1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1016   1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1017   1.1  christos     program_suffix=$ac_optarg ;;
   1018   1.1  christos 
   1019   1.1  christos   -program-transform-name | --program-transform-name \
   1020   1.1  christos   | --program-transform-nam | --program-transform-na \
   1021   1.1  christos   | --program-transform-n | --program-transform- \
   1022   1.1  christos   | --program-transform | --program-transfor \
   1023   1.1  christos   | --program-transfo | --program-transf \
   1024   1.1  christos   | --program-trans | --program-tran \
   1025   1.1  christos   | --progr-tra | --program-tr | --program-t)
   1026   1.1  christos     ac_prev=program_transform_name ;;
   1027   1.1  christos   -program-transform-name=* | --program-transform-name=* \
   1028   1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
   1029   1.1  christos   | --program-transform-n=* | --program-transform-=* \
   1030   1.1  christos   | --program-transform=* | --program-transfor=* \
   1031   1.1  christos   | --program-transfo=* | --program-transf=* \
   1032   1.1  christos   | --program-trans=* | --program-tran=* \
   1033   1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
   1034   1.1  christos     program_transform_name=$ac_optarg ;;
   1035   1.1  christos 
   1036   1.1  christos   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1037   1.1  christos     ac_prev=pdfdir ;;
   1038   1.1  christos   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1039   1.1  christos     pdfdir=$ac_optarg ;;
   1040   1.1  christos 
   1041   1.1  christos   -psdir | --psdir | --psdi | --psd | --ps)
   1042   1.1  christos     ac_prev=psdir ;;
   1043   1.1  christos   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1044   1.1  christos     psdir=$ac_optarg ;;
   1045   1.1  christos 
   1046   1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1047   1.1  christos   | -silent | --silent | --silen | --sile | --sil)
   1048   1.1  christos     silent=yes ;;
   1049   1.1  christos 
   1050  1.12  christos   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1051  1.12  christos   | --runstate | --runstat | --runsta | --runst | --runs \
   1052  1.12  christos   | --run | --ru | --r)
   1053  1.12  christos     ac_prev=runstatedir ;;
   1054  1.12  christos   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1055  1.12  christos   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1056  1.12  christos   | --run=* | --ru=* | --r=*)
   1057  1.12  christos     runstatedir=$ac_optarg ;;
   1058  1.12  christos 
   1059   1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1060   1.1  christos     ac_prev=sbindir ;;
   1061   1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1062   1.1  christos   | --sbi=* | --sb=*)
   1063   1.1  christos     sbindir=$ac_optarg ;;
   1064   1.1  christos 
   1065   1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1066   1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1067   1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
   1068   1.1  christos   | --sha | --sh)
   1069   1.1  christos     ac_prev=sharedstatedir ;;
   1070   1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1071   1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1072   1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1073   1.1  christos   | --sha=* | --sh=*)
   1074   1.1  christos     sharedstatedir=$ac_optarg ;;
   1075   1.1  christos 
   1076   1.1  christos   -site | --site | --sit)
   1077   1.1  christos     ac_prev=site ;;
   1078   1.1  christos   -site=* | --site=* | --sit=*)
   1079   1.1  christos     site=$ac_optarg ;;
   1080   1.1  christos 
   1081   1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1082   1.1  christos     ac_prev=srcdir ;;
   1083   1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1084   1.1  christos     srcdir=$ac_optarg ;;
   1085   1.1  christos 
   1086   1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1087   1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
   1088   1.1  christos     ac_prev=sysconfdir ;;
   1089   1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1090   1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1091   1.1  christos     sysconfdir=$ac_optarg ;;
   1092   1.1  christos 
   1093   1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
   1094   1.1  christos     ac_prev=target_alias ;;
   1095   1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1096   1.1  christos     target_alias=$ac_optarg ;;
   1097   1.1  christos 
   1098   1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1099   1.1  christos     verbose=yes ;;
   1100   1.1  christos 
   1101   1.1  christos   -version | --version | --versio | --versi | --vers | -V)
   1102   1.1  christos     ac_init_version=: ;;
   1103   1.1  christos 
   1104   1.1  christos   -with-* | --with-*)
   1105   1.4  christos     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1106   1.1  christos     # Reject names that are not valid shell variable names.
   1107   1.4  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1108  1.12  christos       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1109   1.4  christos     ac_useropt_orig=$ac_useropt
   1110  1.12  christos     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1111   1.4  christos     case $ac_user_opts in
   1112   1.4  christos       *"
   1113   1.4  christos "with_$ac_useropt"
   1114   1.4  christos "*) ;;
   1115   1.4  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1116   1.4  christos 	 ac_unrecognized_sep=', ';;
   1117   1.4  christos     esac
   1118   1.4  christos     eval with_$ac_useropt=\$ac_optarg ;;
   1119   1.1  christos 
   1120   1.1  christos   -without-* | --without-*)
   1121   1.4  christos     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1122   1.1  christos     # Reject names that are not valid shell variable names.
   1123   1.4  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1124  1.12  christos       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1125   1.4  christos     ac_useropt_orig=$ac_useropt
   1126  1.12  christos     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1127   1.4  christos     case $ac_user_opts in
   1128   1.4  christos       *"
   1129   1.4  christos "with_$ac_useropt"
   1130   1.4  christos "*) ;;
   1131   1.4  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1132   1.4  christos 	 ac_unrecognized_sep=', ';;
   1133   1.4  christos     esac
   1134   1.4  christos     eval with_$ac_useropt=no ;;
   1135   1.1  christos 
   1136   1.1  christos   --x)
   1137   1.1  christos     # Obsolete; use --with-x.
   1138   1.1  christos     with_x=yes ;;
   1139   1.1  christos 
   1140   1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1141   1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
   1142   1.1  christos     ac_prev=x_includes ;;
   1143   1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1144   1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1145   1.1  christos     x_includes=$ac_optarg ;;
   1146   1.1  christos 
   1147   1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1148   1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1149   1.1  christos     ac_prev=x_libraries ;;
   1150   1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1151   1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1152   1.1  christos     x_libraries=$ac_optarg ;;
   1153   1.1  christos 
   1154   1.4  christos   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1155   1.4  christos Try \`$0 --help' for more information"
   1156   1.1  christos     ;;
   1157   1.1  christos 
   1158   1.1  christos   *=*)
   1159   1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1160   1.1  christos     # Reject names that are not valid shell variable names.
   1161   1.4  christos     case $ac_envvar in #(
   1162   1.4  christos       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1163   1.4  christos       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1164   1.4  christos     esac
   1165   1.1  christos     eval $ac_envvar=\$ac_optarg
   1166   1.1  christos     export $ac_envvar ;;
   1167   1.1  christos 
   1168   1.1  christos   *)
   1169   1.1  christos     # FIXME: should be removed in autoconf 3.0.
   1170  1.12  christos     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1171   1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1172  1.12  christos       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1173   1.4  christos     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1174   1.1  christos     ;;
   1175   1.1  christos 
   1176   1.1  christos   esac
   1177   1.1  christos done
   1178   1.1  christos 
   1179   1.1  christos if test -n "$ac_prev"; then
   1180   1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1181   1.4  christos   as_fn_error $? "missing argument to $ac_option"
   1182   1.4  christos fi
   1183   1.4  christos 
   1184   1.4  christos if test -n "$ac_unrecognized_opts"; then
   1185   1.4  christos   case $enable_option_checking in
   1186   1.4  christos     no) ;;
   1187   1.4  christos     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1188  1.12  christos     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1189   1.4  christos   esac
   1190   1.1  christos fi
   1191   1.1  christos 
   1192   1.4  christos # Check all directory arguments for consistency.
   1193   1.1  christos for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1194   1.1  christos 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1195   1.1  christos 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1196  1.12  christos 		libdir localedir mandir runstatedir
   1197   1.1  christos do
   1198   1.1  christos   eval ac_val=\$$ac_var
   1199   1.4  christos   # Remove trailing slashes.
   1200   1.4  christos   case $ac_val in
   1201   1.4  christos     */ )
   1202   1.4  christos       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1203   1.4  christos       eval $ac_var=\$ac_val;;
   1204   1.4  christos   esac
   1205   1.4  christos   # Be sure to have absolute directory names.
   1206   1.1  christos   case $ac_val in
   1207   1.1  christos     [\\/$]* | ?:[\\/]* )  continue;;
   1208   1.1  christos     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1209   1.1  christos   esac
   1210   1.4  christos   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1211   1.1  christos done
   1212   1.1  christos 
   1213   1.1  christos # There might be people who depend on the old broken behavior: `$host'
   1214   1.1  christos # used to hold the argument of --host etc.
   1215   1.1  christos # FIXME: To remove some day.
   1216   1.1  christos build=$build_alias
   1217   1.1  christos host=$host_alias
   1218   1.1  christos target=$target_alias
   1219   1.1  christos 
   1220   1.1  christos # FIXME: To remove some day.
   1221   1.1  christos if test "x$host_alias" != x; then
   1222   1.1  christos   if test "x$build_alias" = x; then
   1223   1.1  christos     cross_compiling=maybe
   1224   1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
   1225   1.1  christos     cross_compiling=yes
   1226   1.1  christos   fi
   1227   1.1  christos fi
   1228   1.1  christos 
   1229   1.1  christos ac_tool_prefix=
   1230   1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1231   1.1  christos 
   1232   1.1  christos test "$silent" = yes && exec 6>/dev/null
   1233   1.1  christos 
   1234   1.1  christos 
   1235   1.1  christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1236   1.1  christos ac_ls_di=`ls -di .` &&
   1237   1.1  christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1238   1.4  christos   as_fn_error $? "working directory cannot be determined"
   1239   1.1  christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1240   1.4  christos   as_fn_error $? "pwd does not report name of working directory"
   1241   1.1  christos 
   1242   1.1  christos 
   1243   1.1  christos # Find the source files, if location was not specified.
   1244   1.1  christos if test -z "$srcdir"; then
   1245   1.1  christos   ac_srcdir_defaulted=yes
   1246   1.1  christos   # Try the directory containing this script, then the parent directory.
   1247   1.4  christos   ac_confdir=`$as_dirname -- "$as_myself" ||
   1248   1.4  christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1249   1.4  christos 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1250   1.4  christos 	 X"$as_myself" : 'X\(//\)$' \| \
   1251   1.4  christos 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1252  1.12  christos printf "%s\n" X"$as_myself" |
   1253   1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1254   1.1  christos 	    s//\1/
   1255   1.1  christos 	    q
   1256   1.1  christos 	  }
   1257   1.1  christos 	  /^X\(\/\/\)[^/].*/{
   1258   1.1  christos 	    s//\1/
   1259   1.1  christos 	    q
   1260   1.1  christos 	  }
   1261   1.1  christos 	  /^X\(\/\/\)$/{
   1262   1.1  christos 	    s//\1/
   1263   1.1  christos 	    q
   1264   1.1  christos 	  }
   1265   1.1  christos 	  /^X\(\/\).*/{
   1266   1.1  christos 	    s//\1/
   1267   1.1  christos 	    q
   1268   1.1  christos 	  }
   1269   1.1  christos 	  s/.*/./; q'`
   1270   1.1  christos   srcdir=$ac_confdir
   1271   1.1  christos   if test ! -r "$srcdir/$ac_unique_file"; then
   1272   1.1  christos     srcdir=..
   1273   1.1  christos   fi
   1274   1.1  christos else
   1275   1.1  christos   ac_srcdir_defaulted=no
   1276   1.1  christos fi
   1277   1.1  christos if test ! -r "$srcdir/$ac_unique_file"; then
   1278   1.1  christos   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1279   1.4  christos   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1280   1.1  christos fi
   1281   1.1  christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1282   1.1  christos ac_abs_confdir=`(
   1283   1.4  christos 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1284   1.1  christos 	pwd)`
   1285   1.1  christos # When building in place, set srcdir=.
   1286   1.1  christos if test "$ac_abs_confdir" = "$ac_pwd"; then
   1287   1.1  christos   srcdir=.
   1288   1.1  christos fi
   1289   1.1  christos # Remove unnecessary trailing slashes from srcdir.
   1290   1.1  christos # Double slashes in file names in object file debugging info
   1291   1.1  christos # mess up M-x gdb in Emacs.
   1292   1.1  christos case $srcdir in
   1293   1.1  christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1294   1.1  christos esac
   1295   1.1  christos for ac_var in $ac_precious_vars; do
   1296   1.1  christos   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1297   1.1  christos   eval ac_env_${ac_var}_value=\$${ac_var}
   1298   1.1  christos   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1299   1.1  christos   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1300   1.1  christos done
   1301   1.1  christos 
   1302   1.1  christos #
   1303   1.1  christos # Report the --help message.
   1304   1.1  christos #
   1305   1.1  christos if test "$ac_init_help" = "long"; then
   1306   1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
   1307   1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
   1308   1.1  christos   cat <<_ACEOF
   1309  1.13  christos \`configure' configures tcpdump 4.99.6 to adapt to many kinds of systems.
   1310   1.1  christos 
   1311   1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
   1312   1.1  christos 
   1313   1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1314   1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
   1315   1.1  christos 
   1316   1.1  christos Defaults for the options are specified in brackets.
   1317   1.1  christos 
   1318   1.1  christos Configuration:
   1319   1.1  christos   -h, --help              display this help and exit
   1320   1.1  christos       --help=short        display options specific to this package
   1321   1.1  christos       --help=recursive    display the short help of all the included packages
   1322   1.1  christos   -V, --version           display version information and exit
   1323   1.4  christos   -q, --quiet, --silent   do not print \`checking ...' messages
   1324   1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
   1325   1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
   1326   1.1  christos   -n, --no-create         do not create output files
   1327   1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1328   1.1  christos 
   1329   1.1  christos Installation directories:
   1330   1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
   1331   1.4  christos                           [$ac_default_prefix]
   1332   1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1333   1.4  christos                           [PREFIX]
   1334   1.1  christos 
   1335   1.1  christos By default, \`make install' will install all the files in
   1336   1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1337   1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1338   1.1  christos for instance \`--prefix=\$HOME'.
   1339   1.1  christos 
   1340   1.1  christos For better control, use the options below.
   1341   1.1  christos 
   1342   1.1  christos Fine tuning of the installation directories:
   1343   1.4  christos   --bindir=DIR            user executables [EPREFIX/bin]
   1344   1.4  christos   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1345   1.4  christos   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1346   1.4  christos   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1347   1.4  christos   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1348   1.4  christos   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1349  1.12  christos   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1350   1.4  christos   --libdir=DIR            object code libraries [EPREFIX/lib]
   1351   1.4  christos   --includedir=DIR        C header files [PREFIX/include]
   1352   1.4  christos   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1353   1.4  christos   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1354   1.4  christos   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1355   1.4  christos   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1356   1.4  christos   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1357   1.4  christos   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1358  1.11  christos   --docdir=DIR            documentation root [DATAROOTDIR/doc/tcpdump]
   1359   1.4  christos   --htmldir=DIR           html documentation [DOCDIR]
   1360   1.4  christos   --dvidir=DIR            dvi documentation [DOCDIR]
   1361   1.4  christos   --pdfdir=DIR            pdf documentation [DOCDIR]
   1362   1.4  christos   --psdir=DIR             ps documentation [DOCDIR]
   1363   1.1  christos _ACEOF
   1364   1.1  christos 
   1365   1.1  christos   cat <<\_ACEOF
   1366   1.1  christos 
   1367   1.1  christos System types:
   1368   1.1  christos   --build=BUILD     configure for building on BUILD [guessed]
   1369   1.1  christos   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1370   1.1  christos _ACEOF
   1371   1.1  christos fi
   1372   1.1  christos 
   1373   1.1  christos if test -n "$ac_init_help"; then
   1374  1.11  christos   case $ac_init_help in
   1375  1.13  christos      short | recursive ) echo "Configuration of tcpdump 4.99.6:";;
   1376  1.11  christos    esac
   1377   1.1  christos   cat <<\_ACEOF
   1378   1.1  christos 
   1379   1.1  christos Optional Features:
   1380   1.4  christos   --disable-option-checking  ignore unrecognized --enable/--with options
   1381   1.1  christos   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1382   1.1  christos   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1383  1.11  christos   --disable-universal     don't build universal on macOS
   1384  1.12  christos   --enable-instrument-functions
   1385  1.12  christos                           enable instrument functions code [default=no]
   1386  1.11  christos   --enable-smb            enable possibly-buggy SMB printer [default=no]
   1387  1.11  christos   --disable-local-libpcap don't look for a local libpcap [default=check for a
   1388  1.11  christos                           local libpcap]
   1389   1.1  christos 
   1390   1.1  christos Optional Packages:
   1391   1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1392   1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1393   1.1  christos   --without-gcc           don't use gcc
   1394  1.11  christos   --with-smi              link with libsmi (allows to load MIBs on the fly to
   1395  1.11  christos                           decode SNMP packets) [default=yes, if available]
   1396   1.1  christos   --with-user=USERNAME    drop privileges by default to USERNAME
   1397   1.1  christos   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
   1398   1.6  christos   --with-sandbox-capsicum use Capsicum security functions [default=yes, if
   1399   1.6  christos                           available]
   1400   1.7  christos   --with-crypto[=DIR]     use OpenSSL/libressl libcrypto (located in directory
   1401   1.7  christos                           DIR, if specified) [default=yes, if available]
   1402   1.6  christos   --with-cap-ng           use libcap-ng [default=yes, if available]
   1403   1.1  christos 
   1404   1.1  christos Some influential environment variables:
   1405   1.1  christos   CC          C compiler command
   1406   1.1  christos   CFLAGS      C compiler flags
   1407   1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1408   1.1  christos               nonstandard directory <lib dir>
   1409   1.1  christos   LIBS        libraries to pass to the linker, e.g. -l<library>
   1410   1.4  christos   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1411   1.1  christos               you have headers in a nonstandard directory <include dir>
   1412  1.12  christos   PKG_CONFIG  path to pkg-config utility
   1413  1.12  christos   PKG_CONFIG_PATH
   1414  1.12  christos               directories to add to pkg-config's search path
   1415  1.12  christos   PKG_CONFIG_LIBDIR
   1416  1.12  christos               path overriding pkg-config's built-in search path
   1417   1.1  christos   CPP         C preprocessor
   1418  1.12  christos   LIBCRYPTO_CFLAGS
   1419  1.12  christos               C compiler flags for libcrypto, overriding pkg-config
   1420  1.12  christos   LIBCRYPTO_LIBS
   1421  1.12  christos               linker flags for libcrypto, overriding pkg-config
   1422  1.12  christos   LIBCRYPTO_LIBS_STATIC
   1423  1.12  christos               static-link linker flags for libcrypto, overriding pkg-config
   1424   1.1  christos 
   1425   1.1  christos Use these variables to override the choices made by `configure' or to help
   1426   1.1  christos it to find libraries and programs with nonstandard names/locations.
   1427   1.1  christos 
   1428   1.4  christos Report bugs to the package provider.
   1429   1.1  christos _ACEOF
   1430   1.1  christos ac_status=$?
   1431   1.1  christos fi
   1432   1.1  christos 
   1433   1.1  christos if test "$ac_init_help" = "recursive"; then
   1434   1.1  christos   # If there are subdirs, report their specific --help.
   1435   1.1  christos   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1436   1.4  christos     test -d "$ac_dir" ||
   1437   1.4  christos       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1438   1.4  christos       continue
   1439   1.1  christos     ac_builddir=.
   1440   1.1  christos 
   1441   1.1  christos case "$ac_dir" in
   1442   1.1  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1443   1.1  christos *)
   1444  1.12  christos   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1445   1.1  christos   # A ".." for each directory in $ac_dir_suffix.
   1446  1.12  christos   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1447   1.1  christos   case $ac_top_builddir_sub in
   1448   1.1  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1449   1.1  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1450   1.1  christos   esac ;;
   1451   1.1  christos esac
   1452   1.1  christos ac_abs_top_builddir=$ac_pwd
   1453   1.1  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1454   1.1  christos # for backward compatibility:
   1455   1.1  christos ac_top_builddir=$ac_top_build_prefix
   1456   1.1  christos 
   1457   1.1  christos case $srcdir in
   1458   1.1  christos   .)  # We are building in place.
   1459   1.1  christos     ac_srcdir=.
   1460   1.1  christos     ac_top_srcdir=$ac_top_builddir_sub
   1461   1.1  christos     ac_abs_top_srcdir=$ac_pwd ;;
   1462   1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   1463   1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   1464   1.1  christos     ac_top_srcdir=$srcdir
   1465   1.1  christos     ac_abs_top_srcdir=$srcdir ;;
   1466   1.1  christos   *) # Relative name.
   1467   1.1  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1468   1.1  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1469   1.1  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1470   1.1  christos esac
   1471   1.1  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1472   1.1  christos 
   1473   1.1  christos     cd "$ac_dir" || { ac_status=$?; continue; }
   1474  1.12  christos     # Check for configure.gnu first; this name is used for a wrapper for
   1475  1.12  christos     # Metaconfig's "Configure" on case-insensitive file systems.
   1476   1.1  christos     if test -f "$ac_srcdir/configure.gnu"; then
   1477   1.1  christos       echo &&
   1478   1.1  christos       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1479   1.1  christos     elif test -f "$ac_srcdir/configure"; then
   1480   1.1  christos       echo &&
   1481   1.1  christos       $SHELL "$ac_srcdir/configure" --help=recursive
   1482   1.1  christos     else
   1483  1.12  christos       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1484   1.1  christos     fi || ac_status=$?
   1485   1.1  christos     cd "$ac_pwd" || { ac_status=$?; break; }
   1486   1.1  christos   done
   1487   1.1  christos fi
   1488   1.1  christos 
   1489   1.1  christos test -n "$ac_init_help" && exit $ac_status
   1490   1.1  christos if $ac_init_version; then
   1491   1.1  christos   cat <<\_ACEOF
   1492  1.13  christos tcpdump configure 4.99.6
   1493  1.12  christos generated by GNU Autoconf 2.71
   1494   1.1  christos 
   1495  1.12  christos Copyright (C) 2021 Free Software Foundation, Inc.
   1496   1.1  christos This configure script is free software; the Free Software Foundation
   1497   1.1  christos gives unlimited permission to copy, distribute and modify it.
   1498   1.1  christos _ACEOF
   1499   1.1  christos   exit
   1500   1.1  christos fi
   1501   1.1  christos 
   1502   1.4  christos ## ------------------------ ##
   1503   1.4  christos ## Autoconf initialization. ##
   1504   1.4  christos ## ------------------------ ##
   1505   1.4  christos 
   1506   1.4  christos # ac_fn_c_try_compile LINENO
   1507   1.4  christos # --------------------------
   1508   1.4  christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1509   1.4  christos ac_fn_c_try_compile ()
   1510   1.1  christos {
   1511   1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1512  1.12  christos   rm -f conftest.$ac_objext conftest.beam
   1513   1.4  christos   if { { ac_try="$ac_compile"
   1514   1.4  christos case "(($ac_try" in
   1515   1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1516   1.4  christos   *) ac_try_echo=$ac_try;;
   1517   1.4  christos esac
   1518   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1519  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   1520   1.4  christos   (eval "$ac_compile") 2>conftest.err
   1521   1.4  christos   ac_status=$?
   1522   1.4  christos   if test -s conftest.err; then
   1523   1.4  christos     grep -v '^ *+' conftest.err >conftest.er1
   1524   1.4  christos     cat conftest.er1 >&5
   1525   1.4  christos     mv -f conftest.er1 conftest.err
   1526   1.4  christos   fi
   1527  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1528   1.4  christos   test $ac_status = 0; } && {
   1529   1.4  christos 	 test -z "$ac_c_werror_flag" ||
   1530   1.4  christos 	 test ! -s conftest.err
   1531  1.12  christos        } && test -s conftest.$ac_objext
   1532  1.12  christos then :
   1533   1.4  christos   ac_retval=0
   1534  1.12  christos else $as_nop
   1535  1.12  christos   printf "%s\n" "$as_me: failed program was:" >&5
   1536   1.4  christos sed 's/^/| /' conftest.$ac_ext >&5
   1537   1.1  christos 
   1538   1.4  christos 	ac_retval=1
   1539   1.4  christos fi
   1540   1.4  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1541   1.4  christos   as_fn_set_status $ac_retval
   1542   1.1  christos 
   1543   1.4  christos } # ac_fn_c_try_compile
   1544   1.1  christos 
   1545  1.12  christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1546   1.4  christos # -------------------------------------------------------
   1547  1.12  christos # Tests whether HEADER exists and can be compiled using the include files in
   1548  1.12  christos # INCLUDES, setting the cache variable VAR accordingly.
   1549  1.12  christos ac_fn_c_check_header_compile ()
   1550   1.4  christos {
   1551   1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1552  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1553  1.12  christos printf %s "checking for $2... " >&6; }
   1554  1.12  christos if eval test \${$3+y}
   1555  1.12  christos then :
   1556  1.12  christos   printf %s "(cached) " >&6
   1557  1.12  christos else $as_nop
   1558  1.12  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1559   1.4  christos /* end confdefs.h.  */
   1560   1.4  christos $4
   1561   1.4  christos #include <$2>
   1562   1.4  christos _ACEOF
   1563  1.12  christos if ac_fn_c_try_compile "$LINENO"
   1564  1.12  christos then :
   1565  1.12  christos   eval "$3=yes"
   1566  1.12  christos else $as_nop
   1567  1.12  christos   eval "$3=no"
   1568   1.4  christos fi
   1569  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1570   1.4  christos fi
   1571   1.4  christos eval ac_res=\$$3
   1572  1.12  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1573  1.12  christos printf "%s\n" "$ac_res" >&6; }
   1574   1.4  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1575   1.4  christos 
   1576  1.12  christos } # ac_fn_c_check_header_compile
   1577   1.4  christos 
   1578   1.4  christos # ac_fn_c_try_run LINENO
   1579   1.4  christos # ----------------------
   1580  1.12  christos # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
   1581  1.12  christos # executables *can* be run.
   1582   1.4  christos ac_fn_c_try_run ()
   1583   1.4  christos {
   1584   1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1585   1.4  christos   if { { ac_try="$ac_link"
   1586   1.4  christos case "(($ac_try" in
   1587   1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1588   1.4  christos   *) ac_try_echo=$ac_try;;
   1589   1.4  christos esac
   1590   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1591  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   1592   1.4  christos   (eval "$ac_link") 2>&5
   1593   1.4  christos   ac_status=$?
   1594  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1595   1.4  christos   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1596   1.4  christos   { { case "(($ac_try" in
   1597   1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1598   1.4  christos   *) ac_try_echo=$ac_try;;
   1599   1.4  christos esac
   1600   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1601  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   1602   1.4  christos   (eval "$ac_try") 2>&5
   1603   1.4  christos   ac_status=$?
   1604  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1605  1.12  christos   test $ac_status = 0; }; }
   1606  1.12  christos then :
   1607   1.4  christos   ac_retval=0
   1608  1.12  christos else $as_nop
   1609  1.12  christos   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
   1610  1.12  christos        printf "%s\n" "$as_me: failed program was:" >&5
   1611   1.4  christos sed 's/^/| /' conftest.$ac_ext >&5
   1612   1.4  christos 
   1613   1.4  christos        ac_retval=$ac_status
   1614   1.4  christos fi
   1615   1.4  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1616   1.4  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1617   1.4  christos   as_fn_set_status $ac_retval
   1618   1.4  christos 
   1619   1.4  christos } # ac_fn_c_try_run
   1620   1.4  christos 
   1621  1.12  christos # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1622  1.12  christos # --------------------------------------------
   1623  1.12  christos # Tries to find the compile-time value of EXPR in a program that includes
   1624  1.12  christos # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1625  1.12  christos # computed
   1626  1.12  christos ac_fn_c_compute_int ()
   1627   1.4  christos {
   1628   1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1629  1.12  christos   if test "$cross_compiling" = yes; then
   1630  1.12  christos     # Depending upon the size, compute the lo and hi bounds.
   1631  1.12  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1632   1.4  christos /* end confdefs.h.  */
   1633   1.4  christos $4
   1634  1.12  christos int
   1635  1.12  christos main (void)
   1636  1.12  christos {
   1637  1.12  christos static int test_array [1 - 2 * !(($2) >= 0)];
   1638  1.12  christos test_array [0] = 0;
   1639  1.12  christos return test_array [0];
   1640  1.12  christos 
   1641  1.12  christos   ;
   1642  1.12  christos   return 0;
   1643  1.12  christos }
   1644   1.4  christos _ACEOF
   1645  1.12  christos if ac_fn_c_try_compile "$LINENO"
   1646  1.12  christos then :
   1647  1.12  christos   ac_lo=0 ac_mid=0
   1648  1.12  christos   while :; do
   1649  1.12  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1650  1.12  christos /* end confdefs.h.  */
   1651  1.12  christos $4
   1652  1.12  christos int
   1653  1.12  christos main (void)
   1654   1.4  christos {
   1655  1.12  christos static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1656  1.12  christos test_array [0] = 0;
   1657  1.12  christos return test_array [0];
   1658   1.4  christos 
   1659  1.12  christos   ;
   1660  1.12  christos   return 0;
   1661  1.12  christos }
   1662  1.12  christos _ACEOF
   1663  1.12  christos if ac_fn_c_try_compile "$LINENO"
   1664  1.12  christos then :
   1665  1.12  christos   ac_hi=$ac_mid; break
   1666  1.12  christos else $as_nop
   1667  1.12  christos   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1668  1.12  christos 			if test $ac_lo -le $ac_mid; then
   1669  1.12  christos 			  ac_lo= ac_hi=
   1670  1.12  christos 			  break
   1671  1.12  christos 			fi
   1672  1.12  christos 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1673   1.4  christos fi
   1674  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1675  1.12  christos   done
   1676  1.12  christos else $as_nop
   1677   1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1678   1.4  christos /* end confdefs.h.  */
   1679  1.12  christos $4
   1680  1.12  christos int
   1681  1.12  christos main (void)
   1682  1.12  christos {
   1683  1.12  christos static int test_array [1 - 2 * !(($2) < 0)];
   1684  1.12  christos test_array [0] = 0;
   1685  1.12  christos return test_array [0];
   1686   1.4  christos 
   1687  1.12  christos   ;
   1688  1.12  christos   return 0;
   1689  1.12  christos }
   1690  1.12  christos _ACEOF
   1691  1.12  christos if ac_fn_c_try_compile "$LINENO"
   1692  1.12  christos then :
   1693  1.11  christos   ac_hi=-1 ac_mid=-1
   1694  1.11  christos   while :; do
   1695  1.11  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1696   1.4  christos /* end confdefs.h.  */
   1697   1.4  christos $4
   1698   1.4  christos int
   1699  1.12  christos main (void)
   1700   1.4  christos {
   1701  1.11  christos static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   1702  1.11  christos test_array [0] = 0;
   1703  1.11  christos return test_array [0];
   1704  1.11  christos 
   1705   1.4  christos   ;
   1706   1.4  christos   return 0;
   1707   1.4  christos }
   1708   1.4  christos _ACEOF
   1709  1.12  christos if ac_fn_c_try_compile "$LINENO"
   1710  1.12  christos then :
   1711  1.11  christos   ac_lo=$ac_mid; break
   1712  1.12  christos else $as_nop
   1713  1.11  christos   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   1714  1.11  christos 			if test $ac_mid -le $ac_hi; then
   1715  1.11  christos 			  ac_lo= ac_hi=
   1716  1.11  christos 			  break
   1717  1.11  christos 			fi
   1718  1.11  christos 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   1719   1.4  christos fi
   1720  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1721  1.11  christos   done
   1722  1.12  christos else $as_nop
   1723  1.11  christos   ac_lo= ac_hi=
   1724   1.4  christos fi
   1725  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1726   1.4  christos fi
   1727  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1728  1.11  christos # Binary search between lo and hi bounds.
   1729  1.11  christos while test "x$ac_lo" != "x$ac_hi"; do
   1730  1.11  christos   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   1731  1.11  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1732   1.4  christos /* end confdefs.h.  */
   1733  1.11  christos $4
   1734   1.4  christos int
   1735  1.12  christos main (void)
   1736   1.4  christos {
   1737  1.11  christos static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1738   1.4  christos test_array [0] = 0;
   1739   1.4  christos return test_array [0];
   1740   1.4  christos 
   1741   1.4  christos   ;
   1742   1.4  christos   return 0;
   1743   1.4  christos }
   1744   1.4  christos _ACEOF
   1745  1.12  christos if ac_fn_c_try_compile "$LINENO"
   1746  1.12  christos then :
   1747  1.11  christos   ac_hi=$ac_mid
   1748  1.12  christos else $as_nop
   1749  1.11  christos   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   1750  1.11  christos fi
   1751  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1752  1.11  christos done
   1753  1.11  christos case $ac_lo in #((
   1754  1.11  christos ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   1755  1.11  christos '') ac_retval=1 ;;
   1756  1.11  christos esac
   1757  1.11  christos   else
   1758  1.11  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1759  1.11  christos /* end confdefs.h.  */
   1760  1.11  christos $4
   1761  1.12  christos static long int longval (void) { return $2; }
   1762  1.12  christos static unsigned long int ulongval (void) { return $2; }
   1763  1.11  christos #include <stdio.h>
   1764  1.11  christos #include <stdlib.h>
   1765  1.11  christos int
   1766  1.12  christos main (void)
   1767  1.11  christos {
   1768  1.11  christos 
   1769  1.11  christos   FILE *f = fopen ("conftest.val", "w");
   1770  1.11  christos   if (! f)
   1771  1.11  christos     return 1;
   1772  1.11  christos   if (($2) < 0)
   1773  1.11  christos     {
   1774  1.11  christos       long int i = longval ();
   1775  1.11  christos       if (i != ($2))
   1776  1.11  christos 	return 1;
   1777  1.11  christos       fprintf (f, "%ld", i);
   1778  1.11  christos     }
   1779  1.11  christos   else
   1780  1.11  christos     {
   1781  1.11  christos       unsigned long int i = ulongval ();
   1782  1.11  christos       if (i != ($2))
   1783  1.11  christos 	return 1;
   1784  1.11  christos       fprintf (f, "%lu", i);
   1785  1.11  christos     }
   1786  1.11  christos   /* Do not output a trailing newline, as this causes \r\n confusion
   1787  1.11  christos      on some platforms.  */
   1788  1.11  christos   return ferror (f) || fclose (f) != 0;
   1789  1.11  christos 
   1790  1.11  christos   ;
   1791  1.11  christos   return 0;
   1792  1.11  christos }
   1793  1.11  christos _ACEOF
   1794  1.12  christos if ac_fn_c_try_run "$LINENO"
   1795  1.12  christos then :
   1796  1.11  christos   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   1797  1.12  christos else $as_nop
   1798  1.11  christos   ac_retval=1
   1799  1.11  christos fi
   1800  1.11  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   1801  1.11  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   1802  1.11  christos rm -f conftest.val
   1803  1.11  christos 
   1804  1.11  christos   fi
   1805  1.11  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1806  1.11  christos   as_fn_set_status $ac_retval
   1807  1.11  christos 
   1808  1.11  christos } # ac_fn_c_compute_int
   1809  1.11  christos 
   1810  1.12  christos # ac_fn_c_try_link LINENO
   1811  1.12  christos # -----------------------
   1812  1.12  christos # Try to link conftest.$ac_ext, and return whether this succeeded.
   1813  1.12  christos ac_fn_c_try_link ()
   1814  1.12  christos {
   1815  1.12  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1816  1.12  christos   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1817  1.12  christos   if { { ac_try="$ac_link"
   1818  1.12  christos case "(($ac_try" in
   1819  1.12  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1820  1.12  christos   *) ac_try_echo=$ac_try;;
   1821  1.12  christos esac
   1822  1.12  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1823  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   1824  1.12  christos   (eval "$ac_link") 2>conftest.err
   1825  1.12  christos   ac_status=$?
   1826  1.12  christos   if test -s conftest.err; then
   1827  1.12  christos     grep -v '^ *+' conftest.err >conftest.er1
   1828  1.12  christos     cat conftest.er1 >&5
   1829  1.12  christos     mv -f conftest.er1 conftest.err
   1830  1.12  christos   fi
   1831  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1832  1.12  christos   test $ac_status = 0; } && {
   1833  1.12  christos 	 test -z "$ac_c_werror_flag" ||
   1834  1.12  christos 	 test ! -s conftest.err
   1835  1.12  christos        } && test -s conftest$ac_exeext && {
   1836  1.12  christos 	 test "$cross_compiling" = yes ||
   1837  1.12  christos 	 test -x conftest$ac_exeext
   1838  1.12  christos        }
   1839  1.12  christos then :
   1840  1.12  christos   ac_retval=0
   1841  1.12  christos else $as_nop
   1842  1.12  christos   printf "%s\n" "$as_me: failed program was:" >&5
   1843  1.12  christos sed 's/^/| /' conftest.$ac_ext >&5
   1844  1.12  christos 
   1845  1.12  christos 	ac_retval=1
   1846  1.12  christos fi
   1847  1.12  christos   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1848  1.12  christos   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1849  1.12  christos   # interfere with the next link command; also delete a directory that is
   1850  1.12  christos   # left behind by Apple's compiler.  We do this before executing the actions.
   1851  1.12  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1852  1.12  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1853  1.12  christos   as_fn_set_status $ac_retval
   1854  1.12  christos 
   1855  1.12  christos } # ac_fn_c_try_link
   1856  1.12  christos 
   1857  1.12  christos # ac_fn_c_check_func LINENO FUNC VAR
   1858  1.12  christos # ----------------------------------
   1859  1.12  christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1860  1.12  christos ac_fn_c_check_func ()
   1861  1.12  christos {
   1862  1.12  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1863  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1864  1.12  christos printf %s "checking for $2... " >&6; }
   1865  1.12  christos if eval test \${$3+y}
   1866  1.12  christos then :
   1867  1.12  christos   printf %s "(cached) " >&6
   1868  1.12  christos else $as_nop
   1869  1.12  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1870  1.12  christos /* end confdefs.h.  */
   1871  1.12  christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1872  1.12  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1873  1.12  christos #define $2 innocuous_$2
   1874  1.12  christos 
   1875  1.12  christos /* System header to define __stub macros and hopefully few prototypes,
   1876  1.12  christos    which can conflict with char $2 (); below.  */
   1877  1.12  christos 
   1878  1.12  christos #include <limits.h>
   1879  1.12  christos #undef $2
   1880  1.12  christos 
   1881  1.12  christos /* Override any GCC internal prototype to avoid an error.
   1882  1.12  christos    Use char because int might match the return type of a GCC
   1883  1.12  christos    builtin and then its argument prototype would still apply.  */
   1884  1.12  christos #ifdef __cplusplus
   1885  1.12  christos extern "C"
   1886  1.12  christos #endif
   1887  1.12  christos char $2 ();
   1888  1.12  christos /* The GNU C library defines this for functions which it implements
   1889  1.12  christos     to always fail with ENOSYS.  Some functions are actually named
   1890  1.12  christos     something starting with __ and the normal name is an alias.  */
   1891  1.12  christos #if defined __stub_$2 || defined __stub___$2
   1892  1.12  christos choke me
   1893  1.12  christos #endif
   1894  1.12  christos 
   1895  1.12  christos int
   1896  1.12  christos main (void)
   1897  1.12  christos {
   1898  1.12  christos return $2 ();
   1899  1.12  christos   ;
   1900  1.12  christos   return 0;
   1901  1.12  christos }
   1902  1.12  christos _ACEOF
   1903  1.12  christos if ac_fn_c_try_link "$LINENO"
   1904  1.12  christos then :
   1905  1.12  christos   eval "$3=yes"
   1906  1.12  christos else $as_nop
   1907  1.12  christos   eval "$3=no"
   1908  1.12  christos fi
   1909  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1910  1.12  christos     conftest$ac_exeext conftest.$ac_ext
   1911  1.12  christos fi
   1912  1.12  christos eval ac_res=\$$3
   1913  1.12  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1914  1.12  christos printf "%s\n" "$ac_res" >&6; }
   1915  1.12  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1916  1.12  christos 
   1917  1.12  christos } # ac_fn_c_check_func
   1918  1.12  christos 
   1919  1.12  christos # ac_fn_c_try_cpp LINENO
   1920  1.12  christos # ----------------------
   1921  1.12  christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1922  1.12  christos ac_fn_c_try_cpp ()
   1923  1.12  christos {
   1924  1.12  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1925  1.12  christos   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1926  1.12  christos case "(($ac_try" in
   1927  1.12  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1928  1.12  christos   *) ac_try_echo=$ac_try;;
   1929  1.12  christos esac
   1930  1.12  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1931  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   1932  1.12  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1933  1.12  christos   ac_status=$?
   1934  1.12  christos   if test -s conftest.err; then
   1935  1.12  christos     grep -v '^ *+' conftest.err >conftest.er1
   1936  1.12  christos     cat conftest.er1 >&5
   1937  1.12  christos     mv -f conftest.er1 conftest.err
   1938  1.12  christos   fi
   1939  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1940  1.12  christos   test $ac_status = 0; } > conftest.i && {
   1941  1.12  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1942  1.12  christos 	 test ! -s conftest.err
   1943  1.12  christos        }
   1944  1.12  christos then :
   1945  1.12  christos   ac_retval=0
   1946  1.12  christos else $as_nop
   1947  1.12  christos   printf "%s\n" "$as_me: failed program was:" >&5
   1948  1.12  christos sed 's/^/| /' conftest.$ac_ext >&5
   1949  1.12  christos 
   1950  1.12  christos     ac_retval=1
   1951  1.12  christos fi
   1952  1.12  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1953  1.12  christos   as_fn_set_status $ac_retval
   1954  1.12  christos 
   1955  1.12  christos } # ac_fn_c_try_cpp
   1956  1.12  christos 
   1957  1.12  christos # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
   1958  1.12  christos # ------------------------------------------------------------------
   1959  1.11  christos # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1960  1.12  christos # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
   1961  1.12  christos ac_fn_check_decl ()
   1962  1.11  christos {
   1963  1.11  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1964  1.11  christos   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1965  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1966  1.12  christos printf %s "checking whether $as_decl_name is declared... " >&6; }
   1967  1.12  christos if eval test \${$3+y}
   1968  1.12  christos then :
   1969  1.12  christos   printf %s "(cached) " >&6
   1970  1.12  christos else $as_nop
   1971  1.11  christos   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1972  1.12  christos   eval ac_save_FLAGS=\$$6
   1973  1.12  christos   as_fn_append $6 " $5"
   1974   1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1975   1.4  christos /* end confdefs.h.  */
   1976  1.11  christos $4
   1977   1.4  christos int
   1978  1.12  christos main (void)
   1979   1.4  christos {
   1980  1.11  christos #ifndef $as_decl_name
   1981  1.11  christos #ifdef __cplusplus
   1982  1.11  christos   (void) $as_decl_use;
   1983  1.11  christos #else
   1984  1.11  christos   (void) $as_decl_name;
   1985  1.11  christos #endif
   1986  1.11  christos #endif
   1987   1.4  christos 
   1988   1.4  christos   ;
   1989   1.4  christos   return 0;
   1990   1.4  christos }
   1991   1.4  christos _ACEOF
   1992  1.12  christos if ac_fn_c_try_compile "$LINENO"
   1993  1.12  christos then :
   1994  1.11  christos   eval "$3=yes"
   1995  1.12  christos else $as_nop
   1996  1.11  christos   eval "$3=no"
   1997   1.4  christos fi
   1998  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1999  1.12  christos   eval $6=\$ac_save_FLAGS
   2000  1.12  christos 
   2001   1.4  christos fi
   2002   1.4  christos eval ac_res=\$$3
   2003  1.12  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2004  1.12  christos printf "%s\n" "$ac_res" >&6; }
   2005   1.4  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2006   1.4  christos 
   2007  1.12  christos } # ac_fn_check_decl
   2008   1.4  christos 
   2009  1.11  christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2010  1.11  christos # -------------------------------------------
   2011  1.11  christos # Tests whether TYPE exists after having included INCLUDES, setting cache
   2012  1.11  christos # variable VAR accordingly.
   2013  1.11  christos ac_fn_c_check_type ()
   2014   1.4  christos {
   2015   1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2016  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2017  1.12  christos printf %s "checking for $2... " >&6; }
   2018  1.12  christos if eval test \${$3+y}
   2019  1.12  christos then :
   2020  1.12  christos   printf %s "(cached) " >&6
   2021  1.12  christos else $as_nop
   2022   1.4  christos   eval "$3=no"
   2023  1.11  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2024  1.11  christos /* end confdefs.h.  */
   2025  1.11  christos $4
   2026  1.11  christos int
   2027  1.12  christos main (void)
   2028  1.11  christos {
   2029  1.11  christos if (sizeof ($2))
   2030  1.11  christos 	 return 0;
   2031  1.11  christos   ;
   2032  1.11  christos   return 0;
   2033  1.11  christos }
   2034  1.11  christos _ACEOF
   2035  1.12  christos if ac_fn_c_try_compile "$LINENO"
   2036  1.12  christos then :
   2037  1.11  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2038   1.4  christos /* end confdefs.h.  */
   2039  1.11  christos $4
   2040   1.4  christos int
   2041  1.12  christos main (void)
   2042   1.4  christos {
   2043  1.11  christos if (sizeof (($2)))
   2044  1.11  christos 	    return 0;
   2045   1.4  christos   ;
   2046   1.4  christos   return 0;
   2047   1.4  christos }
   2048   1.4  christos _ACEOF
   2049  1.12  christos if ac_fn_c_try_compile "$LINENO"
   2050  1.12  christos then :
   2051  1.11  christos 
   2052  1.12  christos else $as_nop
   2053  1.11  christos   eval "$3=yes"
   2054   1.4  christos fi
   2055  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2056   1.4  christos fi
   2057  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2058   1.4  christos fi
   2059   1.4  christos eval ac_res=\$$3
   2060  1.12  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2061  1.12  christos printf "%s\n" "$ac_res" >&6; }
   2062   1.4  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2063   1.4  christos 
   2064  1.11  christos } # ac_fn_c_check_type
   2065  1.12  christos ac_configure_args_raw=
   2066  1.12  christos for ac_arg
   2067  1.12  christos do
   2068  1.12  christos   case $ac_arg in
   2069  1.12  christos   *\'*)
   2070  1.12  christos     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2071  1.12  christos   esac
   2072  1.12  christos   as_fn_append ac_configure_args_raw " '$ac_arg'"
   2073  1.12  christos done
   2074  1.12  christos 
   2075  1.12  christos case $ac_configure_args_raw in
   2076  1.12  christos   *$as_nl*)
   2077  1.12  christos     ac_safe_unquote= ;;
   2078  1.12  christos   *)
   2079  1.12  christos     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   2080  1.12  christos     ac_unsafe_a="$ac_unsafe_z#~"
   2081  1.12  christos     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   2082  1.12  christos     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   2083  1.12  christos esac
   2084  1.12  christos 
   2085   1.4  christos cat >config.log <<_ACEOF
   2086   1.4  christos This file contains any messages produced by compilers while
   2087   1.4  christos running configure, to aid debugging if configure makes a mistake.
   2088   1.4  christos 
   2089  1.13  christos It was created by tcpdump $as_me 4.99.6, which was
   2090  1.12  christos generated by GNU Autoconf 2.71.  Invocation command line was
   2091   1.4  christos 
   2092  1.12  christos   $ $0$ac_configure_args_raw
   2093   1.4  christos 
   2094   1.4  christos _ACEOF
   2095   1.4  christos exec 5>>config.log
   2096   1.4  christos {
   2097   1.4  christos cat <<_ASUNAME
   2098   1.4  christos ## --------- ##
   2099   1.4  christos ## Platform. ##
   2100   1.4  christos ## --------- ##
   2101   1.4  christos 
   2102   1.4  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2103   1.4  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2104   1.4  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2105   1.4  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2106   1.4  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2107   1.4  christos 
   2108   1.4  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2109   1.4  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2110   1.4  christos 
   2111   1.4  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2112   1.4  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2113   1.4  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2114   1.4  christos /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2115   1.4  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2116   1.4  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2117   1.4  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2118   1.4  christos 
   2119   1.4  christos _ASUNAME
   2120   1.4  christos 
   2121   1.4  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2122   1.4  christos for as_dir in $PATH
   2123   1.4  christos do
   2124   1.4  christos   IFS=$as_save_IFS
   2125  1.12  christos   case $as_dir in #(((
   2126  1.12  christos     '') as_dir=./ ;;
   2127  1.12  christos     */) ;;
   2128  1.12  christos     *) as_dir=$as_dir/ ;;
   2129  1.12  christos   esac
   2130  1.12  christos     printf "%s\n" "PATH: $as_dir"
   2131   1.4  christos   done
   2132   1.4  christos IFS=$as_save_IFS
   2133   1.4  christos 
   2134   1.4  christos } >&5
   2135   1.4  christos 
   2136   1.4  christos cat >&5 <<_ACEOF
   2137   1.1  christos 
   2138   1.1  christos 
   2139   1.1  christos ## ----------- ##
   2140   1.1  christos ## Core tests. ##
   2141   1.1  christos ## ----------- ##
   2142   1.1  christos 
   2143   1.1  christos _ACEOF
   2144   1.1  christos 
   2145   1.1  christos 
   2146   1.1  christos # Keep a trace of the command line.
   2147   1.1  christos # Strip out --no-create and --no-recursion so they do not pile up.
   2148   1.1  christos # Strip out --silent because we don't want to record it for future runs.
   2149   1.1  christos # Also quote any args containing shell meta-characters.
   2150   1.1  christos # Make two passes to allow for proper duplicate-argument suppression.
   2151   1.1  christos ac_configure_args=
   2152   1.1  christos ac_configure_args0=
   2153   1.1  christos ac_configure_args1=
   2154   1.1  christos ac_must_keep_next=false
   2155   1.1  christos for ac_pass in 1 2
   2156   1.1  christos do
   2157   1.1  christos   for ac_arg
   2158   1.1  christos   do
   2159   1.1  christos     case $ac_arg in
   2160   1.1  christos     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2161   1.1  christos     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2162   1.1  christos     | -silent | --silent | --silen | --sile | --sil)
   2163   1.1  christos       continue ;;
   2164   1.1  christos     *\'*)
   2165  1.12  christos       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2166   1.1  christos     esac
   2167   1.1  christos     case $ac_pass in
   2168   1.4  christos     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2169   1.1  christos     2)
   2170   1.4  christos       as_fn_append ac_configure_args1 " '$ac_arg'"
   2171   1.1  christos       if test $ac_must_keep_next = true; then
   2172   1.1  christos 	ac_must_keep_next=false # Got value, back to normal.
   2173   1.1  christos       else
   2174   1.1  christos 	case $ac_arg in
   2175   1.1  christos 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2176   1.1  christos 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2177   1.1  christos 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2178   1.1  christos 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2179   1.1  christos 	    case "$ac_configure_args0 " in
   2180   1.1  christos 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2181   1.1  christos 	    esac
   2182   1.1  christos 	    ;;
   2183   1.1  christos 	  -* ) ac_must_keep_next=true ;;
   2184   1.1  christos 	esac
   2185   1.1  christos       fi
   2186   1.4  christos       as_fn_append ac_configure_args " '$ac_arg'"
   2187   1.1  christos       ;;
   2188   1.1  christos     esac
   2189   1.1  christos   done
   2190   1.1  christos done
   2191   1.4  christos { ac_configure_args0=; unset ac_configure_args0;}
   2192   1.4  christos { ac_configure_args1=; unset ac_configure_args1;}
   2193   1.1  christos 
   2194   1.1  christos # When interrupted or exit'd, cleanup temporary files, and complete
   2195   1.1  christos # config.log.  We remove comments because anyway the quotes in there
   2196   1.1  christos # would cause problems or look ugly.
   2197   1.1  christos # WARNING: Use '\'' to represent an apostrophe within the trap.
   2198   1.1  christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2199   1.1  christos trap 'exit_status=$?
   2200  1.12  christos   # Sanitize IFS.
   2201  1.12  christos   IFS=" ""	$as_nl"
   2202   1.1  christos   # Save into config.log some information that might help in debugging.
   2203   1.1  christos   {
   2204   1.1  christos     echo
   2205   1.1  christos 
   2206  1.12  christos     printf "%s\n" "## ---------------- ##
   2207   1.1  christos ## Cache variables. ##
   2208   1.4  christos ## ---------------- ##"
   2209   1.1  christos     echo
   2210   1.1  christos     # The following way of writing the cache mishandles newlines in values,
   2211   1.1  christos (
   2212   1.1  christos   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2213   1.1  christos     eval ac_val=\$$ac_var
   2214   1.1  christos     case $ac_val in #(
   2215   1.1  christos     *${as_nl}*)
   2216   1.1  christos       case $ac_var in #(
   2217  1.12  christos       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2218  1.12  christos printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2219   1.1  christos       esac
   2220   1.1  christos       case $ac_var in #(
   2221   1.1  christos       _ | IFS | as_nl) ;; #(
   2222   1.4  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2223   1.4  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   2224   1.1  christos       esac ;;
   2225   1.1  christos     esac
   2226   1.1  christos   done
   2227   1.1  christos   (set) 2>&1 |
   2228   1.1  christos     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2229   1.1  christos     *${as_nl}ac_space=\ *)
   2230   1.1  christos       sed -n \
   2231   1.1  christos 	"s/'\''/'\''\\\\'\'''\''/g;
   2232   1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2233   1.1  christos       ;; #(
   2234   1.1  christos     *)
   2235   1.1  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2236   1.1  christos       ;;
   2237   1.1  christos     esac |
   2238   1.1  christos     sort
   2239   1.1  christos )
   2240   1.1  christos     echo
   2241   1.1  christos 
   2242  1.12  christos     printf "%s\n" "## ----------------- ##
   2243   1.1  christos ## Output variables. ##
   2244   1.4  christos ## ----------------- ##"
   2245   1.1  christos     echo
   2246   1.1  christos     for ac_var in $ac_subst_vars
   2247   1.1  christos     do
   2248   1.1  christos       eval ac_val=\$$ac_var
   2249   1.1  christos       case $ac_val in
   2250  1.12  christos       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2251   1.1  christos       esac
   2252  1.12  christos       printf "%s\n" "$ac_var='\''$ac_val'\''"
   2253   1.1  christos     done | sort
   2254   1.1  christos     echo
   2255   1.1  christos 
   2256   1.1  christos     if test -n "$ac_subst_files"; then
   2257  1.12  christos       printf "%s\n" "## ------------------- ##
   2258   1.1  christos ## File substitutions. ##
   2259   1.4  christos ## ------------------- ##"
   2260   1.1  christos       echo
   2261   1.1  christos       for ac_var in $ac_subst_files
   2262   1.1  christos       do
   2263   1.1  christos 	eval ac_val=\$$ac_var
   2264   1.1  christos 	case $ac_val in
   2265  1.12  christos 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2266   1.1  christos 	esac
   2267  1.12  christos 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   2268   1.1  christos       done | sort
   2269   1.1  christos       echo
   2270   1.1  christos     fi
   2271   1.1  christos 
   2272   1.1  christos     if test -s confdefs.h; then
   2273  1.12  christos       printf "%s\n" "## ----------- ##
   2274   1.1  christos ## confdefs.h. ##
   2275   1.4  christos ## ----------- ##"
   2276   1.1  christos       echo
   2277   1.1  christos       cat confdefs.h
   2278   1.1  christos       echo
   2279   1.1  christos     fi
   2280   1.1  christos     test "$ac_signal" != 0 &&
   2281  1.12  christos       printf "%s\n" "$as_me: caught signal $ac_signal"
   2282  1.12  christos     printf "%s\n" "$as_me: exit $exit_status"
   2283   1.1  christos   } >&5
   2284   1.1  christos   rm -f core *.core core.conftest.* &&
   2285   1.1  christos     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2286   1.1  christos     exit $exit_status
   2287   1.1  christos ' 0
   2288   1.1  christos for ac_signal in 1 2 13 15; do
   2289   1.4  christos   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2290   1.1  christos done
   2291   1.1  christos ac_signal=0
   2292   1.1  christos 
   2293   1.1  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2294   1.1  christos rm -f -r conftest* confdefs.h
   2295   1.1  christos 
   2296  1.12  christos printf "%s\n" "/* confdefs.h */" > confdefs.h
   2297   1.4  christos 
   2298   1.1  christos # Predefined preprocessor variables.
   2299   1.1  christos 
   2300  1.12  christos printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2301   1.1  christos 
   2302  1.12  christos printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2303   1.1  christos 
   2304  1.12  christos printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2305   1.1  christos 
   2306  1.12  christos printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2307   1.1  christos 
   2308  1.12  christos printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2309   1.1  christos 
   2310  1.12  christos printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2311   1.1  christos 
   2312   1.1  christos 
   2313   1.1  christos # Let the site file select an alternate cache file if it wants to.
   2314   1.4  christos # Prefer an explicitly selected file to automatically selected ones.
   2315   1.1  christos if test -n "$CONFIG_SITE"; then
   2316  1.12  christos   ac_site_files="$CONFIG_SITE"
   2317   1.1  christos elif test "x$prefix" != xNONE; then
   2318  1.12  christos   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2319   1.1  christos else
   2320  1.12  christos   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2321   1.1  christos fi
   2322  1.12  christos 
   2323  1.12  christos for ac_site_file in $ac_site_files
   2324   1.1  christos do
   2325  1.12  christos   case $ac_site_file in #(
   2326  1.12  christos   */*) :
   2327  1.12  christos      ;; #(
   2328  1.12  christos   *) :
   2329  1.12  christos     ac_site_file=./$ac_site_file ;;
   2330  1.12  christos esac
   2331  1.12  christos   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2332  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2333  1.12  christos printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2334   1.1  christos     sed 's/^/| /' "$ac_site_file" >&5
   2335   1.4  christos     . "$ac_site_file" \
   2336  1.12  christos       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2337  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2338   1.4  christos as_fn_error $? "failed to load site script $ac_site_file
   2339   1.4  christos See \`config.log' for more details" "$LINENO" 5; }
   2340   1.1  christos   fi
   2341   1.1  christos done
   2342   1.1  christos 
   2343   1.1  christos if test -r "$cache_file"; then
   2344   1.4  christos   # Some versions of bash will fail to source /dev/null (special files
   2345   1.4  christos   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2346   1.4  christos   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2347  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2348  1.12  christos printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2349   1.1  christos     case $cache_file in
   2350   1.1  christos       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2351   1.1  christos       *)                      . "./$cache_file";;
   2352   1.1  christos     esac
   2353   1.1  christos   fi
   2354   1.1  christos else
   2355  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2356  1.12  christos printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2357   1.1  christos   >$cache_file
   2358   1.1  christos fi
   2359   1.1  christos 
   2360  1.12  christos # Test code for whether the C compiler supports C89 (global declarations)
   2361  1.12  christos ac_c_conftest_c89_globals='
   2362  1.12  christos /* Does the compiler advertise C89 conformance?
   2363  1.12  christos    Do not test the value of __STDC__, because some compilers set it to 0
   2364  1.12  christos    while being otherwise adequately conformant. */
   2365  1.12  christos #if !defined __STDC__
   2366  1.12  christos # error "Compiler does not advertise C89 conformance"
   2367  1.12  christos #endif
   2368  1.12  christos 
   2369  1.12  christos #include <stddef.h>
   2370  1.12  christos #include <stdarg.h>
   2371  1.12  christos struct stat;
   2372  1.12  christos /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2373  1.12  christos struct buf { int x; };
   2374  1.12  christos struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2375  1.12  christos static char *e (p, i)
   2376  1.12  christos      char **p;
   2377  1.12  christos      int i;
   2378  1.12  christos {
   2379  1.12  christos   return p[i];
   2380  1.12  christos }
   2381  1.12  christos static char *f (char * (*g) (char **, int), char **p, ...)
   2382  1.12  christos {
   2383  1.12  christos   char *s;
   2384  1.12  christos   va_list v;
   2385  1.12  christos   va_start (v,p);
   2386  1.12  christos   s = g (p, va_arg (v,int));
   2387  1.12  christos   va_end (v);
   2388  1.12  christos   return s;
   2389  1.12  christos }
   2390  1.12  christos 
   2391  1.12  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2392  1.12  christos    function prototypes and stuff, but not \xHH hex character constants.
   2393  1.12  christos    These do not provoke an error unfortunately, instead are silently treated
   2394  1.12  christos    as an "x".  The following induces an error, until -std is added to get
   2395  1.12  christos    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2396  1.12  christos    array size at least.  It is necessary to write \x00 == 0 to get something
   2397  1.12  christos    that is true only with -std.  */
   2398  1.12  christos int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2399  1.12  christos 
   2400  1.12  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2401  1.12  christos    inside strings and character constants.  */
   2402  1.12  christos #define FOO(x) '\''x'\''
   2403  1.12  christos int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2404  1.12  christos 
   2405  1.12  christos int test (int i, double x);
   2406  1.12  christos struct s1 {int (*f) (int a);};
   2407  1.12  christos struct s2 {int (*f) (double a);};
   2408  1.12  christos int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2409  1.12  christos                int, int);'
   2410  1.12  christos 
   2411  1.12  christos # Test code for whether the C compiler supports C89 (body of main).
   2412  1.12  christos ac_c_conftest_c89_main='
   2413  1.12  christos ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2414  1.12  christos '
   2415  1.12  christos 
   2416  1.12  christos # Test code for whether the C compiler supports C99 (global declarations)
   2417  1.12  christos ac_c_conftest_c99_globals='
   2418  1.12  christos // Does the compiler advertise C99 conformance?
   2419  1.12  christos #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2420  1.12  christos # error "Compiler does not advertise C99 conformance"
   2421  1.12  christos #endif
   2422  1.12  christos 
   2423  1.12  christos #include <stdbool.h>
   2424  1.12  christos extern int puts (const char *);
   2425  1.12  christos extern int printf (const char *, ...);
   2426  1.12  christos extern int dprintf (int, const char *, ...);
   2427  1.12  christos extern void *malloc (size_t);
   2428  1.12  christos 
   2429  1.12  christos // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2430  1.12  christos // dprintf is used instead of fprintf to avoid needing to declare
   2431  1.12  christos // FILE and stderr.
   2432  1.12  christos #define debug(...) dprintf (2, __VA_ARGS__)
   2433  1.12  christos #define showlist(...) puts (#__VA_ARGS__)
   2434  1.12  christos #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2435  1.12  christos static void
   2436  1.12  christos test_varargs_macros (void)
   2437  1.12  christos {
   2438  1.12  christos   int x = 1234;
   2439  1.12  christos   int y = 5678;
   2440  1.12  christos   debug ("Flag");
   2441  1.12  christos   debug ("X = %d\n", x);
   2442  1.12  christos   showlist (The first, second, and third items.);
   2443  1.12  christos   report (x>y, "x is %d but y is %d", x, y);
   2444  1.12  christos }
   2445  1.12  christos 
   2446  1.12  christos // Check long long types.
   2447  1.12  christos #define BIG64 18446744073709551615ull
   2448  1.12  christos #define BIG32 4294967295ul
   2449  1.12  christos #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2450  1.12  christos #if !BIG_OK
   2451  1.12  christos   #error "your preprocessor is broken"
   2452  1.12  christos #endif
   2453  1.12  christos #if BIG_OK
   2454  1.12  christos #else
   2455  1.12  christos   #error "your preprocessor is broken"
   2456  1.12  christos #endif
   2457  1.12  christos static long long int bignum = -9223372036854775807LL;
   2458  1.12  christos static unsigned long long int ubignum = BIG64;
   2459  1.12  christos 
   2460  1.12  christos struct incomplete_array
   2461  1.12  christos {
   2462  1.12  christos   int datasize;
   2463  1.12  christos   double data[];
   2464  1.12  christos };
   2465  1.12  christos 
   2466  1.12  christos struct named_init {
   2467  1.12  christos   int number;
   2468  1.12  christos   const wchar_t *name;
   2469  1.12  christos   double average;
   2470  1.12  christos };
   2471  1.12  christos 
   2472  1.12  christos typedef const char *ccp;
   2473  1.12  christos 
   2474  1.12  christos static inline int
   2475  1.12  christos test_restrict (ccp restrict text)
   2476  1.12  christos {
   2477  1.12  christos   // See if C++-style comments work.
   2478  1.12  christos   // Iterate through items via the restricted pointer.
   2479  1.12  christos   // Also check for declarations in for loops.
   2480  1.12  christos   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2481  1.12  christos     continue;
   2482  1.12  christos   return 0;
   2483  1.12  christos }
   2484  1.12  christos 
   2485  1.12  christos // Check varargs and va_copy.
   2486  1.12  christos static bool
   2487  1.12  christos test_varargs (const char *format, ...)
   2488  1.12  christos {
   2489  1.12  christos   va_list args;
   2490  1.12  christos   va_start (args, format);
   2491  1.12  christos   va_list args_copy;
   2492  1.12  christos   va_copy (args_copy, args);
   2493  1.12  christos 
   2494  1.12  christos   const char *str = "";
   2495  1.12  christos   int number = 0;
   2496  1.12  christos   float fnumber = 0;
   2497  1.12  christos 
   2498  1.12  christos   while (*format)
   2499  1.12  christos     {
   2500  1.12  christos       switch (*format++)
   2501  1.12  christos 	{
   2502  1.12  christos 	case '\''s'\'': // string
   2503  1.12  christos 	  str = va_arg (args_copy, const char *);
   2504  1.12  christos 	  break;
   2505  1.12  christos 	case '\''d'\'': // int
   2506  1.12  christos 	  number = va_arg (args_copy, int);
   2507  1.12  christos 	  break;
   2508  1.12  christos 	case '\''f'\'': // float
   2509  1.12  christos 	  fnumber = va_arg (args_copy, double);
   2510  1.12  christos 	  break;
   2511  1.12  christos 	default:
   2512  1.12  christos 	  break;
   2513  1.12  christos 	}
   2514  1.12  christos     }
   2515  1.12  christos   va_end (args_copy);
   2516  1.12  christos   va_end (args);
   2517  1.12  christos 
   2518  1.12  christos   return *str && number && fnumber;
   2519  1.12  christos }
   2520  1.12  christos '
   2521  1.12  christos 
   2522  1.12  christos # Test code for whether the C compiler supports C99 (body of main).
   2523  1.12  christos ac_c_conftest_c99_main='
   2524  1.12  christos   // Check bool.
   2525  1.12  christos   _Bool success = false;
   2526  1.12  christos   success |= (argc != 0);
   2527  1.12  christos 
   2528  1.12  christos   // Check restrict.
   2529  1.12  christos   if (test_restrict ("String literal") == 0)
   2530  1.12  christos     success = true;
   2531  1.12  christos   char *restrict newvar = "Another string";
   2532  1.12  christos 
   2533  1.12  christos   // Check varargs.
   2534  1.12  christos   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2535  1.12  christos   test_varargs_macros ();
   2536  1.12  christos 
   2537  1.12  christos   // Check flexible array members.
   2538  1.12  christos   struct incomplete_array *ia =
   2539  1.12  christos     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2540  1.12  christos   ia->datasize = 10;
   2541  1.12  christos   for (int i = 0; i < ia->datasize; ++i)
   2542  1.12  christos     ia->data[i] = i * 1.234;
   2543  1.12  christos 
   2544  1.12  christos   // Check named initializers.
   2545  1.12  christos   struct named_init ni = {
   2546  1.12  christos     .number = 34,
   2547  1.12  christos     .name = L"Test wide string",
   2548  1.12  christos     .average = 543.34343,
   2549  1.12  christos   };
   2550  1.12  christos 
   2551  1.12  christos   ni.number = 58;
   2552  1.12  christos 
   2553  1.12  christos   int dynamic_array[ni.number];
   2554  1.12  christos   dynamic_array[0] = argv[0][0];
   2555  1.12  christos   dynamic_array[ni.number - 1] = 543;
   2556  1.12  christos 
   2557  1.12  christos   // work around unused variable warnings
   2558  1.12  christos   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2559  1.12  christos 	 || dynamic_array[ni.number - 1] != 543);
   2560  1.12  christos '
   2561  1.12  christos 
   2562  1.12  christos # Test code for whether the C compiler supports C11 (global declarations)
   2563  1.12  christos ac_c_conftest_c11_globals='
   2564  1.12  christos // Does the compiler advertise C11 conformance?
   2565  1.12  christos #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2566  1.12  christos # error "Compiler does not advertise C11 conformance"
   2567  1.12  christos #endif
   2568  1.12  christos 
   2569  1.12  christos // Check _Alignas.
   2570  1.12  christos char _Alignas (double) aligned_as_double;
   2571  1.12  christos char _Alignas (0) no_special_alignment;
   2572  1.12  christos extern char aligned_as_int;
   2573  1.12  christos char _Alignas (0) _Alignas (int) aligned_as_int;
   2574  1.12  christos 
   2575  1.12  christos // Check _Alignof.
   2576  1.12  christos enum
   2577  1.12  christos {
   2578  1.12  christos   int_alignment = _Alignof (int),
   2579  1.12  christos   int_array_alignment = _Alignof (int[100]),
   2580  1.12  christos   char_alignment = _Alignof (char)
   2581  1.12  christos };
   2582  1.12  christos _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2583  1.12  christos 
   2584  1.12  christos // Check _Noreturn.
   2585  1.12  christos int _Noreturn does_not_return (void) { for (;;) continue; }
   2586  1.12  christos 
   2587  1.12  christos // Check _Static_assert.
   2588  1.12  christos struct test_static_assert
   2589  1.12  christos {
   2590  1.12  christos   int x;
   2591  1.12  christos   _Static_assert (sizeof (int) <= sizeof (long int),
   2592  1.12  christos                   "_Static_assert does not work in struct");
   2593  1.12  christos   long int y;
   2594  1.12  christos };
   2595  1.12  christos 
   2596  1.12  christos // Check UTF-8 literals.
   2597  1.12  christos #define u8 syntax error!
   2598  1.12  christos char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2599  1.12  christos 
   2600  1.12  christos // Check duplicate typedefs.
   2601  1.12  christos typedef long *long_ptr;
   2602  1.12  christos typedef long int *long_ptr;
   2603  1.12  christos typedef long_ptr long_ptr;
   2604  1.12  christos 
   2605  1.12  christos // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2606  1.12  christos struct anonymous
   2607  1.12  christos {
   2608  1.12  christos   union {
   2609  1.12  christos     struct { int i; int j; };
   2610  1.12  christos     struct { int k; long int l; } w;
   2611  1.12  christos   };
   2612  1.12  christos   int m;
   2613  1.12  christos } v1;
   2614  1.12  christos '
   2615  1.12  christos 
   2616  1.12  christos # Test code for whether the C compiler supports C11 (body of main).
   2617  1.12  christos ac_c_conftest_c11_main='
   2618  1.12  christos   _Static_assert ((offsetof (struct anonymous, i)
   2619  1.12  christos 		   == offsetof (struct anonymous, w.k)),
   2620  1.12  christos 		  "Anonymous union alignment botch");
   2621  1.12  christos   v1.i = 2;
   2622  1.12  christos   v1.w.k = 5;
   2623  1.12  christos   ok |= v1.i != 5;
   2624  1.12  christos '
   2625  1.12  christos 
   2626  1.12  christos # Test code for whether the C compiler supports C11 (complete).
   2627  1.12  christos ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2628  1.12  christos ${ac_c_conftest_c99_globals}
   2629  1.12  christos ${ac_c_conftest_c11_globals}
   2630  1.12  christos 
   2631  1.12  christos int
   2632  1.12  christos main (int argc, char **argv)
   2633  1.12  christos {
   2634  1.12  christos   int ok = 0;
   2635  1.12  christos   ${ac_c_conftest_c89_main}
   2636  1.12  christos   ${ac_c_conftest_c99_main}
   2637  1.12  christos   ${ac_c_conftest_c11_main}
   2638  1.12  christos   return ok;
   2639  1.12  christos }
   2640  1.12  christos "
   2641  1.12  christos 
   2642  1.12  christos # Test code for whether the C compiler supports C99 (complete).
   2643  1.12  christos ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2644  1.12  christos ${ac_c_conftest_c99_globals}
   2645  1.12  christos 
   2646  1.12  christos int
   2647  1.12  christos main (int argc, char **argv)
   2648  1.12  christos {
   2649  1.12  christos   int ok = 0;
   2650  1.12  christos   ${ac_c_conftest_c89_main}
   2651  1.12  christos   ${ac_c_conftest_c99_main}
   2652  1.12  christos   return ok;
   2653  1.12  christos }
   2654  1.12  christos "
   2655  1.12  christos 
   2656  1.12  christos # Test code for whether the C compiler supports C89 (complete).
   2657  1.12  christos ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2658  1.12  christos 
   2659  1.12  christos int
   2660  1.12  christos main (int argc, char **argv)
   2661  1.12  christos {
   2662  1.12  christos   int ok = 0;
   2663  1.12  christos   ${ac_c_conftest_c89_main}
   2664  1.12  christos   return ok;
   2665  1.12  christos }
   2666  1.12  christos "
   2667  1.12  christos 
   2668  1.12  christos as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2669  1.12  christos as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2670  1.12  christos as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2671  1.12  christos as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2672  1.12  christos as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2673  1.12  christos as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2674  1.12  christos as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2675  1.12  christos as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2676  1.12  christos as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2677  1.12  christos 
   2678  1.12  christos # Auxiliary files required by this configure script.
   2679  1.12  christos ac_aux_files="install-sh config.guess config.sub"
   2680  1.12  christos 
   2681  1.12  christos # Locations in which to look for auxiliary files.
   2682  1.12  christos ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
   2683  1.12  christos 
   2684  1.12  christos # Search for a directory containing all of the required auxiliary files,
   2685  1.12  christos # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   2686  1.12  christos # If we don't find one directory that contains all the files we need,
   2687  1.12  christos # we report the set of missing files from the *first* directory in
   2688  1.12  christos # $ac_aux_dir_candidates and give up.
   2689  1.12  christos ac_missing_aux_files=""
   2690  1.12  christos ac_first_candidate=:
   2691  1.12  christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   2692  1.12  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2693  1.12  christos as_found=false
   2694  1.12  christos for as_dir in $ac_aux_dir_candidates
   2695  1.12  christos do
   2696  1.12  christos   IFS=$as_save_IFS
   2697  1.12  christos   case $as_dir in #(((
   2698  1.12  christos     '') as_dir=./ ;;
   2699  1.12  christos     */) ;;
   2700  1.12  christos     *) as_dir=$as_dir/ ;;
   2701  1.12  christos   esac
   2702  1.12  christos   as_found=:
   2703  1.12  christos 
   2704  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   2705  1.12  christos   ac_aux_dir_found=yes
   2706  1.12  christos   ac_install_sh=
   2707  1.12  christos   for ac_aux in $ac_aux_files
   2708  1.12  christos   do
   2709  1.12  christos     # As a special case, if "install-sh" is required, that requirement
   2710  1.12  christos     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   2711  1.12  christos     # and $ac_install_sh is set appropriately for whichever one is found.
   2712  1.12  christos     if test x"$ac_aux" = x"install-sh"
   2713  1.12  christos     then
   2714  1.12  christos       if test -f "${as_dir}install-sh"; then
   2715  1.12  christos         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   2716  1.12  christos         ac_install_sh="${as_dir}install-sh -c"
   2717  1.12  christos       elif test -f "${as_dir}install.sh"; then
   2718  1.12  christos         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   2719  1.12  christos         ac_install_sh="${as_dir}install.sh -c"
   2720  1.12  christos       elif test -f "${as_dir}shtool"; then
   2721  1.12  christos         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   2722  1.12  christos         ac_install_sh="${as_dir}shtool install -c"
   2723  1.12  christos       else
   2724  1.12  christos         ac_aux_dir_found=no
   2725  1.12  christos         if $ac_first_candidate; then
   2726  1.12  christos           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   2727  1.12  christos         else
   2728  1.12  christos           break
   2729  1.12  christos         fi
   2730  1.12  christos       fi
   2731  1.12  christos     else
   2732  1.12  christos       if test -f "${as_dir}${ac_aux}"; then
   2733  1.12  christos         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   2734  1.12  christos       else
   2735  1.12  christos         ac_aux_dir_found=no
   2736  1.12  christos         if $ac_first_candidate; then
   2737  1.12  christos           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   2738  1.12  christos         else
   2739  1.12  christos           break
   2740  1.12  christos         fi
   2741  1.12  christos       fi
   2742  1.12  christos     fi
   2743  1.12  christos   done
   2744  1.12  christos   if test "$ac_aux_dir_found" = yes; then
   2745  1.12  christos     ac_aux_dir="$as_dir"
   2746  1.12  christos     break
   2747  1.12  christos   fi
   2748  1.12  christos   ac_first_candidate=false
   2749  1.12  christos 
   2750  1.12  christos   as_found=false
   2751  1.12  christos done
   2752  1.12  christos IFS=$as_save_IFS
   2753  1.12  christos if $as_found
   2754  1.12  christos then :
   2755  1.12  christos 
   2756  1.12  christos else $as_nop
   2757  1.12  christos   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
   2758  1.12  christos fi
   2759  1.12  christos 
   2760  1.12  christos 
   2761  1.12  christos # These three variables are undocumented and unsupported,
   2762  1.12  christos # and are intended to be withdrawn in a future Autoconf release.
   2763  1.12  christos # They can cause serious problems if a builder's source tree is in a directory
   2764  1.12  christos # whose full name contains unusual characters.
   2765  1.12  christos if test -f "${ac_aux_dir}config.guess"; then
   2766  1.12  christos   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   2767  1.12  christos fi
   2768  1.12  christos if test -f "${ac_aux_dir}config.sub"; then
   2769  1.12  christos   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   2770  1.12  christos fi
   2771  1.12  christos if test -f "$ac_aux_dir/configure"; then
   2772  1.12  christos   ac_configure="$SHELL ${ac_aux_dir}configure"
   2773  1.12  christos fi
   2774  1.12  christos 
   2775   1.1  christos # Check that the precious variables saved in the cache have kept the same
   2776   1.1  christos # value.
   2777   1.1  christos ac_cache_corrupted=false
   2778   1.1  christos for ac_var in $ac_precious_vars; do
   2779   1.1  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2780   1.1  christos   eval ac_new_set=\$ac_env_${ac_var}_set
   2781   1.1  christos   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2782   1.1  christos   eval ac_new_val=\$ac_env_${ac_var}_value
   2783   1.1  christos   case $ac_old_set,$ac_new_set in
   2784   1.1  christos     set,)
   2785  1.12  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2786  1.12  christos printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2787   1.1  christos       ac_cache_corrupted=: ;;
   2788   1.1  christos     ,set)
   2789  1.12  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2790  1.12  christos printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2791   1.1  christos       ac_cache_corrupted=: ;;
   2792   1.1  christos     ,);;
   2793   1.1  christos     *)
   2794   1.1  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
   2795   1.4  christos 	# differences in whitespace do not lead to failure.
   2796   1.4  christos 	ac_old_val_w=`echo x $ac_old_val`
   2797   1.4  christos 	ac_new_val_w=`echo x $ac_new_val`
   2798   1.4  christos 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2799  1.12  christos 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2800  1.12  christos printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2801   1.4  christos 	  ac_cache_corrupted=:
   2802   1.4  christos 	else
   2803  1.12  christos 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2804  1.12  christos printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2805   1.4  christos 	  eval $ac_var=\$ac_old_val
   2806   1.4  christos 	fi
   2807  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2808  1.12  christos printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2809  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2810  1.12  christos printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
   2811   1.1  christos       fi;;
   2812   1.1  christos   esac
   2813   1.1  christos   # Pass precious variables to config.status.
   2814   1.1  christos   if test "$ac_new_set" = set; then
   2815   1.1  christos     case $ac_new_val in
   2816  1.12  christos     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2817   1.1  christos     *) ac_arg=$ac_var=$ac_new_val ;;
   2818   1.1  christos     esac
   2819   1.1  christos     case " $ac_configure_args " in
   2820   1.1  christos       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2821   1.4  christos       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2822   1.1  christos     esac
   2823   1.1  christos   fi
   2824   1.1  christos done
   2825   1.1  christos if $ac_cache_corrupted; then
   2826  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2827  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2828  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2829  1.12  christos printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   2830  1.12  christos   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
   2831  1.12  christos 	    and start over" "$LINENO" 5
   2832   1.4  christos fi
   2833   1.4  christos ## -------------------- ##
   2834   1.4  christos ## Main body of script. ##
   2835   1.4  christos ## -------------------- ##
   2836   1.1  christos 
   2837   1.1  christos ac_ext=c
   2838   1.1  christos ac_cpp='$CPP $CPPFLAGS'
   2839   1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2840   1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2841   1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2842   1.1  christos 
   2843   1.1  christos 
   2844   1.1  christos 
   2845  1.11  christos 
   2846   1.1  christos 
   2847   1.1  christos 
   2848   1.1  christos 
   2849  1.12  christos   # Make sure we can run config.sub.
   2850  1.12  christos $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   2851  1.12  christos   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   2852  1.12  christos 
   2853  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2854  1.12  christos printf %s "checking build system type... " >&6; }
   2855  1.12  christos if test ${ac_cv_build+y}
   2856  1.12  christos then :
   2857  1.12  christos   printf %s "(cached) " >&6
   2858  1.12  christos else $as_nop
   2859   1.1  christos   ac_build_alias=$build_alias
   2860   1.1  christos test "x$ac_build_alias" = x &&
   2861  1.12  christos   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   2862   1.1  christos test "x$ac_build_alias" = x &&
   2863   1.4  christos   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2864  1.12  christos ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   2865  1.12  christos   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   2866   1.1  christos 
   2867   1.1  christos fi
   2868  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2869  1.12  christos printf "%s\n" "$ac_cv_build" >&6; }
   2870   1.1  christos case $ac_cv_build in
   2871   1.1  christos *-*-*) ;;
   2872   1.4  christos *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2873   1.1  christos esac
   2874   1.1  christos build=$ac_cv_build
   2875   1.1  christos ac_save_IFS=$IFS; IFS='-'
   2876   1.1  christos set x $ac_cv_build
   2877   1.1  christos shift
   2878   1.1  christos build_cpu=$1
   2879   1.1  christos build_vendor=$2
   2880   1.1  christos shift; shift
   2881   1.1  christos # Remember, the first character of IFS is used to create $*,
   2882   1.1  christos # except with old shells:
   2883   1.1  christos build_os=$*
   2884   1.1  christos IFS=$ac_save_IFS
   2885   1.1  christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2886   1.1  christos 
   2887   1.1  christos 
   2888  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2889  1.12  christos printf %s "checking host system type... " >&6; }
   2890  1.12  christos if test ${ac_cv_host+y}
   2891  1.12  christos then :
   2892  1.12  christos   printf %s "(cached) " >&6
   2893  1.12  christos else $as_nop
   2894   1.1  christos   if test "x$host_alias" = x; then
   2895   1.1  christos   ac_cv_host=$ac_cv_build
   2896   1.1  christos else
   2897  1.12  christos   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   2898  1.12  christos     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   2899   1.1  christos fi
   2900   1.1  christos 
   2901   1.1  christos fi
   2902  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2903  1.12  christos printf "%s\n" "$ac_cv_host" >&6; }
   2904   1.1  christos case $ac_cv_host in
   2905   1.1  christos *-*-*) ;;
   2906   1.4  christos *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2907   1.1  christos esac
   2908   1.1  christos host=$ac_cv_host
   2909   1.1  christos ac_save_IFS=$IFS; IFS='-'
   2910   1.1  christos set x $ac_cv_host
   2911   1.1  christos shift
   2912   1.1  christos host_cpu=$1
   2913   1.1  christos host_vendor=$2
   2914   1.1  christos shift; shift
   2915   1.1  christos # Remember, the first character of IFS is used to create $*,
   2916   1.1  christos # except with old shells:
   2917   1.1  christos host_os=$*
   2918   1.1  christos IFS=$ac_save_IFS
   2919   1.1  christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2920   1.1  christos 
   2921   1.1  christos 
   2922   1.1  christos 
   2923   1.1  christos 
   2924   1.1  christos 
   2925   1.1  christos 
   2926   1.1  christos 
   2927   1.1  christos 
   2928   1.1  christos # Check whether --with-gcc was given.
   2929  1.12  christos if test ${with_gcc+y}
   2930  1.12  christos then :
   2931   1.1  christos   withval=$with_gcc;
   2932   1.1  christos fi
   2933   1.1  christos 
   2934   1.1  christos     V_INCLS=""
   2935   1.1  christos     if test "${srcdir}" != "." ; then
   2936   1.3  christos 	    V_INCLS="-I$srcdir"
   2937   1.1  christos     fi
   2938   1.1  christos     if test "${CFLAGS+set}" = set; then
   2939   1.1  christos 	    LBL_CFLAGS="$CFLAGS"
   2940   1.1  christos     fi
   2941   1.1  christos     if test -z "$CC" ; then
   2942   1.1  christos 	    case "$host_os" in
   2943   1.1  christos 
   2944   1.1  christos 	    bsdi*)
   2945   1.1  christos 		    # Extract the first word of "shlicc2", so it can be a program name with args.
   2946   1.1  christos set dummy shlicc2; ac_word=$2
   2947  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2948  1.12  christos printf %s "checking for $ac_word... " >&6; }
   2949  1.12  christos if test ${ac_cv_prog_SHLICC2+y}
   2950  1.12  christos then :
   2951  1.12  christos   printf %s "(cached) " >&6
   2952  1.12  christos else $as_nop
   2953   1.1  christos   if test -n "$SHLICC2"; then
   2954   1.1  christos   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
   2955   1.1  christos else
   2956   1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2957   1.1  christos for as_dir in $PATH
   2958   1.1  christos do
   2959   1.1  christos   IFS=$as_save_IFS
   2960  1.12  christos   case $as_dir in #(((
   2961  1.12  christos     '') as_dir=./ ;;
   2962  1.12  christos     */) ;;
   2963  1.12  christos     *) as_dir=$as_dir/ ;;
   2964  1.12  christos   esac
   2965   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2966  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2967   1.1  christos     ac_cv_prog_SHLICC2="yes"
   2968  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2969   1.1  christos     break 2
   2970   1.1  christos   fi
   2971   1.1  christos done
   2972   1.4  christos   done
   2973   1.1  christos IFS=$as_save_IFS
   2974   1.1  christos 
   2975   1.1  christos   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
   2976   1.1  christos fi
   2977   1.1  christos fi
   2978   1.1  christos SHLICC2=$ac_cv_prog_SHLICC2
   2979   1.1  christos if test -n "$SHLICC2"; then
   2980  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
   2981  1.12  christos printf "%s\n" "$SHLICC2" >&6; }
   2982   1.1  christos else
   2983  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2984  1.12  christos printf "%s\n" "no" >&6; }
   2985   1.1  christos fi
   2986   1.1  christos 
   2987   1.1  christos 
   2988   1.1  christos 		    if test $SHLICC2 = yes ; then
   2989   1.1  christos 			    CC=shlicc2
   2990   1.1  christos 			    export CC
   2991   1.1  christos 		    fi
   2992   1.1  christos 		    ;;
   2993   1.1  christos 	    esac
   2994   1.1  christos     fi
   2995   1.1  christos     if test -z "$CC" -a "$with_gcc" = no ; then
   2996   1.1  christos 	    CC=cc
   2997   1.1  christos 	    export CC
   2998   1.1  christos     fi
   2999   1.1  christos 
   3000  1.11  christos #
   3001  1.11  christos # Try to enable as many C99 features as we can.
   3002  1.11  christos # At minimum, we want C++/C99-style // comments.
   3003  1.11  christos #
   3004  1.12  christos 
   3005  1.12  christos 
   3006  1.12  christos 
   3007  1.12  christos 
   3008  1.12  christos 
   3009  1.12  christos 
   3010  1.12  christos 
   3011  1.12  christos 
   3012  1.12  christos 
   3013   1.1  christos ac_ext=c
   3014   1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3015   1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3016   1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3017   1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3018   1.1  christos if test -n "$ac_tool_prefix"; then
   3019   1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3020   1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3021  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3022  1.12  christos printf %s "checking for $ac_word... " >&6; }
   3023  1.12  christos if test ${ac_cv_prog_CC+y}
   3024  1.12  christos then :
   3025  1.12  christos   printf %s "(cached) " >&6
   3026  1.12  christos else $as_nop
   3027   1.1  christos   if test -n "$CC"; then
   3028   1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3029   1.1  christos else
   3030   1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3031   1.1  christos for as_dir in $PATH
   3032   1.1  christos do
   3033   1.1  christos   IFS=$as_save_IFS
   3034  1.12  christos   case $as_dir in #(((
   3035  1.12  christos     '') as_dir=./ ;;
   3036  1.12  christos     */) ;;
   3037  1.12  christos     *) as_dir=$as_dir/ ;;
   3038  1.12  christos   esac
   3039   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3040  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3041   1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3042  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3043   1.1  christos     break 2
   3044   1.1  christos   fi
   3045   1.1  christos done
   3046   1.4  christos   done
   3047   1.1  christos IFS=$as_save_IFS
   3048   1.1  christos 
   3049   1.1  christos fi
   3050   1.1  christos fi
   3051   1.1  christos CC=$ac_cv_prog_CC
   3052   1.1  christos if test -n "$CC"; then
   3053  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3054  1.12  christos printf "%s\n" "$CC" >&6; }
   3055   1.1  christos else
   3056  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3057  1.12  christos printf "%s\n" "no" >&6; }
   3058   1.1  christos fi
   3059   1.1  christos 
   3060   1.1  christos 
   3061   1.1  christos fi
   3062   1.1  christos if test -z "$ac_cv_prog_CC"; then
   3063   1.1  christos   ac_ct_CC=$CC
   3064   1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   3065   1.1  christos set dummy gcc; ac_word=$2
   3066  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3067  1.12  christos printf %s "checking for $ac_word... " >&6; }
   3068  1.12  christos if test ${ac_cv_prog_ac_ct_CC+y}
   3069  1.12  christos then :
   3070  1.12  christos   printf %s "(cached) " >&6
   3071  1.12  christos else $as_nop
   3072   1.1  christos   if test -n "$ac_ct_CC"; then
   3073   1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3074   1.1  christos else
   3075   1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3076   1.1  christos for as_dir in $PATH
   3077   1.1  christos do
   3078   1.1  christos   IFS=$as_save_IFS
   3079  1.12  christos   case $as_dir in #(((
   3080  1.12  christos     '') as_dir=./ ;;
   3081  1.12  christos     */) ;;
   3082  1.12  christos     *) as_dir=$as_dir/ ;;
   3083  1.12  christos   esac
   3084   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3085  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3086   1.1  christos     ac_cv_prog_ac_ct_CC="gcc"
   3087  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3088   1.1  christos     break 2
   3089   1.1  christos   fi
   3090   1.1  christos done
   3091   1.4  christos   done
   3092   1.1  christos IFS=$as_save_IFS
   3093   1.1  christos 
   3094   1.1  christos fi
   3095   1.1  christos fi
   3096   1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3097   1.1  christos if test -n "$ac_ct_CC"; then
   3098  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3099  1.12  christos printf "%s\n" "$ac_ct_CC" >&6; }
   3100   1.1  christos else
   3101  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3102  1.12  christos printf "%s\n" "no" >&6; }
   3103   1.1  christos fi
   3104   1.1  christos 
   3105   1.1  christos   if test "x$ac_ct_CC" = x; then
   3106   1.1  christos     CC=""
   3107   1.1  christos   else
   3108   1.1  christos     case $cross_compiling:$ac_tool_warned in
   3109   1.1  christos yes:)
   3110  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3111  1.12  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3112   1.1  christos ac_tool_warned=yes ;;
   3113   1.1  christos esac
   3114   1.1  christos     CC=$ac_ct_CC
   3115   1.1  christos   fi
   3116   1.1  christos else
   3117   1.1  christos   CC="$ac_cv_prog_CC"
   3118   1.1  christos fi
   3119   1.1  christos 
   3120   1.1  christos if test -z "$CC"; then
   3121   1.1  christos           if test -n "$ac_tool_prefix"; then
   3122   1.1  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3123   1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   3124  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3125  1.12  christos printf %s "checking for $ac_word... " >&6; }
   3126  1.12  christos if test ${ac_cv_prog_CC+y}
   3127  1.12  christos then :
   3128  1.12  christos   printf %s "(cached) " >&6
   3129  1.12  christos else $as_nop
   3130   1.1  christos   if test -n "$CC"; then
   3131   1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3132   1.1  christos else
   3133   1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3134   1.1  christos for as_dir in $PATH
   3135   1.1  christos do
   3136   1.1  christos   IFS=$as_save_IFS
   3137  1.12  christos   case $as_dir in #(((
   3138  1.12  christos     '') as_dir=./ ;;
   3139  1.12  christos     */) ;;
   3140  1.12  christos     *) as_dir=$as_dir/ ;;
   3141  1.12  christos   esac
   3142   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3143  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3144   1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3145  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3146   1.1  christos     break 2
   3147   1.1  christos   fi
   3148   1.1  christos done
   3149   1.4  christos   done
   3150   1.1  christos IFS=$as_save_IFS
   3151   1.1  christos 
   3152   1.1  christos fi
   3153   1.1  christos fi
   3154   1.1  christos CC=$ac_cv_prog_CC
   3155   1.1  christos if test -n "$CC"; then
   3156  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3157  1.12  christos printf "%s\n" "$CC" >&6; }
   3158   1.1  christos else
   3159  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3160  1.12  christos printf "%s\n" "no" >&6; }
   3161   1.1  christos fi
   3162   1.1  christos 
   3163   1.1  christos 
   3164   1.1  christos   fi
   3165   1.1  christos fi
   3166   1.1  christos if test -z "$CC"; then
   3167   1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   3168   1.1  christos set dummy cc; ac_word=$2
   3169  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3170  1.12  christos printf %s "checking for $ac_word... " >&6; }
   3171  1.12  christos if test ${ac_cv_prog_CC+y}
   3172  1.12  christos then :
   3173  1.12  christos   printf %s "(cached) " >&6
   3174  1.12  christos else $as_nop
   3175   1.1  christos   if test -n "$CC"; then
   3176   1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3177   1.1  christos else
   3178   1.1  christos   ac_prog_rejected=no
   3179   1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3180   1.1  christos for as_dir in $PATH
   3181   1.1  christos do
   3182   1.1  christos   IFS=$as_save_IFS
   3183  1.12  christos   case $as_dir in #(((
   3184  1.12  christos     '') as_dir=./ ;;
   3185  1.12  christos     */) ;;
   3186  1.12  christos     *) as_dir=$as_dir/ ;;
   3187  1.12  christos   esac
   3188   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3189  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3190  1.12  christos     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3191   1.1  christos        ac_prog_rejected=yes
   3192   1.1  christos        continue
   3193   1.1  christos      fi
   3194   1.1  christos     ac_cv_prog_CC="cc"
   3195  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3196   1.1  christos     break 2
   3197   1.1  christos   fi
   3198   1.1  christos done
   3199   1.4  christos   done
   3200   1.1  christos IFS=$as_save_IFS
   3201   1.1  christos 
   3202   1.1  christos if test $ac_prog_rejected = yes; then
   3203   1.1  christos   # We found a bogon in the path, so make sure we never use it.
   3204   1.1  christos   set dummy $ac_cv_prog_CC
   3205   1.1  christos   shift
   3206   1.1  christos   if test $# != 0; then
   3207   1.1  christos     # We chose a different compiler from the bogus one.
   3208   1.1  christos     # However, it has the same basename, so the bogon will be chosen
   3209   1.1  christos     # first if we set CC to just the basename; use the full file name.
   3210   1.1  christos     shift
   3211  1.12  christos     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   3212   1.1  christos   fi
   3213   1.1  christos fi
   3214   1.1  christos fi
   3215   1.1  christos fi
   3216   1.1  christos CC=$ac_cv_prog_CC
   3217   1.1  christos if test -n "$CC"; then
   3218  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3219  1.12  christos printf "%s\n" "$CC" >&6; }
   3220   1.1  christos else
   3221  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3222  1.12  christos printf "%s\n" "no" >&6; }
   3223   1.1  christos fi
   3224   1.1  christos 
   3225   1.1  christos 
   3226   1.1  christos fi
   3227   1.1  christos if test -z "$CC"; then
   3228   1.1  christos   if test -n "$ac_tool_prefix"; then
   3229   1.1  christos   for ac_prog in cl.exe
   3230   1.1  christos   do
   3231   1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3232   1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3233  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3234  1.12  christos printf %s "checking for $ac_word... " >&6; }
   3235  1.12  christos if test ${ac_cv_prog_CC+y}
   3236  1.12  christos then :
   3237  1.12  christos   printf %s "(cached) " >&6
   3238  1.12  christos else $as_nop
   3239   1.1  christos   if test -n "$CC"; then
   3240   1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3241   1.1  christos else
   3242   1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3243   1.1  christos for as_dir in $PATH
   3244   1.1  christos do
   3245   1.1  christos   IFS=$as_save_IFS
   3246  1.12  christos   case $as_dir in #(((
   3247  1.12  christos     '') as_dir=./ ;;
   3248  1.12  christos     */) ;;
   3249  1.12  christos     *) as_dir=$as_dir/ ;;
   3250  1.12  christos   esac
   3251   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3252  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3253   1.1  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3254  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3255   1.1  christos     break 2
   3256   1.1  christos   fi
   3257   1.1  christos done
   3258   1.4  christos   done
   3259   1.1  christos IFS=$as_save_IFS
   3260   1.1  christos 
   3261   1.1  christos fi
   3262   1.1  christos fi
   3263   1.1  christos CC=$ac_cv_prog_CC
   3264   1.1  christos if test -n "$CC"; then
   3265  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3266  1.12  christos printf "%s\n" "$CC" >&6; }
   3267   1.1  christos else
   3268  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3269  1.12  christos printf "%s\n" "no" >&6; }
   3270   1.1  christos fi
   3271   1.1  christos 
   3272   1.1  christos 
   3273   1.1  christos     test -n "$CC" && break
   3274   1.1  christos   done
   3275   1.1  christos fi
   3276   1.1  christos if test -z "$CC"; then
   3277   1.1  christos   ac_ct_CC=$CC
   3278   1.1  christos   for ac_prog in cl.exe
   3279   1.1  christos do
   3280   1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3281   1.1  christos set dummy $ac_prog; ac_word=$2
   3282  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3283  1.12  christos printf %s "checking for $ac_word... " >&6; }
   3284  1.12  christos if test ${ac_cv_prog_ac_ct_CC+y}
   3285  1.12  christos then :
   3286  1.12  christos   printf %s "(cached) " >&6
   3287  1.12  christos else $as_nop
   3288   1.1  christos   if test -n "$ac_ct_CC"; then
   3289   1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3290   1.1  christos else
   3291   1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3292   1.1  christos for as_dir in $PATH
   3293   1.1  christos do
   3294   1.1  christos   IFS=$as_save_IFS
   3295  1.12  christos   case $as_dir in #(((
   3296  1.12  christos     '') as_dir=./ ;;
   3297  1.12  christos     */) ;;
   3298  1.12  christos     *) as_dir=$as_dir/ ;;
   3299  1.12  christos   esac
   3300   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3301  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3302   1.1  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   3303  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3304   1.1  christos     break 2
   3305   1.1  christos   fi
   3306   1.1  christos done
   3307   1.4  christos   done
   3308   1.1  christos IFS=$as_save_IFS
   3309   1.1  christos 
   3310   1.1  christos fi
   3311   1.1  christos fi
   3312   1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3313   1.1  christos if test -n "$ac_ct_CC"; then
   3314  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3315  1.12  christos printf "%s\n" "$ac_ct_CC" >&6; }
   3316   1.1  christos else
   3317  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3318  1.12  christos printf "%s\n" "no" >&6; }
   3319   1.1  christos fi
   3320   1.1  christos 
   3321   1.1  christos 
   3322   1.1  christos   test -n "$ac_ct_CC" && break
   3323   1.1  christos done
   3324   1.1  christos 
   3325   1.1  christos   if test "x$ac_ct_CC" = x; then
   3326   1.1  christos     CC=""
   3327   1.1  christos   else
   3328   1.1  christos     case $cross_compiling:$ac_tool_warned in
   3329   1.1  christos yes:)
   3330  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3331  1.12  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3332   1.1  christos ac_tool_warned=yes ;;
   3333   1.1  christos esac
   3334   1.1  christos     CC=$ac_ct_CC
   3335   1.1  christos   fi
   3336   1.1  christos fi
   3337   1.1  christos 
   3338   1.1  christos fi
   3339  1.12  christos if test -z "$CC"; then
   3340  1.12  christos   if test -n "$ac_tool_prefix"; then
   3341  1.12  christos   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   3342  1.12  christos set dummy ${ac_tool_prefix}clang; ac_word=$2
   3343  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3344  1.12  christos printf %s "checking for $ac_word... " >&6; }
   3345  1.12  christos if test ${ac_cv_prog_CC+y}
   3346  1.12  christos then :
   3347  1.12  christos   printf %s "(cached) " >&6
   3348  1.12  christos else $as_nop
   3349  1.12  christos   if test -n "$CC"; then
   3350  1.12  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3351  1.12  christos else
   3352  1.12  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3353  1.12  christos for as_dir in $PATH
   3354  1.12  christos do
   3355  1.12  christos   IFS=$as_save_IFS
   3356  1.12  christos   case $as_dir in #(((
   3357  1.12  christos     '') as_dir=./ ;;
   3358  1.12  christos     */) ;;
   3359  1.12  christos     *) as_dir=$as_dir/ ;;
   3360  1.12  christos   esac
   3361  1.12  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3362  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3363  1.12  christos     ac_cv_prog_CC="${ac_tool_prefix}clang"
   3364  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3365  1.12  christos     break 2
   3366  1.12  christos   fi
   3367  1.12  christos done
   3368  1.12  christos   done
   3369  1.12  christos IFS=$as_save_IFS
   3370  1.12  christos 
   3371  1.12  christos fi
   3372  1.12  christos fi
   3373  1.12  christos CC=$ac_cv_prog_CC
   3374  1.12  christos if test -n "$CC"; then
   3375  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3376  1.12  christos printf "%s\n" "$CC" >&6; }
   3377  1.12  christos else
   3378  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3379  1.12  christos printf "%s\n" "no" >&6; }
   3380  1.12  christos fi
   3381  1.12  christos 
   3382  1.12  christos 
   3383  1.12  christos fi
   3384  1.12  christos if test -z "$ac_cv_prog_CC"; then
   3385  1.12  christos   ac_ct_CC=$CC
   3386  1.12  christos   # Extract the first word of "clang", so it can be a program name with args.
   3387  1.12  christos set dummy clang; ac_word=$2
   3388  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3389  1.12  christos printf %s "checking for $ac_word... " >&6; }
   3390  1.12  christos if test ${ac_cv_prog_ac_ct_CC+y}
   3391  1.12  christos then :
   3392  1.12  christos   printf %s "(cached) " >&6
   3393  1.12  christos else $as_nop
   3394  1.12  christos   if test -n "$ac_ct_CC"; then
   3395  1.12  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3396  1.12  christos else
   3397  1.12  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3398  1.12  christos for as_dir in $PATH
   3399  1.12  christos do
   3400  1.12  christos   IFS=$as_save_IFS
   3401  1.12  christos   case $as_dir in #(((
   3402  1.12  christos     '') as_dir=./ ;;
   3403  1.12  christos     */) ;;
   3404  1.12  christos     *) as_dir=$as_dir/ ;;
   3405  1.12  christos   esac
   3406  1.12  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3407  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3408  1.12  christos     ac_cv_prog_ac_ct_CC="clang"
   3409  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3410  1.12  christos     break 2
   3411  1.12  christos   fi
   3412  1.12  christos done
   3413  1.12  christos   done
   3414  1.12  christos IFS=$as_save_IFS
   3415  1.12  christos 
   3416  1.12  christos fi
   3417  1.12  christos fi
   3418  1.12  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3419  1.12  christos if test -n "$ac_ct_CC"; then
   3420  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3421  1.12  christos printf "%s\n" "$ac_ct_CC" >&6; }
   3422  1.12  christos else
   3423  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3424  1.12  christos printf "%s\n" "no" >&6; }
   3425  1.12  christos fi
   3426  1.12  christos 
   3427  1.12  christos   if test "x$ac_ct_CC" = x; then
   3428  1.12  christos     CC=""
   3429  1.12  christos   else
   3430  1.12  christos     case $cross_compiling:$ac_tool_warned in
   3431  1.12  christos yes:)
   3432  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3433  1.12  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3434  1.12  christos ac_tool_warned=yes ;;
   3435  1.12  christos esac
   3436  1.12  christos     CC=$ac_ct_CC
   3437  1.12  christos   fi
   3438  1.12  christos else
   3439  1.12  christos   CC="$ac_cv_prog_CC"
   3440  1.12  christos fi
   3441  1.12  christos 
   3442  1.12  christos fi
   3443   1.1  christos 
   3444   1.1  christos 
   3445  1.12  christos test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3446  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3447   1.4  christos as_fn_error $? "no acceptable C compiler found in \$PATH
   3448   1.4  christos See \`config.log' for more details" "$LINENO" 5; }
   3449   1.1  christos 
   3450   1.1  christos # Provide some information about the compiler.
   3451  1.12  christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3452   1.4  christos set X $ac_compile
   3453   1.4  christos ac_compiler=$2
   3454  1.12  christos for ac_option in --version -v -V -qversion -version; do
   3455   1.4  christos   { { ac_try="$ac_compiler $ac_option >&5"
   3456   1.1  christos case "(($ac_try" in
   3457   1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3458   1.1  christos   *) ac_try_echo=$ac_try;;
   3459   1.1  christos esac
   3460   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3461  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   3462   1.4  christos   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3463   1.1  christos   ac_status=$?
   3464   1.4  christos   if test -s conftest.err; then
   3465   1.4  christos     sed '10a\
   3466   1.4  christos ... rest of stderr output deleted ...
   3467   1.4  christos          10q' conftest.err >conftest.er1
   3468   1.4  christos     cat conftest.er1 >&5
   3469   1.4  christos   fi
   3470   1.4  christos   rm -f conftest.er1 conftest.err
   3471  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3472   1.4  christos   test $ac_status = 0; }
   3473   1.4  christos done
   3474   1.1  christos 
   3475   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3476   1.1  christos /* end confdefs.h.  */
   3477   1.1  christos 
   3478   1.1  christos int
   3479  1.12  christos main (void)
   3480   1.1  christos {
   3481   1.1  christos 
   3482   1.1  christos   ;
   3483   1.1  christos   return 0;
   3484   1.1  christos }
   3485   1.1  christos _ACEOF
   3486   1.1  christos ac_clean_files_save=$ac_clean_files
   3487   1.4  christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3488   1.1  christos # Try to create an executable without -o first, disregard a.out.
   3489   1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   3490   1.1  christos # of exeext.
   3491  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3492  1.12  christos printf %s "checking whether the C compiler works... " >&6; }
   3493  1.12  christos ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3494   1.4  christos 
   3495   1.4  christos # The possible output files:
   3496   1.4  christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3497   1.4  christos 
   3498   1.1  christos ac_rmfiles=
   3499   1.1  christos for ac_file in $ac_files
   3500   1.1  christos do
   3501   1.1  christos   case $ac_file in
   3502   1.4  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3503   1.1  christos     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3504   1.1  christos   esac
   3505   1.1  christos done
   3506   1.1  christos rm -f $ac_rmfiles
   3507   1.1  christos 
   3508   1.4  christos if { { ac_try="$ac_link_default"
   3509   1.1  christos case "(($ac_try" in
   3510   1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3511   1.1  christos   *) ac_try_echo=$ac_try;;
   3512   1.1  christos esac
   3513   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3514  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   3515   1.1  christos   (eval "$ac_link_default") 2>&5
   3516   1.1  christos   ac_status=$?
   3517  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3518  1.12  christos   test $ac_status = 0; }
   3519  1.12  christos then :
   3520   1.1  christos   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3521   1.1  christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3522   1.1  christos # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3523   1.1  christos # so that the user can short-circuit this test for compilers unknown to
   3524   1.1  christos # Autoconf.
   3525   1.1  christos for ac_file in $ac_files ''
   3526   1.1  christos do
   3527   1.1  christos   test -f "$ac_file" || continue
   3528   1.1  christos   case $ac_file in
   3529   1.4  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3530   1.1  christos 	;;
   3531   1.1  christos     [ab].out )
   3532   1.1  christos 	# We found the default executable, but exeext='' is most
   3533   1.1  christos 	# certainly right.
   3534   1.1  christos 	break;;
   3535   1.1  christos     *.* )
   3536  1.12  christos 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3537   1.1  christos 	then :; else
   3538   1.1  christos 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3539   1.1  christos 	fi
   3540   1.1  christos 	# We set ac_cv_exeext here because the later test for it is not
   3541   1.1  christos 	# safe: cross compilers may not add the suffix if given an `-o'
   3542   1.1  christos 	# argument, so we may need to know it at that point already.
   3543   1.1  christos 	# Even if this section looks crufty: it has the advantage of
   3544   1.1  christos 	# actually working.
   3545   1.1  christos 	break;;
   3546   1.1  christos     * )
   3547   1.1  christos 	break;;
   3548   1.1  christos   esac
   3549   1.1  christos done
   3550   1.1  christos test "$ac_cv_exeext" = no && ac_cv_exeext=
   3551   1.1  christos 
   3552  1.12  christos else $as_nop
   3553   1.1  christos   ac_file=''
   3554   1.1  christos fi
   3555  1.12  christos if test -z "$ac_file"
   3556  1.12  christos then :
   3557  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3558  1.12  christos printf "%s\n" "no" >&6; }
   3559  1.12  christos printf "%s\n" "$as_me: failed program was:" >&5
   3560   1.4  christos sed 's/^/| /' conftest.$ac_ext >&5
   3561   1.4  christos 
   3562  1.12  christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3563  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3564   1.4  christos as_fn_error 77 "C compiler cannot create executables
   3565   1.4  christos See \`config.log' for more details" "$LINENO" 5; }
   3566  1.12  christos else $as_nop
   3567  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3568  1.12  christos printf "%s\n" "yes" >&6; }
   3569  1.12  christos fi
   3570  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3571  1.12  christos printf %s "checking for C compiler default output file name... " >&6; }
   3572  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3573  1.12  christos printf "%s\n" "$ac_file" >&6; }
   3574   1.1  christos ac_exeext=$ac_cv_exeext
   3575   1.1  christos 
   3576   1.4  christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3577   1.1  christos ac_clean_files=$ac_clean_files_save
   3578  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3579  1.12  christos printf %s "checking for suffix of executables... " >&6; }
   3580   1.4  christos if { { ac_try="$ac_link"
   3581   1.1  christos case "(($ac_try" in
   3582   1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3583   1.1  christos   *) ac_try_echo=$ac_try;;
   3584   1.1  christos esac
   3585   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3586  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   3587   1.1  christos   (eval "$ac_link") 2>&5
   3588   1.1  christos   ac_status=$?
   3589  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3590  1.12  christos   test $ac_status = 0; }
   3591  1.12  christos then :
   3592   1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3593   1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3594   1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   3595   1.1  christos # `rm'.
   3596   1.1  christos for ac_file in conftest.exe conftest conftest.*; do
   3597   1.1  christos   test -f "$ac_file" || continue
   3598   1.1  christos   case $ac_file in
   3599   1.4  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3600   1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3601   1.1  christos 	  break;;
   3602   1.1  christos     * ) break;;
   3603   1.1  christos   esac
   3604   1.1  christos done
   3605  1.12  christos else $as_nop
   3606  1.12  christos   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3607  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3608   1.4  christos as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3609   1.4  christos See \`config.log' for more details" "$LINENO" 5; }
   3610   1.4  christos fi
   3611   1.4  christos rm -f conftest conftest$ac_cv_exeext
   3612  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3613  1.12  christos printf "%s\n" "$ac_cv_exeext" >&6; }
   3614   1.1  christos 
   3615   1.1  christos rm -f conftest.$ac_ext
   3616   1.1  christos EXEEXT=$ac_cv_exeext
   3617   1.1  christos ac_exeext=$EXEEXT
   3618   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3619   1.4  christos /* end confdefs.h.  */
   3620   1.4  christos #include <stdio.h>
   3621   1.4  christos int
   3622  1.12  christos main (void)
   3623   1.4  christos {
   3624   1.4  christos FILE *f = fopen ("conftest.out", "w");
   3625   1.4  christos  return ferror (f) || fclose (f) != 0;
   3626   1.4  christos 
   3627   1.4  christos   ;
   3628   1.4  christos   return 0;
   3629   1.4  christos }
   3630   1.4  christos _ACEOF
   3631   1.4  christos ac_clean_files="$ac_clean_files conftest.out"
   3632   1.4  christos # Check that the compiler produces executables we can run.  If not, either
   3633   1.4  christos # the compiler is broken, or we cross compile.
   3634  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3635  1.12  christos printf %s "checking whether we are cross compiling... " >&6; }
   3636   1.4  christos if test "$cross_compiling" != yes; then
   3637   1.4  christos   { { ac_try="$ac_link"
   3638   1.4  christos case "(($ac_try" in
   3639   1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3640   1.4  christos   *) ac_try_echo=$ac_try;;
   3641   1.4  christos esac
   3642   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3643  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   3644   1.4  christos   (eval "$ac_link") 2>&5
   3645   1.4  christos   ac_status=$?
   3646  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3647   1.4  christos   test $ac_status = 0; }
   3648   1.4  christos   if { ac_try='./conftest$ac_cv_exeext'
   3649   1.4  christos   { { case "(($ac_try" in
   3650   1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3651   1.4  christos   *) ac_try_echo=$ac_try;;
   3652   1.4  christos esac
   3653   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3654  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   3655   1.4  christos   (eval "$ac_try") 2>&5
   3656   1.4  christos   ac_status=$?
   3657  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3658   1.4  christos   test $ac_status = 0; }; }; then
   3659   1.4  christos     cross_compiling=no
   3660   1.4  christos   else
   3661   1.4  christos     if test "$cross_compiling" = maybe; then
   3662   1.4  christos 	cross_compiling=yes
   3663   1.4  christos     else
   3664  1.12  christos 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3665  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3666  1.12  christos as_fn_error 77 "cannot run C compiled programs.
   3667   1.4  christos If you meant to cross compile, use \`--host'.
   3668   1.4  christos See \`config.log' for more details" "$LINENO" 5; }
   3669   1.4  christos     fi
   3670   1.4  christos   fi
   3671   1.4  christos fi
   3672  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3673  1.12  christos printf "%s\n" "$cross_compiling" >&6; }
   3674   1.4  christos 
   3675   1.4  christos rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3676   1.4  christos ac_clean_files=$ac_clean_files_save
   3677  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3678  1.12  christos printf %s "checking for suffix of object files... " >&6; }
   3679  1.12  christos if test ${ac_cv_objext+y}
   3680  1.12  christos then :
   3681  1.12  christos   printf %s "(cached) " >&6
   3682  1.12  christos else $as_nop
   3683   1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3684   1.1  christos /* end confdefs.h.  */
   3685   1.1  christos 
   3686   1.1  christos int
   3687  1.12  christos main (void)
   3688   1.1  christos {
   3689   1.1  christos 
   3690   1.1  christos   ;
   3691   1.1  christos   return 0;
   3692   1.1  christos }
   3693   1.1  christos _ACEOF
   3694   1.1  christos rm -f conftest.o conftest.obj
   3695   1.4  christos if { { ac_try="$ac_compile"
   3696   1.1  christos case "(($ac_try" in
   3697   1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3698   1.1  christos   *) ac_try_echo=$ac_try;;
   3699   1.1  christos esac
   3700   1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3701  1.12  christos printf "%s\n" "$ac_try_echo"; } >&5
   3702   1.1  christos   (eval "$ac_compile") 2>&5
   3703   1.1  christos   ac_status=$?
   3704  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3705  1.12  christos   test $ac_status = 0; }
   3706  1.12  christos then :
   3707   1.1  christos   for ac_file in conftest.o conftest.obj conftest.*; do
   3708   1.1  christos   test -f "$ac_file" || continue;
   3709   1.1  christos   case $ac_file in
   3710   1.4  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3711   1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3712   1.1  christos        break;;
   3713   1.1  christos   esac
   3714   1.1  christos done
   3715  1.12  christos else $as_nop
   3716  1.12  christos   printf "%s\n" "$as_me: failed program was:" >&5
   3717   1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3718   1.1  christos 
   3719  1.12  christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3720  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3721   1.4  christos as_fn_error $? "cannot compute suffix of object files: cannot compile
   3722   1.4  christos See \`config.log' for more details" "$LINENO" 5; }
   3723   1.1  christos fi
   3724   1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3725   1.1  christos fi
   3726  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3727  1.12  christos printf "%s\n" "$ac_cv_objext" >&6; }
   3728   1.1  christos OBJEXT=$ac_cv_objext
   3729   1.1  christos ac_objext=$OBJEXT
   3730  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   3731  1.12  christos printf %s "checking whether the compiler supports GNU C... " >&6; }
   3732  1.12  christos if test ${ac_cv_c_compiler_gnu+y}
   3733  1.12  christos then :
   3734  1.12  christos   printf %s "(cached) " >&6
   3735  1.12  christos else $as_nop
   3736   1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3737   1.1  christos /* end confdefs.h.  */
   3738   1.1  christos 
   3739   1.1  christos int
   3740  1.12  christos main (void)
   3741   1.1  christos {
   3742   1.1  christos #ifndef __GNUC__
   3743   1.1  christos        choke me
   3744   1.1  christos #endif
   3745   1.1  christos 
   3746   1.1  christos   ;
   3747   1.1  christos   return 0;
   3748   1.1  christos }
   3749   1.1  christos _ACEOF
   3750  1.12  christos if ac_fn_c_try_compile "$LINENO"
   3751  1.12  christos then :
   3752   1.1  christos   ac_compiler_gnu=yes
   3753  1.12  christos else $as_nop
   3754   1.4  christos   ac_compiler_gnu=no
   3755   1.1  christos fi
   3756  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3757   1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3758   1.1  christos 
   3759   1.1  christos fi
   3760  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3761  1.12  christos printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   3762  1.12  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3763  1.12  christos 
   3764   1.4  christos if test $ac_compiler_gnu = yes; then
   3765   1.4  christos   GCC=yes
   3766   1.4  christos else
   3767   1.4  christos   GCC=
   3768   1.4  christos fi
   3769  1.12  christos ac_test_CFLAGS=${CFLAGS+y}
   3770   1.1  christos ac_save_CFLAGS=$CFLAGS
   3771  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3772  1.12  christos printf %s "checking whether $CC accepts -g... " >&6; }
   3773  1.12  christos if test ${ac_cv_prog_cc_g+y}
   3774  1.12  christos then :
   3775  1.12  christos   printf %s "(cached) " >&6
   3776  1.12  christos else $as_nop
   3777   1.1  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   3778   1.1  christos    ac_c_werror_flag=yes
   3779   1.1  christos    ac_cv_prog_cc_g=no
   3780   1.1  christos    CFLAGS="-g"
   3781   1.4  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3782   1.1  christos /* end confdefs.h.  */
   3783   1.1  christos 
   3784   1.1  christos int
   3785  1.12  christos main (void)
   3786   1.1  christos {
   3787   1.1  christos 
   3788   1.1  christos   ;
   3789   1.1  christos   return 0;
   3790   1.1  christos }
   3791   1.1  christos _ACEOF
   3792  1.12  christos if ac_fn_c_try_compile "$LINENO"
   3793  1.12  christos then :
   3794   1.1  christos   ac_cv_prog_cc_g=yes
   3795  1.12  christos else $as_nop
   3796   1.4  christos   CFLAGS=""
   3797   1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3798   1.1  christos /* end confdefs.h.  */
   3799   1.1  christos 
   3800   1.1  christos int
   3801  1.12  christos main (void)
   3802   1.1  christos {
   3803   1.1  christos 
   3804   1.1  christos   ;
   3805   1.1  christos   return 0;
   3806   1.1  christos }
   3807   1.1  christos _ACEOF
   3808  1.12  christos if ac_fn_c_try_compile "$LINENO"
   3809  1.12  christos then :
   3810   1.4  christos 
   3811  1.12  christos else $as_nop
   3812   1.4  christos   ac_c_werror_flag=$ac_save_c_werror_flag
   3813   1.1  christos 	 CFLAGS="-g"
   3814   1.4  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3815   1.1  christos /* end confdefs.h.  */
   3816   1.1  christos 
   3817   1.1  christos int
   3818  1.12  christos main (void)
   3819   1.1  christos {
   3820   1.1  christos 
   3821   1.1  christos   ;
   3822   1.1  christos   return 0;
   3823   1.1  christos }
   3824   1.1  christos _ACEOF
   3825  1.12  christos if ac_fn_c_try_compile "$LINENO"
   3826  1.12  christos then :
   3827   1.1  christos   ac_cv_prog_cc_g=yes
   3828   1.1  christos fi
   3829  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3830   1.1  christos fi
   3831  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3832   1.1  christos fi
   3833  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3834   1.1  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   3835   1.1  christos fi
   3836  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3837  1.12  christos printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   3838  1.12  christos if test $ac_test_CFLAGS; then
   3839   1.1  christos   CFLAGS=$ac_save_CFLAGS
   3840   1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   3841   1.1  christos   if test "$GCC" = yes; then
   3842   1.1  christos     CFLAGS="-g -O2"
   3843   1.1  christos   else
   3844   1.1  christos     CFLAGS="-g"
   3845   1.1  christos   fi
   3846   1.1  christos else
   3847   1.1  christos   if test "$GCC" = yes; then
   3848   1.1  christos     CFLAGS="-O2"
   3849   1.1  christos   else
   3850   1.1  christos     CFLAGS=
   3851   1.1  christos   fi
   3852   1.1  christos fi
   3853  1.12  christos ac_prog_cc_stdc=no
   3854  1.12  christos if test x$ac_prog_cc_stdc = xno
   3855  1.12  christos then :
   3856  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   3857  1.12  christos printf %s "checking for $CC option to enable C11 features... " >&6; }
   3858  1.12  christos if test ${ac_cv_prog_cc_c11+y}
   3859  1.12  christos then :
   3860  1.12  christos   printf %s "(cached) " >&6
   3861  1.12  christos else $as_nop
   3862  1.12  christos   ac_cv_prog_cc_c11=no
   3863   1.1  christos ac_save_CC=$CC
   3864   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3865   1.1  christos /* end confdefs.h.  */
   3866  1.12  christos $ac_c_conftest_c11_program
   3867  1.12  christos _ACEOF
   3868  1.12  christos for ac_arg in '' -std=gnu11
   3869  1.12  christos do
   3870  1.12  christos   CC="$ac_save_CC $ac_arg"
   3871  1.12  christos   if ac_fn_c_try_compile "$LINENO"
   3872  1.12  christos then :
   3873  1.12  christos   ac_cv_prog_cc_c11=$ac_arg
   3874  1.12  christos fi
   3875  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam
   3876  1.12  christos   test "x$ac_cv_prog_cc_c11" != "xno" && break
   3877  1.12  christos done
   3878  1.12  christos rm -f conftest.$ac_ext
   3879  1.12  christos CC=$ac_save_CC
   3880  1.12  christos fi
   3881   1.1  christos 
   3882  1.12  christos if test "x$ac_cv_prog_cc_c11" = xno
   3883  1.12  christos then :
   3884  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3885  1.12  christos printf "%s\n" "unsupported" >&6; }
   3886  1.12  christos else $as_nop
   3887  1.12  christos   if test "x$ac_cv_prog_cc_c11" = x
   3888  1.12  christos then :
   3889  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3890  1.12  christos printf "%s\n" "none needed" >&6; }
   3891  1.12  christos else $as_nop
   3892  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   3893  1.12  christos printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   3894  1.12  christos      CC="$CC $ac_cv_prog_cc_c11"
   3895  1.12  christos fi
   3896  1.12  christos   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   3897  1.12  christos   ac_prog_cc_stdc=c11
   3898  1.12  christos fi
   3899  1.12  christos fi
   3900  1.12  christos if test x$ac_prog_cc_stdc = xno
   3901  1.12  christos then :
   3902  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   3903  1.12  christos printf %s "checking for $CC option to enable C99 features... " >&6; }
   3904  1.12  christos if test ${ac_cv_prog_cc_c99+y}
   3905  1.12  christos then :
   3906  1.12  christos   printf %s "(cached) " >&6
   3907  1.12  christos else $as_nop
   3908  1.12  christos   ac_cv_prog_cc_c99=no
   3909  1.12  christos ac_save_CC=$CC
   3910  1.12  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3911  1.12  christos /* end confdefs.h.  */
   3912  1.12  christos $ac_c_conftest_c99_program
   3913  1.12  christos _ACEOF
   3914  1.12  christos for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   3915  1.12  christos do
   3916  1.12  christos   CC="$ac_save_CC $ac_arg"
   3917  1.12  christos   if ac_fn_c_try_compile "$LINENO"
   3918  1.12  christos then :
   3919  1.12  christos   ac_cv_prog_cc_c99=$ac_arg
   3920  1.12  christos fi
   3921  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam
   3922  1.12  christos   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3923  1.12  christos done
   3924  1.12  christos rm -f conftest.$ac_ext
   3925  1.12  christos CC=$ac_save_CC
   3926  1.12  christos fi
   3927   1.1  christos 
   3928  1.12  christos if test "x$ac_cv_prog_cc_c99" = xno
   3929  1.12  christos then :
   3930  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3931  1.12  christos printf "%s\n" "unsupported" >&6; }
   3932  1.12  christos else $as_nop
   3933  1.12  christos   if test "x$ac_cv_prog_cc_c99" = x
   3934  1.12  christos then :
   3935  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3936  1.12  christos printf "%s\n" "none needed" >&6; }
   3937  1.12  christos else $as_nop
   3938  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   3939  1.12  christos printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   3940  1.12  christos      CC="$CC $ac_cv_prog_cc_c99"
   3941  1.12  christos fi
   3942  1.12  christos   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   3943  1.12  christos   ac_prog_cc_stdc=c99
   3944  1.12  christos fi
   3945  1.12  christos fi
   3946  1.12  christos if test x$ac_prog_cc_stdc = xno
   3947  1.12  christos then :
   3948  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   3949  1.12  christos printf %s "checking for $CC option to enable C89 features... " >&6; }
   3950  1.12  christos if test ${ac_cv_prog_cc_c89+y}
   3951  1.12  christos then :
   3952  1.12  christos   printf %s "(cached) " >&6
   3953  1.12  christos else $as_nop
   3954  1.12  christos   ac_cv_prog_cc_c89=no
   3955  1.12  christos ac_save_CC=$CC
   3956  1.12  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3957  1.12  christos /* end confdefs.h.  */
   3958  1.12  christos $ac_c_conftest_c89_program
   3959   1.1  christos _ACEOF
   3960  1.12  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3961   1.1  christos do
   3962   1.1  christos   CC="$ac_save_CC $ac_arg"
   3963  1.12  christos   if ac_fn_c_try_compile "$LINENO"
   3964  1.12  christos then :
   3965   1.1  christos   ac_cv_prog_cc_c89=$ac_arg
   3966   1.1  christos fi
   3967  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam
   3968   1.1  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3969   1.1  christos done
   3970   1.1  christos rm -f conftest.$ac_ext
   3971   1.1  christos CC=$ac_save_CC
   3972  1.12  christos fi
   3973   1.1  christos 
   3974  1.12  christos if test "x$ac_cv_prog_cc_c89" = xno
   3975  1.12  christos then :
   3976  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3977  1.12  christos printf "%s\n" "unsupported" >&6; }
   3978  1.12  christos else $as_nop
   3979  1.12  christos   if test "x$ac_cv_prog_cc_c89" = x
   3980  1.12  christos then :
   3981  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3982  1.12  christos printf "%s\n" "none needed" >&6; }
   3983  1.12  christos else $as_nop
   3984  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3985  1.12  christos printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   3986  1.12  christos      CC="$CC $ac_cv_prog_cc_c89"
   3987  1.12  christos fi
   3988  1.12  christos   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   3989  1.12  christos   ac_prog_cc_stdc=c89
   3990   1.1  christos fi
   3991   1.4  christos fi
   3992   1.1  christos 
   3993   1.1  christos ac_ext=c
   3994   1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3995   1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3996   1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3997   1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3998   1.1  christos 
   3999   1.1  christos 
   4000  1.12  christos if test "$ac_cv_prog_cc_c99" = "no"; then
   4001  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
   4002  1.12  christos printf "%s\n" "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
   4003  1.12  christos fi
   4004  1.11  christos 
   4005   1.1  christos 
   4006  1.12  christos     if test "$GCC" = yes ; then
   4007  1.12  christos 	    #
   4008  1.12  christos 	    # -Werror forces warnings to be errors.
   4009  1.12  christos 	    #
   4010  1.12  christos 	    ac_lbl_cc_force_warning_errors=-Werror
   4011  1.12  christos     else
   4012  1.12  christos 	    V_INCLS="$V_INCLS -I/usr/local/include"
   4013  1.12  christos 	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   4014   1.1  christos 
   4015  1.12  christos 	    case "$host_os" in
   4016   1.1  christos 
   4017  1.12  christos 	    darwin*)
   4018  1.12  christos 		    #
   4019  1.12  christos 		    # This is assumed either to be GCC or clang, both
   4020  1.12  christos 		    # of which use -Werror to force warnings to be errors.
   4021  1.12  christos 		    #
   4022  1.12  christos 		    ac_lbl_cc_force_warning_errors=-Werror
   4023  1.12  christos 		    ;;
   4024   1.4  christos 
   4025  1.12  christos 	    hpux*)
   4026  1.12  christos 		    #
   4027  1.12  christos 		    # HP C, which is what we presume we're using, doesn't
   4028  1.12  christos 		    # exit with a non-zero exit status if we hand it an
   4029  1.12  christos 		    # invalid -W flag, can't be forced to do so even with
   4030  1.12  christos 		    # +We, and doesn't handle GCC-style -W flags, so we
   4031  1.12  christos 		    # don't want to try using GCC-style -W flags.
   4032  1.12  christos 		    #
   4033  1.12  christos 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   4034  1.12  christos 		    ;;
   4035   1.4  christos 
   4036  1.12  christos 	    irix*)
   4037  1.12  christos 		    #
   4038  1.12  christos 		    # MIPS C, which is what we presume we're using, doesn't
   4039  1.12  christos 		    # necessarily exit with a non-zero exit status if we
   4040  1.12  christos 		    # hand it an invalid -W flag, can't be forced to do
   4041  1.12  christos 		    # so, and doesn't handle GCC-style -W flags, so we
   4042  1.12  christos 		    # don't want to try using GCC-style -W flags.
   4043  1.12  christos 		    #
   4044  1.12  christos 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   4045  1.12  christos 		    #
   4046  1.12  christos 		    # It also, apparently, defaults to "char" being
   4047  1.12  christos 		    # unsigned, unlike most other C implementations;
   4048  1.12  christos 		    # I suppose we could say "signed char" whenever
   4049  1.12  christos 		    # we want to guarantee a signed "char", but let's
   4050  1.12  christos 		    # just force signed chars.
   4051  1.12  christos 		    #
   4052  1.12  christos 		    # -xansi is normally the default, but the
   4053  1.12  christos 		    # configure script was setting it; perhaps -cckr
   4054  1.12  christos 		    # was the default in the Old Days.  (Then again,
   4055  1.12  christos 		    # that would probably be for backwards compatibility
   4056  1.12  christos 		    # in the days when ANSI C was Shiny and New, i.e.
   4057  1.12  christos 		    # 1989 and the early '90's, so maybe we can just
   4058  1.12  christos 		    # drop support for those compilers.)
   4059  1.12  christos 		    #
   4060  1.12  christos 		    # -g is equivalent to -g2, which turns off
   4061  1.12  christos 		    # optimization; we choose -g3, which generates
   4062  1.12  christos 		    # debugging information but doesn't turn off
   4063  1.12  christos 		    # optimization (even if the optimization would
   4064  1.12  christos 		    # cause inaccuracies in debugging).
   4065  1.12  christos 		    #
   4066  1.12  christos 		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
   4067  1.12  christos 		    ;;
   4068  1.11  christos 
   4069  1.12  christos 	    osf*)
   4070  1.12  christos 		    #
   4071  1.12  christos 		    # Presumed to be DEC OSF/1, Digital UNIX, or
   4072   1.4  christos 		    # Tru64 UNIX.
   4073   1.4  christos 		    #
   4074   1.4  christos 		    # The DEC C compiler, which is what we presume we're
   4075   1.4  christos 		    # using, doesn't exit with a non-zero exit status if we
   4076   1.4  christos 		    # hand it an invalid -W flag, can't be forced to do
   4077   1.4  christos 		    # so, and doesn't handle GCC-style -W flags, so we
   4078   1.4  christos 		    # don't want to try using GCC-style -W flags.
   4079   1.4  christos 		    #
   4080   1.4  christos 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   4081   1.4  christos 		    #
   4082   1.4  christos 		    # -g is equivalent to -g2, which turns off
   4083   1.4  christos 		    # optimization; we choose -g3, which generates
   4084   1.4  christos 		    # debugging information but doesn't turn off
   4085   1.4  christos 		    # optimization (even if the optimization would
   4086   1.4  christos 		    # cause inaccuracies in debugging).
   4087   1.4  christos 		    #
   4088   1.4  christos 		    V_CCOPT="$V_CCOPT -g3"
   4089   1.4  christos 		    ;;
   4090   1.1  christos 
   4091   1.4  christos 	    solaris*)
   4092   1.4  christos 		    #
   4093   1.4  christos 		    # Assumed to be Sun C, which requires -errwarn to force
   4094   1.4  christos 		    # warnings to be treated as errors.
   4095   1.4  christos 		    #
   4096   1.4  christos 		    ac_lbl_cc_force_warning_errors=-errwarn
   4097   1.4  christos 		    ;;
   4098   1.1  christos 
   4099   1.4  christos 	    ultrix*)
   4100  1.12  christos 		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
   4101  1.12  christos printf %s "checking that Ultrix $CC hacks const in prototypes... " >&6; }
   4102  1.12  christos 		    if test ${ac_cv_lbl_cc_const_proto+y}
   4103  1.12  christos then :
   4104  1.12  christos   printf %s "(cached) " >&6
   4105  1.12  christos else $as_nop
   4106  1.11  christos 
   4107  1.11  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4108   1.1  christos /* end confdefs.h.  */
   4109   1.1  christos #include <sys/types.h>
   4110   1.1  christos int
   4111  1.12  christos main (void)
   4112   1.1  christos {
   4113   1.4  christos struct a { int b; };
   4114   1.4  christos 			    void c(const struct a *)
   4115   1.1  christos   ;
   4116   1.1  christos   return 0;
   4117   1.1  christos }
   4118   1.1  christos _ACEOF
   4119  1.12  christos if ac_fn_c_try_compile "$LINENO"
   4120  1.12  christos then :
   4121   1.4  christos   ac_cv_lbl_cc_const_proto=yes
   4122  1.12  christos else $as_nop
   4123   1.4  christos   ac_cv_lbl_cc_const_proto=no
   4124   1.4  christos fi
   4125  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4126   1.4  christos fi
   4127   1.4  christos 
   4128  1.12  christos 		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
   4129  1.12  christos printf "%s\n" "$ac_cv_lbl_cc_const_proto" >&6; }
   4130   1.4  christos 		    if test $ac_cv_lbl_cc_const_proto = no ; then
   4131   1.1  christos 
   4132  1.12  christos printf "%s\n" "#define const /**/" >>confdefs.h
   4133   1.1  christos 
   4134   1.1  christos 		    fi
   4135   1.1  christos 		    ;;
   4136   1.1  christos 	    esac
   4137   1.4  christos 	    V_CCOPT="$V_CCOPT -O"
   4138   1.1  christos     fi
   4139   1.1  christos 
   4140  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   4141  1.12  christos printf %s "checking for inline... " >&6; }
   4142   1.1  christos     save_CFLAGS="$CFLAGS"
   4143   1.1  christos     CFLAGS="$V_CCOPT"
   4144  1.12  christos     if test ${ac_cv_lbl_inline+y}
   4145  1.12  christos then :
   4146  1.12  christos   printf %s "(cached) " >&6
   4147  1.12  christos else $as_nop
   4148   1.1  christos 
   4149   1.1  christos 	ac_cv_lbl_inline=""
   4150   1.1  christos 	ac_lbl_cc_inline=no
   4151   1.1  christos 	for ac_lbl_inline in inline __inline__ __inline
   4152   1.1  christos 	do
   4153   1.4  christos 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4154   1.1  christos /* end confdefs.h.  */
   4155   1.1  christos #define inline $ac_lbl_inline
   4156   1.1  christos 		static inline struct iltest *foo(void);
   4157   1.1  christos 		struct iltest {
   4158   1.1  christos 		    int iltest1;
   4159   1.1  christos 		    int iltest2;
   4160   1.1  christos 		};
   4161   1.1  christos 
   4162   1.1  christos 		static inline struct iltest *
   4163   1.1  christos 		foo()
   4164   1.1  christos 		{
   4165   1.1  christos 		    static struct iltest xxx;
   4166   1.1  christos 
   4167   1.1  christos 		    return &xxx;
   4168   1.1  christos 		}
   4169   1.1  christos int
   4170  1.12  christos main (void)
   4171   1.1  christos {
   4172   1.1  christos 
   4173   1.1  christos   ;
   4174   1.1  christos   return 0;
   4175   1.1  christos }
   4176   1.1  christos _ACEOF
   4177  1.12  christos if ac_fn_c_try_compile "$LINENO"
   4178  1.12  christos then :
   4179   1.1  christos   ac_lbl_cc_inline=yes
   4180   1.1  christos fi
   4181  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4182   1.1  christos 	    if test "$ac_lbl_cc_inline" = yes ; then
   4183   1.1  christos 		break;
   4184   1.1  christos 	    fi
   4185   1.1  christos 	done
   4186   1.1  christos 	if test "$ac_lbl_cc_inline" = yes ; then
   4187   1.1  christos 	    ac_cv_lbl_inline=$ac_lbl_inline
   4188   1.1  christos 	fi
   4189   1.1  christos fi
   4190   1.1  christos 
   4191   1.1  christos     CFLAGS="$save_CFLAGS"
   4192   1.1  christos     if test ! -z "$ac_cv_lbl_inline" ; then
   4193  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
   4194  1.12  christos printf "%s\n" "$ac_cv_lbl_inline" >&6; }
   4195   1.1  christos     else
   4196  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4197  1.12  christos printf "%s\n" "no" >&6; }
   4198   1.1  christos     fi
   4199   1.1  christos 
   4200  1.12  christos printf "%s\n" "#define inline $ac_cv_lbl_inline" >>confdefs.h
   4201   1.1  christos 
   4202   1.1  christos 
   4203  1.12  christos ac_header= ac_cache=
   4204  1.12  christos for ac_item in $ac_header_c_list
   4205   1.1  christos do
   4206  1.12  christos   if test $ac_cache; then
   4207  1.12  christos     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   4208  1.12  christos     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   4209  1.12  christos       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   4210   1.1  christos     fi
   4211  1.12  christos     ac_header= ac_cache=
   4212  1.12  christos   elif test $ac_header; then
   4213  1.12  christos     ac_cache=$ac_item
   4214  1.12  christos   else
   4215  1.12  christos     ac_header=$ac_item
   4216   1.4  christos   fi
   4217  1.12  christos done
   4218  1.12  christos 
   4219  1.12  christos 
   4220  1.12  christos 
   4221   1.1  christos 
   4222   1.1  christos 
   4223   1.1  christos 
   4224   1.1  christos 
   4225   1.1  christos 
   4226  1.12  christos if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   4227  1.12  christos then :
   4228   1.1  christos 
   4229  1.12  christos printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   4230   1.1  christos 
   4231  1.12  christos fi
   4232  1.12  christos ac_fn_c_check_header_compile "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default"
   4233  1.12  christos if test "x$ac_cv_header_rpc_rpc_h" = xyes
   4234  1.12  christos then :
   4235  1.12  christos   printf "%s\n" "#define HAVE_RPC_RPC_H 1" >>confdefs.h
   4236   1.4  christos 
   4237   1.1  christos fi
   4238  1.12  christos ac_fn_c_check_header_compile "$LINENO" "rpc/rpcent.h" "ac_cv_header_rpc_rpcent_h" "$ac_includes_default"
   4239  1.12  christos if test "x$ac_cv_header_rpc_rpcent_h" = xyes
   4240  1.12  christos then :
   4241  1.12  christos   printf "%s\n" "#define HAVE_RPC_RPCENT_H 1" >>confdefs.h
   4242   1.1  christos 
   4243   1.1  christos fi
   4244  1.12  christos ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
   4245  1.12  christos if test "x$ac_cv_header_net_if_h" = xyes
   4246  1.12  christos then :
   4247  1.12  christos   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
   4248   1.1  christos 
   4249  1.12  christos fi
   4250   1.1  christos 
   4251  1.13  christos 
   4252  1.13  christos # On Linux, if Autoconf version >= 2.72 and GNU C Library version >= 2.34,
   4253  1.13  christos # uncomment AC_SYS_YEAR2038_RECOMMENDED to ensure time_t is Y2038-safe.
   4254  1.13  christos # (Can be done by autogen.sh)
   4255  1.13  christos # AC_SYS_YEAR2038_RECOMMENDED
   4256  1.12  christos #
   4257  1.12  christos # Get the size of a void *, to know whether this is a 32-bit or 64-bit build.
   4258  1.12  christos #
   4259  1.12  christos # The cast to long int works around a bug in the HP C Compiler
   4260  1.12  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   4261  1.12  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   4262  1.12  christos # This bug is HP SR number 8606223364.
   4263  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   4264  1.12  christos printf %s "checking size of void *... " >&6; }
   4265  1.12  christos if test ${ac_cv_sizeof_void_p+y}
   4266  1.12  christos then :
   4267  1.12  christos   printf %s "(cached) " >&6
   4268  1.12  christos else $as_nop
   4269  1.12  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
   4270  1.12  christos then :
   4271   1.4  christos 
   4272  1.12  christos else $as_nop
   4273  1.12  christos   if test "$ac_cv_type_void_p" = yes; then
   4274  1.12  christos      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4275  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   4276  1.12  christos as_fn_error 77 "cannot compute sizeof (void *)
   4277  1.12  christos See \`config.log' for more details" "$LINENO" 5; }
   4278  1.12  christos    else
   4279  1.12  christos      ac_cv_sizeof_void_p=0
   4280  1.12  christos    fi
   4281   1.1  christos fi
   4282   1.1  christos 
   4283   1.1  christos fi
   4284  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   4285  1.12  christos printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
   4286   1.1  christos 
   4287   1.4  christos 
   4288   1.1  christos 
   4289  1.12  christos printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
   4290   1.1  christos 
   4291   1.1  christos 
   4292   1.1  christos 
   4293  1.12  christos #
   4294  1.12  christos # Get the size of a time_t, to know whether it's 32-bit or 64-bit.
   4295  1.12  christos #
   4296  1.12  christos # The cast to long int works around a bug in the HP C Compiler
   4297  1.12  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   4298  1.12  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   4299  1.12  christos # This bug is HP SR number 8606223364.
   4300  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
   4301  1.12  christos printf %s "checking size of time_t... " >&6; }
   4302  1.12  christos if test ${ac_cv_sizeof_time_t+y}
   4303  1.12  christos then :
   4304  1.12  christos   printf %s "(cached) " >&6
   4305  1.12  christos else $as_nop
   4306  1.12  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "#include <time.h>
   4307   1.4  christos "
   4308  1.12  christos then :
   4309   1.1  christos 
   4310  1.12  christos else $as_nop
   4311  1.12  christos   if test "$ac_cv_type_time_t" = yes; then
   4312  1.12  christos      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4313  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   4314  1.12  christos as_fn_error 77 "cannot compute sizeof (time_t)
   4315  1.12  christos See \`config.log' for more details" "$LINENO" 5; }
   4316  1.12  christos    else
   4317  1.12  christos      ac_cv_sizeof_time_t=0
   4318  1.12  christos    fi
   4319   1.1  christos fi
   4320   1.1  christos 
   4321  1.12  christos fi
   4322  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
   4323  1.12  christos printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
   4324   1.1  christos 
   4325   1.1  christos 
   4326   1.1  christos 
   4327  1.12  christos printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
   4328   1.1  christos 
   4329   1.1  christos 
   4330   1.1  christos 
   4331   1.1  christos case "$host_os" in
   4332   1.1  christos 
   4333   1.3  christos darwin*)
   4334   1.3  christos 	# Check whether --enable-universal was given.
   4335  1.12  christos if test ${enable_universal+y}
   4336  1.12  christos then :
   4337   1.3  christos   enableval=$enable_universal;
   4338   1.3  christos fi
   4339   1.3  christos 
   4340   1.3  christos 	if test "$enable_universal" != "no"; then
   4341   1.3  christos 		case "$host_os" in
   4342   1.3  christos 
   4343   1.3  christos 		darwin9.*)
   4344   1.3  christos 			#
   4345   1.3  christos 			# Leopard.  Build for x86 and 32-bit PowerPC, with
   4346   1.3  christos 			# x86 first.  (That's what Apple does.)
   4347   1.3  christos 			#
   4348   1.3  christos 			V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
   4349   1.3  christos 			LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
   4350   1.3  christos 			;;
   4351   1.3  christos 
   4352   1.3  christos 		darwin10.*)
   4353   1.3  christos 			#
   4354   1.3  christos 			# Snow Leopard.  Build for x86-64 and x86, with
   4355   1.3  christos 			# x86-64 first.  (That's what Apple does.)
   4356   1.3  christos 			#
   4357   1.3  christos 			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
   4358   1.3  christos 			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
   4359   1.3  christos 			;;
   4360   1.3  christos 		esac
   4361   1.3  christos 	fi
   4362   1.3  christos 	;;
   4363   1.1  christos esac
   4364   1.1  christos 
   4365  1.12  christos #
   4366  1.12  christos # Do we have pkg-config?
   4367  1.12  christos #
   4368  1.12  christos 
   4369  1.12  christos 
   4370  1.12  christos 
   4371  1.12  christos 
   4372  1.12  christos 
   4373  1.12  christos 
   4374  1.12  christos 
   4375  1.12  christos if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   4376  1.12  christos 	if test -n "$ac_tool_prefix"; then
   4377  1.12  christos   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   4378  1.12  christos set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   4379  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4380  1.12  christos printf %s "checking for $ac_word... " >&6; }
   4381  1.12  christos if test ${ac_cv_path_PKG_CONFIG+y}
   4382  1.12  christos then :
   4383  1.12  christos   printf %s "(cached) " >&6
   4384  1.12  christos else $as_nop
   4385  1.12  christos   case $PKG_CONFIG in
   4386  1.12  christos   [\\/]* | ?:[\\/]*)
   4387  1.12  christos   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   4388  1.12  christos   ;;
   4389  1.12  christos   *)
   4390  1.12  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4391  1.12  christos for as_dir in $PATH
   4392  1.12  christos do
   4393  1.12  christos   IFS=$as_save_IFS
   4394  1.12  christos   case $as_dir in #(((
   4395  1.12  christos     '') as_dir=./ ;;
   4396  1.12  christos     */) ;;
   4397  1.12  christos     *) as_dir=$as_dir/ ;;
   4398  1.12  christos   esac
   4399  1.12  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4400  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4401  1.12  christos     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   4402  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4403  1.12  christos     break 2
   4404  1.12  christos   fi
   4405  1.12  christos done
   4406  1.12  christos   done
   4407  1.12  christos IFS=$as_save_IFS
   4408  1.12  christos 
   4409  1.12  christos   ;;
   4410  1.12  christos esac
   4411  1.12  christos fi
   4412  1.12  christos PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   4413  1.12  christos if test -n "$PKG_CONFIG"; then
   4414  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   4415  1.12  christos printf "%s\n" "$PKG_CONFIG" >&6; }
   4416  1.12  christos else
   4417  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4418  1.12  christos printf "%s\n" "no" >&6; }
   4419  1.12  christos fi
   4420  1.12  christos 
   4421  1.12  christos 
   4422  1.12  christos fi
   4423  1.12  christos if test -z "$ac_cv_path_PKG_CONFIG"; then
   4424  1.12  christos   ac_pt_PKG_CONFIG=$PKG_CONFIG
   4425  1.12  christos   # Extract the first word of "pkg-config", so it can be a program name with args.
   4426  1.12  christos set dummy pkg-config; ac_word=$2
   4427  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4428  1.12  christos printf %s "checking for $ac_word... " >&6; }
   4429  1.12  christos if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   4430  1.12  christos then :
   4431  1.12  christos   printf %s "(cached) " >&6
   4432  1.12  christos else $as_nop
   4433  1.12  christos   case $ac_pt_PKG_CONFIG in
   4434  1.12  christos   [\\/]* | ?:[\\/]*)
   4435  1.12  christos   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   4436  1.12  christos   ;;
   4437  1.12  christos   *)
   4438  1.12  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4439  1.12  christos for as_dir in $PATH
   4440  1.12  christos do
   4441  1.12  christos   IFS=$as_save_IFS
   4442  1.12  christos   case $as_dir in #(((
   4443  1.12  christos     '') as_dir=./ ;;
   4444  1.12  christos     */) ;;
   4445  1.12  christos     *) as_dir=$as_dir/ ;;
   4446  1.12  christos   esac
   4447  1.12  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4448  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4449  1.12  christos     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   4450  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4451  1.12  christos     break 2
   4452  1.12  christos   fi
   4453  1.12  christos done
   4454  1.12  christos   done
   4455  1.12  christos IFS=$as_save_IFS
   4456  1.12  christos 
   4457  1.12  christos   ;;
   4458  1.12  christos esac
   4459  1.12  christos fi
   4460  1.12  christos ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   4461  1.12  christos if test -n "$ac_pt_PKG_CONFIG"; then
   4462  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   4463  1.12  christos printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   4464  1.12  christos else
   4465  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4466  1.12  christos printf "%s\n" "no" >&6; }
   4467  1.12  christos fi
   4468  1.12  christos 
   4469  1.12  christos   if test "x$ac_pt_PKG_CONFIG" = x; then
   4470  1.12  christos     PKG_CONFIG=""
   4471  1.12  christos   else
   4472  1.12  christos     case $cross_compiling:$ac_tool_warned in
   4473  1.12  christos yes:)
   4474  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4475  1.12  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4476  1.12  christos ac_tool_warned=yes ;;
   4477  1.12  christos esac
   4478  1.12  christos     PKG_CONFIG=$ac_pt_PKG_CONFIG
   4479  1.12  christos   fi
   4480  1.12  christos else
   4481  1.12  christos   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   4482  1.12  christos fi
   4483  1.12  christos 
   4484  1.12  christos fi
   4485  1.12  christos if test -n "$PKG_CONFIG"; then
   4486  1.12  christos 	_pkg_min_version=0.17.0
   4487  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   4488  1.12  christos printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   4489  1.12  christos 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   4490  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4491  1.12  christos printf "%s\n" "yes" >&6; }
   4492  1.12  christos 	else
   4493  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4494  1.12  christos printf "%s\n" "no" >&6; }
   4495  1.12  christos 		PKG_CONFIG=""
   4496  1.12  christos 	fi
   4497  1.12  christos fi
   4498  1.12  christos 
   4499  1.12  christos #
   4500  1.12  christos # Do we have the brew command from Homebrew?
   4501  1.12  christos #
   4502  1.12  christos # Extract the first word of "brew", so it can be a program name with args.
   4503  1.12  christos set dummy brew; ac_word=$2
   4504  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4505  1.12  christos printf %s "checking for $ac_word... " >&6; }
   4506  1.12  christos if test ${ac_cv_path_BREW+y}
   4507  1.12  christos then :
   4508  1.12  christos   printf %s "(cached) " >&6
   4509  1.12  christos else $as_nop
   4510  1.12  christos   case $BREW in
   4511  1.12  christos   [\\/]* | ?:[\\/]*)
   4512  1.12  christos   ac_cv_path_BREW="$BREW" # Let the user override the test with a path.
   4513  1.12  christos   ;;
   4514  1.12  christos   *)
   4515  1.12  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4516  1.12  christos for as_dir in $PATH
   4517  1.12  christos do
   4518  1.12  christos   IFS=$as_save_IFS
   4519  1.12  christos   case $as_dir in #(((
   4520  1.12  christos     '') as_dir=./ ;;
   4521  1.12  christos     */) ;;
   4522  1.12  christos     *) as_dir=$as_dir/ ;;
   4523  1.12  christos   esac
   4524  1.12  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4525  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4526  1.12  christos     ac_cv_path_BREW="$as_dir$ac_word$ac_exec_ext"
   4527  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4528  1.12  christos     break 2
   4529  1.12  christos   fi
   4530  1.12  christos done
   4531  1.12  christos   done
   4532  1.12  christos IFS=$as_save_IFS
   4533  1.12  christos 
   4534  1.12  christos   ;;
   4535  1.12  christos esac
   4536  1.12  christos fi
   4537  1.12  christos BREW=$ac_cv_path_BREW
   4538  1.12  christos if test -n "$BREW"; then
   4539  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BREW" >&5
   4540  1.12  christos printf "%s\n" "$BREW" >&6; }
   4541  1.12  christos else
   4542  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4543  1.12  christos printf "%s\n" "no" >&6; }
   4544  1.12  christos fi
   4545  1.12  christos 
   4546  1.12  christos 
   4547   1.1  christos 
   4548   1.1  christos 
   4549   1.1  christos # Check whether --with-smi was given.
   4550  1.12  christos if test ${with_smi+y}
   4551  1.12  christos then :
   4552   1.1  christos   withval=$with_smi;
   4553  1.12  christos else $as_nop
   4554   1.1  christos   with_smi=yes
   4555   1.1  christos fi
   4556   1.1  christos 
   4557   1.1  christos 
   4558   1.1  christos if test "x$with_smi" != "xno" ; then
   4559  1.12  christos 	ac_fn_c_check_header_compile "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default"
   4560  1.12  christos if test "x$ac_cv_header_smi_h" = xyes
   4561  1.12  christos then :
   4562   1.1  christos 
   4563   1.5  christos 		#
   4564   1.5  christos 		# OK, we found smi.h.  Do we have libsmi with smiInit?
   4565   1.5  christos 		#
   4566  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5
   4567  1.12  christos printf %s "checking for smiInit in -lsmi... " >&6; }
   4568  1.12  christos if test ${ac_cv_lib_smi_smiInit+y}
   4569  1.12  christos then :
   4570  1.12  christos   printf %s "(cached) " >&6
   4571  1.12  christos else $as_nop
   4572   1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4573   1.1  christos LIBS="-lsmi  $LIBS"
   4574   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4575   1.1  christos /* end confdefs.h.  */
   4576   1.1  christos 
   4577   1.1  christos /* Override any GCC internal prototype to avoid an error.
   4578   1.1  christos    Use char because int might match the return type of a GCC
   4579   1.1  christos    builtin and then its argument prototype would still apply.  */
   4580   1.1  christos char smiInit ();
   4581   1.1  christos int
   4582  1.12  christos main (void)
   4583   1.1  christos {
   4584   1.1  christos return smiInit ();
   4585   1.1  christos   ;
   4586   1.1  christos   return 0;
   4587   1.1  christos }
   4588   1.1  christos _ACEOF
   4589  1.12  christos if ac_fn_c_try_link "$LINENO"
   4590  1.12  christos then :
   4591   1.1  christos   ac_cv_lib_smi_smiInit=yes
   4592  1.12  christos else $as_nop
   4593   1.4  christos   ac_cv_lib_smi_smiInit=no
   4594   1.1  christos fi
   4595  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4596   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   4597   1.1  christos LIBS=$ac_check_lib_save_LIBS
   4598   1.1  christos fi
   4599  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5
   4600  1.12  christos printf "%s\n" "$ac_cv_lib_smi_smiInit" >&6; }
   4601  1.12  christos if test "x$ac_cv_lib_smi_smiInit" = xyes
   4602  1.12  christos then :
   4603   1.1  christos 
   4604   1.5  christos 			#
   4605   1.5  christos 			# OK, we have libsmi with smiInit.  Can we use it?
   4606   1.5  christos 			#
   4607  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5
   4608  1.12  christos printf %s "checking whether to enable libsmi... " >&6; }
   4609   1.5  christos 			savedlibs="$LIBS"
   4610   1.5  christos 			LIBS="-lsmi $LIBS"
   4611  1.12  christos 			if test "$cross_compiling" = yes
   4612  1.12  christos then :
   4613   1.1  christos 
   4614  1.12  christos 					{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5
   4615  1.12  christos printf "%s\n" "not when cross-compiling" >&6; }
   4616   1.5  christos 					LIBS="$savedlibs"
   4617   1.1  christos 
   4618   1.1  christos 
   4619  1.12  christos else $as_nop
   4620   1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4621   1.1  christos /* end confdefs.h.  */
   4622   1.5  christos 
   4623   1.5  christos /* libsmi available check */
   4624  1.11  christos #include <stdio.h>
   4625  1.11  christos #include <stdlib.h>
   4626  1.11  christos #include <string.h>
   4627   1.1  christos #include <smi.h>
   4628  1.11  christos int main()
   4629   1.1  christos {
   4630   1.1  christos   int current, revision, age, n;
   4631   1.1  christos   const int required = 2;
   4632   1.1  christos   if (smiInit(""))
   4633   1.1  christos     exit(1);
   4634   1.1  christos   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
   4635   1.1  christos     exit(2);
   4636   1.1  christos   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
   4637   1.1  christos   if (n != 3)
   4638   1.1  christos     exit(3);
   4639   1.1  christos   if (required < current - age || required > current)
   4640   1.1  christos     exit(4);
   4641   1.1  christos   exit(0);
   4642   1.1  christos }
   4643   1.1  christos 
   4644  1.12  christos 
   4645   1.1  christos _ACEOF
   4646  1.12  christos if ac_fn_c_try_run "$LINENO"
   4647  1.12  christos then :
   4648   1.5  christos 
   4649  1.12  christos 					{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4650  1.12  christos printf "%s\n" "yes" >&6; }
   4651   1.4  christos 
   4652  1.12  christos printf "%s\n" "#define USE_LIBSMI 1" >>confdefs.h
   4653   1.5  christos 
   4654   1.1  christos 
   4655  1.12  christos else $as_nop
   4656   1.5  christos 
   4657   1.5  christos 																																			case $? in
   4658  1.12  christos 					  1) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5
   4659  1.12  christos printf "%s\n" "no - smiInit failed" >&6; } ;;
   4660  1.12  christos 					  2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5
   4661  1.12  christos printf "%s\n" "no - header/library version mismatch" >&6; } ;;
   4662  1.12  christos 					  3) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5
   4663  1.12  christos printf "%s\n" "no - can't determine library version" >&6; } ;;
   4664  1.12  christos 					  4) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5
   4665  1.12  christos printf "%s\n" "no - too old" >&6; } ;;
   4666  1.12  christos 					  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4667  1.12  christos printf "%s\n" "no" >&6; } ;;
   4668   1.5  christos 					esac
   4669   1.5  christos 					LIBS="$savedlibs"
   4670   1.5  christos 
   4671   1.1  christos fi
   4672   1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4673   1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4674   1.1  christos fi
   4675   1.1  christos 
   4676   1.5  christos 
   4677   1.5  christos fi
   4678   1.5  christos 
   4679   1.5  christos 
   4680   1.1  christos fi
   4681   1.5  christos 
   4682  1.12  christos fi
   4683  1.12  christos 
   4684  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the instrument functions code" >&5
   4685  1.12  christos printf %s "checking whether to enable the instrument functions code... " >&6; }
   4686  1.12  christos # Check whether --enable-instrument-functions was given.
   4687  1.12  christos if test ${enable_instrument_functions+y}
   4688  1.12  christos then :
   4689  1.12  christos   enableval=$enable_instrument_functions;
   4690  1.12  christos else $as_nop
   4691  1.12  christos   enableval=no
   4692  1.12  christos fi
   4693  1.12  christos 
   4694  1.12  christos case "$enableval" in
   4695  1.12  christos yes)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4696  1.12  christos printf "%s\n" "yes" >&6; }
   4697  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
   4698  1.12  christos printf %s "checking for bfd_init in -lbfd... " >&6; }
   4699  1.12  christos if test ${ac_cv_lib_bfd_bfd_init+y}
   4700  1.12  christos then :
   4701  1.12  christos   printf %s "(cached) " >&6
   4702  1.12  christos else $as_nop
   4703  1.12  christos   ac_check_lib_save_LIBS=$LIBS
   4704  1.12  christos LIBS="-lbfd  $LIBS"
   4705  1.12  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4706  1.12  christos /* end confdefs.h.  */
   4707   1.5  christos 
   4708  1.12  christos /* Override any GCC internal prototype to avoid an error.
   4709  1.12  christos    Use char because int might match the return type of a GCC
   4710  1.12  christos    builtin and then its argument prototype would still apply.  */
   4711  1.12  christos char bfd_init ();
   4712  1.12  christos int
   4713  1.12  christos main (void)
   4714  1.12  christos {
   4715  1.12  christos return bfd_init ();
   4716  1.12  christos   ;
   4717  1.12  christos   return 0;
   4718  1.12  christos }
   4719  1.12  christos _ACEOF
   4720  1.12  christos if ac_fn_c_try_link "$LINENO"
   4721  1.12  christos then :
   4722  1.12  christos   ac_cv_lib_bfd_bfd_init=yes
   4723  1.12  christos else $as_nop
   4724  1.12  christos   ac_cv_lib_bfd_bfd_init=no
   4725  1.12  christos fi
   4726  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4727  1.12  christos     conftest$ac_exeext conftest.$ac_ext
   4728  1.12  christos LIBS=$ac_check_lib_save_LIBS
   4729  1.12  christos fi
   4730  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
   4731  1.12  christos printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; }
   4732  1.12  christos if test "x$ac_cv_lib_bfd_bfd_init" = xyes
   4733  1.12  christos then :
   4734  1.12  christos   true
   4735  1.12  christos else $as_nop
   4736  1.12  christos   as_fn_error $? "--enable-instrument-functions was given, but test for library libbfd failed. Please install the 'binutils-dev' package." "$LINENO" 5
   4737   1.1  christos fi
   4738   1.1  christos 
   4739  1.12  christos 
   4740  1.12  christos printf "%s\n" "#define ENABLE_INSTRUMENT_FUNCTIONS 1" >>confdefs.h
   4741  1.12  christos 
   4742  1.12  christos 	LOCALSRC="$LOCALSRC instrument-functions.c"
   4743  1.12  christos 	# Add '-finstrument-functions' instrumentation option to generate
   4744  1.12  christos 	# instrumentation calls for entry and exit to functions.
   4745  1.12  christos 	# Try to avoid Address Space Layout Randomization (ALSR).
   4746  1.12  christos 	CFLAGS="$CFLAGS -O0 -ggdb -finstrument-functions -fno-stack-protector -fno-pic"
   4747  1.12  christos 	LDFLAGS="$LDFLAGS -O0 -ggdb -fno-stack-protector -no-pie"
   4748  1.12  christos 	LIBS="$LIBS -lbfd"
   4749  1.12  christos 	;;
   4750  1.12  christos *)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4751  1.12  christos printf "%s\n" "no" >&6; }
   4752  1.12  christos 	;;
   4753  1.12  christos esac
   4754  1.12  christos 
   4755  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5
   4756  1.12  christos printf %s "checking whether to enable the possibly-buggy SMB printer... " >&6; }
   4757   1.1  christos # Check whether --enable-smb was given.
   4758  1.12  christos if test ${enable_smb+y}
   4759  1.12  christos then :
   4760   1.1  christos   enableval=$enable_smb;
   4761  1.12  christos else $as_nop
   4762  1.10  christos   enableval=no
   4763   1.1  christos fi
   4764   1.1  christos 
   4765   1.1  christos case "$enableval" in
   4766  1.12  christos yes)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4767  1.12  christos printf "%s\n" "yes" >&6; }
   4768   1.4  christos 
   4769  1.12  christos printf "%s\n" "#define ENABLE_SMB 1" >>confdefs.h
   4770   1.1  christos 
   4771   1.1  christos 	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
   4772   1.1  christos 	;;
   4773  1.12  christos *)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4774  1.12  christos printf "%s\n" "no" >&6; }
   4775   1.1  christos 	;;
   4776   1.1  christos esac
   4777   1.1  christos 
   4778  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5
   4779  1.12  christos printf %s "checking whether to drop root privileges by default... " >&6; }
   4780   1.1  christos 
   4781   1.1  christos # Check whether --with-user was given.
   4782  1.12  christos if test ${with_user+y}
   4783  1.12  christos then :
   4784   1.1  christos   withval=$with_user;
   4785  1.12  christos else $as_nop
   4786  1.12  christos   withval=no
   4787   1.1  christos fi
   4788   1.1  christos 
   4789  1.12  christos case "$withval" in #(
   4790  1.12  christos   no) :
   4791  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4792  1.12  christos printf "%s\n" "no" >&6; } ;; #(
   4793  1.12  christos   ''|yes) :
   4794  1.12  christos     as_fn_error $? "--with-user requires a username" "$LINENO" 5 ;; #(
   4795  1.12  christos   *) :
   4796  1.12  christos 
   4797   1.4  christos 
   4798  1.12  christos printf "%s\n" "#define WITH_USER \"$withval\"" >>confdefs.h
   4799  1.12  christos 
   4800  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to user \"$withval\"" >&5
   4801  1.12  christos printf "%s\n" "yes, to user \"$withval\"" >&6; }
   4802   1.1  christos 
   4803  1.12  christos  ;;
   4804  1.12  christos esac
   4805   1.1  christos 
   4806  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5
   4807  1.12  christos printf %s "checking whether to chroot... " >&6; }
   4808   1.1  christos 
   4809   1.1  christos # Check whether --with-chroot was given.
   4810  1.12  christos if test ${with_chroot+y}
   4811  1.12  christos then :
   4812   1.1  christos   withval=$with_chroot;
   4813  1.12  christos else $as_nop
   4814  1.12  christos   withval=no
   4815  1.12  christos 
   4816   1.1  christos fi
   4817   1.1  christos 
   4818  1.12  christos case "$withval" in #(
   4819  1.12  christos   no) :
   4820  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4821  1.12  christos printf "%s\n" "no" >&6; } ;; #(
   4822  1.12  christos   ''|yes) :
   4823  1.12  christos     as_fn_error $? "--with-chroot requires a directory" "$LINENO" 5 ;; #(
   4824  1.12  christos   *) :
   4825  1.12  christos 
   4826  1.12  christos 
   4827  1.12  christos printf "%s\n" "#define WITH_CHROOT \"$withval\"" >>confdefs.h
   4828   1.4  christos 
   4829  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to directory \"$withval\"" >&5
   4830  1.12  christos printf "%s\n" "yes, to directory \"$withval\"" >&6; }
   4831   1.1  christos 
   4832  1.12  christos  ;;
   4833  1.12  christos esac
   4834   1.1  christos 
   4835   1.5  christos 
   4836   1.5  christos # Check whether --with-sandbox-capsicum was given.
   4837  1.12  christos if test ${with_sandbox_capsicum+y}
   4838  1.12  christos then :
   4839   1.5  christos   withval=$with_sandbox_capsicum;
   4840   1.5  christos fi
   4841   1.5  christos 
   4842   1.5  christos #
   4843   1.5  christos # Check whether various functions are available.  If any are, set
   4844   1.5  christos # ac_lbl_capsicum_function_seen to yes; if any are not, set
   4845   1.5  christos # ac_lbl_capsicum_function_not_seen to yes.
   4846   1.5  christos #
   4847   1.6  christos # We don't check cap_rights_init(), as it's a macro, wrapping another
   4848   1.6  christos # function, in at least some versions of FreeBSD, and AC_CHECK_FUNCS()
   4849   1.6  christos # doesn't handle that.
   4850   1.6  christos #
   4851   1.6  christos # All of the ones we check for must be available in order to enable
   4852   1.6  christos # capsicum sandboxing.
   4853   1.6  christos #
   4854   1.6  christos # XXX - do we need to check for all of them, or are there some that, if
   4855   1.6  christos # present, imply others are present?
   4856   1.5  christos #
   4857  1.11  christos if test -z "$with_sandbox_capsicum" || test "$with_sandbox_capsicum" != "no" ; then
   4858  1.11  christos 	#
   4859  1.11  christos 	# First, make sure we have the required header.
   4860  1.11  christos 	#
   4861  1.12  christos 	ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "$ac_includes_default"
   4862  1.12  christos if test "x$ac_cv_header_sys_capsicum_h" = xyes
   4863  1.12  christos then :
   4864  1.11  christos 
   4865  1.11  christos 		#
   4866  1.11  christos 		# We do; now make sure we have the required functions.
   4867  1.11  christos 		#
   4868  1.12  christos 
   4869  1.12  christos   for ac_func in cap_enter cap_rights_limit cap_ioctls_limit openat
   4870   1.5  christos do :
   4871  1.12  christos   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
   4872   1.5  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   4873  1.12  christos if eval test \"x\$"$as_ac_var"\" = x"yes"
   4874  1.12  christos then :
   4875   1.5  christos   cat >>confdefs.h <<_ACEOF
   4876  1.12  christos #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
   4877   1.5  christos _ACEOF
   4878   1.5  christos  ac_lbl_capsicum_function_seen=yes
   4879  1.12  christos else $as_nop
   4880   1.5  christos   ac_lbl_capsicum_function_not_seen=yes
   4881   1.5  christos fi
   4882  1.12  christos 
   4883   1.5  christos done
   4884   1.5  christos 
   4885  1.11  christos fi
   4886  1.11  christos 
   4887  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcasper" >&5
   4888  1.12  christos printf %s "checking for cap_init in -lcasper... " >&6; }
   4889  1.12  christos if test ${ac_cv_lib_casper_cap_init+y}
   4890  1.12  christos then :
   4891  1.12  christos   printf %s "(cached) " >&6
   4892  1.12  christos else $as_nop
   4893  1.11  christos   ac_check_lib_save_LIBS=$LIBS
   4894  1.11  christos LIBS="-lcasper  $LIBS"
   4895  1.11  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4896  1.11  christos /* end confdefs.h.  */
   4897  1.11  christos 
   4898  1.11  christos /* Override any GCC internal prototype to avoid an error.
   4899  1.11  christos    Use char because int might match the return type of a GCC
   4900  1.11  christos    builtin and then its argument prototype would still apply.  */
   4901  1.11  christos char cap_init ();
   4902  1.11  christos int
   4903  1.12  christos main (void)
   4904  1.11  christos {
   4905  1.11  christos return cap_init ();
   4906  1.11  christos   ;
   4907  1.11  christos   return 0;
   4908  1.11  christos }
   4909  1.11  christos _ACEOF
   4910  1.12  christos if ac_fn_c_try_link "$LINENO"
   4911  1.12  christos then :
   4912  1.11  christos   ac_cv_lib_casper_cap_init=yes
   4913  1.12  christos else $as_nop
   4914  1.11  christos   ac_cv_lib_casper_cap_init=no
   4915  1.11  christos fi
   4916  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4917  1.11  christos     conftest$ac_exeext conftest.$ac_ext
   4918  1.11  christos LIBS=$ac_check_lib_save_LIBS
   4919  1.11  christos fi
   4920  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_casper_cap_init" >&5
   4921  1.12  christos printf "%s\n" "$ac_cv_lib_casper_cap_init" >&6; }
   4922  1.12  christos if test "x$ac_cv_lib_casper_cap_init" = xyes
   4923  1.12  christos then :
   4924  1.11  christos   LIBS="$LIBS -lcasper"
   4925  1.11  christos fi
   4926  1.11  christos 
   4927  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_gethostbyaddr in -lcap_dns" >&5
   4928  1.12  christos printf %s "checking for cap_gethostbyaddr in -lcap_dns... " >&6; }
   4929  1.12  christos if test ${ac_cv_lib_cap_dns_cap_gethostbyaddr+y}
   4930  1.12  christos then :
   4931  1.12  christos   printf %s "(cached) " >&6
   4932  1.12  christos else $as_nop
   4933  1.11  christos   ac_check_lib_save_LIBS=$LIBS
   4934  1.11  christos LIBS="-lcap_dns  $LIBS"
   4935  1.11  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4936  1.11  christos /* end confdefs.h.  */
   4937  1.11  christos 
   4938  1.11  christos /* Override any GCC internal prototype to avoid an error.
   4939  1.11  christos    Use char because int might match the return type of a GCC
   4940  1.11  christos    builtin and then its argument prototype would still apply.  */
   4941  1.11  christos char cap_gethostbyaddr ();
   4942  1.11  christos int
   4943  1.12  christos main (void)
   4944  1.11  christos {
   4945  1.11  christos return cap_gethostbyaddr ();
   4946  1.11  christos   ;
   4947  1.11  christos   return 0;
   4948  1.11  christos }
   4949  1.11  christos _ACEOF
   4950  1.12  christos if ac_fn_c_try_link "$LINENO"
   4951  1.12  christos then :
   4952  1.11  christos   ac_cv_lib_cap_dns_cap_gethostbyaddr=yes
   4953  1.12  christos else $as_nop
   4954  1.11  christos   ac_cv_lib_cap_dns_cap_gethostbyaddr=no
   4955  1.11  christos fi
   4956  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4957  1.11  christos     conftest$ac_exeext conftest.$ac_ext
   4958  1.11  christos LIBS=$ac_check_lib_save_LIBS
   4959  1.11  christos fi
   4960  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_dns_cap_gethostbyaddr" >&5
   4961  1.12  christos printf "%s\n" "$ac_cv_lib_cap_dns_cap_gethostbyaddr" >&6; }
   4962  1.12  christos if test "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = xyes
   4963  1.12  christos then :
   4964  1.11  christos   LIBS="$LIBS -lcap_dns"
   4965  1.11  christos fi
   4966  1.11  christos 
   4967   1.5  christos fi
   4968  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using capsicum" >&5
   4969  1.12  christos printf %s "checking whether to sandbox using capsicum... " >&6; }
   4970   1.5  christos if test "x$ac_lbl_capsicum_function_seen" = "xyes" -a "x$ac_lbl_capsicum_function_not_seen" != "xyes"; then
   4971   1.5  christos 
   4972  1.12  christos printf "%s\n" "#define HAVE_CAPSICUM 1" >>confdefs.h
   4973   1.5  christos 
   4974  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4975  1.12  christos printf "%s\n" "yes" >&6; }
   4976   1.5  christos else
   4977  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4978  1.12  christos printf "%s\n" "no" >&6; }
   4979   1.5  christos fi
   4980  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using Casper library" >&5
   4981  1.12  christos printf %s "checking whether to sandbox using Casper library... " >&6; }
   4982  1.11  christos if test "x$ac_cv_lib_casper_cap_init" = "xyes" -a "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = "xyes"; then
   4983  1.11  christos 
   4984  1.12  christos printf "%s\n" "#define HAVE_CASPER 1" >>confdefs.h
   4985  1.11  christos 
   4986  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4987  1.12  christos printf "%s\n" "yes" >&6; }
   4988  1.11  christos else
   4989  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4990  1.12  christos printf "%s\n" "no" >&6; }
   4991  1.11  christos fi
   4992   1.5  christos 
   4993   1.4  christos #
   4994   1.7  christos # We must check this before checking whether to check the OS's IPv6,
   4995   1.7  christos # support because, on some platforms (such as SunOS 5.x), the test
   4996   1.7  christos # program requires the extra networking libraries.
   4997   1.4  christos #
   4998   1.1  christos 
   4999  1.12  christos     # Most operating systems have gethostbyaddr() in the default searched
   5000   1.4  christos     # libraries (i.e. libc):
   5001   1.4  christos     # Some OSes (eg. Solaris) place it in libnsl
   5002   1.4  christos     # Some strange OSes (SINIX) have it in libsocket:
   5003  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
   5004  1.12  christos printf %s "checking for library containing gethostbyaddr... " >&6; }
   5005  1.12  christos if test ${ac_cv_search_gethostbyaddr+y}
   5006  1.12  christos then :
   5007  1.12  christos   printf %s "(cached) " >&6
   5008  1.12  christos else $as_nop
   5009   1.4  christos   ac_func_search_save_LIBS=$LIBS
   5010   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5011   1.4  christos /* end confdefs.h.  */
   5012   1.1  christos 
   5013   1.4  christos /* Override any GCC internal prototype to avoid an error.
   5014   1.4  christos    Use char because int might match the return type of a GCC
   5015   1.4  christos    builtin and then its argument prototype would still apply.  */
   5016  1.12  christos char gethostbyaddr ();
   5017   1.4  christos int
   5018  1.12  christos main (void)
   5019   1.1  christos {
   5020  1.12  christos return gethostbyaddr ();
   5021   1.4  christos   ;
   5022   1.4  christos   return 0;
   5023   1.1  christos }
   5024   1.1  christos _ACEOF
   5025  1.12  christos for ac_lib in '' network nsl socket resolv
   5026  1.12  christos do
   5027   1.4  christos   if test -z "$ac_lib"; then
   5028   1.4  christos     ac_res="none required"
   5029   1.4  christos   else
   5030   1.4  christos     ac_res=-l$ac_lib
   5031   1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5032   1.4  christos   fi
   5033  1.12  christos   if ac_fn_c_try_link "$LINENO"
   5034  1.12  christos then :
   5035  1.12  christos   ac_cv_search_gethostbyaddr=$ac_res
   5036   1.4  christos fi
   5037  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5038   1.4  christos     conftest$ac_exeext
   5039  1.12  christos   if test ${ac_cv_search_gethostbyaddr+y}
   5040  1.12  christos then :
   5041   1.4  christos   break
   5042   1.4  christos fi
   5043   1.4  christos done
   5044  1.12  christos if test ${ac_cv_search_gethostbyaddr+y}
   5045  1.12  christos then :
   5046   1.1  christos 
   5047  1.12  christos else $as_nop
   5048  1.12  christos   ac_cv_search_gethostbyaddr=no
   5049   1.1  christos fi
   5050   1.4  christos rm conftest.$ac_ext
   5051   1.4  christos LIBS=$ac_func_search_save_LIBS
   5052   1.1  christos fi
   5053  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
   5054  1.12  christos printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; }
   5055  1.12  christos ac_res=$ac_cv_search_gethostbyaddr
   5056  1.12  christos if test "$ac_res" != no
   5057  1.12  christos then :
   5058   1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5059   1.1  christos 
   5060   1.1  christos fi
   5061   1.1  christos 
   5062   1.4  christos     # Unfortunately libsocket sometimes depends on libnsl and
   5063   1.4  christos     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
   5064  1.12  christos     if test "$ac_cv_search_gethostbyaddr" = "no"
   5065   1.4  christos     then
   5066  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lsocket" >&5
   5067  1.12  christos printf %s "checking for gethostbyaddr in -lsocket... " >&6; }
   5068  1.12  christos if test ${ac_cv_lib_socket_gethostbyaddr+y}
   5069  1.12  christos then :
   5070  1.12  christos   printf %s "(cached) " >&6
   5071  1.12  christos else $as_nop
   5072   1.4  christos   ac_check_lib_save_LIBS=$LIBS
   5073   1.4  christos LIBS="-lsocket -lnsl $LIBS"
   5074   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5075   1.4  christos /* end confdefs.h.  */
   5076   1.1  christos 
   5077   1.4  christos /* Override any GCC internal prototype to avoid an error.
   5078   1.4  christos    Use char because int might match the return type of a GCC
   5079   1.4  christos    builtin and then its argument prototype would still apply.  */
   5080  1.12  christos char gethostbyaddr ();
   5081   1.4  christos int
   5082  1.12  christos main (void)
   5083   1.4  christos {
   5084  1.12  christos return gethostbyaddr ();
   5085   1.4  christos   ;
   5086   1.4  christos   return 0;
   5087   1.4  christos }
   5088   1.1  christos _ACEOF
   5089  1.12  christos if ac_fn_c_try_link "$LINENO"
   5090  1.12  christos then :
   5091  1.12  christos   ac_cv_lib_socket_gethostbyaddr=yes
   5092  1.12  christos else $as_nop
   5093  1.12  christos   ac_cv_lib_socket_gethostbyaddr=no
   5094   1.4  christos fi
   5095  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5096   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   5097   1.4  christos LIBS=$ac_check_lib_save_LIBS
   5098   1.4  christos fi
   5099  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyaddr" >&5
   5100  1.12  christos printf "%s\n" "$ac_cv_lib_socket_gethostbyaddr" >&6; }
   5101  1.12  christos if test "x$ac_cv_lib_socket_gethostbyaddr" = xyes
   5102  1.12  christos then :
   5103   1.4  christos   LIBS="-lsocket -lnsl $LIBS"
   5104   1.1  christos fi
   5105   1.1  christos 
   5106   1.4  christos     fi
   5107  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   5108  1.12  christos printf %s "checking for library containing socket... " >&6; }
   5109  1.12  christos if test ${ac_cv_search_socket+y}
   5110  1.12  christos then :
   5111  1.12  christos   printf %s "(cached) " >&6
   5112  1.12  christos else $as_nop
   5113   1.4  christos   ac_func_search_save_LIBS=$LIBS
   5114   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5115   1.1  christos /* end confdefs.h.  */
   5116   1.4  christos 
   5117   1.4  christos /* Override any GCC internal prototype to avoid an error.
   5118   1.4  christos    Use char because int might match the return type of a GCC
   5119   1.4  christos    builtin and then its argument prototype would still apply.  */
   5120   1.4  christos char socket ();
   5121   1.4  christos int
   5122  1.12  christos main (void)
   5123   1.4  christos {
   5124   1.4  christos return socket ();
   5125   1.4  christos   ;
   5126   1.4  christos   return 0;
   5127   1.4  christos }
   5128   1.1  christos _ACEOF
   5129  1.12  christos for ac_lib in '' socket
   5130  1.12  christos do
   5131   1.4  christos   if test -z "$ac_lib"; then
   5132   1.4  christos     ac_res="none required"
   5133   1.4  christos   else
   5134   1.4  christos     ac_res=-l$ac_lib
   5135   1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5136   1.4  christos   fi
   5137  1.12  christos   if ac_fn_c_try_link "$LINENO"
   5138  1.12  christos then :
   5139   1.4  christos   ac_cv_search_socket=$ac_res
   5140   1.4  christos fi
   5141  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5142   1.4  christos     conftest$ac_exeext
   5143  1.12  christos   if test ${ac_cv_search_socket+y}
   5144  1.12  christos then :
   5145   1.4  christos   break
   5146   1.1  christos fi
   5147   1.4  christos done
   5148  1.12  christos if test ${ac_cv_search_socket+y}
   5149  1.12  christos then :
   5150   1.1  christos 
   5151  1.12  christos else $as_nop
   5152   1.4  christos   ac_cv_search_socket=no
   5153   1.4  christos fi
   5154   1.4  christos rm conftest.$ac_ext
   5155   1.4  christos LIBS=$ac_func_search_save_LIBS
   5156   1.1  christos fi
   5157  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   5158  1.12  christos printf "%s\n" "$ac_cv_search_socket" >&6; }
   5159   1.4  christos ac_res=$ac_cv_search_socket
   5160  1.12  christos if test "$ac_res" != no
   5161  1.12  christos then :
   5162   1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5163   1.4  christos 
   5164  1.12  christos else $as_nop
   5165  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   5166  1.12  christos printf %s "checking for socket in -lsocket... " >&6; }
   5167  1.12  christos if test ${ac_cv_lib_socket_socket+y}
   5168  1.12  christos then :
   5169  1.12  christos   printf %s "(cached) " >&6
   5170  1.12  christos else $as_nop
   5171   1.4  christos   ac_check_lib_save_LIBS=$LIBS
   5172   1.4  christos LIBS="-lsocket -lnsl $LIBS"
   5173   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5174   1.4  christos /* end confdefs.h.  */
   5175   1.4  christos 
   5176   1.4  christos /* Override any GCC internal prototype to avoid an error.
   5177   1.4  christos    Use char because int might match the return type of a GCC
   5178   1.4  christos    builtin and then its argument prototype would still apply.  */
   5179   1.4  christos char socket ();
   5180   1.4  christos int
   5181  1.12  christos main (void)
   5182   1.4  christos {
   5183   1.4  christos return socket ();
   5184   1.4  christos   ;
   5185   1.4  christos   return 0;
   5186   1.4  christos }
   5187   1.4  christos _ACEOF
   5188  1.12  christos if ac_fn_c_try_link "$LINENO"
   5189  1.12  christos then :
   5190   1.4  christos   ac_cv_lib_socket_socket=yes
   5191  1.12  christos else $as_nop
   5192   1.4  christos   ac_cv_lib_socket_socket=no
   5193   1.4  christos fi
   5194  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5195   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   5196   1.4  christos LIBS=$ac_check_lib_save_LIBS
   5197   1.4  christos fi
   5198  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   5199  1.12  christos printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
   5200  1.12  christos if test "x$ac_cv_lib_socket_socket" = xyes
   5201  1.12  christos then :
   5202   1.4  christos   LIBS="-lsocket -lnsl $LIBS"
   5203   1.4  christos fi
   5204   1.4  christos 
   5205   1.4  christos fi
   5206   1.4  christos 
   5207   1.4  christos     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
   5208  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
   5209  1.12  christos printf %s "checking for library containing putmsg... " >&6; }
   5210  1.12  christos if test ${ac_cv_search_putmsg+y}
   5211  1.12  christos then :
   5212  1.12  christos   printf %s "(cached) " >&6
   5213  1.12  christos else $as_nop
   5214   1.4  christos   ac_func_search_save_LIBS=$LIBS
   5215   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5216   1.4  christos /* end confdefs.h.  */
   5217   1.4  christos 
   5218   1.4  christos /* Override any GCC internal prototype to avoid an error.
   5219   1.4  christos    Use char because int might match the return type of a GCC
   5220   1.4  christos    builtin and then its argument prototype would still apply.  */
   5221   1.4  christos char putmsg ();
   5222   1.4  christos int
   5223  1.12  christos main (void)
   5224   1.4  christos {
   5225   1.4  christos return putmsg ();
   5226   1.4  christos   ;
   5227   1.4  christos   return 0;
   5228   1.4  christos }
   5229   1.4  christos _ACEOF
   5230  1.12  christos for ac_lib in '' str
   5231  1.12  christos do
   5232   1.4  christos   if test -z "$ac_lib"; then
   5233   1.4  christos     ac_res="none required"
   5234   1.4  christos   else
   5235   1.4  christos     ac_res=-l$ac_lib
   5236   1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5237   1.4  christos   fi
   5238  1.12  christos   if ac_fn_c_try_link "$LINENO"
   5239  1.12  christos then :
   5240   1.4  christos   ac_cv_search_putmsg=$ac_res
   5241   1.4  christos fi
   5242  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5243   1.4  christos     conftest$ac_exeext
   5244  1.12  christos   if test ${ac_cv_search_putmsg+y}
   5245  1.12  christos then :
   5246   1.4  christos   break
   5247   1.4  christos fi
   5248   1.4  christos done
   5249  1.12  christos if test ${ac_cv_search_putmsg+y}
   5250  1.12  christos then :
   5251   1.4  christos 
   5252  1.12  christos else $as_nop
   5253   1.4  christos   ac_cv_search_putmsg=no
   5254   1.4  christos fi
   5255   1.4  christos rm conftest.$ac_ext
   5256   1.4  christos LIBS=$ac_func_search_save_LIBS
   5257   1.4  christos fi
   5258  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
   5259  1.12  christos printf "%s\n" "$ac_cv_search_putmsg" >&6; }
   5260   1.4  christos ac_res=$ac_cv_search_putmsg
   5261  1.12  christos if test "$ac_res" != no
   5262  1.12  christos then :
   5263   1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5264   1.4  christos 
   5265   1.4  christos fi
   5266   1.4  christos 
   5267   1.4  christos 
   5268   1.4  christos 
   5269   1.7  christos #
   5270   1.7  christos # Check whether AF_INET6 and struct in6_addr are defined.
   5271   1.7  christos # If they aren't both defined, we don't have sufficient OS
   5272   1.7  christos # support for IPv6, so we don't look for IPv6 support libraries,
   5273   1.7  christos # and we define AF_INET6 and struct in6_addr ourselves.
   5274   1.7  christos #
   5275  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports IPv6" >&5
   5276  1.12  christos printf %s "checking whether the operating system supports IPv6... " >&6; }
   5277   1.7  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5278   1.7  christos /* end confdefs.h.  */
   5279   1.4  christos 
   5280   1.5  christos 
   5281  1.11  christos #include <string.h>
   5282   1.7  christos /* AF_INET6 available check */
   5283   1.4  christos #include <sys/types.h>
   5284  1.11  christos #ifdef _WIN32
   5285  1.11  christos #include <ws2tcpip.h>
   5286  1.11  christos #else
   5287   1.4  christos #include <sys/socket.h>
   5288   1.5  christos #include <netinet/in.h>
   5289  1.11  christos #endif
   5290   1.5  christos #ifdef AF_INET6
   5291   1.5  christos void
   5292   1.5  christos foo(struct in6_addr *addr)
   5293   1.4  christos {
   5294   1.5  christos  memset(addr, 0, sizeof (struct in6_addr));
   5295   1.4  christos }
   5296   1.5  christos #else
   5297   1.5  christos #error "AF_INET6 not defined"
   5298   1.5  christos #endif
   5299   1.5  christos 
   5300   1.4  christos 
   5301   1.4  christos _ACEOF
   5302  1.12  christos if ac_fn_c_try_compile "$LINENO"
   5303  1.12  christos then :
   5304   1.7  christos 
   5305  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5306  1.12  christos printf "%s\n" "yes" >&6; }
   5307   1.4  christos 
   5308  1.12  christos printf "%s\n" "#define HAVE_OS_IPV6_SUPPORT 1" >>confdefs.h
   5309   1.7  christos 
   5310   1.7  christos 	ipv6=yes
   5311   1.4  christos 
   5312  1.12  christos else $as_nop
   5313   1.7  christos 
   5314  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5315  1.12  christos printf "%s\n" "no" >&6; }
   5316   1.7  christos 	ipv6=no
   5317   1.7  christos 
   5318   1.7  christos 
   5319   1.4  christos fi
   5320  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5321   1.4  christos 
   5322   1.4  christos ipv6type=unknown
   5323   1.4  christos ipv6lib=none
   5324  1.12  christos ipv6trylibc=no
   5325  1.12  christos 
   5326  1.12  christos if test "$ipv6" = "yes"; then
   5327  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
   5328  1.12  christos printf %s "checking ipv6 stack type... " >&6; }
   5329  1.12  christos 	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
   5330  1.12  christos 		case $i in
   5331  1.12  christos 		inria)
   5332  1.12  christos 						ac_ext=c
   5333  1.12  christos ac_cpp='$CPP $CPPFLAGS'
   5334  1.12  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5335  1.12  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5336  1.12  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5337  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   5338  1.12  christos printf %s "checking how to run the C preprocessor... " >&6; }
   5339  1.12  christos # On Suns, sometimes $CPP names a directory.
   5340  1.12  christos if test -n "$CPP" && test -d "$CPP"; then
   5341  1.12  christos   CPP=
   5342  1.12  christos fi
   5343  1.12  christos if test -z "$CPP"; then
   5344  1.12  christos   if test ${ac_cv_prog_CPP+y}
   5345  1.12  christos then :
   5346  1.12  christos   printf %s "(cached) " >&6
   5347  1.12  christos else $as_nop
   5348  1.12  christos       # Double quotes because $CC needs to be expanded
   5349  1.12  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
   5350  1.12  christos     do
   5351  1.12  christos       ac_preproc_ok=false
   5352  1.12  christos for ac_c_preproc_warn_flag in '' yes
   5353  1.12  christos do
   5354  1.12  christos   # Use a header file that comes with gcc, so configuring glibc
   5355  1.12  christos   # with a fresh cross-compiler works.
   5356  1.12  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   5357  1.12  christos   # not just through cpp. "Syntax error" is here to catch this case.
   5358  1.12  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5359  1.12  christos /* end confdefs.h.  */
   5360  1.12  christos #include <limits.h>
   5361  1.12  christos 		     Syntax error
   5362  1.12  christos _ACEOF
   5363  1.12  christos if ac_fn_c_try_cpp "$LINENO"
   5364  1.12  christos then :
   5365  1.12  christos 
   5366  1.12  christos else $as_nop
   5367  1.12  christos   # Broken: fails on valid input.
   5368  1.12  christos continue
   5369  1.12  christos fi
   5370  1.12  christos rm -f conftest.err conftest.i conftest.$ac_ext
   5371  1.12  christos 
   5372  1.12  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   5373  1.12  christos   # can be detected and how.
   5374  1.12  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5375  1.12  christos /* end confdefs.h.  */
   5376  1.12  christos #include <ac_nonexistent.h>
   5377  1.12  christos _ACEOF
   5378  1.12  christos if ac_fn_c_try_cpp "$LINENO"
   5379  1.12  christos then :
   5380  1.12  christos   # Broken: success on invalid input.
   5381  1.12  christos continue
   5382  1.12  christos else $as_nop
   5383  1.12  christos   # Passes both tests.
   5384  1.12  christos ac_preproc_ok=:
   5385  1.12  christos break
   5386  1.12  christos fi
   5387  1.12  christos rm -f conftest.err conftest.i conftest.$ac_ext
   5388  1.12  christos 
   5389  1.12  christos done
   5390  1.12  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5391  1.12  christos rm -f conftest.i conftest.err conftest.$ac_ext
   5392  1.12  christos if $ac_preproc_ok
   5393  1.12  christos then :
   5394  1.12  christos   break
   5395  1.12  christos fi
   5396  1.12  christos 
   5397  1.12  christos     done
   5398  1.12  christos     ac_cv_prog_CPP=$CPP
   5399  1.12  christos 
   5400  1.12  christos fi
   5401  1.12  christos   CPP=$ac_cv_prog_CPP
   5402  1.12  christos else
   5403  1.12  christos   ac_cv_prog_CPP=$CPP
   5404  1.12  christos fi
   5405  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   5406  1.12  christos printf "%s\n" "$CPP" >&6; }
   5407  1.12  christos ac_preproc_ok=false
   5408  1.12  christos for ac_c_preproc_warn_flag in '' yes
   5409  1.12  christos do
   5410  1.12  christos   # Use a header file that comes with gcc, so configuring glibc
   5411  1.12  christos   # with a fresh cross-compiler works.
   5412  1.12  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   5413  1.12  christos   # not just through cpp. "Syntax error" is here to catch this case.
   5414  1.12  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5415  1.12  christos /* end confdefs.h.  */
   5416  1.12  christos #include <limits.h>
   5417  1.12  christos 		     Syntax error
   5418  1.12  christos _ACEOF
   5419  1.12  christos if ac_fn_c_try_cpp "$LINENO"
   5420  1.12  christos then :
   5421  1.12  christos 
   5422  1.12  christos else $as_nop
   5423  1.12  christos   # Broken: fails on valid input.
   5424  1.12  christos continue
   5425  1.12  christos fi
   5426  1.12  christos rm -f conftest.err conftest.i conftest.$ac_ext
   5427  1.12  christos 
   5428  1.12  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   5429  1.12  christos   # can be detected and how.
   5430  1.12  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5431  1.12  christos /* end confdefs.h.  */
   5432  1.12  christos #include <ac_nonexistent.h>
   5433  1.12  christos _ACEOF
   5434  1.12  christos if ac_fn_c_try_cpp "$LINENO"
   5435  1.12  christos then :
   5436  1.12  christos   # Broken: success on invalid input.
   5437  1.12  christos continue
   5438  1.12  christos else $as_nop
   5439  1.12  christos   # Passes both tests.
   5440  1.12  christos ac_preproc_ok=:
   5441  1.12  christos break
   5442  1.12  christos fi
   5443  1.12  christos rm -f conftest.err conftest.i conftest.$ac_ext
   5444  1.12  christos 
   5445  1.12  christos done
   5446  1.12  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5447  1.12  christos rm -f conftest.i conftest.err conftest.$ac_ext
   5448  1.12  christos if $ac_preproc_ok
   5449  1.12  christos then :
   5450  1.12  christos 
   5451  1.12  christos else $as_nop
   5452  1.12  christos   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5453  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   5454  1.12  christos as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   5455  1.12  christos See \`config.log' for more details" "$LINENO" 5; }
   5456  1.12  christos fi
   5457  1.12  christos 
   5458  1.12  christos ac_ext=c
   5459  1.12  christos ac_cpp='$CPP $CPPFLAGS'
   5460  1.12  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5461  1.12  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5462  1.12  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5463  1.12  christos 
   5464  1.12  christos 
   5465  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   5466  1.12  christos printf %s "checking for grep that handles long lines and -e... " >&6; }
   5467  1.12  christos if test ${ac_cv_path_GREP+y}
   5468  1.12  christos then :
   5469  1.12  christos   printf %s "(cached) " >&6
   5470  1.12  christos else $as_nop
   5471  1.12  christos   if test -z "$GREP"; then
   5472  1.12  christos   ac_path_GREP_found=false
   5473  1.12  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   5474  1.12  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5475  1.12  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5476  1.12  christos do
   5477  1.12  christos   IFS=$as_save_IFS
   5478  1.12  christos   case $as_dir in #(((
   5479  1.12  christos     '') as_dir=./ ;;
   5480  1.12  christos     */) ;;
   5481  1.12  christos     *) as_dir=$as_dir/ ;;
   5482  1.12  christos   esac
   5483  1.12  christos     for ac_prog in grep ggrep
   5484  1.12  christos    do
   5485  1.12  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5486  1.12  christos       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
   5487  1.12  christos       as_fn_executable_p "$ac_path_GREP" || continue
   5488  1.12  christos # Check for GNU ac_path_GREP and select it if it is found.
   5489  1.12  christos   # Check for GNU $ac_path_GREP
   5490  1.12  christos case `"$ac_path_GREP" --version 2>&1` in
   5491  1.12  christos *GNU*)
   5492  1.12  christos   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   5493  1.12  christos *)
   5494  1.12  christos   ac_count=0
   5495  1.12  christos   printf %s 0123456789 >"conftest.in"
   5496  1.12  christos   while :
   5497  1.12  christos   do
   5498  1.12  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5499  1.12  christos     mv "conftest.tmp" "conftest.in"
   5500  1.12  christos     cp "conftest.in" "conftest.nl"
   5501  1.12  christos     printf "%s\n" 'GREP' >> "conftest.nl"
   5502  1.12  christos     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5503  1.12  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5504  1.12  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5505  1.12  christos     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5506  1.12  christos       # Best one so far, save it but keep looking for a better one
   5507  1.12  christos       ac_cv_path_GREP="$ac_path_GREP"
   5508  1.12  christos       ac_path_GREP_max=$ac_count
   5509  1.12  christos     fi
   5510  1.12  christos     # 10*(2^10) chars as input seems more than enough
   5511  1.12  christos     test $ac_count -gt 10 && break
   5512  1.12  christos   done
   5513  1.12  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5514  1.12  christos esac
   5515  1.12  christos 
   5516  1.12  christos       $ac_path_GREP_found && break 3
   5517  1.12  christos     done
   5518  1.12  christos   done
   5519  1.12  christos   done
   5520  1.12  christos IFS=$as_save_IFS
   5521  1.12  christos   if test -z "$ac_cv_path_GREP"; then
   5522  1.12  christos     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5523  1.12  christos   fi
   5524  1.12  christos else
   5525  1.12  christos   ac_cv_path_GREP=$GREP
   5526  1.12  christos fi
   5527  1.12  christos 
   5528  1.12  christos fi
   5529  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   5530  1.12  christos printf "%s\n" "$ac_cv_path_GREP" >&6; }
   5531  1.12  christos  GREP="$ac_cv_path_GREP"
   5532  1.12  christos 
   5533  1.12  christos 
   5534  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5535  1.12  christos printf %s "checking for egrep... " >&6; }
   5536  1.12  christos if test ${ac_cv_path_EGREP+y}
   5537  1.12  christos then :
   5538  1.12  christos   printf %s "(cached) " >&6
   5539  1.12  christos else $as_nop
   5540  1.12  christos   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5541  1.12  christos    then ac_cv_path_EGREP="$GREP -E"
   5542  1.12  christos    else
   5543  1.12  christos      if test -z "$EGREP"; then
   5544  1.12  christos   ac_path_EGREP_found=false
   5545  1.12  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   5546  1.12  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5547  1.12  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5548  1.12  christos do
   5549  1.12  christos   IFS=$as_save_IFS
   5550  1.12  christos   case $as_dir in #(((
   5551  1.12  christos     '') as_dir=./ ;;
   5552  1.12  christos     */) ;;
   5553  1.12  christos     *) as_dir=$as_dir/ ;;
   5554  1.12  christos   esac
   5555  1.12  christos     for ac_prog in egrep
   5556  1.12  christos    do
   5557  1.12  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5558  1.12  christos       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
   5559  1.12  christos       as_fn_executable_p "$ac_path_EGREP" || continue
   5560  1.12  christos # Check for GNU ac_path_EGREP and select it if it is found.
   5561  1.12  christos   # Check for GNU $ac_path_EGREP
   5562  1.12  christos case `"$ac_path_EGREP" --version 2>&1` in
   5563  1.12  christos *GNU*)
   5564  1.12  christos   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5565  1.12  christos *)
   5566  1.12  christos   ac_count=0
   5567  1.12  christos   printf %s 0123456789 >"conftest.in"
   5568  1.12  christos   while :
   5569  1.12  christos   do
   5570  1.12  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5571  1.12  christos     mv "conftest.tmp" "conftest.in"
   5572  1.12  christos     cp "conftest.in" "conftest.nl"
   5573  1.12  christos     printf "%s\n" 'EGREP' >> "conftest.nl"
   5574  1.12  christos     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5575  1.12  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5576  1.12  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5577  1.12  christos     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5578  1.12  christos       # Best one so far, save it but keep looking for a better one
   5579  1.12  christos       ac_cv_path_EGREP="$ac_path_EGREP"
   5580  1.12  christos       ac_path_EGREP_max=$ac_count
   5581  1.12  christos     fi
   5582  1.12  christos     # 10*(2^10) chars as input seems more than enough
   5583  1.12  christos     test $ac_count -gt 10 && break
   5584  1.12  christos   done
   5585  1.12  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5586  1.12  christos esac
   5587  1.12  christos 
   5588  1.12  christos       $ac_path_EGREP_found && break 3
   5589  1.12  christos     done
   5590  1.12  christos   done
   5591  1.12  christos   done
   5592  1.12  christos IFS=$as_save_IFS
   5593  1.12  christos   if test -z "$ac_cv_path_EGREP"; then
   5594  1.12  christos     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5595  1.12  christos   fi
   5596  1.12  christos else
   5597  1.12  christos   ac_cv_path_EGREP=$EGREP
   5598  1.12  christos fi
   5599  1.12  christos 
   5600  1.12  christos    fi
   5601  1.12  christos fi
   5602  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5603  1.12  christos printf "%s\n" "$ac_cv_path_EGREP" >&6; }
   5604  1.12  christos  EGREP="$ac_cv_path_EGREP"
   5605  1.12  christos 
   5606   1.4  christos 
   5607  1.12  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5608   1.4  christos /* end confdefs.h.  */
   5609   1.4  christos #include <netinet/in.h>
   5610   1.4  christos #ifdef IPV6_INRIA_VERSION
   5611   1.4  christos yes
   5612   1.4  christos #endif
   5613   1.4  christos _ACEOF
   5614   1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5615  1.12  christos   $EGREP "yes" >/dev/null 2>&1
   5616  1.12  christos then :
   5617   1.7  christos   ipv6type=$i
   5618   1.4  christos fi
   5619  1.12  christos rm -rf conftest*
   5620   1.4  christos 
   5621   1.4  christos 			;;
   5622   1.4  christos 		kame)
   5623   1.4  christos 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5624   1.4  christos /* end confdefs.h.  */
   5625   1.4  christos #include <netinet/in.h>
   5626   1.4  christos #ifdef __KAME__
   5627   1.4  christos yes
   5628   1.4  christos #endif
   5629   1.4  christos _ACEOF
   5630   1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5631  1.12  christos   $EGREP "yes" >/dev/null 2>&1
   5632  1.12  christos then :
   5633   1.4  christos   ipv6type=$i;
   5634   1.4  christos 				ipv6lib=inet6;
   5635   1.4  christos 				ipv6libdir=/usr/local/v6/lib;
   5636   1.7  christos 				ipv6trylibc=yes
   5637   1.4  christos fi
   5638  1.12  christos rm -rf conftest*
   5639   1.4  christos 
   5640   1.4  christos 			;;
   5641   1.4  christos 		linux-glibc)
   5642   1.4  christos 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5643   1.4  christos /* end confdefs.h.  */
   5644   1.4  christos #include <features.h>
   5645   1.4  christos #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
   5646   1.4  christos yes
   5647   1.4  christos #endif
   5648   1.4  christos _ACEOF
   5649   1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5650  1.12  christos   $EGREP "yes" >/dev/null 2>&1
   5651  1.12  christos then :
   5652   1.7  christos   ipv6type=$i
   5653   1.4  christos fi
   5654  1.12  christos rm -rf conftest*
   5655   1.1  christos 
   5656   1.1  christos 			;;
   5657   1.1  christos 		linux-libinet6)
   5658   1.1  christos 																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
   5659   1.1  christos 				ipv6type=$i
   5660   1.1  christos 				ipv6lib=inet6
   5661   1.1  christos 				ipv6libdir=/usr/inet6/lib
   5662   1.1  christos 				ipv6trylibc=yes;
   5663   1.7  christos 				CFLAGS="-I/usr/inet6/include $CFLAGS"
   5664   1.1  christos 			fi
   5665   1.1  christos 			;;
   5666   1.1  christos 		toshiba)
   5667   1.4  christos 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5668   1.1  christos /* end confdefs.h.  */
   5669   1.1  christos #include <sys/param.h>
   5670   1.1  christos #ifdef _TOSHIBA_INET6
   5671   1.1  christos yes
   5672   1.1  christos #endif
   5673   1.1  christos _ACEOF
   5674   1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5675  1.12  christos   $EGREP "yes" >/dev/null 2>&1
   5676  1.12  christos then :
   5677   1.1  christos   ipv6type=$i;
   5678   1.1  christos 				ipv6lib=inet6;
   5679   1.7  christos 				ipv6libdir=/usr/local/v6/lib
   5680   1.1  christos fi
   5681  1.12  christos rm -rf conftest*
   5682   1.1  christos 
   5683   1.1  christos 			;;
   5684   1.1  christos 		v6d)
   5685   1.4  christos 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5686   1.1  christos /* end confdefs.h.  */
   5687   1.1  christos #include </usr/local/v6/include/sys/v6config.h>
   5688   1.1  christos #ifdef __V6D__
   5689   1.1  christos yes
   5690   1.1  christos #endif
   5691   1.1  christos _ACEOF
   5692   1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5693  1.12  christos   $EGREP "yes" >/dev/null 2>&1
   5694  1.12  christos then :
   5695   1.1  christos   ipv6type=$i;
   5696   1.1  christos 				ipv6lib=v6;
   5697   1.1  christos 				ipv6libdir=/usr/local/v6/lib;
   5698   1.1  christos 				CFLAGS="-I/usr/local/v6/include $CFLAGS"
   5699   1.1  christos fi
   5700  1.12  christos rm -rf conftest*
   5701   1.1  christos 
   5702   1.1  christos 			;;
   5703   1.1  christos 		zeta)
   5704   1.4  christos 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5705   1.1  christos /* end confdefs.h.  */
   5706   1.1  christos #include <sys/param.h>
   5707   1.1  christos #ifdef _ZETA_MINAMI_INET6
   5708   1.1  christos yes
   5709   1.1  christos #endif
   5710   1.1  christos _ACEOF
   5711   1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5712  1.12  christos   $EGREP "yes" >/dev/null 2>&1
   5713  1.12  christos then :
   5714   1.1  christos   ipv6type=$i;
   5715   1.1  christos 				ipv6lib=inet6;
   5716   1.7  christos 				ipv6libdir=/usr/local/v6/lib
   5717   1.1  christos fi
   5718  1.12  christos rm -rf conftest*
   5719   1.1  christos 
   5720   1.1  christos 			;;
   5721   1.1  christos 		esac
   5722   1.1  christos 		if test "$ipv6type" != "unknown"; then
   5723   1.1  christos 			break
   5724   1.1  christos 		fi
   5725   1.1  christos 	done
   5726  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
   5727  1.12  christos printf "%s\n" "$ipv6type" >&6; }
   5728   1.1  christos fi
   5729   1.1  christos 
   5730   1.1  christos if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
   5731   1.1  christos 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
   5732   1.1  christos 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
   5733   1.1  christos 		echo "You have $ipv6lib library, using it"
   5734   1.1  christos 	else
   5735   1.1  christos 		if test "$ipv6trylibc" = "yes"; then
   5736   1.1  christos 			echo "You do not have $ipv6lib library, using libc"
   5737   1.1  christos 		else
   5738   1.1  christos 			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
   5739   1.1  christos 			echo "You need to fetch lib$ipv6lib.a from appropriate"
   5740   1.1  christos 			echo 'ipv6 kit and compile beforehand.'
   5741   1.1  christos 			exit 1
   5742   1.1  christos 		fi
   5743   1.1  christos 	fi
   5744   1.1  christos fi
   5745   1.1  christos 
   5746   1.4  christos ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   5747  1.12  christos if test "x$ac_cv_func_strlcat" = xyes
   5748  1.12  christos then :
   5749  1.12  christos   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
   5750   1.3  christos 
   5751  1.12  christos else $as_nop
   5752   1.4  christos   case " $LIBOBJS " in
   5753   1.4  christos   *" strlcat.$ac_objext "* ) ;;
   5754   1.4  christos   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
   5755   1.4  christos  ;;
   5756   1.4  christos esac
   5757   1.4  christos 
   5758   1.4  christos fi
   5759   1.4  christos ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   5760  1.12  christos if test "x$ac_cv_func_strlcpy" = xyes
   5761  1.12  christos then :
   5762  1.12  christos   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
   5763   1.3  christos 
   5764  1.12  christos else $as_nop
   5765   1.4  christos   case " $LIBOBJS " in
   5766   1.4  christos   *" strlcpy.$ac_objext "* ) ;;
   5767   1.4  christos   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
   5768   1.4  christos  ;;
   5769   1.4  christos esac
   5770   1.3  christos 
   5771   1.4  christos fi
   5772   1.4  christos ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
   5773  1.12  christos if test "x$ac_cv_func_strdup" = xyes
   5774  1.12  christos then :
   5775  1.12  christos   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
   5776   1.3  christos 
   5777  1.12  christos else $as_nop
   5778   1.4  christos   case " $LIBOBJS " in
   5779   1.4  christos   *" strdup.$ac_objext "* ) ;;
   5780   1.4  christos   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
   5781   1.4  christos  ;;
   5782   1.1  christos esac
   5783   1.1  christos 
   5784   1.1  christos fi
   5785   1.4  christos ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   5786  1.12  christos if test "x$ac_cv_func_strsep" = xyes
   5787  1.12  christos then :
   5788  1.12  christos   printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
   5789   1.1  christos 
   5790  1.12  christos else $as_nop
   5791   1.1  christos   case " $LIBOBJS " in
   5792   1.4  christos   *" strsep.$ac_objext "* ) ;;
   5793   1.4  christos   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
   5794   1.1  christos  ;;
   5795   1.1  christos esac
   5796   1.1  christos 
   5797   1.1  christos fi
   5798  1.11  christos ac_fn_c_check_func "$LINENO" "getservent" "ac_cv_func_getservent"
   5799  1.12  christos if test "x$ac_cv_func_getservent" = xyes
   5800  1.12  christos then :
   5801  1.12  christos   printf "%s\n" "#define HAVE_GETSERVENT 1" >>confdefs.h
   5802  1.11  christos 
   5803  1.12  christos else $as_nop
   5804  1.11  christos   case " $LIBOBJS " in
   5805  1.11  christos   *" getservent.$ac_objext "* ) ;;
   5806  1.11  christos   *) LIBOBJS="$LIBOBJS getservent.$ac_objext"
   5807  1.11  christos  ;;
   5808  1.11  christos esac
   5809  1.11  christos 
   5810  1.11  christos fi
   5811   1.5  christos ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
   5812  1.12  christos if test "x$ac_cv_func_getopt_long" = xyes
   5813  1.12  christos then :
   5814  1.12  christos   printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
   5815   1.5  christos 
   5816  1.12  christos else $as_nop
   5817   1.5  christos   case " $LIBOBJS " in
   5818   1.5  christos   *" getopt_long.$ac_objext "* ) ;;
   5819   1.5  christos   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
   5820   1.5  christos  ;;
   5821   1.5  christos esac
   5822   1.5  christos 
   5823   1.5  christos fi
   5824   1.5  christos 
   5825  1.12  christos ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
   5826  1.12  christos if test "x$ac_cv_func_fork" = xyes
   5827  1.12  christos then :
   5828  1.12  christos   printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
   5829   1.4  christos 
   5830  1.12  christos fi
   5831  1.12  christos ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
   5832  1.12  christos if test "x$ac_cv_func_vfork" = xyes
   5833  1.12  christos then :
   5834  1.12  christos   printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
   5835   1.4  christos 
   5836   1.4  christos fi
   5837   1.1  christos 
   5838  1.12  christos ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
   5839  1.12  christos if test "x$ac_cv_func_setlinebuf" = xyes
   5840  1.12  christos then :
   5841  1.12  christos   printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
   5842   1.1  christos 
   5843   1.4  christos fi
   5844   1.1  christos 
   5845   1.3  christos 
   5846  1.11  christos #
   5847  1.12  christos # It became apparent at some point that using a suitable C99 compiler does not
   5848  1.12  christos # automatically mean snprintf(3) implementation in the libc supports all the
   5849  1.12  christos # modifiers and specifiers used in the project, so let's test that before the
   5850  1.12  christos # build, not after.
   5851  1.12  christos #
   5852  1.12  christos # Testing the sizeof_t length modifier takes making an snprintf() call and
   5853  1.12  christos # comparing the actual result with the expected result.  If this fails, it will
   5854  1.12  christos # most likely happen at run time, not compile time.
   5855  1.11  christos #
   5856  1.12  christos # Testing the 64-bit conversion specifiers in addition to that requires the
   5857  1.12  christos # <inttypes.h> header to be present and the macros to be defined, so if this
   5858  1.12  christos # fails, it will more likely happen at compile time.
   5859  1.12  christos #
   5860  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is suitable" >&5
   5861  1.12  christos printf %s "checking whether snprintf is suitable... " >&6; }
   5862  1.12  christos if test "$cross_compiling" = yes
   5863  1.12  christos then :
   5864  1.11  christos 
   5865  1.12  christos         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not while cross-compiling" >&5
   5866  1.12  christos printf "%s\n" "not while cross-compiling" >&6; }
   5867  1.11  christos 
   5868  1.11  christos 
   5869  1.12  christos else $as_nop
   5870   1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5871   1.4  christos /* end confdefs.h.  */
   5872   1.1  christos 
   5873  1.11  christos 
   5874  1.11  christos #include <stdio.h>
   5875  1.11  christos #include <string.h>
   5876  1.12  christos #include <inttypes.h>
   5877  1.12  christos #include <sys/types.h>
   5878  1.11  christos 
   5879  1.13  christos #if defined(_WIN32) && !defined(_SSIZE_T_DEFINED)
   5880  1.13  christos /*
   5881  1.13  christos  * On UN*Xes, this is a signed integer type of the same size as size_t.
   5882  1.13  christos  *
   5883  1.13  christos  * It's not defined by Visual Studio; we assume that ptrdiff_t will
   5884  1.13  christos  * be a type that is a signed integer type of the same size as size_t.
   5885  1.13  christos  */
   5886  1.13  christos typedef ptrdiff_t ssize_t;
   5887  1.13  christos #endif
   5888  1.13  christos 
   5889  1.13  christos /*
   5890  1.13  christos  * Avoid trying to cast negative values to unsigned types, or doing
   5891  1.13  christos  * shifts of signed types, in order not to have the test program fail
   5892  1.13  christos  * if we're building with undefined-behavior sanitizers enabled.
   5893  1.13  christos  */
   5894  1.11  christos int main()
   5895   1.1  christos {
   5896  1.11  christos   char buf[100];
   5897  1.13  christos   unsigned int ui = sizeof(buf);
   5898  1.13  christos   int i = sizeof(buf);
   5899  1.13  christos   int64_t i64 = INT64_C(0x100000000);
   5900  1.13  christos   uint64_t ui64 = UINT64_C(0x100000000);
   5901  1.12  christos 
   5902  1.13  christos   snprintf(buf, sizeof(buf), "%zu", (size_t)ui);
   5903  1.12  christos   if (strncmp(buf, "100", sizeof(buf)))
   5904  1.12  christos     return 1;
   5905  1.12  christos 
   5906  1.13  christos   snprintf(buf, sizeof(buf), "%zd", (ssize_t)(-i));
   5907  1.12  christos   if (strncmp(buf, "-100", sizeof(buf)))
   5908  1.12  christos     return 2;
   5909  1.12  christos 
   5910  1.13  christos   snprintf(buf, sizeof(buf), "%" PRId64, -i64);
   5911  1.12  christos   if (strncmp(buf, "-4294967296", sizeof(buf)))
   5912  1.12  christos     return 3;
   5913  1.12  christos 
   5914  1.13  christos   snprintf(buf, sizeof(buf), "0o%" PRIo64, ui64);
   5915  1.12  christos   if (strncmp(buf, "0o40000000000", sizeof(buf)))
   5916  1.12  christos     return 4;
   5917  1.12  christos 
   5918  1.13  christos   snprintf(buf, sizeof(buf), "0x%" PRIx64, ui64);
   5919  1.12  christos   if (strncmp(buf, "0x100000000", sizeof(buf)))
   5920  1.12  christos     return 5;
   5921  1.12  christos 
   5922  1.13  christos   snprintf(buf, sizeof(buf), "%" PRIu64, ui64);
   5923  1.12  christos   if (strncmp(buf, "4294967296", sizeof(buf)))
   5924  1.12  christos     return 6;
   5925  1.12  christos 
   5926  1.12  christos   return 0;
   5927   1.1  christos }
   5928   1.1  christos 
   5929  1.11  christos 
   5930   1.1  christos _ACEOF
   5931  1.12  christos if ac_fn_c_try_run "$LINENO"
   5932  1.12  christos then :
   5933   1.4  christos 
   5934  1.12  christos         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5935  1.12  christos printf "%s\n" "yes" >&6; }
   5936   1.1  christos 
   5937  1.12  christos else $as_nop
   5938   1.1  christos 
   5939  1.12  christos         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5940  1.12  christos printf "%s\n" "no" >&6; }
   5941  1.12  christos         as_fn_error $? "The snprintf(3) implementation in this libc is not suitable,
   5942  1.12  christos tcpdump would not work correctly even if it managed to compile." "$LINENO" 5
   5943   1.1  christos 
   5944   1.1  christos fi
   5945  1.11  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5946  1.11  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5947   1.1  christos fi
   5948   1.1  christos 
   5949   1.1  christos 
   5950  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5
   5951  1.12  christos printf %s "checking for main in -lrpc... " >&6; }
   5952  1.12  christos if test ${ac_cv_lib_rpc_main+y}
   5953  1.12  christos then :
   5954  1.12  christos   printf %s "(cached) " >&6
   5955  1.12  christos else $as_nop
   5956   1.4  christos   ac_check_lib_save_LIBS=$LIBS
   5957   1.4  christos LIBS="-lrpc  $LIBS"
   5958   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5959   1.1  christos /* end confdefs.h.  */
   5960   1.1  christos 
   5961   1.1  christos 
   5962   1.1  christos int
   5963  1.12  christos main (void)
   5964   1.1  christos {
   5965   1.4  christos return main ();
   5966   1.1  christos   ;
   5967   1.1  christos   return 0;
   5968   1.1  christos }
   5969   1.1  christos _ACEOF
   5970  1.12  christos if ac_fn_c_try_link "$LINENO"
   5971  1.12  christos then :
   5972   1.4  christos   ac_cv_lib_rpc_main=yes
   5973  1.12  christos else $as_nop
   5974   1.4  christos   ac_cv_lib_rpc_main=no
   5975   1.1  christos fi
   5976  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5977   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   5978   1.4  christos LIBS=$ac_check_lib_save_LIBS
   5979   1.1  christos fi
   5980  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5
   5981  1.12  christos printf "%s\n" "$ac_cv_lib_rpc_main" >&6; }
   5982  1.12  christos if test "x$ac_cv_lib_rpc_main" = xyes
   5983  1.12  christos then :
   5984  1.12  christos   printf "%s\n" "#define HAVE_LIBRPC 1" >>confdefs.h
   5985   1.1  christos 
   5986   1.4  christos   LIBS="-lrpc $LIBS"
   5987   1.1  christos 
   5988   1.1  christos fi
   5989   1.1  christos 
   5990  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5
   5991  1.12  christos printf %s "checking for library containing getrpcbynumber... " >&6; }
   5992  1.12  christos if test ${ac_cv_search_getrpcbynumber+y}
   5993  1.12  christos then :
   5994  1.12  christos   printf %s "(cached) " >&6
   5995  1.12  christos else $as_nop
   5996   1.1  christos   ac_func_search_save_LIBS=$LIBS
   5997   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5998   1.1  christos /* end confdefs.h.  */
   5999   1.1  christos 
   6000   1.1  christos /* Override any GCC internal prototype to avoid an error.
   6001   1.1  christos    Use char because int might match the return type of a GCC
   6002   1.1  christos    builtin and then its argument prototype would still apply.  */
   6003   1.4  christos char getrpcbynumber ();
   6004   1.1  christos int
   6005  1.12  christos main (void)
   6006   1.1  christos {
   6007   1.4  christos return getrpcbynumber ();
   6008   1.1  christos   ;
   6009   1.1  christos   return 0;
   6010   1.1  christos }
   6011   1.1  christos _ACEOF
   6012  1.12  christos for ac_lib in '' nsl
   6013  1.12  christos do
   6014   1.1  christos   if test -z "$ac_lib"; then
   6015   1.1  christos     ac_res="none required"
   6016   1.1  christos   else
   6017   1.1  christos     ac_res=-l$ac_lib
   6018   1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6019   1.1  christos   fi
   6020  1.12  christos   if ac_fn_c_try_link "$LINENO"
   6021  1.12  christos then :
   6022   1.4  christos   ac_cv_search_getrpcbynumber=$ac_res
   6023   1.1  christos fi
   6024  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6025   1.4  christos     conftest$ac_exeext
   6026  1.12  christos   if test ${ac_cv_search_getrpcbynumber+y}
   6027  1.12  christos then :
   6028   1.1  christos   break
   6029   1.1  christos fi
   6030   1.1  christos done
   6031  1.12  christos if test ${ac_cv_search_getrpcbynumber+y}
   6032  1.12  christos then :
   6033   1.4  christos 
   6034  1.12  christos else $as_nop
   6035   1.4  christos   ac_cv_search_getrpcbynumber=no
   6036   1.1  christos fi
   6037   1.1  christos rm conftest.$ac_ext
   6038   1.1  christos LIBS=$ac_func_search_save_LIBS
   6039   1.1  christos fi
   6040  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5
   6041  1.12  christos printf "%s\n" "$ac_cv_search_getrpcbynumber" >&6; }
   6042   1.4  christos ac_res=$ac_cv_search_getrpcbynumber
   6043  1.12  christos if test "$ac_res" != no
   6044  1.12  christos then :
   6045   1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6046   1.4  christos 
   6047  1.12  christos printf "%s\n" "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h
   6048   1.1  christos 
   6049   1.1  christos fi
   6050   1.1  christos 
   6051   1.1  christos 
   6052   1.1  christos 
   6053  1.12  christos 
   6054  1.12  christos 
   6055   1.4  christos                 LBL_LIBS="$LIBS"
   6056   1.4  christos     pfopen=/usr/examples/packetfilter/pfopen.c
   6057   1.4  christos     if test -f $pfopen ; then
   6058  1.12  christos         ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen"
   6059  1.12  christos if test "x$ac_cv_func_pfopen" = xyes
   6060  1.12  christos then :
   6061  1.12  christos   printf "%s\n" "#define HAVE_PFOPEN 1" >>confdefs.h
   6062   1.1  christos 
   6063   1.1  christos fi
   6064   1.1  christos 
   6065  1.11  christos         if test $ac_cv_func_pfopen = "no" ; then
   6066  1.12  christos             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5
   6067  1.12  christos printf "%s\n" "Using $pfopen" >&6; }
   6068  1.11  christos             LIBS="$LIBS $pfopen"
   6069  1.11  christos         fi
   6070   1.1  christos     fi
   6071  1.11  christos     libpcap=FAIL
   6072  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to look for a local libpcap" >&5
   6073  1.12  christos printf %s "checking whether to look for a local libpcap... " >&6; }
   6074  1.11  christos     # Check whether --enable-local-libpcap was given.
   6075  1.12  christos if test ${enable_local_libpcap+y}
   6076  1.12  christos then :
   6077  1.11  christos   enableval=$enable_local_libpcap;
   6078  1.12  christos else $as_nop
   6079  1.11  christos   enableval=yes
   6080  1.11  christos fi
   6081  1.11  christos 
   6082  1.11  christos     case "$enableval" in
   6083  1.11  christos 
   6084  1.11  christos     no)
   6085  1.12  christos         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6086  1.12  christos printf "%s\n" "no" >&6; }
   6087  1.11  christos         #
   6088  1.11  christos         # Don't look for a local libpcap.
   6089  1.11  christos         #
   6090  1.11  christos         using_local_libpcap=no
   6091  1.11  christos         ;;
   6092  1.11  christos 
   6093  1.11  christos     *)
   6094  1.12  christos         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6095  1.12  christos printf "%s\n" "yes" >&6; }
   6096  1.11  christos         #
   6097  1.11  christos         # Look for a local pcap library.
   6098  1.11  christos         #
   6099  1.12  christos         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5
   6100  1.12  christos printf %s "checking for local pcap library... " >&6; }
   6101  1.11  christos         lastdir=FAIL
   6102  1.11  christos         places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
   6103  1.12  christos             $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'`
   6104  1.11  christos         places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
   6105  1.12  christos             $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'`
   6106  1.11  christos         for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do
   6107  1.11  christos             basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
   6108  1.11  christos                 sed -e 's/-PRE-GIT$//' `
   6109  1.11  christos             if test $lastdir = $basedir ; then
   6110  1.11  christos                                 continue;
   6111  1.11  christos             fi
   6112  1.11  christos             lastdir=$dir
   6113  1.11  christos             if test -r $dir/libpcap.a ; then
   6114  1.11  christos                 libpcap=$dir/libpcap.a
   6115  1.11  christos                 local_pcap_dir=$dir
   6116  1.11  christos                             fi
   6117  1.11  christos         done
   6118  1.11  christos         if test $libpcap = FAIL ; then
   6119  1.11  christos             #
   6120  1.11  christos             # We didn't find a local libpcap.
   6121  1.11  christos             #
   6122  1.12  christos             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   6123  1.12  christos printf "%s\n" "not found" >&6; }
   6124  1.11  christos             using_local_libpcap=no;
   6125  1.11  christos         else
   6126  1.11  christos             #
   6127  1.11  christos             # We found a local libpcap.
   6128  1.11  christos             #
   6129  1.12  christos             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5
   6130  1.12  christos printf "%s\n" "$libpcap" >&6; }
   6131  1.11  christos             using_local_libpcap=yes
   6132  1.11  christos         fi
   6133  1.11  christos         ;;
   6134  1.11  christos     esac
   6135  1.11  christos 
   6136  1.11  christos     if test $using_local_libpcap = no ; then
   6137  1.11  christos         #
   6138  1.11  christos         # We didn't find a local libpcap.
   6139  1.11  christos         # Look for an installed pkg-config.
   6140  1.11  christos         #
   6141  1.11  christos         if test -n "$PKG_CONFIG" ; then
   6142  1.11  christos             #
   6143  1.11  christos             # We have it.  Are there .pc files for libpcap?
   6144  1.11  christos             #
   6145  1.11  christos             # --exists was introduced in pkg-config 0.4.0; that
   6146  1.11  christos             # dates back to late 2000, so we won't worry about
   6147  1.11  christos             # earlier releases that lack it.
   6148  1.11  christos             #
   6149  1.12  christos             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether there are .pc files for libpcap" >&5
   6150  1.12  christos printf %s "checking whether there are .pc files for libpcap... " >&6; }
   6151  1.11  christos             if "$PKG_CONFIG" libpcap --exists ; then
   6152  1.11  christos                 #
   6153  1.11  christos                 # Yes, so we can use pkg-config to get configuration
   6154  1.11  christos                 # information for libpcap.
   6155  1.11  christos                 #
   6156  1.12  christos                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6157  1.12  christos printf "%s\n" "yes" >&6; }
   6158  1.11  christos                 pkg_config_usable=yes
   6159  1.11  christos             else
   6160  1.11  christos                 #
   6161  1.11  christos                 # No, so we can't use pkg-config to get configuration
   6162  1.11  christos                 # information for libpcap.
   6163  1.11  christos                 #
   6164  1.12  christos                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6165  1.12  christos printf "%s\n" "no" >&6; }
   6166  1.11  christos                 pkg_config_usable=no
   6167  1.11  christos             fi
   6168  1.11  christos         else
   6169  1.11  christos             #
   6170  1.11  christos             # We don't have it, so we obviously can't use it.
   6171  1.11  christos             #
   6172  1.11  christos             pkg_config_usable=no
   6173  1.11  christos         fi
   6174  1.11  christos         if test "$pkg_config_usable" = "yes" ; then
   6175  1.11  christos             #
   6176  1.11  christos             # Found both - use pkg-config to get the include flags for
   6177  1.11  christos             # libpcap and the flags to link with libpcap.
   6178  1.11  christos             #
   6179  1.11  christos             # Please read section 11.6 "Shell Substitutions"
   6180  1.11  christos             # in the autoconf manual before doing anything
   6181  1.11  christos             # to this that involves quoting.  Especially note
   6182  1.11  christos             # the statement "There is just no portable way to use
   6183  1.11  christos             # double-quoted strings inside double-quoted back-quoted
   6184  1.11  christos             # expressions (pfew!)."
   6185  1.11  christos             #
   6186  1.11  christos             cflags=`"$PKG_CONFIG" libpcap --cflags`
   6187  1.11  christos             V_INCLS="$cflags $V_INCLS"
   6188  1.11  christos             libpcap=`"$PKG_CONFIG" libpcap --libs`
   6189  1.11  christos         else
   6190  1.11  christos             #
   6191  1.11  christos             # No pkg-config
   6192  1.11  christos             # Look for an installed pcap-config.
   6193  1.11  christos             #
   6194  1.11  christos             if test -n "$ac_tool_prefix"; then
   6195   1.3  christos   # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
   6196   1.3  christos set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
   6197  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6198  1.12  christos printf %s "checking for $ac_word... " >&6; }
   6199  1.12  christos if test ${ac_cv_path_PCAP_CONFIG+y}
   6200  1.12  christos then :
   6201  1.12  christos   printf %s "(cached) " >&6
   6202  1.12  christos else $as_nop
   6203   1.1  christos   case $PCAP_CONFIG in
   6204   1.1  christos   [\\/]* | ?:[\\/]*)
   6205   1.1  christos   ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
   6206   1.1  christos   ;;
   6207   1.1  christos   *)
   6208   1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6209   1.1  christos for as_dir in $PATH
   6210   1.1  christos do
   6211   1.1  christos   IFS=$as_save_IFS
   6212  1.12  christos   case $as_dir in #(((
   6213  1.12  christos     '') as_dir=./ ;;
   6214  1.12  christos     */) ;;
   6215  1.12  christos     *) as_dir=$as_dir/ ;;
   6216  1.12  christos   esac
   6217   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6218  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6219  1.12  christos     ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext"
   6220  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6221   1.1  christos     break 2
   6222   1.1  christos   fi
   6223   1.1  christos done
   6224   1.4  christos   done
   6225   1.1  christos IFS=$as_save_IFS
   6226   1.1  christos 
   6227   1.4  christos   ;;
   6228   1.3  christos esac
   6229   1.3  christos fi
   6230   1.4  christos PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
   6231   1.4  christos if test -n "$PCAP_CONFIG"; then
   6232  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
   6233  1.12  christos printf "%s\n" "$PCAP_CONFIG" >&6; }
   6234   1.3  christos else
   6235  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6236  1.12  christos printf "%s\n" "no" >&6; }
   6237   1.3  christos fi
   6238   1.1  christos 
   6239   1.1  christos 
   6240   1.1  christos fi
   6241   1.4  christos if test -z "$ac_cv_path_PCAP_CONFIG"; then
   6242   1.4  christos   ac_pt_PCAP_CONFIG=$PCAP_CONFIG
   6243   1.4  christos   # Extract the first word of "pcap-config", so it can be a program name with args.
   6244   1.4  christos set dummy pcap-config; ac_word=$2
   6245  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6246  1.12  christos printf %s "checking for $ac_word... " >&6; }
   6247  1.12  christos if test ${ac_cv_path_ac_pt_PCAP_CONFIG+y}
   6248  1.12  christos then :
   6249  1.12  christos   printf %s "(cached) " >&6
   6250  1.12  christos else $as_nop
   6251   1.4  christos   case $ac_pt_PCAP_CONFIG in
   6252   1.4  christos   [\\/]* | ?:[\\/]*)
   6253   1.4  christos   ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
   6254   1.4  christos   ;;
   6255   1.4  christos   *)
   6256   1.4  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6257   1.4  christos for as_dir in $PATH
   6258   1.4  christos do
   6259   1.4  christos   IFS=$as_save_IFS
   6260  1.12  christos   case $as_dir in #(((
   6261  1.12  christos     '') as_dir=./ ;;
   6262  1.12  christos     */) ;;
   6263  1.12  christos     *) as_dir=$as_dir/ ;;
   6264  1.12  christos   esac
   6265   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6266  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6267  1.12  christos     ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext"
   6268  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6269   1.4  christos     break 2
   6270   1.4  christos   fi
   6271   1.4  christos done
   6272   1.4  christos   done
   6273   1.4  christos IFS=$as_save_IFS
   6274   1.1  christos 
   6275   1.4  christos   ;;
   6276   1.1  christos esac
   6277   1.1  christos fi
   6278   1.4  christos ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
   6279   1.4  christos if test -n "$ac_pt_PCAP_CONFIG"; then
   6280  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
   6281  1.12  christos printf "%s\n" "$ac_pt_PCAP_CONFIG" >&6; }
   6282   1.1  christos else
   6283  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6284  1.12  christos printf "%s\n" "no" >&6; }
   6285   1.1  christos fi
   6286   1.1  christos 
   6287   1.4  christos   if test "x$ac_pt_PCAP_CONFIG" = x; then
   6288   1.4  christos     PCAP_CONFIG=""
   6289   1.4  christos   else
   6290   1.4  christos     case $cross_compiling:$ac_tool_warned in
   6291   1.4  christos yes:)
   6292  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6293  1.12  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6294   1.4  christos ac_tool_warned=yes ;;
   6295   1.1  christos esac
   6296   1.4  christos     PCAP_CONFIG=$ac_pt_PCAP_CONFIG
   6297   1.4  christos   fi
   6298   1.1  christos else
   6299   1.4  christos   PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
   6300   1.1  christos fi
   6301   1.1  christos 
   6302  1.11  christos             if test -n "$PCAP_CONFIG" ; then
   6303  1.11  christos                 #
   6304  1.11  christos                 # Found - use it to get the include flags for
   6305  1.11  christos                 # libpcap and the flags to link with libpcap.
   6306  1.11  christos                 #
   6307  1.11  christos                 # If this is a vendor-supplied pcap-config, which
   6308  1.11  christos                 # we define as being "a pcap-config in /usr/bin
   6309  1.11  christos                 # or /usr/ccs/bin" (the latter is for Solaris and
   6310  1.11  christos                 # Sun/Oracle Studio), there are some issues.  Work
   6311  1.11  christos                 # around them.
   6312  1.11  christos                 #
   6313  1.11  christos                 if test \( "$PCAP_CONFIG" = "/usr/bin/pcap-config" \) -o \
   6314  1.11  christos                         \( "$PCAP_CONFIG" = "/usr/ccs/bin/pcap-config" \) ; then
   6315  1.11  christos                     #
   6316  1.11  christos                     # It's vendor-supplied.
   6317  1.11  christos                     #
   6318  1.11  christos                     case "$host_os" in
   6319  1.11  christos 
   6320  1.11  christos                     darwin*)
   6321  1.11  christos                         #
   6322  1.11  christos                         # This is macOS or another Darwin-based OS.
   6323  1.11  christos                         #
   6324  1.11  christos                         # That means that /usr/bin/pcap-config it
   6325  1.11  christos                         # may provide -I/usr/local/include with --cflags
   6326  1.11  christos                         # and -L/usr/local/lib with --libs, rather than
   6327  1.11  christos                         # pointing to the OS-supplied library and
   6328  1.11  christos                         # Xcode-supplied headers.  Remember that, so we
   6329  1.11  christos                         # ignore those values.
   6330  1.11  christos                         #
   6331  1.11  christos                         _broken_apple_pcap_config=yes
   6332  1.12  christos 
   6333  1.12  christos                         #
   6334  1.12  christos                         # Furthermore:
   6335  1.12  christos                         #
   6336  1.12  christos                         # macOS Sonoma's libpcap includes stub versions
   6337  1.12  christos                         # of the remote-capture APIs.  They are exported
   6338  1.12  christos                         # as "weakly linked symbols".
   6339  1.12  christos                         #
   6340  1.12  christos                         # Xcode 15 offers only a macOS Sonoma SDK, which
   6341  1.12  christos                         # has a .tbd file for libpcap that claims it
   6342  1.12  christos                         # includes those APIs.  (Newer versions of macOS
   6343  1.12  christos                         # don't provide the system shared libraries,
   6344  1.12  christos                         # they only provide the dyld shared cache
   6345  1.12  christos                         # containing those libraries, so the OS provides
   6346  1.12  christos                         # SDKs that include a .tbd file to use when
   6347  1.12  christos                         # linking.)
   6348  1.12  christos                         #
   6349  1.12  christos                         # This means that AC_CHECK_FUNCS() will think
   6350  1.12  christos                         # that the remote-capture APIs are present,
   6351  1.12  christos                         # including pcap_open() and
   6352  1.12  christos                         # pcap_findalldevs_ex().
   6353  1.12  christos                         #
   6354  1.12  christos                         # However, they are *not* present in macOS
   6355  1.12  christos                         # Ventura and earlier, which means that building
   6356  1.12  christos                         # on Ventura with Xcode 15 produces executables
   6357  1.12  christos                         # that fail to start because one of those APIs
   6358  1.12  christos                         # isn't found in the system libpcap.
   6359  1.12  christos                         #
   6360  1.12  christos                         # Protecting calls to those APIs with
   6361  1.12  christos                         # __builtin_available() does not appear to
   6362  1.12  christos                         # prevent this, for some unknown reason, and it
   6363  1.12  christos                         # doesn't even allow the program to compile with
   6364  1.12  christos                         # versions of Xcode prior to Xcode 15, as the
   6365  1.12  christos                         # pcap.h file doesn't specify minimum OS
   6366  1.12  christos                         # versions for those functions.
   6367  1.12  christos                         #
   6368  1.12  christos                         # Given all that, and given that the versions of
   6369  1.12  christos                         # the remote-capture APIs in Sonoma are stubs
   6370  1.12  christos                         # that always fail, there doesn't seem to be any
   6371  1.12  christos                         # point in checking for pcap_open() if we're
   6372  1.12  christos                         # linking against the Apple libpcap.
   6373  1.12  christos                         #
   6374  1.12  christos                         # However, if we're *not* linking against the
   6375  1.12  christos                         # Apple libpcap, we should check for it, so that
   6376  1.12  christos                         # we can use it if it's present.
   6377  1.12  christos                         #
   6378  1.12  christos                         # We know this is macOS and that we're using
   6379  1.12  christos                         # the system-provided pcap-config to find
   6380  1.12  christos                         # libpcap, so we know it'll be the system
   6381  1.12  christos                         # libpcap, and note that we should not search
   6382  1.12  christos                         # for remote-capture APIs.
   6383  1.12  christos                         #
   6384  1.12  christos                         _dont_check_for_remote_apis=yes
   6385  1.11  christos                         ;;
   6386  1.11  christos 
   6387  1.11  christos                     solaris*)
   6388  1.11  christos                         #
   6389  1.11  christos                         # This is Solaris 2 or later, i.e. SunOS 5.x.
   6390  1.11  christos                         #
   6391  1.11  christos                         # At least on Solaris 11; there's /usr/bin/pcap-config,
   6392  1.11  christos                         # which reports -L/usr/lib with --libs, causing
   6393  1.11  christos                         # the 32-bit libraries to be found, and there's
   6394  1.11  christos                         # /usr/bin/{64bitarch}/pcap-config, where {64bitarch}
   6395  1.11  christos                         # is a name for the 64-bit version of the instruction
   6396  1.11  christos                         # set, which reports -L /usr/lib/{64bitarch}, causing
   6397  1.11  christos                         # the 64-bit libraries to be found.
   6398  1.11  christos                         #
   6399  1.11  christos                         # So if we're building 64-bit targets, we replace
   6400  1.11  christos                         # PCAP_CONFIG with /usr/bin/{64bitarch}; we get
   6401  1.11  christos                         # {64bitarch} as the output of "isainfo -n".
   6402  1.11  christos                         #
   6403  1.11  christos                         # Are we building 32-bit or 64-bit?  Get the
   6404  1.11  christos                         # size of void *, and check that.
   6405  1.11  christos                         #
   6406  1.11  christos                         # The cast to long int works around a bug in the HP C Compiler
   6407  1.11  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6408  1.11  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6409  1.11  christos # This bug is HP SR number 8606223364.
   6410  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   6411  1.12  christos printf %s "checking size of void *... " >&6; }
   6412  1.12  christos if test ${ac_cv_sizeof_void_p+y}
   6413  1.12  christos then :
   6414  1.12  christos   printf %s "(cached) " >&6
   6415  1.12  christos else $as_nop
   6416  1.12  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
   6417  1.12  christos then :
   6418  1.11  christos 
   6419  1.12  christos else $as_nop
   6420  1.11  christos   if test "$ac_cv_type_void_p" = yes; then
   6421  1.12  christos      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6422  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6423  1.11  christos as_fn_error 77 "cannot compute sizeof (void *)
   6424  1.11  christos See \`config.log' for more details" "$LINENO" 5; }
   6425  1.11  christos    else
   6426  1.11  christos      ac_cv_sizeof_void_p=0
   6427  1.11  christos    fi
   6428  1.11  christos fi
   6429  1.11  christos 
   6430  1.11  christos fi
   6431  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   6432  1.12  christos printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
   6433  1.11  christos 
   6434  1.11  christos 
   6435  1.11  christos 
   6436  1.12  christos printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
   6437  1.11  christos 
   6438  1.11  christos 
   6439  1.11  christos                         if test ac_cv_sizeof_void_p -eq 8 ; then
   6440  1.11  christos                             isainfo_output=`isainfo -n`
   6441  1.11  christos                             if test ! -z "$isainfo_output" ; then
   6442  1.11  christos                                 #
   6443  1.11  christos                                 # Success - change PCAP_CONFIG.
   6444  1.11  christos                                 #
   6445  1.11  christos                                 PCAP_CONFIG=`echo $PCAP_CONFIG | sed "s;/bin/;/bin/$isainfo_output/;"`
   6446  1.11  christos                             fi
   6447  1.11  christos                         fi
   6448  1.11  christos                         ;;
   6449  1.11  christos                     esac
   6450  1.11  christos                 fi
   6451  1.11  christos                 #
   6452  1.11  christos                 # Please read section 11.6 "Shell Substitutions"
   6453  1.11  christos                 # in the autoconf manual before doing anything
   6454  1.11  christos                 # to this that involves quoting.  Especially note
   6455  1.11  christos                 # the statement "There is just no portable way to use
   6456  1.11  christos                 # double-quoted strings inside double-quoted back-quoted
   6457  1.11  christos                 # expressions (pfew!)."
   6458  1.11  christos                 #
   6459  1.11  christos                 cflags=`"$PCAP_CONFIG" --cflags`
   6460  1.11  christos                 #
   6461  1.11  christos                 # Work around macOS (and probably other Darwin) brokenness,
   6462  1.11  christos                 # by not adding /usr/local/include if it's from the broken
   6463  1.11  christos                 # Apple pcap-config.
   6464  1.11  christos                 #
   6465  1.11  christos                 if test "$_broken_apple_pcap_config" = "yes" ; then
   6466  1.11  christos                     #
   6467  1.11  christos                     # Strip -I/usr/local/include with sed.
   6468  1.11  christos                     #
   6469  1.11  christos                     cflags=`echo $cflags | sed 's;-I/usr/local/include;;'`
   6470  1.11  christos                 fi
   6471  1.11  christos                 V_INCLS="$cflags $V_INCLS"
   6472  1.11  christos                 libpcap=`"$PCAP_CONFIG" --libs`
   6473  1.11  christos                 #
   6474  1.11  christos                 # Work around macOS (and probably other Darwin) brokenness,
   6475  1.11  christos                 # by not adding /usr/local/lib if it's from the broken
   6476  1.11  christos                 # Apple pcap-config.
   6477  1.11  christos                 #
   6478  1.11  christos                 if test "$_broken_apple_pcap_config" = "yes" ; then
   6479  1.11  christos                     #
   6480  1.11  christos                     # Strip -L/usr/local/lib with sed.
   6481  1.11  christos                     #
   6482  1.11  christos                     libpcap=`echo $libpcap | sed 's;-L/usr/local/lib;;'`
   6483  1.11  christos                 fi
   6484  1.11  christos             else
   6485  1.11  christos                 #
   6486  1.11  christos                 # Not found; look for an installed pcap.
   6487  1.11  christos                 #
   6488  1.12  christos                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5
   6489  1.12  christos printf %s "checking for main in -lpcap... " >&6; }
   6490  1.12  christos if test ${ac_cv_lib_pcap_main+y}
   6491  1.12  christos then :
   6492  1.12  christos   printf %s "(cached) " >&6
   6493  1.12  christos else $as_nop
   6494   1.4  christos   ac_check_lib_save_LIBS=$LIBS
   6495   1.4  christos LIBS="-lpcap  $LIBS"
   6496   1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6497   1.1  christos /* end confdefs.h.  */
   6498   1.1  christos 
   6499   1.1  christos 
   6500   1.1  christos int
   6501  1.12  christos main (void)
   6502   1.1  christos {
   6503   1.4  christos return main ();
   6504   1.1  christos   ;
   6505   1.1  christos   return 0;
   6506   1.1  christos }
   6507   1.1  christos _ACEOF
   6508  1.12  christos if ac_fn_c_try_link "$LINENO"
   6509  1.12  christos then :
   6510   1.4  christos   ac_cv_lib_pcap_main=yes
   6511  1.12  christos else $as_nop
   6512   1.4  christos   ac_cv_lib_pcap_main=no
   6513   1.4  christos fi
   6514  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6515   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   6516   1.4  christos LIBS=$ac_check_lib_save_LIBS
   6517   1.1  christos fi
   6518  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5
   6519  1.12  christos printf "%s\n" "$ac_cv_lib_pcap_main" >&6; }
   6520  1.12  christos if test "x$ac_cv_lib_pcap_main" = xyes
   6521  1.12  christos then :
   6522   1.4  christos   libpcap="-lpcap"
   6523   1.1  christos fi
   6524   1.1  christos 
   6525  1.11  christos                 if test $libpcap = FAIL ; then
   6526  1.12  christos                     as_fn_error $? "see the INSTALL.md file for more info" "$LINENO" 5
   6527  1.11  christos                 fi
   6528  1.12  christos                                                                                                                                                                                                                                                                                                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5
   6529  1.12  christos printf %s "checking for extraneous pcap header directories... " >&6; }
   6530  1.11  christos                 if test \( ! -r /usr/local/include/pcap.h \) -a \
   6531  1.11  christos                         \( ! -r /usr/include/pcap.h \); then
   6532  1.11  christos                     if test -r /usr/local/include/pcap/pcap.h; then
   6533  1.11  christos                         d="/usr/local/include/pcap"
   6534  1.11  christos                     elif test -r /usr/include/pcap/pcap.h; then
   6535  1.11  christos                         d="/usr/include/pcap"
   6536  1.11  christos                     fi
   6537  1.11  christos                 fi
   6538  1.11  christos                 if test -z "$d" ; then
   6539  1.12  christos                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   6540  1.12  christos printf "%s\n" "not found" >&6; }
   6541  1.11  christos                 else
   6542  1.11  christos                     V_INCLS="-I$d $V_INCLS"
   6543  1.12  christos                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5
   6544  1.12  christos printf "%s\n" "found -- -I$d added" >&6; }
   6545  1.11  christos                 fi
   6546  1.11  christos             fi
   6547  1.11  christos         fi
   6548   1.4  christos     else
   6549  1.11  christos         #
   6550  1.11  christos         # We found a local libpcap.  Add it to the dependencies for
   6551  1.11  christos         # tcpdump.
   6552  1.11  christos         #
   6553  1.11  christos         V_PCAPDEP=$libpcap
   6554  1.11  christos 
   6555  1.11  christos         #
   6556  1.11  christos         # Look for its pcap-config script.
   6557  1.11  christos         #
   6558  1.11  christos         # Extract the first word of "pcap-config", so it can be a program name with args.
   6559   1.4  christos set dummy pcap-config; ac_word=$2
   6560  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6561  1.12  christos printf %s "checking for $ac_word... " >&6; }
   6562  1.12  christos if test ${ac_cv_path_PCAP_CONFIG+y}
   6563  1.12  christos then :
   6564  1.12  christos   printf %s "(cached) " >&6
   6565  1.12  christos else $as_nop
   6566   1.4  christos   case $PCAP_CONFIG in
   6567   1.4  christos   [\\/]* | ?:[\\/]*)
   6568   1.4  christos   ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
   6569   1.4  christos   ;;
   6570   1.4  christos   *)
   6571   1.4  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6572  1.11  christos for as_dir in $local_pcap_dir
   6573   1.4  christos do
   6574   1.4  christos   IFS=$as_save_IFS
   6575  1.12  christos   case $as_dir in #(((
   6576  1.12  christos     '') as_dir=./ ;;
   6577  1.12  christos     */) ;;
   6578  1.12  christos     *) as_dir=$as_dir/ ;;
   6579  1.12  christos   esac
   6580   1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6581  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6582  1.12  christos     ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext"
   6583  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6584   1.4  christos     break 2
   6585   1.4  christos   fi
   6586   1.4  christos done
   6587   1.4  christos   done
   6588   1.4  christos IFS=$as_save_IFS
   6589   1.1  christos 
   6590   1.4  christos   ;;
   6591   1.1  christos esac
   6592   1.4  christos fi
   6593   1.4  christos PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
   6594   1.4  christos if test -n "$PCAP_CONFIG"; then
   6595  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
   6596  1.12  christos printf "%s\n" "$PCAP_CONFIG" >&6; }
   6597   1.4  christos else
   6598  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6599  1.12  christos printf "%s\n" "no" >&6; }
   6600   1.4  christos fi
   6601   1.4  christos 
   6602   1.4  christos 
   6603  1.11  christos 
   6604  1.11  christos         if test -n "$PCAP_CONFIG"; then
   6605  1.11  christos             #
   6606  1.11  christos             # We don't want its --cflags or --libs output, because
   6607  1.11  christos             # those presume it's installed.  For the C compiler flags,
   6608  1.11  christos             # we add the source directory for the local libpcap, so
   6609  1.11  christos             # we pick up its header files.
   6610  1.11  christos             #
   6611  1.11  christos             # We do, however, want its additional libraries, as required
   6612  1.11  christos             # when linking statically, because it makes calls to
   6613  1.11  christos             # routines in those libraries, so we'll need to link with
   6614  1.11  christos             # them, because we'll be linking statically with it.
   6615  1.11  christos             #
   6616  1.11  christos             # If it supports --static-pcap-only. use that, as we will be
   6617  1.11  christos             # linking with a static libpcap but won't be linking
   6618  1.11  christos             # statically with any of the libraries on which it depends;
   6619  1.11  christos             # those libraries might not even have static versions
   6620  1.11  christos             # installed.
   6621  1.11  christos             #
   6622  1.11  christos             # That means we need to find out the libraries on which
   6623  1.11  christos             # libpcap directly depends, so we can link with them, but we
   6624  1.11  christos             # don't need to link with the libraries on which those
   6625  1.11  christos             # libraries depend as, on all UN*Xes with which I'm
   6626  1.11  christos             # familiar, the libraries on which a shared library depends
   6627  1.11  christos             # are stored in the library and are automatically loaded by
   6628  1.11  christos             # the run-time linker, without the executable having to be
   6629  1.11  christos             # linked with those libraries.  (This allows a library to be
   6630  1.11  christos             # changed to depend on more libraries without breaking that
   6631  1.11  christos             # library's ABI.)
   6632  1.11  christos             #
   6633  1.11  christos             # The only way to test for that support is to see if the
   6634  1.11  christos             # script contains the string "static-pcap-only"; we can't
   6635  1.11  christos             # try using that flag and checking for errors, as the
   6636  1.11  christos             # versions of the script that didn't have that flag wouldn't
   6637  1.11  christos             # report or return an error for an unsupported command-line
   6638  1.11  christos             # flag.  Those older versions provided, with --static, only
   6639  1.11  christos             # the libraries on which libpcap depends, not the
   6640  1.11  christos             # dependencies of those libraries; the versions with
   6641  1.11  christos             # --static-pcap-only provide all the dependencies with
   6642  1.11  christos             # --static, for the benefit of programs that are completely
   6643  1.11  christos             # statically linked, and provide only the direct
   6644  1.11  christos             # dependencies with --static-pcap-only.
   6645  1.11  christos             #
   6646  1.12  christos             if grep "static-pcap-only" "$PCAP_CONFIG" >/dev/null 2>&1
   6647  1.11  christos             then
   6648  1.11  christos                 static_opt="--static-pcap-only"
   6649  1.11  christos             else
   6650  1.11  christos                 static_opt="--static"
   6651  1.11  christos             fi
   6652  1.11  christos             V_INCLS="-I$local_pcap_dir $V_INCLS"
   6653  1.11  christos             additional_libs=`"$PCAP_CONFIG" $static_opt --additional-libs`
   6654  1.11  christos             libpcap="$libpcap $additional_libs"
   6655  1.11  christos         else
   6656  1.11  christos             #
   6657  1.11  christos             # It doesn't have a pcap-config script.
   6658  1.11  christos             # Make sure it has a pcap.h file.
   6659  1.11  christos             #
   6660  1.11  christos             places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
   6661  1.12  christos                 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
   6662  1.11  christos             places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
   6663  1.12  christos                 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
   6664  1.11  christos             pcapH=FAIL
   6665  1.11  christos             if test -r $local_pcap_dir/pcap.h; then
   6666  1.11  christos                 pcapH=$local_pcap_dir
   6667  1.11  christos             else
   6668  1.11  christos                 for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do
   6669  1.11  christos                     if test -r $dir/pcap.h ; then
   6670  1.11  christos                         pcapH=$dir
   6671  1.11  christos                     fi
   6672  1.11  christos                 done
   6673  1.11  christos             fi
   6674  1.11  christos 
   6675  1.11  christos             if test $pcapH = FAIL ; then
   6676  1.12  christos                 as_fn_error $? "cannot find pcap.h: see the INSTALL.md file" "$LINENO" 5
   6677  1.11  christos             fi
   6678  1.11  christos 
   6679  1.11  christos             #
   6680  1.11  christos             # Force the compiler to look for header files in the
   6681  1.11  christos             # directory containing pcap.h.
   6682  1.11  christos             #
   6683  1.11  christos             V_INCLS="-I$pcapH $V_INCLS"
   6684  1.11  christos         fi
   6685   1.4  christos     fi
   6686   1.4  christos 
   6687  1.11  christos     if test -z "$PKG_CONFIG" -a -z "$PCAP_CONFIG"; then
   6688  1.11  christos         #
   6689  1.11  christos         # We don't have pkg-config or pcap-config; find out any additional
   6690  1.11  christos         # link flags we need.  (If we have pkg-config or pcap-config, we
   6691  1.11  christos         # assume it tells us what we need.)
   6692  1.11  christos         #
   6693  1.11  christos         case "$host_os" in
   6694  1.11  christos 
   6695  1.11  christos         aix*)
   6696  1.11  christos             #
   6697  1.11  christos             # If libpcap is DLPI-based, we have to use /lib/pse.exp if
   6698  1.11  christos             # present, as we use the STREAMS routines.
   6699  1.11  christos             #
   6700  1.11  christos             # (XXX - true only if we're linking with a static libpcap?)
   6701  1.11  christos             #
   6702  1.11  christos             pseexe="/lib/pse.exp"
   6703  1.12  christos             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
   6704  1.12  christos printf %s "checking for $pseexe... " >&6; }
   6705  1.11  christos             if test -f $pseexe ; then
   6706  1.12  christos                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6707  1.12  christos printf "%s\n" "yes" >&6; }
   6708  1.11  christos                 LIBS="$LIBS -I:$pseexe"
   6709  1.11  christos             fi
   6710  1.11  christos 
   6711  1.11  christos             #
   6712  1.11  christos             # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
   6713  1.11  christos             # we use them to load the BPF module.
   6714  1.11  christos             #
   6715  1.11  christos             # (XXX - true only if we're linking with a static libpcap?)
   6716  1.11  christos             #
   6717  1.11  christos             LIBS="$LIBS -lodm -lcfg"
   6718  1.11  christos             ;;
   6719  1.11  christos 
   6720  1.11  christos 	solaris*)
   6721  1.11  christos             # libdlpi is needed for Solaris 11 and later.
   6722  1.12  christos             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
   6723  1.12  christos printf %s "checking for dlpi_walk in -ldlpi... " >&6; }
   6724  1.12  christos if test ${ac_cv_lib_dlpi_dlpi_walk+y}
   6725  1.12  christos then :
   6726  1.12  christos   printf %s "(cached) " >&6
   6727  1.12  christos else $as_nop
   6728  1.11  christos   ac_check_lib_save_LIBS=$LIBS
   6729  1.11  christos LIBS="-ldlpi -L/lib $LIBS"
   6730  1.11  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6731  1.11  christos /* end confdefs.h.  */
   6732  1.11  christos 
   6733  1.11  christos /* Override any GCC internal prototype to avoid an error.
   6734  1.11  christos    Use char because int might match the return type of a GCC
   6735  1.11  christos    builtin and then its argument prototype would still apply.  */
   6736  1.11  christos char dlpi_walk ();
   6737  1.11  christos int
   6738  1.12  christos main (void)
   6739  1.11  christos {
   6740  1.11  christos return dlpi_walk ();
   6741  1.11  christos   ;
   6742  1.11  christos   return 0;
   6743  1.11  christos }
   6744  1.11  christos _ACEOF
   6745  1.12  christos if ac_fn_c_try_link "$LINENO"
   6746  1.12  christos then :
   6747  1.11  christos   ac_cv_lib_dlpi_dlpi_walk=yes
   6748  1.12  christos else $as_nop
   6749  1.11  christos   ac_cv_lib_dlpi_dlpi_walk=no
   6750  1.11  christos fi
   6751  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6752  1.11  christos     conftest$ac_exeext conftest.$ac_ext
   6753  1.11  christos LIBS=$ac_check_lib_save_LIBS
   6754  1.11  christos fi
   6755  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
   6756  1.12  christos printf "%s\n" "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
   6757  1.12  christos if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
   6758  1.12  christos then :
   6759  1.11  christos   LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
   6760  1.11  christos fi
   6761   1.4  christos 
   6762  1.11  christos             ;;
   6763  1.11  christos         esac
   6764   1.4  christos     fi
   6765   1.4  christos 
   6766  1.11  christos     LIBS="$libpcap $LIBS"
   6767  1.11  christos 
   6768   1.4  christos                                     ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop"
   6769  1.12  christos if test "x$ac_cv_func_pcap_loop" = xyes
   6770  1.12  christos then :
   6771   1.4  christos 
   6772  1.12  christos else $as_nop
   6773   1.1  christos 
   6774  1.12  christos         as_fn_error $? "
   6775  1.12  christos 1. Do you try to build a 32-bit tcpdump with a 64-bit libpcap or vice versa?
   6776  1.12  christos 2. This is a bug, please follow the guidelines in CONTRIBUTING.md and include
   6777  1.12  christos the config.log file in your report.  If you have downloaded libpcap from
   6778   1.4  christos tcpdump.org, and built it yourself, please also include the config.log
   6779   1.4  christos file from the libpcap source directory, the Makefile from the libpcap
   6780   1.4  christos source directory, and the output of the make process for libpcap, as
   6781   1.4  christos this could be a problem with the libpcap that was built, and we will
   6782   1.4  christos not be able to determine why this is happening, and thus will not be
   6783   1.4  christos able to fix it, without that information, as we have not been able to
   6784   1.4  christos reproduce this problem ourselves." "$LINENO" 5
   6785   1.1  christos 
   6786   1.1  christos fi
   6787   1.1  christos 
   6788   1.1  christos 
   6789   1.1  christos 
   6790   1.1  christos #
   6791   1.1  christos # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
   6792   1.1  christos # libraries (e.g., "-lsocket -lnsl" on Solaris).
   6793   1.1  christos #
   6794   1.7  christos # You are in a twisty little maze of UN*Xes, all different.
   6795   1.7  christos # Some might not have ether_ntohost().
   6796  1.11  christos # Some might have it and declare it in <net/ethernet.h>.
   6797  1.11  christos # Some might have it and declare it in <netinet/ether.h>
   6798  1.11  christos # Some might have it and declare it in <sys/ethernet.h>.
   6799  1.11  christos # Some might have it and declare it in <arpa/inet.h>.
   6800  1.11  christos # Some might have it and declare it in <netinet/if_ether.h>.
   6801  1.11  christos # Some might have it and not declare it in any header file.
   6802   1.7  christos #
   6803   1.7  christos # Before you is a C compiler.
   6804   1.1  christos #
   6805  1.12  christos 
   6806  1.12  christos   for ac_func in ether_ntohost
   6807   1.7  christos do :
   6808   1.7  christos   ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost"
   6809  1.12  christos if test "x$ac_cv_func_ether_ntohost" = xyes
   6810  1.12  christos then :
   6811  1.12  christos   printf "%s\n" "#define HAVE_ETHER_NTOHOST 1" >>confdefs.h
   6812  1.12  christos 
   6813  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5
   6814  1.12  christos printf %s "checking for buggy ether_ntohost... " >&6; }
   6815  1.12  christos if test ${ac_cv_buggy_ether_ntohost+y}
   6816  1.12  christos then :
   6817  1.12  christos   printf %s "(cached) " >&6
   6818  1.12  christos else $as_nop
   6819   1.7  christos 
   6820  1.12  christos 	if test "$cross_compiling" = yes
   6821  1.12  christos then :
   6822   1.7  christos   ac_cv_buggy_ether_ntohost="not while cross-compiling"
   6823  1.12  christos else $as_nop
   6824   1.7  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6825   1.1  christos /* end confdefs.h.  */
   6826   1.7  christos 
   6827   1.7  christos 		#include <netdb.h>
   6828  1.11  christos 		#include <netinet/ether.h>
   6829  1.11  christos 		#include <stdlib.h>
   6830   1.1  christos 		#include <sys/types.h>
   6831   1.1  christos 		#include <sys/param.h>
   6832   1.1  christos 		#include <sys/socket.h>
   6833   1.1  christos 
   6834   1.1  christos 		int
   6835   1.1  christos 		main(int argc, char **argv)
   6836   1.1  christos 		{
   6837   1.1  christos 			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
   6838   1.1  christos 			char name[MAXHOSTNAMELEN];
   6839   1.1  christos 
   6840   1.1  christos 			ether_ntohost(name, (struct ether_addr *)ea);
   6841   1.1  christos 			exit(0);
   6842   1.1  christos 		}
   6843   1.1  christos 
   6844  1.12  christos 
   6845   1.1  christos _ACEOF
   6846  1.12  christos if ac_fn_c_try_run "$LINENO"
   6847  1.12  christos then :
   6848   1.1  christos   ac_cv_buggy_ether_ntohost=no
   6849  1.12  christos else $as_nop
   6850   1.4  christos   ac_cv_buggy_ether_ntohost=yes
   6851   1.1  christos fi
   6852   1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6853   1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6854   1.1  christos fi
   6855   1.1  christos 
   6856   1.1  christos fi
   6857  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5
   6858  1.12  christos printf "%s\n" "$ac_cv_buggy_ether_ntohost" >&6; }
   6859   1.1  christos     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
   6860   1.4  christos 
   6861  1.12  christos printf "%s\n" "#define USE_ETHER_NTOHOST 1" >>confdefs.h
   6862   1.1  christos 
   6863   1.1  christos     fi
   6864   1.1  christos 
   6865   1.1  christos fi
   6866  1.12  christos 
   6867   1.1  christos done
   6868   1.1  christos if test "$ac_cv_func_ether_ntohost" = yes -a \
   6869   1.1  christos     "$ac_cv_buggy_ether_ntohost" = "no"; then
   6870   1.1  christos 	#
   6871  1.11  christos 	# OK, we have ether_ntohost().  Is it declared in <net/ethernet.h>?
   6872  1.11  christos 	#
   6873  1.11  christos 	# This test fails if we don't have <net/ethernet.h> or if we do
   6874  1.11  christos 	# but it doesn't declare ether_ntohost().
   6875  1.11  christos 	#
   6876  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
   6877  1.12  christos printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
   6878  1.12  christos if test ${ac_cv_c_undeclared_builtin_options+y}
   6879  1.12  christos then :
   6880  1.12  christos   printf %s "(cached) " >&6
   6881  1.12  christos else $as_nop
   6882  1.12  christos   ac_save_CFLAGS=$CFLAGS
   6883  1.12  christos    ac_cv_c_undeclared_builtin_options='cannot detect'
   6884  1.12  christos    for ac_arg in '' -fno-builtin; do
   6885  1.12  christos      CFLAGS="$ac_save_CFLAGS $ac_arg"
   6886  1.12  christos      # This test program should *not* compile successfully.
   6887  1.12  christos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6888  1.12  christos /* end confdefs.h.  */
   6889  1.12  christos 
   6890  1.12  christos int
   6891  1.12  christos main (void)
   6892  1.12  christos {
   6893  1.12  christos (void) strchr;
   6894  1.12  christos   ;
   6895  1.12  christos   return 0;
   6896  1.12  christos }
   6897  1.12  christos _ACEOF
   6898  1.12  christos if ac_fn_c_try_compile "$LINENO"
   6899  1.12  christos then :
   6900  1.12  christos 
   6901  1.12  christos else $as_nop
   6902  1.12  christos   # This test program should compile successfully.
   6903  1.12  christos         # No library function is consistently available on
   6904  1.12  christos         # freestanding implementations, so test against a dummy
   6905  1.12  christos         # declaration.  Include always-available headers on the
   6906  1.12  christos         # off chance that they somehow elicit warnings.
   6907  1.12  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6908  1.12  christos /* end confdefs.h.  */
   6909  1.12  christos #include <float.h>
   6910  1.12  christos #include <limits.h>
   6911  1.12  christos #include <stdarg.h>
   6912  1.12  christos #include <stddef.h>
   6913  1.12  christos extern void ac_decl (int, char *);
   6914  1.12  christos 
   6915  1.12  christos int
   6916  1.12  christos main (void)
   6917  1.12  christos {
   6918  1.12  christos (void) ac_decl (0, (char *) 0);
   6919  1.12  christos   (void) ac_decl;
   6920  1.12  christos 
   6921  1.12  christos   ;
   6922  1.12  christos   return 0;
   6923  1.12  christos }
   6924  1.12  christos _ACEOF
   6925  1.12  christos if ac_fn_c_try_compile "$LINENO"
   6926  1.12  christos then :
   6927  1.12  christos   if test x"$ac_arg" = x
   6928  1.12  christos then :
   6929  1.12  christos   ac_cv_c_undeclared_builtin_options='none needed'
   6930  1.12  christos else $as_nop
   6931  1.12  christos   ac_cv_c_undeclared_builtin_options=$ac_arg
   6932  1.12  christos fi
   6933  1.12  christos           break
   6934  1.12  christos fi
   6935  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6936  1.12  christos fi
   6937  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6938  1.12  christos     done
   6939  1.12  christos     CFLAGS=$ac_save_CFLAGS
   6940  1.12  christos 
   6941  1.12  christos fi
   6942  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
   6943  1.12  christos printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
   6944  1.12  christos   case $ac_cv_c_undeclared_builtin_options in #(
   6945  1.12  christos   'cannot detect') :
   6946  1.12  christos     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6947  1.12  christos printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6948  1.12  christos as_fn_error $? "cannot make $CC report undeclared builtins
   6949  1.12  christos See \`config.log' for more details" "$LINENO" 5; } ;; #(
   6950  1.12  christos   'none needed') :
   6951  1.12  christos     ac_c_undeclared_builtin_options='' ;; #(
   6952  1.12  christos   *) :
   6953  1.12  christos     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
   6954  1.12  christos esac
   6955  1.12  christos 
   6956  1.12  christos ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   6957  1.11  christos #include <net/ethernet.h>
   6958  1.11  christos 
   6959  1.12  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6960  1.12  christos if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   6961  1.12  christos then :
   6962  1.11  christos 
   6963  1.11  christos 
   6964  1.12  christos printf "%s\n" "#define NET_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
   6965  1.11  christos 
   6966  1.11  christos 
   6967  1.11  christos fi
   6968  1.11  christos 	#
   6969  1.11  christos 	# Did that succeed?
   6970   1.1  christos 	#
   6971  1.11  christos 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   6972  1.11  christos 		#
   6973  1.11  christos 		# No, how about <netinet/ether.h>, as on Linux?
   6974  1.11  christos 		#
   6975  1.11  christos 		# This test fails if we don't have <netinet/ether.h>
   6976  1.11  christos 		# or if we do but it doesn't declare ether_ntohost().
   6977   1.1  christos 		#
   6978  1.11  christos 		# Unset ac_cv_have_decl_ether_ntohost so we don't
   6979  1.11  christos 		# treat the previous failure as a cached value and
   6980  1.11  christos 		# suppress the next test.
   6981   1.1  christos 		#
   6982  1.11  christos 		unset ac_cv_have_decl_ether_ntohost
   6983  1.12  christos 		ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   6984  1.11  christos #include <netinet/ether.h>
   6985   1.1  christos 
   6986  1.12  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6987  1.12  christos if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   6988  1.12  christos then :
   6989   1.1  christos 
   6990   1.1  christos 
   6991  1.12  christos printf "%s\n" "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 1" >>confdefs.h
   6992   1.1  christos 
   6993   1.1  christos 
   6994   1.1  christos fi
   6995   1.1  christos 	fi
   6996   1.1  christos 	#
   6997   1.1  christos 	# Did that succeed?
   6998   1.1  christos 	#
   6999   1.1  christos 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   7000   1.1  christos 		#
   7001  1.11  christos 		# No, how about <sys/ethernet.h>, as on Solaris 10
   7002  1.11  christos 		# and later?
   7003  1.11  christos 		#
   7004  1.11  christos 		# This test fails if we don't have <sys/ethernet.h>
   7005  1.11  christos 		# or if we do but it doesn't declare ether_ntohost().
   7006  1.11  christos 		#
   7007  1.11  christos 		# Unset ac_cv_have_decl_ether_ntohost so we don't
   7008  1.11  christos 		# treat the previous failure as a cached value and
   7009  1.11  christos 		# suppress the next test.
   7010   1.1  christos 		#
   7011  1.11  christos 		unset ac_cv_have_decl_ether_ntohost
   7012  1.12  christos 		ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   7013  1.11  christos #include <sys/ethernet.h>
   7014  1.11  christos 
   7015  1.12  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7016  1.12  christos if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   7017  1.12  christos then :
   7018  1.11  christos 
   7019  1.11  christos 
   7020  1.12  christos printf "%s\n" "#define SYS_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
   7021  1.11  christos 
   7022   1.1  christos 
   7023   1.1  christos fi
   7024  1.11  christos 	fi
   7025  1.11  christos 	#
   7026  1.11  christos 	# Did that succeed?
   7027  1.11  christos 	#
   7028  1.11  christos 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   7029  1.11  christos 		#
   7030  1.11  christos 		# No, how about <arpa/inet.h>, as in AIX?
   7031  1.11  christos 		#
   7032  1.11  christos 		# This test fails if we don't have <arpa/inet.h>
   7033  1.11  christos 		# (if we have ether_ntohost(), we should have
   7034  1.11  christos 		# networking, and if we have networking, we should
   7035  1.11  christos 		# have <arpa/inet.h>) or if we do but it doesn't
   7036  1.11  christos 		# declare ether_ntohost().
   7037  1.11  christos 		#
   7038  1.11  christos 		# Unset ac_cv_have_decl_ether_ntohost so we don't
   7039  1.11  christos 		# treat the previous failure as a cached value and
   7040  1.11  christos 		# suppress the next test.
   7041  1.11  christos 		#
   7042  1.11  christos 		unset ac_cv_have_decl_ether_ntohost
   7043  1.12  christos 		ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   7044  1.11  christos #include <arpa/inet.h>
   7045   1.1  christos 
   7046  1.12  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7047  1.12  christos if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   7048  1.12  christos then :
   7049   1.1  christos 
   7050   1.1  christos 
   7051  1.12  christos printf "%s\n" "#define ARPA_INET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
   7052   1.1  christos 
   7053   1.1  christos 
   7054   1.1  christos fi
   7055   1.1  christos 	fi
   7056   1.1  christos 	#
   7057  1.11  christos 	# Did that succeed?
   7058   1.1  christos 	#
   7059   1.1  christos 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   7060   1.1  christos 		#
   7061  1.11  christos 		# No, how about <netinet/if_ether.h>?
   7062  1.11  christos 		# On some platforms, it requires <net/if.h> and
   7063  1.11  christos 		# <netinet/in.h>, and we always include it with
   7064  1.11  christos 		# both of them, so test it with both of them.
   7065  1.11  christos 		#
   7066  1.11  christos 		# This test fails if we don't have <netinet/if_ether.h>
   7067  1.11  christos 		# and the headers we include before it, or if we do but
   7068  1.11  christos 		# <netinet/if_ether.h> doesn't declare ether_hostton().
   7069  1.11  christos 		#
   7070  1.11  christos 		# Unset ac_cv_have_decl_ether_ntohost so we don't
   7071  1.11  christos 		# treat the previous failure as a cached value and
   7072  1.11  christos 		# suppress the next test.
   7073   1.1  christos 		#
   7074  1.11  christos 		unset ac_cv_have_decl_ether_ntohost
   7075  1.12  christos 		ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   7076   1.3  christos #include <sys/types.h>
   7077   1.3  christos #include <sys/socket.h>
   7078  1.11  christos #include <net/if.h>
   7079   1.3  christos #include <netinet/in.h>
   7080   1.3  christos #include <netinet/if_ether.h>
   7081   1.1  christos 
   7082  1.12  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7083  1.12  christos if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   7084  1.12  christos then :
   7085  1.11  christos 
   7086   1.3  christos 
   7087  1.12  christos printf "%s\n" "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
   7088   1.1  christos 
   7089   1.3  christos 
   7090   1.1  christos fi
   7091  1.11  christos 	fi
   7092  1.11  christos 	#
   7093  1.11  christos 	# After all that, is ether_ntohost() declared?
   7094  1.11  christos 	#
   7095  1.11  christos 	if test "$ac_cv_have_decl_ether_ntohost" = yes; then
   7096  1.11  christos 		#
   7097  1.11  christos 		# Yes.
   7098  1.11  christos 		#
   7099   1.1  christos 
   7100  1.12  christos printf "%s\n" "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h
   7101   1.3  christos 
   7102   1.3  christos 	else
   7103  1.11  christos 		#
   7104  1.11  christos 		# No, we'll have to declare it ourselves.
   7105  1.11  christos 		# Do we have "struct ether_addr" if we include
   7106  1.11  christos 		# <netinet/if_ether.h>?
   7107  1.11  christos 		#
   7108  1.11  christos 		ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
   7109  1.11  christos 			#include <sys/types.h>
   7110  1.11  christos 			#include <sys/socket.h>
   7111  1.11  christos 			#include <net/if.h>
   7112  1.11  christos 			#include <netinet/in.h>
   7113  1.11  christos 			#include <netinet/if_ether.h>
   7114   1.1  christos 
   7115  1.11  christos "
   7116  1.12  christos if test "x$ac_cv_type_struct_ether_addr" = xyes
   7117  1.12  christos then :
   7118   1.1  christos 
   7119  1.12  christos printf "%s\n" "#define HAVE_STRUCT_ETHER_ADDR 1" >>confdefs.h
   7120   1.1  christos 
   7121   1.1  christos 
   7122   1.1  christos fi
   7123  1.11  christos 
   7124  1.11  christos 	fi
   7125   1.1  christos fi
   7126   1.1  christos 
   7127   1.6  christos ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks"
   7128  1.12  christos if test "x$ac_cv_func_pcap_list_datalinks" = xyes
   7129  1.12  christos then :
   7130   1.6  christos 
   7131   1.6  christos 
   7132  1.12  christos printf "%s\n" "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h
   7133   1.6  christos 
   7134  1.12  christos 	    ac_fn_c_check_func "$LINENO" "pcap_free_datalinks" "ac_cv_func_pcap_free_datalinks"
   7135  1.12  christos if test "x$ac_cv_func_pcap_free_datalinks" = xyes
   7136  1.12  christos then :
   7137  1.12  christos   printf "%s\n" "#define HAVE_PCAP_FREE_DATALINKS 1" >>confdefs.h
   7138   1.6  christos 
   7139   1.6  christos fi
   7140   1.6  christos 
   7141   1.6  christos 
   7142  1.12  christos else $as_nop
   7143   1.6  christos 
   7144   1.6  christos 	    case " $LIBOBJS " in
   7145   1.6  christos   *" datalinks.$ac_objext "* ) ;;
   7146   1.6  christos   *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
   7147   1.6  christos  ;;
   7148   1.6  christos esac
   7149   1.6  christos 
   7150   1.6  christos 
   7151   1.6  christos fi
   7152   1.6  christos 
   7153   1.6  christos 
   7154   1.6  christos ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val"
   7155  1.12  christos if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes
   7156  1.12  christos then :
   7157   1.6  christos 
   7158   1.6  christos 
   7159  1.12  christos printf "%s\n" "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h
   7160   1.6  christos 
   7161   1.6  christos 	    ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description"
   7162  1.12  christos if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes
   7163  1.12  christos then :
   7164   1.6  christos 
   7165  1.12  christos printf "%s\n" "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h
   7166   1.6  christos 
   7167  1.12  christos else $as_nop
   7168   1.6  christos 
   7169   1.6  christos 		    case " $LIBOBJS " in
   7170   1.6  christos   *" dlnames.$ac_objext "* ) ;;
   7171   1.6  christos   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
   7172   1.6  christos  ;;
   7173   1.6  christos esac
   7174   1.6  christos 
   7175   1.6  christos 
   7176   1.6  christos fi
   7177   1.6  christos 
   7178   1.6  christos 
   7179  1.12  christos else $as_nop
   7180   1.6  christos 
   7181   1.6  christos 	    case " $LIBOBJS " in
   7182   1.6  christos   *" dlnames.$ac_objext "* ) ;;
   7183   1.6  christos   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
   7184   1.6  christos  ;;
   7185   1.6  christos esac
   7186   1.6  christos 
   7187   1.6  christos 
   7188   1.6  christos fi
   7189   1.6  christos 
   7190   1.6  christos 
   7191  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink"
   7192  1.12  christos if test "x$ac_cv_func_pcap_set_datalink" = xyes
   7193  1.12  christos then :
   7194  1.12  christos   printf "%s\n" "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h
   7195  1.11  christos 
   7196  1.11  christos fi
   7197  1.11  christos 
   7198  1.11  christos 
   7199  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop"
   7200  1.12  christos if test "x$ac_cv_func_pcap_breakloop" = xyes
   7201  1.12  christos then :
   7202  1.12  christos   printf "%s\n" "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
   7203   1.6  christos 
   7204   1.6  christos fi
   7205   1.6  christos 
   7206   1.6  christos 
   7207   1.3  christos #
   7208   1.3  christos # Do we have the new open API?  Check for pcap_create, and assume that,
   7209   1.3  christos # if we do, we also have pcap_activate() and the other new routines
   7210   1.3  christos # introduced in libpcap 1.0.0.
   7211   1.3  christos #
   7212  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create"
   7213  1.12  christos if test "x$ac_cv_func_pcap_create" = xyes
   7214  1.12  christos then :
   7215  1.12  christos   printf "%s\n" "#define HAVE_PCAP_CREATE 1" >>confdefs.h
   7216   1.1  christos 
   7217   1.3  christos fi
   7218   1.3  christos 
   7219   1.3  christos if test $ac_cv_func_pcap_create = "yes" ; then
   7220   1.1  christos 	#
   7221   1.3  christos 	# OK, do we have pcap_set_tstamp_type?  If so, assume we have
   7222   1.3  christos 	# pcap_list_tstamp_types and pcap_free_tstamp_types as well.
   7223   1.1  christos 	#
   7224  1.12  christos 	ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type"
   7225  1.12  christos if test "x$ac_cv_func_pcap_set_tstamp_type" = xyes
   7226  1.12  christos then :
   7227  1.12  christos   printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_TYPE 1" >>confdefs.h
   7228   1.1  christos 
   7229   1.1  christos fi
   7230   1.3  christos 
   7231   1.5  christos 	#
   7232   1.5  christos 	# And do we have pcap_set_tstamp_precision?  If so, we assume
   7233   1.5  christos 	# we also have pcap_open_offline_with_tstamp_precision.
   7234   1.5  christos 	#
   7235  1.12  christos 	ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_precision" "ac_cv_func_pcap_set_tstamp_precision"
   7236  1.12  christos if test "x$ac_cv_func_pcap_set_tstamp_precision" = xyes
   7237  1.12  christos then :
   7238  1.12  christos   printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_PRECISION 1" >>confdefs.h
   7239   1.5  christos 
   7240   1.3  christos fi
   7241   1.3  christos 
   7242   1.3  christos fi
   7243   1.1  christos 
   7244  1.12  christos #
   7245  1.12  christos # Check for a miscellaneous collection of functions which we use
   7246  1.12  christos # if we have them.
   7247  1.12  christos #
   7248  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_findalldevs" "ac_cv_func_pcap_findalldevs"
   7249  1.12  christos if test "x$ac_cv_func_pcap_findalldevs" = xyes
   7250  1.12  christos then :
   7251  1.12  christos   printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS 1" >>confdefs.h
   7252   1.1  christos 
   7253   1.3  christos fi
   7254   1.1  christos 
   7255  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_dump_flush" "ac_cv_func_pcap_dump_flush"
   7256  1.12  christos if test "x$ac_cv_func_pcap_dump_flush" = xyes
   7257  1.12  christos then :
   7258  1.12  christos   printf "%s\n" "#define HAVE_PCAP_DUMP_FLUSH 1" >>confdefs.h
   7259  1.12  christos 
   7260   1.1  christos fi
   7261  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_lib_version" "ac_cv_func_pcap_lib_version"
   7262  1.12  christos if test "x$ac_cv_func_pcap_lib_version" = xyes
   7263  1.12  christos then :
   7264  1.12  christos   printf "%s\n" "#define HAVE_PCAP_LIB_VERSION 1" >>confdefs.h
   7265  1.11  christos 
   7266  1.11  christos fi
   7267   1.1  christos 
   7268   1.3  christos if test $ac_cv_func_pcap_lib_version = "no" ; then
   7269  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5
   7270  1.12  christos printf %s "checking whether pcap_version is defined by libpcap... " >&6; }
   7271   1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7272   1.1  christos /* end confdefs.h.  */
   7273   1.3  christos 
   7274   1.3  christos int
   7275  1.12  christos main (void)
   7276   1.3  christos {
   7277   1.3  christos 
   7278   1.3  christos 	extern char pcap_version[];
   7279   1.3  christos 
   7280   1.3  christos 	return (int)pcap_version;
   7281   1.3  christos 
   7282   1.3  christos   ;
   7283   1.3  christos   return 0;
   7284   1.3  christos }
   7285  1.12  christos 
   7286   1.1  christos _ACEOF
   7287  1.12  christos if ac_fn_c_try_link "$LINENO"
   7288  1.12  christos then :
   7289   1.3  christos   ac_lbl_cv_pcap_version_defined=yes
   7290  1.12  christos else $as_nop
   7291   1.4  christos   ac_lbl_cv_pcap_version_defined=no
   7292   1.1  christos fi
   7293  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7294   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   7295   1.4  christos     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
   7296  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7297  1.12  christos printf "%s\n" "yes" >&6; }
   7298   1.1  christos 
   7299  1.12  christos printf "%s\n" "#define HAVE_PCAP_VERSION 1" >>confdefs.h
   7300   1.1  christos 
   7301   1.3  christos     else
   7302  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7303  1.12  christos printf "%s\n" "no" >&6; }
   7304   1.3  christos     fi
   7305   1.3  christos fi
   7306  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_setdirection" "ac_cv_func_pcap_setdirection"
   7307  1.12  christos if test "x$ac_cv_func_pcap_setdirection" = xyes
   7308  1.12  christos then :
   7309  1.12  christos   printf "%s\n" "#define HAVE_PCAP_SETDIRECTION 1" >>confdefs.h
   7310  1.12  christos 
   7311  1.12  christos fi
   7312  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_set_immediate_mode" "ac_cv_func_pcap_set_immediate_mode"
   7313  1.12  christos if test "x$ac_cv_func_pcap_set_immediate_mode" = xyes
   7314  1.12  christos then :
   7315  1.12  christos   printf "%s\n" "#define HAVE_PCAP_SET_IMMEDIATE_MODE 1" >>confdefs.h
   7316  1.12  christos 
   7317  1.12  christos fi
   7318  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_dump_ftell64" "ac_cv_func_pcap_dump_ftell64"
   7319  1.12  christos if test "x$ac_cv_func_pcap_dump_ftell64" = xyes
   7320  1.12  christos then :
   7321  1.12  christos   printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL64 1" >>confdefs.h
   7322  1.11  christos 
   7323  1.11  christos fi
   7324  1.11  christos 
   7325  1.12  christos #
   7326  1.12  christos # See the comment in AC_LBL_LIBPCAP in aclocal.m4 for the reason
   7327  1.12  christos # why we don't check for remote-capture APIs if we're building
   7328  1.12  christos # with the system libpcap on macOS.
   7329  1.12  christos #
   7330  1.12  christos if test "$_dont_check_for_remote_apis" != "yes"; then
   7331  1.12  christos 	ac_fn_c_check_func "$LINENO" "pcap_open" "ac_cv_func_pcap_open"
   7332  1.12  christos if test "x$ac_cv_func_pcap_open" = xyes
   7333  1.12  christos then :
   7334  1.12  christos   printf "%s\n" "#define HAVE_PCAP_OPEN 1" >>confdefs.h
   7335  1.12  christos 
   7336  1.12  christos fi
   7337  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_findalldevs_ex" "ac_cv_func_pcap_findalldevs_ex"
   7338  1.12  christos if test "x$ac_cv_func_pcap_findalldevs_ex" = xyes
   7339  1.12  christos then :
   7340  1.12  christos   printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS_EX 1" >>confdefs.h
   7341  1.11  christos 
   7342  1.11  christos fi
   7343  1.11  christos 
   7344  1.12  christos fi
   7345  1.11  christos ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell"
   7346  1.12  christos if test "x$ac_cv_func_pcap_dump_ftell" = xyes
   7347  1.12  christos then :
   7348  1.12  christos   printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h
   7349  1.11  christos 
   7350  1.12  christos else $as_nop
   7351  1.11  christos   case " $LIBOBJS " in
   7352  1.11  christos   *" pcap_dump_ftell.$ac_objext "* ) ;;
   7353  1.11  christos   *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
   7354  1.11  christos  ;;
   7355  1.11  christos esac
   7356  1.11  christos 
   7357  1.11  christos fi
   7358  1.11  christos 
   7359  1.11  christos 
   7360   1.7  christos #
   7361   1.7  christos # Check for special debugging functions
   7362   1.7  christos #
   7363  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug"
   7364  1.12  christos if test "x$ac_cv_func_pcap_set_parser_debug" = xyes
   7365  1.12  christos then :
   7366  1.12  christos   printf "%s\n" "#define HAVE_PCAP_SET_PARSER_DEBUG 1" >>confdefs.h
   7367   1.7  christos 
   7368   1.7  christos fi
   7369   1.7  christos 
   7370   1.7  christos if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then
   7371   1.7  christos 	#
   7372   1.7  christos 	# OK, we don't have pcap_set_parser_debug() to set the libpcap
   7373   1.7  christos 	# filter expression parser debug flag; can we directly set the
   7374   1.7  christos 	# flag?
   7375  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
   7376  1.12  christos printf %s "checking whether pcap_debug is defined by libpcap... " >&6; }
   7377   1.7  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7378   1.1  christos /* end confdefs.h.  */
   7379   1.3  christos 
   7380   1.3  christos int
   7381  1.12  christos main (void)
   7382   1.3  christos {
   7383   1.3  christos 
   7384   1.7  christos 		extern int pcap_debug;
   7385   1.3  christos 
   7386   1.7  christos 		return pcap_debug;
   7387   1.3  christos 
   7388   1.3  christos   ;
   7389   1.3  christos   return 0;
   7390   1.3  christos }
   7391  1.12  christos 
   7392   1.1  christos _ACEOF
   7393  1.12  christos if ac_fn_c_try_link "$LINENO"
   7394  1.12  christos then :
   7395   1.3  christos   ac_lbl_cv_pcap_debug_defined=yes
   7396  1.12  christos else $as_nop
   7397   1.4  christos   ac_lbl_cv_pcap_debug_defined=no
   7398   1.1  christos fi
   7399  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7400   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   7401   1.7  christos 	if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
   7402  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7403  1.12  christos printf "%s\n" "yes" >&6; }
   7404   1.3  christos 
   7405  1.12  christos printf "%s\n" "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
   7406   1.1  christos 
   7407   1.7  christos 	else
   7408  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7409  1.12  christos printf "%s\n" "no" >&6; }
   7410   1.7  christos 		#
   7411   1.7  christos 		# OK, what about "yydebug"?
   7412   1.7  christos 		#
   7413  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
   7414  1.12  christos printf %s "checking whether yydebug is defined by libpcap... " >&6; }
   7415   1.7  christos 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7416   1.1  christos /* end confdefs.h.  */
   7417   1.3  christos 
   7418   1.4  christos int
   7419  1.12  christos main (void)
   7420   1.4  christos {
   7421   1.3  christos 
   7422   1.7  christos 			extern int yydebug;
   7423   1.3  christos 
   7424   1.7  christos 			return yydebug;
   7425   1.3  christos 
   7426   1.3  christos   ;
   7427   1.3  christos   return 0;
   7428   1.3  christos }
   7429  1.12  christos 
   7430   1.1  christos _ACEOF
   7431  1.12  christos if ac_fn_c_try_link "$LINENO"
   7432  1.12  christos then :
   7433   1.4  christos   ac_lbl_cv_yydebug_defined=yes
   7434  1.12  christos else $as_nop
   7435   1.4  christos   ac_lbl_cv_yydebug_defined=no
   7436   1.4  christos fi
   7437  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7438   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   7439   1.7  christos 		if test "$ac_lbl_cv_yydebug_defined" = yes ; then
   7440  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7441  1.12  christos printf "%s\n" "yes" >&6; }
   7442   1.1  christos 
   7443  1.12  christos printf "%s\n" "#define HAVE_YYDEBUG 1" >>confdefs.h
   7444   1.1  christos 
   7445   1.7  christos 		else
   7446  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7447  1.12  christos printf "%s\n" "no" >&6; }
   7448   1.7  christos 		fi
   7449   1.4  christos 	fi
   7450   1.3  christos fi
   7451  1.12  christos ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug"
   7452  1.12  christos if test "x$ac_cv_func_pcap_set_optimizer_debug" = xyes
   7453  1.12  christos then :
   7454  1.12  christos   printf "%s\n" "#define HAVE_PCAP_SET_OPTIMIZER_DEBUG 1" >>confdefs.h
   7455   1.7  christos 
   7456   1.7  christos fi
   7457   1.7  christos 
   7458   1.4  christos ac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump"
   7459  1.12  christos if test "x$ac_cv_func_bpf_dump" = xyes
   7460  1.12  christos then :
   7461  1.12  christos   printf "%s\n" "#define HAVE_BPF_DUMP 1" >>confdefs.h
   7462   1.1  christos 
   7463  1.12  christos else $as_nop
   7464   1.3  christos   case " $LIBOBJS " in
   7465   1.4  christos   *" bpf_dump.$ac_objext "* ) ;;
   7466   1.4  christos   *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext"
   7467   1.3  christos  ;;
   7468   1.3  christos esac
   7469   1.1  christos 
   7470   1.1  christos fi
   7471   1.3  christos 
   7472   1.3  christos #
   7473   1.3  christos # Assume V7/BSD convention for man pages (file formats in section 5,
   7474   1.3  christos # miscellaneous info in section 7).
   7475   1.3  christos #
   7476   1.3  christos MAN_FILE_FORMATS=5
   7477   1.3  christos MAN_MISC_INFO=7
   7478   1.3  christos case "$host_os" in
   7479   1.3  christos 
   7480   1.3  christos aix*)
   7481   1.3  christos 
   7482  1.12  christos printf "%s\n" "#define _SUN 1" >>confdefs.h
   7483   1.1  christos 
   7484   1.3  christos 	;;
   7485   1.3  christos 
   7486   1.3  christos hpux*)
   7487   1.3  christos 	#
   7488   1.3  christos 	# Use System V conventions for man pages.
   7489   1.3  christos 	#
   7490   1.3  christos 	MAN_FILE_FORMATS=4
   7491   1.3  christos 	MAN_MISC_INFO=5
   7492   1.3  christos 	;;
   7493   1.3  christos 
   7494   1.3  christos irix*)
   7495   1.3  christos 	V_GROUP=sys
   7496   1.3  christos 
   7497   1.3  christos 	#
   7498   1.3  christos 	# Use System V conventions for man pages.
   7499   1.3  christos 	#
   7500   1.3  christos 	MAN_FILE_FORMATS=4
   7501   1.3  christos 	MAN_MISC_INFO=5
   7502   1.3  christos 	;;
   7503   1.3  christos 
   7504   1.3  christos osf*)
   7505   1.3  christos 	V_GROUP=system
   7506   1.3  christos 
   7507   1.3  christos 	#
   7508   1.3  christos 	# Use System V conventions for man pages.
   7509   1.3  christos 	#
   7510   1.3  christos 	MAN_FILE_FORMATS=4
   7511   1.3  christos 	MAN_MISC_INFO=5
   7512   1.3  christos 	;;
   7513   1.3  christos 
   7514   1.3  christos solaris*)
   7515   1.3  christos 	#
   7516   1.3  christos 	# Use System V conventions for man pages.
   7517   1.3  christos 	#
   7518   1.3  christos 	MAN_FILE_FORMATS=4
   7519   1.3  christos 	MAN_MISC_INFO=5
   7520   1.3  christos 	;;
   7521   1.3  christos esac
   7522   1.1  christos 
   7523   1.4  christos #
   7524   1.6  christos # Make sure we have a definition for C99's uintptr_t (regardless of
   7525   1.6  christos # whether the environment is a C99 environment or not).
   7526   1.6  christos #
   7527   1.6  christos 
   7528   1.6  christos   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   7529  1.12  christos if test "x$ac_cv_type_uintptr_t" = xyes
   7530  1.12  christos then :
   7531   1.6  christos 
   7532  1.12  christos printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
   7533   1.6  christos 
   7534  1.12  christos else $as_nop
   7535   1.6  christos   for ac_type in 'unsigned int' 'unsigned long int' \
   7536   1.6  christos 	'unsigned long long int'; do
   7537   1.6  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7538   1.6  christos /* end confdefs.h.  */
   7539   1.6  christos $ac_includes_default
   7540   1.6  christos int
   7541  1.12  christos main (void)
   7542   1.6  christos {
   7543   1.6  christos static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   7544   1.6  christos test_array [0] = 0;
   7545   1.6  christos return test_array [0];
   7546   1.6  christos 
   7547   1.6  christos   ;
   7548   1.6  christos   return 0;
   7549   1.6  christos }
   7550   1.6  christos _ACEOF
   7551  1.12  christos if ac_fn_c_try_compile "$LINENO"
   7552  1.12  christos then :
   7553   1.6  christos 
   7554  1.12  christos printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
   7555   1.6  christos 
   7556   1.6  christos 	  ac_type=
   7557   1.6  christos fi
   7558  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7559   1.6  christos        test -z "$ac_type" && break
   7560   1.6  christos      done
   7561   1.6  christos fi
   7562   1.6  christos 
   7563   1.6  christos 
   7564   1.6  christos 
   7565  1.12  christos savedcppflags="$CPPFLAGS"
   7566  1.12  christos CPPFLAGS="$CPPFLAGS $V_INCLS"
   7567  1.12  christos 
   7568   1.6  christos #
   7569  1.11  christos # Check whether we have pcap/pcap-inttypes.h.
   7570  1.11  christos # If we do, we use that to get the C99 types defined.
   7571  1.11  christos #
   7572  1.12  christos ac_fn_c_check_header_compile "$LINENO" "pcap/pcap-inttypes.h" "ac_cv_header_pcap_pcap_inttypes_h" "$ac_includes_default"
   7573  1.12  christos if test "x$ac_cv_header_pcap_pcap_inttypes_h" = xyes
   7574  1.12  christos then :
   7575  1.12  christos   printf "%s\n" "#define HAVE_PCAP_PCAP_INTTYPES_H 1" >>confdefs.h
   7576  1.12  christos 
   7577  1.12  christos fi
   7578  1.12  christos 
   7579  1.12  christos 
   7580  1.12  christos #
   7581  1.12  christos # At compile time HAVE_PCAP_FINDALLDEVS depends on HAVE_PCAP_IF_T.
   7582  1.12  christos #
   7583  1.12  christos ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h>
   7584  1.12  christos "
   7585  1.12  christos if test "x$ac_cv_type_pcap_if_t" = xyes
   7586  1.12  christos then :
   7587  1.12  christos 
   7588  1.12  christos printf "%s\n" "#define HAVE_PCAP_IF_T 1" >>confdefs.h
   7589  1.12  christos 
   7590  1.11  christos 
   7591  1.11  christos fi
   7592  1.11  christos 
   7593  1.11  christos 
   7594  1.11  christos CPPFLAGS="$savedcppflags"
   7595  1.11  christos 
   7596  1.11  christos #
   7597   1.5  christos # Define the old BSD specified-width types in terms of the C99 types;
   7598   1.5  christos # we may need them with libpcap include files.
   7599   1.4  christos #
   7600   1.5  christos ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
   7601   1.5  christos #include <sys/types.h>
   7602   1.4  christos 
   7603   1.4  christos "
   7604  1.12  christos if test "x$ac_cv_type_u_int8_t" = xyes
   7605  1.12  christos then :
   7606   1.1  christos 
   7607  1.12  christos else $as_nop
   7608   1.1  christos 
   7609  1.12  christos printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h
   7610   1.4  christos 
   7611   1.1  christos fi
   7612   1.1  christos 
   7613   1.4  christos ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
   7614   1.5  christos #include <sys/types.h>
   7615   1.5  christos 
   7616   1.4  christos "
   7617  1.12  christos if test "x$ac_cv_type_u_int16_t" = xyes
   7618  1.12  christos then :
   7619   1.4  christos 
   7620  1.12  christos else $as_nop
   7621   1.1  christos 
   7622  1.12  christos printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h
   7623   1.1  christos 
   7624   1.1  christos fi
   7625   1.1  christos 
   7626   1.4  christos ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
   7627   1.5  christos #include <sys/types.h>
   7628   1.5  christos 
   7629   1.4  christos "
   7630  1.12  christos if test "x$ac_cv_type_u_int32_t" = xyes
   7631  1.12  christos then :
   7632   1.1  christos 
   7633  1.12  christos else $as_nop
   7634   1.1  christos 
   7635  1.12  christos printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h
   7636   1.4  christos 
   7637   1.1  christos fi
   7638   1.1  christos 
   7639   1.4  christos ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
   7640   1.5  christos #include <sys/types.h>
   7641   1.5  christos 
   7642   1.4  christos "
   7643  1.12  christos if test "x$ac_cv_type_u_int64_t" = xyes
   7644  1.12  christos then :
   7645   1.4  christos 
   7646  1.12  christos else $as_nop
   7647   1.1  christos 
   7648  1.12  christos printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h
   7649   1.1  christos 
   7650   1.1  christos fi
   7651   1.1  christos 
   7652   1.1  christos 
   7653  1.11  christos if test -n "$ac_tool_prefix"; then
   7654  1.11  christos   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   7655  1.11  christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   7656  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7657  1.12  christos printf %s "checking for $ac_word... " >&6; }
   7658  1.12  christos if test ${ac_cv_prog_RANLIB+y}
   7659  1.12  christos then :
   7660  1.12  christos   printf %s "(cached) " >&6
   7661  1.12  christos else $as_nop
   7662  1.11  christos   if test -n "$RANLIB"; then
   7663  1.11  christos   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   7664  1.11  christos else
   7665  1.11  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7666  1.11  christos for as_dir in $PATH
   7667  1.11  christos do
   7668  1.11  christos   IFS=$as_save_IFS
   7669  1.12  christos   case $as_dir in #(((
   7670  1.12  christos     '') as_dir=./ ;;
   7671  1.12  christos     */) ;;
   7672  1.12  christos     *) as_dir=$as_dir/ ;;
   7673  1.12  christos   esac
   7674  1.11  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   7675  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7676  1.11  christos     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   7677  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7678  1.11  christos     break 2
   7679  1.11  christos   fi
   7680  1.11  christos done
   7681  1.11  christos   done
   7682  1.11  christos IFS=$as_save_IFS
   7683   1.1  christos 
   7684  1.11  christos fi
   7685  1.11  christos fi
   7686  1.11  christos RANLIB=$ac_cv_prog_RANLIB
   7687  1.11  christos if test -n "$RANLIB"; then
   7688  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   7689  1.12  christos printf "%s\n" "$RANLIB" >&6; }
   7690  1.11  christos else
   7691  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7692  1.12  christos printf "%s\n" "no" >&6; }
   7693  1.11  christos fi
   7694   1.1  christos 
   7695   1.1  christos 
   7696  1.11  christos fi
   7697  1.11  christos if test -z "$ac_cv_prog_RANLIB"; then
   7698  1.11  christos   ac_ct_RANLIB=$RANLIB
   7699  1.11  christos   # Extract the first word of "ranlib", so it can be a program name with args.
   7700  1.11  christos set dummy ranlib; ac_word=$2
   7701  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7702  1.12  christos printf %s "checking for $ac_word... " >&6; }
   7703  1.12  christos if test ${ac_cv_prog_ac_ct_RANLIB+y}
   7704  1.12  christos then :
   7705  1.12  christos   printf %s "(cached) " >&6
   7706  1.12  christos else $as_nop
   7707  1.11  christos   if test -n "$ac_ct_RANLIB"; then
   7708  1.11  christos   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   7709  1.11  christos else
   7710  1.11  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7711  1.11  christos for as_dir in $PATH
   7712  1.11  christos do
   7713  1.11  christos   IFS=$as_save_IFS
   7714  1.12  christos   case $as_dir in #(((
   7715  1.12  christos     '') as_dir=./ ;;
   7716  1.12  christos     */) ;;
   7717  1.12  christos     *) as_dir=$as_dir/ ;;
   7718  1.12  christos   esac
   7719  1.11  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   7720  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7721  1.11  christos     ac_cv_prog_ac_ct_RANLIB="ranlib"
   7722  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7723  1.11  christos     break 2
   7724  1.11  christos   fi
   7725  1.11  christos done
   7726  1.11  christos   done
   7727  1.11  christos IFS=$as_save_IFS
   7728   1.1  christos 
   7729  1.11  christos fi
   7730  1.11  christos fi
   7731  1.11  christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   7732  1.11  christos if test -n "$ac_ct_RANLIB"; then
   7733  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   7734  1.12  christos printf "%s\n" "$ac_ct_RANLIB" >&6; }
   7735   1.1  christos else
   7736  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7737  1.12  christos printf "%s\n" "no" >&6; }
   7738   1.1  christos fi
   7739   1.1  christos 
   7740  1.11  christos   if test "x$ac_ct_RANLIB" = x; then
   7741  1.11  christos     RANLIB=":"
   7742  1.11  christos   else
   7743  1.11  christos     case $cross_compiling:$ac_tool_warned in
   7744  1.11  christos yes:)
   7745  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7746  1.12  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7747  1.11  christos ac_tool_warned=yes ;;
   7748  1.11  christos esac
   7749  1.11  christos     RANLIB=$ac_ct_RANLIB
   7750  1.11  christos   fi
   7751   1.1  christos else
   7752  1.11  christos   RANLIB="$ac_cv_prog_RANLIB"
   7753   1.1  christos fi
   7754   1.1  christos 
   7755  1.11  christos if test -n "$ac_tool_prefix"; then
   7756  1.11  christos   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   7757  1.11  christos set dummy ${ac_tool_prefix}ar; ac_word=$2
   7758  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7759  1.12  christos printf %s "checking for $ac_word... " >&6; }
   7760  1.12  christos if test ${ac_cv_prog_AR+y}
   7761  1.12  christos then :
   7762  1.12  christos   printf %s "(cached) " >&6
   7763  1.12  christos else $as_nop
   7764  1.11  christos   if test -n "$AR"; then
   7765  1.11  christos   ac_cv_prog_AR="$AR" # Let the user override the test.
   7766   1.1  christos else
   7767  1.11  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7768  1.11  christos for as_dir in $PATH
   7769   1.5  christos do
   7770   1.5  christos   IFS=$as_save_IFS
   7771  1.12  christos   case $as_dir in #(((
   7772  1.12  christos     '') as_dir=./ ;;
   7773  1.12  christos     */) ;;
   7774  1.12  christos     *) as_dir=$as_dir/ ;;
   7775  1.12  christos   esac
   7776   1.5  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   7777  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7778   1.5  christos     ac_cv_prog_AR="${ac_tool_prefix}ar"
   7779  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7780   1.5  christos     break 2
   7781   1.5  christos   fi
   7782   1.5  christos done
   7783   1.5  christos   done
   7784   1.5  christos IFS=$as_save_IFS
   7785   1.5  christos 
   7786   1.5  christos fi
   7787   1.5  christos fi
   7788   1.5  christos AR=$ac_cv_prog_AR
   7789   1.5  christos if test -n "$AR"; then
   7790  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   7791  1.12  christos printf "%s\n" "$AR" >&6; }
   7792   1.5  christos else
   7793  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7794  1.12  christos printf "%s\n" "no" >&6; }
   7795   1.5  christos fi
   7796   1.5  christos 
   7797   1.5  christos 
   7798   1.5  christos fi
   7799   1.5  christos if test -z "$ac_cv_prog_AR"; then
   7800   1.5  christos   ac_ct_AR=$AR
   7801   1.5  christos   # Extract the first word of "ar", so it can be a program name with args.
   7802   1.5  christos set dummy ar; ac_word=$2
   7803  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7804  1.12  christos printf %s "checking for $ac_word... " >&6; }
   7805  1.12  christos if test ${ac_cv_prog_ac_ct_AR+y}
   7806  1.12  christos then :
   7807  1.12  christos   printf %s "(cached) " >&6
   7808  1.12  christos else $as_nop
   7809   1.5  christos   if test -n "$ac_ct_AR"; then
   7810   1.5  christos   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   7811   1.5  christos else
   7812   1.5  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7813   1.5  christos for as_dir in $PATH
   7814   1.5  christos do
   7815   1.5  christos   IFS=$as_save_IFS
   7816  1.12  christos   case $as_dir in #(((
   7817  1.12  christos     '') as_dir=./ ;;
   7818  1.12  christos     */) ;;
   7819  1.12  christos     *) as_dir=$as_dir/ ;;
   7820  1.12  christos   esac
   7821   1.5  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   7822  1.12  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7823   1.5  christos     ac_cv_prog_ac_ct_AR="ar"
   7824  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7825   1.5  christos     break 2
   7826   1.5  christos   fi
   7827   1.5  christos done
   7828   1.5  christos   done
   7829   1.5  christos IFS=$as_save_IFS
   7830   1.5  christos 
   7831   1.5  christos fi
   7832   1.5  christos fi
   7833   1.5  christos ac_ct_AR=$ac_cv_prog_ac_ct_AR
   7834   1.5  christos if test -n "$ac_ct_AR"; then
   7835  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   7836  1.12  christos printf "%s\n" "$ac_ct_AR" >&6; }
   7837   1.5  christos else
   7838  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7839  1.12  christos printf "%s\n" "no" >&6; }
   7840   1.5  christos fi
   7841   1.5  christos 
   7842   1.5  christos   if test "x$ac_ct_AR" = x; then
   7843   1.5  christos     AR=""
   7844   1.5  christos   else
   7845   1.5  christos     case $cross_compiling:$ac_tool_warned in
   7846   1.5  christos yes:)
   7847  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7848  1.12  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7849   1.5  christos ac_tool_warned=yes ;;
   7850   1.5  christos esac
   7851   1.5  christos     AR=$ac_ct_AR
   7852   1.5  christos   fi
   7853   1.5  christos else
   7854   1.5  christos   AR="$ac_cv_prog_AR"
   7855   1.5  christos fi
   7856   1.5  christos 
   7857   1.4  christos 
   7858   1.4  christos rm -f os-proto.h
   7859  1.13  christos     #
   7860  1.13  christos     # MKDEP defaults to no-op (":") if we don't test whether the compiler
   7861  1.13  christos     # supports generating dependencies
   7862  1.13  christos     #
   7863  1.13  christos     MKDEP=:
   7864   1.4  christos     if test "${LBL_CFLAGS+set}" = set; then
   7865   1.4  christos 	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
   7866   1.4  christos     fi
   7867   1.4  christos     if test -f .devel ; then
   7868   1.4  christos 	    #
   7869   1.4  christos 	    # Skip all the warning option stuff on some compilers.
   7870   1.4  christos 	    #
   7871   1.4  christos 	    if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
   7872   1.4  christos 
   7873  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
   7874  1.12  christos printf %s "checking whether the compiler supports the -W option... " >&6; }
   7875   1.7  christos 	save_CFLAGS="$CFLAGS"
   7876  1.11  christos 	CFLAGS="$CFLAGS -W"
   7877  1.11  christos 	#
   7878  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   7879  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   7880  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   7881  1.11  christos 	# testing compiler options - 15 years after somebody asked
   7882  1.11  christos 	# for it:
   7883  1.11  christos 	#
   7884  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   7885  1.11  christos 	#
   7886  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   7887  1.11  christos 	ac_c_werror_flag=yes
   7888  1.11  christos 	#
   7889  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   7890  1.11  christos 	# content of the program being compiled.  We do not, for example,
   7891  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   7892  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   7893  1.11  christos 	# that we would treat it as not working, as the test will fail if
   7894  1.11  christos 	# *any* error output, including a warning due to the flag we're
   7895  1.11  christos 	# testing, is generated; see
   7896  1.11  christos 	#
   7897  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7898  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7899  1.11  christos 	#
   7900  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   7901  1.12  christos 	# but we only require 2.69 or newer for now.
   7902  1.11  christos 	#
   7903   1.7  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7904   1.7  christos /* end confdefs.h.  */
   7905  1.11  christos int main(void) { return 0; }
   7906  1.11  christos _ACEOF
   7907  1.12  christos if ac_fn_c_try_compile "$LINENO"
   7908  1.12  christos then :
   7909  1.11  christos 
   7910  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7911  1.12  christos printf "%s\n" "yes" >&6; }
   7912  1.11  christos 		CFLAGS="$save_CFLAGS"
   7913  1.11  christos 		V_CCOPT="$V_CCOPT -W"
   7914  1.11  christos 
   7915  1.12  christos else $as_nop
   7916  1.11  christos 
   7917  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7918  1.12  christos printf "%s\n" "no" >&6; }
   7919  1.11  christos 		CFLAGS="$save_CFLAGS"
   7920  1.11  christos 
   7921  1.11  christos fi
   7922  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7923  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   7924   1.7  christos 
   7925  1.11  christos 
   7926  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
   7927  1.12  christos printf %s "checking whether the compiler supports the -Wall option... " >&6; }
   7928  1.11  christos 	save_CFLAGS="$CFLAGS"
   7929  1.11  christos 	CFLAGS="$CFLAGS -Wall"
   7930  1.11  christos 	#
   7931  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   7932  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   7933  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   7934  1.11  christos 	# testing compiler options - 15 years after somebody asked
   7935  1.11  christos 	# for it:
   7936  1.11  christos 	#
   7937  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   7938  1.11  christos 	#
   7939  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   7940  1.11  christos 	ac_c_werror_flag=yes
   7941  1.11  christos 	#
   7942  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   7943  1.11  christos 	# content of the program being compiled.  We do not, for example,
   7944  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   7945  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   7946  1.11  christos 	# that we would treat it as not working, as the test will fail if
   7947  1.11  christos 	# *any* error output, including a warning due to the flag we're
   7948  1.11  christos 	# testing, is generated; see
   7949  1.11  christos 	#
   7950  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7951  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7952  1.11  christos 	#
   7953  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   7954  1.12  christos 	# but we only require 2.69 or newer for now.
   7955  1.11  christos 	#
   7956  1.11  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7957  1.11  christos /* end confdefs.h.  */
   7958  1.11  christos int main(void) { return 0; }
   7959   1.7  christos _ACEOF
   7960  1.12  christos if ac_fn_c_try_compile "$LINENO"
   7961  1.12  christos then :
   7962   1.7  christos 
   7963  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7964  1.12  christos printf "%s\n" "yes" >&6; }
   7965  1.11  christos 		CFLAGS="$save_CFLAGS"
   7966  1.11  christos 		V_CCOPT="$V_CCOPT -Wall"
   7967  1.11  christos 
   7968  1.12  christos else $as_nop
   7969  1.11  christos 
   7970  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7971  1.12  christos printf "%s\n" "no" >&6; }
   7972  1.11  christos 		CFLAGS="$save_CFLAGS"
   7973  1.11  christos 
   7974  1.11  christos fi
   7975  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7976  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   7977  1.11  christos 
   7978   1.7  christos 
   7979  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wassign-enum option" >&5
   7980  1.12  christos printf %s "checking whether the compiler supports the -Wassign-enum option... " >&6; }
   7981  1.11  christos 	save_CFLAGS="$CFLAGS"
   7982  1.11  christos 	CFLAGS="$CFLAGS -Wassign-enum"
   7983  1.11  christos 	#
   7984  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   7985  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   7986  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   7987  1.11  christos 	# testing compiler options - 15 years after somebody asked
   7988  1.11  christos 	# for it:
   7989  1.11  christos 	#
   7990  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   7991  1.11  christos 	#
   7992  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   7993  1.11  christos 	ac_c_werror_flag=yes
   7994  1.11  christos 	#
   7995  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   7996  1.11  christos 	# content of the program being compiled.  We do not, for example,
   7997  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   7998  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   7999  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8000  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8001  1.11  christos 	# testing, is generated; see
   8002  1.11  christos 	#
   8003  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8004  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8005  1.11  christos 	#
   8006  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8007  1.12  christos 	# but we only require 2.69 or newer for now.
   8008  1.11  christos 	#
   8009  1.11  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8010  1.11  christos /* end confdefs.h.  */
   8011  1.11  christos int main(void) { return 0; }
   8012  1.11  christos _ACEOF
   8013  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8014  1.12  christos then :
   8015   1.7  christos 
   8016  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8017  1.12  christos printf "%s\n" "yes" >&6; }
   8018  1.11  christos 		CFLAGS="$save_CFLAGS"
   8019  1.11  christos 		V_CCOPT="$V_CCOPT -Wassign-enum"
   8020  1.11  christos 
   8021  1.12  christos else $as_nop
   8022  1.11  christos 
   8023  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8024  1.12  christos printf "%s\n" "no" >&6; }
   8025  1.11  christos 		CFLAGS="$save_CFLAGS"
   8026   1.7  christos 
   8027   1.7  christos fi
   8028  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8029  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8030   1.7  christos 
   8031   1.7  christos 
   8032  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcast-qual option" >&5
   8033  1.12  christos printf %s "checking whether the compiler supports the -Wcast-qual option... " >&6; }
   8034   1.4  christos 	save_CFLAGS="$CFLAGS"
   8035  1.11  christos 	CFLAGS="$CFLAGS -Wcast-qual"
   8036  1.11  christos 	#
   8037  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8038  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8039  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8040  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8041  1.11  christos 	# for it:
   8042  1.11  christos 	#
   8043  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8044  1.11  christos 	#
   8045  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8046  1.11  christos 	ac_c_werror_flag=yes
   8047  1.11  christos 	#
   8048  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8049  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8050  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8051  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8052  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8053  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8054  1.11  christos 	# testing, is generated; see
   8055  1.11  christos 	#
   8056  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8057  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8058  1.11  christos 	#
   8059  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8060  1.12  christos 	# but we only require 2.69 or newer for now.
   8061  1.11  christos 	#
   8062   1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8063   1.4  christos /* end confdefs.h.  */
   8064  1.11  christos int main(void) { return 0; }
   8065   1.4  christos _ACEOF
   8066  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8067  1.12  christos then :
   8068   1.4  christos 
   8069  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8070  1.12  christos printf "%s\n" "yes" >&6; }
   8071   1.4  christos 		CFLAGS="$save_CFLAGS"
   8072  1.11  christos 		V_CCOPT="$V_CCOPT -Wcast-qual"
   8073   1.4  christos 
   8074  1.12  christos else $as_nop
   8075   1.4  christos 
   8076  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8077  1.12  christos printf "%s\n" "no" >&6; }
   8078   1.4  christos 		CFLAGS="$save_CFLAGS"
   8079   1.4  christos 
   8080   1.4  christos fi
   8081  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8082  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8083   1.4  christos 
   8084   1.4  christos 
   8085  1.13  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
   8086  1.13  christos printf %s "checking whether the compiler supports the -Wcomma option... " >&6; }
   8087  1.13  christos 	save_CFLAGS="$CFLAGS"
   8088  1.13  christos 	CFLAGS="$CFLAGS -Wcomma"
   8089  1.13  christos 	#
   8090  1.13  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8091  1.13  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8092  1.13  christos 	# *and then turn it back off*, so that we *only* do it when
   8093  1.13  christos 	# testing compiler options - 15 years after somebody asked
   8094  1.13  christos 	# for it:
   8095  1.13  christos 	#
   8096  1.13  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8097  1.13  christos 	#
   8098  1.13  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8099  1.13  christos 	ac_c_werror_flag=yes
   8100  1.13  christos 	#
   8101  1.13  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8102  1.13  christos 	# content of the program being compiled.  We do not, for example,
   8103  1.13  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8104  1.13  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8105  1.13  christos 	# that we would treat it as not working, as the test will fail if
   8106  1.13  christos 	# *any* error output, including a warning due to the flag we're
   8107  1.13  christos 	# testing, is generated; see
   8108  1.13  christos 	#
   8109  1.13  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8110  1.13  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8111  1.13  christos 	#
   8112  1.13  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8113  1.13  christos 	# but we only require 2.69 or newer for now.
   8114  1.13  christos 	#
   8115  1.13  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8116  1.13  christos /* end confdefs.h.  */
   8117  1.13  christos int main(void) { return 0; }
   8118  1.13  christos _ACEOF
   8119  1.13  christos if ac_fn_c_try_compile "$LINENO"
   8120  1.13  christos then :
   8121  1.13  christos 
   8122  1.13  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8123  1.13  christos printf "%s\n" "yes" >&6; }
   8124  1.13  christos 		CFLAGS="$save_CFLAGS"
   8125  1.13  christos 		V_CCOPT="$V_CCOPT -Wcomma"
   8126  1.13  christos 
   8127  1.13  christos else $as_nop
   8128  1.13  christos 
   8129  1.13  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8130  1.13  christos printf "%s\n" "no" >&6; }
   8131  1.13  christos 		CFLAGS="$save_CFLAGS"
   8132  1.13  christos 
   8133  1.13  christos fi
   8134  1.13  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8135  1.13  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8136  1.13  christos 
   8137  1.13  christos 
   8138  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
   8139  1.12  christos printf %s "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
   8140   1.4  christos 	save_CFLAGS="$CFLAGS"
   8141  1.11  christos 	CFLAGS="$CFLAGS -Wmissing-prototypes"
   8142  1.11  christos 	#
   8143  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8144  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8145  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8146  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8147  1.11  christos 	# for it:
   8148  1.11  christos 	#
   8149  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8150  1.11  christos 	#
   8151  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8152  1.11  christos 	ac_c_werror_flag=yes
   8153  1.11  christos 	#
   8154  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8155  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8156  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8157  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8158  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8159  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8160  1.11  christos 	# testing, is generated; see
   8161  1.11  christos 	#
   8162  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8163  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8164  1.11  christos 	#
   8165  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8166  1.12  christos 	# but we only require 2.69 or newer for now.
   8167  1.12  christos 	#
   8168  1.12  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8169  1.12  christos /* end confdefs.h.  */
   8170  1.12  christos int main(void) { return 0; }
   8171  1.12  christos _ACEOF
   8172  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8173  1.12  christos then :
   8174  1.12  christos 
   8175  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8176  1.12  christos printf "%s\n" "yes" >&6; }
   8177  1.12  christos 		CFLAGS="$save_CFLAGS"
   8178  1.12  christos 		V_CCOPT="$V_CCOPT -Wmissing-prototypes"
   8179  1.12  christos 
   8180  1.12  christos else $as_nop
   8181  1.12  christos 
   8182  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8183  1.12  christos printf "%s\n" "no" >&6; }
   8184  1.12  christos 		CFLAGS="$save_CFLAGS"
   8185  1.12  christos 
   8186  1.12  christos fi
   8187  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8188  1.12  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8189  1.12  christos 
   8190  1.12  christos 
   8191  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
   8192  1.12  christos printf %s "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
   8193  1.12  christos 	save_CFLAGS="$CFLAGS"
   8194  1.12  christos 	CFLAGS="$CFLAGS -Wmissing-variable-declarations"
   8195  1.12  christos 	#
   8196  1.12  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8197  1.12  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8198  1.12  christos 	# *and then turn it back off*, so that we *only* do it when
   8199  1.12  christos 	# testing compiler options - 15 years after somebody asked
   8200  1.12  christos 	# for it:
   8201  1.12  christos 	#
   8202  1.12  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8203  1.12  christos 	#
   8204  1.12  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8205  1.12  christos 	ac_c_werror_flag=yes
   8206  1.12  christos 	#
   8207  1.12  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8208  1.12  christos 	# content of the program being compiled.  We do not, for example,
   8209  1.12  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8210  1.12  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8211  1.12  christos 	# that we would treat it as not working, as the test will fail if
   8212  1.12  christos 	# *any* error output, including a warning due to the flag we're
   8213  1.12  christos 	# testing, is generated; see
   8214  1.12  christos 	#
   8215  1.12  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8216  1.12  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8217  1.12  christos 	#
   8218  1.12  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8219  1.12  christos 	# but we only require 2.69 or newer for now.
   8220  1.12  christos 	#
   8221  1.12  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8222  1.12  christos /* end confdefs.h.  */
   8223  1.12  christos int main(void) { return 0; }
   8224  1.12  christos _ACEOF
   8225  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8226  1.12  christos then :
   8227  1.12  christos 
   8228  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8229  1.12  christos printf "%s\n" "yes" >&6; }
   8230  1.12  christos 		CFLAGS="$save_CFLAGS"
   8231  1.12  christos 		V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
   8232  1.12  christos 
   8233  1.12  christos else $as_nop
   8234  1.12  christos 
   8235  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8236  1.12  christos printf "%s\n" "no" >&6; }
   8237  1.12  christos 		CFLAGS="$save_CFLAGS"
   8238  1.12  christos 
   8239  1.12  christos fi
   8240  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8241  1.12  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8242  1.12  christos 
   8243  1.12  christos 
   8244  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wnull-pointer-subtraction option" >&5
   8245  1.12  christos printf %s "checking whether the compiler supports the -Wnull-pointer-subtraction option... " >&6; }
   8246  1.12  christos 	save_CFLAGS="$CFLAGS"
   8247  1.12  christos 	CFLAGS="$CFLAGS -Wnull-pointer-subtraction"
   8248  1.12  christos 	#
   8249  1.12  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8250  1.12  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8251  1.12  christos 	# *and then turn it back off*, so that we *only* do it when
   8252  1.12  christos 	# testing compiler options - 15 years after somebody asked
   8253  1.12  christos 	# for it:
   8254  1.12  christos 	#
   8255  1.12  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8256  1.12  christos 	#
   8257  1.12  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8258  1.12  christos 	ac_c_werror_flag=yes
   8259  1.12  christos 	#
   8260  1.12  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8261  1.12  christos 	# content of the program being compiled.  We do not, for example,
   8262  1.12  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8263  1.12  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8264  1.12  christos 	# that we would treat it as not working, as the test will fail if
   8265  1.12  christos 	# *any* error output, including a warning due to the flag we're
   8266  1.12  christos 	# testing, is generated; see
   8267  1.12  christos 	#
   8268  1.12  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8269  1.12  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8270  1.12  christos 	#
   8271  1.12  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8272  1.12  christos 	# but we only require 2.69 or newer for now.
   8273  1.12  christos 	#
   8274  1.12  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8275  1.12  christos /* end confdefs.h.  */
   8276  1.12  christos int main(void) { return 0; }
   8277  1.12  christos _ACEOF
   8278  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8279  1.12  christos then :
   8280  1.12  christos 
   8281  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8282  1.12  christos printf "%s\n" "yes" >&6; }
   8283  1.12  christos 		CFLAGS="$save_CFLAGS"
   8284  1.12  christos 		V_CCOPT="$V_CCOPT -Wnull-pointer-subtraction"
   8285  1.12  christos 
   8286  1.12  christos else $as_nop
   8287  1.12  christos 
   8288  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8289  1.12  christos printf "%s\n" "no" >&6; }
   8290  1.12  christos 		CFLAGS="$save_CFLAGS"
   8291  1.12  christos 
   8292  1.12  christos fi
   8293  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8294  1.12  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8295  1.12  christos 
   8296  1.12  christos 
   8297  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wold-style-definition option" >&5
   8298  1.12  christos printf %s "checking whether the compiler supports the -Wold-style-definition option... " >&6; }
   8299  1.12  christos 	save_CFLAGS="$CFLAGS"
   8300  1.12  christos 	CFLAGS="$CFLAGS -Wold-style-definition"
   8301  1.12  christos 	#
   8302  1.12  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8303  1.12  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8304  1.12  christos 	# *and then turn it back off*, so that we *only* do it when
   8305  1.12  christos 	# testing compiler options - 15 years after somebody asked
   8306  1.12  christos 	# for it:
   8307  1.12  christos 	#
   8308  1.12  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8309  1.12  christos 	#
   8310  1.12  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8311  1.12  christos 	ac_c_werror_flag=yes
   8312  1.12  christos 	#
   8313  1.12  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8314  1.12  christos 	# content of the program being compiled.  We do not, for example,
   8315  1.12  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8316  1.12  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8317  1.12  christos 	# that we would treat it as not working, as the test will fail if
   8318  1.12  christos 	# *any* error output, including a warning due to the flag we're
   8319  1.12  christos 	# testing, is generated; see
   8320  1.12  christos 	#
   8321  1.12  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8322  1.12  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8323  1.12  christos 	#
   8324  1.12  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8325  1.12  christos 	# but we only require 2.69 or newer for now.
   8326  1.12  christos 	#
   8327  1.12  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8328  1.12  christos /* end confdefs.h.  */
   8329  1.12  christos int main(void) { return 0; }
   8330  1.12  christos _ACEOF
   8331  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8332  1.12  christos then :
   8333  1.12  christos 
   8334  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8335  1.12  christos printf "%s\n" "yes" >&6; }
   8336  1.12  christos 		CFLAGS="$save_CFLAGS"
   8337  1.12  christos 		V_CCOPT="$V_CCOPT -Wold-style-definition"
   8338  1.12  christos 
   8339  1.12  christos else $as_nop
   8340  1.12  christos 
   8341  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8342  1.12  christos printf "%s\n" "no" >&6; }
   8343  1.12  christos 		CFLAGS="$save_CFLAGS"
   8344  1.12  christos 
   8345  1.12  christos fi
   8346  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8347  1.12  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8348  1.12  christos 
   8349  1.12  christos 
   8350  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpedantic option" >&5
   8351  1.12  christos printf %s "checking whether the compiler supports the -Wpedantic option... " >&6; }
   8352  1.12  christos 	save_CFLAGS="$CFLAGS"
   8353  1.12  christos 	CFLAGS="$CFLAGS -Wpedantic"
   8354  1.12  christos 	#
   8355  1.12  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8356  1.12  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8357  1.12  christos 	# *and then turn it back off*, so that we *only* do it when
   8358  1.12  christos 	# testing compiler options - 15 years after somebody asked
   8359  1.12  christos 	# for it:
   8360  1.12  christos 	#
   8361  1.12  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8362  1.12  christos 	#
   8363  1.12  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8364  1.12  christos 	ac_c_werror_flag=yes
   8365  1.12  christos 	#
   8366  1.12  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8367  1.12  christos 	# content of the program being compiled.  We do not, for example,
   8368  1.12  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8369  1.12  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8370  1.12  christos 	# that we would treat it as not working, as the test will fail if
   8371  1.12  christos 	# *any* error output, including a warning due to the flag we're
   8372  1.12  christos 	# testing, is generated; see
   8373  1.12  christos 	#
   8374  1.12  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8375  1.12  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8376  1.12  christos 	#
   8377  1.12  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8378  1.12  christos 	# but we only require 2.69 or newer for now.
   8379  1.11  christos 	#
   8380   1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8381   1.4  christos /* end confdefs.h.  */
   8382  1.11  christos int main(void) { return 0; }
   8383  1.11  christos _ACEOF
   8384  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8385  1.12  christos then :
   8386  1.11  christos 
   8387  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8388  1.12  christos printf "%s\n" "yes" >&6; }
   8389  1.11  christos 		CFLAGS="$save_CFLAGS"
   8390  1.12  christos 		V_CCOPT="$V_CCOPT -Wpedantic"
   8391  1.11  christos 
   8392  1.12  christos else $as_nop
   8393  1.11  christos 
   8394  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8395  1.12  christos printf "%s\n" "no" >&6; }
   8396  1.11  christos 		CFLAGS="$save_CFLAGS"
   8397  1.11  christos 
   8398  1.11  christos fi
   8399  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8400  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8401   1.4  christos 
   8402  1.11  christos 
   8403  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5
   8404  1.12  christos printf %s "checking whether the compiler supports the -Wpointer-arith option... " >&6; }
   8405  1.11  christos 	save_CFLAGS="$CFLAGS"
   8406  1.12  christos 	CFLAGS="$CFLAGS -Wpointer-arith"
   8407  1.11  christos 	#
   8408  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8409  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8410  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8411  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8412  1.11  christos 	# for it:
   8413  1.11  christos 	#
   8414  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8415  1.11  christos 	#
   8416  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8417  1.11  christos 	ac_c_werror_flag=yes
   8418  1.11  christos 	#
   8419  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8420  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8421  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8422  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8423  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8424  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8425  1.11  christos 	# testing, is generated; see
   8426  1.11  christos 	#
   8427  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8428  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8429  1.11  christos 	#
   8430  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8431  1.12  christos 	# but we only require 2.69 or newer for now.
   8432  1.11  christos 	#
   8433  1.11  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8434  1.11  christos /* end confdefs.h.  */
   8435  1.11  christos int main(void) { return 0; }
   8436   1.4  christos _ACEOF
   8437  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8438  1.12  christos then :
   8439   1.4  christos 
   8440  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8441  1.12  christos printf "%s\n" "yes" >&6; }
   8442   1.4  christos 		CFLAGS="$save_CFLAGS"
   8443  1.12  christos 		V_CCOPT="$V_CCOPT -Wpointer-arith"
   8444   1.4  christos 
   8445  1.12  christos else $as_nop
   8446   1.4  christos 
   8447  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8448  1.12  christos printf "%s\n" "no" >&6; }
   8449   1.4  christos 		CFLAGS="$save_CFLAGS"
   8450   1.4  christos 
   8451   1.4  christos fi
   8452  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8453  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8454   1.4  christos 
   8455   1.4  christos 
   8456  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign option" >&5
   8457  1.12  christos printf %s "checking whether the compiler supports the -Wpointer-sign option... " >&6; }
   8458  1.11  christos 	save_CFLAGS="$CFLAGS"
   8459  1.12  christos 	CFLAGS="$CFLAGS -Wpointer-sign"
   8460  1.11  christos 	#
   8461  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8462  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8463  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8464  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8465  1.11  christos 	# for it:
   8466  1.11  christos 	#
   8467  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8468  1.11  christos 	#
   8469  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8470  1.11  christos 	ac_c_werror_flag=yes
   8471  1.11  christos 	#
   8472  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8473  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8474  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8475  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8476  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8477  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8478  1.11  christos 	# testing, is generated; see
   8479  1.11  christos 	#
   8480  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8481  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8482  1.11  christos 	#
   8483  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8484  1.12  christos 	# but we only require 2.69 or newer for now.
   8485  1.11  christos 	#
   8486   1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8487   1.4  christos /* end confdefs.h.  */
   8488  1.11  christos int main(void) { return 0; }
   8489   1.4  christos _ACEOF
   8490  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8491  1.12  christos then :
   8492   1.4  christos 
   8493  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8494  1.12  christos printf "%s\n" "yes" >&6; }
   8495   1.4  christos 		CFLAGS="$save_CFLAGS"
   8496  1.12  christos 		V_CCOPT="$V_CCOPT -Wpointer-sign"
   8497   1.4  christos 
   8498  1.12  christos else $as_nop
   8499   1.4  christos 
   8500  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8501  1.12  christos printf "%s\n" "no" >&6; }
   8502   1.4  christos 		CFLAGS="$save_CFLAGS"
   8503   1.4  christos 
   8504   1.4  christos fi
   8505  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8506  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8507   1.4  christos 
   8508   1.4  christos 
   8509  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
   8510  1.12  christos printf %s "checking whether the compiler supports the -Wshadow option... " >&6; }
   8511   1.4  christos 	save_CFLAGS="$CFLAGS"
   8512  1.12  christos 	CFLAGS="$CFLAGS -Wshadow"
   8513  1.11  christos 	#
   8514  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8515  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8516  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8517  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8518  1.11  christos 	# for it:
   8519  1.11  christos 	#
   8520  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8521  1.11  christos 	#
   8522  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8523  1.11  christos 	ac_c_werror_flag=yes
   8524  1.11  christos 	#
   8525  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8526  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8527  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8528  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8529  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8530  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8531  1.11  christos 	# testing, is generated; see
   8532  1.11  christos 	#
   8533  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8534  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8535  1.11  christos 	#
   8536  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8537  1.12  christos 	# but we only require 2.69 or newer for now.
   8538  1.11  christos 	#
   8539   1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8540   1.4  christos /* end confdefs.h.  */
   8541  1.11  christos int main(void) { return 0; }
   8542   1.4  christos _ACEOF
   8543  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8544  1.12  christos then :
   8545   1.4  christos 
   8546  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8547  1.12  christos printf "%s\n" "yes" >&6; }
   8548   1.4  christos 		CFLAGS="$save_CFLAGS"
   8549  1.12  christos 		V_CCOPT="$V_CCOPT -Wshadow"
   8550   1.4  christos 
   8551  1.12  christos else $as_nop
   8552   1.4  christos 
   8553  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8554  1.12  christos printf "%s\n" "no" >&6; }
   8555   1.4  christos 		CFLAGS="$save_CFLAGS"
   8556   1.4  christos 
   8557   1.4  christos fi
   8558  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8559  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8560   1.4  christos 
   8561   1.4  christos 
   8562  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
   8563  1.12  christos printf %s "checking whether the compiler supports the -Wsign-compare option... " >&6; }
   8564   1.4  christos 	save_CFLAGS="$CFLAGS"
   8565  1.12  christos 	CFLAGS="$CFLAGS -Wsign-compare"
   8566  1.11  christos 	#
   8567  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8568  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8569  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8570  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8571  1.11  christos 	# for it:
   8572  1.11  christos 	#
   8573  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8574  1.11  christos 	#
   8575  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8576  1.11  christos 	ac_c_werror_flag=yes
   8577  1.11  christos 	#
   8578  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8579  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8580  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8581  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8582  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8583  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8584  1.11  christos 	# testing, is generated; see
   8585  1.11  christos 	#
   8586  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8587  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8588  1.11  christos 	#
   8589  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8590  1.12  christos 	# but we only require 2.69 or newer for now.
   8591  1.11  christos 	#
   8592   1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8593   1.4  christos /* end confdefs.h.  */
   8594  1.11  christos int main(void) { return 0; }
   8595   1.4  christos _ACEOF
   8596  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8597  1.12  christos then :
   8598   1.4  christos 
   8599  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8600  1.12  christos printf "%s\n" "yes" >&6; }
   8601   1.4  christos 		CFLAGS="$save_CFLAGS"
   8602  1.12  christos 		V_CCOPT="$V_CCOPT -Wsign-compare"
   8603   1.1  christos 
   8604  1.12  christos else $as_nop
   8605   1.4  christos 
   8606  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8607  1.12  christos printf "%s\n" "no" >&6; }
   8608   1.4  christos 		CFLAGS="$save_CFLAGS"
   8609   1.4  christos 
   8610   1.1  christos fi
   8611  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8612  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8613   1.4  christos 
   8614   1.4  christos 
   8615  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
   8616  1.12  christos printf %s "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
   8617   1.7  christos 	save_CFLAGS="$CFLAGS"
   8618  1.12  christos 	CFLAGS="$CFLAGS -Wstrict-prototypes"
   8619  1.11  christos 	#
   8620  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8621  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8622  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8623  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8624  1.11  christos 	# for it:
   8625  1.11  christos 	#
   8626  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8627  1.11  christos 	#
   8628  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8629  1.11  christos 	ac_c_werror_flag=yes
   8630  1.11  christos 	#
   8631  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8632  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8633  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8634  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8635  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8636  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8637  1.11  christos 	# testing, is generated; see
   8638  1.11  christos 	#
   8639  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8640  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8641  1.11  christos 	#
   8642  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8643  1.12  christos 	# but we only require 2.69 or newer for now.
   8644  1.11  christos 	#
   8645   1.7  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8646   1.7  christos /* end confdefs.h.  */
   8647  1.11  christos int main(void) { return 0; }
   8648   1.7  christos _ACEOF
   8649  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8650  1.12  christos then :
   8651   1.7  christos 
   8652  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8653  1.12  christos printf "%s\n" "yes" >&6; }
   8654   1.7  christos 		CFLAGS="$save_CFLAGS"
   8655  1.12  christos 		V_CCOPT="$V_CCOPT -Wstrict-prototypes"
   8656   1.7  christos 
   8657  1.12  christos else $as_nop
   8658   1.7  christos 
   8659  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8660  1.12  christos printf "%s\n" "no" >&6; }
   8661   1.7  christos 		CFLAGS="$save_CFLAGS"
   8662   1.7  christos 
   8663   1.7  christos fi
   8664  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8665  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8666   1.7  christos 
   8667   1.7  christos 
   8668  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wundef option" >&5
   8669  1.12  christos printf %s "checking whether the compiler supports the -Wundef option... " >&6; }
   8670   1.7  christos 	save_CFLAGS="$CFLAGS"
   8671  1.12  christos 	CFLAGS="$CFLAGS -Wundef"
   8672  1.11  christos 	#
   8673  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8674  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8675  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8676  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8677  1.11  christos 	# for it:
   8678  1.11  christos 	#
   8679  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8680  1.11  christos 	#
   8681  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8682  1.11  christos 	ac_c_werror_flag=yes
   8683  1.11  christos 	#
   8684  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8685  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8686  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8687  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8688  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8689  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8690  1.11  christos 	# testing, is generated; see
   8691  1.11  christos 	#
   8692  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8693  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8694  1.11  christos 	#
   8695  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8696  1.12  christos 	# but we only require 2.69 or newer for now.
   8697  1.11  christos 	#
   8698   1.7  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8699   1.7  christos /* end confdefs.h.  */
   8700  1.11  christos int main(void) { return 0; }
   8701   1.7  christos _ACEOF
   8702  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8703  1.12  christos then :
   8704   1.7  christos 
   8705  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8706  1.12  christos printf "%s\n" "yes" >&6; }
   8707   1.7  christos 		CFLAGS="$save_CFLAGS"
   8708  1.12  christos 		V_CCOPT="$V_CCOPT -Wundef"
   8709   1.7  christos 
   8710  1.12  christos else $as_nop
   8711   1.7  christos 
   8712  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8713  1.12  christos printf "%s\n" "no" >&6; }
   8714   1.7  christos 		CFLAGS="$save_CFLAGS"
   8715   1.7  christos 
   8716   1.7  christos fi
   8717  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8718  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8719   1.7  christos 
   8720   1.7  christos 
   8721  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code-return option" >&5
   8722  1.12  christos printf %s "checking whether the compiler supports the -Wunreachable-code-return option... " >&6; }
   8723   1.7  christos 	save_CFLAGS="$CFLAGS"
   8724  1.12  christos 	CFLAGS="$CFLAGS -Wunreachable-code-return"
   8725  1.11  christos 	#
   8726  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8727  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8728  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8729  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8730  1.11  christos 	# for it:
   8731  1.11  christos 	#
   8732  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8733  1.11  christos 	#
   8734  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8735  1.11  christos 	ac_c_werror_flag=yes
   8736  1.11  christos 	#
   8737  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8738  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8739  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8740  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8741  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8742  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8743  1.11  christos 	# testing, is generated; see
   8744  1.11  christos 	#
   8745  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8746  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8747  1.11  christos 	#
   8748  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8749  1.12  christos 	# but we only require 2.69 or newer for now.
   8750  1.11  christos 	#
   8751   1.7  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8752   1.7  christos /* end confdefs.h.  */
   8753  1.11  christos int main(void) { return 0; }
   8754   1.7  christos _ACEOF
   8755  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8756  1.12  christos then :
   8757   1.7  christos 
   8758  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8759  1.12  christos printf "%s\n" "yes" >&6; }
   8760   1.7  christos 		CFLAGS="$save_CFLAGS"
   8761  1.12  christos 		V_CCOPT="$V_CCOPT -Wunreachable-code-return"
   8762   1.7  christos 
   8763  1.12  christos else $as_nop
   8764   1.7  christos 
   8765  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8766  1.12  christos printf "%s\n" "no" >&6; }
   8767   1.7  christos 		CFLAGS="$save_CFLAGS"
   8768   1.7  christos 
   8769   1.7  christos fi
   8770  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8771  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8772   1.7  christos 
   8773   1.7  christos 
   8774  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-parameter option" >&5
   8775  1.12  christos printf %s "checking whether the compiler supports the -Wunused-but-set-parameter option... " >&6; }
   8776   1.7  christos 	save_CFLAGS="$CFLAGS"
   8777  1.12  christos 	CFLAGS="$CFLAGS -Wunused-but-set-parameter"
   8778  1.11  christos 	#
   8779  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8780  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8781  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8782  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8783  1.11  christos 	# for it:
   8784  1.11  christos 	#
   8785  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8786  1.11  christos 	#
   8787  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8788  1.11  christos 	ac_c_werror_flag=yes
   8789  1.11  christos 	#
   8790  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8791  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8792  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8793  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8794  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8795  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8796  1.11  christos 	# testing, is generated; see
   8797  1.11  christos 	#
   8798  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8799  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8800  1.11  christos 	#
   8801  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8802  1.12  christos 	# but we only require 2.69 or newer for now.
   8803  1.11  christos 	#
   8804   1.7  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8805   1.7  christos /* end confdefs.h.  */
   8806  1.11  christos int main(void) { return 0; }
   8807   1.7  christos _ACEOF
   8808  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8809  1.12  christos then :
   8810   1.7  christos 
   8811  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8812  1.12  christos printf "%s\n" "yes" >&6; }
   8813   1.7  christos 		CFLAGS="$save_CFLAGS"
   8814  1.12  christos 		V_CCOPT="$V_CCOPT -Wunused-but-set-parameter"
   8815   1.7  christos 
   8816  1.12  christos else $as_nop
   8817   1.7  christos 
   8818  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8819  1.12  christos printf "%s\n" "no" >&6; }
   8820   1.7  christos 		CFLAGS="$save_CFLAGS"
   8821   1.7  christos 
   8822   1.7  christos fi
   8823  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8824  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8825   1.7  christos 
   8826   1.7  christos 
   8827  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-variable option" >&5
   8828  1.12  christos printf %s "checking whether the compiler supports the -Wunused-but-set-variable option... " >&6; }
   8829   1.7  christos 	save_CFLAGS="$CFLAGS"
   8830  1.12  christos 	CFLAGS="$CFLAGS -Wunused-but-set-variable"
   8831  1.11  christos 	#
   8832  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8833  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8834  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8835  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8836  1.11  christos 	# for it:
   8837  1.11  christos 	#
   8838  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8839  1.11  christos 	#
   8840  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8841  1.11  christos 	ac_c_werror_flag=yes
   8842  1.11  christos 	#
   8843  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8844  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8845  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8846  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8847  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8848  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8849  1.11  christos 	# testing, is generated; see
   8850  1.11  christos 	#
   8851  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8852  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8853  1.11  christos 	#
   8854  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8855  1.12  christos 	# but we only require 2.69 or newer for now.
   8856  1.11  christos 	#
   8857   1.7  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8858   1.7  christos /* end confdefs.h.  */
   8859  1.11  christos int main(void) { return 0; }
   8860   1.7  christos _ACEOF
   8861  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8862  1.12  christos then :
   8863   1.7  christos 
   8864  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8865  1.12  christos printf "%s\n" "yes" >&6; }
   8866   1.7  christos 		CFLAGS="$save_CFLAGS"
   8867  1.12  christos 		V_CCOPT="$V_CCOPT -Wunused-but-set-variable"
   8868   1.7  christos 
   8869  1.12  christos else $as_nop
   8870   1.7  christos 
   8871  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8872  1.12  christos printf "%s\n" "no" >&6; }
   8873   1.7  christos 		CFLAGS="$save_CFLAGS"
   8874   1.7  christos 
   8875   1.7  christos fi
   8876  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8877  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8878   1.7  christos 
   8879   1.7  christos 
   8880  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
   8881  1.12  christos printf %s "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
   8882   1.8       spz 	save_CFLAGS="$CFLAGS"
   8883  1.11  christos 	CFLAGS="$CFLAGS -Wused-but-marked-unused"
   8884  1.11  christos 	#
   8885  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8886  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8887  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8888  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8889  1.11  christos 	# for it:
   8890  1.11  christos 	#
   8891  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8892  1.11  christos 	#
   8893  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8894  1.11  christos 	ac_c_werror_flag=yes
   8895  1.11  christos 	#
   8896  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8897  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8898  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8899  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8900  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8901  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8902  1.11  christos 	# testing, is generated; see
   8903  1.11  christos 	#
   8904  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8905  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8906  1.11  christos 	#
   8907  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8908  1.12  christos 	# but we only require 2.69 or newer for now.
   8909  1.11  christos 	#
   8910   1.8       spz 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8911   1.8       spz /* end confdefs.h.  */
   8912  1.11  christos int main(void) { return 0; }
   8913   1.8       spz _ACEOF
   8914  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8915  1.12  christos then :
   8916   1.8       spz 
   8917  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8918  1.12  christos printf "%s\n" "yes" >&6; }
   8919   1.8       spz 		CFLAGS="$save_CFLAGS"
   8920   1.8       spz 		V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
   8921   1.8       spz 
   8922  1.12  christos else $as_nop
   8923   1.8       spz 
   8924  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8925  1.12  christos printf "%s\n" "no" >&6; }
   8926   1.8       spz 		CFLAGS="$save_CFLAGS"
   8927   1.8       spz 
   8928   1.8       spz fi
   8929  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8930  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8931   1.8       spz 
   8932   1.8       spz 
   8933  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wwrite-strings option" >&5
   8934  1.12  christos printf %s "checking whether the compiler supports the -Wwrite-strings option... " >&6; }
   8935   1.4  christos 	save_CFLAGS="$CFLAGS"
   8936  1.11  christos 	CFLAGS="$CFLAGS -Wwrite-strings"
   8937  1.11  christos 	#
   8938  1.11  christos 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8939  1.11  christos 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8940  1.11  christos 	# *and then turn it back off*, so that we *only* do it when
   8941  1.11  christos 	# testing compiler options - 15 years after somebody asked
   8942  1.11  christos 	# for it:
   8943  1.11  christos 	#
   8944  1.11  christos 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8945  1.11  christos 	#
   8946  1.11  christos 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8947  1.11  christos 	ac_c_werror_flag=yes
   8948  1.11  christos 	#
   8949  1.11  christos 	# We use AC_LANG_SOURCE() so that we can control the complete
   8950  1.11  christos 	# content of the program being compiled.  We do not, for example,
   8951  1.11  christos 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8952  1.11  christos 	# as it will generate a warning with -Wold-style-definition, meaning
   8953  1.11  christos 	# that we would treat it as not working, as the test will fail if
   8954  1.11  christos 	# *any* error output, including a warning due to the flag we're
   8955  1.11  christos 	# testing, is generated; see
   8956  1.11  christos 	#
   8957  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8958  1.11  christos 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8959  1.11  christos 	#
   8960  1.11  christos 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8961  1.12  christos 	# but we only require 2.69 or newer for now.
   8962  1.11  christos 	#
   8963   1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8964   1.4  christos /* end confdefs.h.  */
   8965  1.11  christos int main(void) { return 0; }
   8966   1.4  christos _ACEOF
   8967  1.12  christos if ac_fn_c_try_compile "$LINENO"
   8968  1.12  christos then :
   8969   1.1  christos 
   8970  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8971  1.12  christos printf "%s\n" "yes" >&6; }
   8972   1.4  christos 		CFLAGS="$save_CFLAGS"
   8973  1.11  christos 		V_CCOPT="$V_CCOPT -Wwrite-strings"
   8974   1.1  christos 
   8975  1.12  christos else $as_nop
   8976   1.4  christos 
   8977  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8978  1.12  christos printf "%s\n" "no" >&6; }
   8979   1.4  christos 		CFLAGS="$save_CFLAGS"
   8980   1.1  christos 
   8981   1.1  christos fi
   8982  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8983  1.11  christos 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8984   1.4  christos 
   8985   1.4  christos 	    fi
   8986   1.4  christos 
   8987  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
   8988  1.12  christos printf %s "checking whether the compiler supports generating dependencies... " >&6; }
   8989   1.4  christos 	if test "$GCC" = yes ; then
   8990   1.4  christos 		#
   8991   1.4  christos 		# GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
   8992   1.4  christos 		# though it's not); we assume that, in this case, the flag
   8993   1.4  christos 		# would be -M.
   8994   1.4  christos 		#
   8995   1.4  christos 		ac_lbl_dependency_flag="-M"
   8996   1.4  christos 	else
   8997   1.4  christos 		#
   8998   1.4  christos 		# Not GCC or a compiler deemed to be GCC; what platform is
   8999   1.4  christos 		# this?  (We're assuming that if the compiler isn't GCC
   9000   1.4  christos 		# it's the compiler from the vendor of the OS; that won't
   9001   1.4  christos 		# necessarily be true for x86 platforms, where it might be
   9002   1.4  christos 		# the Intel C compiler.)
   9003   1.4  christos 		#
   9004   1.4  christos 		case "$host_os" in
   9005   1.4  christos 
   9006   1.4  christos 		irix*|osf*|darwin*)
   9007   1.4  christos 			#
   9008   1.4  christos 			# MIPS C for IRIX, DEC C, and clang all use -M.
   9009   1.4  christos 			#
   9010   1.4  christos 			ac_lbl_dependency_flag="-M"
   9011   1.4  christos 			;;
   9012   1.4  christos 
   9013   1.4  christos 		solaris*)
   9014   1.4  christos 			#
   9015   1.4  christos 			# Sun C uses -xM.
   9016   1.4  christos 			#
   9017   1.4  christos 			ac_lbl_dependency_flag="-xM"
   9018   1.4  christos 			;;
   9019   1.4  christos 
   9020   1.4  christos 		hpux*)
   9021   1.4  christos 			#
   9022   1.4  christos 			# HP's older C compilers don't support this.
   9023   1.4  christos 			# HP's newer C compilers support this with
   9024   1.4  christos 			# either +M or +Make; the older compilers
   9025   1.4  christos 			# interpret +M as something completely
   9026   1.4  christos 			# different, so we use +Make so we don't
   9027   1.4  christos 			# think it works with the older compilers.
   9028   1.4  christos 			#
   9029   1.4  christos 			ac_lbl_dependency_flag="+Make"
   9030   1.4  christos 			;;
   9031   1.4  christos 
   9032   1.4  christos 		*)
   9033   1.4  christos 			#
   9034   1.4  christos 			# Not one of the above; assume no support for
   9035   1.4  christos 			# generating dependencies.
   9036   1.4  christos 			#
   9037   1.4  christos 			ac_lbl_dependency_flag=""
   9038   1.4  christos 			;;
   9039   1.4  christos 		esac
   9040   1.4  christos 	fi
   9041   1.1  christos 
   9042   1.4  christos 	#
   9043   1.4  christos 	# Is ac_lbl_dependency_flag defined and, if so, does the compiler
   9044   1.4  christos 	# complain about it?
   9045   1.4  christos 	#
   9046   1.4  christos 	# Note: clang doesn't seem to exit with an error status when handed
   9047   1.4  christos 	# an unknown non-warning error, even if you pass it
   9048   1.4  christos 	# -Werror=unknown-warning-option.  However, it always supports
   9049   1.4  christos 	# -M, so the fact that this test always succeeds with clang
   9050   1.4  christos 	# isn't an issue.
   9051   1.4  christos 	#
   9052   1.4  christos 	if test ! -z "$ac_lbl_dependency_flag"; then
   9053   1.4  christos 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9054   1.4  christos /* end confdefs.h.  */
   9055   1.4  christos int main(void) { return 0; }
   9056   1.4  christos _ACEOF
   9057  1.12  christos 		if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
   9058  1.11  christos   (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
   9059  1.11  christos   ac_status=$?
   9060  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9061  1.11  christos   test $ac_status = 0; }; then
   9062  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
   9063  1.12  christos printf "%s\n" "yes, with $ac_lbl_dependency_flag" >&6; }
   9064   1.4  christos 			DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
   9065  1.11  christos 			MKDEP='${top_srcdir}/mkdep'
   9066   1.4  christos 		else
   9067  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9068  1.12  christos printf "%s\n" "no" >&6; }
   9069   1.4  christos 			#
   9070   1.4  christos 			# We can't run mkdep, so have "make depend" do
   9071   1.4  christos 			# nothing.
   9072   1.4  christos 			#
   9073   1.4  christos 			MKDEP=:
   9074   1.4  christos 		fi
   9075   1.4  christos 		rm -rf conftest*
   9076   1.4  christos 	else
   9077  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9078  1.12  christos printf "%s\n" "no" >&6; }
   9079   1.4  christos 		#
   9080   1.4  christos 		# We can't run mkdep, so have "make depend" do
   9081   1.4  christos 		# nothing.
   9082   1.4  christos 		#
   9083   1.4  christos 		MKDEP=:
   9084   1.4  christos 	fi
   9085   1.1  christos 
   9086   1.1  christos 
   9087   1.1  christos 
   9088   1.4  christos 	    #
   9089   1.4  christos 	    # We used to set -n32 for IRIX 6 when not using GCC (presumed
   9090   1.4  christos 	    # to mean that we're using MIPS C or MIPSpro C); it specified
   9091   1.4  christos 	    # the "new" faster 32-bit ABI, introduced in IRIX 6.2.  I'm
   9092   1.4  christos 	    # not sure why that would be something to do *only* with a
   9093   1.4  christos 	    # .devel file; why should the ABI for which we produce code
   9094   1.4  christos 	    # depend on .devel?
   9095   1.4  christos 	    #
   9096  1.13  christos 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use an os-proto.h header" >&5
   9097  1.13  christos printf %s "checking whether to use an os-proto.h header... " >&6; }
   9098   1.1  christos 	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
   9099   1.1  christos 	    name="lbl/os-$os.h"
   9100   1.1  christos 	    if test -f $name ; then
   9101  1.13  christos 		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, at \"$name\"" >&5
   9102  1.13  christos printf "%s\n" "yes, at \"$name\"" >&6; }
   9103   1.1  christos 		    ln -s $name os-proto.h
   9104   1.1  christos 
   9105  1.12  christos printf "%s\n" "#define HAVE_OS_PROTO_H 1" >>confdefs.h
   9106   1.1  christos 
   9107   1.1  christos 	    else
   9108  1.13  christos 		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9109  1.13  christos printf "%s\n" "no" >&6; }
   9110   1.1  christos 	    fi
   9111   1.1  christos     fi
   9112   1.1  christos 
   9113   1.7  christos # Check for OpenSSL/libressl libcrypto
   9114  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL/libressl libcrypto" >&5
   9115  1.12  christos printf %s "checking whether to use OpenSSL/libressl libcrypto... " >&6; }
   9116   1.1  christos # Specify location for both includes and libraries.
   9117   1.4  christos want_libcrypto=ifavailable
   9118   1.1  christos 
   9119   1.1  christos # Check whether --with-crypto was given.
   9120  1.12  christos if test ${with_crypto+y}
   9121  1.12  christos then :
   9122   1.1  christos   withval=$with_crypto;
   9123   1.1  christos 	if test $withval = no
   9124   1.1  christos 	then
   9125   1.7  christos 		# User doesn't want to link with libcrypto.
   9126   1.1  christos 		want_libcrypto=no
   9127  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9128  1.12  christos printf "%s\n" "no" >&6; }
   9129   1.1  christos 	elif test $withval = yes
   9130   1.1  christos 	then
   9131   1.7  christos 		# User wants to link with libcrypto but hasn't specified
   9132   1.7  christos 		# a directory.
   9133   1.1  christos 		want_libcrypto=yes
   9134  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9135  1.12  christos printf "%s\n" "yes" >&6; }
   9136   1.7  christos 	else
   9137   1.7  christos 		# User wants to link with libcrypto and has specified
   9138   1.7  christos 		# a directory, so use the provided value.
   9139   1.7  christos 		want_libcrypto=yes
   9140   1.7  christos 		libcrypto_root=$withval
   9141  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using the version installed in $withval" >&5
   9142  1.12  christos printf "%s\n" "yes, using the version installed in $withval" >&6; }
   9143   1.1  christos 	fi
   9144   1.1  christos 
   9145  1.12  christos else $as_nop
   9146   1.1  christos 
   9147   1.1  christos 	#
   9148   1.7  christos 	# Use libcrypto if it's present, otherwise don't; no directory
   9149   1.7  christos 	# was specified.
   9150   1.1  christos 	#
   9151   1.1  christos 	want_libcrypto=ifavailable
   9152  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
   9153  1.12  christos printf "%s\n" "yes, if available" >&6; }
   9154   1.1  christos 
   9155   1.1  christos fi
   9156   1.1  christos 
   9157   1.1  christos if test "$want_libcrypto" != "no"; then
   9158   1.7  christos 	#
   9159  1.12  christos 	# Were we told where to look for libcrypto?
   9160  1.12  christos 	#
   9161  1.12  christos 	if test -z "$libcrypto_root"; then
   9162  1.12  christos 		#
   9163  1.12  christos 		# No.
   9164  1.12  christos 		#
   9165  1.12  christos 		# First, try looking for it with pkg-config, if we have it.
   9166  1.12  christos 		#
   9167  1.12  christos 		# Homebrew's pkg-config does not, by default, look for
   9168  1.12  christos 		# pkg-config files for packages it has installed.
   9169  1.12  christos 		# Furthermore, at least for OpenSSL, they appear to be
   9170  1.12  christos 		# dumped in package-specific directories whose paths are
   9171  1.12  christos 		# not only package-specific but package-version-specific.
   9172  1.12  christos 		#
   9173  1.12  christos 		# So the only way to find openssl is to get the value of
   9174  1.12  christos 		# PKG_CONFIG_PATH from "brew --env openssl" and add that
   9175  1.12  christos 		# to PKG_CONFIG_PATH.  (No, we can't just assume it's under
   9176  1.12  christos 		# /usr/local; Homebrew have conveniently chosen to put it
   9177  1.12  christos 		# under /opt/homebrew on ARM.)
   9178  1.12  christos 		#
   9179  1.12  christos 		# That's the nice thing about Homebrew - it makes things easier!
   9180  1.12  christos 		# Thanks!
   9181  1.12  christos 		#
   9182  1.12  christos 		save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
   9183  1.12  christos 		if test -n "$BREW"; then
   9184  1.12  christos 			openssl_pkgconfig_dir=`$BREW --env --plain openssl | sed -n 's/PKG_CONFIG_PATH: //p'`
   9185  1.12  christos 			PKG_CONFIG_PATH="$openssl_pkgconfig_dir:$PKG_CONFIG_PATH"
   9186  1.12  christos 		fi
   9187  1.12  christos 
   9188  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto with pkg-config" >&5
   9189  1.12  christos printf %s "checking for libcrypto with pkg-config... " >&6; }
   9190  1.12  christos if test -n "$PKG_CONFIG"; then
   9191  1.12  christos 
   9192  1.12  christos     if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
   9193  1.12  christos   ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
   9194  1.12  christos   ac_status=$?
   9195  1.12  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9196  1.12  christos   test $ac_status = 0; }; then
   9197  1.12  christos 	#
   9198  1.12  christos 	# The package was found, so try to get its C flags and
   9199  1.12  christos 	# libraries.
   9200  1.12  christos 	#
   9201  1.12  christos         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
   9202  1.12  christos printf "%s\n" "found" >&6; }
   9203  1.12  christos 	if test ! -n "$LIBCRYPTO_CFLAGS"; then
   9204  1.12  christos     LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
   9205  1.12  christos     if test "x$?" != "x0"; then
   9206  1.12  christos         #
   9207  1.12  christos         # That failed - report an error.
   9208  1.12  christos         # Re-run the command, telling pkg-config to print an error
   9209  1.12  christos         # message, capture the error message, and report it.
   9210  1.12  christos         # This causes the configuration script to fail, as it means
   9211  1.12  christos         # the script is almost certainly doing something wrong.
   9212  1.12  christos         #
   9213  1.12  christos 
   9214  1.12  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   9215  1.12  christos         _pkg_short_errors_supported=yes
   9216  1.12  christos else
   9217  1.12  christos         _pkg_short_errors_supported=no
   9218  1.12  christos fi
   9219  1.12  christos 	if test $_pkg_short_errors_supported = yes; then
   9220  1.12  christos 	    _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --cflags "libcrypto" 2>&1`
   9221  1.12  christos 	else
   9222  1.12  christos 	    _pkg_error_string=`$PKG_CONFIG --print-errors --cflags "libcrypto" 2>&1`
   9223  1.12  christos 	fi
   9224  1.12  christos         as_fn_error $? "$PKG_CONFIG --cflags \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5
   9225  1.12  christos     fi
   9226  1.12  christos  fi
   9227  1.12  christos 	if test ! -n "$LIBCRYPTO_LIBS"; then
   9228  1.12  christos     LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
   9229  1.12  christos     if test "x$?" != "x0"; then
   9230  1.12  christos         #
   9231  1.12  christos         # That failed - report an error.
   9232  1.12  christos         # Re-run the command, telling pkg-config to print an error
   9233  1.12  christos         # message, capture the error message, and report it.
   9234  1.12  christos         # This causes the configuration script to fail, as it means
   9235  1.12  christos         # the script is almost certainly doing something wrong.
   9236  1.12  christos         #
   9237  1.12  christos 
   9238  1.12  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   9239  1.12  christos         _pkg_short_errors_supported=yes
   9240  1.12  christos else
   9241  1.12  christos         _pkg_short_errors_supported=no
   9242  1.12  christos fi
   9243  1.12  christos 	if test $_pkg_short_errors_supported = yes; then
   9244  1.12  christos 	    _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs "libcrypto" 2>&1`
   9245  1.12  christos 	else
   9246  1.12  christos 	    _pkg_error_string=`$PKG_CONFIG --print-errors --libs "libcrypto" 2>&1`
   9247  1.12  christos 	fi
   9248  1.12  christos         as_fn_error $? "$PKG_CONFIG --libs \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5
   9249  1.12  christos     fi
   9250  1.12  christos  fi
   9251  1.12  christos 	if test ! -n "$LIBCRYPTO_LIBS_STATIC"; then
   9252  1.12  christos     LIBCRYPTO_LIBS_STATIC=`$PKG_CONFIG --libs --static "libcrypto" 2>/dev/null`
   9253  1.12  christos     if test "x$?" != "x0"; then
   9254  1.12  christos         #
   9255  1.12  christos         # That failed - report an error.
   9256  1.12  christos         # Re-run the command, telling pkg-config to print an error
   9257  1.12  christos         # message, capture the error message, and report it.
   9258  1.12  christos         # This causes the configuration script to fail, as it means
   9259  1.12  christos         # the script is almost certainly doing something wrong.
   9260  1.12  christos         #
   9261  1.12  christos 
   9262  1.12  christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   9263  1.12  christos         _pkg_short_errors_supported=yes
   9264  1.12  christos else
   9265  1.12  christos         _pkg_short_errors_supported=no
   9266  1.12  christos fi
   9267  1.12  christos 	if test $_pkg_short_errors_supported = yes; then
   9268  1.12  christos 	    _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs --static "libcrypto" 2>&1`
   9269  1.12  christos 	else
   9270  1.12  christos 	    _pkg_error_string=`$PKG_CONFIG --print-errors --libs --static "libcrypto" 2>&1`
   9271  1.12  christos 	fi
   9272  1.12  christos         as_fn_error $? "$PKG_CONFIG --libs --static \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5
   9273  1.12  christos     fi
   9274  1.12  christos  fi
   9275  1.12  christos 
   9276  1.12  christos 			#
   9277  1.12  christos 			# We found OpenSSL/libressl libcrypto.
   9278  1.12  christos 			#
   9279  1.12  christos 			HAVE_LIBCRYPTO=yes
   9280  1.12  christos 
   9281  1.12  christos     else
   9282  1.12  christos         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   9283  1.12  christos printf "%s\n" "not found" >&6; }
   9284  1.12  christos         :
   9285  1.12  christos     fi
   9286   1.1  christos else
   9287  1.12  christos     # No pkg-config, so obviously not found with pkg-config.
   9288  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pkg-config not found" >&5
   9289  1.12  christos printf "%s\n" "pkg-config not found" >&6; }
   9290  1.12  christos     :
   9291  1.12  christos fi
   9292  1.12  christos 
   9293  1.12  christos 		PKG_CONFIG_PATH="$save_PKG_CONFIG_PATH"
   9294  1.12  christos 
   9295  1.12  christos 		#
   9296  1.12  christos 		# If it wasn't found, and we have Homebrew installed, see
   9297  1.12  christos 		# if it's in Homebrew.
   9298  1.12  christos 		#
   9299  1.12  christos 		if test "x$HAVE_LIBCRYPTO" != "xyes" -a -n "$BREW"; then
   9300  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl in Homebrew" >&5
   9301  1.12  christos printf %s "checking for openssl in Homebrew... " >&6; }
   9302  1.12  christos 			#
   9303  1.12  christos 			# The brew man page lies when it speaks of
   9304  1.12  christos 			# $BREW --prefix --installed <formula>
   9305  1.12  christos 			# outputting nothing.  In Homebrew 3.3.16,
   9306  1.12  christos 			# it produces output regardless of whether
   9307  1.12  christos 			# the formula is installed or not, so we
   9308  1.12  christos 			# send the standard output and error to
   9309  1.12  christos 			# the bit bucket.
   9310  1.12  christos 			#
   9311  1.12  christos 			# libcrypto isn't a formula, openssl is a formula.
   9312  1.12  christos 			#
   9313  1.12  christos 			if $BREW --prefix --installed openssl >/dev/null 2>&1; then
   9314  1.12  christos 				#
   9315  1.12  christos 				# Yes.  Get the include directory and library
   9316  1.12  christos 				# directory.  (No, we can't just assume it's
   9317  1.12  christos 				# under /usr/local; Homebrew have conveniently
   9318  1.12  christos 				# chosen to put it under /opt/homebrew on ARM.)
   9319  1.12  christos 				#
   9320  1.12  christos 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9321  1.12  christos printf "%s\n" "yes" >&6; }
   9322  1.12  christos 				HAVE_LIBCRYPTO=yes
   9323  1.12  christos 				openssl_path=`$BREW --prefix openssl`
   9324  1.12  christos 				LIBCRYPTO_CFLAGS="-I$openssl_path/include"
   9325  1.12  christos 				LIBCRYPTO_LIBS="-L$openssl_path/lib -lcrypto"
   9326  1.12  christos 			else
   9327  1.12  christos 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9328  1.12  christos printf "%s\n" "no" >&6; }
   9329  1.12  christos 			fi
   9330  1.12  christos 		fi
   9331  1.12  christos 
   9332  1.12  christos 		#
   9333  1.12  christos 		# If it wasn't found, and /usr/local/include and /usr/local/lib
   9334  1.12  christos 		# exist, check if it's in /usr/local.  (We check whether they
   9335  1.12  christos 		# exist because, if they don't exist, the compiler will warn
   9336  1.12  christos 		# about that and then ignore the argument, so they test
   9337  1.12  christos 		# using just the system header files and libraries.)
   9338  1.12  christos 		#
   9339  1.12  christos 		# We include the standard include file to 1) make sure that
   9340  1.12  christos 		# it's installed (if it's just a shared library for the
   9341  1.12  christos 		# benefit of existing programs, that's not useful) and 2)
   9342  1.12  christos 		# because SSL_library_init() is a library routine in some
   9343  1.12  christos 		# versions and a #defined wrapper around OPENSSL_init_ssl()
   9344  1.12  christos 		# in others.
   9345  1.12  christos 		#
   9346  1.12  christos 		if test "x$HAVE_LIBCRYPTO" != "xyes" -a -d "/usr/local/include" -a -d "/usr/local/lib"; then
   9347  1.12  christos 
   9348  1.12  christos 	save_CFLAGS="$CFLAGS"
   9349  1.12  christos 	save_LIBS="$LIBS"
   9350  1.12  christos 	save_LDFLAGS="$LDFLAGS"
   9351  1.12  christos 
   9352  1.12  christos 			CFLAGS="$CFLAGS -I/usr/local/include"
   9353  1.12  christos 			LIBS="$LIBS -L/usr/local/lib -lcrypto"
   9354  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use" >&5
   9355  1.12  christos printf %s "checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use... " >&6; }
   9356  1.12  christos 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9357   1.1  christos /* end confdefs.h.  */
   9358   1.1  christos 
   9359  1.12  christos #include <openssl/evp.h>
   9360  1.12  christos 
   9361   1.1  christos int
   9362  1.12  christos main (void)
   9363   1.1  christos {
   9364  1.12  christos 
   9365  1.12  christos EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0);
   9366  1.12  christos return 0;
   9367  1.12  christos 
   9368   1.1  christos   ;
   9369   1.1  christos   return 0;
   9370   1.1  christos }
   9371   1.1  christos _ACEOF
   9372  1.12  christos if ac_fn_c_try_link "$LINENO"
   9373  1.12  christos then :
   9374  1.12  christos 
   9375  1.12  christos 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9376  1.12  christos printf "%s\n" "yes" >&6; }
   9377  1.12  christos 				HAVE_LIBCRYPTO=yes
   9378  1.12  christos 				LIBCRYPTO_CFLAGS="-I/usr/local/include"
   9379  1.12  christos 				LIBCRYPTO_LIBS="-L/usr/local/lib -lcrypto"
   9380  1.12  christos 
   9381  1.12  christos else $as_nop
   9382  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9383  1.12  christos printf "%s\n" "no" >&6; }
   9384   1.1  christos fi
   9385  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9386   1.4  christos     conftest$ac_exeext conftest.$ac_ext
   9387   1.1  christos 
   9388  1.12  christos 	CFLAGS="$save_CFLAGS"
   9389  1.12  christos 	LIBS="$save_LIBS"
   9390  1.12  christos 	LDFLAGS="$save_LDFLAGS"
   9391  1.12  christos 
   9392  1.12  christos 		fi
   9393  1.12  christos 
   9394  1.12  christos 		#
   9395  1.12  christos 		# If it wasn't found, check if it's a system library.
   9396  1.12  christos 		#
   9397  1.12  christos 		# We include the standard include file to 1) make sure that
   9398  1.12  christos 		# it's installed (if it's just a shared library for the
   9399  1.12  christos 		# benefit of existing programs, that's not useful) and 2)
   9400  1.12  christos 		# make sure this isn't a newer macOS that provides libcrypto
   9401  1.12  christos 		# as a shared library but doesn't provide headers - Apple,
   9402  1.12  christos 		# bless their pointy little heads, apparently ship libcrypto
   9403  1.12  christos 		# as a library, but not the header files, in El Capitan and
   9404  1.12  christos 		# later, probably because they don't want you writing nasty
   9405  1.12  christos 		# portable code that could run on other UN*Xes, they want you
   9406  1.12  christos 		# writing code that uses their Shiny New Crypto Library and
   9407  1.12  christos 		# that thus only runs on macOS.
   9408  1.12  christos 		#
   9409  1.12  christos 		if test "x$HAVE_LIBCRYPTO" != "xyes"; then
   9410  1.12  christos 
   9411  1.12  christos 	save_CFLAGS="$CFLAGS"
   9412  1.12  christos 	save_LIBS="$LIBS"
   9413  1.12  christos 	save_LDFLAGS="$LDFLAGS"
   9414  1.12  christos 
   9415  1.12  christos 			LIBS="$LIBS -lcrypto"
   9416  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5
   9417  1.12  christos printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; }
   9418  1.12  christos 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9419  1.12  christos /* end confdefs.h.  */
   9420  1.12  christos 
   9421  1.12  christos #include <openssl/evp.h>
   9422  1.12  christos 
   9423  1.12  christos int
   9424  1.12  christos main (void)
   9425  1.12  christos {
   9426   1.1  christos 
   9427  1.12  christos EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0);
   9428  1.12  christos return 0;
   9429   1.1  christos 
   9430  1.12  christos   ;
   9431  1.12  christos   return 0;
   9432  1.12  christos }
   9433   1.1  christos _ACEOF
   9434  1.12  christos if ac_fn_c_try_link "$LINENO"
   9435  1.12  christos then :
   9436   1.1  christos 
   9437  1.12  christos 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9438  1.12  christos printf "%s\n" "yes" >&6; }
   9439  1.12  christos 				HAVE_LIBCRYPTO=yes
   9440  1.12  christos 				LIBCRYPTO_LIBS="-lcrypto"
   9441  1.12  christos 
   9442  1.12  christos else $as_nop
   9443  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9444  1.12  christos printf "%s\n" "no" >&6; }
   9445   1.1  christos fi
   9446  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9447  1.12  christos     conftest$ac_exeext conftest.$ac_ext
   9448  1.12  christos 
   9449  1.12  christos 	CFLAGS="$save_CFLAGS"
   9450  1.12  christos 	LIBS="$save_LIBS"
   9451  1.12  christos 	LDFLAGS="$save_LDFLAGS"
   9452  1.12  christos 
   9453  1.12  christos 		fi
   9454  1.12  christos 	else
   9455  1.12  christos 		#
   9456  1.12  christos 		# Yes.
   9457  1.12  christos 		#
   9458  1.12  christos 		# Look for it there.
   9459  1.12  christos 		#
   9460  1.12  christos 
   9461  1.12  christos 	save_CFLAGS="$CFLAGS"
   9462  1.12  christos 	save_LIBS="$LIBS"
   9463  1.12  christos 	save_LDFLAGS="$LDFLAGS"
   9464   1.1  christos 
   9465  1.12  christos 		CFLAGS="$CFLAGS -I$libcrypto_root/include"
   9466  1.12  christos 		LIBS="$LIBS -L$libcrypto_root/lib -lcrypto"
   9467  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5
   9468  1.12  christos printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; }
   9469  1.12  christos 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9470  1.12  christos /* end confdefs.h.  */
   9471  1.12  christos 
   9472  1.12  christos #include <openssl/evp.h>
   9473  1.12  christos 
   9474  1.12  christos int
   9475  1.12  christos main (void)
   9476  1.12  christos {
   9477  1.12  christos 
   9478  1.12  christos EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0);
   9479  1.12  christos return 0;
   9480   1.1  christos 
   9481  1.12  christos   ;
   9482  1.12  christos   return 0;
   9483  1.12  christos }
   9484   1.7  christos _ACEOF
   9485  1.12  christos if ac_fn_c_try_link "$LINENO"
   9486  1.12  christos then :
   9487   1.7  christos 
   9488  1.12  christos 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9489  1.12  christos printf "%s\n" "yes" >&6; }
   9490  1.12  christos 			HAVE_LIBCRYPTO=yes
   9491  1.12  christos 			LIBCRYPTO_CFLAGS="-I$libcrypto_root/include"
   9492  1.12  christos 			LIBCRYPTO_LIBS="-L$libcrypto_root/lib -lcrypto"
   9493  1.12  christos 
   9494  1.12  christos else $as_nop
   9495  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9496  1.12  christos printf "%s\n" "no" >&6; }
   9497   1.7  christos fi
   9498  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9499  1.12  christos     conftest$ac_exeext conftest.$ac_ext
   9500  1.12  christos 
   9501  1.12  christos 	CFLAGS="$save_CFLAGS"
   9502  1.12  christos 	LIBS="$save_LIBS"
   9503  1.12  christos 	LDFLAGS="$save_LDFLAGS"
   9504  1.12  christos 
   9505  1.12  christos 	fi
   9506  1.12  christos 
   9507  1.12  christos 	#
   9508  1.12  christos 	# OK, did we find it?
   9509  1.12  christos 	#
   9510  1.12  christos 	if test "x$HAVE_LIBCRYPTO" = "xyes"; then
   9511  1.12  christos 
   9512  1.12  christos printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
   9513  1.12  christos 
   9514  1.12  christos 
   9515  1.12  christos 		#
   9516  1.12  christos 		# Put the subdirectories of the libcrypto root directory
   9517  1.12  christos 		# at the end of the header and library search path, to
   9518  1.12  christos 		# make sure they come after any -I or -L flags for
   9519  1.12  christos 		# a local libpcap - those must take precedence of any
   9520  1.12  christos 		# directory that might contain an installed version of
   9521  1.12  christos 		# libpcap.
   9522  1.12  christos 		#
   9523  1.12  christos 		V_INCLS="$V_INCLS $LIBCRYPTO_CFLAGS"
   9524  1.12  christos 		LIBS="$LIBS $LIBCRYPTO_LIBS"
   9525   1.7  christos 
   9526  1.12  christos 		#
   9527  1.12  christos 		# OK, then:
   9528  1.12  christos 		#
   9529  1.12  christos 		# 1) do we have EVP_CIPHER_CTX_new?
   9530  1.12  christos 		# If so, we use it to allocate an EVP_CIPHER_CTX, as
   9531  1.12  christos 		# EVP_CIPHER_CTX may be opaque; otherwise, we allocate it
   9532  1.12  christos 		# ourselves.
   9533  1.12  christos 		#
   9534  1.12  christos 		# 2) do we have EVP_DecryptInit_ex()?
   9535  1.12  christos 		# If so, we use it, because we need to be able to make
   9536  1.12  christos 		# two "initialize the cipher" calls, one with the cipher
   9537  1.12  christos 		# and key, and one with the IV, and, as of OpenSSL 1.1,
   9538  1.12  christos 		# You Can't Do That with EVP_DecryptInit(), because a
   9539  1.12  christos 		# call to EVP_DecryptInit() will unconditionally clear
   9540  1.12  christos 		# the context, and if you don't supply a cipher, it'll
   9541  1.12  christos 		# clear the cipher, rendering the context unusable and
   9542  1.12  christos 		# causing a crash.
   9543  1.12  christos 		#
   9544  1.12  christos 		ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new"
   9545  1.12  christos if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes
   9546  1.12  christos then :
   9547  1.12  christos   printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h
   9548   1.7  christos 
   9549   1.7  christos fi
   9550  1.12  christos ac_fn_c_check_func "$LINENO" "EVP_DecryptInit_ex" "ac_cv_func_EVP_DecryptInit_ex"
   9551  1.12  christos if test "x$ac_cv_func_EVP_DecryptInit_ex" = xyes
   9552  1.12  christos then :
   9553  1.12  christos   printf "%s\n" "#define HAVE_EVP_DECRYPTINIT_EX 1" >>confdefs.h
   9554   1.7  christos 
   9555  1.12  christos fi
   9556   1.7  christos 
   9557  1.12  christos 	else
   9558  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL/libressl libcrypto not found" >&5
   9559  1.12  christos printf "%s\n" "$as_me: OpenSSL/libressl libcrypto not found" >&6;}
   9560  1.12  christos 	fi
   9561   1.1  christos fi
   9562   1.1  christos 
   9563   1.6  christos # Check for libcap-ng
   9564  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5
   9565  1.12  christos printf %s "checking whether to use libcap-ng... " >&6; }
   9566   1.6  christos # Specify location for both includes and libraries.
   9567   1.6  christos want_libcap_ng=ifavailable
   9568   1.6  christos 
   9569   1.6  christos # Check whether --with-cap_ng was given.
   9570  1.12  christos if test ${with_cap_ng+y}
   9571  1.12  christos then :
   9572   1.6  christos   withval=$with_cap_ng;
   9573   1.6  christos 	if test $withval = no
   9574   1.6  christos 	then
   9575   1.6  christos 		want_libcap_ng=no
   9576  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9577  1.12  christos printf "%s\n" "no" >&6; }
   9578   1.6  christos 	elif test $withval = yes
   9579   1.6  christos 	then
   9580   1.6  christos 		want_libcap_ng=yes
   9581  1.12  christos 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9582  1.12  christos printf "%s\n" "yes" >&6; }
   9583   1.6  christos 	fi
   9584   1.6  christos 
   9585  1.12  christos else $as_nop
   9586   1.6  christos 
   9587   1.6  christos 	#
   9588   1.6  christos 	# Use libcap-ng if it's present, otherwise don't.
   9589   1.6  christos 	#
   9590   1.6  christos 	want_libcap_ng=ifavailable
   9591  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
   9592  1.12  christos printf "%s\n" "yes, if available" >&6; }
   9593   1.6  christos 
   9594   1.6  christos fi
   9595   1.6  christos 
   9596   1.6  christos if test "$want_libcap_ng" != "no"; then
   9597  1.12  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for capng_change_id in -lcap-ng" >&5
   9598  1.12  christos printf %s "checking for capng_change_id in -lcap-ng... " >&6; }
   9599  1.12  christos if test ${ac_cv_lib_cap_ng_capng_change_id+y}
   9600  1.12  christos then :
   9601  1.12  christos   printf %s "(cached) " >&6
   9602  1.12  christos else $as_nop
   9603   1.6  christos   ac_check_lib_save_LIBS=$LIBS
   9604   1.6  christos LIBS="-lcap-ng  $LIBS"
   9605   1.6  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9606   1.6  christos /* end confdefs.h.  */
   9607   1.6  christos 
   9608   1.6  christos /* Override any GCC internal prototype to avoid an error.
   9609   1.6  christos    Use char because int might match the return type of a GCC
   9610   1.6  christos    builtin and then its argument prototype would still apply.  */
   9611   1.6  christos char capng_change_id ();
   9612   1.6  christos int
   9613  1.12  christos main (void)
   9614   1.6  christos {
   9615   1.6  christos return capng_change_id ();
   9616   1.6  christos   ;
   9617   1.6  christos   return 0;
   9618   1.6  christos }
   9619   1.6  christos _ACEOF
   9620  1.12  christos if ac_fn_c_try_link "$LINENO"
   9621  1.12  christos then :
   9622   1.6  christos   ac_cv_lib_cap_ng_capng_change_id=yes
   9623  1.12  christos else $as_nop
   9624   1.6  christos   ac_cv_lib_cap_ng_capng_change_id=no
   9625   1.6  christos fi
   9626  1.12  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9627   1.6  christos     conftest$ac_exeext conftest.$ac_ext
   9628   1.6  christos LIBS=$ac_check_lib_save_LIBS
   9629   1.6  christos fi
   9630  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_change_id" >&5
   9631  1.12  christos printf "%s\n" "$ac_cv_lib_cap_ng_capng_change_id" >&6; }
   9632  1.12  christos if test "x$ac_cv_lib_cap_ng_capng_change_id" = xyes
   9633  1.12  christos then :
   9634  1.12  christos   printf "%s\n" "#define HAVE_LIBCAP_NG 1" >>confdefs.h
   9635   1.6  christos 
   9636   1.6  christos   LIBS="-lcap-ng $LIBS"
   9637   1.6  christos 
   9638   1.6  christos fi
   9639   1.6  christos 
   9640  1.12  christos 	ac_fn_c_check_header_compile "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default"
   9641  1.12  christos if test "x$ac_cv_header_cap_ng_h" = xyes
   9642  1.12  christos then :
   9643  1.12  christos   printf "%s\n" "#define HAVE_CAP_NG_H 1" >>confdefs.h
   9644   1.6  christos 
   9645   1.6  christos fi
   9646   1.6  christos 
   9647   1.6  christos fi
   9648   1.6  christos 
   9649   1.1  christos if test "$missing_includes" = "yes"; then
   9650   1.3  christos 	CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
   9651   1.3  christos 	V_INCLS="$V_INCLS -I$srcdir/missing"
   9652   1.1  christos fi
   9653   1.1  christos 
   9654   1.1  christos 
   9655   1.1  christos 
   9656   1.1  christos 
   9657   1.1  christos 
   9658   1.1  christos 
   9659   1.1  christos 
   9660   1.1  christos 
   9661   1.1  christos 
   9662   1.1  christos 
   9663  1.12  christos   # Find a good install program.  We prefer a C program (faster),
   9664   1.1  christos # so one script is as good as another.  But avoid the broken or
   9665   1.1  christos # incompatible versions:
   9666   1.1  christos # SysV /etc/install, /usr/sbin/install
   9667   1.1  christos # SunOS /usr/etc/install
   9668   1.1  christos # IRIX /sbin/install
   9669   1.1  christos # AIX /bin/install
   9670   1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   9671   1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   9672   1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   9673   1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   9674   1.1  christos # OS/2's system install, which has a completely different semantic
   9675   1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   9676   1.4  christos # Reject install programs that cannot install multiple files.
   9677  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   9678  1.12  christos printf %s "checking for a BSD-compatible install... " >&6; }
   9679   1.1  christos if test -z "$INSTALL"; then
   9680  1.12  christos if test ${ac_cv_path_install+y}
   9681  1.12  christos then :
   9682  1.12  christos   printf %s "(cached) " >&6
   9683  1.12  christos else $as_nop
   9684   1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9685   1.1  christos for as_dir in $PATH
   9686   1.1  christos do
   9687   1.1  christos   IFS=$as_save_IFS
   9688  1.12  christos   case $as_dir in #(((
   9689  1.12  christos     '') as_dir=./ ;;
   9690  1.12  christos     */) ;;
   9691  1.12  christos     *) as_dir=$as_dir/ ;;
   9692  1.12  christos   esac
   9693  1.12  christos     # Account for fact that we put trailing slashes in our PATH walk.
   9694  1.12  christos case $as_dir in #((
   9695  1.12  christos   ./ | /[cC]/* | \
   9696   1.1  christos   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   9697   1.4  christos   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   9698   1.1  christos   /usr/ucb/* ) ;;
   9699   1.1  christos   *)
   9700   1.1  christos     # OSF1 and SCO ODT 3.0 have their own names for install.
   9701   1.1  christos     # Don't use installbsd from OSF since it installs stuff as root
   9702   1.1  christos     # by default.
   9703   1.1  christos     for ac_prog in ginstall scoinst install; do
   9704   1.1  christos       for ac_exec_ext in '' $ac_executable_extensions; do
   9705  1.12  christos 	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
   9706   1.1  christos 	  if test $ac_prog = install &&
   9707  1.12  christos 	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   9708   1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   9709   1.1  christos 	    :
   9710   1.1  christos 	  elif test $ac_prog = install &&
   9711  1.12  christos 	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   9712   1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   9713   1.1  christos 	    :
   9714   1.1  christos 	  else
   9715   1.4  christos 	    rm -rf conftest.one conftest.two conftest.dir
   9716   1.4  christos 	    echo one > conftest.one
   9717   1.4  christos 	    echo two > conftest.two
   9718   1.4  christos 	    mkdir conftest.dir
   9719  1.12  christos 	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
   9720   1.4  christos 	      test -s conftest.one && test -s conftest.two &&
   9721   1.4  christos 	      test -s conftest.dir/conftest.one &&
   9722   1.4  christos 	      test -s conftest.dir/conftest.two
   9723   1.4  christos 	    then
   9724  1.12  christos 	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
   9725   1.4  christos 	      break 3
   9726   1.4  christos 	    fi
   9727   1.1  christos 	  fi
   9728   1.1  christos 	fi
   9729   1.1  christos       done
   9730   1.1  christos     done
   9731   1.1  christos     ;;
   9732   1.1  christos esac
   9733   1.4  christos 
   9734   1.4  christos   done
   9735   1.1  christos IFS=$as_save_IFS
   9736   1.1  christos 
   9737   1.4  christos rm -rf conftest.one conftest.two conftest.dir
   9738   1.1  christos 
   9739   1.1  christos fi
   9740  1.12  christos   if test ${ac_cv_path_install+y}; then
   9741   1.1  christos     INSTALL=$ac_cv_path_install
   9742   1.1  christos   else
   9743   1.1  christos     # As a last resort, use the slow shell script.  Don't cache a
   9744   1.1  christos     # value for INSTALL within a source directory, because that will
   9745   1.1  christos     # break other packages using the cache if that directory is
   9746   1.1  christos     # removed, or if the value is a relative name.
   9747   1.1  christos     INSTALL=$ac_install_sh
   9748   1.1  christos   fi
   9749   1.1  christos fi
   9750  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   9751  1.12  christos printf "%s\n" "$INSTALL" >&6; }
   9752   1.1  christos 
   9753   1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   9754   1.1  christos # It thinks the first close brace ends the variable substitution.
   9755   1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   9756   1.1  christos 
   9757   1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   9758   1.1  christos 
   9759   1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   9760   1.1  christos 
   9761   1.1  christos 
   9762   1.1  christos ac_config_headers="$ac_config_headers config.h"
   9763   1.1  christos 
   9764   1.1  christos 
   9765  1.13  christos 
   9766  1.13  christos 
   9767  1.12  christos ac_config_commands="$ac_config_commands .devel"
   9768   1.1  christos 
   9769   1.1  christos ac_config_files="$ac_config_files Makefile tcpdump.1"
   9770   1.1  christos 
   9771   1.1  christos cat >confcache <<\_ACEOF
   9772   1.1  christos # This file is a shell script that caches the results of configure
   9773   1.1  christos # tests run on this system so they can be shared between configure
   9774   1.1  christos # scripts and configure runs, see configure's option --config-cache.
   9775   1.1  christos # It is not useful on other systems.  If it contains results you don't
   9776   1.1  christos # want to keep, you may remove or edit it.
   9777   1.1  christos #
   9778   1.1  christos # config.status only pays attention to the cache file if you give it
   9779   1.1  christos # the --recheck option to rerun configure.
   9780   1.1  christos #
   9781   1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
   9782   1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   9783   1.1  christos # following values.
   9784   1.1  christos 
   9785   1.1  christos _ACEOF
   9786   1.1  christos 
   9787   1.1  christos # The following way of writing the cache mishandles newlines in values,
   9788   1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   9789   1.1  christos # So, we kill variables containing newlines.
   9790   1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   9791   1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   9792   1.1  christos (
   9793   1.1  christos   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   9794   1.1  christos     eval ac_val=\$$ac_var
   9795   1.1  christos     case $ac_val in #(
   9796   1.1  christos     *${as_nl}*)
   9797   1.1  christos       case $ac_var in #(
   9798  1.12  christos       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   9799  1.12  christos printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   9800   1.1  christos       esac
   9801   1.1  christos       case $ac_var in #(
   9802   1.1  christos       _ | IFS | as_nl) ;; #(
   9803   1.4  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   9804   1.4  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   9805   1.1  christos       esac ;;
   9806   1.1  christos     esac
   9807   1.1  christos   done
   9808   1.1  christos 
   9809   1.1  christos   (set) 2>&1 |
   9810   1.1  christos     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   9811   1.1  christos     *${as_nl}ac_space=\ *)
   9812   1.4  christos       # `set' does not quote correctly, so add quotes: double-quote
   9813   1.4  christos       # substitution turns \\\\ into \\, and sed turns \\ into \.
   9814   1.1  christos       sed -n \
   9815   1.1  christos 	"s/'/'\\\\''/g;
   9816   1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   9817   1.1  christos       ;; #(
   9818   1.1  christos     *)
   9819   1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   9820   1.1  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   9821   1.1  christos       ;;
   9822   1.1  christos     esac |
   9823   1.1  christos     sort
   9824   1.1  christos ) |
   9825   1.1  christos   sed '
   9826   1.1  christos      /^ac_cv_env_/b end
   9827   1.1  christos      t clear
   9828   1.1  christos      :clear
   9829  1.12  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   9830   1.1  christos      t end
   9831   1.1  christos      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   9832   1.1  christos      :end' >>confcache
   9833   1.1  christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   9834   1.4  christos   if test -w "$cache_file"; then
   9835   1.4  christos     if test "x$cache_file" != "x/dev/null"; then
   9836  1.12  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   9837  1.12  christos printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   9838   1.4  christos       if test ! -f "$cache_file" || test -h "$cache_file"; then
   9839   1.4  christos 	cat confcache >"$cache_file"
   9840   1.4  christos       else
   9841   1.4  christos         case $cache_file in #(
   9842   1.4  christos         */* | ?:*)
   9843   1.4  christos 	  mv -f confcache "$cache_file"$$ &&
   9844   1.4  christos 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   9845   1.4  christos         *)
   9846   1.4  christos 	  mv -f confcache "$cache_file" ;;
   9847   1.4  christos 	esac
   9848   1.4  christos       fi
   9849   1.4  christos     fi
   9850   1.1  christos   else
   9851  1.12  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   9852  1.12  christos printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   9853   1.1  christos   fi
   9854   1.1  christos fi
   9855   1.1  christos rm -f confcache
   9856   1.1  christos 
   9857   1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   9858   1.1  christos # Let make expand exec_prefix.
   9859   1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   9860   1.1  christos 
   9861   1.1  christos DEFS=-DHAVE_CONFIG_H
   9862   1.1  christos 
   9863   1.1  christos ac_libobjs=
   9864   1.1  christos ac_ltlibobjs=
   9865   1.4  christos U=
   9866   1.1  christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   9867   1.1  christos   # 1. Remove the extension, and $U if already installed.
   9868   1.1  christos   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   9869  1.12  christos   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   9870   1.1  christos   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   9871   1.1  christos   #    will be set to the directory where LIBOBJS objects are built.
   9872   1.4  christos   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   9873   1.4  christos   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   9874   1.1  christos done
   9875   1.1  christos LIBOBJS=$ac_libobjs
   9876   1.1  christos 
   9877   1.1  christos LTLIBOBJS=$ac_ltlibobjs
   9878   1.1  christos 
   9879   1.1  christos 
   9880   1.1  christos 
   9881   1.4  christos : "${CONFIG_STATUS=./config.status}"
   9882   1.4  christos ac_write_fail=0
   9883   1.1  christos ac_clean_files_save=$ac_clean_files
   9884   1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   9885  1.12  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   9886  1.12  christos printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   9887   1.4  christos as_write_fail=0
   9888   1.4  christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   9889   1.1  christos #! $SHELL
   9890   1.1  christos # Generated by $as_me.
   9891   1.1  christos # Run this file to recreate the current configuration.
   9892   1.1  christos # Compiler output produced by configure, useful for debugging
   9893   1.1  christos # configure, is in config.log if it exists.
   9894   1.1  christos 
   9895   1.1  christos debug=false
   9896   1.1  christos ac_cs_recheck=false
   9897   1.1  christos ac_cs_silent=false
   9898   1.4  christos 
   9899   1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   9900   1.4  christos export SHELL
   9901   1.4  christos _ASEOF
   9902   1.4  christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   9903   1.4  christos ## -------------------- ##
   9904   1.4  christos ## M4sh Initialization. ##
   9905   1.4  christos ## -------------------- ##
   9906   1.1  christos 
   9907   1.1  christos # Be more Bourne compatible
   9908   1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
   9909  1.12  christos as_nop=:
   9910  1.12  christos if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   9911  1.12  christos then :
   9912   1.1  christos   emulate sh
   9913   1.1  christos   NULLCMD=:
   9914   1.4  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   9915   1.1  christos   # is contrary to our usage.  Disable this feature.
   9916   1.1  christos   alias -g '${1+"$@"}'='"$@"'
   9917   1.1  christos   setopt NO_GLOB_SUBST
   9918  1.12  christos else $as_nop
   9919   1.4  christos   case `(set -o) 2>/dev/null` in #(
   9920   1.4  christos   *posix*) :
   9921   1.4  christos     set -o posix ;; #(
   9922   1.4  christos   *) :
   9923   1.4  christos      ;;
   9924   1.1  christos esac
   9925   1.1  christos fi
   9926   1.1  christos 
   9927   1.1  christos 
   9928  1.12  christos 
   9929  1.12  christos # Reset variables that may have inherited troublesome values from
   9930  1.12  christos # the environment.
   9931  1.12  christos 
   9932  1.12  christos # IFS needs to be set, to space, tab, and newline, in precisely that order.
   9933  1.12  christos # (If _AS_PATH_WALK were called with IFS unset, it would have the
   9934  1.12  christos # side effect of setting IFS to empty, thus disabling word splitting.)
   9935  1.12  christos # Quoting is to prevent editors from complaining about space-tab.
   9936   1.4  christos as_nl='
   9937   1.4  christos '
   9938   1.4  christos export as_nl
   9939  1.12  christos IFS=" ""	$as_nl"
   9940  1.12  christos 
   9941  1.12  christos PS1='$ '
   9942  1.12  christos PS2='> '
   9943  1.12  christos PS4='+ '
   9944  1.12  christos 
   9945  1.12  christos # Ensure predictable behavior from utilities with locale-dependent output.
   9946  1.12  christos LC_ALL=C
   9947  1.12  christos export LC_ALL
   9948  1.12  christos LANGUAGE=C
   9949  1.12  christos export LANGUAGE
   9950  1.12  christos 
   9951  1.12  christos # We cannot yet rely on "unset" to work, but we need these variables
   9952  1.12  christos # to be unset--not just set to an empty or harmless value--now, to
   9953  1.12  christos # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   9954  1.12  christos # also avoids known problems related to "unset" and subshell syntax
   9955  1.12  christos # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   9956  1.12  christos for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   9957  1.12  christos do eval test \${$as_var+y} \
   9958  1.12  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   9959  1.12  christos done
   9960  1.12  christos 
   9961  1.12  christos # Ensure that fds 0, 1, and 2 are open.
   9962  1.12  christos if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   9963  1.12  christos if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   9964  1.12  christos if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   9965   1.1  christos 
   9966   1.4  christos # The user is always right.
   9967  1.12  christos if ${PATH_SEPARATOR+false} :; then
   9968   1.4  christos   PATH_SEPARATOR=:
   9969   1.4  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   9970   1.4  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   9971   1.4  christos       PATH_SEPARATOR=';'
   9972   1.4  christos   }
   9973   1.1  christos fi
   9974   1.1  christos 
   9975   1.1  christos 
   9976   1.1  christos # Find who we are.  Look in the path if we contain no directory separator.
   9977   1.4  christos as_myself=
   9978   1.4  christos case $0 in #((
   9979   1.1  christos   *[\\/]* ) as_myself=$0 ;;
   9980   1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9981   1.1  christos for as_dir in $PATH
   9982   1.1  christos do
   9983   1.1  christos   IFS=$as_save_IFS
   9984  1.12  christos   case $as_dir in #(((
   9985  1.12  christos     '') as_dir=./ ;;
   9986  1.12  christos     */) ;;
   9987  1.12  christos     *) as_dir=$as_dir/ ;;
   9988  1.12  christos   esac
   9989  1.12  christos     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   9990   1.4  christos   done
   9991   1.1  christos IFS=$as_save_IFS
   9992   1.1  christos 
   9993   1.1  christos      ;;
   9994   1.1  christos esac
   9995   1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
   9996   1.1  christos # in which case we are not to be found in the path.
   9997   1.1  christos if test "x$as_myself" = x; then
   9998   1.1  christos   as_myself=$0
   9999   1.1  christos fi
   10000   1.1  christos if test ! -f "$as_myself"; then
   10001  1.12  christos   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   10002   1.4  christos   exit 1
   10003   1.1  christos fi
   10004   1.1  christos 
   10005   1.4  christos 
   10006   1.4  christos 
   10007   1.4  christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
   10008   1.4  christos # ----------------------------------------
   10009   1.4  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   10010   1.4  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   10011   1.4  christos # script with STATUS, using 1 if that was 0.
   10012   1.4  christos as_fn_error ()
   10013   1.4  christos {
   10014   1.4  christos   as_status=$1; test $as_status -eq 0 && as_status=1
   10015   1.4  christos   if test "$4"; then
   10016   1.4  christos     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   10017  1.12  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   10018   1.4  christos   fi
   10019  1.12  christos   printf "%s\n" "$as_me: error: $2" >&2
   10020   1.4  christos   as_fn_exit $as_status
   10021   1.4  christos } # as_fn_error
   10022   1.4  christos 
   10023   1.4  christos 
   10024  1.12  christos 
   10025   1.4  christos # as_fn_set_status STATUS
   10026   1.4  christos # -----------------------
   10027   1.4  christos # Set $? to STATUS, without forking.
   10028   1.4  christos as_fn_set_status ()
   10029   1.4  christos {
   10030   1.4  christos   return $1
   10031   1.4  christos } # as_fn_set_status
   10032   1.4  christos 
   10033   1.4  christos # as_fn_exit STATUS
   10034   1.4  christos # -----------------
   10035   1.4  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   10036   1.4  christos as_fn_exit ()
   10037   1.4  christos {
   10038   1.4  christos   set +e
   10039   1.4  christos   as_fn_set_status $1
   10040   1.4  christos   exit $1
   10041   1.4  christos } # as_fn_exit
   10042   1.4  christos 
   10043   1.4  christos # as_fn_unset VAR
   10044   1.4  christos # ---------------
   10045   1.4  christos # Portably unset VAR.
   10046   1.4  christos as_fn_unset ()
   10047   1.4  christos {
   10048   1.4  christos   { eval $1=; unset $1;}
   10049   1.4  christos }
   10050   1.4  christos as_unset=as_fn_unset
   10051  1.12  christos 
   10052   1.4  christos # as_fn_append VAR VALUE
   10053   1.4  christos # ----------------------
   10054   1.4  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
   10055   1.4  christos # advantage of any shell optimizations that allow amortized linear growth over
   10056   1.4  christos # repeated appends, instead of the typical quadratic growth present in naive
   10057   1.4  christos # implementations.
   10058  1.12  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   10059  1.12  christos then :
   10060   1.4  christos   eval 'as_fn_append ()
   10061   1.4  christos   {
   10062   1.4  christos     eval $1+=\$2
   10063   1.4  christos   }'
   10064  1.12  christos else $as_nop
   10065   1.4  christos   as_fn_append ()
   10066   1.4  christos   {
   10067   1.4  christos     eval $1=\$$1\$2
   10068   1.4  christos   }
   10069   1.4  christos fi # as_fn_append
   10070   1.4  christos 
   10071   1.4  christos # as_fn_arith ARG...
   10072   1.4  christos # ------------------
   10073   1.4  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
   10074   1.4  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
   10075   1.4  christos # must be portable across $(()) and expr.
   10076  1.12  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   10077  1.12  christos then :
   10078   1.4  christos   eval 'as_fn_arith ()
   10079   1.4  christos   {
   10080   1.4  christos     as_val=$(( $* ))
   10081   1.4  christos   }'
   10082  1.12  christos else $as_nop
   10083   1.4  christos   as_fn_arith ()
   10084   1.4  christos   {
   10085   1.4  christos     as_val=`expr "$@" || test $? -eq 1`
   10086   1.4  christos   }
   10087   1.4  christos fi # as_fn_arith
   10088   1.4  christos 
   10089   1.1  christos 
   10090   1.1  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
   10091   1.1  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   10092   1.1  christos   as_expr=expr
   10093   1.1  christos else
   10094   1.1  christos   as_expr=false
   10095   1.1  christos fi
   10096   1.1  christos 
   10097   1.1  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   10098   1.1  christos   as_basename=basename
   10099   1.1  christos else
   10100   1.1  christos   as_basename=false
   10101   1.1  christos fi
   10102   1.1  christos 
   10103   1.4  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   10104   1.4  christos   as_dirname=dirname
   10105   1.4  christos else
   10106   1.4  christos   as_dirname=false
   10107   1.4  christos fi
   10108   1.1  christos 
   10109   1.1  christos as_me=`$as_basename -- "$0" ||
   10110   1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   10111   1.1  christos 	 X"$0" : 'X\(//\)$' \| \
   10112   1.1  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   10113  1.12  christos printf "%s\n" X/"$0" |
   10114   1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
   10115   1.1  christos 	    s//\1/
   10116   1.1  christos 	    q
   10117   1.1  christos 	  }
   10118   1.1  christos 	  /^X\/\(\/\/\)$/{
   10119   1.1  christos 	    s//\1/
   10120   1.1  christos 	    q
   10121   1.1  christos 	  }
   10122   1.1  christos 	  /^X\/\(\/\).*/{
   10123   1.1  christos 	    s//\1/
   10124   1.1  christos 	    q
   10125   1.1  christos 	  }
   10126   1.1  christos 	  s/.*/./; q'`
   10127   1.1  christos 
   10128   1.4  christos # Avoid depending upon Character Ranges.
   10129   1.4  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   10130   1.4  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   10131   1.4  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   10132   1.4  christos as_cr_digits='0123456789'
   10133   1.4  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
   10134   1.1  christos 
   10135  1.12  christos 
   10136  1.12  christos # Determine whether it's possible to make 'echo' print without a newline.
   10137  1.12  christos # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   10138  1.12  christos # for compatibility with existing Makefiles.
   10139   1.1  christos ECHO_C= ECHO_N= ECHO_T=
   10140   1.4  christos case `echo -n x` in #(((((
   10141   1.1  christos -n*)
   10142   1.4  christos   case `echo 'xy\c'` in
   10143   1.1  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   10144   1.4  christos   xy)  ECHO_C='\c';;
   10145   1.4  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   10146   1.4  christos        ECHO_T='	';;
   10147   1.1  christos   esac;;
   10148   1.1  christos *)
   10149   1.1  christos   ECHO_N='-n';;
   10150   1.1  christos esac
   10151   1.1  christos 
   10152  1.12  christos # For backward compatibility with old third-party macros, we provide
   10153  1.12  christos # the shell variables $as_echo and $as_echo_n.  New code should use
   10154  1.12  christos # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   10155  1.12  christos as_echo='printf %s\n'
   10156  1.12  christos as_echo_n='printf %s'
   10157  1.12  christos 
   10158   1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   10159   1.1  christos if test -d conf$$.dir; then
   10160   1.1  christos   rm -f conf$$.dir/conf$$.file
   10161   1.1  christos else
   10162   1.1  christos   rm -f conf$$.dir
   10163   1.4  christos   mkdir conf$$.dir 2>/dev/null
   10164   1.1  christos fi
   10165   1.4  christos if (echo >conf$$.file) 2>/dev/null; then
   10166   1.4  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
   10167   1.4  christos     as_ln_s='ln -s'
   10168   1.4  christos     # ... but there are two gotchas:
   10169   1.4  christos     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   10170   1.4  christos     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   10171   1.4  christos     # In both cases, we have to default to `cp -pR'.
   10172   1.4  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   10173   1.4  christos       as_ln_s='cp -pR'
   10174   1.4  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
   10175   1.4  christos     as_ln_s=ln
   10176   1.4  christos   else
   10177   1.4  christos     as_ln_s='cp -pR'
   10178   1.4  christos   fi
   10179   1.1  christos else
   10180   1.4  christos   as_ln_s='cp -pR'
   10181   1.1  christos fi
   10182   1.1  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   10183   1.1  christos rmdir conf$$.dir 2>/dev/null
   10184   1.1  christos 
   10185   1.4  christos 
   10186   1.4  christos # as_fn_mkdir_p
   10187   1.4  christos # -------------
   10188   1.4  christos # Create "$as_dir" as a directory, including parents if necessary.
   10189   1.4  christos as_fn_mkdir_p ()
   10190   1.4  christos {
   10191   1.4  christos 
   10192   1.4  christos   case $as_dir in #(
   10193   1.4  christos   -*) as_dir=./$as_dir;;
   10194   1.4  christos   esac
   10195   1.4  christos   test -d "$as_dir" || eval $as_mkdir_p || {
   10196   1.4  christos     as_dirs=
   10197   1.4  christos     while :; do
   10198   1.4  christos       case $as_dir in #(
   10199  1.12  christos       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   10200   1.4  christos       *) as_qdir=$as_dir;;
   10201   1.4  christos       esac
   10202   1.4  christos       as_dirs="'$as_qdir' $as_dirs"
   10203   1.4  christos       as_dir=`$as_dirname -- "$as_dir" ||
   10204   1.4  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   10205   1.4  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   10206   1.4  christos 	 X"$as_dir" : 'X\(//\)$' \| \
   10207   1.4  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   10208  1.12  christos printf "%s\n" X"$as_dir" |
   10209   1.4  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   10210   1.4  christos 	    s//\1/
   10211   1.4  christos 	    q
   10212   1.4  christos 	  }
   10213   1.4  christos 	  /^X\(\/\/\)[^/].*/{
   10214   1.4  christos 	    s//\1/
   10215   1.4  christos 	    q
   10216   1.4  christos 	  }
   10217   1.4  christos 	  /^X\(\/\/\)$/{
   10218   1.4  christos 	    s//\1/
   10219   1.4  christos 	    q
   10220   1.4  christos 	  }
   10221   1.4  christos 	  /^X\(\/\).*/{
   10222   1.4  christos 	    s//\1/
   10223   1.4  christos 	    q
   10224   1.4  christos 	  }
   10225   1.4  christos 	  s/.*/./; q'`
   10226   1.4  christos       test -d "$as_dir" && break
   10227   1.4  christos     done
   10228   1.4  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
   10229   1.4  christos   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   10230   1.4  christos 
   10231   1.4  christos 
   10232   1.4  christos } # as_fn_mkdir_p
   10233   1.1  christos if mkdir -p . 2>/dev/null; then
   10234   1.4  christos   as_mkdir_p='mkdir -p "$as_dir"'
   10235   1.1  christos else
   10236   1.1  christos   test -d ./-p && rmdir ./-p
   10237   1.1  christos   as_mkdir_p=false
   10238   1.1  christos fi
   10239   1.1  christos 
   10240   1.4  christos 
   10241   1.4  christos # as_fn_executable_p FILE
   10242   1.4  christos # -----------------------
   10243   1.4  christos # Test if FILE is an executable regular file.
   10244   1.4  christos as_fn_executable_p ()
   10245   1.4  christos {
   10246   1.4  christos   test -f "$1" && test -x "$1"
   10247   1.4  christos } # as_fn_executable_p
   10248   1.4  christos as_test_x='test -x'
   10249   1.4  christos as_executable_p=as_fn_executable_p
   10250   1.1  christos 
   10251   1.1  christos # Sed expression to map a string onto a valid CPP name.
   10252   1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   10253   1.1  christos 
   10254   1.1  christos # Sed expression to map a string onto a valid variable name.
   10255   1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   10256   1.1  christos 
   10257   1.1  christos 
   10258   1.1  christos exec 6>&1
   10259   1.4  christos ## ----------------------------------- ##
   10260   1.4  christos ## Main body of $CONFIG_STATUS script. ##
   10261   1.4  christos ## ----------------------------------- ##
   10262   1.4  christos _ASEOF
   10263   1.4  christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   10264   1.1  christos 
   10265   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10266   1.4  christos # Save the log message, to keep $0 and so on meaningful, and to
   10267   1.1  christos # report actual input values of CONFIG_FILES etc. instead of their
   10268   1.1  christos # values after options handling.
   10269   1.1  christos ac_log="
   10270  1.13  christos This file was extended by tcpdump $as_me 4.99.6, which was
   10271  1.12  christos generated by GNU Autoconf 2.71.  Invocation command line was
   10272   1.1  christos 
   10273   1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   10274   1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   10275   1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   10276   1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   10277   1.1  christos   $ $0 $@
   10278   1.1  christos 
   10279   1.1  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   10280   1.1  christos "
   10281   1.1  christos 
   10282   1.1  christos _ACEOF
   10283   1.1  christos 
   10284   1.4  christos case $ac_config_files in *"
   10285   1.4  christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
   10286   1.4  christos esac
   10287   1.4  christos 
   10288   1.4  christos case $ac_config_headers in *"
   10289   1.4  christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   10290   1.4  christos esac
   10291   1.4  christos 
   10292   1.4  christos 
   10293   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10294   1.1  christos # Files that config.status was made for.
   10295   1.1  christos config_files="$ac_config_files"
   10296   1.1  christos config_headers="$ac_config_headers"
   10297   1.1  christos config_commands="$ac_config_commands"
   10298   1.1  christos 
   10299   1.1  christos _ACEOF
   10300   1.1  christos 
   10301   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10302   1.1  christos ac_cs_usage="\
   10303   1.4  christos \`$as_me' instantiates files and other configuration actions
   10304   1.4  christos from templates according to the current configuration.  Unless the files
   10305   1.4  christos and actions are specified as TAGs, all are instantiated by default.
   10306   1.1  christos 
   10307   1.4  christos Usage: $0 [OPTION]... [TAG]...
   10308   1.1  christos 
   10309   1.1  christos   -h, --help       print this help, then exit
   10310   1.1  christos   -V, --version    print version number and configuration settings, then exit
   10311   1.4  christos       --config     print configuration, then exit
   10312   1.4  christos   -q, --quiet, --silent
   10313   1.4  christos                    do not print progress messages
   10314   1.1  christos   -d, --debug      don't remove temporary files
   10315   1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   10316   1.4  christos       --file=FILE[:TEMPLATE]
   10317   1.4  christos                    instantiate the configuration file FILE
   10318   1.4  christos       --header=FILE[:TEMPLATE]
   10319   1.4  christos                    instantiate the configuration header FILE
   10320   1.1  christos 
   10321   1.1  christos Configuration files:
   10322   1.1  christos $config_files
   10323   1.1  christos 
   10324   1.1  christos Configuration headers:
   10325   1.1  christos $config_headers
   10326   1.1  christos 
   10327   1.1  christos Configuration commands:
   10328   1.1  christos $config_commands
   10329   1.1  christos 
   10330   1.4  christos Report bugs to the package provider."
   10331   1.1  christos 
   10332   1.1  christos _ACEOF
   10333  1.12  christos ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   10334  1.12  christos ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   10335   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10336  1.12  christos ac_cs_config='$ac_cs_config_escaped'
   10337   1.1  christos ac_cs_version="\\
   10338  1.13  christos tcpdump config.status 4.99.6
   10339  1.12  christos configured by $0, generated by GNU Autoconf 2.71,
   10340   1.4  christos   with options \\"\$ac_cs_config\\"
   10341   1.1  christos 
   10342  1.12  christos Copyright (C) 2021 Free Software Foundation, Inc.
   10343   1.1  christos This config.status script is free software; the Free Software Foundation
   10344   1.1  christos gives unlimited permission to copy, distribute and modify it."
   10345   1.1  christos 
   10346   1.1  christos ac_pwd='$ac_pwd'
   10347   1.1  christos srcdir='$srcdir'
   10348   1.1  christos INSTALL='$INSTALL'
   10349   1.4  christos test -n "\$AWK" || AWK=awk
   10350   1.1  christos _ACEOF
   10351   1.1  christos 
   10352   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10353   1.4  christos # The default lists apply if the user does not specify any file.
   10354   1.1  christos ac_need_defaults=:
   10355   1.1  christos while test $# != 0
   10356   1.1  christos do
   10357   1.1  christos   case $1 in
   10358   1.4  christos   --*=?*)
   10359   1.1  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   10360   1.1  christos     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   10361   1.1  christos     ac_shift=:
   10362   1.1  christos     ;;
   10363   1.4  christos   --*=)
   10364   1.4  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   10365   1.4  christos     ac_optarg=
   10366   1.4  christos     ac_shift=:
   10367   1.4  christos     ;;
   10368   1.1  christos   *)
   10369   1.1  christos     ac_option=$1
   10370   1.1  christos     ac_optarg=$2
   10371   1.1  christos     ac_shift=shift
   10372   1.1  christos     ;;
   10373   1.1  christos   esac
   10374   1.1  christos 
   10375   1.1  christos   case $ac_option in
   10376   1.1  christos   # Handling of the options.
   10377   1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   10378   1.1  christos     ac_cs_recheck=: ;;
   10379   1.1  christos   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   10380  1.12  christos     printf "%s\n" "$ac_cs_version"; exit ;;
   10381   1.4  christos   --config | --confi | --conf | --con | --co | --c )
   10382  1.12  christos     printf "%s\n" "$ac_cs_config"; exit ;;
   10383   1.1  christos   --debug | --debu | --deb | --de | --d | -d )
   10384   1.1  christos     debug=: ;;
   10385   1.1  christos   --file | --fil | --fi | --f )
   10386   1.1  christos     $ac_shift
   10387   1.4  christos     case $ac_optarg in
   10388  1.12  christos     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   10389   1.4  christos     '') as_fn_error $? "missing file argument" ;;
   10390   1.4  christos     esac
   10391   1.4  christos     as_fn_append CONFIG_FILES " '$ac_optarg'"
   10392   1.1  christos     ac_need_defaults=false;;
   10393   1.1  christos   --header | --heade | --head | --hea )
   10394   1.1  christos     $ac_shift
   10395   1.4  christos     case $ac_optarg in
   10396  1.12  christos     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   10397   1.4  christos     esac
   10398   1.4  christos     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   10399   1.1  christos     ac_need_defaults=false;;
   10400   1.1  christos   --he | --h)
   10401   1.1  christos     # Conflict between --help and --header
   10402   1.4  christos     as_fn_error $? "ambiguous option: \`$1'
   10403   1.4  christos Try \`$0 --help' for more information.";;
   10404   1.1  christos   --help | --hel | -h )
   10405  1.12  christos     printf "%s\n" "$ac_cs_usage"; exit ;;
   10406   1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   10407   1.1  christos   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   10408   1.1  christos     ac_cs_silent=: ;;
   10409   1.1  christos 
   10410   1.1  christos   # This is an error.
   10411   1.4  christos   -*) as_fn_error $? "unrecognized option: \`$1'
   10412   1.4  christos Try \`$0 --help' for more information." ;;
   10413   1.1  christos 
   10414   1.4  christos   *) as_fn_append ac_config_targets " $1"
   10415   1.1  christos      ac_need_defaults=false ;;
   10416   1.1  christos 
   10417   1.1  christos   esac
   10418   1.1  christos   shift
   10419   1.1  christos done
   10420   1.1  christos 
   10421   1.1  christos ac_configure_extra_args=
   10422   1.1  christos 
   10423   1.1  christos if $ac_cs_silent; then
   10424   1.1  christos   exec 6>/dev/null
   10425   1.1  christos   ac_configure_extra_args="$ac_configure_extra_args --silent"
   10426   1.1  christos fi
   10427   1.1  christos 
   10428   1.1  christos _ACEOF
   10429   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10430   1.1  christos if \$ac_cs_recheck; then
   10431   1.4  christos   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   10432   1.4  christos   shift
   10433  1.12  christos   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   10434   1.4  christos   CONFIG_SHELL='$SHELL'
   10435   1.1  christos   export CONFIG_SHELL
   10436   1.4  christos   exec "\$@"
   10437   1.1  christos fi
   10438   1.1  christos 
   10439   1.1  christos _ACEOF
   10440   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10441   1.1  christos exec 5>>config.log
   10442   1.1  christos {
   10443   1.1  christos   echo
   10444   1.1  christos   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   10445   1.1  christos ## Running $as_me. ##
   10446   1.1  christos _ASBOX
   10447  1.12  christos   printf "%s\n" "$ac_log"
   10448   1.1  christos } >&5
   10449   1.1  christos 
   10450   1.1  christos _ACEOF
   10451   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10452   1.1  christos #
   10453   1.1  christos # INIT-COMMANDS
   10454   1.1  christos #
   10455   1.1  christos 
   10456   1.1  christos 
   10457   1.1  christos _ACEOF
   10458   1.1  christos 
   10459   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10460   1.1  christos 
   10461   1.1  christos # Handling of arguments.
   10462   1.1  christos for ac_config_target in $ac_config_targets
   10463   1.1  christos do
   10464   1.1  christos   case $ac_config_target in
   10465   1.1  christos     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   10466  1.12  christos     ".devel") CONFIG_COMMANDS="$CONFIG_COMMANDS .devel" ;;
   10467   1.1  christos     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   10468   1.1  christos     "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
   10469   1.1  christos 
   10470   1.4  christos   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   10471   1.1  christos   esac
   10472   1.1  christos done
   10473   1.1  christos 
   10474   1.1  christos 
   10475   1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   10476   1.1  christos # then the envvar interface is used.  Set only those that are not.
   10477   1.1  christos # We use the long form for the default assignment because of an extremely
   10478   1.1  christos # bizarre bug on SunOS 4.1.3.
   10479   1.1  christos if $ac_need_defaults; then
   10480  1.12  christos   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   10481  1.12  christos   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   10482  1.12  christos   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
   10483   1.1  christos fi
   10484   1.1  christos 
   10485   1.1  christos # Have a temporary directory for convenience.  Make it in the build tree
   10486   1.1  christos # simply because there is no reason against having it here, and in addition,
   10487   1.1  christos # creating and moving files from /tmp can sometimes cause problems.
   10488   1.1  christos # Hook for its removal unless debugging.
   10489   1.1  christos # Note that there is a small window in which the directory will not be cleaned:
   10490   1.1  christos # after its creation but before its name has been assigned to `$tmp'.
   10491   1.1  christos $debug ||
   10492   1.1  christos {
   10493   1.4  christos   tmp= ac_tmp=
   10494   1.1  christos   trap 'exit_status=$?
   10495   1.4  christos   : "${ac_tmp:=$tmp}"
   10496   1.4  christos   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   10497   1.1  christos ' 0
   10498   1.4  christos   trap 'as_fn_exit 1' 1 2 13 15
   10499   1.1  christos }
   10500   1.1  christos # Create a (secure) tmp directory for tmp files.
   10501   1.1  christos 
   10502   1.1  christos {
   10503   1.1  christos   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   10504   1.4  christos   test -d "$tmp"
   10505   1.1  christos }  ||
   10506   1.1  christos {
   10507   1.1  christos   tmp=./conf$$-$RANDOM
   10508   1.1  christos   (umask 077 && mkdir "$tmp")
   10509   1.4  christos } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   10510   1.4  christos ac_tmp=$tmp
   10511   1.4  christos 
   10512   1.4  christos # Set up the scripts for CONFIG_FILES section.
   10513   1.4  christos # No need to generate them if there are no CONFIG_FILES.
   10514   1.4  christos # This happens for instance with `./config.status config.h'.
   10515   1.4  christos if test -n "$CONFIG_FILES"; then
   10516   1.1  christos 
   10517   1.1  christos 
   10518   1.4  christos ac_cr=`echo X | tr X '\015'`
   10519   1.4  christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
   10520   1.4  christos # But we know of no other shell where ac_cr would be empty at this
   10521   1.4  christos # point, so we can use a bashism as a fallback.
   10522   1.4  christos if test "x$ac_cr" = x; then
   10523   1.4  christos   eval ac_cr=\$\'\\r\'
   10524   1.4  christos fi
   10525   1.4  christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   10526   1.4  christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   10527   1.4  christos   ac_cs_awk_cr='\\r'
   10528   1.4  christos else
   10529   1.4  christos   ac_cs_awk_cr=$ac_cr
   10530   1.4  christos fi
   10531   1.1  christos 
   10532   1.4  christos echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   10533   1.1  christos _ACEOF
   10534   1.1  christos 
   10535   1.1  christos 
   10536   1.4  christos {
   10537   1.4  christos   echo "cat >conf$$subs.awk <<_ACEOF" &&
   10538   1.4  christos   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   10539   1.4  christos   echo "_ACEOF"
   10540   1.4  christos } >conf$$subs.sh ||
   10541   1.4  christos   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   10542   1.4  christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   10543   1.1  christos ac_delim='%!_!# '
   10544   1.1  christos for ac_last_try in false false false false false :; do
   10545   1.4  christos   . ./conf$$subs.sh ||
   10546   1.4  christos     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   10547   1.1  christos 
   10548   1.4  christos   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   10549   1.4  christos   if test $ac_delim_n = $ac_delim_num; then
   10550   1.1  christos     break
   10551   1.1  christos   elif $ac_last_try; then
   10552   1.4  christos     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   10553   1.1  christos   else
   10554   1.1  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   10555   1.1  christos   fi
   10556   1.1  christos done
   10557   1.4  christos rm -f conf$$subs.sh
   10558   1.1  christos 
   10559   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10560   1.4  christos cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   10561   1.1  christos _ACEOF
   10562   1.4  christos sed -n '
   10563   1.4  christos h
   10564   1.4  christos s/^/S["/; s/!.*/"]=/
   10565   1.4  christos p
   10566   1.4  christos g
   10567   1.4  christos s/^[^!]*!//
   10568   1.4  christos :repl
   10569   1.4  christos t repl
   10570   1.4  christos s/'"$ac_delim"'$//
   10571   1.4  christos t delim
   10572   1.4  christos :nl
   10573   1.4  christos h
   10574   1.4  christos s/\(.\{148\}\)..*/\1/
   10575   1.4  christos t more1
   10576   1.4  christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   10577   1.4  christos p
   10578   1.4  christos n
   10579   1.4  christos b repl
   10580   1.4  christos :more1
   10581   1.4  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   10582   1.4  christos p
   10583   1.4  christos g
   10584   1.4  christos s/.\{148\}//
   10585   1.4  christos t nl
   10586   1.4  christos :delim
   10587   1.4  christos h
   10588   1.4  christos s/\(.\{148\}\)..*/\1/
   10589   1.4  christos t more2
   10590   1.4  christos s/["\\]/\\&/g; s/^/"/; s/$/"/
   10591   1.4  christos p
   10592   1.4  christos b
   10593   1.4  christos :more2
   10594   1.4  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   10595   1.4  christos p
   10596   1.4  christos g
   10597   1.4  christos s/.\{148\}//
   10598   1.4  christos t delim
   10599   1.4  christos ' <conf$$subs.awk | sed '
   10600   1.4  christos /^[^""]/{
   10601   1.4  christos   N
   10602   1.4  christos   s/\n//
   10603   1.4  christos }
   10604   1.4  christos ' >>$CONFIG_STATUS || ac_write_fail=1
   10605   1.4  christos rm -f conf$$subs.awk
   10606   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10607   1.4  christos _ACAWK
   10608   1.4  christos cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   10609   1.4  christos   for (key in S) S_is_set[key] = 1
   10610   1.4  christos   FS = ""
   10611   1.4  christos 
   10612   1.4  christos }
   10613   1.4  christos {
   10614   1.4  christos   line = $ 0
   10615   1.4  christos   nfields = split(line, field, "@")
   10616   1.4  christos   substed = 0
   10617   1.4  christos   len = length(field[1])
   10618   1.4  christos   for (i = 2; i < nfields; i++) {
   10619   1.4  christos     key = field[i]
   10620   1.4  christos     keylen = length(key)
   10621   1.4  christos     if (S_is_set[key]) {
   10622   1.4  christos       value = S[key]
   10623   1.4  christos       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   10624   1.4  christos       len += length(value) + length(field[++i])
   10625   1.4  christos       substed = 1
   10626   1.4  christos     } else
   10627   1.4  christos       len += 1 + keylen
   10628   1.4  christos   }
   10629   1.4  christos 
   10630   1.4  christos   print line
   10631   1.4  christos }
   10632   1.1  christos 
   10633   1.4  christos _ACAWK
   10634   1.4  christos _ACEOF
   10635   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10636   1.4  christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   10637   1.4  christos   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   10638   1.4  christos else
   10639   1.4  christos   cat
   10640   1.4  christos fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   10641   1.4  christos   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   10642   1.4  christos _ACEOF
   10643   1.1  christos 
   10644   1.4  christos # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   10645   1.4  christos # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   10646   1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   10647   1.1  christos # (actually we leave an empty line to preserve line numbers).
   10648   1.1  christos if test "x$srcdir" = x.; then
   10649   1.4  christos   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   10650   1.4  christos h
   10651   1.4  christos s///
   10652   1.4  christos s/^/:/
   10653   1.4  christos s/[	 ]*$/:/
   10654   1.4  christos s/:\$(srcdir):/:/g
   10655   1.4  christos s/:\${srcdir}:/:/g
   10656   1.4  christos s/:@srcdir@:/:/g
   10657   1.4  christos s/^:*//
   10658   1.1  christos s/:*$//
   10659   1.4  christos x
   10660   1.4  christos s/\(=[	 ]*\).*/\1/
   10661   1.4  christos G
   10662   1.4  christos s/\n//
   10663   1.1  christos s/^[^=]*=[	 ]*$//
   10664   1.1  christos }'
   10665   1.1  christos fi
   10666   1.1  christos 
   10667   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10668   1.1  christos fi # test -n "$CONFIG_FILES"
   10669   1.1  christos 
   10670   1.4  christos # Set up the scripts for CONFIG_HEADERS section.
   10671   1.4  christos # No need to generate them if there are no CONFIG_HEADERS.
   10672   1.4  christos # This happens for instance with `./config.status Makefile'.
   10673   1.4  christos if test -n "$CONFIG_HEADERS"; then
   10674   1.4  christos cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   10675   1.4  christos BEGIN {
   10676   1.4  christos _ACEOF
   10677   1.4  christos 
   10678   1.4  christos # Transform confdefs.h into an awk script `defines.awk', embedded as
   10679   1.4  christos # here-document in config.status, that substitutes the proper values into
   10680   1.4  christos # config.h.in to produce config.h.
   10681   1.4  christos 
   10682   1.4  christos # Create a delimiter string that does not exist in confdefs.h, to ease
   10683   1.4  christos # handling of long lines.
   10684   1.4  christos ac_delim='%!_!# '
   10685   1.4  christos for ac_last_try in false false :; do
   10686   1.4  christos   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   10687   1.4  christos   if test -z "$ac_tt"; then
   10688   1.4  christos     break
   10689   1.4  christos   elif $ac_last_try; then
   10690   1.4  christos     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   10691   1.4  christos   else
   10692   1.4  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   10693   1.4  christos   fi
   10694   1.4  christos done
   10695   1.4  christos 
   10696   1.4  christos # For the awk script, D is an array of macro values keyed by name,
   10697   1.4  christos # likewise P contains macro parameters if any.  Preserve backslash
   10698   1.4  christos # newline sequences.
   10699   1.4  christos 
   10700   1.4  christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   10701   1.4  christos sed -n '
   10702   1.4  christos s/.\{148\}/&'"$ac_delim"'/g
   10703   1.4  christos t rset
   10704   1.4  christos :rset
   10705   1.4  christos s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   10706   1.4  christos t def
   10707   1.4  christos d
   10708   1.4  christos :def
   10709   1.4  christos s/\\$//
   10710   1.4  christos t bsnl
   10711   1.4  christos s/["\\]/\\&/g
   10712   1.4  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   10713   1.4  christos D["\1"]=" \3"/p
   10714   1.4  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   10715   1.4  christos d
   10716   1.4  christos :bsnl
   10717   1.4  christos s/["\\]/\\&/g
   10718   1.4  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   10719   1.4  christos D["\1"]=" \3\\\\\\n"\\/p
   10720   1.4  christos t cont
   10721   1.4  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   10722   1.4  christos t cont
   10723   1.4  christos d
   10724   1.4  christos :cont
   10725   1.4  christos n
   10726   1.4  christos s/.\{148\}/&'"$ac_delim"'/g
   10727   1.4  christos t clear
   10728   1.4  christos :clear
   10729   1.4  christos s/\\$//
   10730   1.4  christos t bsnlc
   10731   1.4  christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
   10732   1.4  christos d
   10733   1.4  christos :bsnlc
   10734   1.4  christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   10735   1.4  christos b cont
   10736   1.4  christos ' <confdefs.h | sed '
   10737   1.4  christos s/'"$ac_delim"'/"\\\
   10738   1.4  christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
   10739   1.4  christos 
   10740   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10741   1.4  christos   for (key in D) D_is_set[key] = 1
   10742   1.4  christos   FS = ""
   10743   1.4  christos }
   10744   1.4  christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   10745   1.4  christos   line = \$ 0
   10746   1.4  christos   split(line, arg, " ")
   10747   1.4  christos   if (arg[1] == "#") {
   10748   1.4  christos     defundef = arg[2]
   10749   1.4  christos     mac1 = arg[3]
   10750   1.4  christos   } else {
   10751   1.4  christos     defundef = substr(arg[1], 2)
   10752   1.4  christos     mac1 = arg[2]
   10753   1.4  christos   }
   10754   1.4  christos   split(mac1, mac2, "(") #)
   10755   1.4  christos   macro = mac2[1]
   10756   1.4  christos   prefix = substr(line, 1, index(line, defundef) - 1)
   10757   1.4  christos   if (D_is_set[macro]) {
   10758   1.4  christos     # Preserve the white space surrounding the "#".
   10759   1.4  christos     print prefix "define", macro P[macro] D[macro]
   10760   1.4  christos     next
   10761   1.4  christos   } else {
   10762   1.4  christos     # Replace #undef with comments.  This is necessary, for example,
   10763   1.4  christos     # in the case of _POSIX_SOURCE, which is predefined and required
   10764   1.4  christos     # on some systems where configure will not decide to define it.
   10765   1.4  christos     if (defundef == "undef") {
   10766   1.4  christos       print "/*", prefix defundef, macro, "*/"
   10767   1.4  christos       next
   10768   1.4  christos     }
   10769   1.4  christos   }
   10770   1.4  christos }
   10771   1.4  christos { print }
   10772   1.4  christos _ACAWK
   10773   1.4  christos _ACEOF
   10774   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10775   1.4  christos   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   10776   1.4  christos fi # test -n "$CONFIG_HEADERS"
   10777   1.4  christos 
   10778   1.1  christos 
   10779   1.4  christos eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   10780   1.4  christos shift
   10781   1.4  christos for ac_tag
   10782   1.1  christos do
   10783   1.1  christos   case $ac_tag in
   10784   1.1  christos   :[FHLC]) ac_mode=$ac_tag; continue;;
   10785   1.1  christos   esac
   10786   1.1  christos   case $ac_mode$ac_tag in
   10787   1.1  christos   :[FHL]*:*);;
   10788   1.4  christos   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   10789   1.1  christos   :[FH]-) ac_tag=-:-;;
   10790   1.1  christos   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   10791   1.1  christos   esac
   10792   1.1  christos   ac_save_IFS=$IFS
   10793   1.1  christos   IFS=:
   10794   1.1  christos   set x $ac_tag
   10795   1.1  christos   IFS=$ac_save_IFS
   10796   1.1  christos   shift
   10797   1.1  christos   ac_file=$1
   10798   1.1  christos   shift
   10799   1.1  christos 
   10800   1.1  christos   case $ac_mode in
   10801   1.1  christos   :L) ac_source=$1;;
   10802   1.1  christos   :[FH])
   10803   1.1  christos     ac_file_inputs=
   10804   1.1  christos     for ac_f
   10805   1.1  christos     do
   10806   1.1  christos       case $ac_f in
   10807   1.4  christos       -) ac_f="$ac_tmp/stdin";;
   10808   1.1  christos       *) # Look for the file first in the build tree, then in the source tree
   10809   1.1  christos 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   10810   1.1  christos 	 # because $ac_f cannot contain `:'.
   10811   1.1  christos 	 test -f "$ac_f" ||
   10812   1.1  christos 	   case $ac_f in
   10813   1.1  christos 	   [\\/$]*) false;;
   10814   1.1  christos 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   10815   1.1  christos 	   esac ||
   10816   1.4  christos 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   10817   1.1  christos       esac
   10818  1.12  christos       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   10819   1.4  christos       as_fn_append ac_file_inputs " '$ac_f'"
   10820   1.1  christos     done
   10821   1.1  christos 
   10822   1.1  christos     # Let's still pretend it is `configure' which instantiates (i.e., don't
   10823   1.1  christos     # use $as_me), people would be surprised to read:
   10824   1.1  christos     #    /* config.h.  Generated by config.status.  */
   10825   1.4  christos     configure_input='Generated from '`
   10826  1.12  christos 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   10827   1.4  christos 	`' by configure.'
   10828   1.1  christos     if test x"$ac_file" != x-; then
   10829   1.1  christos       configure_input="$ac_file.  $configure_input"
   10830  1.12  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   10831  1.12  christos printf "%s\n" "$as_me: creating $ac_file" >&6;}
   10832   1.1  christos     fi
   10833   1.4  christos     # Neutralize special characters interpreted by sed in replacement strings.
   10834   1.4  christos     case $configure_input in #(
   10835   1.4  christos     *\&* | *\|* | *\\* )
   10836  1.12  christos        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   10837   1.4  christos        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   10838   1.4  christos     *) ac_sed_conf_input=$configure_input;;
   10839   1.4  christos     esac
   10840   1.1  christos 
   10841   1.1  christos     case $ac_tag in
   10842   1.4  christos     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   10843   1.4  christos       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   10844   1.1  christos     esac
   10845   1.1  christos     ;;
   10846   1.1  christos   esac
   10847   1.1  christos 
   10848   1.1  christos   ac_dir=`$as_dirname -- "$ac_file" ||
   10849   1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   10850   1.1  christos 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   10851   1.1  christos 	 X"$ac_file" : 'X\(//\)$' \| \
   10852   1.1  christos 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   10853  1.12  christos printf "%s\n" X"$ac_file" |
   10854   1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   10855   1.1  christos 	    s//\1/
   10856   1.1  christos 	    q
   10857   1.1  christos 	  }
   10858   1.1  christos 	  /^X\(\/\/\)[^/].*/{
   10859   1.1  christos 	    s//\1/
   10860   1.1  christos 	    q
   10861   1.1  christos 	  }
   10862   1.1  christos 	  /^X\(\/\/\)$/{
   10863   1.1  christos 	    s//\1/
   10864   1.1  christos 	    q
   10865   1.1  christos 	  }
   10866   1.1  christos 	  /^X\(\/\).*/{
   10867   1.1  christos 	    s//\1/
   10868   1.1  christos 	    q
   10869   1.1  christos 	  }
   10870   1.1  christos 	  s/.*/./; q'`
   10871   1.4  christos   as_dir="$ac_dir"; as_fn_mkdir_p
   10872   1.1  christos   ac_builddir=.
   10873   1.1  christos 
   10874   1.1  christos case "$ac_dir" in
   10875   1.1  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   10876   1.1  christos *)
   10877  1.12  christos   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   10878   1.1  christos   # A ".." for each directory in $ac_dir_suffix.
   10879  1.12  christos   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   10880   1.1  christos   case $ac_top_builddir_sub in
   10881   1.1  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   10882   1.1  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   10883   1.1  christos   esac ;;
   10884   1.1  christos esac
   10885   1.1  christos ac_abs_top_builddir=$ac_pwd
   10886   1.1  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   10887   1.1  christos # for backward compatibility:
   10888   1.1  christos ac_top_builddir=$ac_top_build_prefix
   10889   1.1  christos 
   10890   1.1  christos case $srcdir in
   10891   1.1  christos   .)  # We are building in place.
   10892   1.1  christos     ac_srcdir=.
   10893   1.1  christos     ac_top_srcdir=$ac_top_builddir_sub
   10894   1.1  christos     ac_abs_top_srcdir=$ac_pwd ;;
   10895   1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   10896   1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   10897   1.1  christos     ac_top_srcdir=$srcdir
   10898   1.1  christos     ac_abs_top_srcdir=$srcdir ;;
   10899   1.1  christos   *) # Relative name.
   10900   1.1  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   10901   1.1  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   10902   1.1  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   10903   1.1  christos esac
   10904   1.1  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   10905   1.1  christos 
   10906   1.1  christos 
   10907   1.1  christos   case $ac_mode in
   10908   1.1  christos   :F)
   10909   1.1  christos   #
   10910   1.1  christos   # CONFIG_FILE
   10911   1.1  christos   #
   10912   1.1  christos 
   10913   1.1  christos   case $INSTALL in
   10914   1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   10915   1.1  christos   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   10916   1.1  christos   esac
   10917   1.1  christos _ACEOF
   10918   1.1  christos 
   10919   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10920   1.1  christos # If the template does not know about datarootdir, expand it.
   10921   1.1  christos # FIXME: This hack should be removed a few years after 2.60.
   10922   1.1  christos ac_datarootdir_hack=; ac_datarootdir_seen=
   10923   1.4  christos ac_sed_dataroot='
   10924   1.4  christos /datarootdir/ {
   10925   1.1  christos   p
   10926   1.1  christos   q
   10927   1.1  christos }
   10928   1.1  christos /@datadir@/p
   10929   1.1  christos /@docdir@/p
   10930   1.1  christos /@infodir@/p
   10931   1.1  christos /@localedir@/p
   10932   1.4  christos /@mandir@/p'
   10933   1.4  christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   10934   1.1  christos *datarootdir*) ac_datarootdir_seen=yes;;
   10935   1.1  christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   10936  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   10937  1.12  christos printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   10938   1.1  christos _ACEOF
   10939   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10940   1.1  christos   ac_datarootdir_hack='
   10941   1.1  christos   s&@datadir@&$datadir&g
   10942   1.1  christos   s&@docdir@&$docdir&g
   10943   1.1  christos   s&@infodir@&$infodir&g
   10944   1.1  christos   s&@localedir@&$localedir&g
   10945   1.1  christos   s&@mandir@&$mandir&g
   10946   1.4  christos   s&\\\${datarootdir}&$datarootdir&g' ;;
   10947   1.1  christos esac
   10948   1.1  christos _ACEOF
   10949   1.1  christos 
   10950   1.1  christos # Neutralize VPATH when `$srcdir' = `.'.
   10951   1.1  christos # Shell code in configure.ac might set extrasub.
   10952   1.1  christos # FIXME: do we really want to maintain this feature?
   10953   1.4  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10954   1.4  christos ac_sed_extra="$ac_vpsub
   10955   1.1  christos $extrasub
   10956   1.1  christos _ACEOF
   10957   1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10958   1.1  christos :t
   10959   1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   10960   1.4  christos s|@configure_input@|$ac_sed_conf_input|;t t
   10961   1.1  christos s&@top_builddir@&$ac_top_builddir_sub&;t t
   10962   1.4  christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
   10963   1.1  christos s&@srcdir@&$ac_srcdir&;t t
   10964   1.1  christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
   10965   1.1  christos s&@top_srcdir@&$ac_top_srcdir&;t t
   10966   1.1  christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   10967   1.1  christos s&@builddir@&$ac_builddir&;t t
   10968   1.1  christos s&@abs_builddir@&$ac_abs_builddir&;t t
   10969   1.1  christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   10970   1.1  christos s&@INSTALL@&$ac_INSTALL&;t t
   10971   1.1  christos $ac_datarootdir_hack
   10972   1.4  christos "
   10973   1.4  christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   10974   1.4  christos   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   10975   1.1  christos 
   10976   1.1  christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   10977   1.4  christos   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   10978   1.4  christos   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   10979   1.4  christos       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   10980  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   10981   1.4  christos which seems to be undefined.  Please make sure it is defined" >&5
   10982  1.12  christos printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   10983   1.4  christos which seems to be undefined.  Please make sure it is defined" >&2;}
   10984   1.1  christos 
   10985   1.4  christos   rm -f "$ac_tmp/stdin"
   10986   1.1  christos   case $ac_file in
   10987   1.4  christos   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   10988   1.4  christos   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   10989   1.4  christos   esac \
   10990   1.4  christos   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   10991   1.1  christos  ;;
   10992   1.1  christos   :H)
   10993   1.1  christos   #
   10994   1.1  christos   # CONFIG_HEADER
   10995   1.1  christos   #
   10996   1.1  christos   if test x"$ac_file" != x-; then
   10997   1.4  christos     {
   10998  1.12  christos       printf "%s\n" "/* $configure_input  */" >&1 \
   10999   1.4  christos       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   11000   1.4  christos     } >"$ac_tmp/config.h" \
   11001   1.4  christos       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   11002   1.4  christos     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   11003  1.12  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   11004  1.12  christos printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   11005   1.1  christos     else
   11006   1.4  christos       rm -f "$ac_file"
   11007   1.4  christos       mv "$ac_tmp/config.h" "$ac_file" \
   11008   1.4  christos 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   11009   1.1  christos     fi
   11010   1.1  christos   else
   11011  1.12  christos     printf "%s\n" "/* $configure_input  */" >&1 \
   11012   1.4  christos       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   11013   1.4  christos       || as_fn_error $? "could not create -" "$LINENO" 5
   11014   1.1  christos   fi
   11015   1.1  christos  ;;
   11016   1.1  christos 
   11017  1.12  christos   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   11018  1.12  christos printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
   11019   1.1  christos  ;;
   11020   1.1  christos   esac
   11021   1.1  christos 
   11022   1.1  christos 
   11023   1.1  christos   case $ac_file$ac_mode in
   11024  1.12  christos     ".devel":C) if test -f .devel; then
   11025   1.1  christos 	echo timestamp > stamp-h
   11026  1.11  christos 	cat $srcdir/Makefile-devel-adds >> Makefile
   11027  1.11  christos 	make depend || exit 1
   11028   1.1  christos fi ;;
   11029   1.1  christos 
   11030   1.1  christos   esac
   11031   1.1  christos done # for ac_tag
   11032   1.1  christos 
   11033   1.1  christos 
   11034   1.4  christos as_fn_exit 0
   11035   1.1  christos _ACEOF
   11036   1.1  christos ac_clean_files=$ac_clean_files_save
   11037   1.1  christos 
   11038   1.4  christos test $ac_write_fail = 0 ||
   11039   1.4  christos   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   11040   1.4  christos 
   11041   1.1  christos 
   11042   1.1  christos # configure is writing to config.log, and then calls config.status.
   11043   1.1  christos # config.status does its own redirection, appending to config.log.
   11044   1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   11045   1.1  christos # by configure, so config.status won't be able to write to it; its
   11046   1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   11047   1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   11048   1.1  christos # appended to by config.status.  When coming back to configure, we
   11049   1.1  christos # need to make the FD available again.
   11050   1.1  christos if test "$no_create" != yes; then
   11051   1.1  christos   ac_cs_success=:
   11052   1.1  christos   ac_config_status_args=
   11053   1.1  christos   test "$silent" = yes &&
   11054   1.1  christos     ac_config_status_args="$ac_config_status_args --quiet"
   11055   1.1  christos   exec 5>/dev/null
   11056   1.1  christos   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   11057   1.1  christos   exec 5>>config.log
   11058   1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   11059   1.1  christos   # would make configure fail if this is the last instruction.
   11060   1.4  christos   $ac_cs_success || as_fn_exit 1
   11061   1.4  christos fi
   11062   1.4  christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   11063  1.12  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   11064  1.12  christos printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   11065   1.1  christos fi
   11066   1.1  christos 
   11067   1.1  christos exit 0
   11068