Home | History | Annotate | Line # | Download | only in dist
configure revision 1.12
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.71 for tcpdump 4.99.5.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
      7 # Inc.
      8 #
      9 #
     10 # This configure script is free software; the Free Software Foundation
     11 # gives unlimited permission to copy, distribute and modify it.
     12 ## -------------------- ##
     13 ## M4sh Initialization. ##
     14 ## -------------------- ##
     15 
     16 # Be more Bourne compatible
     17 DUALCASE=1; export DUALCASE # for MKS sh
     18 as_nop=:
     19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     20 then :
     21   emulate sh
     22   NULLCMD=:
     23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     24   # is contrary to our usage.  Disable this feature.
     25   alias -g '${1+"$@"}'='"$@"'
     26   setopt NO_GLOB_SUBST
     27 else $as_nop
     28   case `(set -o) 2>/dev/null` in #(
     29   *posix*) :
     30     set -o posix ;; #(
     31   *) :
     32      ;;
     33 esac
     34 fi
     35 
     36 
     37 
     38 # Reset variables that may have inherited troublesome values from
     39 # the environment.
     40 
     41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
     42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
     43 # side effect of setting IFS to empty, thus disabling word splitting.)
     44 # Quoting is to prevent editors from complaining about space-tab.
     45 as_nl='
     46 '
     47 export as_nl
     48 IFS=" ""	$as_nl"
     49 
     50 PS1='$ '
     51 PS2='> '
     52 PS4='+ '
     53 
     54 # Ensure predictable behavior from utilities with locale-dependent output.
     55 LC_ALL=C
     56 export LC_ALL
     57 LANGUAGE=C
     58 export LANGUAGE
     59 
     60 # We cannot yet rely on "unset" to work, but we need these variables
     61 # to be unset--not just set to an empty or harmless value--now, to
     62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     63 # also avoids known problems related to "unset" and subshell syntax
     64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     66 do eval test \${$as_var+y} \
     67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     68 done
     69 
     70 # Ensure that fds 0, 1, and 2 are open.
     71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     74 
     75 # The user is always right.
     76 if ${PATH_SEPARATOR+false} :; then
     77   PATH_SEPARATOR=:
     78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     80       PATH_SEPARATOR=';'
     81   }
     82 fi
     83 
     84 
     85 # Find who we are.  Look in the path if we contain no directory separator.
     86 as_myself=
     87 case $0 in #((
     88   *[\\/]* ) as_myself=$0 ;;
     89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     90 for as_dir in $PATH
     91 do
     92   IFS=$as_save_IFS
     93   case $as_dir in #(((
     94     '') as_dir=./ ;;
     95     */) ;;
     96     *) as_dir=$as_dir/ ;;
     97   esac
     98     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 
    115 # Use a proper internal environment variable to ensure we don't fall
    116   # into an infinite loop, continuously re-executing ourselves.
    117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    118     _as_can_reexec=no; export _as_can_reexec;
    119     # We cannot yet assume a decent shell, so we have to provide a
    120 # neutralization value for shells without unset; and this also
    121 # works around shells that cannot unset nonexistent variables.
    122 # Preserve -v and -x to the replacement shell.
    123 BASH_ENV=/dev/null
    124 ENV=/dev/null
    125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    126 case $- in # ((((
    127   *v*x* | *x*v* ) as_opts=-vx ;;
    128   *v* ) as_opts=-v ;;
    129   *x* ) as_opts=-x ;;
    130   * ) as_opts= ;;
    131 esac
    132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    133 # Admittedly, this is quite paranoid, since all the known shells bail
    134 # out after a failed `exec'.
    135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    136 exit 255
    137   fi
    138   # We don't want this to propagate to other subprocesses.
    139           { _as_can_reexec=; unset _as_can_reexec;}
    140 if test "x$CONFIG_SHELL" = x; then
    141   as_bourne_compatible="as_nop=:
    142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
    143 then :
    144   emulate sh
    145   NULLCMD=:
    146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    147   # is contrary to our usage.  Disable this feature.
    148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    149   setopt NO_GLOB_SUBST
    150 else \$as_nop
    151   case \`(set -o) 2>/dev/null\` in #(
    152   *posix*) :
    153     set -o posix ;; #(
    154   *) :
    155      ;;
    156 esac
    157 fi
    158 "
    159   as_required="as_fn_return () { (exit \$1); }
    160 as_fn_success () { as_fn_return 0; }
    161 as_fn_failure () { as_fn_return 1; }
    162 as_fn_ret_success () { return 0; }
    163 as_fn_ret_failure () { return 1; }
    164 
    165 exitcode=0
    166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
    171 then :
    172 
    173 else \$as_nop
    174   exitcode=1; echo positional parameters were not saved.
    175 fi
    176 test x\$exitcode = x0 || exit 1
    177 blah=\$(echo \$(echo blah))
    178 test x\"\$blah\" = xblah || exit 1
    179 test -x / || exit 1"
    180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    184 test \$(( 1 + 1 )) = 2 || exit 1"
    185   if (eval "$as_required") 2>/dev/null
    186 then :
    187   as_have_required=yes
    188 else $as_nop
    189   as_have_required=no
    190 fi
    191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    192 then :
    193 
    194 else $as_nop
    195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    196 as_found=false
    197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    198 do
    199   IFS=$as_save_IFS
    200   case $as_dir in #(((
    201     '') as_dir=./ ;;
    202     */) ;;
    203     *) as_dir=$as_dir/ ;;
    204   esac
    205   as_found=:
    206   case $as_dir in #(
    207 	 /*)
    208 	   for as_base in sh bash ksh sh5; do
    209 	     # Try only shells that exist, to save several forks.
    210 	     as_shell=$as_dir$as_base
    211 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    212 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    213 then :
    214   CONFIG_SHELL=$as_shell as_have_required=yes
    215 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    216 then :
    217   break 2
    218 fi
    219 fi
    220 	   done;;
    221        esac
    222   as_found=false
    223 done
    224 IFS=$as_save_IFS
    225 if $as_found
    226 then :
    227 
    228 else $as_nop
    229   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    230 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    231 then :
    232   CONFIG_SHELL=$SHELL as_have_required=yes
    233 fi
    234 fi
    235 
    236 
    237       if test "x$CONFIG_SHELL" != x
    238 then :
    239   export CONFIG_SHELL
    240              # We cannot yet assume a decent shell, so we have to provide a
    241 # neutralization value for shells without unset; and this also
    242 # works around shells that cannot unset nonexistent variables.
    243 # Preserve -v and -x to the replacement shell.
    244 BASH_ENV=/dev/null
    245 ENV=/dev/null
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247 case $- in # ((((
    248   *v*x* | *x*v* ) as_opts=-vx ;;
    249   *v* ) as_opts=-v ;;
    250   *x* ) as_opts=-x ;;
    251   * ) as_opts= ;;
    252 esac
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254 # Admittedly, this is quite paranoid, since all the known shells bail
    255 # out after a failed `exec'.
    256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno
    261 then :
    262   printf "%s\n" "$0: This script requires a shell more modern than all"
    263   printf "%s\n" "$0: the shells that I found on your system."
    264   if test ${ZSH_VERSION+y} ; then
    265     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    266     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    267   else
    268     printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org about your system,
    269 $0: including any error possibly output before this
    270 $0: message. Then install a modern shell, or manually run
    271 $0: the script under such a shell if you do have one."
    272   fi
    273   exit 1
    274 fi
    275 fi
    276 fi
    277 SHELL=${CONFIG_SHELL-/bin/sh}
    278 export SHELL
    279 # Unset more variables known to interfere with behavior of common tools.
    280 CLICOLOR_FORCE= GREP_OPTIONS=
    281 unset CLICOLOR_FORCE GREP_OPTIONS
    282 
    283 ## --------------------- ##
    284 ## M4sh Shell Functions. ##
    285 ## --------------------- ##
    286 # as_fn_unset VAR
    287 # ---------------
    288 # Portably unset VAR.
    289 as_fn_unset ()
    290 {
    291   { eval $1=; unset $1;}
    292 }
    293 as_unset=as_fn_unset
    294 
    295 
    296 # as_fn_set_status STATUS
    297 # -----------------------
    298 # Set $? to STATUS, without forking.
    299 as_fn_set_status ()
    300 {
    301   return $1
    302 } # as_fn_set_status
    303 
    304 # as_fn_exit STATUS
    305 # -----------------
    306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    307 as_fn_exit ()
    308 {
    309   set +e
    310   as_fn_set_status $1
    311   exit $1
    312 } # as_fn_exit
    313 # as_fn_nop
    314 # ---------
    315 # Do nothing but, unlike ":", preserve the value of $?.
    316 as_fn_nop ()
    317 {
    318   return $?
    319 }
    320 as_nop=as_fn_nop
    321 
    322 # as_fn_mkdir_p
    323 # -------------
    324 # Create "$as_dir" as a directory, including parents if necessary.
    325 as_fn_mkdir_p ()
    326 {
    327 
    328   case $as_dir in #(
    329   -*) as_dir=./$as_dir;;
    330   esac
    331   test -d "$as_dir" || eval $as_mkdir_p || {
    332     as_dirs=
    333     while :; do
    334       case $as_dir in #(
    335       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    336       *) as_qdir=$as_dir;;
    337       esac
    338       as_dirs="'$as_qdir' $as_dirs"
    339       as_dir=`$as_dirname -- "$as_dir" ||
    340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    341 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    342 	 X"$as_dir" : 'X\(//\)$' \| \
    343 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    344 printf "%s\n" X"$as_dir" |
    345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    346 	    s//\1/
    347 	    q
    348 	  }
    349 	  /^X\(\/\/\)[^/].*/{
    350 	    s//\1/
    351 	    q
    352 	  }
    353 	  /^X\(\/\/\)$/{
    354 	    s//\1/
    355 	    q
    356 	  }
    357 	  /^X\(\/\).*/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  s/.*/./; q'`
    362       test -d "$as_dir" && break
    363     done
    364     test -z "$as_dirs" || eval "mkdir $as_dirs"
    365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    366 
    367 
    368 } # as_fn_mkdir_p
    369 
    370 # as_fn_executable_p FILE
    371 # -----------------------
    372 # Test if FILE is an executable regular file.
    373 as_fn_executable_p ()
    374 {
    375   test -f "$1" && test -x "$1"
    376 } # as_fn_executable_p
    377 # as_fn_append VAR VALUE
    378 # ----------------------
    379 # Append the text in VALUE to the end of the definition contained in VAR. Take
    380 # advantage of any shell optimizations that allow amortized linear growth over
    381 # repeated appends, instead of the typical quadratic growth present in naive
    382 # implementations.
    383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    384 then :
    385   eval 'as_fn_append ()
    386   {
    387     eval $1+=\$2
    388   }'
    389 else $as_nop
    390   as_fn_append ()
    391   {
    392     eval $1=\$$1\$2
    393   }
    394 fi # as_fn_append
    395 
    396 # as_fn_arith ARG...
    397 # ------------------
    398 # Perform arithmetic evaluation on the ARGs, and store the result in the
    399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    400 # must be portable across $(()) and expr.
    401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    402 then :
    403   eval 'as_fn_arith ()
    404   {
    405     as_val=$(( $* ))
    406   }'
    407 else $as_nop
    408   as_fn_arith ()
    409   {
    410     as_val=`expr "$@" || test $? -eq 1`
    411   }
    412 fi # as_fn_arith
    413 
    414 # as_fn_nop
    415 # ---------
    416 # Do nothing but, unlike ":", preserve the value of $?.
    417 as_fn_nop ()
    418 {
    419   return $?
    420 }
    421 as_nop=as_fn_nop
    422 
    423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    424 # ----------------------------------------
    425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    427 # script with STATUS, using 1 if that was 0.
    428 as_fn_error ()
    429 {
    430   as_status=$1; test $as_status -eq 0 && as_status=1
    431   if test "$4"; then
    432     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    433     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    434   fi
    435   printf "%s\n" "$as_me: error: $2" >&2
    436   as_fn_exit $as_status
    437 } # as_fn_error
    438 
    439 if expr a : '\(a\)' >/dev/null 2>&1 &&
    440    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    441   as_expr=expr
    442 else
    443   as_expr=false
    444 fi
    445 
    446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    447   as_basename=basename
    448 else
    449   as_basename=false
    450 fi
    451 
    452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    453   as_dirname=dirname
    454 else
    455   as_dirname=false
    456 fi
    457 
    458 as_me=`$as_basename -- "$0" ||
    459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    460 	 X"$0" : 'X\(//\)$' \| \
    461 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    462 printf "%s\n" X/"$0" |
    463     sed '/^.*\/\([^/][^/]*\)\/*$/{
    464 	    s//\1/
    465 	    q
    466 	  }
    467 	  /^X\/\(\/\/\)$/{
    468 	    s//\1/
    469 	    q
    470 	  }
    471 	  /^X\/\(\/\).*/{
    472 	    s//\1/
    473 	    q
    474 	  }
    475 	  s/.*/./; q'`
    476 
    477 # Avoid depending upon Character Ranges.
    478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    481 as_cr_digits='0123456789'
    482 as_cr_alnum=$as_cr_Letters$as_cr_digits
    483 
    484 
    485   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    486   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    487   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    488   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    489   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    490   sed -n '
    491     p
    492     /[$]LINENO/=
    493   ' <$as_myself |
    494     sed '
    495       s/[$]LINENO.*/&-/
    496       t lineno
    497       b
    498       :lineno
    499       N
    500       :loop
    501       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    502       t loop
    503       s/-\n.*//
    504     ' >$as_me.lineno &&
    505   chmod +x "$as_me.lineno" ||
    506     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    507 
    508   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    509   # already done that, so ensure we don't try to do so again and fall
    510   # in an infinite loop.  This has already happened in practice.
    511   _as_can_reexec=no; export _as_can_reexec
    512   # Don't try to exec as it changes $[0], causing all sort of problems
    513   # (the dirname of $[0] is not the place where we might find the
    514   # original and so on.  Autoconf is especially sensitive to this).
    515   . "./$as_me.lineno"
    516   # Exit status is that of the last command.
    517   exit
    518 }
    519 
    520 
    521 # Determine whether it's possible to make 'echo' print without a newline.
    522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    523 # for compatibility with existing Makefiles.
    524 ECHO_C= ECHO_N= ECHO_T=
    525 case `echo -n x` in #(((((
    526 -n*)
    527   case `echo 'xy\c'` in
    528   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    529   xy)  ECHO_C='\c';;
    530   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    531        ECHO_T='	';;
    532   esac;;
    533 *)
    534   ECHO_N='-n';;
    535 esac
    536 
    537 # For backward compatibility with old third-party macros, we provide
    538 # the shell variables $as_echo and $as_echo_n.  New code should use
    539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    540 as_echo='printf %s\n'
    541 as_echo_n='printf %s'
    542 
    543 
    544 rm -f conf$$ conf$$.exe conf$$.file
    545 if test -d conf$$.dir; then
    546   rm -f conf$$.dir/conf$$.file
    547 else
    548   rm -f conf$$.dir
    549   mkdir conf$$.dir 2>/dev/null
    550 fi
    551 if (echo >conf$$.file) 2>/dev/null; then
    552   if ln -s conf$$.file conf$$ 2>/dev/null; then
    553     as_ln_s='ln -s'
    554     # ... but there are two gotchas:
    555     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    556     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    557     # In both cases, we have to default to `cp -pR'.
    558     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    559       as_ln_s='cp -pR'
    560   elif ln conf$$.file conf$$ 2>/dev/null; then
    561     as_ln_s=ln
    562   else
    563     as_ln_s='cp -pR'
    564   fi
    565 else
    566   as_ln_s='cp -pR'
    567 fi
    568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    569 rmdir conf$$.dir 2>/dev/null
    570 
    571 if mkdir -p . 2>/dev/null; then
    572   as_mkdir_p='mkdir -p "$as_dir"'
    573 else
    574   test -d ./-p && rmdir ./-p
    575   as_mkdir_p=false
    576 fi
    577 
    578 as_test_x='test -x'
    579 as_executable_p=as_fn_executable_p
    580 
    581 # Sed expression to map a string onto a valid CPP name.
    582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    583 
    584 # Sed expression to map a string onto a valid variable name.
    585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    586 
    587 
    588 test -n "$DJDIR" || exec 7<&0 </dev/null
    589 exec 6>&1
    590 
    591 # Name of the host.
    592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    593 # so uname gets run too.
    594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    595 
    596 #
    597 # Initializations.
    598 #
    599 ac_default_prefix=/usr/local
    600 ac_clean_files=
    601 ac_config_libobj_dir=.
    602 LIBOBJS=
    603 cross_compiling=no
    604 subdirs=
    605 MFLAGS=
    606 MAKEFLAGS=
    607 
    608 # Identity of this package.
    609 PACKAGE_NAME='tcpdump'
    610 PACKAGE_TARNAME='tcpdump'
    611 PACKAGE_VERSION='4.99.5'
    612 PACKAGE_STRING='tcpdump 4.99.5'
    613 PACKAGE_BUGREPORT=''
    614 PACKAGE_URL=''
    615 
    616 ac_unique_file="tcpdump.c"
    617 # Factoring default headers for most tests.
    618 ac_includes_default="\
    619 #include <stddef.h>
    620 #ifdef HAVE_STDIO_H
    621 # include <stdio.h>
    622 #endif
    623 #ifdef HAVE_STDLIB_H
    624 # include <stdlib.h>
    625 #endif
    626 #ifdef HAVE_STRING_H
    627 # include <string.h>
    628 #endif
    629 #ifdef HAVE_INTTYPES_H
    630 # include <inttypes.h>
    631 #endif
    632 #ifdef HAVE_STDINT_H
    633 # include <stdint.h>
    634 #endif
    635 #ifdef HAVE_STRINGS_H
    636 # include <strings.h>
    637 #endif
    638 #ifdef HAVE_SYS_TYPES_H
    639 # include <sys/types.h>
    640 #endif
    641 #ifdef HAVE_SYS_STAT_H
    642 # include <sys/stat.h>
    643 #endif
    644 #ifdef HAVE_UNISTD_H
    645 # include <unistd.h>
    646 #endif"
    647 
    648 ac_header_c_list=
    649 ac_subst_vars='LTLIBOBJS
    650 INSTALL_DATA
    651 INSTALL_SCRIPT
    652 INSTALL_PROGRAM
    653 MAN_MISC_INFO
    654 MAN_FILE_FORMATS
    655 LOCALSRC
    656 V_PCAPDEP
    657 V_INCLS
    658 V_DEFS
    659 V_CCOPT
    660 LIBCRYPTO_LIBS_STATIC
    661 LIBCRYPTO_LIBS
    662 LIBCRYPTO_CFLAGS
    663 MKDEP
    664 DEPENDENCY_CFLAG
    665 AR
    666 RANLIB
    667 PCAP_CONFIG
    668 LIBOBJS
    669 EGREP
    670 GREP
    671 CPP
    672 BREW
    673 PKG_CONFIG_LIBDIR
    674 PKG_CONFIG_PATH
    675 PKG_CONFIG
    676 OBJEXT
    677 EXEEXT
    678 ac_ct_CC
    679 CPPFLAGS
    680 LDFLAGS
    681 CFLAGS
    682 CC
    683 SHLICC2
    684 host_os
    685 host_vendor
    686 host_cpu
    687 host
    688 build_os
    689 build_vendor
    690 build_cpu
    691 build
    692 target_alias
    693 host_alias
    694 build_alias
    695 LIBS
    696 ECHO_T
    697 ECHO_N
    698 ECHO_C
    699 DEFS
    700 mandir
    701 localedir
    702 libdir
    703 psdir
    704 pdfdir
    705 dvidir
    706 htmldir
    707 infodir
    708 docdir
    709 oldincludedir
    710 includedir
    711 runstatedir
    712 localstatedir
    713 sharedstatedir
    714 sysconfdir
    715 datadir
    716 datarootdir
    717 libexecdir
    718 sbindir
    719 bindir
    720 program_transform_name
    721 prefix
    722 exec_prefix
    723 PACKAGE_URL
    724 PACKAGE_BUGREPORT
    725 PACKAGE_STRING
    726 PACKAGE_VERSION
    727 PACKAGE_TARNAME
    728 PACKAGE_NAME
    729 PATH_SEPARATOR
    730 SHELL'
    731 ac_subst_files=''
    732 ac_user_opts='
    733 enable_option_checking
    734 with_gcc
    735 enable_universal
    736 with_smi
    737 enable_instrument_functions
    738 enable_smb
    739 with_user
    740 with_chroot
    741 with_sandbox_capsicum
    742 enable_local_libpcap
    743 with_crypto
    744 with_cap_ng
    745 '
    746       ac_precious_vars='build_alias
    747 host_alias
    748 target_alias
    749 CC
    750 CFLAGS
    751 LDFLAGS
    752 LIBS
    753 CPPFLAGS
    754 PKG_CONFIG
    755 PKG_CONFIG_PATH
    756 PKG_CONFIG_LIBDIR
    757 CPP
    758 LIBCRYPTO_CFLAGS
    759 LIBCRYPTO_LIBS
    760 LIBCRYPTO_LIBS_STATIC'
    761 
    762 
    763 # Initialize some variables set by options.
    764 ac_init_help=
    765 ac_init_version=false
    766 ac_unrecognized_opts=
    767 ac_unrecognized_sep=
    768 # The variables have the same names as the options, with
    769 # dashes changed to underlines.
    770 cache_file=/dev/null
    771 exec_prefix=NONE
    772 no_create=
    773 no_recursion=
    774 prefix=NONE
    775 program_prefix=NONE
    776 program_suffix=NONE
    777 program_transform_name=s,x,x,
    778 silent=
    779 site=
    780 srcdir=
    781 verbose=
    782 x_includes=NONE
    783 x_libraries=NONE
    784 
    785 # Installation directory options.
    786 # These are left unexpanded so users can "make install exec_prefix=/foo"
    787 # and all the variables that are supposed to be based on exec_prefix
    788 # by default will actually change.
    789 # Use braces instead of parens because sh, perl, etc. also accept them.
    790 # (The list follows the same order as the GNU Coding Standards.)
    791 bindir='${exec_prefix}/bin'
    792 sbindir='${exec_prefix}/sbin'
    793 libexecdir='${exec_prefix}/libexec'
    794 datarootdir='${prefix}/share'
    795 datadir='${datarootdir}'
    796 sysconfdir='${prefix}/etc'
    797 sharedstatedir='${prefix}/com'
    798 localstatedir='${prefix}/var'
    799 runstatedir='${localstatedir}/run'
    800 includedir='${prefix}/include'
    801 oldincludedir='/usr/include'
    802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    803 infodir='${datarootdir}/info'
    804 htmldir='${docdir}'
    805 dvidir='${docdir}'
    806 pdfdir='${docdir}'
    807 psdir='${docdir}'
    808 libdir='${exec_prefix}/lib'
    809 localedir='${datarootdir}/locale'
    810 mandir='${datarootdir}/man'
    811 
    812 ac_prev=
    813 ac_dashdash=
    814 for ac_option
    815 do
    816   # If the previous option needs an argument, assign it.
    817   if test -n "$ac_prev"; then
    818     eval $ac_prev=\$ac_option
    819     ac_prev=
    820     continue
    821   fi
    822 
    823   case $ac_option in
    824   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    825   *=)   ac_optarg= ;;
    826   *)    ac_optarg=yes ;;
    827   esac
    828 
    829   case $ac_dashdash$ac_option in
    830   --)
    831     ac_dashdash=yes ;;
    832 
    833   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    834     ac_prev=bindir ;;
    835   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    836     bindir=$ac_optarg ;;
    837 
    838   -build | --build | --buil | --bui | --bu)
    839     ac_prev=build_alias ;;
    840   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    841     build_alias=$ac_optarg ;;
    842 
    843   -cache-file | --cache-file | --cache-fil | --cache-fi \
    844   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    845     ac_prev=cache_file ;;
    846   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    847   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    848     cache_file=$ac_optarg ;;
    849 
    850   --config-cache | -C)
    851     cache_file=config.cache ;;
    852 
    853   -datadir | --datadir | --datadi | --datad)
    854     ac_prev=datadir ;;
    855   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    856     datadir=$ac_optarg ;;
    857 
    858   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    859   | --dataroo | --dataro | --datar)
    860     ac_prev=datarootdir ;;
    861   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    862   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    863     datarootdir=$ac_optarg ;;
    864 
    865   -disable-* | --disable-*)
    866     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    867     # Reject names that are not valid shell variable names.
    868     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    869       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    870     ac_useropt_orig=$ac_useropt
    871     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    872     case $ac_user_opts in
    873       *"
    874 "enable_$ac_useropt"
    875 "*) ;;
    876       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    877 	 ac_unrecognized_sep=', ';;
    878     esac
    879     eval enable_$ac_useropt=no ;;
    880 
    881   -docdir | --docdir | --docdi | --doc | --do)
    882     ac_prev=docdir ;;
    883   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    884     docdir=$ac_optarg ;;
    885 
    886   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    887     ac_prev=dvidir ;;
    888   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    889     dvidir=$ac_optarg ;;
    890 
    891   -enable-* | --enable-*)
    892     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    893     # Reject names that are not valid shell variable names.
    894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    895       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    896     ac_useropt_orig=$ac_useropt
    897     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    898     case $ac_user_opts in
    899       *"
    900 "enable_$ac_useropt"
    901 "*) ;;
    902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    903 	 ac_unrecognized_sep=', ';;
    904     esac
    905     eval enable_$ac_useropt=\$ac_optarg ;;
    906 
    907   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    908   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    909   | --exec | --exe | --ex)
    910     ac_prev=exec_prefix ;;
    911   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    912   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    913   | --exec=* | --exe=* | --ex=*)
    914     exec_prefix=$ac_optarg ;;
    915 
    916   -gas | --gas | --ga | --g)
    917     # Obsolete; use --with-gas.
    918     with_gas=yes ;;
    919 
    920   -help | --help | --hel | --he | -h)
    921     ac_init_help=long ;;
    922   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    923     ac_init_help=recursive ;;
    924   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    925     ac_init_help=short ;;
    926 
    927   -host | --host | --hos | --ho)
    928     ac_prev=host_alias ;;
    929   -host=* | --host=* | --hos=* | --ho=*)
    930     host_alias=$ac_optarg ;;
    931 
    932   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    933     ac_prev=htmldir ;;
    934   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    935   | --ht=*)
    936     htmldir=$ac_optarg ;;
    937 
    938   -includedir | --includedir | --includedi | --included | --include \
    939   | --includ | --inclu | --incl | --inc)
    940     ac_prev=includedir ;;
    941   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    942   | --includ=* | --inclu=* | --incl=* | --inc=*)
    943     includedir=$ac_optarg ;;
    944 
    945   -infodir | --infodir | --infodi | --infod | --info | --inf)
    946     ac_prev=infodir ;;
    947   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    948     infodir=$ac_optarg ;;
    949 
    950   -libdir | --libdir | --libdi | --libd)
    951     ac_prev=libdir ;;
    952   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    953     libdir=$ac_optarg ;;
    954 
    955   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    956   | --libexe | --libex | --libe)
    957     ac_prev=libexecdir ;;
    958   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    959   | --libexe=* | --libex=* | --libe=*)
    960     libexecdir=$ac_optarg ;;
    961 
    962   -localedir | --localedir | --localedi | --localed | --locale)
    963     ac_prev=localedir ;;
    964   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    965     localedir=$ac_optarg ;;
    966 
    967   -localstatedir | --localstatedir | --localstatedi | --localstated \
    968   | --localstate | --localstat | --localsta | --localst | --locals)
    969     ac_prev=localstatedir ;;
    970   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    971   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    972     localstatedir=$ac_optarg ;;
    973 
    974   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    975     ac_prev=mandir ;;
    976   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    977     mandir=$ac_optarg ;;
    978 
    979   -nfp | --nfp | --nf)
    980     # Obsolete; use --without-fp.
    981     with_fp=no ;;
    982 
    983   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    984   | --no-cr | --no-c | -n)
    985     no_create=yes ;;
    986 
    987   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    988   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    989     no_recursion=yes ;;
    990 
    991   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    992   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    993   | --oldin | --oldi | --old | --ol | --o)
    994     ac_prev=oldincludedir ;;
    995   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    996   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    997   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    998     oldincludedir=$ac_optarg ;;
    999 
   1000   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1001     ac_prev=prefix ;;
   1002   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1003     prefix=$ac_optarg ;;
   1004 
   1005   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1006   | --program-pre | --program-pr | --program-p)
   1007     ac_prev=program_prefix ;;
   1008   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1009   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1010     program_prefix=$ac_optarg ;;
   1011 
   1012   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1013   | --program-suf | --program-su | --program-s)
   1014     ac_prev=program_suffix ;;
   1015   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1016   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1017     program_suffix=$ac_optarg ;;
   1018 
   1019   -program-transform-name | --program-transform-name \
   1020   | --program-transform-nam | --program-transform-na \
   1021   | --program-transform-n | --program-transform- \
   1022   | --program-transform | --program-transfor \
   1023   | --program-transfo | --program-transf \
   1024   | --program-trans | --program-tran \
   1025   | --progr-tra | --program-tr | --program-t)
   1026     ac_prev=program_transform_name ;;
   1027   -program-transform-name=* | --program-transform-name=* \
   1028   | --program-transform-nam=* | --program-transform-na=* \
   1029   | --program-transform-n=* | --program-transform-=* \
   1030   | --program-transform=* | --program-transfor=* \
   1031   | --program-transfo=* | --program-transf=* \
   1032   | --program-trans=* | --program-tran=* \
   1033   | --progr-tra=* | --program-tr=* | --program-t=*)
   1034     program_transform_name=$ac_optarg ;;
   1035 
   1036   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1037     ac_prev=pdfdir ;;
   1038   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1039     pdfdir=$ac_optarg ;;
   1040 
   1041   -psdir | --psdir | --psdi | --psd | --ps)
   1042     ac_prev=psdir ;;
   1043   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1044     psdir=$ac_optarg ;;
   1045 
   1046   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1047   | -silent | --silent | --silen | --sile | --sil)
   1048     silent=yes ;;
   1049 
   1050   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1051   | --runstate | --runstat | --runsta | --runst | --runs \
   1052   | --run | --ru | --r)
   1053     ac_prev=runstatedir ;;
   1054   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1055   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1056   | --run=* | --ru=* | --r=*)
   1057     runstatedir=$ac_optarg ;;
   1058 
   1059   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1060     ac_prev=sbindir ;;
   1061   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1062   | --sbi=* | --sb=*)
   1063     sbindir=$ac_optarg ;;
   1064 
   1065   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1066   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1067   | --sharedst | --shareds | --shared | --share | --shar \
   1068   | --sha | --sh)
   1069     ac_prev=sharedstatedir ;;
   1070   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1071   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1072   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1073   | --sha=* | --sh=*)
   1074     sharedstatedir=$ac_optarg ;;
   1075 
   1076   -site | --site | --sit)
   1077     ac_prev=site ;;
   1078   -site=* | --site=* | --sit=*)
   1079     site=$ac_optarg ;;
   1080 
   1081   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1082     ac_prev=srcdir ;;
   1083   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1084     srcdir=$ac_optarg ;;
   1085 
   1086   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1087   | --syscon | --sysco | --sysc | --sys | --sy)
   1088     ac_prev=sysconfdir ;;
   1089   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1090   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1091     sysconfdir=$ac_optarg ;;
   1092 
   1093   -target | --target | --targe | --targ | --tar | --ta | --t)
   1094     ac_prev=target_alias ;;
   1095   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1096     target_alias=$ac_optarg ;;
   1097 
   1098   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1099     verbose=yes ;;
   1100 
   1101   -version | --version | --versio | --versi | --vers | -V)
   1102     ac_init_version=: ;;
   1103 
   1104   -with-* | --with-*)
   1105     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1106     # Reject names that are not valid shell variable names.
   1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1108       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1109     ac_useropt_orig=$ac_useropt
   1110     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1111     case $ac_user_opts in
   1112       *"
   1113 "with_$ac_useropt"
   1114 "*) ;;
   1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1116 	 ac_unrecognized_sep=', ';;
   1117     esac
   1118     eval with_$ac_useropt=\$ac_optarg ;;
   1119 
   1120   -without-* | --without-*)
   1121     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1122     # Reject names that are not valid shell variable names.
   1123     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1124       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1125     ac_useropt_orig=$ac_useropt
   1126     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1127     case $ac_user_opts in
   1128       *"
   1129 "with_$ac_useropt"
   1130 "*) ;;
   1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1132 	 ac_unrecognized_sep=', ';;
   1133     esac
   1134     eval with_$ac_useropt=no ;;
   1135 
   1136   --x)
   1137     # Obsolete; use --with-x.
   1138     with_x=yes ;;
   1139 
   1140   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1141   | --x-incl | --x-inc | --x-in | --x-i)
   1142     ac_prev=x_includes ;;
   1143   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1144   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1145     x_includes=$ac_optarg ;;
   1146 
   1147   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1148   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1149     ac_prev=x_libraries ;;
   1150   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1151   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1152     x_libraries=$ac_optarg ;;
   1153 
   1154   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1155 Try \`$0 --help' for more information"
   1156     ;;
   1157 
   1158   *=*)
   1159     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1160     # Reject names that are not valid shell variable names.
   1161     case $ac_envvar in #(
   1162       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1163       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1164     esac
   1165     eval $ac_envvar=\$ac_optarg
   1166     export $ac_envvar ;;
   1167 
   1168   *)
   1169     # FIXME: should be removed in autoconf 3.0.
   1170     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1171     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1172       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1173     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1174     ;;
   1175 
   1176   esac
   1177 done
   1178 
   1179 if test -n "$ac_prev"; then
   1180   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1181   as_fn_error $? "missing argument to $ac_option"
   1182 fi
   1183 
   1184 if test -n "$ac_unrecognized_opts"; then
   1185   case $enable_option_checking in
   1186     no) ;;
   1187     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1188     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1189   esac
   1190 fi
   1191 
   1192 # Check all directory arguments for consistency.
   1193 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1194 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1195 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1196 		libdir localedir mandir runstatedir
   1197 do
   1198   eval ac_val=\$$ac_var
   1199   # Remove trailing slashes.
   1200   case $ac_val in
   1201     */ )
   1202       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1203       eval $ac_var=\$ac_val;;
   1204   esac
   1205   # Be sure to have absolute directory names.
   1206   case $ac_val in
   1207     [\\/$]* | ?:[\\/]* )  continue;;
   1208     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1209   esac
   1210   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1211 done
   1212 
   1213 # There might be people who depend on the old broken behavior: `$host'
   1214 # used to hold the argument of --host etc.
   1215 # FIXME: To remove some day.
   1216 build=$build_alias
   1217 host=$host_alias
   1218 target=$target_alias
   1219 
   1220 # FIXME: To remove some day.
   1221 if test "x$host_alias" != x; then
   1222   if test "x$build_alias" = x; then
   1223     cross_compiling=maybe
   1224   elif test "x$build_alias" != "x$host_alias"; then
   1225     cross_compiling=yes
   1226   fi
   1227 fi
   1228 
   1229 ac_tool_prefix=
   1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1231 
   1232 test "$silent" = yes && exec 6>/dev/null
   1233 
   1234 
   1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1236 ac_ls_di=`ls -di .` &&
   1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1238   as_fn_error $? "working directory cannot be determined"
   1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1240   as_fn_error $? "pwd does not report name of working directory"
   1241 
   1242 
   1243 # Find the source files, if location was not specified.
   1244 if test -z "$srcdir"; then
   1245   ac_srcdir_defaulted=yes
   1246   # Try the directory containing this script, then the parent directory.
   1247   ac_confdir=`$as_dirname -- "$as_myself" ||
   1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1249 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1250 	 X"$as_myself" : 'X\(//\)$' \| \
   1251 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1252 printf "%s\n" X"$as_myself" |
   1253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1254 	    s//\1/
   1255 	    q
   1256 	  }
   1257 	  /^X\(\/\/\)[^/].*/{
   1258 	    s//\1/
   1259 	    q
   1260 	  }
   1261 	  /^X\(\/\/\)$/{
   1262 	    s//\1/
   1263 	    q
   1264 	  }
   1265 	  /^X\(\/\).*/{
   1266 	    s//\1/
   1267 	    q
   1268 	  }
   1269 	  s/.*/./; q'`
   1270   srcdir=$ac_confdir
   1271   if test ! -r "$srcdir/$ac_unique_file"; then
   1272     srcdir=..
   1273   fi
   1274 else
   1275   ac_srcdir_defaulted=no
   1276 fi
   1277 if test ! -r "$srcdir/$ac_unique_file"; then
   1278   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1279   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1280 fi
   1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1282 ac_abs_confdir=`(
   1283 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1284 	pwd)`
   1285 # When building in place, set srcdir=.
   1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1287   srcdir=.
   1288 fi
   1289 # Remove unnecessary trailing slashes from srcdir.
   1290 # Double slashes in file names in object file debugging info
   1291 # mess up M-x gdb in Emacs.
   1292 case $srcdir in
   1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1294 esac
   1295 for ac_var in $ac_precious_vars; do
   1296   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1297   eval ac_env_${ac_var}_value=\$${ac_var}
   1298   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1299   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1300 done
   1301 
   1302 #
   1303 # Report the --help message.
   1304 #
   1305 if test "$ac_init_help" = "long"; then
   1306   # Omit some internal or obsolete options to make the list less imposing.
   1307   # This message is too long to be a string in the A/UX 3.1 sh.
   1308   cat <<_ACEOF
   1309 \`configure' configures tcpdump 4.99.5 to adapt to many kinds of systems.
   1310 
   1311 Usage: $0 [OPTION]... [VAR=VALUE]...
   1312 
   1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1314 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1315 
   1316 Defaults for the options are specified in brackets.
   1317 
   1318 Configuration:
   1319   -h, --help              display this help and exit
   1320       --help=short        display options specific to this package
   1321       --help=recursive    display the short help of all the included packages
   1322   -V, --version           display version information and exit
   1323   -q, --quiet, --silent   do not print \`checking ...' messages
   1324       --cache-file=FILE   cache test results in FILE [disabled]
   1325   -C, --config-cache      alias for \`--cache-file=config.cache'
   1326   -n, --no-create         do not create output files
   1327       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1328 
   1329 Installation directories:
   1330   --prefix=PREFIX         install architecture-independent files in PREFIX
   1331                           [$ac_default_prefix]
   1332   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1333                           [PREFIX]
   1334 
   1335 By default, \`make install' will install all the files in
   1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1338 for instance \`--prefix=\$HOME'.
   1339 
   1340 For better control, use the options below.
   1341 
   1342 Fine tuning of the installation directories:
   1343   --bindir=DIR            user executables [EPREFIX/bin]
   1344   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1345   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1346   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1347   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1348   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1349   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1350   --libdir=DIR            object code libraries [EPREFIX/lib]
   1351   --includedir=DIR        C header files [PREFIX/include]
   1352   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1353   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1354   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1355   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1356   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1357   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1358   --docdir=DIR            documentation root [DATAROOTDIR/doc/tcpdump]
   1359   --htmldir=DIR           html documentation [DOCDIR]
   1360   --dvidir=DIR            dvi documentation [DOCDIR]
   1361   --pdfdir=DIR            pdf documentation [DOCDIR]
   1362   --psdir=DIR             ps documentation [DOCDIR]
   1363 _ACEOF
   1364 
   1365   cat <<\_ACEOF
   1366 
   1367 System types:
   1368   --build=BUILD     configure for building on BUILD [guessed]
   1369   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1370 _ACEOF
   1371 fi
   1372 
   1373 if test -n "$ac_init_help"; then
   1374   case $ac_init_help in
   1375      short | recursive ) echo "Configuration of tcpdump 4.99.5:";;
   1376    esac
   1377   cat <<\_ACEOF
   1378 
   1379 Optional Features:
   1380   --disable-option-checking  ignore unrecognized --enable/--with options
   1381   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1382   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1383   --disable-universal     don't build universal on macOS
   1384   --enable-instrument-functions
   1385                           enable instrument functions code [default=no]
   1386   --enable-smb            enable possibly-buggy SMB printer [default=no]
   1387   --disable-local-libpcap don't look for a local libpcap [default=check for a
   1388                           local libpcap]
   1389 
   1390 Optional Packages:
   1391   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1392   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1393   --without-gcc           don't use gcc
   1394   --with-smi              link with libsmi (allows to load MIBs on the fly to
   1395                           decode SNMP packets) [default=yes, if available]
   1396   --with-user=USERNAME    drop privileges by default to USERNAME
   1397   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
   1398   --with-sandbox-capsicum use Capsicum security functions [default=yes, if
   1399                           available]
   1400   --with-crypto[=DIR]     use OpenSSL/libressl libcrypto (located in directory
   1401                           DIR, if specified) [default=yes, if available]
   1402   --with-cap-ng           use libcap-ng [default=yes, if available]
   1403 
   1404 Some influential environment variables:
   1405   CC          C compiler command
   1406   CFLAGS      C compiler flags
   1407   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1408               nonstandard directory <lib dir>
   1409   LIBS        libraries to pass to the linker, e.g. -l<library>
   1410   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1411               you have headers in a nonstandard directory <include dir>
   1412   PKG_CONFIG  path to pkg-config utility
   1413   PKG_CONFIG_PATH
   1414               directories to add to pkg-config's search path
   1415   PKG_CONFIG_LIBDIR
   1416               path overriding pkg-config's built-in search path
   1417   CPP         C preprocessor
   1418   LIBCRYPTO_CFLAGS
   1419               C compiler flags for libcrypto, overriding pkg-config
   1420   LIBCRYPTO_LIBS
   1421               linker flags for libcrypto, overriding pkg-config
   1422   LIBCRYPTO_LIBS_STATIC
   1423               static-link linker flags for libcrypto, overriding pkg-config
   1424 
   1425 Use these variables to override the choices made by `configure' or to help
   1426 it to find libraries and programs with nonstandard names/locations.
   1427 
   1428 Report bugs to the package provider.
   1429 _ACEOF
   1430 ac_status=$?
   1431 fi
   1432 
   1433 if test "$ac_init_help" = "recursive"; then
   1434   # If there are subdirs, report their specific --help.
   1435   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1436     test -d "$ac_dir" ||
   1437       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1438       continue
   1439     ac_builddir=.
   1440 
   1441 case "$ac_dir" in
   1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1443 *)
   1444   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1445   # A ".." for each directory in $ac_dir_suffix.
   1446   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1447   case $ac_top_builddir_sub in
   1448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1450   esac ;;
   1451 esac
   1452 ac_abs_top_builddir=$ac_pwd
   1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1454 # for backward compatibility:
   1455 ac_top_builddir=$ac_top_build_prefix
   1456 
   1457 case $srcdir in
   1458   .)  # We are building in place.
   1459     ac_srcdir=.
   1460     ac_top_srcdir=$ac_top_builddir_sub
   1461     ac_abs_top_srcdir=$ac_pwd ;;
   1462   [\\/]* | ?:[\\/]* )  # Absolute name.
   1463     ac_srcdir=$srcdir$ac_dir_suffix;
   1464     ac_top_srcdir=$srcdir
   1465     ac_abs_top_srcdir=$srcdir ;;
   1466   *) # Relative name.
   1467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1468     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1470 esac
   1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1472 
   1473     cd "$ac_dir" || { ac_status=$?; continue; }
   1474     # Check for configure.gnu first; this name is used for a wrapper for
   1475     # Metaconfig's "Configure" on case-insensitive file systems.
   1476     if test -f "$ac_srcdir/configure.gnu"; then
   1477       echo &&
   1478       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1479     elif test -f "$ac_srcdir/configure"; then
   1480       echo &&
   1481       $SHELL "$ac_srcdir/configure" --help=recursive
   1482     else
   1483       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1484     fi || ac_status=$?
   1485     cd "$ac_pwd" || { ac_status=$?; break; }
   1486   done
   1487 fi
   1488 
   1489 test -n "$ac_init_help" && exit $ac_status
   1490 if $ac_init_version; then
   1491   cat <<\_ACEOF
   1492 tcpdump configure 4.99.5
   1493 generated by GNU Autoconf 2.71
   1494 
   1495 Copyright (C) 2021 Free Software Foundation, Inc.
   1496 This configure script is free software; the Free Software Foundation
   1497 gives unlimited permission to copy, distribute and modify it.
   1498 _ACEOF
   1499   exit
   1500 fi
   1501 
   1502 ## ------------------------ ##
   1503 ## Autoconf initialization. ##
   1504 ## ------------------------ ##
   1505 
   1506 # ac_fn_c_try_compile LINENO
   1507 # --------------------------
   1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1509 ac_fn_c_try_compile ()
   1510 {
   1511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1512   rm -f conftest.$ac_objext conftest.beam
   1513   if { { ac_try="$ac_compile"
   1514 case "(($ac_try" in
   1515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1516   *) ac_try_echo=$ac_try;;
   1517 esac
   1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1519 printf "%s\n" "$ac_try_echo"; } >&5
   1520   (eval "$ac_compile") 2>conftest.err
   1521   ac_status=$?
   1522   if test -s conftest.err; then
   1523     grep -v '^ *+' conftest.err >conftest.er1
   1524     cat conftest.er1 >&5
   1525     mv -f conftest.er1 conftest.err
   1526   fi
   1527   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1528   test $ac_status = 0; } && {
   1529 	 test -z "$ac_c_werror_flag" ||
   1530 	 test ! -s conftest.err
   1531        } && test -s conftest.$ac_objext
   1532 then :
   1533   ac_retval=0
   1534 else $as_nop
   1535   printf "%s\n" "$as_me: failed program was:" >&5
   1536 sed 's/^/| /' conftest.$ac_ext >&5
   1537 
   1538 	ac_retval=1
   1539 fi
   1540   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1541   as_fn_set_status $ac_retval
   1542 
   1543 } # ac_fn_c_try_compile
   1544 
   1545 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1546 # -------------------------------------------------------
   1547 # Tests whether HEADER exists and can be compiled using the include files in
   1548 # INCLUDES, setting the cache variable VAR accordingly.
   1549 ac_fn_c_check_header_compile ()
   1550 {
   1551   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1552   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1553 printf %s "checking for $2... " >&6; }
   1554 if eval test \${$3+y}
   1555 then :
   1556   printf %s "(cached) " >&6
   1557 else $as_nop
   1558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1559 /* end confdefs.h.  */
   1560 $4
   1561 #include <$2>
   1562 _ACEOF
   1563 if ac_fn_c_try_compile "$LINENO"
   1564 then :
   1565   eval "$3=yes"
   1566 else $as_nop
   1567   eval "$3=no"
   1568 fi
   1569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1570 fi
   1571 eval ac_res=\$$3
   1572 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1573 printf "%s\n" "$ac_res" >&6; }
   1574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1575 
   1576 } # ac_fn_c_check_header_compile
   1577 
   1578 # ac_fn_c_try_run LINENO
   1579 # ----------------------
   1580 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
   1581 # executables *can* be run.
   1582 ac_fn_c_try_run ()
   1583 {
   1584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1585   if { { ac_try="$ac_link"
   1586 case "(($ac_try" in
   1587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1588   *) ac_try_echo=$ac_try;;
   1589 esac
   1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1591 printf "%s\n" "$ac_try_echo"; } >&5
   1592   (eval "$ac_link") 2>&5
   1593   ac_status=$?
   1594   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1595   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1596   { { case "(($ac_try" in
   1597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1598   *) ac_try_echo=$ac_try;;
   1599 esac
   1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1601 printf "%s\n" "$ac_try_echo"; } >&5
   1602   (eval "$ac_try") 2>&5
   1603   ac_status=$?
   1604   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1605   test $ac_status = 0; }; }
   1606 then :
   1607   ac_retval=0
   1608 else $as_nop
   1609   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
   1610        printf "%s\n" "$as_me: failed program was:" >&5
   1611 sed 's/^/| /' conftest.$ac_ext >&5
   1612 
   1613        ac_retval=$ac_status
   1614 fi
   1615   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1616   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1617   as_fn_set_status $ac_retval
   1618 
   1619 } # ac_fn_c_try_run
   1620 
   1621 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1622 # --------------------------------------------
   1623 # Tries to find the compile-time value of EXPR in a program that includes
   1624 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1625 # computed
   1626 ac_fn_c_compute_int ()
   1627 {
   1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1629   if test "$cross_compiling" = yes; then
   1630     # Depending upon the size, compute the lo and hi bounds.
   1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1632 /* end confdefs.h.  */
   1633 $4
   1634 int
   1635 main (void)
   1636 {
   1637 static int test_array [1 - 2 * !(($2) >= 0)];
   1638 test_array [0] = 0;
   1639 return test_array [0];
   1640 
   1641   ;
   1642   return 0;
   1643 }
   1644 _ACEOF
   1645 if ac_fn_c_try_compile "$LINENO"
   1646 then :
   1647   ac_lo=0 ac_mid=0
   1648   while :; do
   1649     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1650 /* end confdefs.h.  */
   1651 $4
   1652 int
   1653 main (void)
   1654 {
   1655 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1656 test_array [0] = 0;
   1657 return test_array [0];
   1658 
   1659   ;
   1660   return 0;
   1661 }
   1662 _ACEOF
   1663 if ac_fn_c_try_compile "$LINENO"
   1664 then :
   1665   ac_hi=$ac_mid; break
   1666 else $as_nop
   1667   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1668 			if test $ac_lo -le $ac_mid; then
   1669 			  ac_lo= ac_hi=
   1670 			  break
   1671 			fi
   1672 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1673 fi
   1674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1675   done
   1676 else $as_nop
   1677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1678 /* end confdefs.h.  */
   1679 $4
   1680 int
   1681 main (void)
   1682 {
   1683 static int test_array [1 - 2 * !(($2) < 0)];
   1684 test_array [0] = 0;
   1685 return test_array [0];
   1686 
   1687   ;
   1688   return 0;
   1689 }
   1690 _ACEOF
   1691 if ac_fn_c_try_compile "$LINENO"
   1692 then :
   1693   ac_hi=-1 ac_mid=-1
   1694   while :; do
   1695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1696 /* end confdefs.h.  */
   1697 $4
   1698 int
   1699 main (void)
   1700 {
   1701 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   1702 test_array [0] = 0;
   1703 return test_array [0];
   1704 
   1705   ;
   1706   return 0;
   1707 }
   1708 _ACEOF
   1709 if ac_fn_c_try_compile "$LINENO"
   1710 then :
   1711   ac_lo=$ac_mid; break
   1712 else $as_nop
   1713   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   1714 			if test $ac_mid -le $ac_hi; then
   1715 			  ac_lo= ac_hi=
   1716 			  break
   1717 			fi
   1718 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   1719 fi
   1720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1721   done
   1722 else $as_nop
   1723   ac_lo= ac_hi=
   1724 fi
   1725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1726 fi
   1727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1728 # Binary search between lo and hi bounds.
   1729 while test "x$ac_lo" != "x$ac_hi"; do
   1730   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   1731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1732 /* end confdefs.h.  */
   1733 $4
   1734 int
   1735 main (void)
   1736 {
   1737 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1738 test_array [0] = 0;
   1739 return test_array [0];
   1740 
   1741   ;
   1742   return 0;
   1743 }
   1744 _ACEOF
   1745 if ac_fn_c_try_compile "$LINENO"
   1746 then :
   1747   ac_hi=$ac_mid
   1748 else $as_nop
   1749   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   1750 fi
   1751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1752 done
   1753 case $ac_lo in #((
   1754 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   1755 '') ac_retval=1 ;;
   1756 esac
   1757   else
   1758     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1759 /* end confdefs.h.  */
   1760 $4
   1761 static long int longval (void) { return $2; }
   1762 static unsigned long int ulongval (void) { return $2; }
   1763 #include <stdio.h>
   1764 #include <stdlib.h>
   1765 int
   1766 main (void)
   1767 {
   1768 
   1769   FILE *f = fopen ("conftest.val", "w");
   1770   if (! f)
   1771     return 1;
   1772   if (($2) < 0)
   1773     {
   1774       long int i = longval ();
   1775       if (i != ($2))
   1776 	return 1;
   1777       fprintf (f, "%ld", i);
   1778     }
   1779   else
   1780     {
   1781       unsigned long int i = ulongval ();
   1782       if (i != ($2))
   1783 	return 1;
   1784       fprintf (f, "%lu", i);
   1785     }
   1786   /* Do not output a trailing newline, as this causes \r\n confusion
   1787      on some platforms.  */
   1788   return ferror (f) || fclose (f) != 0;
   1789 
   1790   ;
   1791   return 0;
   1792 }
   1793 _ACEOF
   1794 if ac_fn_c_try_run "$LINENO"
   1795 then :
   1796   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   1797 else $as_nop
   1798   ac_retval=1
   1799 fi
   1800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   1801   conftest.$ac_objext conftest.beam conftest.$ac_ext
   1802 rm -f conftest.val
   1803 
   1804   fi
   1805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1806   as_fn_set_status $ac_retval
   1807 
   1808 } # ac_fn_c_compute_int
   1809 
   1810 # ac_fn_c_try_link LINENO
   1811 # -----------------------
   1812 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1813 ac_fn_c_try_link ()
   1814 {
   1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1816   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1817   if { { ac_try="$ac_link"
   1818 case "(($ac_try" in
   1819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1820   *) ac_try_echo=$ac_try;;
   1821 esac
   1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1823 printf "%s\n" "$ac_try_echo"; } >&5
   1824   (eval "$ac_link") 2>conftest.err
   1825   ac_status=$?
   1826   if test -s conftest.err; then
   1827     grep -v '^ *+' conftest.err >conftest.er1
   1828     cat conftest.er1 >&5
   1829     mv -f conftest.er1 conftest.err
   1830   fi
   1831   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1832   test $ac_status = 0; } && {
   1833 	 test -z "$ac_c_werror_flag" ||
   1834 	 test ! -s conftest.err
   1835        } && test -s conftest$ac_exeext && {
   1836 	 test "$cross_compiling" = yes ||
   1837 	 test -x conftest$ac_exeext
   1838        }
   1839 then :
   1840   ac_retval=0
   1841 else $as_nop
   1842   printf "%s\n" "$as_me: failed program was:" >&5
   1843 sed 's/^/| /' conftest.$ac_ext >&5
   1844 
   1845 	ac_retval=1
   1846 fi
   1847   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1848   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1849   # interfere with the next link command; also delete a directory that is
   1850   # left behind by Apple's compiler.  We do this before executing the actions.
   1851   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1852   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1853   as_fn_set_status $ac_retval
   1854 
   1855 } # ac_fn_c_try_link
   1856 
   1857 # ac_fn_c_check_func LINENO FUNC VAR
   1858 # ----------------------------------
   1859 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1860 ac_fn_c_check_func ()
   1861 {
   1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1863   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1864 printf %s "checking for $2... " >&6; }
   1865 if eval test \${$3+y}
   1866 then :
   1867   printf %s "(cached) " >&6
   1868 else $as_nop
   1869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1870 /* end confdefs.h.  */
   1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1873 #define $2 innocuous_$2
   1874 
   1875 /* System header to define __stub macros and hopefully few prototypes,
   1876    which can conflict with char $2 (); below.  */
   1877 
   1878 #include <limits.h>
   1879 #undef $2
   1880 
   1881 /* Override any GCC internal prototype to avoid an error.
   1882    Use char because int might match the return type of a GCC
   1883    builtin and then its argument prototype would still apply.  */
   1884 #ifdef __cplusplus
   1885 extern "C"
   1886 #endif
   1887 char $2 ();
   1888 /* The GNU C library defines this for functions which it implements
   1889     to always fail with ENOSYS.  Some functions are actually named
   1890     something starting with __ and the normal name is an alias.  */
   1891 #if defined __stub_$2 || defined __stub___$2
   1892 choke me
   1893 #endif
   1894 
   1895 int
   1896 main (void)
   1897 {
   1898 return $2 ();
   1899   ;
   1900   return 0;
   1901 }
   1902 _ACEOF
   1903 if ac_fn_c_try_link "$LINENO"
   1904 then :
   1905   eval "$3=yes"
   1906 else $as_nop
   1907   eval "$3=no"
   1908 fi
   1909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1910     conftest$ac_exeext conftest.$ac_ext
   1911 fi
   1912 eval ac_res=\$$3
   1913 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1914 printf "%s\n" "$ac_res" >&6; }
   1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1916 
   1917 } # ac_fn_c_check_func
   1918 
   1919 # ac_fn_c_try_cpp LINENO
   1920 # ----------------------
   1921 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1922 ac_fn_c_try_cpp ()
   1923 {
   1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1925   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1926 case "(($ac_try" in
   1927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1928   *) ac_try_echo=$ac_try;;
   1929 esac
   1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1931 printf "%s\n" "$ac_try_echo"; } >&5
   1932   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1933   ac_status=$?
   1934   if test -s conftest.err; then
   1935     grep -v '^ *+' conftest.err >conftest.er1
   1936     cat conftest.er1 >&5
   1937     mv -f conftest.er1 conftest.err
   1938   fi
   1939   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1940   test $ac_status = 0; } > conftest.i && {
   1941 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1942 	 test ! -s conftest.err
   1943        }
   1944 then :
   1945   ac_retval=0
   1946 else $as_nop
   1947   printf "%s\n" "$as_me: failed program was:" >&5
   1948 sed 's/^/| /' conftest.$ac_ext >&5
   1949 
   1950     ac_retval=1
   1951 fi
   1952   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1953   as_fn_set_status $ac_retval
   1954 
   1955 } # ac_fn_c_try_cpp
   1956 
   1957 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
   1958 # ------------------------------------------------------------------
   1959 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1960 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
   1961 ac_fn_check_decl ()
   1962 {
   1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1964   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1966 printf %s "checking whether $as_decl_name is declared... " >&6; }
   1967 if eval test \${$3+y}
   1968 then :
   1969   printf %s "(cached) " >&6
   1970 else $as_nop
   1971   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1972   eval ac_save_FLAGS=\$$6
   1973   as_fn_append $6 " $5"
   1974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1975 /* end confdefs.h.  */
   1976 $4
   1977 int
   1978 main (void)
   1979 {
   1980 #ifndef $as_decl_name
   1981 #ifdef __cplusplus
   1982   (void) $as_decl_use;
   1983 #else
   1984   (void) $as_decl_name;
   1985 #endif
   1986 #endif
   1987 
   1988   ;
   1989   return 0;
   1990 }
   1991 _ACEOF
   1992 if ac_fn_c_try_compile "$LINENO"
   1993 then :
   1994   eval "$3=yes"
   1995 else $as_nop
   1996   eval "$3=no"
   1997 fi
   1998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1999   eval $6=\$ac_save_FLAGS
   2000 
   2001 fi
   2002 eval ac_res=\$$3
   2003 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2004 printf "%s\n" "$ac_res" >&6; }
   2005   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2006 
   2007 } # ac_fn_check_decl
   2008 
   2009 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2010 # -------------------------------------------
   2011 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2012 # variable VAR accordingly.
   2013 ac_fn_c_check_type ()
   2014 {
   2015   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2017 printf %s "checking for $2... " >&6; }
   2018 if eval test \${$3+y}
   2019 then :
   2020   printf %s "(cached) " >&6
   2021 else $as_nop
   2022   eval "$3=no"
   2023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2024 /* end confdefs.h.  */
   2025 $4
   2026 int
   2027 main (void)
   2028 {
   2029 if (sizeof ($2))
   2030 	 return 0;
   2031   ;
   2032   return 0;
   2033 }
   2034 _ACEOF
   2035 if ac_fn_c_try_compile "$LINENO"
   2036 then :
   2037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2038 /* end confdefs.h.  */
   2039 $4
   2040 int
   2041 main (void)
   2042 {
   2043 if (sizeof (($2)))
   2044 	    return 0;
   2045   ;
   2046   return 0;
   2047 }
   2048 _ACEOF
   2049 if ac_fn_c_try_compile "$LINENO"
   2050 then :
   2051 
   2052 else $as_nop
   2053   eval "$3=yes"
   2054 fi
   2055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2056 fi
   2057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2058 fi
   2059 eval ac_res=\$$3
   2060 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2061 printf "%s\n" "$ac_res" >&6; }
   2062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2063 
   2064 } # ac_fn_c_check_type
   2065 ac_configure_args_raw=
   2066 for ac_arg
   2067 do
   2068   case $ac_arg in
   2069   *\'*)
   2070     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2071   esac
   2072   as_fn_append ac_configure_args_raw " '$ac_arg'"
   2073 done
   2074 
   2075 case $ac_configure_args_raw in
   2076   *$as_nl*)
   2077     ac_safe_unquote= ;;
   2078   *)
   2079     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   2080     ac_unsafe_a="$ac_unsafe_z#~"
   2081     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   2082     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   2083 esac
   2084 
   2085 cat >config.log <<_ACEOF
   2086 This file contains any messages produced by compilers while
   2087 running configure, to aid debugging if configure makes a mistake.
   2088 
   2089 It was created by tcpdump $as_me 4.99.5, which was
   2090 generated by GNU Autoconf 2.71.  Invocation command line was
   2091 
   2092   $ $0$ac_configure_args_raw
   2093 
   2094 _ACEOF
   2095 exec 5>>config.log
   2096 {
   2097 cat <<_ASUNAME
   2098 ## --------- ##
   2099 ## Platform. ##
   2100 ## --------- ##
   2101 
   2102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2107 
   2108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2109 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2110 
   2111 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2112 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2114 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2115 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2116 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2117 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2118 
   2119 _ASUNAME
   2120 
   2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2122 for as_dir in $PATH
   2123 do
   2124   IFS=$as_save_IFS
   2125   case $as_dir in #(((
   2126     '') as_dir=./ ;;
   2127     */) ;;
   2128     *) as_dir=$as_dir/ ;;
   2129   esac
   2130     printf "%s\n" "PATH: $as_dir"
   2131   done
   2132 IFS=$as_save_IFS
   2133 
   2134 } >&5
   2135 
   2136 cat >&5 <<_ACEOF
   2137 
   2138 
   2139 ## ----------- ##
   2140 ## Core tests. ##
   2141 ## ----------- ##
   2142 
   2143 _ACEOF
   2144 
   2145 
   2146 # Keep a trace of the command line.
   2147 # Strip out --no-create and --no-recursion so they do not pile up.
   2148 # Strip out --silent because we don't want to record it for future runs.
   2149 # Also quote any args containing shell meta-characters.
   2150 # Make two passes to allow for proper duplicate-argument suppression.
   2151 ac_configure_args=
   2152 ac_configure_args0=
   2153 ac_configure_args1=
   2154 ac_must_keep_next=false
   2155 for ac_pass in 1 2
   2156 do
   2157   for ac_arg
   2158   do
   2159     case $ac_arg in
   2160     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2161     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2162     | -silent | --silent | --silen | --sile | --sil)
   2163       continue ;;
   2164     *\'*)
   2165       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2166     esac
   2167     case $ac_pass in
   2168     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2169     2)
   2170       as_fn_append ac_configure_args1 " '$ac_arg'"
   2171       if test $ac_must_keep_next = true; then
   2172 	ac_must_keep_next=false # Got value, back to normal.
   2173       else
   2174 	case $ac_arg in
   2175 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2176 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2177 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2178 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2179 	    case "$ac_configure_args0 " in
   2180 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2181 	    esac
   2182 	    ;;
   2183 	  -* ) ac_must_keep_next=true ;;
   2184 	esac
   2185       fi
   2186       as_fn_append ac_configure_args " '$ac_arg'"
   2187       ;;
   2188     esac
   2189   done
   2190 done
   2191 { ac_configure_args0=; unset ac_configure_args0;}
   2192 { ac_configure_args1=; unset ac_configure_args1;}
   2193 
   2194 # When interrupted or exit'd, cleanup temporary files, and complete
   2195 # config.log.  We remove comments because anyway the quotes in there
   2196 # would cause problems or look ugly.
   2197 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2199 trap 'exit_status=$?
   2200   # Sanitize IFS.
   2201   IFS=" ""	$as_nl"
   2202   # Save into config.log some information that might help in debugging.
   2203   {
   2204     echo
   2205 
   2206     printf "%s\n" "## ---------------- ##
   2207 ## Cache variables. ##
   2208 ## ---------------- ##"
   2209     echo
   2210     # The following way of writing the cache mishandles newlines in values,
   2211 (
   2212   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2213     eval ac_val=\$$ac_var
   2214     case $ac_val in #(
   2215     *${as_nl}*)
   2216       case $ac_var in #(
   2217       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2218 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2219       esac
   2220       case $ac_var in #(
   2221       _ | IFS | as_nl) ;; #(
   2222       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2223       *) { eval $ac_var=; unset $ac_var;} ;;
   2224       esac ;;
   2225     esac
   2226   done
   2227   (set) 2>&1 |
   2228     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2229     *${as_nl}ac_space=\ *)
   2230       sed -n \
   2231 	"s/'\''/'\''\\\\'\'''\''/g;
   2232 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2233       ;; #(
   2234     *)
   2235       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2236       ;;
   2237     esac |
   2238     sort
   2239 )
   2240     echo
   2241 
   2242     printf "%s\n" "## ----------------- ##
   2243 ## Output variables. ##
   2244 ## ----------------- ##"
   2245     echo
   2246     for ac_var in $ac_subst_vars
   2247     do
   2248       eval ac_val=\$$ac_var
   2249       case $ac_val in
   2250       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2251       esac
   2252       printf "%s\n" "$ac_var='\''$ac_val'\''"
   2253     done | sort
   2254     echo
   2255 
   2256     if test -n "$ac_subst_files"; then
   2257       printf "%s\n" "## ------------------- ##
   2258 ## File substitutions. ##
   2259 ## ------------------- ##"
   2260       echo
   2261       for ac_var in $ac_subst_files
   2262       do
   2263 	eval ac_val=\$$ac_var
   2264 	case $ac_val in
   2265 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2266 	esac
   2267 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   2268       done | sort
   2269       echo
   2270     fi
   2271 
   2272     if test -s confdefs.h; then
   2273       printf "%s\n" "## ----------- ##
   2274 ## confdefs.h. ##
   2275 ## ----------- ##"
   2276       echo
   2277       cat confdefs.h
   2278       echo
   2279     fi
   2280     test "$ac_signal" != 0 &&
   2281       printf "%s\n" "$as_me: caught signal $ac_signal"
   2282     printf "%s\n" "$as_me: exit $exit_status"
   2283   } >&5
   2284   rm -f core *.core core.conftest.* &&
   2285     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2286     exit $exit_status
   2287 ' 0
   2288 for ac_signal in 1 2 13 15; do
   2289   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2290 done
   2291 ac_signal=0
   2292 
   2293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2294 rm -f -r conftest* confdefs.h
   2295 
   2296 printf "%s\n" "/* confdefs.h */" > confdefs.h
   2297 
   2298 # Predefined preprocessor variables.
   2299 
   2300 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2301 
   2302 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2303 
   2304 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2305 
   2306 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2307 
   2308 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2309 
   2310 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2311 
   2312 
   2313 # Let the site file select an alternate cache file if it wants to.
   2314 # Prefer an explicitly selected file to automatically selected ones.
   2315 if test -n "$CONFIG_SITE"; then
   2316   ac_site_files="$CONFIG_SITE"
   2317 elif test "x$prefix" != xNONE; then
   2318   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2319 else
   2320   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2321 fi
   2322 
   2323 for ac_site_file in $ac_site_files
   2324 do
   2325   case $ac_site_file in #(
   2326   */*) :
   2327      ;; #(
   2328   *) :
   2329     ac_site_file=./$ac_site_file ;;
   2330 esac
   2331   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2332     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2333 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2334     sed 's/^/| /' "$ac_site_file" >&5
   2335     . "$ac_site_file" \
   2336       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2337 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2338 as_fn_error $? "failed to load site script $ac_site_file
   2339 See \`config.log' for more details" "$LINENO" 5; }
   2340   fi
   2341 done
   2342 
   2343 if test -r "$cache_file"; then
   2344   # Some versions of bash will fail to source /dev/null (special files
   2345   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2346   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2347     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2348 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2349     case $cache_file in
   2350       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2351       *)                      . "./$cache_file";;
   2352     esac
   2353   fi
   2354 else
   2355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2356 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2357   >$cache_file
   2358 fi
   2359 
   2360 # Test code for whether the C compiler supports C89 (global declarations)
   2361 ac_c_conftest_c89_globals='
   2362 /* Does the compiler advertise C89 conformance?
   2363    Do not test the value of __STDC__, because some compilers set it to 0
   2364    while being otherwise adequately conformant. */
   2365 #if !defined __STDC__
   2366 # error "Compiler does not advertise C89 conformance"
   2367 #endif
   2368 
   2369 #include <stddef.h>
   2370 #include <stdarg.h>
   2371 struct stat;
   2372 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2373 struct buf { int x; };
   2374 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2375 static char *e (p, i)
   2376      char **p;
   2377      int i;
   2378 {
   2379   return p[i];
   2380 }
   2381 static char *f (char * (*g) (char **, int), char **p, ...)
   2382 {
   2383   char *s;
   2384   va_list v;
   2385   va_start (v,p);
   2386   s = g (p, va_arg (v,int));
   2387   va_end (v);
   2388   return s;
   2389 }
   2390 
   2391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2392    function prototypes and stuff, but not \xHH hex character constants.
   2393    These do not provoke an error unfortunately, instead are silently treated
   2394    as an "x".  The following induces an error, until -std is added to get
   2395    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2396    array size at least.  It is necessary to write \x00 == 0 to get something
   2397    that is true only with -std.  */
   2398 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2399 
   2400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2401    inside strings and character constants.  */
   2402 #define FOO(x) '\''x'\''
   2403 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2404 
   2405 int test (int i, double x);
   2406 struct s1 {int (*f) (int a);};
   2407 struct s2 {int (*f) (double a);};
   2408 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2409                int, int);'
   2410 
   2411 # Test code for whether the C compiler supports C89 (body of main).
   2412 ac_c_conftest_c89_main='
   2413 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2414 '
   2415 
   2416 # Test code for whether the C compiler supports C99 (global declarations)
   2417 ac_c_conftest_c99_globals='
   2418 // Does the compiler advertise C99 conformance?
   2419 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2420 # error "Compiler does not advertise C99 conformance"
   2421 #endif
   2422 
   2423 #include <stdbool.h>
   2424 extern int puts (const char *);
   2425 extern int printf (const char *, ...);
   2426 extern int dprintf (int, const char *, ...);
   2427 extern void *malloc (size_t);
   2428 
   2429 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2430 // dprintf is used instead of fprintf to avoid needing to declare
   2431 // FILE and stderr.
   2432 #define debug(...) dprintf (2, __VA_ARGS__)
   2433 #define showlist(...) puts (#__VA_ARGS__)
   2434 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2435 static void
   2436 test_varargs_macros (void)
   2437 {
   2438   int x = 1234;
   2439   int y = 5678;
   2440   debug ("Flag");
   2441   debug ("X = %d\n", x);
   2442   showlist (The first, second, and third items.);
   2443   report (x>y, "x is %d but y is %d", x, y);
   2444 }
   2445 
   2446 // Check long long types.
   2447 #define BIG64 18446744073709551615ull
   2448 #define BIG32 4294967295ul
   2449 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2450 #if !BIG_OK
   2451   #error "your preprocessor is broken"
   2452 #endif
   2453 #if BIG_OK
   2454 #else
   2455   #error "your preprocessor is broken"
   2456 #endif
   2457 static long long int bignum = -9223372036854775807LL;
   2458 static unsigned long long int ubignum = BIG64;
   2459 
   2460 struct incomplete_array
   2461 {
   2462   int datasize;
   2463   double data[];
   2464 };
   2465 
   2466 struct named_init {
   2467   int number;
   2468   const wchar_t *name;
   2469   double average;
   2470 };
   2471 
   2472 typedef const char *ccp;
   2473 
   2474 static inline int
   2475 test_restrict (ccp restrict text)
   2476 {
   2477   // See if C++-style comments work.
   2478   // Iterate through items via the restricted pointer.
   2479   // Also check for declarations in for loops.
   2480   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2481     continue;
   2482   return 0;
   2483 }
   2484 
   2485 // Check varargs and va_copy.
   2486 static bool
   2487 test_varargs (const char *format, ...)
   2488 {
   2489   va_list args;
   2490   va_start (args, format);
   2491   va_list args_copy;
   2492   va_copy (args_copy, args);
   2493 
   2494   const char *str = "";
   2495   int number = 0;
   2496   float fnumber = 0;
   2497 
   2498   while (*format)
   2499     {
   2500       switch (*format++)
   2501 	{
   2502 	case '\''s'\'': // string
   2503 	  str = va_arg (args_copy, const char *);
   2504 	  break;
   2505 	case '\''d'\'': // int
   2506 	  number = va_arg (args_copy, int);
   2507 	  break;
   2508 	case '\''f'\'': // float
   2509 	  fnumber = va_arg (args_copy, double);
   2510 	  break;
   2511 	default:
   2512 	  break;
   2513 	}
   2514     }
   2515   va_end (args_copy);
   2516   va_end (args);
   2517 
   2518   return *str && number && fnumber;
   2519 }
   2520 '
   2521 
   2522 # Test code for whether the C compiler supports C99 (body of main).
   2523 ac_c_conftest_c99_main='
   2524   // Check bool.
   2525   _Bool success = false;
   2526   success |= (argc != 0);
   2527 
   2528   // Check restrict.
   2529   if (test_restrict ("String literal") == 0)
   2530     success = true;
   2531   char *restrict newvar = "Another string";
   2532 
   2533   // Check varargs.
   2534   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2535   test_varargs_macros ();
   2536 
   2537   // Check flexible array members.
   2538   struct incomplete_array *ia =
   2539     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2540   ia->datasize = 10;
   2541   for (int i = 0; i < ia->datasize; ++i)
   2542     ia->data[i] = i * 1.234;
   2543 
   2544   // Check named initializers.
   2545   struct named_init ni = {
   2546     .number = 34,
   2547     .name = L"Test wide string",
   2548     .average = 543.34343,
   2549   };
   2550 
   2551   ni.number = 58;
   2552 
   2553   int dynamic_array[ni.number];
   2554   dynamic_array[0] = argv[0][0];
   2555   dynamic_array[ni.number - 1] = 543;
   2556 
   2557   // work around unused variable warnings
   2558   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2559 	 || dynamic_array[ni.number - 1] != 543);
   2560 '
   2561 
   2562 # Test code for whether the C compiler supports C11 (global declarations)
   2563 ac_c_conftest_c11_globals='
   2564 // Does the compiler advertise C11 conformance?
   2565 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2566 # error "Compiler does not advertise C11 conformance"
   2567 #endif
   2568 
   2569 // Check _Alignas.
   2570 char _Alignas (double) aligned_as_double;
   2571 char _Alignas (0) no_special_alignment;
   2572 extern char aligned_as_int;
   2573 char _Alignas (0) _Alignas (int) aligned_as_int;
   2574 
   2575 // Check _Alignof.
   2576 enum
   2577 {
   2578   int_alignment = _Alignof (int),
   2579   int_array_alignment = _Alignof (int[100]),
   2580   char_alignment = _Alignof (char)
   2581 };
   2582 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2583 
   2584 // Check _Noreturn.
   2585 int _Noreturn does_not_return (void) { for (;;) continue; }
   2586 
   2587 // Check _Static_assert.
   2588 struct test_static_assert
   2589 {
   2590   int x;
   2591   _Static_assert (sizeof (int) <= sizeof (long int),
   2592                   "_Static_assert does not work in struct");
   2593   long int y;
   2594 };
   2595 
   2596 // Check UTF-8 literals.
   2597 #define u8 syntax error!
   2598 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2599 
   2600 // Check duplicate typedefs.
   2601 typedef long *long_ptr;
   2602 typedef long int *long_ptr;
   2603 typedef long_ptr long_ptr;
   2604 
   2605 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2606 struct anonymous
   2607 {
   2608   union {
   2609     struct { int i; int j; };
   2610     struct { int k; long int l; } w;
   2611   };
   2612   int m;
   2613 } v1;
   2614 '
   2615 
   2616 # Test code for whether the C compiler supports C11 (body of main).
   2617 ac_c_conftest_c11_main='
   2618   _Static_assert ((offsetof (struct anonymous, i)
   2619 		   == offsetof (struct anonymous, w.k)),
   2620 		  "Anonymous union alignment botch");
   2621   v1.i = 2;
   2622   v1.w.k = 5;
   2623   ok |= v1.i != 5;
   2624 '
   2625 
   2626 # Test code for whether the C compiler supports C11 (complete).
   2627 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2628 ${ac_c_conftest_c99_globals}
   2629 ${ac_c_conftest_c11_globals}
   2630 
   2631 int
   2632 main (int argc, char **argv)
   2633 {
   2634   int ok = 0;
   2635   ${ac_c_conftest_c89_main}
   2636   ${ac_c_conftest_c99_main}
   2637   ${ac_c_conftest_c11_main}
   2638   return ok;
   2639 }
   2640 "
   2641 
   2642 # Test code for whether the C compiler supports C99 (complete).
   2643 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2644 ${ac_c_conftest_c99_globals}
   2645 
   2646 int
   2647 main (int argc, char **argv)
   2648 {
   2649   int ok = 0;
   2650   ${ac_c_conftest_c89_main}
   2651   ${ac_c_conftest_c99_main}
   2652   return ok;
   2653 }
   2654 "
   2655 
   2656 # Test code for whether the C compiler supports C89 (complete).
   2657 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2658 
   2659 int
   2660 main (int argc, char **argv)
   2661 {
   2662   int ok = 0;
   2663   ${ac_c_conftest_c89_main}
   2664   return ok;
   2665 }
   2666 "
   2667 
   2668 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2669 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2670 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2671 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2672 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2673 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2674 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2675 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2676 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2677 
   2678 # Auxiliary files required by this configure script.
   2679 ac_aux_files="install-sh config.guess config.sub"
   2680 
   2681 # Locations in which to look for auxiliary files.
   2682 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
   2683 
   2684 # Search for a directory containing all of the required auxiliary files,
   2685 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   2686 # If we don't find one directory that contains all the files we need,
   2687 # we report the set of missing files from the *first* directory in
   2688 # $ac_aux_dir_candidates and give up.
   2689 ac_missing_aux_files=""
   2690 ac_first_candidate=:
   2691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2693 as_found=false
   2694 for as_dir in $ac_aux_dir_candidates
   2695 do
   2696   IFS=$as_save_IFS
   2697   case $as_dir in #(((
   2698     '') as_dir=./ ;;
   2699     */) ;;
   2700     *) as_dir=$as_dir/ ;;
   2701   esac
   2702   as_found=:
   2703 
   2704   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   2705   ac_aux_dir_found=yes
   2706   ac_install_sh=
   2707   for ac_aux in $ac_aux_files
   2708   do
   2709     # As a special case, if "install-sh" is required, that requirement
   2710     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   2711     # and $ac_install_sh is set appropriately for whichever one is found.
   2712     if test x"$ac_aux" = x"install-sh"
   2713     then
   2714       if test -f "${as_dir}install-sh"; then
   2715         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   2716         ac_install_sh="${as_dir}install-sh -c"
   2717       elif test -f "${as_dir}install.sh"; then
   2718         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   2719         ac_install_sh="${as_dir}install.sh -c"
   2720       elif test -f "${as_dir}shtool"; then
   2721         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   2722         ac_install_sh="${as_dir}shtool install -c"
   2723       else
   2724         ac_aux_dir_found=no
   2725         if $ac_first_candidate; then
   2726           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   2727         else
   2728           break
   2729         fi
   2730       fi
   2731     else
   2732       if test -f "${as_dir}${ac_aux}"; then
   2733         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   2734       else
   2735         ac_aux_dir_found=no
   2736         if $ac_first_candidate; then
   2737           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   2738         else
   2739           break
   2740         fi
   2741       fi
   2742     fi
   2743   done
   2744   if test "$ac_aux_dir_found" = yes; then
   2745     ac_aux_dir="$as_dir"
   2746     break
   2747   fi
   2748   ac_first_candidate=false
   2749 
   2750   as_found=false
   2751 done
   2752 IFS=$as_save_IFS
   2753 if $as_found
   2754 then :
   2755 
   2756 else $as_nop
   2757   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
   2758 fi
   2759 
   2760 
   2761 # These three variables are undocumented and unsupported,
   2762 # and are intended to be withdrawn in a future Autoconf release.
   2763 # They can cause serious problems if a builder's source tree is in a directory
   2764 # whose full name contains unusual characters.
   2765 if test -f "${ac_aux_dir}config.guess"; then
   2766   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   2767 fi
   2768 if test -f "${ac_aux_dir}config.sub"; then
   2769   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   2770 fi
   2771 if test -f "$ac_aux_dir/configure"; then
   2772   ac_configure="$SHELL ${ac_aux_dir}configure"
   2773 fi
   2774 
   2775 # Check that the precious variables saved in the cache have kept the same
   2776 # value.
   2777 ac_cache_corrupted=false
   2778 for ac_var in $ac_precious_vars; do
   2779   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2780   eval ac_new_set=\$ac_env_${ac_var}_set
   2781   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2782   eval ac_new_val=\$ac_env_${ac_var}_value
   2783   case $ac_old_set,$ac_new_set in
   2784     set,)
   2785       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2786 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2787       ac_cache_corrupted=: ;;
   2788     ,set)
   2789       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2790 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2791       ac_cache_corrupted=: ;;
   2792     ,);;
   2793     *)
   2794       if test "x$ac_old_val" != "x$ac_new_val"; then
   2795 	# differences in whitespace do not lead to failure.
   2796 	ac_old_val_w=`echo x $ac_old_val`
   2797 	ac_new_val_w=`echo x $ac_new_val`
   2798 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2799 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2800 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2801 	  ac_cache_corrupted=:
   2802 	else
   2803 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2804 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2805 	  eval $ac_var=\$ac_old_val
   2806 	fi
   2807 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2808 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2809 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2810 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
   2811       fi;;
   2812   esac
   2813   # Pass precious variables to config.status.
   2814   if test "$ac_new_set" = set; then
   2815     case $ac_new_val in
   2816     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2817     *) ac_arg=$ac_var=$ac_new_val ;;
   2818     esac
   2819     case " $ac_configure_args " in
   2820       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2821       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2822     esac
   2823   fi
   2824 done
   2825 if $ac_cache_corrupted; then
   2826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2828   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2829 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   2830   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
   2831 	    and start over" "$LINENO" 5
   2832 fi
   2833 ## -------------------- ##
   2834 ## Main body of script. ##
   2835 ## -------------------- ##
   2836 
   2837 ac_ext=c
   2838 ac_cpp='$CPP $CPPFLAGS'
   2839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2842 
   2843 
   2844 
   2845 
   2846 
   2847 
   2848 
   2849   # Make sure we can run config.sub.
   2850 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   2851   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   2852 
   2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2854 printf %s "checking build system type... " >&6; }
   2855 if test ${ac_cv_build+y}
   2856 then :
   2857   printf %s "(cached) " >&6
   2858 else $as_nop
   2859   ac_build_alias=$build_alias
   2860 test "x$ac_build_alias" = x &&
   2861   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   2862 test "x$ac_build_alias" = x &&
   2863   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2864 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   2865   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   2866 
   2867 fi
   2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2869 printf "%s\n" "$ac_cv_build" >&6; }
   2870 case $ac_cv_build in
   2871 *-*-*) ;;
   2872 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2873 esac
   2874 build=$ac_cv_build
   2875 ac_save_IFS=$IFS; IFS='-'
   2876 set x $ac_cv_build
   2877 shift
   2878 build_cpu=$1
   2879 build_vendor=$2
   2880 shift; shift
   2881 # Remember, the first character of IFS is used to create $*,
   2882 # except with old shells:
   2883 build_os=$*
   2884 IFS=$ac_save_IFS
   2885 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2886 
   2887 
   2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2889 printf %s "checking host system type... " >&6; }
   2890 if test ${ac_cv_host+y}
   2891 then :
   2892   printf %s "(cached) " >&6
   2893 else $as_nop
   2894   if test "x$host_alias" = x; then
   2895   ac_cv_host=$ac_cv_build
   2896 else
   2897   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   2898     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   2899 fi
   2900 
   2901 fi
   2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2903 printf "%s\n" "$ac_cv_host" >&6; }
   2904 case $ac_cv_host in
   2905 *-*-*) ;;
   2906 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2907 esac
   2908 host=$ac_cv_host
   2909 ac_save_IFS=$IFS; IFS='-'
   2910 set x $ac_cv_host
   2911 shift
   2912 host_cpu=$1
   2913 host_vendor=$2
   2914 shift; shift
   2915 # Remember, the first character of IFS is used to create $*,
   2916 # except with old shells:
   2917 host_os=$*
   2918 IFS=$ac_save_IFS
   2919 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2920 
   2921 
   2922 
   2923 
   2924 
   2925 
   2926 
   2927 
   2928 # Check whether --with-gcc was given.
   2929 if test ${with_gcc+y}
   2930 then :
   2931   withval=$with_gcc;
   2932 fi
   2933 
   2934     V_INCLS=""
   2935     if test "${srcdir}" != "." ; then
   2936 	    V_INCLS="-I$srcdir"
   2937     fi
   2938     if test "${CFLAGS+set}" = set; then
   2939 	    LBL_CFLAGS="$CFLAGS"
   2940     fi
   2941     if test -z "$CC" ; then
   2942 	    case "$host_os" in
   2943 
   2944 	    bsdi*)
   2945 		    # Extract the first word of "shlicc2", so it can be a program name with args.
   2946 set dummy shlicc2; ac_word=$2
   2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2948 printf %s "checking for $ac_word... " >&6; }
   2949 if test ${ac_cv_prog_SHLICC2+y}
   2950 then :
   2951   printf %s "(cached) " >&6
   2952 else $as_nop
   2953   if test -n "$SHLICC2"; then
   2954   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
   2955 else
   2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2957 for as_dir in $PATH
   2958 do
   2959   IFS=$as_save_IFS
   2960   case $as_dir in #(((
   2961     '') as_dir=./ ;;
   2962     */) ;;
   2963     *) as_dir=$as_dir/ ;;
   2964   esac
   2965     for ac_exec_ext in '' $ac_executable_extensions; do
   2966   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2967     ac_cv_prog_SHLICC2="yes"
   2968     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2969     break 2
   2970   fi
   2971 done
   2972   done
   2973 IFS=$as_save_IFS
   2974 
   2975   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
   2976 fi
   2977 fi
   2978 SHLICC2=$ac_cv_prog_SHLICC2
   2979 if test -n "$SHLICC2"; then
   2980   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
   2981 printf "%s\n" "$SHLICC2" >&6; }
   2982 else
   2983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2984 printf "%s\n" "no" >&6; }
   2985 fi
   2986 
   2987 
   2988 		    if test $SHLICC2 = yes ; then
   2989 			    CC=shlicc2
   2990 			    export CC
   2991 		    fi
   2992 		    ;;
   2993 	    esac
   2994     fi
   2995     if test -z "$CC" -a "$with_gcc" = no ; then
   2996 	    CC=cc
   2997 	    export CC
   2998     fi
   2999 
   3000 #
   3001 # Try to enable as many C99 features as we can.
   3002 # At minimum, we want C++/C99-style // comments.
   3003 #
   3004 
   3005 
   3006 
   3007 
   3008 
   3009 
   3010 
   3011 
   3012 
   3013 ac_ext=c
   3014 ac_cpp='$CPP $CPPFLAGS'
   3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3018 if test -n "$ac_tool_prefix"; then
   3019   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3022 printf %s "checking for $ac_word... " >&6; }
   3023 if test ${ac_cv_prog_CC+y}
   3024 then :
   3025   printf %s "(cached) " >&6
   3026 else $as_nop
   3027   if test -n "$CC"; then
   3028   ac_cv_prog_CC="$CC" # Let the user override the test.
   3029 else
   3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3031 for as_dir in $PATH
   3032 do
   3033   IFS=$as_save_IFS
   3034   case $as_dir in #(((
   3035     '') as_dir=./ ;;
   3036     */) ;;
   3037     *) as_dir=$as_dir/ ;;
   3038   esac
   3039     for ac_exec_ext in '' $ac_executable_extensions; do
   3040   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3041     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3042     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3043     break 2
   3044   fi
   3045 done
   3046   done
   3047 IFS=$as_save_IFS
   3048 
   3049 fi
   3050 fi
   3051 CC=$ac_cv_prog_CC
   3052 if test -n "$CC"; then
   3053   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3054 printf "%s\n" "$CC" >&6; }
   3055 else
   3056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3057 printf "%s\n" "no" >&6; }
   3058 fi
   3059 
   3060 
   3061 fi
   3062 if test -z "$ac_cv_prog_CC"; then
   3063   ac_ct_CC=$CC
   3064   # Extract the first word of "gcc", so it can be a program name with args.
   3065 set dummy gcc; ac_word=$2
   3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3067 printf %s "checking for $ac_word... " >&6; }
   3068 if test ${ac_cv_prog_ac_ct_CC+y}
   3069 then :
   3070   printf %s "(cached) " >&6
   3071 else $as_nop
   3072   if test -n "$ac_ct_CC"; then
   3073   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3074 else
   3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3076 for as_dir in $PATH
   3077 do
   3078   IFS=$as_save_IFS
   3079   case $as_dir in #(((
   3080     '') as_dir=./ ;;
   3081     */) ;;
   3082     *) as_dir=$as_dir/ ;;
   3083   esac
   3084     for ac_exec_ext in '' $ac_executable_extensions; do
   3085   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3086     ac_cv_prog_ac_ct_CC="gcc"
   3087     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3088     break 2
   3089   fi
   3090 done
   3091   done
   3092 IFS=$as_save_IFS
   3093 
   3094 fi
   3095 fi
   3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3097 if test -n "$ac_ct_CC"; then
   3098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3099 printf "%s\n" "$ac_ct_CC" >&6; }
   3100 else
   3101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3102 printf "%s\n" "no" >&6; }
   3103 fi
   3104 
   3105   if test "x$ac_ct_CC" = x; then
   3106     CC=""
   3107   else
   3108     case $cross_compiling:$ac_tool_warned in
   3109 yes:)
   3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3112 ac_tool_warned=yes ;;
   3113 esac
   3114     CC=$ac_ct_CC
   3115   fi
   3116 else
   3117   CC="$ac_cv_prog_CC"
   3118 fi
   3119 
   3120 if test -z "$CC"; then
   3121           if test -n "$ac_tool_prefix"; then
   3122     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3123 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3125 printf %s "checking for $ac_word... " >&6; }
   3126 if test ${ac_cv_prog_CC+y}
   3127 then :
   3128   printf %s "(cached) " >&6
   3129 else $as_nop
   3130   if test -n "$CC"; then
   3131   ac_cv_prog_CC="$CC" # Let the user override the test.
   3132 else
   3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3134 for as_dir in $PATH
   3135 do
   3136   IFS=$as_save_IFS
   3137   case $as_dir in #(((
   3138     '') as_dir=./ ;;
   3139     */) ;;
   3140     *) as_dir=$as_dir/ ;;
   3141   esac
   3142     for ac_exec_ext in '' $ac_executable_extensions; do
   3143   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3144     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3145     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3146     break 2
   3147   fi
   3148 done
   3149   done
   3150 IFS=$as_save_IFS
   3151 
   3152 fi
   3153 fi
   3154 CC=$ac_cv_prog_CC
   3155 if test -n "$CC"; then
   3156   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3157 printf "%s\n" "$CC" >&6; }
   3158 else
   3159   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3160 printf "%s\n" "no" >&6; }
   3161 fi
   3162 
   3163 
   3164   fi
   3165 fi
   3166 if test -z "$CC"; then
   3167   # Extract the first word of "cc", so it can be a program name with args.
   3168 set dummy cc; ac_word=$2
   3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3170 printf %s "checking for $ac_word... " >&6; }
   3171 if test ${ac_cv_prog_CC+y}
   3172 then :
   3173   printf %s "(cached) " >&6
   3174 else $as_nop
   3175   if test -n "$CC"; then
   3176   ac_cv_prog_CC="$CC" # Let the user override the test.
   3177 else
   3178   ac_prog_rejected=no
   3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3180 for as_dir in $PATH
   3181 do
   3182   IFS=$as_save_IFS
   3183   case $as_dir in #(((
   3184     '') as_dir=./ ;;
   3185     */) ;;
   3186     *) as_dir=$as_dir/ ;;
   3187   esac
   3188     for ac_exec_ext in '' $ac_executable_extensions; do
   3189   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3190     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3191        ac_prog_rejected=yes
   3192        continue
   3193      fi
   3194     ac_cv_prog_CC="cc"
   3195     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3196     break 2
   3197   fi
   3198 done
   3199   done
   3200 IFS=$as_save_IFS
   3201 
   3202 if test $ac_prog_rejected = yes; then
   3203   # We found a bogon in the path, so make sure we never use it.
   3204   set dummy $ac_cv_prog_CC
   3205   shift
   3206   if test $# != 0; then
   3207     # We chose a different compiler from the bogus one.
   3208     # However, it has the same basename, so the bogon will be chosen
   3209     # first if we set CC to just the basename; use the full file name.
   3210     shift
   3211     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   3212   fi
   3213 fi
   3214 fi
   3215 fi
   3216 CC=$ac_cv_prog_CC
   3217 if test -n "$CC"; then
   3218   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3219 printf "%s\n" "$CC" >&6; }
   3220 else
   3221   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3222 printf "%s\n" "no" >&6; }
   3223 fi
   3224 
   3225 
   3226 fi
   3227 if test -z "$CC"; then
   3228   if test -n "$ac_tool_prefix"; then
   3229   for ac_prog in cl.exe
   3230   do
   3231     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3234 printf %s "checking for $ac_word... " >&6; }
   3235 if test ${ac_cv_prog_CC+y}
   3236 then :
   3237   printf %s "(cached) " >&6
   3238 else $as_nop
   3239   if test -n "$CC"; then
   3240   ac_cv_prog_CC="$CC" # Let the user override the test.
   3241 else
   3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3243 for as_dir in $PATH
   3244 do
   3245   IFS=$as_save_IFS
   3246   case $as_dir in #(((
   3247     '') as_dir=./ ;;
   3248     */) ;;
   3249     *) as_dir=$as_dir/ ;;
   3250   esac
   3251     for ac_exec_ext in '' $ac_executable_extensions; do
   3252   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3253     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3254     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3255     break 2
   3256   fi
   3257 done
   3258   done
   3259 IFS=$as_save_IFS
   3260 
   3261 fi
   3262 fi
   3263 CC=$ac_cv_prog_CC
   3264 if test -n "$CC"; then
   3265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3266 printf "%s\n" "$CC" >&6; }
   3267 else
   3268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3269 printf "%s\n" "no" >&6; }
   3270 fi
   3271 
   3272 
   3273     test -n "$CC" && break
   3274   done
   3275 fi
   3276 if test -z "$CC"; then
   3277   ac_ct_CC=$CC
   3278   for ac_prog in cl.exe
   3279 do
   3280   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3281 set dummy $ac_prog; ac_word=$2
   3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3283 printf %s "checking for $ac_word... " >&6; }
   3284 if test ${ac_cv_prog_ac_ct_CC+y}
   3285 then :
   3286   printf %s "(cached) " >&6
   3287 else $as_nop
   3288   if test -n "$ac_ct_CC"; then
   3289   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3290 else
   3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3292 for as_dir in $PATH
   3293 do
   3294   IFS=$as_save_IFS
   3295   case $as_dir in #(((
   3296     '') as_dir=./ ;;
   3297     */) ;;
   3298     *) as_dir=$as_dir/ ;;
   3299   esac
   3300     for ac_exec_ext in '' $ac_executable_extensions; do
   3301   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3302     ac_cv_prog_ac_ct_CC="$ac_prog"
   3303     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3304     break 2
   3305   fi
   3306 done
   3307   done
   3308 IFS=$as_save_IFS
   3309 
   3310 fi
   3311 fi
   3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3313 if test -n "$ac_ct_CC"; then
   3314   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3315 printf "%s\n" "$ac_ct_CC" >&6; }
   3316 else
   3317   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3318 printf "%s\n" "no" >&6; }
   3319 fi
   3320 
   3321 
   3322   test -n "$ac_ct_CC" && break
   3323 done
   3324 
   3325   if test "x$ac_ct_CC" = x; then
   3326     CC=""
   3327   else
   3328     case $cross_compiling:$ac_tool_warned in
   3329 yes:)
   3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3331 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3332 ac_tool_warned=yes ;;
   3333 esac
   3334     CC=$ac_ct_CC
   3335   fi
   3336 fi
   3337 
   3338 fi
   3339 if test -z "$CC"; then
   3340   if test -n "$ac_tool_prefix"; then
   3341   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   3342 set dummy ${ac_tool_prefix}clang; ac_word=$2
   3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3344 printf %s "checking for $ac_word... " >&6; }
   3345 if test ${ac_cv_prog_CC+y}
   3346 then :
   3347   printf %s "(cached) " >&6
   3348 else $as_nop
   3349   if test -n "$CC"; then
   3350   ac_cv_prog_CC="$CC" # Let the user override the test.
   3351 else
   3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3353 for as_dir in $PATH
   3354 do
   3355   IFS=$as_save_IFS
   3356   case $as_dir in #(((
   3357     '') as_dir=./ ;;
   3358     */) ;;
   3359     *) as_dir=$as_dir/ ;;
   3360   esac
   3361     for ac_exec_ext in '' $ac_executable_extensions; do
   3362   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3363     ac_cv_prog_CC="${ac_tool_prefix}clang"
   3364     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3365     break 2
   3366   fi
   3367 done
   3368   done
   3369 IFS=$as_save_IFS
   3370 
   3371 fi
   3372 fi
   3373 CC=$ac_cv_prog_CC
   3374 if test -n "$CC"; then
   3375   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3376 printf "%s\n" "$CC" >&6; }
   3377 else
   3378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3379 printf "%s\n" "no" >&6; }
   3380 fi
   3381 
   3382 
   3383 fi
   3384 if test -z "$ac_cv_prog_CC"; then
   3385   ac_ct_CC=$CC
   3386   # Extract the first word of "clang", so it can be a program name with args.
   3387 set dummy clang; ac_word=$2
   3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3389 printf %s "checking for $ac_word... " >&6; }
   3390 if test ${ac_cv_prog_ac_ct_CC+y}
   3391 then :
   3392   printf %s "(cached) " >&6
   3393 else $as_nop
   3394   if test -n "$ac_ct_CC"; then
   3395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3396 else
   3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3398 for as_dir in $PATH
   3399 do
   3400   IFS=$as_save_IFS
   3401   case $as_dir in #(((
   3402     '') as_dir=./ ;;
   3403     */) ;;
   3404     *) as_dir=$as_dir/ ;;
   3405   esac
   3406     for ac_exec_ext in '' $ac_executable_extensions; do
   3407   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3408     ac_cv_prog_ac_ct_CC="clang"
   3409     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3410     break 2
   3411   fi
   3412 done
   3413   done
   3414 IFS=$as_save_IFS
   3415 
   3416 fi
   3417 fi
   3418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3419 if test -n "$ac_ct_CC"; then
   3420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3421 printf "%s\n" "$ac_ct_CC" >&6; }
   3422 else
   3423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3424 printf "%s\n" "no" >&6; }
   3425 fi
   3426 
   3427   if test "x$ac_ct_CC" = x; then
   3428     CC=""
   3429   else
   3430     case $cross_compiling:$ac_tool_warned in
   3431 yes:)
   3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3434 ac_tool_warned=yes ;;
   3435 esac
   3436     CC=$ac_ct_CC
   3437   fi
   3438 else
   3439   CC="$ac_cv_prog_CC"
   3440 fi
   3441 
   3442 fi
   3443 
   3444 
   3445 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3446 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3447 as_fn_error $? "no acceptable C compiler found in \$PATH
   3448 See \`config.log' for more details" "$LINENO" 5; }
   3449 
   3450 # Provide some information about the compiler.
   3451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3452 set X $ac_compile
   3453 ac_compiler=$2
   3454 for ac_option in --version -v -V -qversion -version; do
   3455   { { ac_try="$ac_compiler $ac_option >&5"
   3456 case "(($ac_try" in
   3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3458   *) ac_try_echo=$ac_try;;
   3459 esac
   3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3461 printf "%s\n" "$ac_try_echo"; } >&5
   3462   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3463   ac_status=$?
   3464   if test -s conftest.err; then
   3465     sed '10a\
   3466 ... rest of stderr output deleted ...
   3467          10q' conftest.err >conftest.er1
   3468     cat conftest.er1 >&5
   3469   fi
   3470   rm -f conftest.er1 conftest.err
   3471   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3472   test $ac_status = 0; }
   3473 done
   3474 
   3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3476 /* end confdefs.h.  */
   3477 
   3478 int
   3479 main (void)
   3480 {
   3481 
   3482   ;
   3483   return 0;
   3484 }
   3485 _ACEOF
   3486 ac_clean_files_save=$ac_clean_files
   3487 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3488 # Try to create an executable without -o first, disregard a.out.
   3489 # It will help us diagnose broken compilers, and finding out an intuition
   3490 # of exeext.
   3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3492 printf %s "checking whether the C compiler works... " >&6; }
   3493 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3494 
   3495 # The possible output files:
   3496 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3497 
   3498 ac_rmfiles=
   3499 for ac_file in $ac_files
   3500 do
   3501   case $ac_file in
   3502     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3503     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3504   esac
   3505 done
   3506 rm -f $ac_rmfiles
   3507 
   3508 if { { ac_try="$ac_link_default"
   3509 case "(($ac_try" in
   3510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3511   *) ac_try_echo=$ac_try;;
   3512 esac
   3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3514 printf "%s\n" "$ac_try_echo"; } >&5
   3515   (eval "$ac_link_default") 2>&5
   3516   ac_status=$?
   3517   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3518   test $ac_status = 0; }
   3519 then :
   3520   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3521 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3522 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3523 # so that the user can short-circuit this test for compilers unknown to
   3524 # Autoconf.
   3525 for ac_file in $ac_files ''
   3526 do
   3527   test -f "$ac_file" || continue
   3528   case $ac_file in
   3529     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3530 	;;
   3531     [ab].out )
   3532 	# We found the default executable, but exeext='' is most
   3533 	# certainly right.
   3534 	break;;
   3535     *.* )
   3536 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3537 	then :; else
   3538 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3539 	fi
   3540 	# We set ac_cv_exeext here because the later test for it is not
   3541 	# safe: cross compilers may not add the suffix if given an `-o'
   3542 	# argument, so we may need to know it at that point already.
   3543 	# Even if this section looks crufty: it has the advantage of
   3544 	# actually working.
   3545 	break;;
   3546     * )
   3547 	break;;
   3548   esac
   3549 done
   3550 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3551 
   3552 else $as_nop
   3553   ac_file=''
   3554 fi
   3555 if test -z "$ac_file"
   3556 then :
   3557   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3558 printf "%s\n" "no" >&6; }
   3559 printf "%s\n" "$as_me: failed program was:" >&5
   3560 sed 's/^/| /' conftest.$ac_ext >&5
   3561 
   3562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3563 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3564 as_fn_error 77 "C compiler cannot create executables
   3565 See \`config.log' for more details" "$LINENO" 5; }
   3566 else $as_nop
   3567   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3568 printf "%s\n" "yes" >&6; }
   3569 fi
   3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3571 printf %s "checking for C compiler default output file name... " >&6; }
   3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3573 printf "%s\n" "$ac_file" >&6; }
   3574 ac_exeext=$ac_cv_exeext
   3575 
   3576 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3577 ac_clean_files=$ac_clean_files_save
   3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3579 printf %s "checking for suffix of executables... " >&6; }
   3580 if { { ac_try="$ac_link"
   3581 case "(($ac_try" in
   3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3583   *) ac_try_echo=$ac_try;;
   3584 esac
   3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3586 printf "%s\n" "$ac_try_echo"; } >&5
   3587   (eval "$ac_link") 2>&5
   3588   ac_status=$?
   3589   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3590   test $ac_status = 0; }
   3591 then :
   3592   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3593 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3594 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3595 # `rm'.
   3596 for ac_file in conftest.exe conftest conftest.*; do
   3597   test -f "$ac_file" || continue
   3598   case $ac_file in
   3599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3600     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3601 	  break;;
   3602     * ) break;;
   3603   esac
   3604 done
   3605 else $as_nop
   3606   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3608 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3609 See \`config.log' for more details" "$LINENO" 5; }
   3610 fi
   3611 rm -f conftest conftest$ac_cv_exeext
   3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3613 printf "%s\n" "$ac_cv_exeext" >&6; }
   3614 
   3615 rm -f conftest.$ac_ext
   3616 EXEEXT=$ac_cv_exeext
   3617 ac_exeext=$EXEEXT
   3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3619 /* end confdefs.h.  */
   3620 #include <stdio.h>
   3621 int
   3622 main (void)
   3623 {
   3624 FILE *f = fopen ("conftest.out", "w");
   3625  return ferror (f) || fclose (f) != 0;
   3626 
   3627   ;
   3628   return 0;
   3629 }
   3630 _ACEOF
   3631 ac_clean_files="$ac_clean_files conftest.out"
   3632 # Check that the compiler produces executables we can run.  If not, either
   3633 # the compiler is broken, or we cross compile.
   3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3635 printf %s "checking whether we are cross compiling... " >&6; }
   3636 if test "$cross_compiling" != yes; then
   3637   { { ac_try="$ac_link"
   3638 case "(($ac_try" in
   3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3640   *) ac_try_echo=$ac_try;;
   3641 esac
   3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3643 printf "%s\n" "$ac_try_echo"; } >&5
   3644   (eval "$ac_link") 2>&5
   3645   ac_status=$?
   3646   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3647   test $ac_status = 0; }
   3648   if { ac_try='./conftest$ac_cv_exeext'
   3649   { { case "(($ac_try" in
   3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3651   *) ac_try_echo=$ac_try;;
   3652 esac
   3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3654 printf "%s\n" "$ac_try_echo"; } >&5
   3655   (eval "$ac_try") 2>&5
   3656   ac_status=$?
   3657   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3658   test $ac_status = 0; }; }; then
   3659     cross_compiling=no
   3660   else
   3661     if test "$cross_compiling" = maybe; then
   3662 	cross_compiling=yes
   3663     else
   3664 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3665 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3666 as_fn_error 77 "cannot run C compiled programs.
   3667 If you meant to cross compile, use \`--host'.
   3668 See \`config.log' for more details" "$LINENO" 5; }
   3669     fi
   3670   fi
   3671 fi
   3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3673 printf "%s\n" "$cross_compiling" >&6; }
   3674 
   3675 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3676 ac_clean_files=$ac_clean_files_save
   3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3678 printf %s "checking for suffix of object files... " >&6; }
   3679 if test ${ac_cv_objext+y}
   3680 then :
   3681   printf %s "(cached) " >&6
   3682 else $as_nop
   3683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3684 /* end confdefs.h.  */
   3685 
   3686 int
   3687 main (void)
   3688 {
   3689 
   3690   ;
   3691   return 0;
   3692 }
   3693 _ACEOF
   3694 rm -f conftest.o conftest.obj
   3695 if { { ac_try="$ac_compile"
   3696 case "(($ac_try" in
   3697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3698   *) ac_try_echo=$ac_try;;
   3699 esac
   3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3701 printf "%s\n" "$ac_try_echo"; } >&5
   3702   (eval "$ac_compile") 2>&5
   3703   ac_status=$?
   3704   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3705   test $ac_status = 0; }
   3706 then :
   3707   for ac_file in conftest.o conftest.obj conftest.*; do
   3708   test -f "$ac_file" || continue;
   3709   case $ac_file in
   3710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3711     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3712        break;;
   3713   esac
   3714 done
   3715 else $as_nop
   3716   printf "%s\n" "$as_me: failed program was:" >&5
   3717 sed 's/^/| /' conftest.$ac_ext >&5
   3718 
   3719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3720 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3721 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3722 See \`config.log' for more details" "$LINENO" 5; }
   3723 fi
   3724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3725 fi
   3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3727 printf "%s\n" "$ac_cv_objext" >&6; }
   3728 OBJEXT=$ac_cv_objext
   3729 ac_objext=$OBJEXT
   3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   3731 printf %s "checking whether the compiler supports GNU C... " >&6; }
   3732 if test ${ac_cv_c_compiler_gnu+y}
   3733 then :
   3734   printf %s "(cached) " >&6
   3735 else $as_nop
   3736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3737 /* end confdefs.h.  */
   3738 
   3739 int
   3740 main (void)
   3741 {
   3742 #ifndef __GNUC__
   3743        choke me
   3744 #endif
   3745 
   3746   ;
   3747   return 0;
   3748 }
   3749 _ACEOF
   3750 if ac_fn_c_try_compile "$LINENO"
   3751 then :
   3752   ac_compiler_gnu=yes
   3753 else $as_nop
   3754   ac_compiler_gnu=no
   3755 fi
   3756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3758 
   3759 fi
   3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3761 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3763 
   3764 if test $ac_compiler_gnu = yes; then
   3765   GCC=yes
   3766 else
   3767   GCC=
   3768 fi
   3769 ac_test_CFLAGS=${CFLAGS+y}
   3770 ac_save_CFLAGS=$CFLAGS
   3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3772 printf %s "checking whether $CC accepts -g... " >&6; }
   3773 if test ${ac_cv_prog_cc_g+y}
   3774 then :
   3775   printf %s "(cached) " >&6
   3776 else $as_nop
   3777   ac_save_c_werror_flag=$ac_c_werror_flag
   3778    ac_c_werror_flag=yes
   3779    ac_cv_prog_cc_g=no
   3780    CFLAGS="-g"
   3781    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3782 /* end confdefs.h.  */
   3783 
   3784 int
   3785 main (void)
   3786 {
   3787 
   3788   ;
   3789   return 0;
   3790 }
   3791 _ACEOF
   3792 if ac_fn_c_try_compile "$LINENO"
   3793 then :
   3794   ac_cv_prog_cc_g=yes
   3795 else $as_nop
   3796   CFLAGS=""
   3797       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3798 /* end confdefs.h.  */
   3799 
   3800 int
   3801 main (void)
   3802 {
   3803 
   3804   ;
   3805   return 0;
   3806 }
   3807 _ACEOF
   3808 if ac_fn_c_try_compile "$LINENO"
   3809 then :
   3810 
   3811 else $as_nop
   3812   ac_c_werror_flag=$ac_save_c_werror_flag
   3813 	 CFLAGS="-g"
   3814 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3815 /* end confdefs.h.  */
   3816 
   3817 int
   3818 main (void)
   3819 {
   3820 
   3821   ;
   3822   return 0;
   3823 }
   3824 _ACEOF
   3825 if ac_fn_c_try_compile "$LINENO"
   3826 then :
   3827   ac_cv_prog_cc_g=yes
   3828 fi
   3829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3830 fi
   3831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3832 fi
   3833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3834    ac_c_werror_flag=$ac_save_c_werror_flag
   3835 fi
   3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3837 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   3838 if test $ac_test_CFLAGS; then
   3839   CFLAGS=$ac_save_CFLAGS
   3840 elif test $ac_cv_prog_cc_g = yes; then
   3841   if test "$GCC" = yes; then
   3842     CFLAGS="-g -O2"
   3843   else
   3844     CFLAGS="-g"
   3845   fi
   3846 else
   3847   if test "$GCC" = yes; then
   3848     CFLAGS="-O2"
   3849   else
   3850     CFLAGS=
   3851   fi
   3852 fi
   3853 ac_prog_cc_stdc=no
   3854 if test x$ac_prog_cc_stdc = xno
   3855 then :
   3856   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   3857 printf %s "checking for $CC option to enable C11 features... " >&6; }
   3858 if test ${ac_cv_prog_cc_c11+y}
   3859 then :
   3860   printf %s "(cached) " >&6
   3861 else $as_nop
   3862   ac_cv_prog_cc_c11=no
   3863 ac_save_CC=$CC
   3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3865 /* end confdefs.h.  */
   3866 $ac_c_conftest_c11_program
   3867 _ACEOF
   3868 for ac_arg in '' -std=gnu11
   3869 do
   3870   CC="$ac_save_CC $ac_arg"
   3871   if ac_fn_c_try_compile "$LINENO"
   3872 then :
   3873   ac_cv_prog_cc_c11=$ac_arg
   3874 fi
   3875 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3876   test "x$ac_cv_prog_cc_c11" != "xno" && break
   3877 done
   3878 rm -f conftest.$ac_ext
   3879 CC=$ac_save_CC
   3880 fi
   3881 
   3882 if test "x$ac_cv_prog_cc_c11" = xno
   3883 then :
   3884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3885 printf "%s\n" "unsupported" >&6; }
   3886 else $as_nop
   3887   if test "x$ac_cv_prog_cc_c11" = x
   3888 then :
   3889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3890 printf "%s\n" "none needed" >&6; }
   3891 else $as_nop
   3892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   3893 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   3894      CC="$CC $ac_cv_prog_cc_c11"
   3895 fi
   3896   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   3897   ac_prog_cc_stdc=c11
   3898 fi
   3899 fi
   3900 if test x$ac_prog_cc_stdc = xno
   3901 then :
   3902   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   3903 printf %s "checking for $CC option to enable C99 features... " >&6; }
   3904 if test ${ac_cv_prog_cc_c99+y}
   3905 then :
   3906   printf %s "(cached) " >&6
   3907 else $as_nop
   3908   ac_cv_prog_cc_c99=no
   3909 ac_save_CC=$CC
   3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3911 /* end confdefs.h.  */
   3912 $ac_c_conftest_c99_program
   3913 _ACEOF
   3914 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   3915 do
   3916   CC="$ac_save_CC $ac_arg"
   3917   if ac_fn_c_try_compile "$LINENO"
   3918 then :
   3919   ac_cv_prog_cc_c99=$ac_arg
   3920 fi
   3921 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3922   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3923 done
   3924 rm -f conftest.$ac_ext
   3925 CC=$ac_save_CC
   3926 fi
   3927 
   3928 if test "x$ac_cv_prog_cc_c99" = xno
   3929 then :
   3930   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3931 printf "%s\n" "unsupported" >&6; }
   3932 else $as_nop
   3933   if test "x$ac_cv_prog_cc_c99" = x
   3934 then :
   3935   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3936 printf "%s\n" "none needed" >&6; }
   3937 else $as_nop
   3938   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   3939 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   3940      CC="$CC $ac_cv_prog_cc_c99"
   3941 fi
   3942   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   3943   ac_prog_cc_stdc=c99
   3944 fi
   3945 fi
   3946 if test x$ac_prog_cc_stdc = xno
   3947 then :
   3948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   3949 printf %s "checking for $CC option to enable C89 features... " >&6; }
   3950 if test ${ac_cv_prog_cc_c89+y}
   3951 then :
   3952   printf %s "(cached) " >&6
   3953 else $as_nop
   3954   ac_cv_prog_cc_c89=no
   3955 ac_save_CC=$CC
   3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3957 /* end confdefs.h.  */
   3958 $ac_c_conftest_c89_program
   3959 _ACEOF
   3960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3961 do
   3962   CC="$ac_save_CC $ac_arg"
   3963   if ac_fn_c_try_compile "$LINENO"
   3964 then :
   3965   ac_cv_prog_cc_c89=$ac_arg
   3966 fi
   3967 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3968   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3969 done
   3970 rm -f conftest.$ac_ext
   3971 CC=$ac_save_CC
   3972 fi
   3973 
   3974 if test "x$ac_cv_prog_cc_c89" = xno
   3975 then :
   3976   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3977 printf "%s\n" "unsupported" >&6; }
   3978 else $as_nop
   3979   if test "x$ac_cv_prog_cc_c89" = x
   3980 then :
   3981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3982 printf "%s\n" "none needed" >&6; }
   3983 else $as_nop
   3984   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3985 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   3986      CC="$CC $ac_cv_prog_cc_c89"
   3987 fi
   3988   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   3989   ac_prog_cc_stdc=c89
   3990 fi
   3991 fi
   3992 
   3993 ac_ext=c
   3994 ac_cpp='$CPP $CPPFLAGS'
   3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3998 
   3999 
   4000 if test "$ac_cv_prog_cc_c99" = "no"; then
   4001 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
   4002 printf "%s\n" "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
   4003 fi
   4004 
   4005 
   4006     if test "$GCC" = yes ; then
   4007 	    #
   4008 	    # -Werror forces warnings to be errors.
   4009 	    #
   4010 	    ac_lbl_cc_force_warning_errors=-Werror
   4011     else
   4012 	    V_INCLS="$V_INCLS -I/usr/local/include"
   4013 	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   4014 
   4015 	    case "$host_os" in
   4016 
   4017 	    darwin*)
   4018 		    #
   4019 		    # This is assumed either to be GCC or clang, both
   4020 		    # of which use -Werror to force warnings to be errors.
   4021 		    #
   4022 		    ac_lbl_cc_force_warning_errors=-Werror
   4023 		    ;;
   4024 
   4025 	    hpux*)
   4026 		    #
   4027 		    # HP C, which is what we presume we're using, doesn't
   4028 		    # exit with a non-zero exit status if we hand it an
   4029 		    # invalid -W flag, can't be forced to do so even with
   4030 		    # +We, and doesn't handle GCC-style -W flags, so we
   4031 		    # don't want to try using GCC-style -W flags.
   4032 		    #
   4033 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   4034 		    ;;
   4035 
   4036 	    irix*)
   4037 		    #
   4038 		    # MIPS C, which is what we presume we're using, doesn't
   4039 		    # necessarily exit with a non-zero exit status if we
   4040 		    # hand it an invalid -W flag, can't be forced to do
   4041 		    # so, and doesn't handle GCC-style -W flags, so we
   4042 		    # don't want to try using GCC-style -W flags.
   4043 		    #
   4044 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   4045 		    #
   4046 		    # It also, apparently, defaults to "char" being
   4047 		    # unsigned, unlike most other C implementations;
   4048 		    # I suppose we could say "signed char" whenever
   4049 		    # we want to guarantee a signed "char", but let's
   4050 		    # just force signed chars.
   4051 		    #
   4052 		    # -xansi is normally the default, but the
   4053 		    # configure script was setting it; perhaps -cckr
   4054 		    # was the default in the Old Days.  (Then again,
   4055 		    # that would probably be for backwards compatibility
   4056 		    # in the days when ANSI C was Shiny and New, i.e.
   4057 		    # 1989 and the early '90's, so maybe we can just
   4058 		    # drop support for those compilers.)
   4059 		    #
   4060 		    # -g is equivalent to -g2, which turns off
   4061 		    # optimization; we choose -g3, which generates
   4062 		    # debugging information but doesn't turn off
   4063 		    # optimization (even if the optimization would
   4064 		    # cause inaccuracies in debugging).
   4065 		    #
   4066 		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
   4067 		    ;;
   4068 
   4069 	    osf*)
   4070 		    #
   4071 		    # Presumed to be DEC OSF/1, Digital UNIX, or
   4072 		    # Tru64 UNIX.
   4073 		    #
   4074 		    # The DEC C compiler, which is what we presume we're
   4075 		    # using, doesn't exit with a non-zero exit status if we
   4076 		    # hand it an invalid -W flag, can't be forced to do
   4077 		    # so, and doesn't handle GCC-style -W flags, so we
   4078 		    # don't want to try using GCC-style -W flags.
   4079 		    #
   4080 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   4081 		    #
   4082 		    # -g is equivalent to -g2, which turns off
   4083 		    # optimization; we choose -g3, which generates
   4084 		    # debugging information but doesn't turn off
   4085 		    # optimization (even if the optimization would
   4086 		    # cause inaccuracies in debugging).
   4087 		    #
   4088 		    V_CCOPT="$V_CCOPT -g3"
   4089 		    ;;
   4090 
   4091 	    solaris*)
   4092 		    #
   4093 		    # Assumed to be Sun C, which requires -errwarn to force
   4094 		    # warnings to be treated as errors.
   4095 		    #
   4096 		    ac_lbl_cc_force_warning_errors=-errwarn
   4097 		    ;;
   4098 
   4099 	    ultrix*)
   4100 		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
   4101 printf %s "checking that Ultrix $CC hacks const in prototypes... " >&6; }
   4102 		    if test ${ac_cv_lbl_cc_const_proto+y}
   4103 then :
   4104   printf %s "(cached) " >&6
   4105 else $as_nop
   4106 
   4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4108 /* end confdefs.h.  */
   4109 #include <sys/types.h>
   4110 int
   4111 main (void)
   4112 {
   4113 struct a { int b; };
   4114 			    void c(const struct a *)
   4115   ;
   4116   return 0;
   4117 }
   4118 _ACEOF
   4119 if ac_fn_c_try_compile "$LINENO"
   4120 then :
   4121   ac_cv_lbl_cc_const_proto=yes
   4122 else $as_nop
   4123   ac_cv_lbl_cc_const_proto=no
   4124 fi
   4125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4126 fi
   4127 
   4128 		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
   4129 printf "%s\n" "$ac_cv_lbl_cc_const_proto" >&6; }
   4130 		    if test $ac_cv_lbl_cc_const_proto = no ; then
   4131 
   4132 printf "%s\n" "#define const /**/" >>confdefs.h
   4133 
   4134 		    fi
   4135 		    ;;
   4136 	    esac
   4137 	    V_CCOPT="$V_CCOPT -O"
   4138     fi
   4139 
   4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   4141 printf %s "checking for inline... " >&6; }
   4142     save_CFLAGS="$CFLAGS"
   4143     CFLAGS="$V_CCOPT"
   4144     if test ${ac_cv_lbl_inline+y}
   4145 then :
   4146   printf %s "(cached) " >&6
   4147 else $as_nop
   4148 
   4149 	ac_cv_lbl_inline=""
   4150 	ac_lbl_cc_inline=no
   4151 	for ac_lbl_inline in inline __inline__ __inline
   4152 	do
   4153 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4154 /* end confdefs.h.  */
   4155 #define inline $ac_lbl_inline
   4156 		static inline struct iltest *foo(void);
   4157 		struct iltest {
   4158 		    int iltest1;
   4159 		    int iltest2;
   4160 		};
   4161 
   4162 		static inline struct iltest *
   4163 		foo()
   4164 		{
   4165 		    static struct iltest xxx;
   4166 
   4167 		    return &xxx;
   4168 		}
   4169 int
   4170 main (void)
   4171 {
   4172 
   4173   ;
   4174   return 0;
   4175 }
   4176 _ACEOF
   4177 if ac_fn_c_try_compile "$LINENO"
   4178 then :
   4179   ac_lbl_cc_inline=yes
   4180 fi
   4181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4182 	    if test "$ac_lbl_cc_inline" = yes ; then
   4183 		break;
   4184 	    fi
   4185 	done
   4186 	if test "$ac_lbl_cc_inline" = yes ; then
   4187 	    ac_cv_lbl_inline=$ac_lbl_inline
   4188 	fi
   4189 fi
   4190 
   4191     CFLAGS="$save_CFLAGS"
   4192     if test ! -z "$ac_cv_lbl_inline" ; then
   4193 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
   4194 printf "%s\n" "$ac_cv_lbl_inline" >&6; }
   4195     else
   4196 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4197 printf "%s\n" "no" >&6; }
   4198     fi
   4199 
   4200 printf "%s\n" "#define inline $ac_cv_lbl_inline" >>confdefs.h
   4201 
   4202 
   4203 ac_header= ac_cache=
   4204 for ac_item in $ac_header_c_list
   4205 do
   4206   if test $ac_cache; then
   4207     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   4208     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   4209       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   4210     fi
   4211     ac_header= ac_cache=
   4212   elif test $ac_header; then
   4213     ac_cache=$ac_item
   4214   else
   4215     ac_header=$ac_item
   4216   fi
   4217 done
   4218 
   4219 
   4220 
   4221 
   4222 
   4223 
   4224 
   4225 
   4226 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   4227 then :
   4228 
   4229 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   4230 
   4231 fi
   4232 ac_fn_c_check_header_compile "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default"
   4233 if test "x$ac_cv_header_rpc_rpc_h" = xyes
   4234 then :
   4235   printf "%s\n" "#define HAVE_RPC_RPC_H 1" >>confdefs.h
   4236 
   4237 fi
   4238 ac_fn_c_check_header_compile "$LINENO" "rpc/rpcent.h" "ac_cv_header_rpc_rpcent_h" "$ac_includes_default"
   4239 if test "x$ac_cv_header_rpc_rpcent_h" = xyes
   4240 then :
   4241   printf "%s\n" "#define HAVE_RPC_RPCENT_H 1" >>confdefs.h
   4242 
   4243 fi
   4244 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
   4245 if test "x$ac_cv_header_net_if_h" = xyes
   4246 then :
   4247   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
   4248 
   4249 fi
   4250 
   4251 #
   4252 # Get the size of a void *, to know whether this is a 32-bit or 64-bit build.
   4253 #
   4254 # The cast to long int works around a bug in the HP C Compiler
   4255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   4256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   4257 # This bug is HP SR number 8606223364.
   4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   4259 printf %s "checking size of void *... " >&6; }
   4260 if test ${ac_cv_sizeof_void_p+y}
   4261 then :
   4262   printf %s "(cached) " >&6
   4263 else $as_nop
   4264   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
   4265 then :
   4266 
   4267 else $as_nop
   4268   if test "$ac_cv_type_void_p" = yes; then
   4269      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4270 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   4271 as_fn_error 77 "cannot compute sizeof (void *)
   4272 See \`config.log' for more details" "$LINENO" 5; }
   4273    else
   4274      ac_cv_sizeof_void_p=0
   4275    fi
   4276 fi
   4277 
   4278 fi
   4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   4280 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
   4281 
   4282 
   4283 
   4284 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
   4285 
   4286 
   4287 
   4288 #
   4289 # Get the size of a time_t, to know whether it's 32-bit or 64-bit.
   4290 #
   4291 # The cast to long int works around a bug in the HP C Compiler
   4292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   4293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   4294 # This bug is HP SR number 8606223364.
   4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
   4296 printf %s "checking size of time_t... " >&6; }
   4297 if test ${ac_cv_sizeof_time_t+y}
   4298 then :
   4299   printf %s "(cached) " >&6
   4300 else $as_nop
   4301   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "#include <time.h>
   4302 "
   4303 then :
   4304 
   4305 else $as_nop
   4306   if test "$ac_cv_type_time_t" = yes; then
   4307      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4308 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   4309 as_fn_error 77 "cannot compute sizeof (time_t)
   4310 See \`config.log' for more details" "$LINENO" 5; }
   4311    else
   4312      ac_cv_sizeof_time_t=0
   4313    fi
   4314 fi
   4315 
   4316 fi
   4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
   4318 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
   4319 
   4320 
   4321 
   4322 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
   4323 
   4324 
   4325 
   4326 case "$host_os" in
   4327 
   4328 darwin*)
   4329 	# Check whether --enable-universal was given.
   4330 if test ${enable_universal+y}
   4331 then :
   4332   enableval=$enable_universal;
   4333 fi
   4334 
   4335 	if test "$enable_universal" != "no"; then
   4336 		case "$host_os" in
   4337 
   4338 		darwin9.*)
   4339 			#
   4340 			# Leopard.  Build for x86 and 32-bit PowerPC, with
   4341 			# x86 first.  (That's what Apple does.)
   4342 			#
   4343 			V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
   4344 			LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
   4345 			;;
   4346 
   4347 		darwin10.*)
   4348 			#
   4349 			# Snow Leopard.  Build for x86-64 and x86, with
   4350 			# x86-64 first.  (That's what Apple does.)
   4351 			#
   4352 			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
   4353 			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
   4354 			;;
   4355 		esac
   4356 	fi
   4357 	;;
   4358 esac
   4359 
   4360 #
   4361 # Do we have pkg-config?
   4362 #
   4363 
   4364 
   4365 
   4366 
   4367 
   4368 
   4369 
   4370 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   4371 	if test -n "$ac_tool_prefix"; then
   4372   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   4373 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4375 printf %s "checking for $ac_word... " >&6; }
   4376 if test ${ac_cv_path_PKG_CONFIG+y}
   4377 then :
   4378   printf %s "(cached) " >&6
   4379 else $as_nop
   4380   case $PKG_CONFIG in
   4381   [\\/]* | ?:[\\/]*)
   4382   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   4383   ;;
   4384   *)
   4385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4386 for as_dir in $PATH
   4387 do
   4388   IFS=$as_save_IFS
   4389   case $as_dir in #(((
   4390     '') as_dir=./ ;;
   4391     */) ;;
   4392     *) as_dir=$as_dir/ ;;
   4393   esac
   4394     for ac_exec_ext in '' $ac_executable_extensions; do
   4395   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4396     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   4397     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4398     break 2
   4399   fi
   4400 done
   4401   done
   4402 IFS=$as_save_IFS
   4403 
   4404   ;;
   4405 esac
   4406 fi
   4407 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   4408 if test -n "$PKG_CONFIG"; then
   4409   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   4410 printf "%s\n" "$PKG_CONFIG" >&6; }
   4411 else
   4412   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4413 printf "%s\n" "no" >&6; }
   4414 fi
   4415 
   4416 
   4417 fi
   4418 if test -z "$ac_cv_path_PKG_CONFIG"; then
   4419   ac_pt_PKG_CONFIG=$PKG_CONFIG
   4420   # Extract the first word of "pkg-config", so it can be a program name with args.
   4421 set dummy pkg-config; ac_word=$2
   4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4423 printf %s "checking for $ac_word... " >&6; }
   4424 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   4425 then :
   4426   printf %s "(cached) " >&6
   4427 else $as_nop
   4428   case $ac_pt_PKG_CONFIG in
   4429   [\\/]* | ?:[\\/]*)
   4430   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   4431   ;;
   4432   *)
   4433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4434 for as_dir in $PATH
   4435 do
   4436   IFS=$as_save_IFS
   4437   case $as_dir in #(((
   4438     '') as_dir=./ ;;
   4439     */) ;;
   4440     *) as_dir=$as_dir/ ;;
   4441   esac
   4442     for ac_exec_ext in '' $ac_executable_extensions; do
   4443   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4444     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   4445     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4446     break 2
   4447   fi
   4448 done
   4449   done
   4450 IFS=$as_save_IFS
   4451 
   4452   ;;
   4453 esac
   4454 fi
   4455 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   4456 if test -n "$ac_pt_PKG_CONFIG"; then
   4457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   4458 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   4459 else
   4460   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4461 printf "%s\n" "no" >&6; }
   4462 fi
   4463 
   4464   if test "x$ac_pt_PKG_CONFIG" = x; then
   4465     PKG_CONFIG=""
   4466   else
   4467     case $cross_compiling:$ac_tool_warned in
   4468 yes:)
   4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4470 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4471 ac_tool_warned=yes ;;
   4472 esac
   4473     PKG_CONFIG=$ac_pt_PKG_CONFIG
   4474   fi
   4475 else
   4476   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   4477 fi
   4478 
   4479 fi
   4480 if test -n "$PKG_CONFIG"; then
   4481 	_pkg_min_version=0.17.0
   4482 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   4483 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   4484 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   4485 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4486 printf "%s\n" "yes" >&6; }
   4487 	else
   4488 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4489 printf "%s\n" "no" >&6; }
   4490 		PKG_CONFIG=""
   4491 	fi
   4492 fi
   4493 
   4494 #
   4495 # Do we have the brew command from Homebrew?
   4496 #
   4497 # Extract the first word of "brew", so it can be a program name with args.
   4498 set dummy brew; ac_word=$2
   4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4500 printf %s "checking for $ac_word... " >&6; }
   4501 if test ${ac_cv_path_BREW+y}
   4502 then :
   4503   printf %s "(cached) " >&6
   4504 else $as_nop
   4505   case $BREW in
   4506   [\\/]* | ?:[\\/]*)
   4507   ac_cv_path_BREW="$BREW" # Let the user override the test with a path.
   4508   ;;
   4509   *)
   4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4511 for as_dir in $PATH
   4512 do
   4513   IFS=$as_save_IFS
   4514   case $as_dir in #(((
   4515     '') as_dir=./ ;;
   4516     */) ;;
   4517     *) as_dir=$as_dir/ ;;
   4518   esac
   4519     for ac_exec_ext in '' $ac_executable_extensions; do
   4520   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4521     ac_cv_path_BREW="$as_dir$ac_word$ac_exec_ext"
   4522     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4523     break 2
   4524   fi
   4525 done
   4526   done
   4527 IFS=$as_save_IFS
   4528 
   4529   ;;
   4530 esac
   4531 fi
   4532 BREW=$ac_cv_path_BREW
   4533 if test -n "$BREW"; then
   4534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BREW" >&5
   4535 printf "%s\n" "$BREW" >&6; }
   4536 else
   4537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4538 printf "%s\n" "no" >&6; }
   4539 fi
   4540 
   4541 
   4542 
   4543 
   4544 # Check whether --with-smi was given.
   4545 if test ${with_smi+y}
   4546 then :
   4547   withval=$with_smi;
   4548 else $as_nop
   4549   with_smi=yes
   4550 fi
   4551 
   4552 
   4553 if test "x$with_smi" != "xno" ; then
   4554 	ac_fn_c_check_header_compile "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default"
   4555 if test "x$ac_cv_header_smi_h" = xyes
   4556 then :
   4557 
   4558 		#
   4559 		# OK, we found smi.h.  Do we have libsmi with smiInit?
   4560 		#
   4561 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5
   4562 printf %s "checking for smiInit in -lsmi... " >&6; }
   4563 if test ${ac_cv_lib_smi_smiInit+y}
   4564 then :
   4565   printf %s "(cached) " >&6
   4566 else $as_nop
   4567   ac_check_lib_save_LIBS=$LIBS
   4568 LIBS="-lsmi  $LIBS"
   4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4570 /* end confdefs.h.  */
   4571 
   4572 /* Override any GCC internal prototype to avoid an error.
   4573    Use char because int might match the return type of a GCC
   4574    builtin and then its argument prototype would still apply.  */
   4575 char smiInit ();
   4576 int
   4577 main (void)
   4578 {
   4579 return smiInit ();
   4580   ;
   4581   return 0;
   4582 }
   4583 _ACEOF
   4584 if ac_fn_c_try_link "$LINENO"
   4585 then :
   4586   ac_cv_lib_smi_smiInit=yes
   4587 else $as_nop
   4588   ac_cv_lib_smi_smiInit=no
   4589 fi
   4590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4591     conftest$ac_exeext conftest.$ac_ext
   4592 LIBS=$ac_check_lib_save_LIBS
   4593 fi
   4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5
   4595 printf "%s\n" "$ac_cv_lib_smi_smiInit" >&6; }
   4596 if test "x$ac_cv_lib_smi_smiInit" = xyes
   4597 then :
   4598 
   4599 			#
   4600 			# OK, we have libsmi with smiInit.  Can we use it?
   4601 			#
   4602 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5
   4603 printf %s "checking whether to enable libsmi... " >&6; }
   4604 			savedlibs="$LIBS"
   4605 			LIBS="-lsmi $LIBS"
   4606 			if test "$cross_compiling" = yes
   4607 then :
   4608 
   4609 					{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5
   4610 printf "%s\n" "not when cross-compiling" >&6; }
   4611 					LIBS="$savedlibs"
   4612 
   4613 
   4614 else $as_nop
   4615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4616 /* end confdefs.h.  */
   4617 
   4618 /* libsmi available check */
   4619 #include <stdio.h>
   4620 #include <stdlib.h>
   4621 #include <string.h>
   4622 #include <smi.h>
   4623 int main()
   4624 {
   4625   int current, revision, age, n;
   4626   const int required = 2;
   4627   if (smiInit(""))
   4628     exit(1);
   4629   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
   4630     exit(2);
   4631   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
   4632   if (n != 3)
   4633     exit(3);
   4634   if (required < current - age || required > current)
   4635     exit(4);
   4636   exit(0);
   4637 }
   4638 
   4639 
   4640 _ACEOF
   4641 if ac_fn_c_try_run "$LINENO"
   4642 then :
   4643 
   4644 					{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4645 printf "%s\n" "yes" >&6; }
   4646 
   4647 printf "%s\n" "#define USE_LIBSMI 1" >>confdefs.h
   4648 
   4649 
   4650 else $as_nop
   4651 
   4652 																																			case $? in
   4653 					  1) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5
   4654 printf "%s\n" "no - smiInit failed" >&6; } ;;
   4655 					  2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5
   4656 printf "%s\n" "no - header/library version mismatch" >&6; } ;;
   4657 					  3) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5
   4658 printf "%s\n" "no - can't determine library version" >&6; } ;;
   4659 					  4) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5
   4660 printf "%s\n" "no - too old" >&6; } ;;
   4661 					  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4662 printf "%s\n" "no" >&6; } ;;
   4663 					esac
   4664 					LIBS="$savedlibs"
   4665 
   4666 fi
   4667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4668   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4669 fi
   4670 
   4671 
   4672 fi
   4673 
   4674 
   4675 fi
   4676 
   4677 fi
   4678 
   4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the instrument functions code" >&5
   4680 printf %s "checking whether to enable the instrument functions code... " >&6; }
   4681 # Check whether --enable-instrument-functions was given.
   4682 if test ${enable_instrument_functions+y}
   4683 then :
   4684   enableval=$enable_instrument_functions;
   4685 else $as_nop
   4686   enableval=no
   4687 fi
   4688 
   4689 case "$enableval" in
   4690 yes)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4691 printf "%s\n" "yes" >&6; }
   4692 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
   4693 printf %s "checking for bfd_init in -lbfd... " >&6; }
   4694 if test ${ac_cv_lib_bfd_bfd_init+y}
   4695 then :
   4696   printf %s "(cached) " >&6
   4697 else $as_nop
   4698   ac_check_lib_save_LIBS=$LIBS
   4699 LIBS="-lbfd  $LIBS"
   4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4701 /* end confdefs.h.  */
   4702 
   4703 /* Override any GCC internal prototype to avoid an error.
   4704    Use char because int might match the return type of a GCC
   4705    builtin and then its argument prototype would still apply.  */
   4706 char bfd_init ();
   4707 int
   4708 main (void)
   4709 {
   4710 return bfd_init ();
   4711   ;
   4712   return 0;
   4713 }
   4714 _ACEOF
   4715 if ac_fn_c_try_link "$LINENO"
   4716 then :
   4717   ac_cv_lib_bfd_bfd_init=yes
   4718 else $as_nop
   4719   ac_cv_lib_bfd_bfd_init=no
   4720 fi
   4721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4722     conftest$ac_exeext conftest.$ac_ext
   4723 LIBS=$ac_check_lib_save_LIBS
   4724 fi
   4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
   4726 printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; }
   4727 if test "x$ac_cv_lib_bfd_bfd_init" = xyes
   4728 then :
   4729   true
   4730 else $as_nop
   4731   as_fn_error $? "--enable-instrument-functions was given, but test for library libbfd failed. Please install the 'binutils-dev' package." "$LINENO" 5
   4732 fi
   4733 
   4734 
   4735 printf "%s\n" "#define ENABLE_INSTRUMENT_FUNCTIONS 1" >>confdefs.h
   4736 
   4737 	LOCALSRC="$LOCALSRC instrument-functions.c"
   4738 	# Add '-finstrument-functions' instrumentation option to generate
   4739 	# instrumentation calls for entry and exit to functions.
   4740 	# Try to avoid Address Space Layout Randomization (ALSR).
   4741 	CFLAGS="$CFLAGS -O0 -ggdb -finstrument-functions -fno-stack-protector -fno-pic"
   4742 	LDFLAGS="$LDFLAGS -O0 -ggdb -fno-stack-protector -no-pie"
   4743 	LIBS="$LIBS -lbfd"
   4744 	;;
   4745 *)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4746 printf "%s\n" "no" >&6; }
   4747 	;;
   4748 esac
   4749 
   4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5
   4751 printf %s "checking whether to enable the possibly-buggy SMB printer... " >&6; }
   4752 # Check whether --enable-smb was given.
   4753 if test ${enable_smb+y}
   4754 then :
   4755   enableval=$enable_smb;
   4756 else $as_nop
   4757   enableval=no
   4758 fi
   4759 
   4760 case "$enableval" in
   4761 yes)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4762 printf "%s\n" "yes" >&6; }
   4763 
   4764 printf "%s\n" "#define ENABLE_SMB 1" >>confdefs.h
   4765 
   4766 	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
   4767 	;;
   4768 *)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4769 printf "%s\n" "no" >&6; }
   4770 	;;
   4771 esac
   4772 
   4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5
   4774 printf %s "checking whether to drop root privileges by default... " >&6; }
   4775 
   4776 # Check whether --with-user was given.
   4777 if test ${with_user+y}
   4778 then :
   4779   withval=$with_user;
   4780 else $as_nop
   4781   withval=no
   4782 fi
   4783 
   4784 case "$withval" in #(
   4785   no) :
   4786     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4787 printf "%s\n" "no" >&6; } ;; #(
   4788   ''|yes) :
   4789     as_fn_error $? "--with-user requires a username" "$LINENO" 5 ;; #(
   4790   *) :
   4791 
   4792 
   4793 printf "%s\n" "#define WITH_USER \"$withval\"" >>confdefs.h
   4794 
   4795 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to user \"$withval\"" >&5
   4796 printf "%s\n" "yes, to user \"$withval\"" >&6; }
   4797 
   4798  ;;
   4799 esac
   4800 
   4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5
   4802 printf %s "checking whether to chroot... " >&6; }
   4803 
   4804 # Check whether --with-chroot was given.
   4805 if test ${with_chroot+y}
   4806 then :
   4807   withval=$with_chroot;
   4808 else $as_nop
   4809   withval=no
   4810 
   4811 fi
   4812 
   4813 case "$withval" in #(
   4814   no) :
   4815     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4816 printf "%s\n" "no" >&6; } ;; #(
   4817   ''|yes) :
   4818     as_fn_error $? "--with-chroot requires a directory" "$LINENO" 5 ;; #(
   4819   *) :
   4820 
   4821 
   4822 printf "%s\n" "#define WITH_CHROOT \"$withval\"" >>confdefs.h
   4823 
   4824 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to directory \"$withval\"" >&5
   4825 printf "%s\n" "yes, to directory \"$withval\"" >&6; }
   4826 
   4827  ;;
   4828 esac
   4829 
   4830 
   4831 # Check whether --with-sandbox-capsicum was given.
   4832 if test ${with_sandbox_capsicum+y}
   4833 then :
   4834   withval=$with_sandbox_capsicum;
   4835 fi
   4836 
   4837 #
   4838 # Check whether various functions are available.  If any are, set
   4839 # ac_lbl_capsicum_function_seen to yes; if any are not, set
   4840 # ac_lbl_capsicum_function_not_seen to yes.
   4841 #
   4842 # We don't check cap_rights_init(), as it's a macro, wrapping another
   4843 # function, in at least some versions of FreeBSD, and AC_CHECK_FUNCS()
   4844 # doesn't handle that.
   4845 #
   4846 # All of the ones we check for must be available in order to enable
   4847 # capsicum sandboxing.
   4848 #
   4849 # XXX - do we need to check for all of them, or are there some that, if
   4850 # present, imply others are present?
   4851 #
   4852 if test -z "$with_sandbox_capsicum" || test "$with_sandbox_capsicum" != "no" ; then
   4853 	#
   4854 	# First, make sure we have the required header.
   4855 	#
   4856 	ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "$ac_includes_default"
   4857 if test "x$ac_cv_header_sys_capsicum_h" = xyes
   4858 then :
   4859 
   4860 		#
   4861 		# We do; now make sure we have the required functions.
   4862 		#
   4863 
   4864   for ac_func in cap_enter cap_rights_limit cap_ioctls_limit openat
   4865 do :
   4866   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
   4867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   4868 if eval test \"x\$"$as_ac_var"\" = x"yes"
   4869 then :
   4870   cat >>confdefs.h <<_ACEOF
   4871 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
   4872 _ACEOF
   4873  ac_lbl_capsicum_function_seen=yes
   4874 else $as_nop
   4875   ac_lbl_capsicum_function_not_seen=yes
   4876 fi
   4877 
   4878 done
   4879 
   4880 fi
   4881 
   4882 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcasper" >&5
   4883 printf %s "checking for cap_init in -lcasper... " >&6; }
   4884 if test ${ac_cv_lib_casper_cap_init+y}
   4885 then :
   4886   printf %s "(cached) " >&6
   4887 else $as_nop
   4888   ac_check_lib_save_LIBS=$LIBS
   4889 LIBS="-lcasper  $LIBS"
   4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4891 /* end confdefs.h.  */
   4892 
   4893 /* Override any GCC internal prototype to avoid an error.
   4894    Use char because int might match the return type of a GCC
   4895    builtin and then its argument prototype would still apply.  */
   4896 char cap_init ();
   4897 int
   4898 main (void)
   4899 {
   4900 return cap_init ();
   4901   ;
   4902   return 0;
   4903 }
   4904 _ACEOF
   4905 if ac_fn_c_try_link "$LINENO"
   4906 then :
   4907   ac_cv_lib_casper_cap_init=yes
   4908 else $as_nop
   4909   ac_cv_lib_casper_cap_init=no
   4910 fi
   4911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4912     conftest$ac_exeext conftest.$ac_ext
   4913 LIBS=$ac_check_lib_save_LIBS
   4914 fi
   4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_casper_cap_init" >&5
   4916 printf "%s\n" "$ac_cv_lib_casper_cap_init" >&6; }
   4917 if test "x$ac_cv_lib_casper_cap_init" = xyes
   4918 then :
   4919   LIBS="$LIBS -lcasper"
   4920 fi
   4921 
   4922 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_gethostbyaddr in -lcap_dns" >&5
   4923 printf %s "checking for cap_gethostbyaddr in -lcap_dns... " >&6; }
   4924 if test ${ac_cv_lib_cap_dns_cap_gethostbyaddr+y}
   4925 then :
   4926   printf %s "(cached) " >&6
   4927 else $as_nop
   4928   ac_check_lib_save_LIBS=$LIBS
   4929 LIBS="-lcap_dns  $LIBS"
   4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4931 /* end confdefs.h.  */
   4932 
   4933 /* Override any GCC internal prototype to avoid an error.
   4934    Use char because int might match the return type of a GCC
   4935    builtin and then its argument prototype would still apply.  */
   4936 char cap_gethostbyaddr ();
   4937 int
   4938 main (void)
   4939 {
   4940 return cap_gethostbyaddr ();
   4941   ;
   4942   return 0;
   4943 }
   4944 _ACEOF
   4945 if ac_fn_c_try_link "$LINENO"
   4946 then :
   4947   ac_cv_lib_cap_dns_cap_gethostbyaddr=yes
   4948 else $as_nop
   4949   ac_cv_lib_cap_dns_cap_gethostbyaddr=no
   4950 fi
   4951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4952     conftest$ac_exeext conftest.$ac_ext
   4953 LIBS=$ac_check_lib_save_LIBS
   4954 fi
   4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_dns_cap_gethostbyaddr" >&5
   4956 printf "%s\n" "$ac_cv_lib_cap_dns_cap_gethostbyaddr" >&6; }
   4957 if test "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = xyes
   4958 then :
   4959   LIBS="$LIBS -lcap_dns"
   4960 fi
   4961 
   4962 fi
   4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using capsicum" >&5
   4964 printf %s "checking whether to sandbox using capsicum... " >&6; }
   4965 if test "x$ac_lbl_capsicum_function_seen" = "xyes" -a "x$ac_lbl_capsicum_function_not_seen" != "xyes"; then
   4966 
   4967 printf "%s\n" "#define HAVE_CAPSICUM 1" >>confdefs.h
   4968 
   4969 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4970 printf "%s\n" "yes" >&6; }
   4971 else
   4972 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4973 printf "%s\n" "no" >&6; }
   4974 fi
   4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using Casper library" >&5
   4976 printf %s "checking whether to sandbox using Casper library... " >&6; }
   4977 if test "x$ac_cv_lib_casper_cap_init" = "xyes" -a "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = "xyes"; then
   4978 
   4979 printf "%s\n" "#define HAVE_CASPER 1" >>confdefs.h
   4980 
   4981 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4982 printf "%s\n" "yes" >&6; }
   4983 else
   4984 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4985 printf "%s\n" "no" >&6; }
   4986 fi
   4987 
   4988 #
   4989 # We must check this before checking whether to check the OS's IPv6,
   4990 # support because, on some platforms (such as SunOS 5.x), the test
   4991 # program requires the extra networking libraries.
   4992 #
   4993 
   4994     # Most operating systems have gethostbyaddr() in the default searched
   4995     # libraries (i.e. libc):
   4996     # Some OSes (eg. Solaris) place it in libnsl
   4997     # Some strange OSes (SINIX) have it in libsocket:
   4998     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
   4999 printf %s "checking for library containing gethostbyaddr... " >&6; }
   5000 if test ${ac_cv_search_gethostbyaddr+y}
   5001 then :
   5002   printf %s "(cached) " >&6
   5003 else $as_nop
   5004   ac_func_search_save_LIBS=$LIBS
   5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5006 /* end confdefs.h.  */
   5007 
   5008 /* Override any GCC internal prototype to avoid an error.
   5009    Use char because int might match the return type of a GCC
   5010    builtin and then its argument prototype would still apply.  */
   5011 char gethostbyaddr ();
   5012 int
   5013 main (void)
   5014 {
   5015 return gethostbyaddr ();
   5016   ;
   5017   return 0;
   5018 }
   5019 _ACEOF
   5020 for ac_lib in '' network nsl socket resolv
   5021 do
   5022   if test -z "$ac_lib"; then
   5023     ac_res="none required"
   5024   else
   5025     ac_res=-l$ac_lib
   5026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5027   fi
   5028   if ac_fn_c_try_link "$LINENO"
   5029 then :
   5030   ac_cv_search_gethostbyaddr=$ac_res
   5031 fi
   5032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5033     conftest$ac_exeext
   5034   if test ${ac_cv_search_gethostbyaddr+y}
   5035 then :
   5036   break
   5037 fi
   5038 done
   5039 if test ${ac_cv_search_gethostbyaddr+y}
   5040 then :
   5041 
   5042 else $as_nop
   5043   ac_cv_search_gethostbyaddr=no
   5044 fi
   5045 rm conftest.$ac_ext
   5046 LIBS=$ac_func_search_save_LIBS
   5047 fi
   5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
   5049 printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; }
   5050 ac_res=$ac_cv_search_gethostbyaddr
   5051 if test "$ac_res" != no
   5052 then :
   5053   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5054 
   5055 fi
   5056 
   5057     # Unfortunately libsocket sometimes depends on libnsl and
   5058     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
   5059     if test "$ac_cv_search_gethostbyaddr" = "no"
   5060     then
   5061 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lsocket" >&5
   5062 printf %s "checking for gethostbyaddr in -lsocket... " >&6; }
   5063 if test ${ac_cv_lib_socket_gethostbyaddr+y}
   5064 then :
   5065   printf %s "(cached) " >&6
   5066 else $as_nop
   5067   ac_check_lib_save_LIBS=$LIBS
   5068 LIBS="-lsocket -lnsl $LIBS"
   5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5070 /* end confdefs.h.  */
   5071 
   5072 /* Override any GCC internal prototype to avoid an error.
   5073    Use char because int might match the return type of a GCC
   5074    builtin and then its argument prototype would still apply.  */
   5075 char gethostbyaddr ();
   5076 int
   5077 main (void)
   5078 {
   5079 return gethostbyaddr ();
   5080   ;
   5081   return 0;
   5082 }
   5083 _ACEOF
   5084 if ac_fn_c_try_link "$LINENO"
   5085 then :
   5086   ac_cv_lib_socket_gethostbyaddr=yes
   5087 else $as_nop
   5088   ac_cv_lib_socket_gethostbyaddr=no
   5089 fi
   5090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5091     conftest$ac_exeext conftest.$ac_ext
   5092 LIBS=$ac_check_lib_save_LIBS
   5093 fi
   5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyaddr" >&5
   5095 printf "%s\n" "$ac_cv_lib_socket_gethostbyaddr" >&6; }
   5096 if test "x$ac_cv_lib_socket_gethostbyaddr" = xyes
   5097 then :
   5098   LIBS="-lsocket -lnsl $LIBS"
   5099 fi
   5100 
   5101     fi
   5102     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   5103 printf %s "checking for library containing socket... " >&6; }
   5104 if test ${ac_cv_search_socket+y}
   5105 then :
   5106   printf %s "(cached) " >&6
   5107 else $as_nop
   5108   ac_func_search_save_LIBS=$LIBS
   5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5110 /* end confdefs.h.  */
   5111 
   5112 /* Override any GCC internal prototype to avoid an error.
   5113    Use char because int might match the return type of a GCC
   5114    builtin and then its argument prototype would still apply.  */
   5115 char socket ();
   5116 int
   5117 main (void)
   5118 {
   5119 return socket ();
   5120   ;
   5121   return 0;
   5122 }
   5123 _ACEOF
   5124 for ac_lib in '' socket
   5125 do
   5126   if test -z "$ac_lib"; then
   5127     ac_res="none required"
   5128   else
   5129     ac_res=-l$ac_lib
   5130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5131   fi
   5132   if ac_fn_c_try_link "$LINENO"
   5133 then :
   5134   ac_cv_search_socket=$ac_res
   5135 fi
   5136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5137     conftest$ac_exeext
   5138   if test ${ac_cv_search_socket+y}
   5139 then :
   5140   break
   5141 fi
   5142 done
   5143 if test ${ac_cv_search_socket+y}
   5144 then :
   5145 
   5146 else $as_nop
   5147   ac_cv_search_socket=no
   5148 fi
   5149 rm conftest.$ac_ext
   5150 LIBS=$ac_func_search_save_LIBS
   5151 fi
   5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   5153 printf "%s\n" "$ac_cv_search_socket" >&6; }
   5154 ac_res=$ac_cv_search_socket
   5155 if test "$ac_res" != no
   5156 then :
   5157   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5158 
   5159 else $as_nop
   5160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   5161 printf %s "checking for socket in -lsocket... " >&6; }
   5162 if test ${ac_cv_lib_socket_socket+y}
   5163 then :
   5164   printf %s "(cached) " >&6
   5165 else $as_nop
   5166   ac_check_lib_save_LIBS=$LIBS
   5167 LIBS="-lsocket -lnsl $LIBS"
   5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5169 /* end confdefs.h.  */
   5170 
   5171 /* Override any GCC internal prototype to avoid an error.
   5172    Use char because int might match the return type of a GCC
   5173    builtin and then its argument prototype would still apply.  */
   5174 char socket ();
   5175 int
   5176 main (void)
   5177 {
   5178 return socket ();
   5179   ;
   5180   return 0;
   5181 }
   5182 _ACEOF
   5183 if ac_fn_c_try_link "$LINENO"
   5184 then :
   5185   ac_cv_lib_socket_socket=yes
   5186 else $as_nop
   5187   ac_cv_lib_socket_socket=no
   5188 fi
   5189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5190     conftest$ac_exeext conftest.$ac_ext
   5191 LIBS=$ac_check_lib_save_LIBS
   5192 fi
   5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   5194 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
   5195 if test "x$ac_cv_lib_socket_socket" = xyes
   5196 then :
   5197   LIBS="-lsocket -lnsl $LIBS"
   5198 fi
   5199 
   5200 fi
   5201 
   5202     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
   5203     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
   5204 printf %s "checking for library containing putmsg... " >&6; }
   5205 if test ${ac_cv_search_putmsg+y}
   5206 then :
   5207   printf %s "(cached) " >&6
   5208 else $as_nop
   5209   ac_func_search_save_LIBS=$LIBS
   5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5211 /* end confdefs.h.  */
   5212 
   5213 /* Override any GCC internal prototype to avoid an error.
   5214    Use char because int might match the return type of a GCC
   5215    builtin and then its argument prototype would still apply.  */
   5216 char putmsg ();
   5217 int
   5218 main (void)
   5219 {
   5220 return putmsg ();
   5221   ;
   5222   return 0;
   5223 }
   5224 _ACEOF
   5225 for ac_lib in '' str
   5226 do
   5227   if test -z "$ac_lib"; then
   5228     ac_res="none required"
   5229   else
   5230     ac_res=-l$ac_lib
   5231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5232   fi
   5233   if ac_fn_c_try_link "$LINENO"
   5234 then :
   5235   ac_cv_search_putmsg=$ac_res
   5236 fi
   5237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5238     conftest$ac_exeext
   5239   if test ${ac_cv_search_putmsg+y}
   5240 then :
   5241   break
   5242 fi
   5243 done
   5244 if test ${ac_cv_search_putmsg+y}
   5245 then :
   5246 
   5247 else $as_nop
   5248   ac_cv_search_putmsg=no
   5249 fi
   5250 rm conftest.$ac_ext
   5251 LIBS=$ac_func_search_save_LIBS
   5252 fi
   5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
   5254 printf "%s\n" "$ac_cv_search_putmsg" >&6; }
   5255 ac_res=$ac_cv_search_putmsg
   5256 if test "$ac_res" != no
   5257 then :
   5258   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5259 
   5260 fi
   5261 
   5262 
   5263 
   5264 #
   5265 # Check whether AF_INET6 and struct in6_addr are defined.
   5266 # If they aren't both defined, we don't have sufficient OS
   5267 # support for IPv6, so we don't look for IPv6 support libraries,
   5268 # and we define AF_INET6 and struct in6_addr ourselves.
   5269 #
   5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports IPv6" >&5
   5271 printf %s "checking whether the operating system supports IPv6... " >&6; }
   5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5273 /* end confdefs.h.  */
   5274 
   5275 
   5276 #include <string.h>
   5277 /* AF_INET6 available check */
   5278 #include <sys/types.h>
   5279 #ifdef _WIN32
   5280 #include <ws2tcpip.h>
   5281 #else
   5282 #include <sys/socket.h>
   5283 #include <netinet/in.h>
   5284 #endif
   5285 #ifdef AF_INET6
   5286 void
   5287 foo(struct in6_addr *addr)
   5288 {
   5289  memset(addr, 0, sizeof (struct in6_addr));
   5290 }
   5291 #else
   5292 #error "AF_INET6 not defined"
   5293 #endif
   5294 
   5295 
   5296 _ACEOF
   5297 if ac_fn_c_try_compile "$LINENO"
   5298 then :
   5299 
   5300 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5301 printf "%s\n" "yes" >&6; }
   5302 
   5303 printf "%s\n" "#define HAVE_OS_IPV6_SUPPORT 1" >>confdefs.h
   5304 
   5305 	ipv6=yes
   5306 
   5307 else $as_nop
   5308 
   5309 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5310 printf "%s\n" "no" >&6; }
   5311 	ipv6=no
   5312 
   5313 
   5314 fi
   5315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5316 
   5317 ipv6type=unknown
   5318 ipv6lib=none
   5319 ipv6trylibc=no
   5320 
   5321 if test "$ipv6" = "yes"; then
   5322 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
   5323 printf %s "checking ipv6 stack type... " >&6; }
   5324 	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
   5325 		case $i in
   5326 		inria)
   5327 						ac_ext=c
   5328 ac_cpp='$CPP $CPPFLAGS'
   5329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   5333 printf %s "checking how to run the C preprocessor... " >&6; }
   5334 # On Suns, sometimes $CPP names a directory.
   5335 if test -n "$CPP" && test -d "$CPP"; then
   5336   CPP=
   5337 fi
   5338 if test -z "$CPP"; then
   5339   if test ${ac_cv_prog_CPP+y}
   5340 then :
   5341   printf %s "(cached) " >&6
   5342 else $as_nop
   5343       # Double quotes because $CC needs to be expanded
   5344     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
   5345     do
   5346       ac_preproc_ok=false
   5347 for ac_c_preproc_warn_flag in '' yes
   5348 do
   5349   # Use a header file that comes with gcc, so configuring glibc
   5350   # with a fresh cross-compiler works.
   5351   # On the NeXT, cc -E runs the code through the compiler's parser,
   5352   # not just through cpp. "Syntax error" is here to catch this case.
   5353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5354 /* end confdefs.h.  */
   5355 #include <limits.h>
   5356 		     Syntax error
   5357 _ACEOF
   5358 if ac_fn_c_try_cpp "$LINENO"
   5359 then :
   5360 
   5361 else $as_nop
   5362   # Broken: fails on valid input.
   5363 continue
   5364 fi
   5365 rm -f conftest.err conftest.i conftest.$ac_ext
   5366 
   5367   # OK, works on sane cases.  Now check whether nonexistent headers
   5368   # can be detected and how.
   5369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5370 /* end confdefs.h.  */
   5371 #include <ac_nonexistent.h>
   5372 _ACEOF
   5373 if ac_fn_c_try_cpp "$LINENO"
   5374 then :
   5375   # Broken: success on invalid input.
   5376 continue
   5377 else $as_nop
   5378   # Passes both tests.
   5379 ac_preproc_ok=:
   5380 break
   5381 fi
   5382 rm -f conftest.err conftest.i conftest.$ac_ext
   5383 
   5384 done
   5385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5386 rm -f conftest.i conftest.err conftest.$ac_ext
   5387 if $ac_preproc_ok
   5388 then :
   5389   break
   5390 fi
   5391 
   5392     done
   5393     ac_cv_prog_CPP=$CPP
   5394 
   5395 fi
   5396   CPP=$ac_cv_prog_CPP
   5397 else
   5398   ac_cv_prog_CPP=$CPP
   5399 fi
   5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   5401 printf "%s\n" "$CPP" >&6; }
   5402 ac_preproc_ok=false
   5403 for ac_c_preproc_warn_flag in '' yes
   5404 do
   5405   # Use a header file that comes with gcc, so configuring glibc
   5406   # with a fresh cross-compiler works.
   5407   # On the NeXT, cc -E runs the code through the compiler's parser,
   5408   # not just through cpp. "Syntax error" is here to catch this case.
   5409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5410 /* end confdefs.h.  */
   5411 #include <limits.h>
   5412 		     Syntax error
   5413 _ACEOF
   5414 if ac_fn_c_try_cpp "$LINENO"
   5415 then :
   5416 
   5417 else $as_nop
   5418   # Broken: fails on valid input.
   5419 continue
   5420 fi
   5421 rm -f conftest.err conftest.i conftest.$ac_ext
   5422 
   5423   # OK, works on sane cases.  Now check whether nonexistent headers
   5424   # can be detected and how.
   5425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5426 /* end confdefs.h.  */
   5427 #include <ac_nonexistent.h>
   5428 _ACEOF
   5429 if ac_fn_c_try_cpp "$LINENO"
   5430 then :
   5431   # Broken: success on invalid input.
   5432 continue
   5433 else $as_nop
   5434   # Passes both tests.
   5435 ac_preproc_ok=:
   5436 break
   5437 fi
   5438 rm -f conftest.err conftest.i conftest.$ac_ext
   5439 
   5440 done
   5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5442 rm -f conftest.i conftest.err conftest.$ac_ext
   5443 if $ac_preproc_ok
   5444 then :
   5445 
   5446 else $as_nop
   5447   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5448 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   5449 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   5450 See \`config.log' for more details" "$LINENO" 5; }
   5451 fi
   5452 
   5453 ac_ext=c
   5454 ac_cpp='$CPP $CPPFLAGS'
   5455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5458 
   5459 
   5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   5461 printf %s "checking for grep that handles long lines and -e... " >&6; }
   5462 if test ${ac_cv_path_GREP+y}
   5463 then :
   5464   printf %s "(cached) " >&6
   5465 else $as_nop
   5466   if test -z "$GREP"; then
   5467   ac_path_GREP_found=false
   5468   # Loop through the user's path and test for each of PROGNAME-LIST
   5469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5471 do
   5472   IFS=$as_save_IFS
   5473   case $as_dir in #(((
   5474     '') as_dir=./ ;;
   5475     */) ;;
   5476     *) as_dir=$as_dir/ ;;
   5477   esac
   5478     for ac_prog in grep ggrep
   5479    do
   5480     for ac_exec_ext in '' $ac_executable_extensions; do
   5481       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
   5482       as_fn_executable_p "$ac_path_GREP" || continue
   5483 # Check for GNU ac_path_GREP and select it if it is found.
   5484   # Check for GNU $ac_path_GREP
   5485 case `"$ac_path_GREP" --version 2>&1` in
   5486 *GNU*)
   5487   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   5488 *)
   5489   ac_count=0
   5490   printf %s 0123456789 >"conftest.in"
   5491   while :
   5492   do
   5493     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5494     mv "conftest.tmp" "conftest.in"
   5495     cp "conftest.in" "conftest.nl"
   5496     printf "%s\n" 'GREP' >> "conftest.nl"
   5497     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5498     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5499     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5500     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5501       # Best one so far, save it but keep looking for a better one
   5502       ac_cv_path_GREP="$ac_path_GREP"
   5503       ac_path_GREP_max=$ac_count
   5504     fi
   5505     # 10*(2^10) chars as input seems more than enough
   5506     test $ac_count -gt 10 && break
   5507   done
   5508   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5509 esac
   5510 
   5511       $ac_path_GREP_found && break 3
   5512     done
   5513   done
   5514   done
   5515 IFS=$as_save_IFS
   5516   if test -z "$ac_cv_path_GREP"; then
   5517     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5518   fi
   5519 else
   5520   ac_cv_path_GREP=$GREP
   5521 fi
   5522 
   5523 fi
   5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   5525 printf "%s\n" "$ac_cv_path_GREP" >&6; }
   5526  GREP="$ac_cv_path_GREP"
   5527 
   5528 
   5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5530 printf %s "checking for egrep... " >&6; }
   5531 if test ${ac_cv_path_EGREP+y}
   5532 then :
   5533   printf %s "(cached) " >&6
   5534 else $as_nop
   5535   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5536    then ac_cv_path_EGREP="$GREP -E"
   5537    else
   5538      if test -z "$EGREP"; then
   5539   ac_path_EGREP_found=false
   5540   # Loop through the user's path and test for each of PROGNAME-LIST
   5541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5543 do
   5544   IFS=$as_save_IFS
   5545   case $as_dir in #(((
   5546     '') as_dir=./ ;;
   5547     */) ;;
   5548     *) as_dir=$as_dir/ ;;
   5549   esac
   5550     for ac_prog in egrep
   5551    do
   5552     for ac_exec_ext in '' $ac_executable_extensions; do
   5553       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
   5554       as_fn_executable_p "$ac_path_EGREP" || continue
   5555 # Check for GNU ac_path_EGREP and select it if it is found.
   5556   # Check for GNU $ac_path_EGREP
   5557 case `"$ac_path_EGREP" --version 2>&1` in
   5558 *GNU*)
   5559   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5560 *)
   5561   ac_count=0
   5562   printf %s 0123456789 >"conftest.in"
   5563   while :
   5564   do
   5565     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5566     mv "conftest.tmp" "conftest.in"
   5567     cp "conftest.in" "conftest.nl"
   5568     printf "%s\n" 'EGREP' >> "conftest.nl"
   5569     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5570     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5571     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5572     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5573       # Best one so far, save it but keep looking for a better one
   5574       ac_cv_path_EGREP="$ac_path_EGREP"
   5575       ac_path_EGREP_max=$ac_count
   5576     fi
   5577     # 10*(2^10) chars as input seems more than enough
   5578     test $ac_count -gt 10 && break
   5579   done
   5580   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5581 esac
   5582 
   5583       $ac_path_EGREP_found && break 3
   5584     done
   5585   done
   5586   done
   5587 IFS=$as_save_IFS
   5588   if test -z "$ac_cv_path_EGREP"; then
   5589     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5590   fi
   5591 else
   5592   ac_cv_path_EGREP=$EGREP
   5593 fi
   5594 
   5595    fi
   5596 fi
   5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5598 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
   5599  EGREP="$ac_cv_path_EGREP"
   5600 
   5601 
   5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5603 /* end confdefs.h.  */
   5604 #include <netinet/in.h>
   5605 #ifdef IPV6_INRIA_VERSION
   5606 yes
   5607 #endif
   5608 _ACEOF
   5609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5610   $EGREP "yes" >/dev/null 2>&1
   5611 then :
   5612   ipv6type=$i
   5613 fi
   5614 rm -rf conftest*
   5615 
   5616 			;;
   5617 		kame)
   5618 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5619 /* end confdefs.h.  */
   5620 #include <netinet/in.h>
   5621 #ifdef __KAME__
   5622 yes
   5623 #endif
   5624 _ACEOF
   5625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5626   $EGREP "yes" >/dev/null 2>&1
   5627 then :
   5628   ipv6type=$i;
   5629 				ipv6lib=inet6;
   5630 				ipv6libdir=/usr/local/v6/lib;
   5631 				ipv6trylibc=yes
   5632 fi
   5633 rm -rf conftest*
   5634 
   5635 			;;
   5636 		linux-glibc)
   5637 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5638 /* end confdefs.h.  */
   5639 #include <features.h>
   5640 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
   5641 yes
   5642 #endif
   5643 _ACEOF
   5644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5645   $EGREP "yes" >/dev/null 2>&1
   5646 then :
   5647   ipv6type=$i
   5648 fi
   5649 rm -rf conftest*
   5650 
   5651 			;;
   5652 		linux-libinet6)
   5653 																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
   5654 				ipv6type=$i
   5655 				ipv6lib=inet6
   5656 				ipv6libdir=/usr/inet6/lib
   5657 				ipv6trylibc=yes;
   5658 				CFLAGS="-I/usr/inet6/include $CFLAGS"
   5659 			fi
   5660 			;;
   5661 		toshiba)
   5662 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5663 /* end confdefs.h.  */
   5664 #include <sys/param.h>
   5665 #ifdef _TOSHIBA_INET6
   5666 yes
   5667 #endif
   5668 _ACEOF
   5669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5670   $EGREP "yes" >/dev/null 2>&1
   5671 then :
   5672   ipv6type=$i;
   5673 				ipv6lib=inet6;
   5674 				ipv6libdir=/usr/local/v6/lib
   5675 fi
   5676 rm -rf conftest*
   5677 
   5678 			;;
   5679 		v6d)
   5680 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5681 /* end confdefs.h.  */
   5682 #include </usr/local/v6/include/sys/v6config.h>
   5683 #ifdef __V6D__
   5684 yes
   5685 #endif
   5686 _ACEOF
   5687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5688   $EGREP "yes" >/dev/null 2>&1
   5689 then :
   5690   ipv6type=$i;
   5691 				ipv6lib=v6;
   5692 				ipv6libdir=/usr/local/v6/lib;
   5693 				CFLAGS="-I/usr/local/v6/include $CFLAGS"
   5694 fi
   5695 rm -rf conftest*
   5696 
   5697 			;;
   5698 		zeta)
   5699 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5700 /* end confdefs.h.  */
   5701 #include <sys/param.h>
   5702 #ifdef _ZETA_MINAMI_INET6
   5703 yes
   5704 #endif
   5705 _ACEOF
   5706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5707   $EGREP "yes" >/dev/null 2>&1
   5708 then :
   5709   ipv6type=$i;
   5710 				ipv6lib=inet6;
   5711 				ipv6libdir=/usr/local/v6/lib
   5712 fi
   5713 rm -rf conftest*
   5714 
   5715 			;;
   5716 		esac
   5717 		if test "$ipv6type" != "unknown"; then
   5718 			break
   5719 		fi
   5720 	done
   5721 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
   5722 printf "%s\n" "$ipv6type" >&6; }
   5723 fi
   5724 
   5725 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
   5726 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
   5727 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
   5728 		echo "You have $ipv6lib library, using it"
   5729 	else
   5730 		if test "$ipv6trylibc" = "yes"; then
   5731 			echo "You do not have $ipv6lib library, using libc"
   5732 		else
   5733 			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
   5734 			echo "You need to fetch lib$ipv6lib.a from appropriate"
   5735 			echo 'ipv6 kit and compile beforehand.'
   5736 			exit 1
   5737 		fi
   5738 	fi
   5739 fi
   5740 
   5741 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   5742 if test "x$ac_cv_func_strlcat" = xyes
   5743 then :
   5744   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
   5745 
   5746 else $as_nop
   5747   case " $LIBOBJS " in
   5748   *" strlcat.$ac_objext "* ) ;;
   5749   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
   5750  ;;
   5751 esac
   5752 
   5753 fi
   5754 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   5755 if test "x$ac_cv_func_strlcpy" = xyes
   5756 then :
   5757   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
   5758 
   5759 else $as_nop
   5760   case " $LIBOBJS " in
   5761   *" strlcpy.$ac_objext "* ) ;;
   5762   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
   5763  ;;
   5764 esac
   5765 
   5766 fi
   5767 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
   5768 if test "x$ac_cv_func_strdup" = xyes
   5769 then :
   5770   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
   5771 
   5772 else $as_nop
   5773   case " $LIBOBJS " in
   5774   *" strdup.$ac_objext "* ) ;;
   5775   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
   5776  ;;
   5777 esac
   5778 
   5779 fi
   5780 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   5781 if test "x$ac_cv_func_strsep" = xyes
   5782 then :
   5783   printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
   5784 
   5785 else $as_nop
   5786   case " $LIBOBJS " in
   5787   *" strsep.$ac_objext "* ) ;;
   5788   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
   5789  ;;
   5790 esac
   5791 
   5792 fi
   5793 ac_fn_c_check_func "$LINENO" "getservent" "ac_cv_func_getservent"
   5794 if test "x$ac_cv_func_getservent" = xyes
   5795 then :
   5796   printf "%s\n" "#define HAVE_GETSERVENT 1" >>confdefs.h
   5797 
   5798 else $as_nop
   5799   case " $LIBOBJS " in
   5800   *" getservent.$ac_objext "* ) ;;
   5801   *) LIBOBJS="$LIBOBJS getservent.$ac_objext"
   5802  ;;
   5803 esac
   5804 
   5805 fi
   5806 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
   5807 if test "x$ac_cv_func_getopt_long" = xyes
   5808 then :
   5809   printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
   5810 
   5811 else $as_nop
   5812   case " $LIBOBJS " in
   5813   *" getopt_long.$ac_objext "* ) ;;
   5814   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
   5815  ;;
   5816 esac
   5817 
   5818 fi
   5819 
   5820 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
   5821 if test "x$ac_cv_func_fork" = xyes
   5822 then :
   5823   printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
   5824 
   5825 fi
   5826 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
   5827 if test "x$ac_cv_func_vfork" = xyes
   5828 then :
   5829   printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
   5830 
   5831 fi
   5832 
   5833 ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
   5834 if test "x$ac_cv_func_setlinebuf" = xyes
   5835 then :
   5836   printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
   5837 
   5838 fi
   5839 
   5840 
   5841 #
   5842 # Make sure we have snprintf(); we require it.
   5843 #
   5844 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   5845 if test "x$ac_cv_func_snprintf" = xyes
   5846 then :
   5847 
   5848 else $as_nop
   5849   as_fn_error $? "snprintf() is required but wasn't found" "$LINENO" 5
   5850 fi
   5851 
   5852 
   5853 #
   5854 # It became apparent at some point that using a suitable C99 compiler does not
   5855 # automatically mean snprintf(3) implementation in the libc supports all the
   5856 # modifiers and specifiers used in the project, so let's test that before the
   5857 # build, not after.
   5858 #
   5859 # Testing the sizeof_t length modifier takes making an snprintf() call and
   5860 # comparing the actual result with the expected result.  If this fails, it will
   5861 # most likely happen at run time, not compile time.
   5862 #
   5863 # Testing the 64-bit conversion specifiers in addition to that requires the
   5864 # <inttypes.h> header to be present and the macros to be defined, so if this
   5865 # fails, it will more likely happen at compile time.
   5866 #
   5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is suitable" >&5
   5868 printf %s "checking whether snprintf is suitable... " >&6; }
   5869 if test "$cross_compiling" = yes
   5870 then :
   5871 
   5872         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not while cross-compiling" >&5
   5873 printf "%s\n" "not while cross-compiling" >&6; }
   5874 
   5875 
   5876 else $as_nop
   5877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5878 /* end confdefs.h.  */
   5879 
   5880 
   5881 #include <stdio.h>
   5882 #include <string.h>
   5883 #include <inttypes.h>
   5884 #include <sys/types.h>
   5885 
   5886 int main()
   5887 {
   5888   char buf[100];
   5889   uint64_t t = (uint64_t)1 << 32;
   5890 
   5891   snprintf(buf, sizeof(buf), "%zu", sizeof(buf));
   5892   if (strncmp(buf, "100", sizeof(buf)))
   5893     return 1;
   5894 
   5895   snprintf(buf, sizeof(buf), "%zd", -sizeof(buf));
   5896   if (strncmp(buf, "-100", sizeof(buf)))
   5897     return 2;
   5898 
   5899   snprintf(buf, sizeof(buf), "%" PRId64, -t);
   5900   if (strncmp(buf, "-4294967296", sizeof(buf)))
   5901     return 3;
   5902 
   5903   snprintf(buf, sizeof(buf), "0o%" PRIo64, t);
   5904   if (strncmp(buf, "0o40000000000", sizeof(buf)))
   5905     return 4;
   5906 
   5907   snprintf(buf, sizeof(buf), "0x%" PRIx64, t);
   5908   if (strncmp(buf, "0x100000000", sizeof(buf)))
   5909     return 5;
   5910 
   5911   snprintf(buf, sizeof(buf), "%" PRIu64, t);
   5912   if (strncmp(buf, "4294967296", sizeof(buf)))
   5913     return 6;
   5914 
   5915   return 0;
   5916 }
   5917 
   5918 
   5919 _ACEOF
   5920 if ac_fn_c_try_run "$LINENO"
   5921 then :
   5922 
   5923         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5924 printf "%s\n" "yes" >&6; }
   5925 
   5926 else $as_nop
   5927 
   5928         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5929 printf "%s\n" "no" >&6; }
   5930         as_fn_error $? "The snprintf(3) implementation in this libc is not suitable,
   5931 tcpdump would not work correctly even if it managed to compile." "$LINENO" 5
   5932 
   5933 fi
   5934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5935   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5936 fi
   5937 
   5938 
   5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5
   5940 printf %s "checking for main in -lrpc... " >&6; }
   5941 if test ${ac_cv_lib_rpc_main+y}
   5942 then :
   5943   printf %s "(cached) " >&6
   5944 else $as_nop
   5945   ac_check_lib_save_LIBS=$LIBS
   5946 LIBS="-lrpc  $LIBS"
   5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5948 /* end confdefs.h.  */
   5949 
   5950 
   5951 int
   5952 main (void)
   5953 {
   5954 return main ();
   5955   ;
   5956   return 0;
   5957 }
   5958 _ACEOF
   5959 if ac_fn_c_try_link "$LINENO"
   5960 then :
   5961   ac_cv_lib_rpc_main=yes
   5962 else $as_nop
   5963   ac_cv_lib_rpc_main=no
   5964 fi
   5965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5966     conftest$ac_exeext conftest.$ac_ext
   5967 LIBS=$ac_check_lib_save_LIBS
   5968 fi
   5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5
   5970 printf "%s\n" "$ac_cv_lib_rpc_main" >&6; }
   5971 if test "x$ac_cv_lib_rpc_main" = xyes
   5972 then :
   5973   printf "%s\n" "#define HAVE_LIBRPC 1" >>confdefs.h
   5974 
   5975   LIBS="-lrpc $LIBS"
   5976 
   5977 fi
   5978 
   5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5
   5980 printf %s "checking for library containing getrpcbynumber... " >&6; }
   5981 if test ${ac_cv_search_getrpcbynumber+y}
   5982 then :
   5983   printf %s "(cached) " >&6
   5984 else $as_nop
   5985   ac_func_search_save_LIBS=$LIBS
   5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5987 /* end confdefs.h.  */
   5988 
   5989 /* Override any GCC internal prototype to avoid an error.
   5990    Use char because int might match the return type of a GCC
   5991    builtin and then its argument prototype would still apply.  */
   5992 char getrpcbynumber ();
   5993 int
   5994 main (void)
   5995 {
   5996 return getrpcbynumber ();
   5997   ;
   5998   return 0;
   5999 }
   6000 _ACEOF
   6001 for ac_lib in '' nsl
   6002 do
   6003   if test -z "$ac_lib"; then
   6004     ac_res="none required"
   6005   else
   6006     ac_res=-l$ac_lib
   6007     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6008   fi
   6009   if ac_fn_c_try_link "$LINENO"
   6010 then :
   6011   ac_cv_search_getrpcbynumber=$ac_res
   6012 fi
   6013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6014     conftest$ac_exeext
   6015   if test ${ac_cv_search_getrpcbynumber+y}
   6016 then :
   6017   break
   6018 fi
   6019 done
   6020 if test ${ac_cv_search_getrpcbynumber+y}
   6021 then :
   6022 
   6023 else $as_nop
   6024   ac_cv_search_getrpcbynumber=no
   6025 fi
   6026 rm conftest.$ac_ext
   6027 LIBS=$ac_func_search_save_LIBS
   6028 fi
   6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5
   6030 printf "%s\n" "$ac_cv_search_getrpcbynumber" >&6; }
   6031 ac_res=$ac_cv_search_getrpcbynumber
   6032 if test "$ac_res" != no
   6033 then :
   6034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6035 
   6036 printf "%s\n" "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h
   6037 
   6038 fi
   6039 
   6040 
   6041 
   6042 
   6043 
   6044                 LBL_LIBS="$LIBS"
   6045     pfopen=/usr/examples/packetfilter/pfopen.c
   6046     if test -f $pfopen ; then
   6047         ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen"
   6048 if test "x$ac_cv_func_pfopen" = xyes
   6049 then :
   6050   printf "%s\n" "#define HAVE_PFOPEN 1" >>confdefs.h
   6051 
   6052 fi
   6053 
   6054         if test $ac_cv_func_pfopen = "no" ; then
   6055             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5
   6056 printf "%s\n" "Using $pfopen" >&6; }
   6057             LIBS="$LIBS $pfopen"
   6058         fi
   6059     fi
   6060     libpcap=FAIL
   6061     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to look for a local libpcap" >&5
   6062 printf %s "checking whether to look for a local libpcap... " >&6; }
   6063     # Check whether --enable-local-libpcap was given.
   6064 if test ${enable_local_libpcap+y}
   6065 then :
   6066   enableval=$enable_local_libpcap;
   6067 else $as_nop
   6068   enableval=yes
   6069 fi
   6070 
   6071     case "$enableval" in
   6072 
   6073     no)
   6074         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6075 printf "%s\n" "no" >&6; }
   6076         #
   6077         # Don't look for a local libpcap.
   6078         #
   6079         using_local_libpcap=no
   6080         ;;
   6081 
   6082     *)
   6083         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6084 printf "%s\n" "yes" >&6; }
   6085         #
   6086         # Look for a local pcap library.
   6087         #
   6088         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5
   6089 printf %s "checking for local pcap library... " >&6; }
   6090         lastdir=FAIL
   6091         places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
   6092             $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'`
   6093         places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
   6094             $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'`
   6095         for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do
   6096             basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
   6097                 sed -e 's/-PRE-GIT$//' `
   6098             if test $lastdir = $basedir ; then
   6099                                 continue;
   6100             fi
   6101             lastdir=$dir
   6102             if test -r $dir/libpcap.a ; then
   6103                 libpcap=$dir/libpcap.a
   6104                 local_pcap_dir=$dir
   6105                             fi
   6106         done
   6107         if test $libpcap = FAIL ; then
   6108             #
   6109             # We didn't find a local libpcap.
   6110             #
   6111             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   6112 printf "%s\n" "not found" >&6; }
   6113             using_local_libpcap=no;
   6114         else
   6115             #
   6116             # We found a local libpcap.
   6117             #
   6118             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5
   6119 printf "%s\n" "$libpcap" >&6; }
   6120             using_local_libpcap=yes
   6121         fi
   6122         ;;
   6123     esac
   6124 
   6125     if test $using_local_libpcap = no ; then
   6126         #
   6127         # We didn't find a local libpcap.
   6128         # Look for an installed pkg-config.
   6129         #
   6130         if test -n "$PKG_CONFIG" ; then
   6131             #
   6132             # We have it.  Are there .pc files for libpcap?
   6133             #
   6134             # --exists was introduced in pkg-config 0.4.0; that
   6135             # dates back to late 2000, so we won't worry about
   6136             # earlier releases that lack it.
   6137             #
   6138             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether there are .pc files for libpcap" >&5
   6139 printf %s "checking whether there are .pc files for libpcap... " >&6; }
   6140             if "$PKG_CONFIG" libpcap --exists ; then
   6141                 #
   6142                 # Yes, so we can use pkg-config to get configuration
   6143                 # information for libpcap.
   6144                 #
   6145                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6146 printf "%s\n" "yes" >&6; }
   6147                 pkg_config_usable=yes
   6148             else
   6149                 #
   6150                 # No, so we can't use pkg-config to get configuration
   6151                 # information for libpcap.
   6152                 #
   6153                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6154 printf "%s\n" "no" >&6; }
   6155                 pkg_config_usable=no
   6156             fi
   6157         else
   6158             #
   6159             # We don't have it, so we obviously can't use it.
   6160             #
   6161             pkg_config_usable=no
   6162         fi
   6163         if test "$pkg_config_usable" = "yes" ; then
   6164             #
   6165             # Found both - use pkg-config to get the include flags for
   6166             # libpcap and the flags to link with libpcap.
   6167             #
   6168             # Please read section 11.6 "Shell Substitutions"
   6169             # in the autoconf manual before doing anything
   6170             # to this that involves quoting.  Especially note
   6171             # the statement "There is just no portable way to use
   6172             # double-quoted strings inside double-quoted back-quoted
   6173             # expressions (pfew!)."
   6174             #
   6175             cflags=`"$PKG_CONFIG" libpcap --cflags`
   6176             V_INCLS="$cflags $V_INCLS"
   6177             libpcap=`"$PKG_CONFIG" libpcap --libs`
   6178         else
   6179             #
   6180             # No pkg-config
   6181             # Look for an installed pcap-config.
   6182             #
   6183             if test -n "$ac_tool_prefix"; then
   6184   # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
   6185 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
   6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6187 printf %s "checking for $ac_word... " >&6; }
   6188 if test ${ac_cv_path_PCAP_CONFIG+y}
   6189 then :
   6190   printf %s "(cached) " >&6
   6191 else $as_nop
   6192   case $PCAP_CONFIG in
   6193   [\\/]* | ?:[\\/]*)
   6194   ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
   6195   ;;
   6196   *)
   6197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6198 for as_dir in $PATH
   6199 do
   6200   IFS=$as_save_IFS
   6201   case $as_dir in #(((
   6202     '') as_dir=./ ;;
   6203     */) ;;
   6204     *) as_dir=$as_dir/ ;;
   6205   esac
   6206     for ac_exec_ext in '' $ac_executable_extensions; do
   6207   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6208     ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext"
   6209     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6210     break 2
   6211   fi
   6212 done
   6213   done
   6214 IFS=$as_save_IFS
   6215 
   6216   ;;
   6217 esac
   6218 fi
   6219 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
   6220 if test -n "$PCAP_CONFIG"; then
   6221   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
   6222 printf "%s\n" "$PCAP_CONFIG" >&6; }
   6223 else
   6224   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6225 printf "%s\n" "no" >&6; }
   6226 fi
   6227 
   6228 
   6229 fi
   6230 if test -z "$ac_cv_path_PCAP_CONFIG"; then
   6231   ac_pt_PCAP_CONFIG=$PCAP_CONFIG
   6232   # Extract the first word of "pcap-config", so it can be a program name with args.
   6233 set dummy pcap-config; ac_word=$2
   6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6235 printf %s "checking for $ac_word... " >&6; }
   6236 if test ${ac_cv_path_ac_pt_PCAP_CONFIG+y}
   6237 then :
   6238   printf %s "(cached) " >&6
   6239 else $as_nop
   6240   case $ac_pt_PCAP_CONFIG in
   6241   [\\/]* | ?:[\\/]*)
   6242   ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
   6243   ;;
   6244   *)
   6245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6246 for as_dir in $PATH
   6247 do
   6248   IFS=$as_save_IFS
   6249   case $as_dir in #(((
   6250     '') as_dir=./ ;;
   6251     */) ;;
   6252     *) as_dir=$as_dir/ ;;
   6253   esac
   6254     for ac_exec_ext in '' $ac_executable_extensions; do
   6255   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6256     ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext"
   6257     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6258     break 2
   6259   fi
   6260 done
   6261   done
   6262 IFS=$as_save_IFS
   6263 
   6264   ;;
   6265 esac
   6266 fi
   6267 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
   6268 if test -n "$ac_pt_PCAP_CONFIG"; then
   6269   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
   6270 printf "%s\n" "$ac_pt_PCAP_CONFIG" >&6; }
   6271 else
   6272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6273 printf "%s\n" "no" >&6; }
   6274 fi
   6275 
   6276   if test "x$ac_pt_PCAP_CONFIG" = x; then
   6277     PCAP_CONFIG=""
   6278   else
   6279     case $cross_compiling:$ac_tool_warned in
   6280 yes:)
   6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6283 ac_tool_warned=yes ;;
   6284 esac
   6285     PCAP_CONFIG=$ac_pt_PCAP_CONFIG
   6286   fi
   6287 else
   6288   PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
   6289 fi
   6290 
   6291             if test -n "$PCAP_CONFIG" ; then
   6292                 #
   6293                 # Found - use it to get the include flags for
   6294                 # libpcap and the flags to link with libpcap.
   6295                 #
   6296                 # If this is a vendor-supplied pcap-config, which
   6297                 # we define as being "a pcap-config in /usr/bin
   6298                 # or /usr/ccs/bin" (the latter is for Solaris and
   6299                 # Sun/Oracle Studio), there are some issues.  Work
   6300                 # around them.
   6301                 #
   6302                 if test \( "$PCAP_CONFIG" = "/usr/bin/pcap-config" \) -o \
   6303                         \( "$PCAP_CONFIG" = "/usr/ccs/bin/pcap-config" \) ; then
   6304                     #
   6305                     # It's vendor-supplied.
   6306                     #
   6307                     case "$host_os" in
   6308 
   6309                     darwin*)
   6310                         #
   6311                         # This is macOS or another Darwin-based OS.
   6312                         #
   6313                         # That means that /usr/bin/pcap-config it
   6314                         # may provide -I/usr/local/include with --cflags
   6315                         # and -L/usr/local/lib with --libs, rather than
   6316                         # pointing to the OS-supplied library and
   6317                         # Xcode-supplied headers.  Remember that, so we
   6318                         # ignore those values.
   6319                         #
   6320                         _broken_apple_pcap_config=yes
   6321 
   6322                         #
   6323                         # Furthermore:
   6324                         #
   6325                         # macOS Sonoma's libpcap includes stub versions
   6326                         # of the remote-capture APIs.  They are exported
   6327                         # as "weakly linked symbols".
   6328                         #
   6329                         # Xcode 15 offers only a macOS Sonoma SDK, which
   6330                         # has a .tbd file for libpcap that claims it
   6331                         # includes those APIs.  (Newer versions of macOS
   6332                         # don't provide the system shared libraries,
   6333                         # they only provide the dyld shared cache
   6334                         # containing those libraries, so the OS provides
   6335                         # SDKs that include a .tbd file to use when
   6336                         # linking.)
   6337                         #
   6338                         # This means that AC_CHECK_FUNCS() will think
   6339                         # that the remote-capture APIs are present,
   6340                         # including pcap_open() and
   6341                         # pcap_findalldevs_ex().
   6342                         #
   6343                         # However, they are *not* present in macOS
   6344                         # Ventura and earlier, which means that building
   6345                         # on Ventura with Xcode 15 produces executables
   6346                         # that fail to start because one of those APIs
   6347                         # isn't found in the system libpcap.
   6348                         #
   6349                         # Protecting calls to those APIs with
   6350                         # __builtin_available() does not appear to
   6351                         # prevent this, for some unknown reason, and it
   6352                         # doesn't even allow the program to compile with
   6353                         # versions of Xcode prior to Xcode 15, as the
   6354                         # pcap.h file doesn't specify minimum OS
   6355                         # versions for those functions.
   6356                         #
   6357                         # Given all that, and given that the versions of
   6358                         # the remote-capture APIs in Sonoma are stubs
   6359                         # that always fail, there doesn't seem to be any
   6360                         # point in checking for pcap_open() if we're
   6361                         # linking against the Apple libpcap.
   6362                         #
   6363                         # However, if we're *not* linking against the
   6364                         # Apple libpcap, we should check for it, so that
   6365                         # we can use it if it's present.
   6366                         #
   6367                         # We know this is macOS and that we're using
   6368                         # the system-provided pcap-config to find
   6369                         # libpcap, so we know it'll be the system
   6370                         # libpcap, and note that we should not search
   6371                         # for remote-capture APIs.
   6372                         #
   6373                         _dont_check_for_remote_apis=yes
   6374                         ;;
   6375 
   6376                     solaris*)
   6377                         #
   6378                         # This is Solaris 2 or later, i.e. SunOS 5.x.
   6379                         #
   6380                         # At least on Solaris 11; there's /usr/bin/pcap-config,
   6381                         # which reports -L/usr/lib with --libs, causing
   6382                         # the 32-bit libraries to be found, and there's
   6383                         # /usr/bin/{64bitarch}/pcap-config, where {64bitarch}
   6384                         # is a name for the 64-bit version of the instruction
   6385                         # set, which reports -L /usr/lib/{64bitarch}, causing
   6386                         # the 64-bit libraries to be found.
   6387                         #
   6388                         # So if we're building 64-bit targets, we replace
   6389                         # PCAP_CONFIG with /usr/bin/{64bitarch}; we get
   6390                         # {64bitarch} as the output of "isainfo -n".
   6391                         #
   6392                         # Are we building 32-bit or 64-bit?  Get the
   6393                         # size of void *, and check that.
   6394                         #
   6395                         # The cast to long int works around a bug in the HP C Compiler
   6396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6398 # This bug is HP SR number 8606223364.
   6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   6400 printf %s "checking size of void *... " >&6; }
   6401 if test ${ac_cv_sizeof_void_p+y}
   6402 then :
   6403   printf %s "(cached) " >&6
   6404 else $as_nop
   6405   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
   6406 then :
   6407 
   6408 else $as_nop
   6409   if test "$ac_cv_type_void_p" = yes; then
   6410      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6411 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6412 as_fn_error 77 "cannot compute sizeof (void *)
   6413 See \`config.log' for more details" "$LINENO" 5; }
   6414    else
   6415      ac_cv_sizeof_void_p=0
   6416    fi
   6417 fi
   6418 
   6419 fi
   6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   6421 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
   6422 
   6423 
   6424 
   6425 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
   6426 
   6427 
   6428                         if test ac_cv_sizeof_void_p -eq 8 ; then
   6429                             isainfo_output=`isainfo -n`
   6430                             if test ! -z "$isainfo_output" ; then
   6431                                 #
   6432                                 # Success - change PCAP_CONFIG.
   6433                                 #
   6434                                 PCAP_CONFIG=`echo $PCAP_CONFIG | sed "s;/bin/;/bin/$isainfo_output/;"`
   6435                             fi
   6436                         fi
   6437                         ;;
   6438                     esac
   6439                 fi
   6440                 #
   6441                 # Please read section 11.6 "Shell Substitutions"
   6442                 # in the autoconf manual before doing anything
   6443                 # to this that involves quoting.  Especially note
   6444                 # the statement "There is just no portable way to use
   6445                 # double-quoted strings inside double-quoted back-quoted
   6446                 # expressions (pfew!)."
   6447                 #
   6448                 cflags=`"$PCAP_CONFIG" --cflags`
   6449                 #
   6450                 # Work around macOS (and probably other Darwin) brokenness,
   6451                 # by not adding /usr/local/include if it's from the broken
   6452                 # Apple pcap-config.
   6453                 #
   6454                 if test "$_broken_apple_pcap_config" = "yes" ; then
   6455                     #
   6456                     # Strip -I/usr/local/include with sed.
   6457                     #
   6458                     cflags=`echo $cflags | sed 's;-I/usr/local/include;;'`
   6459                 fi
   6460                 V_INCLS="$cflags $V_INCLS"
   6461                 libpcap=`"$PCAP_CONFIG" --libs`
   6462                 #
   6463                 # Work around macOS (and probably other Darwin) brokenness,
   6464                 # by not adding /usr/local/lib if it's from the broken
   6465                 # Apple pcap-config.
   6466                 #
   6467                 if test "$_broken_apple_pcap_config" = "yes" ; then
   6468                     #
   6469                     # Strip -L/usr/local/lib with sed.
   6470                     #
   6471                     libpcap=`echo $libpcap | sed 's;-L/usr/local/lib;;'`
   6472                 fi
   6473             else
   6474                 #
   6475                 # Not found; look for an installed pcap.
   6476                 #
   6477                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5
   6478 printf %s "checking for main in -lpcap... " >&6; }
   6479 if test ${ac_cv_lib_pcap_main+y}
   6480 then :
   6481   printf %s "(cached) " >&6
   6482 else $as_nop
   6483   ac_check_lib_save_LIBS=$LIBS
   6484 LIBS="-lpcap  $LIBS"
   6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6486 /* end confdefs.h.  */
   6487 
   6488 
   6489 int
   6490 main (void)
   6491 {
   6492 return main ();
   6493   ;
   6494   return 0;
   6495 }
   6496 _ACEOF
   6497 if ac_fn_c_try_link "$LINENO"
   6498 then :
   6499   ac_cv_lib_pcap_main=yes
   6500 else $as_nop
   6501   ac_cv_lib_pcap_main=no
   6502 fi
   6503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6504     conftest$ac_exeext conftest.$ac_ext
   6505 LIBS=$ac_check_lib_save_LIBS
   6506 fi
   6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5
   6508 printf "%s\n" "$ac_cv_lib_pcap_main" >&6; }
   6509 if test "x$ac_cv_lib_pcap_main" = xyes
   6510 then :
   6511   libpcap="-lpcap"
   6512 fi
   6513 
   6514                 if test $libpcap = FAIL ; then
   6515                     as_fn_error $? "see the INSTALL.md file for more info" "$LINENO" 5
   6516                 fi
   6517                                                                                                                                                                                                                                                                                                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5
   6518 printf %s "checking for extraneous pcap header directories... " >&6; }
   6519                 if test \( ! -r /usr/local/include/pcap.h \) -a \
   6520                         \( ! -r /usr/include/pcap.h \); then
   6521                     if test -r /usr/local/include/pcap/pcap.h; then
   6522                         d="/usr/local/include/pcap"
   6523                     elif test -r /usr/include/pcap/pcap.h; then
   6524                         d="/usr/include/pcap"
   6525                     fi
   6526                 fi
   6527                 if test -z "$d" ; then
   6528                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   6529 printf "%s\n" "not found" >&6; }
   6530                 else
   6531                     V_INCLS="-I$d $V_INCLS"
   6532                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5
   6533 printf "%s\n" "found -- -I$d added" >&6; }
   6534                 fi
   6535             fi
   6536         fi
   6537     else
   6538         #
   6539         # We found a local libpcap.  Add it to the dependencies for
   6540         # tcpdump.
   6541         #
   6542         V_PCAPDEP=$libpcap
   6543 
   6544         #
   6545         # Look for its pcap-config script.
   6546         #
   6547         # Extract the first word of "pcap-config", so it can be a program name with args.
   6548 set dummy pcap-config; ac_word=$2
   6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6550 printf %s "checking for $ac_word... " >&6; }
   6551 if test ${ac_cv_path_PCAP_CONFIG+y}
   6552 then :
   6553   printf %s "(cached) " >&6
   6554 else $as_nop
   6555   case $PCAP_CONFIG in
   6556   [\\/]* | ?:[\\/]*)
   6557   ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
   6558   ;;
   6559   *)
   6560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6561 for as_dir in $local_pcap_dir
   6562 do
   6563   IFS=$as_save_IFS
   6564   case $as_dir in #(((
   6565     '') as_dir=./ ;;
   6566     */) ;;
   6567     *) as_dir=$as_dir/ ;;
   6568   esac
   6569     for ac_exec_ext in '' $ac_executable_extensions; do
   6570   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6571     ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext"
   6572     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6573     break 2
   6574   fi
   6575 done
   6576   done
   6577 IFS=$as_save_IFS
   6578 
   6579   ;;
   6580 esac
   6581 fi
   6582 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
   6583 if test -n "$PCAP_CONFIG"; then
   6584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
   6585 printf "%s\n" "$PCAP_CONFIG" >&6; }
   6586 else
   6587   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6588 printf "%s\n" "no" >&6; }
   6589 fi
   6590 
   6591 
   6592 
   6593         if test -n "$PCAP_CONFIG"; then
   6594             #
   6595             # We don't want its --cflags or --libs output, because
   6596             # those presume it's installed.  For the C compiler flags,
   6597             # we add the source directory for the local libpcap, so
   6598             # we pick up its header files.
   6599             #
   6600             # We do, however, want its additional libraries, as required
   6601             # when linking statically, because it makes calls to
   6602             # routines in those libraries, so we'll need to link with
   6603             # them, because we'll be linking statically with it.
   6604             #
   6605             # If it supports --static-pcap-only. use that, as we will be
   6606             # linking with a static libpcap but won't be linking
   6607             # statically with any of the libraries on which it depends;
   6608             # those libraries might not even have static versions
   6609             # installed.
   6610             #
   6611             # That means we need to find out the libraries on which
   6612             # libpcap directly depends, so we can link with them, but we
   6613             # don't need to link with the libraries on which those
   6614             # libraries depend as, on all UN*Xes with which I'm
   6615             # familiar, the libraries on which a shared library depends
   6616             # are stored in the library and are automatically loaded by
   6617             # the run-time linker, without the executable having to be
   6618             # linked with those libraries.  (This allows a library to be
   6619             # changed to depend on more libraries without breaking that
   6620             # library's ABI.)
   6621             #
   6622             # The only way to test for that support is to see if the
   6623             # script contains the string "static-pcap-only"; we can't
   6624             # try using that flag and checking for errors, as the
   6625             # versions of the script that didn't have that flag wouldn't
   6626             # report or return an error for an unsupported command-line
   6627             # flag.  Those older versions provided, with --static, only
   6628             # the libraries on which libpcap depends, not the
   6629             # dependencies of those libraries; the versions with
   6630             # --static-pcap-only provide all the dependencies with
   6631             # --static, for the benefit of programs that are completely
   6632             # statically linked, and provide only the direct
   6633             # dependencies with --static-pcap-only.
   6634             #
   6635             if grep "static-pcap-only" "$PCAP_CONFIG" >/dev/null 2>&1
   6636             then
   6637                 static_opt="--static-pcap-only"
   6638             else
   6639                 static_opt="--static"
   6640             fi
   6641             V_INCLS="-I$local_pcap_dir $V_INCLS"
   6642             additional_libs=`"$PCAP_CONFIG" $static_opt --additional-libs`
   6643             libpcap="$libpcap $additional_libs"
   6644         else
   6645             #
   6646             # It doesn't have a pcap-config script.
   6647             # Make sure it has a pcap.h file.
   6648             #
   6649             places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
   6650                 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
   6651             places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
   6652                 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
   6653             pcapH=FAIL
   6654             if test -r $local_pcap_dir/pcap.h; then
   6655                 pcapH=$local_pcap_dir
   6656             else
   6657                 for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do
   6658                     if test -r $dir/pcap.h ; then
   6659                         pcapH=$dir
   6660                     fi
   6661                 done
   6662             fi
   6663 
   6664             if test $pcapH = FAIL ; then
   6665                 as_fn_error $? "cannot find pcap.h: see the INSTALL.md file" "$LINENO" 5
   6666             fi
   6667 
   6668             #
   6669             # Force the compiler to look for header files in the
   6670             # directory containing pcap.h.
   6671             #
   6672             V_INCLS="-I$pcapH $V_INCLS"
   6673         fi
   6674     fi
   6675 
   6676     if test -z "$PKG_CONFIG" -a -z "$PCAP_CONFIG"; then
   6677         #
   6678         # We don't have pkg-config or pcap-config; find out any additional
   6679         # link flags we need.  (If we have pkg-config or pcap-config, we
   6680         # assume it tells us what we need.)
   6681         #
   6682         case "$host_os" in
   6683 
   6684         aix*)
   6685             #
   6686             # If libpcap is DLPI-based, we have to use /lib/pse.exp if
   6687             # present, as we use the STREAMS routines.
   6688             #
   6689             # (XXX - true only if we're linking with a static libpcap?)
   6690             #
   6691             pseexe="/lib/pse.exp"
   6692             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
   6693 printf %s "checking for $pseexe... " >&6; }
   6694             if test -f $pseexe ; then
   6695                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6696 printf "%s\n" "yes" >&6; }
   6697                 LIBS="$LIBS -I:$pseexe"
   6698             fi
   6699 
   6700             #
   6701             # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
   6702             # we use them to load the BPF module.
   6703             #
   6704             # (XXX - true only if we're linking with a static libpcap?)
   6705             #
   6706             LIBS="$LIBS -lodm -lcfg"
   6707             ;;
   6708 
   6709 	solaris*)
   6710             # libdlpi is needed for Solaris 11 and later.
   6711             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
   6712 printf %s "checking for dlpi_walk in -ldlpi... " >&6; }
   6713 if test ${ac_cv_lib_dlpi_dlpi_walk+y}
   6714 then :
   6715   printf %s "(cached) " >&6
   6716 else $as_nop
   6717   ac_check_lib_save_LIBS=$LIBS
   6718 LIBS="-ldlpi -L/lib $LIBS"
   6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6720 /* end confdefs.h.  */
   6721 
   6722 /* Override any GCC internal prototype to avoid an error.
   6723    Use char because int might match the return type of a GCC
   6724    builtin and then its argument prototype would still apply.  */
   6725 char dlpi_walk ();
   6726 int
   6727 main (void)
   6728 {
   6729 return dlpi_walk ();
   6730   ;
   6731   return 0;
   6732 }
   6733 _ACEOF
   6734 if ac_fn_c_try_link "$LINENO"
   6735 then :
   6736   ac_cv_lib_dlpi_dlpi_walk=yes
   6737 else $as_nop
   6738   ac_cv_lib_dlpi_dlpi_walk=no
   6739 fi
   6740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6741     conftest$ac_exeext conftest.$ac_ext
   6742 LIBS=$ac_check_lib_save_LIBS
   6743 fi
   6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
   6745 printf "%s\n" "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
   6746 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
   6747 then :
   6748   LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
   6749 fi
   6750 
   6751             ;;
   6752         esac
   6753     fi
   6754 
   6755     LIBS="$libpcap $LIBS"
   6756 
   6757                                     ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop"
   6758 if test "x$ac_cv_func_pcap_loop" = xyes
   6759 then :
   6760 
   6761 else $as_nop
   6762 
   6763         as_fn_error $? "
   6764 1. Do you try to build a 32-bit tcpdump with a 64-bit libpcap or vice versa?
   6765 2. This is a bug, please follow the guidelines in CONTRIBUTING.md and include
   6766 the config.log file in your report.  If you have downloaded libpcap from
   6767 tcpdump.org, and built it yourself, please also include the config.log
   6768 file from the libpcap source directory, the Makefile from the libpcap
   6769 source directory, and the output of the make process for libpcap, as
   6770 this could be a problem with the libpcap that was built, and we will
   6771 not be able to determine why this is happening, and thus will not be
   6772 able to fix it, without that information, as we have not been able to
   6773 reproduce this problem ourselves." "$LINENO" 5
   6774 
   6775 fi
   6776 
   6777 
   6778 
   6779 #
   6780 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
   6781 # libraries (e.g., "-lsocket -lnsl" on Solaris).
   6782 #
   6783 # You are in a twisty little maze of UN*Xes, all different.
   6784 # Some might not have ether_ntohost().
   6785 # Some might have it and declare it in <net/ethernet.h>.
   6786 # Some might have it and declare it in <netinet/ether.h>
   6787 # Some might have it and declare it in <sys/ethernet.h>.
   6788 # Some might have it and declare it in <arpa/inet.h>.
   6789 # Some might have it and declare it in <netinet/if_ether.h>.
   6790 # Some might have it and not declare it in any header file.
   6791 #
   6792 # Before you is a C compiler.
   6793 #
   6794 
   6795   for ac_func in ether_ntohost
   6796 do :
   6797   ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost"
   6798 if test "x$ac_cv_func_ether_ntohost" = xyes
   6799 then :
   6800   printf "%s\n" "#define HAVE_ETHER_NTOHOST 1" >>confdefs.h
   6801 
   6802     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5
   6803 printf %s "checking for buggy ether_ntohost... " >&6; }
   6804 if test ${ac_cv_buggy_ether_ntohost+y}
   6805 then :
   6806   printf %s "(cached) " >&6
   6807 else $as_nop
   6808 
   6809 	if test "$cross_compiling" = yes
   6810 then :
   6811   ac_cv_buggy_ether_ntohost="not while cross-compiling"
   6812 else $as_nop
   6813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6814 /* end confdefs.h.  */
   6815 
   6816 		#include <netdb.h>
   6817 		#include <netinet/ether.h>
   6818 		#include <stdlib.h>
   6819 		#include <sys/types.h>
   6820 		#include <sys/param.h>
   6821 		#include <sys/socket.h>
   6822 
   6823 		int
   6824 		main(int argc, char **argv)
   6825 		{
   6826 			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
   6827 			char name[MAXHOSTNAMELEN];
   6828 
   6829 			ether_ntohost(name, (struct ether_addr *)ea);
   6830 			exit(0);
   6831 		}
   6832 
   6833 
   6834 _ACEOF
   6835 if ac_fn_c_try_run "$LINENO"
   6836 then :
   6837   ac_cv_buggy_ether_ntohost=no
   6838 else $as_nop
   6839   ac_cv_buggy_ether_ntohost=yes
   6840 fi
   6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6842   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6843 fi
   6844 
   6845 fi
   6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5
   6847 printf "%s\n" "$ac_cv_buggy_ether_ntohost" >&6; }
   6848     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
   6849 
   6850 printf "%s\n" "#define USE_ETHER_NTOHOST 1" >>confdefs.h
   6851 
   6852     fi
   6853 
   6854 fi
   6855 
   6856 done
   6857 if test "$ac_cv_func_ether_ntohost" = yes -a \
   6858     "$ac_cv_buggy_ether_ntohost" = "no"; then
   6859 	#
   6860 	# OK, we have ether_ntohost().  Is it declared in <net/ethernet.h>?
   6861 	#
   6862 	# This test fails if we don't have <net/ethernet.h> or if we do
   6863 	# but it doesn't declare ether_ntohost().
   6864 	#
   6865 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
   6866 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
   6867 if test ${ac_cv_c_undeclared_builtin_options+y}
   6868 then :
   6869   printf %s "(cached) " >&6
   6870 else $as_nop
   6871   ac_save_CFLAGS=$CFLAGS
   6872    ac_cv_c_undeclared_builtin_options='cannot detect'
   6873    for ac_arg in '' -fno-builtin; do
   6874      CFLAGS="$ac_save_CFLAGS $ac_arg"
   6875      # This test program should *not* compile successfully.
   6876      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6877 /* end confdefs.h.  */
   6878 
   6879 int
   6880 main (void)
   6881 {
   6882 (void) strchr;
   6883   ;
   6884   return 0;
   6885 }
   6886 _ACEOF
   6887 if ac_fn_c_try_compile "$LINENO"
   6888 then :
   6889 
   6890 else $as_nop
   6891   # This test program should compile successfully.
   6892         # No library function is consistently available on
   6893         # freestanding implementations, so test against a dummy
   6894         # declaration.  Include always-available headers on the
   6895         # off chance that they somehow elicit warnings.
   6896         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6897 /* end confdefs.h.  */
   6898 #include <float.h>
   6899 #include <limits.h>
   6900 #include <stdarg.h>
   6901 #include <stddef.h>
   6902 extern void ac_decl (int, char *);
   6903 
   6904 int
   6905 main (void)
   6906 {
   6907 (void) ac_decl (0, (char *) 0);
   6908   (void) ac_decl;
   6909 
   6910   ;
   6911   return 0;
   6912 }
   6913 _ACEOF
   6914 if ac_fn_c_try_compile "$LINENO"
   6915 then :
   6916   if test x"$ac_arg" = x
   6917 then :
   6918   ac_cv_c_undeclared_builtin_options='none needed'
   6919 else $as_nop
   6920   ac_cv_c_undeclared_builtin_options=$ac_arg
   6921 fi
   6922           break
   6923 fi
   6924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6925 fi
   6926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6927     done
   6928     CFLAGS=$ac_save_CFLAGS
   6929 
   6930 fi
   6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
   6932 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
   6933   case $ac_cv_c_undeclared_builtin_options in #(
   6934   'cannot detect') :
   6935     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6936 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6937 as_fn_error $? "cannot make $CC report undeclared builtins
   6938 See \`config.log' for more details" "$LINENO" 5; } ;; #(
   6939   'none needed') :
   6940     ac_c_undeclared_builtin_options='' ;; #(
   6941   *) :
   6942     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
   6943 esac
   6944 
   6945 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   6946 #include <net/ethernet.h>
   6947 
   6948 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6949 if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   6950 then :
   6951 
   6952 
   6953 printf "%s\n" "#define NET_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
   6954 
   6955 
   6956 fi
   6957 	#
   6958 	# Did that succeed?
   6959 	#
   6960 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   6961 		#
   6962 		# No, how about <netinet/ether.h>, as on Linux?
   6963 		#
   6964 		# This test fails if we don't have <netinet/ether.h>
   6965 		# or if we do but it doesn't declare ether_ntohost().
   6966 		#
   6967 		# Unset ac_cv_have_decl_ether_ntohost so we don't
   6968 		# treat the previous failure as a cached value and
   6969 		# suppress the next test.
   6970 		#
   6971 		unset ac_cv_have_decl_ether_ntohost
   6972 		ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   6973 #include <netinet/ether.h>
   6974 
   6975 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6976 if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   6977 then :
   6978 
   6979 
   6980 printf "%s\n" "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 1" >>confdefs.h
   6981 
   6982 
   6983 fi
   6984 	fi
   6985 	#
   6986 	# Did that succeed?
   6987 	#
   6988 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   6989 		#
   6990 		# No, how about <sys/ethernet.h>, as on Solaris 10
   6991 		# and later?
   6992 		#
   6993 		# This test fails if we don't have <sys/ethernet.h>
   6994 		# or if we do but it doesn't declare ether_ntohost().
   6995 		#
   6996 		# Unset ac_cv_have_decl_ether_ntohost so we don't
   6997 		# treat the previous failure as a cached value and
   6998 		# suppress the next test.
   6999 		#
   7000 		unset ac_cv_have_decl_ether_ntohost
   7001 		ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   7002 #include <sys/ethernet.h>
   7003 
   7004 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7005 if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   7006 then :
   7007 
   7008 
   7009 printf "%s\n" "#define SYS_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
   7010 
   7011 
   7012 fi
   7013 	fi
   7014 	#
   7015 	# Did that succeed?
   7016 	#
   7017 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   7018 		#
   7019 		# No, how about <arpa/inet.h>, as in AIX?
   7020 		#
   7021 		# This test fails if we don't have <arpa/inet.h>
   7022 		# (if we have ether_ntohost(), we should have
   7023 		# networking, and if we have networking, we should
   7024 		# have <arpa/inet.h>) or if we do but it doesn't
   7025 		# declare ether_ntohost().
   7026 		#
   7027 		# Unset ac_cv_have_decl_ether_ntohost so we don't
   7028 		# treat the previous failure as a cached value and
   7029 		# suppress the next test.
   7030 		#
   7031 		unset ac_cv_have_decl_ether_ntohost
   7032 		ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   7033 #include <arpa/inet.h>
   7034 
   7035 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7036 if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   7037 then :
   7038 
   7039 
   7040 printf "%s\n" "#define ARPA_INET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
   7041 
   7042 
   7043 fi
   7044 	fi
   7045 	#
   7046 	# Did that succeed?
   7047 	#
   7048 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   7049 		#
   7050 		# No, how about <netinet/if_ether.h>?
   7051 		# On some platforms, it requires <net/if.h> and
   7052 		# <netinet/in.h>, and we always include it with
   7053 		# both of them, so test it with both of them.
   7054 		#
   7055 		# This test fails if we don't have <netinet/if_ether.h>
   7056 		# and the headers we include before it, or if we do but
   7057 		# <netinet/if_ether.h> doesn't declare ether_hostton().
   7058 		#
   7059 		# Unset ac_cv_have_decl_ether_ntohost so we don't
   7060 		# treat the previous failure as a cached value and
   7061 		# suppress the next test.
   7062 		#
   7063 		unset ac_cv_have_decl_ether_ntohost
   7064 		ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
   7065 #include <sys/types.h>
   7066 #include <sys/socket.h>
   7067 #include <net/if.h>
   7068 #include <netinet/in.h>
   7069 #include <netinet/if_ether.h>
   7070 
   7071 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7072 if test "x$ac_cv_have_decl_ether_ntohost" = xyes
   7073 then :
   7074 
   7075 
   7076 printf "%s\n" "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
   7077 
   7078 
   7079 fi
   7080 	fi
   7081 	#
   7082 	# After all that, is ether_ntohost() declared?
   7083 	#
   7084 	if test "$ac_cv_have_decl_ether_ntohost" = yes; then
   7085 		#
   7086 		# Yes.
   7087 		#
   7088 
   7089 printf "%s\n" "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h
   7090 
   7091 	else
   7092 		#
   7093 		# No, we'll have to declare it ourselves.
   7094 		# Do we have "struct ether_addr" if we include
   7095 		# <netinet/if_ether.h>?
   7096 		#
   7097 		ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
   7098 			#include <sys/types.h>
   7099 			#include <sys/socket.h>
   7100 			#include <net/if.h>
   7101 			#include <netinet/in.h>
   7102 			#include <netinet/if_ether.h>
   7103 
   7104 "
   7105 if test "x$ac_cv_type_struct_ether_addr" = xyes
   7106 then :
   7107 
   7108 printf "%s\n" "#define HAVE_STRUCT_ETHER_ADDR 1" >>confdefs.h
   7109 
   7110 
   7111 fi
   7112 
   7113 	fi
   7114 fi
   7115 
   7116 ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks"
   7117 if test "x$ac_cv_func_pcap_list_datalinks" = xyes
   7118 then :
   7119 
   7120 
   7121 printf "%s\n" "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h
   7122 
   7123 	    ac_fn_c_check_func "$LINENO" "pcap_free_datalinks" "ac_cv_func_pcap_free_datalinks"
   7124 if test "x$ac_cv_func_pcap_free_datalinks" = xyes
   7125 then :
   7126   printf "%s\n" "#define HAVE_PCAP_FREE_DATALINKS 1" >>confdefs.h
   7127 
   7128 fi
   7129 
   7130 
   7131 else $as_nop
   7132 
   7133 	    case " $LIBOBJS " in
   7134   *" datalinks.$ac_objext "* ) ;;
   7135   *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
   7136  ;;
   7137 esac
   7138 
   7139 
   7140 fi
   7141 
   7142 
   7143 ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val"
   7144 if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes
   7145 then :
   7146 
   7147 
   7148 printf "%s\n" "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h
   7149 
   7150 	    ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description"
   7151 if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes
   7152 then :
   7153 
   7154 printf "%s\n" "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h
   7155 
   7156 else $as_nop
   7157 
   7158 		    case " $LIBOBJS " in
   7159   *" dlnames.$ac_objext "* ) ;;
   7160   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
   7161  ;;
   7162 esac
   7163 
   7164 
   7165 fi
   7166 
   7167 
   7168 else $as_nop
   7169 
   7170 	    case " $LIBOBJS " in
   7171   *" dlnames.$ac_objext "* ) ;;
   7172   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
   7173  ;;
   7174 esac
   7175 
   7176 
   7177 fi
   7178 
   7179 
   7180 ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink"
   7181 if test "x$ac_cv_func_pcap_set_datalink" = xyes
   7182 then :
   7183   printf "%s\n" "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h
   7184 
   7185 fi
   7186 
   7187 
   7188 ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop"
   7189 if test "x$ac_cv_func_pcap_breakloop" = xyes
   7190 then :
   7191   printf "%s\n" "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
   7192 
   7193 fi
   7194 
   7195 
   7196 #
   7197 # Do we have the new open API?  Check for pcap_create, and assume that,
   7198 # if we do, we also have pcap_activate() and the other new routines
   7199 # introduced in libpcap 1.0.0.
   7200 #
   7201 ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create"
   7202 if test "x$ac_cv_func_pcap_create" = xyes
   7203 then :
   7204   printf "%s\n" "#define HAVE_PCAP_CREATE 1" >>confdefs.h
   7205 
   7206 fi
   7207 
   7208 if test $ac_cv_func_pcap_create = "yes" ; then
   7209 	#
   7210 	# OK, do we have pcap_set_tstamp_type?  If so, assume we have
   7211 	# pcap_list_tstamp_types and pcap_free_tstamp_types as well.
   7212 	#
   7213 	ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type"
   7214 if test "x$ac_cv_func_pcap_set_tstamp_type" = xyes
   7215 then :
   7216   printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_TYPE 1" >>confdefs.h
   7217 
   7218 fi
   7219 
   7220 	#
   7221 	# And do we have pcap_set_tstamp_precision?  If so, we assume
   7222 	# we also have pcap_open_offline_with_tstamp_precision.
   7223 	#
   7224 	ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_precision" "ac_cv_func_pcap_set_tstamp_precision"
   7225 if test "x$ac_cv_func_pcap_set_tstamp_precision" = xyes
   7226 then :
   7227   printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_PRECISION 1" >>confdefs.h
   7228 
   7229 fi
   7230 
   7231 fi
   7232 
   7233 #
   7234 # Check for a miscellaneous collection of functions which we use
   7235 # if we have them.
   7236 #
   7237 ac_fn_c_check_func "$LINENO" "pcap_findalldevs" "ac_cv_func_pcap_findalldevs"
   7238 if test "x$ac_cv_func_pcap_findalldevs" = xyes
   7239 then :
   7240   printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS 1" >>confdefs.h
   7241 
   7242 fi
   7243 
   7244 ac_fn_c_check_func "$LINENO" "pcap_dump_flush" "ac_cv_func_pcap_dump_flush"
   7245 if test "x$ac_cv_func_pcap_dump_flush" = xyes
   7246 then :
   7247   printf "%s\n" "#define HAVE_PCAP_DUMP_FLUSH 1" >>confdefs.h
   7248 
   7249 fi
   7250 ac_fn_c_check_func "$LINENO" "pcap_lib_version" "ac_cv_func_pcap_lib_version"
   7251 if test "x$ac_cv_func_pcap_lib_version" = xyes
   7252 then :
   7253   printf "%s\n" "#define HAVE_PCAP_LIB_VERSION 1" >>confdefs.h
   7254 
   7255 fi
   7256 
   7257 if test $ac_cv_func_pcap_lib_version = "no" ; then
   7258     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5
   7259 printf %s "checking whether pcap_version is defined by libpcap... " >&6; }
   7260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7261 /* end confdefs.h.  */
   7262 
   7263 int
   7264 main (void)
   7265 {
   7266 
   7267 	extern char pcap_version[];
   7268 
   7269 	return (int)pcap_version;
   7270 
   7271   ;
   7272   return 0;
   7273 }
   7274 
   7275 _ACEOF
   7276 if ac_fn_c_try_link "$LINENO"
   7277 then :
   7278   ac_lbl_cv_pcap_version_defined=yes
   7279 else $as_nop
   7280   ac_lbl_cv_pcap_version_defined=no
   7281 fi
   7282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7283     conftest$ac_exeext conftest.$ac_ext
   7284     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
   7285 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7286 printf "%s\n" "yes" >&6; }
   7287 
   7288 printf "%s\n" "#define HAVE_PCAP_VERSION 1" >>confdefs.h
   7289 
   7290     else
   7291 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7292 printf "%s\n" "no" >&6; }
   7293     fi
   7294 fi
   7295 ac_fn_c_check_func "$LINENO" "pcap_setdirection" "ac_cv_func_pcap_setdirection"
   7296 if test "x$ac_cv_func_pcap_setdirection" = xyes
   7297 then :
   7298   printf "%s\n" "#define HAVE_PCAP_SETDIRECTION 1" >>confdefs.h
   7299 
   7300 fi
   7301 ac_fn_c_check_func "$LINENO" "pcap_set_immediate_mode" "ac_cv_func_pcap_set_immediate_mode"
   7302 if test "x$ac_cv_func_pcap_set_immediate_mode" = xyes
   7303 then :
   7304   printf "%s\n" "#define HAVE_PCAP_SET_IMMEDIATE_MODE 1" >>confdefs.h
   7305 
   7306 fi
   7307 ac_fn_c_check_func "$LINENO" "pcap_dump_ftell64" "ac_cv_func_pcap_dump_ftell64"
   7308 if test "x$ac_cv_func_pcap_dump_ftell64" = xyes
   7309 then :
   7310   printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL64 1" >>confdefs.h
   7311 
   7312 fi
   7313 
   7314 #
   7315 # See the comment in AC_LBL_LIBPCAP in aclocal.m4 for the reason
   7316 # why we don't check for remote-capture APIs if we're building
   7317 # with the system libpcap on macOS.
   7318 #
   7319 if test "$_dont_check_for_remote_apis" != "yes"; then
   7320 	ac_fn_c_check_func "$LINENO" "pcap_open" "ac_cv_func_pcap_open"
   7321 if test "x$ac_cv_func_pcap_open" = xyes
   7322 then :
   7323   printf "%s\n" "#define HAVE_PCAP_OPEN 1" >>confdefs.h
   7324 
   7325 fi
   7326 ac_fn_c_check_func "$LINENO" "pcap_findalldevs_ex" "ac_cv_func_pcap_findalldevs_ex"
   7327 if test "x$ac_cv_func_pcap_findalldevs_ex" = xyes
   7328 then :
   7329   printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS_EX 1" >>confdefs.h
   7330 
   7331 fi
   7332 
   7333 fi
   7334 ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell"
   7335 if test "x$ac_cv_func_pcap_dump_ftell" = xyes
   7336 then :
   7337   printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h
   7338 
   7339 else $as_nop
   7340   case " $LIBOBJS " in
   7341   *" pcap_dump_ftell.$ac_objext "* ) ;;
   7342   *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
   7343  ;;
   7344 esac
   7345 
   7346 fi
   7347 
   7348 
   7349 #
   7350 # Check for special debugging functions
   7351 #
   7352 ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug"
   7353 if test "x$ac_cv_func_pcap_set_parser_debug" = xyes
   7354 then :
   7355   printf "%s\n" "#define HAVE_PCAP_SET_PARSER_DEBUG 1" >>confdefs.h
   7356 
   7357 fi
   7358 
   7359 if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then
   7360 	#
   7361 	# OK, we don't have pcap_set_parser_debug() to set the libpcap
   7362 	# filter expression parser debug flag; can we directly set the
   7363 	# flag?
   7364 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
   7365 printf %s "checking whether pcap_debug is defined by libpcap... " >&6; }
   7366 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7367 /* end confdefs.h.  */
   7368 
   7369 int
   7370 main (void)
   7371 {
   7372 
   7373 		extern int pcap_debug;
   7374 
   7375 		return pcap_debug;
   7376 
   7377   ;
   7378   return 0;
   7379 }
   7380 
   7381 _ACEOF
   7382 if ac_fn_c_try_link "$LINENO"
   7383 then :
   7384   ac_lbl_cv_pcap_debug_defined=yes
   7385 else $as_nop
   7386   ac_lbl_cv_pcap_debug_defined=no
   7387 fi
   7388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7389     conftest$ac_exeext conftest.$ac_ext
   7390 	if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
   7391 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7392 printf "%s\n" "yes" >&6; }
   7393 
   7394 printf "%s\n" "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
   7395 
   7396 	else
   7397 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7398 printf "%s\n" "no" >&6; }
   7399 		#
   7400 		# OK, what about "yydebug"?
   7401 		#
   7402 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
   7403 printf %s "checking whether yydebug is defined by libpcap... " >&6; }
   7404 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7405 /* end confdefs.h.  */
   7406 
   7407 int
   7408 main (void)
   7409 {
   7410 
   7411 			extern int yydebug;
   7412 
   7413 			return yydebug;
   7414 
   7415   ;
   7416   return 0;
   7417 }
   7418 
   7419 _ACEOF
   7420 if ac_fn_c_try_link "$LINENO"
   7421 then :
   7422   ac_lbl_cv_yydebug_defined=yes
   7423 else $as_nop
   7424   ac_lbl_cv_yydebug_defined=no
   7425 fi
   7426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7427     conftest$ac_exeext conftest.$ac_ext
   7428 		if test "$ac_lbl_cv_yydebug_defined" = yes ; then
   7429 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7430 printf "%s\n" "yes" >&6; }
   7431 
   7432 printf "%s\n" "#define HAVE_YYDEBUG 1" >>confdefs.h
   7433 
   7434 		else
   7435 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7436 printf "%s\n" "no" >&6; }
   7437 		fi
   7438 	fi
   7439 fi
   7440 ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug"
   7441 if test "x$ac_cv_func_pcap_set_optimizer_debug" = xyes
   7442 then :
   7443   printf "%s\n" "#define HAVE_PCAP_SET_OPTIMIZER_DEBUG 1" >>confdefs.h
   7444 
   7445 fi
   7446 
   7447 ac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump"
   7448 if test "x$ac_cv_func_bpf_dump" = xyes
   7449 then :
   7450   printf "%s\n" "#define HAVE_BPF_DUMP 1" >>confdefs.h
   7451 
   7452 else $as_nop
   7453   case " $LIBOBJS " in
   7454   *" bpf_dump.$ac_objext "* ) ;;
   7455   *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext"
   7456  ;;
   7457 esac
   7458 
   7459 fi
   7460 
   7461 #
   7462 # Assume V7/BSD convention for man pages (file formats in section 5,
   7463 # miscellaneous info in section 7).
   7464 #
   7465 MAN_FILE_FORMATS=5
   7466 MAN_MISC_INFO=7
   7467 case "$host_os" in
   7468 
   7469 aix*)
   7470 
   7471 printf "%s\n" "#define _SUN 1" >>confdefs.h
   7472 
   7473 	;;
   7474 
   7475 hpux*)
   7476 	#
   7477 	# Use System V conventions for man pages.
   7478 	#
   7479 	MAN_FILE_FORMATS=4
   7480 	MAN_MISC_INFO=5
   7481 	;;
   7482 
   7483 irix*)
   7484 	V_GROUP=sys
   7485 
   7486 	#
   7487 	# Use System V conventions for man pages.
   7488 	#
   7489 	MAN_FILE_FORMATS=4
   7490 	MAN_MISC_INFO=5
   7491 	;;
   7492 
   7493 osf*)
   7494 	V_GROUP=system
   7495 
   7496 	#
   7497 	# Use System V conventions for man pages.
   7498 	#
   7499 	MAN_FILE_FORMATS=4
   7500 	MAN_MISC_INFO=5
   7501 	;;
   7502 
   7503 solaris*)
   7504 	#
   7505 	# Use System V conventions for man pages.
   7506 	#
   7507 	MAN_FILE_FORMATS=4
   7508 	MAN_MISC_INFO=5
   7509 	;;
   7510 esac
   7511 
   7512 #
   7513 # Make sure we have a definition for C99's uintptr_t (regardless of
   7514 # whether the environment is a C99 environment or not).
   7515 #
   7516 
   7517   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   7518 if test "x$ac_cv_type_uintptr_t" = xyes
   7519 then :
   7520 
   7521 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
   7522 
   7523 else $as_nop
   7524   for ac_type in 'unsigned int' 'unsigned long int' \
   7525 	'unsigned long long int'; do
   7526        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7527 /* end confdefs.h.  */
   7528 $ac_includes_default
   7529 int
   7530 main (void)
   7531 {
   7532 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   7533 test_array [0] = 0;
   7534 return test_array [0];
   7535 
   7536   ;
   7537   return 0;
   7538 }
   7539 _ACEOF
   7540 if ac_fn_c_try_compile "$LINENO"
   7541 then :
   7542 
   7543 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
   7544 
   7545 	  ac_type=
   7546 fi
   7547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7548        test -z "$ac_type" && break
   7549      done
   7550 fi
   7551 
   7552 
   7553 
   7554 savedcppflags="$CPPFLAGS"
   7555 CPPFLAGS="$CPPFLAGS $V_INCLS"
   7556 
   7557 #
   7558 # Check whether we have pcap/pcap-inttypes.h.
   7559 # If we do, we use that to get the C99 types defined.
   7560 #
   7561 ac_fn_c_check_header_compile "$LINENO" "pcap/pcap-inttypes.h" "ac_cv_header_pcap_pcap_inttypes_h" "$ac_includes_default"
   7562 if test "x$ac_cv_header_pcap_pcap_inttypes_h" = xyes
   7563 then :
   7564   printf "%s\n" "#define HAVE_PCAP_PCAP_INTTYPES_H 1" >>confdefs.h
   7565 
   7566 fi
   7567 
   7568 
   7569 #
   7570 # At compile time HAVE_PCAP_FINDALLDEVS depends on HAVE_PCAP_IF_T.
   7571 #
   7572 ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h>
   7573 "
   7574 if test "x$ac_cv_type_pcap_if_t" = xyes
   7575 then :
   7576 
   7577 printf "%s\n" "#define HAVE_PCAP_IF_T 1" >>confdefs.h
   7578 
   7579 
   7580 fi
   7581 
   7582 
   7583 CPPFLAGS="$savedcppflags"
   7584 
   7585 #
   7586 # Define the old BSD specified-width types in terms of the C99 types;
   7587 # we may need them with libpcap include files.
   7588 #
   7589 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
   7590 #include <sys/types.h>
   7591 
   7592 "
   7593 if test "x$ac_cv_type_u_int8_t" = xyes
   7594 then :
   7595 
   7596 else $as_nop
   7597 
   7598 printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h
   7599 
   7600 fi
   7601 
   7602 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
   7603 #include <sys/types.h>
   7604 
   7605 "
   7606 if test "x$ac_cv_type_u_int16_t" = xyes
   7607 then :
   7608 
   7609 else $as_nop
   7610 
   7611 printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h
   7612 
   7613 fi
   7614 
   7615 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
   7616 #include <sys/types.h>
   7617 
   7618 "
   7619 if test "x$ac_cv_type_u_int32_t" = xyes
   7620 then :
   7621 
   7622 else $as_nop
   7623 
   7624 printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h
   7625 
   7626 fi
   7627 
   7628 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
   7629 #include <sys/types.h>
   7630 
   7631 "
   7632 if test "x$ac_cv_type_u_int64_t" = xyes
   7633 then :
   7634 
   7635 else $as_nop
   7636 
   7637 printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h
   7638 
   7639 fi
   7640 
   7641 
   7642 if test -n "$ac_tool_prefix"; then
   7643   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   7644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7646 printf %s "checking for $ac_word... " >&6; }
   7647 if test ${ac_cv_prog_RANLIB+y}
   7648 then :
   7649   printf %s "(cached) " >&6
   7650 else $as_nop
   7651   if test -n "$RANLIB"; then
   7652   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   7653 else
   7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7655 for as_dir in $PATH
   7656 do
   7657   IFS=$as_save_IFS
   7658   case $as_dir in #(((
   7659     '') as_dir=./ ;;
   7660     */) ;;
   7661     *) as_dir=$as_dir/ ;;
   7662   esac
   7663     for ac_exec_ext in '' $ac_executable_extensions; do
   7664   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7665     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   7666     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7667     break 2
   7668   fi
   7669 done
   7670   done
   7671 IFS=$as_save_IFS
   7672 
   7673 fi
   7674 fi
   7675 RANLIB=$ac_cv_prog_RANLIB
   7676 if test -n "$RANLIB"; then
   7677   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   7678 printf "%s\n" "$RANLIB" >&6; }
   7679 else
   7680   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7681 printf "%s\n" "no" >&6; }
   7682 fi
   7683 
   7684 
   7685 fi
   7686 if test -z "$ac_cv_prog_RANLIB"; then
   7687   ac_ct_RANLIB=$RANLIB
   7688   # Extract the first word of "ranlib", so it can be a program name with args.
   7689 set dummy ranlib; ac_word=$2
   7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7691 printf %s "checking for $ac_word... " >&6; }
   7692 if test ${ac_cv_prog_ac_ct_RANLIB+y}
   7693 then :
   7694   printf %s "(cached) " >&6
   7695 else $as_nop
   7696   if test -n "$ac_ct_RANLIB"; then
   7697   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   7698 else
   7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7700 for as_dir in $PATH
   7701 do
   7702   IFS=$as_save_IFS
   7703   case $as_dir in #(((
   7704     '') as_dir=./ ;;
   7705     */) ;;
   7706     *) as_dir=$as_dir/ ;;
   7707   esac
   7708     for ac_exec_ext in '' $ac_executable_extensions; do
   7709   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7710     ac_cv_prog_ac_ct_RANLIB="ranlib"
   7711     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7712     break 2
   7713   fi
   7714 done
   7715   done
   7716 IFS=$as_save_IFS
   7717 
   7718 fi
   7719 fi
   7720 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   7721 if test -n "$ac_ct_RANLIB"; then
   7722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   7723 printf "%s\n" "$ac_ct_RANLIB" >&6; }
   7724 else
   7725   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7726 printf "%s\n" "no" >&6; }
   7727 fi
   7728 
   7729   if test "x$ac_ct_RANLIB" = x; then
   7730     RANLIB=":"
   7731   else
   7732     case $cross_compiling:$ac_tool_warned in
   7733 yes:)
   7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7735 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7736 ac_tool_warned=yes ;;
   7737 esac
   7738     RANLIB=$ac_ct_RANLIB
   7739   fi
   7740 else
   7741   RANLIB="$ac_cv_prog_RANLIB"
   7742 fi
   7743 
   7744 if test -n "$ac_tool_prefix"; then
   7745   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   7746 set dummy ${ac_tool_prefix}ar; ac_word=$2
   7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7748 printf %s "checking for $ac_word... " >&6; }
   7749 if test ${ac_cv_prog_AR+y}
   7750 then :
   7751   printf %s "(cached) " >&6
   7752 else $as_nop
   7753   if test -n "$AR"; then
   7754   ac_cv_prog_AR="$AR" # Let the user override the test.
   7755 else
   7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7757 for as_dir in $PATH
   7758 do
   7759   IFS=$as_save_IFS
   7760   case $as_dir in #(((
   7761     '') as_dir=./ ;;
   7762     */) ;;
   7763     *) as_dir=$as_dir/ ;;
   7764   esac
   7765     for ac_exec_ext in '' $ac_executable_extensions; do
   7766   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7767     ac_cv_prog_AR="${ac_tool_prefix}ar"
   7768     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7769     break 2
   7770   fi
   7771 done
   7772   done
   7773 IFS=$as_save_IFS
   7774 
   7775 fi
   7776 fi
   7777 AR=$ac_cv_prog_AR
   7778 if test -n "$AR"; then
   7779   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   7780 printf "%s\n" "$AR" >&6; }
   7781 else
   7782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7783 printf "%s\n" "no" >&6; }
   7784 fi
   7785 
   7786 
   7787 fi
   7788 if test -z "$ac_cv_prog_AR"; then
   7789   ac_ct_AR=$AR
   7790   # Extract the first word of "ar", so it can be a program name with args.
   7791 set dummy ar; ac_word=$2
   7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7793 printf %s "checking for $ac_word... " >&6; }
   7794 if test ${ac_cv_prog_ac_ct_AR+y}
   7795 then :
   7796   printf %s "(cached) " >&6
   7797 else $as_nop
   7798   if test -n "$ac_ct_AR"; then
   7799   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   7800 else
   7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7802 for as_dir in $PATH
   7803 do
   7804   IFS=$as_save_IFS
   7805   case $as_dir in #(((
   7806     '') as_dir=./ ;;
   7807     */) ;;
   7808     *) as_dir=$as_dir/ ;;
   7809   esac
   7810     for ac_exec_ext in '' $ac_executable_extensions; do
   7811   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7812     ac_cv_prog_ac_ct_AR="ar"
   7813     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7814     break 2
   7815   fi
   7816 done
   7817   done
   7818 IFS=$as_save_IFS
   7819 
   7820 fi
   7821 fi
   7822 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   7823 if test -n "$ac_ct_AR"; then
   7824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   7825 printf "%s\n" "$ac_ct_AR" >&6; }
   7826 else
   7827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7828 printf "%s\n" "no" >&6; }
   7829 fi
   7830 
   7831   if test "x$ac_ct_AR" = x; then
   7832     AR=""
   7833   else
   7834     case $cross_compiling:$ac_tool_warned in
   7835 yes:)
   7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7838 ac_tool_warned=yes ;;
   7839 esac
   7840     AR=$ac_ct_AR
   7841   fi
   7842 else
   7843   AR="$ac_cv_prog_AR"
   7844 fi
   7845 
   7846 
   7847 rm -f os-proto.h
   7848     if test "${LBL_CFLAGS+set}" = set; then
   7849 	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
   7850     fi
   7851     if test -f .devel ; then
   7852 	    #
   7853 	    # Skip all the warning option stuff on some compilers.
   7854 	    #
   7855 	    if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
   7856 
   7857 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
   7858 printf %s "checking whether the compiler supports the -W option... " >&6; }
   7859 	save_CFLAGS="$CFLAGS"
   7860 	CFLAGS="$CFLAGS -W"
   7861 	#
   7862 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   7863 	# but no mechanism is provided to turn AC_LANG_WERROR on
   7864 	# *and then turn it back off*, so that we *only* do it when
   7865 	# testing compiler options - 15 years after somebody asked
   7866 	# for it:
   7867 	#
   7868 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   7869 	#
   7870 	save_ac_c_werror_flag="$ac_c_werror_flag"
   7871 	ac_c_werror_flag=yes
   7872 	#
   7873 	# We use AC_LANG_SOURCE() so that we can control the complete
   7874 	# content of the program being compiled.  We do not, for example,
   7875 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   7876 	# as it will generate a warning with -Wold-style-definition, meaning
   7877 	# that we would treat it as not working, as the test will fail if
   7878 	# *any* error output, including a warning due to the flag we're
   7879 	# testing, is generated; see
   7880 	#
   7881 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7882 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7883 	#
   7884 	# This may, as per those two messages, be fixed in autoconf 2.70,
   7885 	# but we only require 2.69 or newer for now.
   7886 	#
   7887 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7888 /* end confdefs.h.  */
   7889 int main(void) { return 0; }
   7890 _ACEOF
   7891 if ac_fn_c_try_compile "$LINENO"
   7892 then :
   7893 
   7894 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7895 printf "%s\n" "yes" >&6; }
   7896 		CFLAGS="$save_CFLAGS"
   7897 		V_CCOPT="$V_CCOPT -W"
   7898 
   7899 else $as_nop
   7900 
   7901 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7902 printf "%s\n" "no" >&6; }
   7903 		CFLAGS="$save_CFLAGS"
   7904 
   7905 fi
   7906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7907 	ac_c_werror_flag="$save_ac_c_werror_flag"
   7908 
   7909 
   7910 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
   7911 printf %s "checking whether the compiler supports the -Wall option... " >&6; }
   7912 	save_CFLAGS="$CFLAGS"
   7913 	CFLAGS="$CFLAGS -Wall"
   7914 	#
   7915 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   7916 	# but no mechanism is provided to turn AC_LANG_WERROR on
   7917 	# *and then turn it back off*, so that we *only* do it when
   7918 	# testing compiler options - 15 years after somebody asked
   7919 	# for it:
   7920 	#
   7921 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   7922 	#
   7923 	save_ac_c_werror_flag="$ac_c_werror_flag"
   7924 	ac_c_werror_flag=yes
   7925 	#
   7926 	# We use AC_LANG_SOURCE() so that we can control the complete
   7927 	# content of the program being compiled.  We do not, for example,
   7928 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   7929 	# as it will generate a warning with -Wold-style-definition, meaning
   7930 	# that we would treat it as not working, as the test will fail if
   7931 	# *any* error output, including a warning due to the flag we're
   7932 	# testing, is generated; see
   7933 	#
   7934 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7935 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7936 	#
   7937 	# This may, as per those two messages, be fixed in autoconf 2.70,
   7938 	# but we only require 2.69 or newer for now.
   7939 	#
   7940 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7941 /* end confdefs.h.  */
   7942 int main(void) { return 0; }
   7943 _ACEOF
   7944 if ac_fn_c_try_compile "$LINENO"
   7945 then :
   7946 
   7947 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7948 printf "%s\n" "yes" >&6; }
   7949 		CFLAGS="$save_CFLAGS"
   7950 		V_CCOPT="$V_CCOPT -Wall"
   7951 
   7952 else $as_nop
   7953 
   7954 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7955 printf "%s\n" "no" >&6; }
   7956 		CFLAGS="$save_CFLAGS"
   7957 
   7958 fi
   7959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7960 	ac_c_werror_flag="$save_ac_c_werror_flag"
   7961 
   7962 
   7963 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wassign-enum option" >&5
   7964 printf %s "checking whether the compiler supports the -Wassign-enum option... " >&6; }
   7965 	save_CFLAGS="$CFLAGS"
   7966 	CFLAGS="$CFLAGS -Wassign-enum"
   7967 	#
   7968 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   7969 	# but no mechanism is provided to turn AC_LANG_WERROR on
   7970 	# *and then turn it back off*, so that we *only* do it when
   7971 	# testing compiler options - 15 years after somebody asked
   7972 	# for it:
   7973 	#
   7974 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   7975 	#
   7976 	save_ac_c_werror_flag="$ac_c_werror_flag"
   7977 	ac_c_werror_flag=yes
   7978 	#
   7979 	# We use AC_LANG_SOURCE() so that we can control the complete
   7980 	# content of the program being compiled.  We do not, for example,
   7981 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   7982 	# as it will generate a warning with -Wold-style-definition, meaning
   7983 	# that we would treat it as not working, as the test will fail if
   7984 	# *any* error output, including a warning due to the flag we're
   7985 	# testing, is generated; see
   7986 	#
   7987 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7988 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   7989 	#
   7990 	# This may, as per those two messages, be fixed in autoconf 2.70,
   7991 	# but we only require 2.69 or newer for now.
   7992 	#
   7993 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7994 /* end confdefs.h.  */
   7995 int main(void) { return 0; }
   7996 _ACEOF
   7997 if ac_fn_c_try_compile "$LINENO"
   7998 then :
   7999 
   8000 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8001 printf "%s\n" "yes" >&6; }
   8002 		CFLAGS="$save_CFLAGS"
   8003 		V_CCOPT="$V_CCOPT -Wassign-enum"
   8004 
   8005 else $as_nop
   8006 
   8007 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8008 printf "%s\n" "no" >&6; }
   8009 		CFLAGS="$save_CFLAGS"
   8010 
   8011 fi
   8012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8013 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8014 
   8015 
   8016 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcast-qual option" >&5
   8017 printf %s "checking whether the compiler supports the -Wcast-qual option... " >&6; }
   8018 	save_CFLAGS="$CFLAGS"
   8019 	CFLAGS="$CFLAGS -Wcast-qual"
   8020 	#
   8021 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8022 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8023 	# *and then turn it back off*, so that we *only* do it when
   8024 	# testing compiler options - 15 years after somebody asked
   8025 	# for it:
   8026 	#
   8027 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8028 	#
   8029 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8030 	ac_c_werror_flag=yes
   8031 	#
   8032 	# We use AC_LANG_SOURCE() so that we can control the complete
   8033 	# content of the program being compiled.  We do not, for example,
   8034 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8035 	# as it will generate a warning with -Wold-style-definition, meaning
   8036 	# that we would treat it as not working, as the test will fail if
   8037 	# *any* error output, including a warning due to the flag we're
   8038 	# testing, is generated; see
   8039 	#
   8040 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8041 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8042 	#
   8043 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8044 	# but we only require 2.69 or newer for now.
   8045 	#
   8046 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8047 /* end confdefs.h.  */
   8048 int main(void) { return 0; }
   8049 _ACEOF
   8050 if ac_fn_c_try_compile "$LINENO"
   8051 then :
   8052 
   8053 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8054 printf "%s\n" "yes" >&6; }
   8055 		CFLAGS="$save_CFLAGS"
   8056 		V_CCOPT="$V_CCOPT -Wcast-qual"
   8057 
   8058 else $as_nop
   8059 
   8060 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8061 printf "%s\n" "no" >&6; }
   8062 		CFLAGS="$save_CFLAGS"
   8063 
   8064 fi
   8065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8066 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8067 
   8068 
   8069 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
   8070 printf %s "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
   8071 	save_CFLAGS="$CFLAGS"
   8072 	CFLAGS="$CFLAGS -Wmissing-prototypes"
   8073 	#
   8074 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8075 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8076 	# *and then turn it back off*, so that we *only* do it when
   8077 	# testing compiler options - 15 years after somebody asked
   8078 	# for it:
   8079 	#
   8080 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8081 	#
   8082 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8083 	ac_c_werror_flag=yes
   8084 	#
   8085 	# We use AC_LANG_SOURCE() so that we can control the complete
   8086 	# content of the program being compiled.  We do not, for example,
   8087 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8088 	# as it will generate a warning with -Wold-style-definition, meaning
   8089 	# that we would treat it as not working, as the test will fail if
   8090 	# *any* error output, including a warning due to the flag we're
   8091 	# testing, is generated; see
   8092 	#
   8093 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8094 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8095 	#
   8096 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8097 	# but we only require 2.69 or newer for now.
   8098 	#
   8099 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8100 /* end confdefs.h.  */
   8101 int main(void) { return 0; }
   8102 _ACEOF
   8103 if ac_fn_c_try_compile "$LINENO"
   8104 then :
   8105 
   8106 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8107 printf "%s\n" "yes" >&6; }
   8108 		CFLAGS="$save_CFLAGS"
   8109 		V_CCOPT="$V_CCOPT -Wmissing-prototypes"
   8110 
   8111 else $as_nop
   8112 
   8113 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8114 printf "%s\n" "no" >&6; }
   8115 		CFLAGS="$save_CFLAGS"
   8116 
   8117 fi
   8118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8119 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8120 
   8121 
   8122 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
   8123 printf %s "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
   8124 	save_CFLAGS="$CFLAGS"
   8125 	CFLAGS="$CFLAGS -Wmissing-variable-declarations"
   8126 	#
   8127 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8128 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8129 	# *and then turn it back off*, so that we *only* do it when
   8130 	# testing compiler options - 15 years after somebody asked
   8131 	# for it:
   8132 	#
   8133 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8134 	#
   8135 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8136 	ac_c_werror_flag=yes
   8137 	#
   8138 	# We use AC_LANG_SOURCE() so that we can control the complete
   8139 	# content of the program being compiled.  We do not, for example,
   8140 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8141 	# as it will generate a warning with -Wold-style-definition, meaning
   8142 	# that we would treat it as not working, as the test will fail if
   8143 	# *any* error output, including a warning due to the flag we're
   8144 	# testing, is generated; see
   8145 	#
   8146 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8147 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8148 	#
   8149 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8150 	# but we only require 2.69 or newer for now.
   8151 	#
   8152 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8153 /* end confdefs.h.  */
   8154 int main(void) { return 0; }
   8155 _ACEOF
   8156 if ac_fn_c_try_compile "$LINENO"
   8157 then :
   8158 
   8159 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8160 printf "%s\n" "yes" >&6; }
   8161 		CFLAGS="$save_CFLAGS"
   8162 		V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
   8163 
   8164 else $as_nop
   8165 
   8166 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8167 printf "%s\n" "no" >&6; }
   8168 		CFLAGS="$save_CFLAGS"
   8169 
   8170 fi
   8171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8172 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8173 
   8174 
   8175 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wnull-pointer-subtraction option" >&5
   8176 printf %s "checking whether the compiler supports the -Wnull-pointer-subtraction option... " >&6; }
   8177 	save_CFLAGS="$CFLAGS"
   8178 	CFLAGS="$CFLAGS -Wnull-pointer-subtraction"
   8179 	#
   8180 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8181 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8182 	# *and then turn it back off*, so that we *only* do it when
   8183 	# testing compiler options - 15 years after somebody asked
   8184 	# for it:
   8185 	#
   8186 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8187 	#
   8188 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8189 	ac_c_werror_flag=yes
   8190 	#
   8191 	# We use AC_LANG_SOURCE() so that we can control the complete
   8192 	# content of the program being compiled.  We do not, for example,
   8193 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8194 	# as it will generate a warning with -Wold-style-definition, meaning
   8195 	# that we would treat it as not working, as the test will fail if
   8196 	# *any* error output, including a warning due to the flag we're
   8197 	# testing, is generated; see
   8198 	#
   8199 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8200 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8201 	#
   8202 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8203 	# but we only require 2.69 or newer for now.
   8204 	#
   8205 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8206 /* end confdefs.h.  */
   8207 int main(void) { return 0; }
   8208 _ACEOF
   8209 if ac_fn_c_try_compile "$LINENO"
   8210 then :
   8211 
   8212 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8213 printf "%s\n" "yes" >&6; }
   8214 		CFLAGS="$save_CFLAGS"
   8215 		V_CCOPT="$V_CCOPT -Wnull-pointer-subtraction"
   8216 
   8217 else $as_nop
   8218 
   8219 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8220 printf "%s\n" "no" >&6; }
   8221 		CFLAGS="$save_CFLAGS"
   8222 
   8223 fi
   8224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8225 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8226 
   8227 
   8228 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wold-style-definition option" >&5
   8229 printf %s "checking whether the compiler supports the -Wold-style-definition option... " >&6; }
   8230 	save_CFLAGS="$CFLAGS"
   8231 	CFLAGS="$CFLAGS -Wold-style-definition"
   8232 	#
   8233 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8234 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8235 	# *and then turn it back off*, so that we *only* do it when
   8236 	# testing compiler options - 15 years after somebody asked
   8237 	# for it:
   8238 	#
   8239 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8240 	#
   8241 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8242 	ac_c_werror_flag=yes
   8243 	#
   8244 	# We use AC_LANG_SOURCE() so that we can control the complete
   8245 	# content of the program being compiled.  We do not, for example,
   8246 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8247 	# as it will generate a warning with -Wold-style-definition, meaning
   8248 	# that we would treat it as not working, as the test will fail if
   8249 	# *any* error output, including a warning due to the flag we're
   8250 	# testing, is generated; see
   8251 	#
   8252 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8253 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8254 	#
   8255 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8256 	# but we only require 2.69 or newer for now.
   8257 	#
   8258 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8259 /* end confdefs.h.  */
   8260 int main(void) { return 0; }
   8261 _ACEOF
   8262 if ac_fn_c_try_compile "$LINENO"
   8263 then :
   8264 
   8265 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8266 printf "%s\n" "yes" >&6; }
   8267 		CFLAGS="$save_CFLAGS"
   8268 		V_CCOPT="$V_CCOPT -Wold-style-definition"
   8269 
   8270 else $as_nop
   8271 
   8272 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8273 printf "%s\n" "no" >&6; }
   8274 		CFLAGS="$save_CFLAGS"
   8275 
   8276 fi
   8277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8278 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8279 
   8280 
   8281 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpedantic option" >&5
   8282 printf %s "checking whether the compiler supports the -Wpedantic option... " >&6; }
   8283 	save_CFLAGS="$CFLAGS"
   8284 	CFLAGS="$CFLAGS -Wpedantic"
   8285 	#
   8286 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8287 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8288 	# *and then turn it back off*, so that we *only* do it when
   8289 	# testing compiler options - 15 years after somebody asked
   8290 	# for it:
   8291 	#
   8292 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8293 	#
   8294 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8295 	ac_c_werror_flag=yes
   8296 	#
   8297 	# We use AC_LANG_SOURCE() so that we can control the complete
   8298 	# content of the program being compiled.  We do not, for example,
   8299 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8300 	# as it will generate a warning with -Wold-style-definition, meaning
   8301 	# that we would treat it as not working, as the test will fail if
   8302 	# *any* error output, including a warning due to the flag we're
   8303 	# testing, is generated; see
   8304 	#
   8305 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8306 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8307 	#
   8308 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8309 	# but we only require 2.69 or newer for now.
   8310 	#
   8311 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8312 /* end confdefs.h.  */
   8313 int main(void) { return 0; }
   8314 _ACEOF
   8315 if ac_fn_c_try_compile "$LINENO"
   8316 then :
   8317 
   8318 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8319 printf "%s\n" "yes" >&6; }
   8320 		CFLAGS="$save_CFLAGS"
   8321 		V_CCOPT="$V_CCOPT -Wpedantic"
   8322 
   8323 else $as_nop
   8324 
   8325 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8326 printf "%s\n" "no" >&6; }
   8327 		CFLAGS="$save_CFLAGS"
   8328 
   8329 fi
   8330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8331 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8332 
   8333 
   8334 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5
   8335 printf %s "checking whether the compiler supports the -Wpointer-arith option... " >&6; }
   8336 	save_CFLAGS="$CFLAGS"
   8337 	CFLAGS="$CFLAGS -Wpointer-arith"
   8338 	#
   8339 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8340 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8341 	# *and then turn it back off*, so that we *only* do it when
   8342 	# testing compiler options - 15 years after somebody asked
   8343 	# for it:
   8344 	#
   8345 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8346 	#
   8347 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8348 	ac_c_werror_flag=yes
   8349 	#
   8350 	# We use AC_LANG_SOURCE() so that we can control the complete
   8351 	# content of the program being compiled.  We do not, for example,
   8352 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8353 	# as it will generate a warning with -Wold-style-definition, meaning
   8354 	# that we would treat it as not working, as the test will fail if
   8355 	# *any* error output, including a warning due to the flag we're
   8356 	# testing, is generated; see
   8357 	#
   8358 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8359 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8360 	#
   8361 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8362 	# but we only require 2.69 or newer for now.
   8363 	#
   8364 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8365 /* end confdefs.h.  */
   8366 int main(void) { return 0; }
   8367 _ACEOF
   8368 if ac_fn_c_try_compile "$LINENO"
   8369 then :
   8370 
   8371 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8372 printf "%s\n" "yes" >&6; }
   8373 		CFLAGS="$save_CFLAGS"
   8374 		V_CCOPT="$V_CCOPT -Wpointer-arith"
   8375 
   8376 else $as_nop
   8377 
   8378 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8379 printf "%s\n" "no" >&6; }
   8380 		CFLAGS="$save_CFLAGS"
   8381 
   8382 fi
   8383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8384 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8385 
   8386 
   8387 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign option" >&5
   8388 printf %s "checking whether the compiler supports the -Wpointer-sign option... " >&6; }
   8389 	save_CFLAGS="$CFLAGS"
   8390 	CFLAGS="$CFLAGS -Wpointer-sign"
   8391 	#
   8392 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8393 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8394 	# *and then turn it back off*, so that we *only* do it when
   8395 	# testing compiler options - 15 years after somebody asked
   8396 	# for it:
   8397 	#
   8398 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8399 	#
   8400 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8401 	ac_c_werror_flag=yes
   8402 	#
   8403 	# We use AC_LANG_SOURCE() so that we can control the complete
   8404 	# content of the program being compiled.  We do not, for example,
   8405 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8406 	# as it will generate a warning with -Wold-style-definition, meaning
   8407 	# that we would treat it as not working, as the test will fail if
   8408 	# *any* error output, including a warning due to the flag we're
   8409 	# testing, is generated; see
   8410 	#
   8411 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8412 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8413 	#
   8414 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8415 	# but we only require 2.69 or newer for now.
   8416 	#
   8417 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8418 /* end confdefs.h.  */
   8419 int main(void) { return 0; }
   8420 _ACEOF
   8421 if ac_fn_c_try_compile "$LINENO"
   8422 then :
   8423 
   8424 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8425 printf "%s\n" "yes" >&6; }
   8426 		CFLAGS="$save_CFLAGS"
   8427 		V_CCOPT="$V_CCOPT -Wpointer-sign"
   8428 
   8429 else $as_nop
   8430 
   8431 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8432 printf "%s\n" "no" >&6; }
   8433 		CFLAGS="$save_CFLAGS"
   8434 
   8435 fi
   8436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8437 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8438 
   8439 
   8440 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
   8441 printf %s "checking whether the compiler supports the -Wshadow option... " >&6; }
   8442 	save_CFLAGS="$CFLAGS"
   8443 	CFLAGS="$CFLAGS -Wshadow"
   8444 	#
   8445 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8446 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8447 	# *and then turn it back off*, so that we *only* do it when
   8448 	# testing compiler options - 15 years after somebody asked
   8449 	# for it:
   8450 	#
   8451 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8452 	#
   8453 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8454 	ac_c_werror_flag=yes
   8455 	#
   8456 	# We use AC_LANG_SOURCE() so that we can control the complete
   8457 	# content of the program being compiled.  We do not, for example,
   8458 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8459 	# as it will generate a warning with -Wold-style-definition, meaning
   8460 	# that we would treat it as not working, as the test will fail if
   8461 	# *any* error output, including a warning due to the flag we're
   8462 	# testing, is generated; see
   8463 	#
   8464 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8465 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8466 	#
   8467 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8468 	# but we only require 2.69 or newer for now.
   8469 	#
   8470 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8471 /* end confdefs.h.  */
   8472 int main(void) { return 0; }
   8473 _ACEOF
   8474 if ac_fn_c_try_compile "$LINENO"
   8475 then :
   8476 
   8477 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8478 printf "%s\n" "yes" >&6; }
   8479 		CFLAGS="$save_CFLAGS"
   8480 		V_CCOPT="$V_CCOPT -Wshadow"
   8481 
   8482 else $as_nop
   8483 
   8484 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8485 printf "%s\n" "no" >&6; }
   8486 		CFLAGS="$save_CFLAGS"
   8487 
   8488 fi
   8489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8490 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8491 
   8492 
   8493 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
   8494 printf %s "checking whether the compiler supports the -Wsign-compare option... " >&6; }
   8495 	save_CFLAGS="$CFLAGS"
   8496 	CFLAGS="$CFLAGS -Wsign-compare"
   8497 	#
   8498 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8499 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8500 	# *and then turn it back off*, so that we *only* do it when
   8501 	# testing compiler options - 15 years after somebody asked
   8502 	# for it:
   8503 	#
   8504 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8505 	#
   8506 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8507 	ac_c_werror_flag=yes
   8508 	#
   8509 	# We use AC_LANG_SOURCE() so that we can control the complete
   8510 	# content of the program being compiled.  We do not, for example,
   8511 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8512 	# as it will generate a warning with -Wold-style-definition, meaning
   8513 	# that we would treat it as not working, as the test will fail if
   8514 	# *any* error output, including a warning due to the flag we're
   8515 	# testing, is generated; see
   8516 	#
   8517 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8518 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8519 	#
   8520 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8521 	# but we only require 2.69 or newer for now.
   8522 	#
   8523 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8524 /* end confdefs.h.  */
   8525 int main(void) { return 0; }
   8526 _ACEOF
   8527 if ac_fn_c_try_compile "$LINENO"
   8528 then :
   8529 
   8530 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8531 printf "%s\n" "yes" >&6; }
   8532 		CFLAGS="$save_CFLAGS"
   8533 		V_CCOPT="$V_CCOPT -Wsign-compare"
   8534 
   8535 else $as_nop
   8536 
   8537 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8538 printf "%s\n" "no" >&6; }
   8539 		CFLAGS="$save_CFLAGS"
   8540 
   8541 fi
   8542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8543 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8544 
   8545 
   8546 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
   8547 printf %s "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
   8548 	save_CFLAGS="$CFLAGS"
   8549 	CFLAGS="$CFLAGS -Wstrict-prototypes"
   8550 	#
   8551 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8552 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8553 	# *and then turn it back off*, so that we *only* do it when
   8554 	# testing compiler options - 15 years after somebody asked
   8555 	# for it:
   8556 	#
   8557 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8558 	#
   8559 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8560 	ac_c_werror_flag=yes
   8561 	#
   8562 	# We use AC_LANG_SOURCE() so that we can control the complete
   8563 	# content of the program being compiled.  We do not, for example,
   8564 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8565 	# as it will generate a warning with -Wold-style-definition, meaning
   8566 	# that we would treat it as not working, as the test will fail if
   8567 	# *any* error output, including a warning due to the flag we're
   8568 	# testing, is generated; see
   8569 	#
   8570 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8571 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8572 	#
   8573 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8574 	# but we only require 2.69 or newer for now.
   8575 	#
   8576 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8577 /* end confdefs.h.  */
   8578 int main(void) { return 0; }
   8579 _ACEOF
   8580 if ac_fn_c_try_compile "$LINENO"
   8581 then :
   8582 
   8583 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8584 printf "%s\n" "yes" >&6; }
   8585 		CFLAGS="$save_CFLAGS"
   8586 		V_CCOPT="$V_CCOPT -Wstrict-prototypes"
   8587 
   8588 else $as_nop
   8589 
   8590 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8591 printf "%s\n" "no" >&6; }
   8592 		CFLAGS="$save_CFLAGS"
   8593 
   8594 fi
   8595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8596 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8597 
   8598 
   8599 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wundef option" >&5
   8600 printf %s "checking whether the compiler supports the -Wundef option... " >&6; }
   8601 	save_CFLAGS="$CFLAGS"
   8602 	CFLAGS="$CFLAGS -Wundef"
   8603 	#
   8604 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8605 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8606 	# *and then turn it back off*, so that we *only* do it when
   8607 	# testing compiler options - 15 years after somebody asked
   8608 	# for it:
   8609 	#
   8610 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8611 	#
   8612 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8613 	ac_c_werror_flag=yes
   8614 	#
   8615 	# We use AC_LANG_SOURCE() so that we can control the complete
   8616 	# content of the program being compiled.  We do not, for example,
   8617 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8618 	# as it will generate a warning with -Wold-style-definition, meaning
   8619 	# that we would treat it as not working, as the test will fail if
   8620 	# *any* error output, including a warning due to the flag we're
   8621 	# testing, is generated; see
   8622 	#
   8623 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8624 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8625 	#
   8626 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8627 	# but we only require 2.69 or newer for now.
   8628 	#
   8629 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8630 /* end confdefs.h.  */
   8631 int main(void) { return 0; }
   8632 _ACEOF
   8633 if ac_fn_c_try_compile "$LINENO"
   8634 then :
   8635 
   8636 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8637 printf "%s\n" "yes" >&6; }
   8638 		CFLAGS="$save_CFLAGS"
   8639 		V_CCOPT="$V_CCOPT -Wundef"
   8640 
   8641 else $as_nop
   8642 
   8643 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8644 printf "%s\n" "no" >&6; }
   8645 		CFLAGS="$save_CFLAGS"
   8646 
   8647 fi
   8648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8649 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8650 
   8651 
   8652 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code-return option" >&5
   8653 printf %s "checking whether the compiler supports the -Wunreachable-code-return option... " >&6; }
   8654 	save_CFLAGS="$CFLAGS"
   8655 	CFLAGS="$CFLAGS -Wunreachable-code-return"
   8656 	#
   8657 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8658 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8659 	# *and then turn it back off*, so that we *only* do it when
   8660 	# testing compiler options - 15 years after somebody asked
   8661 	# for it:
   8662 	#
   8663 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8664 	#
   8665 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8666 	ac_c_werror_flag=yes
   8667 	#
   8668 	# We use AC_LANG_SOURCE() so that we can control the complete
   8669 	# content of the program being compiled.  We do not, for example,
   8670 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8671 	# as it will generate a warning with -Wold-style-definition, meaning
   8672 	# that we would treat it as not working, as the test will fail if
   8673 	# *any* error output, including a warning due to the flag we're
   8674 	# testing, is generated; see
   8675 	#
   8676 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8677 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8678 	#
   8679 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8680 	# but we only require 2.69 or newer for now.
   8681 	#
   8682 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8683 /* end confdefs.h.  */
   8684 int main(void) { return 0; }
   8685 _ACEOF
   8686 if ac_fn_c_try_compile "$LINENO"
   8687 then :
   8688 
   8689 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8690 printf "%s\n" "yes" >&6; }
   8691 		CFLAGS="$save_CFLAGS"
   8692 		V_CCOPT="$V_CCOPT -Wunreachable-code-return"
   8693 
   8694 else $as_nop
   8695 
   8696 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8697 printf "%s\n" "no" >&6; }
   8698 		CFLAGS="$save_CFLAGS"
   8699 
   8700 fi
   8701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8702 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8703 
   8704 
   8705 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-parameter option" >&5
   8706 printf %s "checking whether the compiler supports the -Wunused-but-set-parameter option... " >&6; }
   8707 	save_CFLAGS="$CFLAGS"
   8708 	CFLAGS="$CFLAGS -Wunused-but-set-parameter"
   8709 	#
   8710 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8711 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8712 	# *and then turn it back off*, so that we *only* do it when
   8713 	# testing compiler options - 15 years after somebody asked
   8714 	# for it:
   8715 	#
   8716 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8717 	#
   8718 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8719 	ac_c_werror_flag=yes
   8720 	#
   8721 	# We use AC_LANG_SOURCE() so that we can control the complete
   8722 	# content of the program being compiled.  We do not, for example,
   8723 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8724 	# as it will generate a warning with -Wold-style-definition, meaning
   8725 	# that we would treat it as not working, as the test will fail if
   8726 	# *any* error output, including a warning due to the flag we're
   8727 	# testing, is generated; see
   8728 	#
   8729 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8730 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8731 	#
   8732 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8733 	# but we only require 2.69 or newer for now.
   8734 	#
   8735 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8736 /* end confdefs.h.  */
   8737 int main(void) { return 0; }
   8738 _ACEOF
   8739 if ac_fn_c_try_compile "$LINENO"
   8740 then :
   8741 
   8742 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8743 printf "%s\n" "yes" >&6; }
   8744 		CFLAGS="$save_CFLAGS"
   8745 		V_CCOPT="$V_CCOPT -Wunused-but-set-parameter"
   8746 
   8747 else $as_nop
   8748 
   8749 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8750 printf "%s\n" "no" >&6; }
   8751 		CFLAGS="$save_CFLAGS"
   8752 
   8753 fi
   8754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8755 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8756 
   8757 
   8758 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-variable option" >&5
   8759 printf %s "checking whether the compiler supports the -Wunused-but-set-variable option... " >&6; }
   8760 	save_CFLAGS="$CFLAGS"
   8761 	CFLAGS="$CFLAGS -Wunused-but-set-variable"
   8762 	#
   8763 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8764 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8765 	# *and then turn it back off*, so that we *only* do it when
   8766 	# testing compiler options - 15 years after somebody asked
   8767 	# for it:
   8768 	#
   8769 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8770 	#
   8771 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8772 	ac_c_werror_flag=yes
   8773 	#
   8774 	# We use AC_LANG_SOURCE() so that we can control the complete
   8775 	# content of the program being compiled.  We do not, for example,
   8776 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8777 	# as it will generate a warning with -Wold-style-definition, meaning
   8778 	# that we would treat it as not working, as the test will fail if
   8779 	# *any* error output, including a warning due to the flag we're
   8780 	# testing, is generated; see
   8781 	#
   8782 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8783 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8784 	#
   8785 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8786 	# but we only require 2.69 or newer for now.
   8787 	#
   8788 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8789 /* end confdefs.h.  */
   8790 int main(void) { return 0; }
   8791 _ACEOF
   8792 if ac_fn_c_try_compile "$LINENO"
   8793 then :
   8794 
   8795 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8796 printf "%s\n" "yes" >&6; }
   8797 		CFLAGS="$save_CFLAGS"
   8798 		V_CCOPT="$V_CCOPT -Wunused-but-set-variable"
   8799 
   8800 else $as_nop
   8801 
   8802 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8803 printf "%s\n" "no" >&6; }
   8804 		CFLAGS="$save_CFLAGS"
   8805 
   8806 fi
   8807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8808 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8809 
   8810 
   8811 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
   8812 printf %s "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
   8813 	save_CFLAGS="$CFLAGS"
   8814 	CFLAGS="$CFLAGS -Wused-but-marked-unused"
   8815 	#
   8816 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8817 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8818 	# *and then turn it back off*, so that we *only* do it when
   8819 	# testing compiler options - 15 years after somebody asked
   8820 	# for it:
   8821 	#
   8822 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8823 	#
   8824 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8825 	ac_c_werror_flag=yes
   8826 	#
   8827 	# We use AC_LANG_SOURCE() so that we can control the complete
   8828 	# content of the program being compiled.  We do not, for example,
   8829 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8830 	# as it will generate a warning with -Wold-style-definition, meaning
   8831 	# that we would treat it as not working, as the test will fail if
   8832 	# *any* error output, including a warning due to the flag we're
   8833 	# testing, is generated; see
   8834 	#
   8835 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8836 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8837 	#
   8838 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8839 	# but we only require 2.69 or newer for now.
   8840 	#
   8841 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8842 /* end confdefs.h.  */
   8843 int main(void) { return 0; }
   8844 _ACEOF
   8845 if ac_fn_c_try_compile "$LINENO"
   8846 then :
   8847 
   8848 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8849 printf "%s\n" "yes" >&6; }
   8850 		CFLAGS="$save_CFLAGS"
   8851 		V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
   8852 
   8853 else $as_nop
   8854 
   8855 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8856 printf "%s\n" "no" >&6; }
   8857 		CFLAGS="$save_CFLAGS"
   8858 
   8859 fi
   8860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8861 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8862 
   8863 
   8864 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wwrite-strings option" >&5
   8865 printf %s "checking whether the compiler supports the -Wwrite-strings option... " >&6; }
   8866 	save_CFLAGS="$CFLAGS"
   8867 	CFLAGS="$CFLAGS -Wwrite-strings"
   8868 	#
   8869 	# XXX - yes, this depends on the way AC_LANG_WERROR works,
   8870 	# but no mechanism is provided to turn AC_LANG_WERROR on
   8871 	# *and then turn it back off*, so that we *only* do it when
   8872 	# testing compiler options - 15 years after somebody asked
   8873 	# for it:
   8874 	#
   8875 	#     https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
   8876 	#
   8877 	save_ac_c_werror_flag="$ac_c_werror_flag"
   8878 	ac_c_werror_flag=yes
   8879 	#
   8880 	# We use AC_LANG_SOURCE() so that we can control the complete
   8881 	# content of the program being compiled.  We do not, for example,
   8882 	# want the default "int main()" that AC_LANG_PROGRAM() generates,
   8883 	# as it will generate a warning with -Wold-style-definition, meaning
   8884 	# that we would treat it as not working, as the test will fail if
   8885 	# *any* error output, including a warning due to the flag we're
   8886 	# testing, is generated; see
   8887 	#
   8888 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8889 	#    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
   8890 	#
   8891 	# This may, as per those two messages, be fixed in autoconf 2.70,
   8892 	# but we only require 2.69 or newer for now.
   8893 	#
   8894 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8895 /* end confdefs.h.  */
   8896 int main(void) { return 0; }
   8897 _ACEOF
   8898 if ac_fn_c_try_compile "$LINENO"
   8899 then :
   8900 
   8901 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8902 printf "%s\n" "yes" >&6; }
   8903 		CFLAGS="$save_CFLAGS"
   8904 		V_CCOPT="$V_CCOPT -Wwrite-strings"
   8905 
   8906 else $as_nop
   8907 
   8908 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8909 printf "%s\n" "no" >&6; }
   8910 		CFLAGS="$save_CFLAGS"
   8911 
   8912 fi
   8913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8914 	ac_c_werror_flag="$save_ac_c_werror_flag"
   8915 
   8916 	    fi
   8917 
   8918 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
   8919 printf %s "checking whether the compiler supports generating dependencies... " >&6; }
   8920 	if test "$GCC" = yes ; then
   8921 		#
   8922 		# GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
   8923 		# though it's not); we assume that, in this case, the flag
   8924 		# would be -M.
   8925 		#
   8926 		ac_lbl_dependency_flag="-M"
   8927 	else
   8928 		#
   8929 		# Not GCC or a compiler deemed to be GCC; what platform is
   8930 		# this?  (We're assuming that if the compiler isn't GCC
   8931 		# it's the compiler from the vendor of the OS; that won't
   8932 		# necessarily be true for x86 platforms, where it might be
   8933 		# the Intel C compiler.)
   8934 		#
   8935 		case "$host_os" in
   8936 
   8937 		irix*|osf*|darwin*)
   8938 			#
   8939 			# MIPS C for IRIX, DEC C, and clang all use -M.
   8940 			#
   8941 			ac_lbl_dependency_flag="-M"
   8942 			;;
   8943 
   8944 		solaris*)
   8945 			#
   8946 			# Sun C uses -xM.
   8947 			#
   8948 			ac_lbl_dependency_flag="-xM"
   8949 			;;
   8950 
   8951 		hpux*)
   8952 			#
   8953 			# HP's older C compilers don't support this.
   8954 			# HP's newer C compilers support this with
   8955 			# either +M or +Make; the older compilers
   8956 			# interpret +M as something completely
   8957 			# different, so we use +Make so we don't
   8958 			# think it works with the older compilers.
   8959 			#
   8960 			ac_lbl_dependency_flag="+Make"
   8961 			;;
   8962 
   8963 		*)
   8964 			#
   8965 			# Not one of the above; assume no support for
   8966 			# generating dependencies.
   8967 			#
   8968 			ac_lbl_dependency_flag=""
   8969 			;;
   8970 		esac
   8971 	fi
   8972 
   8973 	#
   8974 	# Is ac_lbl_dependency_flag defined and, if so, does the compiler
   8975 	# complain about it?
   8976 	#
   8977 	# Note: clang doesn't seem to exit with an error status when handed
   8978 	# an unknown non-warning error, even if you pass it
   8979 	# -Werror=unknown-warning-option.  However, it always supports
   8980 	# -M, so the fact that this test always succeeds with clang
   8981 	# isn't an issue.
   8982 	#
   8983 	if test ! -z "$ac_lbl_dependency_flag"; then
   8984 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8985 /* end confdefs.h.  */
   8986 int main(void) { return 0; }
   8987 _ACEOF
   8988 		if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
   8989   (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
   8990   ac_status=$?
   8991   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8992   test $ac_status = 0; }; then
   8993 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
   8994 printf "%s\n" "yes, with $ac_lbl_dependency_flag" >&6; }
   8995 			DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
   8996 			MKDEP='${top_srcdir}/mkdep'
   8997 		else
   8998 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8999 printf "%s\n" "no" >&6; }
   9000 			#
   9001 			# We can't run mkdep, so have "make depend" do
   9002 			# nothing.
   9003 			#
   9004 			MKDEP=:
   9005 		fi
   9006 		rm -rf conftest*
   9007 	else
   9008 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9009 printf "%s\n" "no" >&6; }
   9010 		#
   9011 		# We can't run mkdep, so have "make depend" do
   9012 		# nothing.
   9013 		#
   9014 		MKDEP=:
   9015 	fi
   9016 
   9017 
   9018 
   9019 	    #
   9020 	    # We used to set -n32 for IRIX 6 when not using GCC (presumed
   9021 	    # to mean that we're using MIPS C or MIPSpro C); it specified
   9022 	    # the "new" faster 32-bit ABI, introduced in IRIX 6.2.  I'm
   9023 	    # not sure why that would be something to do *only* with a
   9024 	    # .devel file; why should the ABI for which we produce code
   9025 	    # depend on .devel?
   9026 	    #
   9027 	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
   9028 	    name="lbl/os-$os.h"
   9029 	    if test -f $name ; then
   9030 		    ln -s $name os-proto.h
   9031 
   9032 printf "%s\n" "#define HAVE_OS_PROTO_H 1" >>confdefs.h
   9033 
   9034 	    else
   9035 		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
   9036 printf "%s\n" "$as_me: WARNING: can't find $name" >&2;}
   9037 	    fi
   9038     fi
   9039 
   9040 # Check for OpenSSL/libressl libcrypto
   9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL/libressl libcrypto" >&5
   9042 printf %s "checking whether to use OpenSSL/libressl libcrypto... " >&6; }
   9043 # Specify location for both includes and libraries.
   9044 want_libcrypto=ifavailable
   9045 
   9046 # Check whether --with-crypto was given.
   9047 if test ${with_crypto+y}
   9048 then :
   9049   withval=$with_crypto;
   9050 	if test $withval = no
   9051 	then
   9052 		# User doesn't want to link with libcrypto.
   9053 		want_libcrypto=no
   9054 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9055 printf "%s\n" "no" >&6; }
   9056 	elif test $withval = yes
   9057 	then
   9058 		# User wants to link with libcrypto but hasn't specified
   9059 		# a directory.
   9060 		want_libcrypto=yes
   9061 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9062 printf "%s\n" "yes" >&6; }
   9063 	else
   9064 		# User wants to link with libcrypto and has specified
   9065 		# a directory, so use the provided value.
   9066 		want_libcrypto=yes
   9067 		libcrypto_root=$withval
   9068 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using the version installed in $withval" >&5
   9069 printf "%s\n" "yes, using the version installed in $withval" >&6; }
   9070 	fi
   9071 
   9072 else $as_nop
   9073 
   9074 	#
   9075 	# Use libcrypto if it's present, otherwise don't; no directory
   9076 	# was specified.
   9077 	#
   9078 	want_libcrypto=ifavailable
   9079 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
   9080 printf "%s\n" "yes, if available" >&6; }
   9081 
   9082 fi
   9083 
   9084 if test "$want_libcrypto" != "no"; then
   9085 	#
   9086 	# Were we told where to look for libcrypto?
   9087 	#
   9088 	if test -z "$libcrypto_root"; then
   9089 		#
   9090 		# No.
   9091 		#
   9092 		# First, try looking for it with pkg-config, if we have it.
   9093 		#
   9094 		# Homebrew's pkg-config does not, by default, look for
   9095 		# pkg-config files for packages it has installed.
   9096 		# Furthermore, at least for OpenSSL, they appear to be
   9097 		# dumped in package-specific directories whose paths are
   9098 		# not only package-specific but package-version-specific.
   9099 		#
   9100 		# So the only way to find openssl is to get the value of
   9101 		# PKG_CONFIG_PATH from "brew --env openssl" and add that
   9102 		# to PKG_CONFIG_PATH.  (No, we can't just assume it's under
   9103 		# /usr/local; Homebrew have conveniently chosen to put it
   9104 		# under /opt/homebrew on ARM.)
   9105 		#
   9106 		# That's the nice thing about Homebrew - it makes things easier!
   9107 		# Thanks!
   9108 		#
   9109 		save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
   9110 		if test -n "$BREW"; then
   9111 			openssl_pkgconfig_dir=`$BREW --env --plain openssl | sed -n 's/PKG_CONFIG_PATH: //p'`
   9112 			PKG_CONFIG_PATH="$openssl_pkgconfig_dir:$PKG_CONFIG_PATH"
   9113 		fi
   9114 
   9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto with pkg-config" >&5
   9116 printf %s "checking for libcrypto with pkg-config... " >&6; }
   9117 if test -n "$PKG_CONFIG"; then
   9118 
   9119     if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
   9120   ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
   9121   ac_status=$?
   9122   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9123   test $ac_status = 0; }; then
   9124 	#
   9125 	# The package was found, so try to get its C flags and
   9126 	# libraries.
   9127 	#
   9128         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
   9129 printf "%s\n" "found" >&6; }
   9130 	if test ! -n "$LIBCRYPTO_CFLAGS"; then
   9131     LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
   9132     if test "x$?" != "x0"; then
   9133         #
   9134         # That failed - report an error.
   9135         # Re-run the command, telling pkg-config to print an error
   9136         # message, capture the error message, and report it.
   9137         # This causes the configuration script to fail, as it means
   9138         # the script is almost certainly doing something wrong.
   9139         #
   9140 
   9141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   9142         _pkg_short_errors_supported=yes
   9143 else
   9144         _pkg_short_errors_supported=no
   9145 fi
   9146 	if test $_pkg_short_errors_supported = yes; then
   9147 	    _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --cflags "libcrypto" 2>&1`
   9148 	else
   9149 	    _pkg_error_string=`$PKG_CONFIG --print-errors --cflags "libcrypto" 2>&1`
   9150 	fi
   9151         as_fn_error $? "$PKG_CONFIG --cflags \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5
   9152     fi
   9153  fi
   9154 	if test ! -n "$LIBCRYPTO_LIBS"; then
   9155     LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
   9156     if test "x$?" != "x0"; then
   9157         #
   9158         # That failed - report an error.
   9159         # Re-run the command, telling pkg-config to print an error
   9160         # message, capture the error message, and report it.
   9161         # This causes the configuration script to fail, as it means
   9162         # the script is almost certainly doing something wrong.
   9163         #
   9164 
   9165 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   9166         _pkg_short_errors_supported=yes
   9167 else
   9168         _pkg_short_errors_supported=no
   9169 fi
   9170 	if test $_pkg_short_errors_supported = yes; then
   9171 	    _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs "libcrypto" 2>&1`
   9172 	else
   9173 	    _pkg_error_string=`$PKG_CONFIG --print-errors --libs "libcrypto" 2>&1`
   9174 	fi
   9175         as_fn_error $? "$PKG_CONFIG --libs \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5
   9176     fi
   9177  fi
   9178 	if test ! -n "$LIBCRYPTO_LIBS_STATIC"; then
   9179     LIBCRYPTO_LIBS_STATIC=`$PKG_CONFIG --libs --static "libcrypto" 2>/dev/null`
   9180     if test "x$?" != "x0"; then
   9181         #
   9182         # That failed - report an error.
   9183         # Re-run the command, telling pkg-config to print an error
   9184         # message, capture the error message, and report it.
   9185         # This causes the configuration script to fail, as it means
   9186         # the script is almost certainly doing something wrong.
   9187         #
   9188 
   9189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   9190         _pkg_short_errors_supported=yes
   9191 else
   9192         _pkg_short_errors_supported=no
   9193 fi
   9194 	if test $_pkg_short_errors_supported = yes; then
   9195 	    _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs --static "libcrypto" 2>&1`
   9196 	else
   9197 	    _pkg_error_string=`$PKG_CONFIG --print-errors --libs --static "libcrypto" 2>&1`
   9198 	fi
   9199         as_fn_error $? "$PKG_CONFIG --libs --static \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5
   9200     fi
   9201  fi
   9202 
   9203 			#
   9204 			# We found OpenSSL/libressl libcrypto.
   9205 			#
   9206 			HAVE_LIBCRYPTO=yes
   9207 
   9208     else
   9209         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   9210 printf "%s\n" "not found" >&6; }
   9211         :
   9212     fi
   9213 else
   9214     # No pkg-config, so obviously not found with pkg-config.
   9215     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pkg-config not found" >&5
   9216 printf "%s\n" "pkg-config not found" >&6; }
   9217     :
   9218 fi
   9219 
   9220 		PKG_CONFIG_PATH="$save_PKG_CONFIG_PATH"
   9221 
   9222 		#
   9223 		# If it wasn't found, and we have Homebrew installed, see
   9224 		# if it's in Homebrew.
   9225 		#
   9226 		if test "x$HAVE_LIBCRYPTO" != "xyes" -a -n "$BREW"; then
   9227 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl in Homebrew" >&5
   9228 printf %s "checking for openssl in Homebrew... " >&6; }
   9229 			#
   9230 			# The brew man page lies when it speaks of
   9231 			# $BREW --prefix --installed <formula>
   9232 			# outputting nothing.  In Homebrew 3.3.16,
   9233 			# it produces output regardless of whether
   9234 			# the formula is installed or not, so we
   9235 			# send the standard output and error to
   9236 			# the bit bucket.
   9237 			#
   9238 			# libcrypto isn't a formula, openssl is a formula.
   9239 			#
   9240 			if $BREW --prefix --installed openssl >/dev/null 2>&1; then
   9241 				#
   9242 				# Yes.  Get the include directory and library
   9243 				# directory.  (No, we can't just assume it's
   9244 				# under /usr/local; Homebrew have conveniently
   9245 				# chosen to put it under /opt/homebrew on ARM.)
   9246 				#
   9247 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9248 printf "%s\n" "yes" >&6; }
   9249 				HAVE_LIBCRYPTO=yes
   9250 				openssl_path=`$BREW --prefix openssl`
   9251 				LIBCRYPTO_CFLAGS="-I$openssl_path/include"
   9252 				LIBCRYPTO_LIBS="-L$openssl_path/lib -lcrypto"
   9253 			else
   9254 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9255 printf "%s\n" "no" >&6; }
   9256 			fi
   9257 		fi
   9258 
   9259 		#
   9260 		# If it wasn't found, and /usr/local/include and /usr/local/lib
   9261 		# exist, check if it's in /usr/local.  (We check whether they
   9262 		# exist because, if they don't exist, the compiler will warn
   9263 		# about that and then ignore the argument, so they test
   9264 		# using just the system header files and libraries.)
   9265 		#
   9266 		# We include the standard include file to 1) make sure that
   9267 		# it's installed (if it's just a shared library for the
   9268 		# benefit of existing programs, that's not useful) and 2)
   9269 		# because SSL_library_init() is a library routine in some
   9270 		# versions and a #defined wrapper around OPENSSL_init_ssl()
   9271 		# in others.
   9272 		#
   9273 		if test "x$HAVE_LIBCRYPTO" != "xyes" -a -d "/usr/local/include" -a -d "/usr/local/lib"; then
   9274 
   9275 	save_CFLAGS="$CFLAGS"
   9276 	save_LIBS="$LIBS"
   9277 	save_LDFLAGS="$LDFLAGS"
   9278 
   9279 			CFLAGS="$CFLAGS -I/usr/local/include"
   9280 			LIBS="$LIBS -L/usr/local/lib -lcrypto"
   9281 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use" >&5
   9282 printf %s "checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use... " >&6; }
   9283 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9284 /* end confdefs.h.  */
   9285 
   9286 #include <openssl/evp.h>
   9287 
   9288 int
   9289 main (void)
   9290 {
   9291 
   9292 EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0);
   9293 return 0;
   9294 
   9295   ;
   9296   return 0;
   9297 }
   9298 _ACEOF
   9299 if ac_fn_c_try_link "$LINENO"
   9300 then :
   9301 
   9302 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9303 printf "%s\n" "yes" >&6; }
   9304 				HAVE_LIBCRYPTO=yes
   9305 				LIBCRYPTO_CFLAGS="-I/usr/local/include"
   9306 				LIBCRYPTO_LIBS="-L/usr/local/lib -lcrypto"
   9307 
   9308 else $as_nop
   9309   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9310 printf "%s\n" "no" >&6; }
   9311 fi
   9312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9313     conftest$ac_exeext conftest.$ac_ext
   9314 
   9315 	CFLAGS="$save_CFLAGS"
   9316 	LIBS="$save_LIBS"
   9317 	LDFLAGS="$save_LDFLAGS"
   9318 
   9319 		fi
   9320 
   9321 		#
   9322 		# If it wasn't found, check if it's a system library.
   9323 		#
   9324 		# We include the standard include file to 1) make sure that
   9325 		# it's installed (if it's just a shared library for the
   9326 		# benefit of existing programs, that's not useful) and 2)
   9327 		# make sure this isn't a newer macOS that provides libcrypto
   9328 		# as a shared library but doesn't provide headers - Apple,
   9329 		# bless their pointy little heads, apparently ship libcrypto
   9330 		# as a library, but not the header files, in El Capitan and
   9331 		# later, probably because they don't want you writing nasty
   9332 		# portable code that could run on other UN*Xes, they want you
   9333 		# writing code that uses their Shiny New Crypto Library and
   9334 		# that thus only runs on macOS.
   9335 		#
   9336 		if test "x$HAVE_LIBCRYPTO" != "xyes"; then
   9337 
   9338 	save_CFLAGS="$CFLAGS"
   9339 	save_LIBS="$LIBS"
   9340 	save_LDFLAGS="$LDFLAGS"
   9341 
   9342 			LIBS="$LIBS -lcrypto"
   9343 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5
   9344 printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; }
   9345 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9346 /* end confdefs.h.  */
   9347 
   9348 #include <openssl/evp.h>
   9349 
   9350 int
   9351 main (void)
   9352 {
   9353 
   9354 EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0);
   9355 return 0;
   9356 
   9357   ;
   9358   return 0;
   9359 }
   9360 _ACEOF
   9361 if ac_fn_c_try_link "$LINENO"
   9362 then :
   9363 
   9364 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9365 printf "%s\n" "yes" >&6; }
   9366 				HAVE_LIBCRYPTO=yes
   9367 				LIBCRYPTO_LIBS="-lcrypto"
   9368 
   9369 else $as_nop
   9370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9371 printf "%s\n" "no" >&6; }
   9372 fi
   9373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9374     conftest$ac_exeext conftest.$ac_ext
   9375 
   9376 	CFLAGS="$save_CFLAGS"
   9377 	LIBS="$save_LIBS"
   9378 	LDFLAGS="$save_LDFLAGS"
   9379 
   9380 		fi
   9381 	else
   9382 		#
   9383 		# Yes.
   9384 		#
   9385 		# Look for it there.
   9386 		#
   9387 
   9388 	save_CFLAGS="$CFLAGS"
   9389 	save_LIBS="$LIBS"
   9390 	save_LDFLAGS="$LDFLAGS"
   9391 
   9392 		CFLAGS="$CFLAGS -I$libcrypto_root/include"
   9393 		LIBS="$LIBS -L$libcrypto_root/lib -lcrypto"
   9394 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5
   9395 printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; }
   9396 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9397 /* end confdefs.h.  */
   9398 
   9399 #include <openssl/evp.h>
   9400 
   9401 int
   9402 main (void)
   9403 {
   9404 
   9405 EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0);
   9406 return 0;
   9407 
   9408   ;
   9409   return 0;
   9410 }
   9411 _ACEOF
   9412 if ac_fn_c_try_link "$LINENO"
   9413 then :
   9414 
   9415 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9416 printf "%s\n" "yes" >&6; }
   9417 			HAVE_LIBCRYPTO=yes
   9418 			LIBCRYPTO_CFLAGS="-I$libcrypto_root/include"
   9419 			LIBCRYPTO_LIBS="-L$libcrypto_root/lib -lcrypto"
   9420 
   9421 else $as_nop
   9422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9423 printf "%s\n" "no" >&6; }
   9424 fi
   9425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9426     conftest$ac_exeext conftest.$ac_ext
   9427 
   9428 	CFLAGS="$save_CFLAGS"
   9429 	LIBS="$save_LIBS"
   9430 	LDFLAGS="$save_LDFLAGS"
   9431 
   9432 	fi
   9433 
   9434 	#
   9435 	# OK, did we find it?
   9436 	#
   9437 	if test "x$HAVE_LIBCRYPTO" = "xyes"; then
   9438 
   9439 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
   9440 
   9441 
   9442 		#
   9443 		# Put the subdirectories of the libcrypto root directory
   9444 		# at the end of the header and library search path, to
   9445 		# make sure they come after any -I or -L flags for
   9446 		# a local libpcap - those must take precedence of any
   9447 		# directory that might contain an installed version of
   9448 		# libpcap.
   9449 		#
   9450 		V_INCLS="$V_INCLS $LIBCRYPTO_CFLAGS"
   9451 		LIBS="$LIBS $LIBCRYPTO_LIBS"
   9452 
   9453 		#
   9454 		# OK, then:
   9455 		#
   9456 		# 1) do we have EVP_CIPHER_CTX_new?
   9457 		# If so, we use it to allocate an EVP_CIPHER_CTX, as
   9458 		# EVP_CIPHER_CTX may be opaque; otherwise, we allocate it
   9459 		# ourselves.
   9460 		#
   9461 		# 2) do we have EVP_DecryptInit_ex()?
   9462 		# If so, we use it, because we need to be able to make
   9463 		# two "initialize the cipher" calls, one with the cipher
   9464 		# and key, and one with the IV, and, as of OpenSSL 1.1,
   9465 		# You Can't Do That with EVP_DecryptInit(), because a
   9466 		# call to EVP_DecryptInit() will unconditionally clear
   9467 		# the context, and if you don't supply a cipher, it'll
   9468 		# clear the cipher, rendering the context unusable and
   9469 		# causing a crash.
   9470 		#
   9471 		ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new"
   9472 if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes
   9473 then :
   9474   printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h
   9475 
   9476 fi
   9477 ac_fn_c_check_func "$LINENO" "EVP_DecryptInit_ex" "ac_cv_func_EVP_DecryptInit_ex"
   9478 if test "x$ac_cv_func_EVP_DecryptInit_ex" = xyes
   9479 then :
   9480   printf "%s\n" "#define HAVE_EVP_DECRYPTINIT_EX 1" >>confdefs.h
   9481 
   9482 fi
   9483 
   9484 	else
   9485 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL/libressl libcrypto not found" >&5
   9486 printf "%s\n" "$as_me: OpenSSL/libressl libcrypto not found" >&6;}
   9487 	fi
   9488 fi
   9489 
   9490 # Check for libcap-ng
   9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5
   9492 printf %s "checking whether to use libcap-ng... " >&6; }
   9493 # Specify location for both includes and libraries.
   9494 want_libcap_ng=ifavailable
   9495 
   9496 # Check whether --with-cap_ng was given.
   9497 if test ${with_cap_ng+y}
   9498 then :
   9499   withval=$with_cap_ng;
   9500 	if test $withval = no
   9501 	then
   9502 		want_libcap_ng=no
   9503 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9504 printf "%s\n" "no" >&6; }
   9505 	elif test $withval = yes
   9506 	then
   9507 		want_libcap_ng=yes
   9508 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9509 printf "%s\n" "yes" >&6; }
   9510 	fi
   9511 
   9512 else $as_nop
   9513 
   9514 	#
   9515 	# Use libcap-ng if it's present, otherwise don't.
   9516 	#
   9517 	want_libcap_ng=ifavailable
   9518 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
   9519 printf "%s\n" "yes, if available" >&6; }
   9520 
   9521 fi
   9522 
   9523 if test "$want_libcap_ng" != "no"; then
   9524 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for capng_change_id in -lcap-ng" >&5
   9525 printf %s "checking for capng_change_id in -lcap-ng... " >&6; }
   9526 if test ${ac_cv_lib_cap_ng_capng_change_id+y}
   9527 then :
   9528   printf %s "(cached) " >&6
   9529 else $as_nop
   9530   ac_check_lib_save_LIBS=$LIBS
   9531 LIBS="-lcap-ng  $LIBS"
   9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9533 /* end confdefs.h.  */
   9534 
   9535 /* Override any GCC internal prototype to avoid an error.
   9536    Use char because int might match the return type of a GCC
   9537    builtin and then its argument prototype would still apply.  */
   9538 char capng_change_id ();
   9539 int
   9540 main (void)
   9541 {
   9542 return capng_change_id ();
   9543   ;
   9544   return 0;
   9545 }
   9546 _ACEOF
   9547 if ac_fn_c_try_link "$LINENO"
   9548 then :
   9549   ac_cv_lib_cap_ng_capng_change_id=yes
   9550 else $as_nop
   9551   ac_cv_lib_cap_ng_capng_change_id=no
   9552 fi
   9553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9554     conftest$ac_exeext conftest.$ac_ext
   9555 LIBS=$ac_check_lib_save_LIBS
   9556 fi
   9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_change_id" >&5
   9558 printf "%s\n" "$ac_cv_lib_cap_ng_capng_change_id" >&6; }
   9559 if test "x$ac_cv_lib_cap_ng_capng_change_id" = xyes
   9560 then :
   9561   printf "%s\n" "#define HAVE_LIBCAP_NG 1" >>confdefs.h
   9562 
   9563   LIBS="-lcap-ng $LIBS"
   9564 
   9565 fi
   9566 
   9567 	ac_fn_c_check_header_compile "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default"
   9568 if test "x$ac_cv_header_cap_ng_h" = xyes
   9569 then :
   9570   printf "%s\n" "#define HAVE_CAP_NG_H 1" >>confdefs.h
   9571 
   9572 fi
   9573 
   9574 fi
   9575 
   9576 if test "$missing_includes" = "yes"; then
   9577 	CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
   9578 	V_INCLS="$V_INCLS -I$srcdir/missing"
   9579 fi
   9580 
   9581 
   9582 
   9583 
   9584 
   9585 
   9586 
   9587 
   9588 
   9589 
   9590   # Find a good install program.  We prefer a C program (faster),
   9591 # so one script is as good as another.  But avoid the broken or
   9592 # incompatible versions:
   9593 # SysV /etc/install, /usr/sbin/install
   9594 # SunOS /usr/etc/install
   9595 # IRIX /sbin/install
   9596 # AIX /bin/install
   9597 # AmigaOS /C/install, which installs bootblocks on floppy discs
   9598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   9599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   9600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   9601 # OS/2's system install, which has a completely different semantic
   9602 # ./install, which can be erroneously created by make from ./install.sh.
   9603 # Reject install programs that cannot install multiple files.
   9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   9605 printf %s "checking for a BSD-compatible install... " >&6; }
   9606 if test -z "$INSTALL"; then
   9607 if test ${ac_cv_path_install+y}
   9608 then :
   9609   printf %s "(cached) " >&6
   9610 else $as_nop
   9611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9612 for as_dir in $PATH
   9613 do
   9614   IFS=$as_save_IFS
   9615   case $as_dir in #(((
   9616     '') as_dir=./ ;;
   9617     */) ;;
   9618     *) as_dir=$as_dir/ ;;
   9619   esac
   9620     # Account for fact that we put trailing slashes in our PATH walk.
   9621 case $as_dir in #((
   9622   ./ | /[cC]/* | \
   9623   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   9624   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   9625   /usr/ucb/* ) ;;
   9626   *)
   9627     # OSF1 and SCO ODT 3.0 have their own names for install.
   9628     # Don't use installbsd from OSF since it installs stuff as root
   9629     # by default.
   9630     for ac_prog in ginstall scoinst install; do
   9631       for ac_exec_ext in '' $ac_executable_extensions; do
   9632 	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
   9633 	  if test $ac_prog = install &&
   9634 	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   9635 	    # AIX install.  It has an incompatible calling convention.
   9636 	    :
   9637 	  elif test $ac_prog = install &&
   9638 	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   9639 	    # program-specific install script used by HP pwplus--don't use.
   9640 	    :
   9641 	  else
   9642 	    rm -rf conftest.one conftest.two conftest.dir
   9643 	    echo one > conftest.one
   9644 	    echo two > conftest.two
   9645 	    mkdir conftest.dir
   9646 	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
   9647 	      test -s conftest.one && test -s conftest.two &&
   9648 	      test -s conftest.dir/conftest.one &&
   9649 	      test -s conftest.dir/conftest.two
   9650 	    then
   9651 	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
   9652 	      break 3
   9653 	    fi
   9654 	  fi
   9655 	fi
   9656       done
   9657     done
   9658     ;;
   9659 esac
   9660 
   9661   done
   9662 IFS=$as_save_IFS
   9663 
   9664 rm -rf conftest.one conftest.two conftest.dir
   9665 
   9666 fi
   9667   if test ${ac_cv_path_install+y}; then
   9668     INSTALL=$ac_cv_path_install
   9669   else
   9670     # As a last resort, use the slow shell script.  Don't cache a
   9671     # value for INSTALL within a source directory, because that will
   9672     # break other packages using the cache if that directory is
   9673     # removed, or if the value is a relative name.
   9674     INSTALL=$ac_install_sh
   9675   fi
   9676 fi
   9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   9678 printf "%s\n" "$INSTALL" >&6; }
   9679 
   9680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   9681 # It thinks the first close brace ends the variable substitution.
   9682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   9683 
   9684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   9685 
   9686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   9687 
   9688 
   9689 ac_config_headers="$ac_config_headers config.h"
   9690 
   9691 
   9692 ac_config_commands="$ac_config_commands .devel"
   9693 
   9694 ac_config_files="$ac_config_files Makefile tcpdump.1"
   9695 
   9696 cat >confcache <<\_ACEOF
   9697 # This file is a shell script that caches the results of configure
   9698 # tests run on this system so they can be shared between configure
   9699 # scripts and configure runs, see configure's option --config-cache.
   9700 # It is not useful on other systems.  If it contains results you don't
   9701 # want to keep, you may remove or edit it.
   9702 #
   9703 # config.status only pays attention to the cache file if you give it
   9704 # the --recheck option to rerun configure.
   9705 #
   9706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   9707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   9708 # following values.
   9709 
   9710 _ACEOF
   9711 
   9712 # The following way of writing the cache mishandles newlines in values,
   9713 # but we know of no workaround that is simple, portable, and efficient.
   9714 # So, we kill variables containing newlines.
   9715 # Ultrix sh set writes to stderr and can't be redirected directly,
   9716 # and sets the high bit in the cache file unless we assign to the vars.
   9717 (
   9718   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   9719     eval ac_val=\$$ac_var
   9720     case $ac_val in #(
   9721     *${as_nl}*)
   9722       case $ac_var in #(
   9723       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   9724 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   9725       esac
   9726       case $ac_var in #(
   9727       _ | IFS | as_nl) ;; #(
   9728       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   9729       *) { eval $ac_var=; unset $ac_var;} ;;
   9730       esac ;;
   9731     esac
   9732   done
   9733 
   9734   (set) 2>&1 |
   9735     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   9736     *${as_nl}ac_space=\ *)
   9737       # `set' does not quote correctly, so add quotes: double-quote
   9738       # substitution turns \\\\ into \\, and sed turns \\ into \.
   9739       sed -n \
   9740 	"s/'/'\\\\''/g;
   9741 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   9742       ;; #(
   9743     *)
   9744       # `set' quotes correctly as required by POSIX, so do not add quotes.
   9745       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   9746       ;;
   9747     esac |
   9748     sort
   9749 ) |
   9750   sed '
   9751      /^ac_cv_env_/b end
   9752      t clear
   9753      :clear
   9754      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   9755      t end
   9756      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   9757      :end' >>confcache
   9758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   9759   if test -w "$cache_file"; then
   9760     if test "x$cache_file" != "x/dev/null"; then
   9761       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   9762 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   9763       if test ! -f "$cache_file" || test -h "$cache_file"; then
   9764 	cat confcache >"$cache_file"
   9765       else
   9766         case $cache_file in #(
   9767         */* | ?:*)
   9768 	  mv -f confcache "$cache_file"$$ &&
   9769 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   9770         *)
   9771 	  mv -f confcache "$cache_file" ;;
   9772 	esac
   9773       fi
   9774     fi
   9775   else
   9776     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   9777 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   9778   fi
   9779 fi
   9780 rm -f confcache
   9781 
   9782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   9783 # Let make expand exec_prefix.
   9784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   9785 
   9786 DEFS=-DHAVE_CONFIG_H
   9787 
   9788 ac_libobjs=
   9789 ac_ltlibobjs=
   9790 U=
   9791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   9792   # 1. Remove the extension, and $U if already installed.
   9793   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   9794   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   9795   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   9796   #    will be set to the directory where LIBOBJS objects are built.
   9797   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   9798   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   9799 done
   9800 LIBOBJS=$ac_libobjs
   9801 
   9802 LTLIBOBJS=$ac_ltlibobjs
   9803 
   9804 
   9805 
   9806 : "${CONFIG_STATUS=./config.status}"
   9807 ac_write_fail=0
   9808 ac_clean_files_save=$ac_clean_files
   9809 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   9811 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   9812 as_write_fail=0
   9813 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   9814 #! $SHELL
   9815 # Generated by $as_me.
   9816 # Run this file to recreate the current configuration.
   9817 # Compiler output produced by configure, useful for debugging
   9818 # configure, is in config.log if it exists.
   9819 
   9820 debug=false
   9821 ac_cs_recheck=false
   9822 ac_cs_silent=false
   9823 
   9824 SHELL=\${CONFIG_SHELL-$SHELL}
   9825 export SHELL
   9826 _ASEOF
   9827 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   9828 ## -------------------- ##
   9829 ## M4sh Initialization. ##
   9830 ## -------------------- ##
   9831 
   9832 # Be more Bourne compatible
   9833 DUALCASE=1; export DUALCASE # for MKS sh
   9834 as_nop=:
   9835 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   9836 then :
   9837   emulate sh
   9838   NULLCMD=:
   9839   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   9840   # is contrary to our usage.  Disable this feature.
   9841   alias -g '${1+"$@"}'='"$@"'
   9842   setopt NO_GLOB_SUBST
   9843 else $as_nop
   9844   case `(set -o) 2>/dev/null` in #(
   9845   *posix*) :
   9846     set -o posix ;; #(
   9847   *) :
   9848      ;;
   9849 esac
   9850 fi
   9851 
   9852 
   9853 
   9854 # Reset variables that may have inherited troublesome values from
   9855 # the environment.
   9856 
   9857 # IFS needs to be set, to space, tab, and newline, in precisely that order.
   9858 # (If _AS_PATH_WALK were called with IFS unset, it would have the
   9859 # side effect of setting IFS to empty, thus disabling word splitting.)
   9860 # Quoting is to prevent editors from complaining about space-tab.
   9861 as_nl='
   9862 '
   9863 export as_nl
   9864 IFS=" ""	$as_nl"
   9865 
   9866 PS1='$ '
   9867 PS2='> '
   9868 PS4='+ '
   9869 
   9870 # Ensure predictable behavior from utilities with locale-dependent output.
   9871 LC_ALL=C
   9872 export LC_ALL
   9873 LANGUAGE=C
   9874 export LANGUAGE
   9875 
   9876 # We cannot yet rely on "unset" to work, but we need these variables
   9877 # to be unset--not just set to an empty or harmless value--now, to
   9878 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   9879 # also avoids known problems related to "unset" and subshell syntax
   9880 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   9881 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   9882 do eval test \${$as_var+y} \
   9883   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   9884 done
   9885 
   9886 # Ensure that fds 0, 1, and 2 are open.
   9887 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   9888 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   9889 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   9890 
   9891 # The user is always right.
   9892 if ${PATH_SEPARATOR+false} :; then
   9893   PATH_SEPARATOR=:
   9894   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   9895     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   9896       PATH_SEPARATOR=';'
   9897   }
   9898 fi
   9899 
   9900 
   9901 # Find who we are.  Look in the path if we contain no directory separator.
   9902 as_myself=
   9903 case $0 in #((
   9904   *[\\/]* ) as_myself=$0 ;;
   9905   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9906 for as_dir in $PATH
   9907 do
   9908   IFS=$as_save_IFS
   9909   case $as_dir in #(((
   9910     '') as_dir=./ ;;
   9911     */) ;;
   9912     *) as_dir=$as_dir/ ;;
   9913   esac
   9914     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   9915   done
   9916 IFS=$as_save_IFS
   9917 
   9918      ;;
   9919 esac
   9920 # We did not find ourselves, most probably we were run as `sh COMMAND'
   9921 # in which case we are not to be found in the path.
   9922 if test "x$as_myself" = x; then
   9923   as_myself=$0
   9924 fi
   9925 if test ! -f "$as_myself"; then
   9926   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   9927   exit 1
   9928 fi
   9929 
   9930 
   9931 
   9932 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   9933 # ----------------------------------------
   9934 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   9935 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   9936 # script with STATUS, using 1 if that was 0.
   9937 as_fn_error ()
   9938 {
   9939   as_status=$1; test $as_status -eq 0 && as_status=1
   9940   if test "$4"; then
   9941     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   9942     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   9943   fi
   9944   printf "%s\n" "$as_me: error: $2" >&2
   9945   as_fn_exit $as_status
   9946 } # as_fn_error
   9947 
   9948 
   9949 
   9950 # as_fn_set_status STATUS
   9951 # -----------------------
   9952 # Set $? to STATUS, without forking.
   9953 as_fn_set_status ()
   9954 {
   9955   return $1
   9956 } # as_fn_set_status
   9957 
   9958 # as_fn_exit STATUS
   9959 # -----------------
   9960 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   9961 as_fn_exit ()
   9962 {
   9963   set +e
   9964   as_fn_set_status $1
   9965   exit $1
   9966 } # as_fn_exit
   9967 
   9968 # as_fn_unset VAR
   9969 # ---------------
   9970 # Portably unset VAR.
   9971 as_fn_unset ()
   9972 {
   9973   { eval $1=; unset $1;}
   9974 }
   9975 as_unset=as_fn_unset
   9976 
   9977 # as_fn_append VAR VALUE
   9978 # ----------------------
   9979 # Append the text in VALUE to the end of the definition contained in VAR. Take
   9980 # advantage of any shell optimizations that allow amortized linear growth over
   9981 # repeated appends, instead of the typical quadratic growth present in naive
   9982 # implementations.
   9983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   9984 then :
   9985   eval 'as_fn_append ()
   9986   {
   9987     eval $1+=\$2
   9988   }'
   9989 else $as_nop
   9990   as_fn_append ()
   9991   {
   9992     eval $1=\$$1\$2
   9993   }
   9994 fi # as_fn_append
   9995 
   9996 # as_fn_arith ARG...
   9997 # ------------------
   9998 # Perform arithmetic evaluation on the ARGs, and store the result in the
   9999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   10000 # must be portable across $(()) and expr.
   10001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   10002 then :
   10003   eval 'as_fn_arith ()
   10004   {
   10005     as_val=$(( $* ))
   10006   }'
   10007 else $as_nop
   10008   as_fn_arith ()
   10009   {
   10010     as_val=`expr "$@" || test $? -eq 1`
   10011   }
   10012 fi # as_fn_arith
   10013 
   10014 
   10015 if expr a : '\(a\)' >/dev/null 2>&1 &&
   10016    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   10017   as_expr=expr
   10018 else
   10019   as_expr=false
   10020 fi
   10021 
   10022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   10023   as_basename=basename
   10024 else
   10025   as_basename=false
   10026 fi
   10027 
   10028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   10029   as_dirname=dirname
   10030 else
   10031   as_dirname=false
   10032 fi
   10033 
   10034 as_me=`$as_basename -- "$0" ||
   10035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   10036 	 X"$0" : 'X\(//\)$' \| \
   10037 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   10038 printf "%s\n" X/"$0" |
   10039     sed '/^.*\/\([^/][^/]*\)\/*$/{
   10040 	    s//\1/
   10041 	    q
   10042 	  }
   10043 	  /^X\/\(\/\/\)$/{
   10044 	    s//\1/
   10045 	    q
   10046 	  }
   10047 	  /^X\/\(\/\).*/{
   10048 	    s//\1/
   10049 	    q
   10050 	  }
   10051 	  s/.*/./; q'`
   10052 
   10053 # Avoid depending upon Character Ranges.
   10054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   10055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   10056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   10057 as_cr_digits='0123456789'
   10058 as_cr_alnum=$as_cr_Letters$as_cr_digits
   10059 
   10060 
   10061 # Determine whether it's possible to make 'echo' print without a newline.
   10062 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   10063 # for compatibility with existing Makefiles.
   10064 ECHO_C= ECHO_N= ECHO_T=
   10065 case `echo -n x` in #(((((
   10066 -n*)
   10067   case `echo 'xy\c'` in
   10068   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   10069   xy)  ECHO_C='\c';;
   10070   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   10071        ECHO_T='	';;
   10072   esac;;
   10073 *)
   10074   ECHO_N='-n';;
   10075 esac
   10076 
   10077 # For backward compatibility with old third-party macros, we provide
   10078 # the shell variables $as_echo and $as_echo_n.  New code should use
   10079 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   10080 as_echo='printf %s\n'
   10081 as_echo_n='printf %s'
   10082 
   10083 rm -f conf$$ conf$$.exe conf$$.file
   10084 if test -d conf$$.dir; then
   10085   rm -f conf$$.dir/conf$$.file
   10086 else
   10087   rm -f conf$$.dir
   10088   mkdir conf$$.dir 2>/dev/null
   10089 fi
   10090 if (echo >conf$$.file) 2>/dev/null; then
   10091   if ln -s conf$$.file conf$$ 2>/dev/null; then
   10092     as_ln_s='ln -s'
   10093     # ... but there are two gotchas:
   10094     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   10095     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   10096     # In both cases, we have to default to `cp -pR'.
   10097     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   10098       as_ln_s='cp -pR'
   10099   elif ln conf$$.file conf$$ 2>/dev/null; then
   10100     as_ln_s=ln
   10101   else
   10102     as_ln_s='cp -pR'
   10103   fi
   10104 else
   10105   as_ln_s='cp -pR'
   10106 fi
   10107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   10108 rmdir conf$$.dir 2>/dev/null
   10109 
   10110 
   10111 # as_fn_mkdir_p
   10112 # -------------
   10113 # Create "$as_dir" as a directory, including parents if necessary.
   10114 as_fn_mkdir_p ()
   10115 {
   10116 
   10117   case $as_dir in #(
   10118   -*) as_dir=./$as_dir;;
   10119   esac
   10120   test -d "$as_dir" || eval $as_mkdir_p || {
   10121     as_dirs=
   10122     while :; do
   10123       case $as_dir in #(
   10124       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   10125       *) as_qdir=$as_dir;;
   10126       esac
   10127       as_dirs="'$as_qdir' $as_dirs"
   10128       as_dir=`$as_dirname -- "$as_dir" ||
   10129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   10130 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   10131 	 X"$as_dir" : 'X\(//\)$' \| \
   10132 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   10133 printf "%s\n" X"$as_dir" |
   10134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   10135 	    s//\1/
   10136 	    q
   10137 	  }
   10138 	  /^X\(\/\/\)[^/].*/{
   10139 	    s//\1/
   10140 	    q
   10141 	  }
   10142 	  /^X\(\/\/\)$/{
   10143 	    s//\1/
   10144 	    q
   10145 	  }
   10146 	  /^X\(\/\).*/{
   10147 	    s//\1/
   10148 	    q
   10149 	  }
   10150 	  s/.*/./; q'`
   10151       test -d "$as_dir" && break
   10152     done
   10153     test -z "$as_dirs" || eval "mkdir $as_dirs"
   10154   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   10155 
   10156 
   10157 } # as_fn_mkdir_p
   10158 if mkdir -p . 2>/dev/null; then
   10159   as_mkdir_p='mkdir -p "$as_dir"'
   10160 else
   10161   test -d ./-p && rmdir ./-p
   10162   as_mkdir_p=false
   10163 fi
   10164 
   10165 
   10166 # as_fn_executable_p FILE
   10167 # -----------------------
   10168 # Test if FILE is an executable regular file.
   10169 as_fn_executable_p ()
   10170 {
   10171   test -f "$1" && test -x "$1"
   10172 } # as_fn_executable_p
   10173 as_test_x='test -x'
   10174 as_executable_p=as_fn_executable_p
   10175 
   10176 # Sed expression to map a string onto a valid CPP name.
   10177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   10178 
   10179 # Sed expression to map a string onto a valid variable name.
   10180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   10181 
   10182 
   10183 exec 6>&1
   10184 ## ----------------------------------- ##
   10185 ## Main body of $CONFIG_STATUS script. ##
   10186 ## ----------------------------------- ##
   10187 _ASEOF
   10188 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   10189 
   10190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10191 # Save the log message, to keep $0 and so on meaningful, and to
   10192 # report actual input values of CONFIG_FILES etc. instead of their
   10193 # values after options handling.
   10194 ac_log="
   10195 This file was extended by tcpdump $as_me 4.99.5, which was
   10196 generated by GNU Autoconf 2.71.  Invocation command line was
   10197 
   10198   CONFIG_FILES    = $CONFIG_FILES
   10199   CONFIG_HEADERS  = $CONFIG_HEADERS
   10200   CONFIG_LINKS    = $CONFIG_LINKS
   10201   CONFIG_COMMANDS = $CONFIG_COMMANDS
   10202   $ $0 $@
   10203 
   10204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   10205 "
   10206 
   10207 _ACEOF
   10208 
   10209 case $ac_config_files in *"
   10210 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   10211 esac
   10212 
   10213 case $ac_config_headers in *"
   10214 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   10215 esac
   10216 
   10217 
   10218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10219 # Files that config.status was made for.
   10220 config_files="$ac_config_files"
   10221 config_headers="$ac_config_headers"
   10222 config_commands="$ac_config_commands"
   10223 
   10224 _ACEOF
   10225 
   10226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10227 ac_cs_usage="\
   10228 \`$as_me' instantiates files and other configuration actions
   10229 from templates according to the current configuration.  Unless the files
   10230 and actions are specified as TAGs, all are instantiated by default.
   10231 
   10232 Usage: $0 [OPTION]... [TAG]...
   10233 
   10234   -h, --help       print this help, then exit
   10235   -V, --version    print version number and configuration settings, then exit
   10236       --config     print configuration, then exit
   10237   -q, --quiet, --silent
   10238                    do not print progress messages
   10239   -d, --debug      don't remove temporary files
   10240       --recheck    update $as_me by reconfiguring in the same conditions
   10241       --file=FILE[:TEMPLATE]
   10242                    instantiate the configuration file FILE
   10243       --header=FILE[:TEMPLATE]
   10244                    instantiate the configuration header FILE
   10245 
   10246 Configuration files:
   10247 $config_files
   10248 
   10249 Configuration headers:
   10250 $config_headers
   10251 
   10252 Configuration commands:
   10253 $config_commands
   10254 
   10255 Report bugs to the package provider."
   10256 
   10257 _ACEOF
   10258 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   10259 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   10260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10261 ac_cs_config='$ac_cs_config_escaped'
   10262 ac_cs_version="\\
   10263 tcpdump config.status 4.99.5
   10264 configured by $0, generated by GNU Autoconf 2.71,
   10265   with options \\"\$ac_cs_config\\"
   10266 
   10267 Copyright (C) 2021 Free Software Foundation, Inc.
   10268 This config.status script is free software; the Free Software Foundation
   10269 gives unlimited permission to copy, distribute and modify it."
   10270 
   10271 ac_pwd='$ac_pwd'
   10272 srcdir='$srcdir'
   10273 INSTALL='$INSTALL'
   10274 test -n "\$AWK" || AWK=awk
   10275 _ACEOF
   10276 
   10277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10278 # The default lists apply if the user does not specify any file.
   10279 ac_need_defaults=:
   10280 while test $# != 0
   10281 do
   10282   case $1 in
   10283   --*=?*)
   10284     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   10285     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   10286     ac_shift=:
   10287     ;;
   10288   --*=)
   10289     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   10290     ac_optarg=
   10291     ac_shift=:
   10292     ;;
   10293   *)
   10294     ac_option=$1
   10295     ac_optarg=$2
   10296     ac_shift=shift
   10297     ;;
   10298   esac
   10299 
   10300   case $ac_option in
   10301   # Handling of the options.
   10302   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   10303     ac_cs_recheck=: ;;
   10304   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   10305     printf "%s\n" "$ac_cs_version"; exit ;;
   10306   --config | --confi | --conf | --con | --co | --c )
   10307     printf "%s\n" "$ac_cs_config"; exit ;;
   10308   --debug | --debu | --deb | --de | --d | -d )
   10309     debug=: ;;
   10310   --file | --fil | --fi | --f )
   10311     $ac_shift
   10312     case $ac_optarg in
   10313     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   10314     '') as_fn_error $? "missing file argument" ;;
   10315     esac
   10316     as_fn_append CONFIG_FILES " '$ac_optarg'"
   10317     ac_need_defaults=false;;
   10318   --header | --heade | --head | --hea )
   10319     $ac_shift
   10320     case $ac_optarg in
   10321     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   10322     esac
   10323     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   10324     ac_need_defaults=false;;
   10325   --he | --h)
   10326     # Conflict between --help and --header
   10327     as_fn_error $? "ambiguous option: \`$1'
   10328 Try \`$0 --help' for more information.";;
   10329   --help | --hel | -h )
   10330     printf "%s\n" "$ac_cs_usage"; exit ;;
   10331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   10332   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   10333     ac_cs_silent=: ;;
   10334 
   10335   # This is an error.
   10336   -*) as_fn_error $? "unrecognized option: \`$1'
   10337 Try \`$0 --help' for more information." ;;
   10338 
   10339   *) as_fn_append ac_config_targets " $1"
   10340      ac_need_defaults=false ;;
   10341 
   10342   esac
   10343   shift
   10344 done
   10345 
   10346 ac_configure_extra_args=
   10347 
   10348 if $ac_cs_silent; then
   10349   exec 6>/dev/null
   10350   ac_configure_extra_args="$ac_configure_extra_args --silent"
   10351 fi
   10352 
   10353 _ACEOF
   10354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10355 if \$ac_cs_recheck; then
   10356   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   10357   shift
   10358   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   10359   CONFIG_SHELL='$SHELL'
   10360   export CONFIG_SHELL
   10361   exec "\$@"
   10362 fi
   10363 
   10364 _ACEOF
   10365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10366 exec 5>>config.log
   10367 {
   10368   echo
   10369   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   10370 ## Running $as_me. ##
   10371 _ASBOX
   10372   printf "%s\n" "$ac_log"
   10373 } >&5
   10374 
   10375 _ACEOF
   10376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10377 #
   10378 # INIT-COMMANDS
   10379 #
   10380 
   10381 
   10382 _ACEOF
   10383 
   10384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10385 
   10386 # Handling of arguments.
   10387 for ac_config_target in $ac_config_targets
   10388 do
   10389   case $ac_config_target in
   10390     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   10391     ".devel") CONFIG_COMMANDS="$CONFIG_COMMANDS .devel" ;;
   10392     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   10393     "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
   10394 
   10395   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   10396   esac
   10397 done
   10398 
   10399 
   10400 # If the user did not use the arguments to specify the items to instantiate,
   10401 # then the envvar interface is used.  Set only those that are not.
   10402 # We use the long form for the default assignment because of an extremely
   10403 # bizarre bug on SunOS 4.1.3.
   10404 if $ac_need_defaults; then
   10405   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   10406   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   10407   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
   10408 fi
   10409 
   10410 # Have a temporary directory for convenience.  Make it in the build tree
   10411 # simply because there is no reason against having it here, and in addition,
   10412 # creating and moving files from /tmp can sometimes cause problems.
   10413 # Hook for its removal unless debugging.
   10414 # Note that there is a small window in which the directory will not be cleaned:
   10415 # after its creation but before its name has been assigned to `$tmp'.
   10416 $debug ||
   10417 {
   10418   tmp= ac_tmp=
   10419   trap 'exit_status=$?
   10420   : "${ac_tmp:=$tmp}"
   10421   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   10422 ' 0
   10423   trap 'as_fn_exit 1' 1 2 13 15
   10424 }
   10425 # Create a (secure) tmp directory for tmp files.
   10426 
   10427 {
   10428   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   10429   test -d "$tmp"
   10430 }  ||
   10431 {
   10432   tmp=./conf$$-$RANDOM
   10433   (umask 077 && mkdir "$tmp")
   10434 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   10435 ac_tmp=$tmp
   10436 
   10437 # Set up the scripts for CONFIG_FILES section.
   10438 # No need to generate them if there are no CONFIG_FILES.
   10439 # This happens for instance with `./config.status config.h'.
   10440 if test -n "$CONFIG_FILES"; then
   10441 
   10442 
   10443 ac_cr=`echo X | tr X '\015'`
   10444 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   10445 # But we know of no other shell where ac_cr would be empty at this
   10446 # point, so we can use a bashism as a fallback.
   10447 if test "x$ac_cr" = x; then
   10448   eval ac_cr=\$\'\\r\'
   10449 fi
   10450 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   10451 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   10452   ac_cs_awk_cr='\\r'
   10453 else
   10454   ac_cs_awk_cr=$ac_cr
   10455 fi
   10456 
   10457 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   10458 _ACEOF
   10459 
   10460 
   10461 {
   10462   echo "cat >conf$$subs.awk <<_ACEOF" &&
   10463   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   10464   echo "_ACEOF"
   10465 } >conf$$subs.sh ||
   10466   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   10467 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   10468 ac_delim='%!_!# '
   10469 for ac_last_try in false false false false false :; do
   10470   . ./conf$$subs.sh ||
   10471     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   10472 
   10473   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   10474   if test $ac_delim_n = $ac_delim_num; then
   10475     break
   10476   elif $ac_last_try; then
   10477     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   10478   else
   10479     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   10480   fi
   10481 done
   10482 rm -f conf$$subs.sh
   10483 
   10484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10485 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   10486 _ACEOF
   10487 sed -n '
   10488 h
   10489 s/^/S["/; s/!.*/"]=/
   10490 p
   10491 g
   10492 s/^[^!]*!//
   10493 :repl
   10494 t repl
   10495 s/'"$ac_delim"'$//
   10496 t delim
   10497 :nl
   10498 h
   10499 s/\(.\{148\}\)..*/\1/
   10500 t more1
   10501 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   10502 p
   10503 n
   10504 b repl
   10505 :more1
   10506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   10507 p
   10508 g
   10509 s/.\{148\}//
   10510 t nl
   10511 :delim
   10512 h
   10513 s/\(.\{148\}\)..*/\1/
   10514 t more2
   10515 s/["\\]/\\&/g; s/^/"/; s/$/"/
   10516 p
   10517 b
   10518 :more2
   10519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   10520 p
   10521 g
   10522 s/.\{148\}//
   10523 t delim
   10524 ' <conf$$subs.awk | sed '
   10525 /^[^""]/{
   10526   N
   10527   s/\n//
   10528 }
   10529 ' >>$CONFIG_STATUS || ac_write_fail=1
   10530 rm -f conf$$subs.awk
   10531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10532 _ACAWK
   10533 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   10534   for (key in S) S_is_set[key] = 1
   10535   FS = ""
   10536 
   10537 }
   10538 {
   10539   line = $ 0
   10540   nfields = split(line, field, "@")
   10541   substed = 0
   10542   len = length(field[1])
   10543   for (i = 2; i < nfields; i++) {
   10544     key = field[i]
   10545     keylen = length(key)
   10546     if (S_is_set[key]) {
   10547       value = S[key]
   10548       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   10549       len += length(value) + length(field[++i])
   10550       substed = 1
   10551     } else
   10552       len += 1 + keylen
   10553   }
   10554 
   10555   print line
   10556 }
   10557 
   10558 _ACAWK
   10559 _ACEOF
   10560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10561 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   10562   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   10563 else
   10564   cat
   10565 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   10566   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   10567 _ACEOF
   10568 
   10569 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   10570 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   10571 # trailing colons and then remove the whole line if VPATH becomes empty
   10572 # (actually we leave an empty line to preserve line numbers).
   10573 if test "x$srcdir" = x.; then
   10574   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   10575 h
   10576 s///
   10577 s/^/:/
   10578 s/[	 ]*$/:/
   10579 s/:\$(srcdir):/:/g
   10580 s/:\${srcdir}:/:/g
   10581 s/:@srcdir@:/:/g
   10582 s/^:*//
   10583 s/:*$//
   10584 x
   10585 s/\(=[	 ]*\).*/\1/
   10586 G
   10587 s/\n//
   10588 s/^[^=]*=[	 ]*$//
   10589 }'
   10590 fi
   10591 
   10592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10593 fi # test -n "$CONFIG_FILES"
   10594 
   10595 # Set up the scripts for CONFIG_HEADERS section.
   10596 # No need to generate them if there are no CONFIG_HEADERS.
   10597 # This happens for instance with `./config.status Makefile'.
   10598 if test -n "$CONFIG_HEADERS"; then
   10599 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   10600 BEGIN {
   10601 _ACEOF
   10602 
   10603 # Transform confdefs.h into an awk script `defines.awk', embedded as
   10604 # here-document in config.status, that substitutes the proper values into
   10605 # config.h.in to produce config.h.
   10606 
   10607 # Create a delimiter string that does not exist in confdefs.h, to ease
   10608 # handling of long lines.
   10609 ac_delim='%!_!# '
   10610 for ac_last_try in false false :; do
   10611   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   10612   if test -z "$ac_tt"; then
   10613     break
   10614   elif $ac_last_try; then
   10615     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   10616   else
   10617     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   10618   fi
   10619 done
   10620 
   10621 # For the awk script, D is an array of macro values keyed by name,
   10622 # likewise P contains macro parameters if any.  Preserve backslash
   10623 # newline sequences.
   10624 
   10625 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   10626 sed -n '
   10627 s/.\{148\}/&'"$ac_delim"'/g
   10628 t rset
   10629 :rset
   10630 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   10631 t def
   10632 d
   10633 :def
   10634 s/\\$//
   10635 t bsnl
   10636 s/["\\]/\\&/g
   10637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   10638 D["\1"]=" \3"/p
   10639 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   10640 d
   10641 :bsnl
   10642 s/["\\]/\\&/g
   10643 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   10644 D["\1"]=" \3\\\\\\n"\\/p
   10645 t cont
   10646 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   10647 t cont
   10648 d
   10649 :cont
   10650 n
   10651 s/.\{148\}/&'"$ac_delim"'/g
   10652 t clear
   10653 :clear
   10654 s/\\$//
   10655 t bsnlc
   10656 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   10657 d
   10658 :bsnlc
   10659 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   10660 b cont
   10661 ' <confdefs.h | sed '
   10662 s/'"$ac_delim"'/"\\\
   10663 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   10664 
   10665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10666   for (key in D) D_is_set[key] = 1
   10667   FS = ""
   10668 }
   10669 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   10670   line = \$ 0
   10671   split(line, arg, " ")
   10672   if (arg[1] == "#") {
   10673     defundef = arg[2]
   10674     mac1 = arg[3]
   10675   } else {
   10676     defundef = substr(arg[1], 2)
   10677     mac1 = arg[2]
   10678   }
   10679   split(mac1, mac2, "(") #)
   10680   macro = mac2[1]
   10681   prefix = substr(line, 1, index(line, defundef) - 1)
   10682   if (D_is_set[macro]) {
   10683     # Preserve the white space surrounding the "#".
   10684     print prefix "define", macro P[macro] D[macro]
   10685     next
   10686   } else {
   10687     # Replace #undef with comments.  This is necessary, for example,
   10688     # in the case of _POSIX_SOURCE, which is predefined and required
   10689     # on some systems where configure will not decide to define it.
   10690     if (defundef == "undef") {
   10691       print "/*", prefix defundef, macro, "*/"
   10692       next
   10693     }
   10694   }
   10695 }
   10696 { print }
   10697 _ACAWK
   10698 _ACEOF
   10699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10700   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   10701 fi # test -n "$CONFIG_HEADERS"
   10702 
   10703 
   10704 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   10705 shift
   10706 for ac_tag
   10707 do
   10708   case $ac_tag in
   10709   :[FHLC]) ac_mode=$ac_tag; continue;;
   10710   esac
   10711   case $ac_mode$ac_tag in
   10712   :[FHL]*:*);;
   10713   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   10714   :[FH]-) ac_tag=-:-;;
   10715   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   10716   esac
   10717   ac_save_IFS=$IFS
   10718   IFS=:
   10719   set x $ac_tag
   10720   IFS=$ac_save_IFS
   10721   shift
   10722   ac_file=$1
   10723   shift
   10724 
   10725   case $ac_mode in
   10726   :L) ac_source=$1;;
   10727   :[FH])
   10728     ac_file_inputs=
   10729     for ac_f
   10730     do
   10731       case $ac_f in
   10732       -) ac_f="$ac_tmp/stdin";;
   10733       *) # Look for the file first in the build tree, then in the source tree
   10734 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   10735 	 # because $ac_f cannot contain `:'.
   10736 	 test -f "$ac_f" ||
   10737 	   case $ac_f in
   10738 	   [\\/$]*) false;;
   10739 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   10740 	   esac ||
   10741 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   10742       esac
   10743       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   10744       as_fn_append ac_file_inputs " '$ac_f'"
   10745     done
   10746 
   10747     # Let's still pretend it is `configure' which instantiates (i.e., don't
   10748     # use $as_me), people would be surprised to read:
   10749     #    /* config.h.  Generated by config.status.  */
   10750     configure_input='Generated from '`
   10751 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   10752 	`' by configure.'
   10753     if test x"$ac_file" != x-; then
   10754       configure_input="$ac_file.  $configure_input"
   10755       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   10756 printf "%s\n" "$as_me: creating $ac_file" >&6;}
   10757     fi
   10758     # Neutralize special characters interpreted by sed in replacement strings.
   10759     case $configure_input in #(
   10760     *\&* | *\|* | *\\* )
   10761        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   10762        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   10763     *) ac_sed_conf_input=$configure_input;;
   10764     esac
   10765 
   10766     case $ac_tag in
   10767     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   10768       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   10769     esac
   10770     ;;
   10771   esac
   10772 
   10773   ac_dir=`$as_dirname -- "$ac_file" ||
   10774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   10775 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   10776 	 X"$ac_file" : 'X\(//\)$' \| \
   10777 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   10778 printf "%s\n" X"$ac_file" |
   10779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   10780 	    s//\1/
   10781 	    q
   10782 	  }
   10783 	  /^X\(\/\/\)[^/].*/{
   10784 	    s//\1/
   10785 	    q
   10786 	  }
   10787 	  /^X\(\/\/\)$/{
   10788 	    s//\1/
   10789 	    q
   10790 	  }
   10791 	  /^X\(\/\).*/{
   10792 	    s//\1/
   10793 	    q
   10794 	  }
   10795 	  s/.*/./; q'`
   10796   as_dir="$ac_dir"; as_fn_mkdir_p
   10797   ac_builddir=.
   10798 
   10799 case "$ac_dir" in
   10800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   10801 *)
   10802   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   10803   # A ".." for each directory in $ac_dir_suffix.
   10804   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   10805   case $ac_top_builddir_sub in
   10806   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   10807   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   10808   esac ;;
   10809 esac
   10810 ac_abs_top_builddir=$ac_pwd
   10811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   10812 # for backward compatibility:
   10813 ac_top_builddir=$ac_top_build_prefix
   10814 
   10815 case $srcdir in
   10816   .)  # We are building in place.
   10817     ac_srcdir=.
   10818     ac_top_srcdir=$ac_top_builddir_sub
   10819     ac_abs_top_srcdir=$ac_pwd ;;
   10820   [\\/]* | ?:[\\/]* )  # Absolute name.
   10821     ac_srcdir=$srcdir$ac_dir_suffix;
   10822     ac_top_srcdir=$srcdir
   10823     ac_abs_top_srcdir=$srcdir ;;
   10824   *) # Relative name.
   10825     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   10826     ac_top_srcdir=$ac_top_build_prefix$srcdir
   10827     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   10828 esac
   10829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   10830 
   10831 
   10832   case $ac_mode in
   10833   :F)
   10834   #
   10835   # CONFIG_FILE
   10836   #
   10837 
   10838   case $INSTALL in
   10839   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   10840   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   10841   esac
   10842 _ACEOF
   10843 
   10844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10845 # If the template does not know about datarootdir, expand it.
   10846 # FIXME: This hack should be removed a few years after 2.60.
   10847 ac_datarootdir_hack=; ac_datarootdir_seen=
   10848 ac_sed_dataroot='
   10849 /datarootdir/ {
   10850   p
   10851   q
   10852 }
   10853 /@datadir@/p
   10854 /@docdir@/p
   10855 /@infodir@/p
   10856 /@localedir@/p
   10857 /@mandir@/p'
   10858 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   10859 *datarootdir*) ac_datarootdir_seen=yes;;
   10860 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   10861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   10862 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   10863 _ACEOF
   10864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10865   ac_datarootdir_hack='
   10866   s&@datadir@&$datadir&g
   10867   s&@docdir@&$docdir&g
   10868   s&@infodir@&$infodir&g
   10869   s&@localedir@&$localedir&g
   10870   s&@mandir@&$mandir&g
   10871   s&\\\${datarootdir}&$datarootdir&g' ;;
   10872 esac
   10873 _ACEOF
   10874 
   10875 # Neutralize VPATH when `$srcdir' = `.'.
   10876 # Shell code in configure.ac might set extrasub.
   10877 # FIXME: do we really want to maintain this feature?
   10878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   10879 ac_sed_extra="$ac_vpsub
   10880 $extrasub
   10881 _ACEOF
   10882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   10883 :t
   10884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   10885 s|@configure_input@|$ac_sed_conf_input|;t t
   10886 s&@top_builddir@&$ac_top_builddir_sub&;t t
   10887 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   10888 s&@srcdir@&$ac_srcdir&;t t
   10889 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   10890 s&@top_srcdir@&$ac_top_srcdir&;t t
   10891 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   10892 s&@builddir@&$ac_builddir&;t t
   10893 s&@abs_builddir@&$ac_abs_builddir&;t t
   10894 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   10895 s&@INSTALL@&$ac_INSTALL&;t t
   10896 $ac_datarootdir_hack
   10897 "
   10898 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   10899   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   10900 
   10901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   10902   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   10903   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   10904       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   10905   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   10906 which seems to be undefined.  Please make sure it is defined" >&5
   10907 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   10908 which seems to be undefined.  Please make sure it is defined" >&2;}
   10909 
   10910   rm -f "$ac_tmp/stdin"
   10911   case $ac_file in
   10912   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   10913   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   10914   esac \
   10915   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   10916  ;;
   10917   :H)
   10918   #
   10919   # CONFIG_HEADER
   10920   #
   10921   if test x"$ac_file" != x-; then
   10922     {
   10923       printf "%s\n" "/* $configure_input  */" >&1 \
   10924       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   10925     } >"$ac_tmp/config.h" \
   10926       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   10927     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   10928       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   10929 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   10930     else
   10931       rm -f "$ac_file"
   10932       mv "$ac_tmp/config.h" "$ac_file" \
   10933 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   10934     fi
   10935   else
   10936     printf "%s\n" "/* $configure_input  */" >&1 \
   10937       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   10938       || as_fn_error $? "could not create -" "$LINENO" 5
   10939   fi
   10940  ;;
   10941 
   10942   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   10943 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
   10944  ;;
   10945   esac
   10946 
   10947 
   10948   case $ac_file$ac_mode in
   10949     ".devel":C) if test -f .devel; then
   10950 	echo timestamp > stamp-h
   10951 	cat $srcdir/Makefile-devel-adds >> Makefile
   10952 	make depend || exit 1
   10953 fi ;;
   10954 
   10955   esac
   10956 done # for ac_tag
   10957 
   10958 
   10959 as_fn_exit 0
   10960 _ACEOF
   10961 ac_clean_files=$ac_clean_files_save
   10962 
   10963 test $ac_write_fail = 0 ||
   10964   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   10965 
   10966 
   10967 # configure is writing to config.log, and then calls config.status.
   10968 # config.status does its own redirection, appending to config.log.
   10969 # Unfortunately, on DOS this fails, as config.log is still kept open
   10970 # by configure, so config.status won't be able to write to it; its
   10971 # output is simply discarded.  So we exec the FD to /dev/null,
   10972 # effectively closing config.log, so it can be properly (re)opened and
   10973 # appended to by config.status.  When coming back to configure, we
   10974 # need to make the FD available again.
   10975 if test "$no_create" != yes; then
   10976   ac_cs_success=:
   10977   ac_config_status_args=
   10978   test "$silent" = yes &&
   10979     ac_config_status_args="$ac_config_status_args --quiet"
   10980   exec 5>/dev/null
   10981   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   10982   exec 5>>config.log
   10983   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   10984   # would make configure fail if this is the last instruction.
   10985   $ac_cs_success || as_fn_exit 1
   10986 fi
   10987 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   10988   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   10989 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   10990 fi
   10991 
   10992 exit 0
   10993 
   10994