"Fossies" - the Fresh Open Source Software Archive

Member "libpcap-1.10.1/./configure" (7 Jun 2021, 362737 Bytes) of package /linux/misc/libpcap-1.10.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 1.10.0_vs_1.10.1.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for pcap 1.10.1.
    4 #
    5 #
    6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    7 #
    8 #
    9 # This configure script is free software; the Free Software Foundation
   10 # gives unlimited permission to copy, distribute and modify it.
   11 ## -------------------- ##
   12 ## M4sh Initialization. ##
   13 ## -------------------- ##
   14 
   15 # Be more Bourne compatible
   16 DUALCASE=1; export DUALCASE # for MKS sh
   17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   18   emulate sh
   19   NULLCMD=:
   20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21   # is contrary to our usage.  Disable this feature.
   22   alias -g '${1+"$@"}'='"$@"'
   23   setopt NO_GLOB_SUBST
   24 else
   25   case `(set -o) 2>/dev/null` in #(
   26   *posix*) :
   27     set -o posix ;; #(
   28   *) :
   29      ;;
   30 esac
   31 fi
   32 
   33 
   34 as_nl='
   35 '
   36 export as_nl
   37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   41 # Prefer a ksh shell builtin over an external printf program on Solaris,
   42 # but without wasting forks for bash or zsh.
   43 if test -z "$BASH_VERSION$ZSH_VERSION" \
   44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   45   as_echo='print -r --'
   46   as_echo_n='print -rn --'
   47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   48   as_echo='printf %s\n'
   49   as_echo_n='printf %s'
   50 else
   51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   53     as_echo_n='/usr/ucb/echo -n'
   54   else
   55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   56     as_echo_n_body='eval
   57       arg=$1;
   58       case $arg in #(
   59       *"$as_nl"*)
   60     expr "X$arg" : "X\\(.*\\)$as_nl";
   61     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   62       esac;
   63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   64     '
   65     export as_echo_n_body
   66     as_echo_n='sh -c $as_echo_n_body as_echo'
   67   fi
   68   export as_echo_body
   69   as_echo='sh -c $as_echo_body as_echo'
   70 fi
   71 
   72 # The user is always right.
   73 if test "${PATH_SEPARATOR+set}" != set; then
   74   PATH_SEPARATOR=:
   75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   77       PATH_SEPARATOR=';'
   78   }
   79 fi
   80 
   81 
   82 # IFS
   83 # We need space, tab and new line, in precisely that order.  Quoting is
   84 # there to prevent editors from complaining about space-tab.
   85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   86 # splitting by setting IFS to empty value.)
   87 IFS=" ""    $as_nl"
   88 
   89 # Find who we are.  Look in the path if we contain no directory separator.
   90 as_myself=
   91 case $0 in #((
   92   *[\\/]* ) as_myself=$0 ;;
   93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   94 for as_dir in $PATH
   95 do
   96   IFS=$as_save_IFS
   97   test -z "$as_dir" && as_dir=.
   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   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  111   exit 1
  112 fi
  113 
  114 # Unset variables that we do not need and which cause bugs (e.g. in
  115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  116 # suppresses any "Segmentation fault" message there.  '((' could
  117 # trigger a bug in pdksh 5.2.14.
  118 for as_var in BASH_ENV ENV MAIL MAILPATH
  119 do eval test x\${$as_var+set} = xset \
  120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121 done
  122 PS1='$ '
  123 PS2='> '
  124 PS4='+ '
  125 
  126 # NLS nuisances.
  127 LC_ALL=C
  128 export LC_ALL
  129 LANGUAGE=C
  130 export LANGUAGE
  131 
  132 # CDPATH.
  133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  134 
  135 # Use a proper internal environment variable to ensure we don't fall
  136   # into an infinite loop, continuously re-executing ourselves.
  137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  138     _as_can_reexec=no; export _as_can_reexec;
  139     # We cannot yet assume a decent shell, so we have to provide a
  140 # neutralization value for shells without unset; and this also
  141 # works around shells that cannot unset nonexistent variables.
  142 # Preserve -v and -x to the replacement shell.
  143 BASH_ENV=/dev/null
  144 ENV=/dev/null
  145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  146 case $- in # ((((
  147   *v*x* | *x*v* ) as_opts=-vx ;;
  148   *v* ) as_opts=-v ;;
  149   *x* ) as_opts=-x ;;
  150   * ) as_opts= ;;
  151 esac
  152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  153 # Admittedly, this is quite paranoid, since all the known shells bail
  154 # out after a failed `exec'.
  155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  156 as_fn_exit 255
  157   fi
  158   # We don't want this to propagate to other subprocesses.
  159           { _as_can_reexec=; unset _as_can_reexec;}
  160 if test "x$CONFIG_SHELL" = x; then
  161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  162   emulate sh
  163   NULLCMD=:
  164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  165   # is contrary to our usage.  Disable this feature.
  166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  167   setopt NO_GLOB_SUBST
  168 else
  169   case \`(set -o) 2>/dev/null\` in #(
  170   *posix*) :
  171     set -o posix ;; #(
  172   *) :
  173      ;;
  174 esac
  175 fi
  176 "
  177   as_required="as_fn_return () { (exit \$1); }
  178 as_fn_success () { as_fn_return 0; }
  179 as_fn_failure () { as_fn_return 1; }
  180 as_fn_ret_success () { return 0; }
  181 as_fn_ret_failure () { return 1; }
  182 
  183 exitcode=0
  184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  189 
  190 else
  191   exitcode=1; echo positional parameters were not saved.
  192 fi
  193 test x\$exitcode = x0 || exit 1
  194 test -x / || exit 1"
  195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  199 test \$(( 1 + 1 )) = 2 || exit 1"
  200   if (eval "$as_required") 2>/dev/null; then :
  201   as_have_required=yes
  202 else
  203   as_have_required=no
  204 fi
  205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206 
  207 else
  208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  209 as_found=false
  210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  211 do
  212   IFS=$as_save_IFS
  213   test -z "$as_dir" && as_dir=.
  214   as_found=:
  215   case $as_dir in #(
  216      /*)
  217        for as_base in sh bash ksh sh5; do
  218          # Try only shells that exist, to save several forks.
  219          as_shell=$as_dir/$as_base
  220          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  221             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  222   CONFIG_SHELL=$as_shell as_have_required=yes
  223            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224   break 2
  225 fi
  226 fi
  227        done;;
  228        esac
  229   as_found=false
  230 done
  231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  232           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  233   CONFIG_SHELL=$SHELL as_have_required=yes
  234 fi; }
  235 IFS=$as_save_IFS
  236 
  237 
  238       if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  257 exit 255
  258 fi
  259 
  260     if test x$as_have_required = xno; then :
  261   $as_echo "$0: This script requires a shell more modern than all"
  262   $as_echo "$0: the shells that I found on your system."
  263   if test x${ZSH_VERSION+set} = xset ; then
  264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  266   else
  267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  268 $0: including any error possibly output before this
  269 $0: message. Then install a modern shell, or manually run
  270 $0: the script under such a shell if you do have one."
  271   fi
  272   exit 1
  273 fi
  274 fi
  275 fi
  276 SHELL=${CONFIG_SHELL-/bin/sh}
  277 export SHELL
  278 # Unset more variables known to interfere with behavior of common tools.
  279 CLICOLOR_FORCE= GREP_OPTIONS=
  280 unset CLICOLOR_FORCE GREP_OPTIONS
  281 
  282 ## --------------------- ##
  283 ## M4sh Shell Functions. ##
  284 ## --------------------- ##
  285 # as_fn_unset VAR
  286 # ---------------
  287 # Portably unset VAR.
  288 as_fn_unset ()
  289 {
  290   { eval $1=; unset $1;}
  291 }
  292 as_unset=as_fn_unset
  293 
  294 # as_fn_set_status STATUS
  295 # -----------------------
  296 # Set $? to STATUS, without forking.
  297 as_fn_set_status ()
  298 {
  299   return $1
  300 } # as_fn_set_status
  301 
  302 # as_fn_exit STATUS
  303 # -----------------
  304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  305 as_fn_exit ()
  306 {
  307   set +e
  308   as_fn_set_status $1
  309   exit $1
  310 } # as_fn_exit
  311 
  312 # as_fn_mkdir_p
  313 # -------------
  314 # Create "$as_dir" as a directory, including parents if necessary.
  315 as_fn_mkdir_p ()
  316 {
  317 
  318   case $as_dir in #(
  319   -*) as_dir=./$as_dir;;
  320   esac
  321   test -d "$as_dir" || eval $as_mkdir_p || {
  322     as_dirs=
  323     while :; do
  324       case $as_dir in #(
  325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  326       *) as_qdir=$as_dir;;
  327       esac
  328       as_dirs="'$as_qdir' $as_dirs"
  329       as_dir=`$as_dirname -- "$as_dir" ||
  330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  331      X"$as_dir" : 'X\(//\)[^/]' \| \
  332      X"$as_dir" : 'X\(//\)$' \| \
  333      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  334 $as_echo X"$as_dir" |
  335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  336         s//\1/
  337         q
  338       }
  339       /^X\(\/\/\)[^/].*/{
  340         s//\1/
  341         q
  342       }
  343       /^X\(\/\/\)$/{
  344         s//\1/
  345         q
  346       }
  347       /^X\(\/\).*/{
  348         s//\1/
  349         q
  350       }
  351       s/.*/./; q'`
  352       test -d "$as_dir" && break
  353     done
  354     test -z "$as_dirs" || eval "mkdir $as_dirs"
  355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  356 
  357 
  358 } # as_fn_mkdir_p
  359 
  360 # as_fn_executable_p FILE
  361 # -----------------------
  362 # Test if FILE is an executable regular file.
  363 as_fn_executable_p ()
  364 {
  365   test -f "$1" && test -x "$1"
  366 } # as_fn_executable_p
  367 # as_fn_append VAR VALUE
  368 # ----------------------
  369 # Append the text in VALUE to the end of the definition contained in VAR. Take
  370 # advantage of any shell optimizations that allow amortized linear growth over
  371 # repeated appends, instead of the typical quadratic growth present in naive
  372 # implementations.
  373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  374   eval 'as_fn_append ()
  375   {
  376     eval $1+=\$2
  377   }'
  378 else
  379   as_fn_append ()
  380   {
  381     eval $1=\$$1\$2
  382   }
  383 fi # as_fn_append
  384 
  385 # as_fn_arith ARG...
  386 # ------------------
  387 # Perform arithmetic evaluation on the ARGs, and store the result in the
  388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
  389 # must be portable across $(()) and expr.
  390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  391   eval 'as_fn_arith ()
  392   {
  393     as_val=$(( $* ))
  394   }'
  395 else
  396   as_fn_arith ()
  397   {
  398     as_val=`expr "$@" || test $? -eq 1`
  399   }
  400 fi # as_fn_arith
  401 
  402 
  403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
  404 # ----------------------------------------
  405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  407 # script with STATUS, using 1 if that was 0.
  408 as_fn_error ()
  409 {
  410   as_status=$1; test $as_status -eq 0 && as_status=1
  411   if test "$4"; then
  412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  414   fi
  415   $as_echo "$as_me: error: $2" >&2
  416   as_fn_exit $as_status
  417 } # as_fn_error
  418 
  419 if expr a : '\(a\)' >/dev/null 2>&1 &&
  420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  421   as_expr=expr
  422 else
  423   as_expr=false
  424 fi
  425 
  426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  427   as_basename=basename
  428 else
  429   as_basename=false
  430 fi
  431 
  432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  433   as_dirname=dirname
  434 else
  435   as_dirname=false
  436 fi
  437 
  438 as_me=`$as_basename -- "$0" ||
  439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  440      X"$0" : 'X\(//\)$' \| \
  441      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  442 $as_echo X/"$0" |
  443     sed '/^.*\/\([^/][^/]*\)\/*$/{
  444         s//\1/
  445         q
  446       }
  447       /^X\/\(\/\/\)$/{
  448         s//\1/
  449         q
  450       }
  451       /^X\/\(\/\).*/{
  452         s//\1/
  453         q
  454       }
  455       s/.*/./; q'`
  456 
  457 # Avoid depending upon Character Ranges.
  458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  461 as_cr_digits='0123456789'
  462 as_cr_alnum=$as_cr_Letters$as_cr_digits
  463 
  464 
  465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  470   sed -n '
  471     p
  472     /[$]LINENO/=
  473   ' <$as_myself |
  474     sed '
  475       s/[$]LINENO.*/&-/
  476       t lineno
  477       b
  478       :lineno
  479       N
  480       :loop
  481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  482       t loop
  483       s/-\n.*//
  484     ' >$as_me.lineno &&
  485   chmod +x "$as_me.lineno" ||
  486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  487 
  488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  489   # already done that, so ensure we don't try to do so again and fall
  490   # in an infinite loop.  This has already happened in practice.
  491   _as_can_reexec=no; export _as_can_reexec
  492   # Don't try to exec as it changes $[0], causing all sort of problems
  493   # (the dirname of $[0] is not the place where we might find the
  494   # original and so on.  Autoconf is especially sensitive to this).
  495   . "./$as_me.lineno"
  496   # Exit status is that of the last command.
  497   exit
  498 }
  499 
  500 ECHO_C= ECHO_N= ECHO_T=
  501 case `echo -n x` in #(((((
  502 -n*)
  503   case `echo 'xy\c'` in
  504   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  505   xy)  ECHO_C='\c';;
  506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  507        ECHO_T=' ';;
  508   esac;;
  509 *)
  510   ECHO_N='-n';;
  511 esac
  512 
  513 rm -f conf$$ conf$$.exe conf$$.file
  514 if test -d conf$$.dir; then
  515   rm -f conf$$.dir/conf$$.file
  516 else
  517   rm -f conf$$.dir
  518   mkdir conf$$.dir 2>/dev/null
  519 fi
  520 if (echo >conf$$.file) 2>/dev/null; then
  521   if ln -s conf$$.file conf$$ 2>/dev/null; then
  522     as_ln_s='ln -s'
  523     # ... but there are two gotchas:
  524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  526     # In both cases, we have to default to `cp -pR'.
  527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  528       as_ln_s='cp -pR'
  529   elif ln conf$$.file conf$$ 2>/dev/null; then
  530     as_ln_s=ln
  531   else
  532     as_ln_s='cp -pR'
  533   fi
  534 else
  535   as_ln_s='cp -pR'
  536 fi
  537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  538 rmdir conf$$.dir 2>/dev/null
  539 
  540 if mkdir -p . 2>/dev/null; then
  541   as_mkdir_p='mkdir -p "$as_dir"'
  542 else
  543   test -d ./-p && rmdir ./-p
  544   as_mkdir_p=false
  545 fi
  546 
  547 as_test_x='test -x'
  548 as_executable_p=as_fn_executable_p
  549 
  550 # Sed expression to map a string onto a valid CPP name.
  551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  552 
  553 # Sed expression to map a string onto a valid variable name.
  554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  555 
  556 
  557 test -n "$DJDIR" || exec 7<&0 </dev/null
  558 exec 6>&1
  559 
  560 # Name of the host.
  561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  562 # so uname gets run too.
  563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  564 
  565 #
  566 # Initializations.
  567 #
  568 ac_default_prefix=/usr/local
  569 ac_clean_files=
  570 ac_config_libobj_dir=.
  571 LIBOBJS=
  572 cross_compiling=no
  573 subdirs=
  574 MFLAGS=
  575 MAKEFLAGS=
  576 
  577 # Identity of this package.
  578 PACKAGE_NAME='pcap'
  579 PACKAGE_TARNAME='pcap'
  580 PACKAGE_VERSION='1.10.1'
  581 PACKAGE_STRING='pcap 1.10.1'
  582 PACKAGE_BUGREPORT=''
  583 PACKAGE_URL=''
  584 
  585 ac_unique_file="pcap.c"
  586 # Factoring default headers for most tests.
  587 ac_includes_default="\
  588 #include <stdio.h>
  589 #ifdef HAVE_SYS_TYPES_H
  590 # include <sys/types.h>
  591 #endif
  592 #ifdef HAVE_SYS_STAT_H
  593 # include <sys/stat.h>
  594 #endif
  595 #ifdef STDC_HEADERS
  596 # include <stdlib.h>
  597 # include <stddef.h>
  598 #else
  599 # ifdef HAVE_STDLIB_H
  600 #  include <stdlib.h>
  601 # endif
  602 #endif
  603 #ifdef HAVE_STRING_H
  604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  605 #  include <memory.h>
  606 # endif
  607 # include <string.h>
  608 #endif
  609 #ifdef HAVE_STRINGS_H
  610 # include <strings.h>
  611 #endif
  612 #ifdef HAVE_INTTYPES_H
  613 # include <inttypes.h>
  614 #endif
  615 #ifdef HAVE_STDINT_H
  616 # include <stdint.h>
  617 #endif
  618 #ifdef HAVE_UNISTD_H
  619 # include <unistd.h>
  620 #endif"
  621 
  622 ac_subst_vars='LTLIBOBJS
  623 INSTALL_DATA
  624 INSTALL_SCRIPT
  625 INSTALL_PROGRAM
  626 PCAP_SUPPORT_RDMASNIFF
  627 PCAP_SUPPORT_DBUS
  628 PCAP_SUPPORT_BT
  629 PCAP_SUPPORT_DPDK
  630 PCAP_SUPPORT_NETMAP
  631 PCAP_SUPPORT_NETFILTER
  632 PCAP_SUPPORT_LINUX_USBMON
  633 EXTRA_NETWORK_LIBS
  634 RPCAPD_LIBS
  635 INSTALL_RPCAPD
  636 BUILD_RPCAPD
  637 PTHREAD_LIBS
  638 MAN_ADMIN_COMMANDS
  639 MAN_MISC_INFO
  640 MAN_FILE_FORMATS
  641 MAN_DEVICES
  642 DYEXT
  643 REMOTE_C_SRC
  644 MODULE_C_SRC
  645 PLATFORM_CXX_SRC
  646 PLATFORM_C_SRC
  647 ADDLARCHIVEOBJS
  648 ADDLOBJS
  649 V_YACC
  650 V_RPATH_OPT
  651 V_SONAME_OPT
  652 V_SHLIB_OPT
  653 V_SHLIB_CMD
  654 V_SHLIB_CCOPT
  655 V_LEX
  656 V_INCLS
  657 V_DEFS
  658 V_PROG_LDFLAGS_FAT
  659 V_PROG_CCOPT_FAT
  660 V_LIB_LDFLAGS_FAT
  661 V_LIB_CCOPT_FAT
  662 V_CCOPT
  663 MKDEP
  664 DEPENDENCY_CFLAG
  665 LN_S
  666 AR
  667 RANLIB
  668 REENTRANT_PARSER
  669 BISON_BYACC
  670 LEXLIB
  671 LEX_OUTPUT_ROOT
  672 LEX
  673 PKGCONFIG
  674 VALGRINDTEST_SRC
  675 LIBOBJS
  676 EGREP
  677 GREP
  678 CPP
  679 ac_ct_CXX
  680 CXXFLAGS
  681 CXX
  682 OBJEXT
  683 EXEEXT
  684 ac_ct_CC
  685 CPPFLAGS
  686 LDFLAGS
  687 CFLAGS
  688 CC
  689 SHLICC2
  690 target_os
  691 target_vendor
  692 target_cpu
  693 target
  694 host_os
  695 host_vendor
  696 host_cpu
  697 host
  698 build_os
  699 build_vendor
  700 build_cpu
  701 build
  702 target_alias
  703 host_alias
  704 build_alias
  705 LIBS
  706 ECHO_T
  707 ECHO_N
  708 ECHO_C
  709 DEFS
  710 mandir
  711 localedir
  712 libdir
  713 psdir
  714 pdfdir
  715 dvidir
  716 htmldir
  717 infodir
  718 docdir
  719 oldincludedir
  720 includedir
  721 runstatedir
  722 localstatedir
  723 sharedstatedir
  724 sysconfdir
  725 datadir
  726 datarootdir
  727 libexecdir
  728 sbindir
  729 bindir
  730 program_transform_name
  731 prefix
  732 exec_prefix
  733 PACKAGE_URL
  734 PACKAGE_BUGREPORT
  735 PACKAGE_STRING
  736 PACKAGE_VERSION
  737 PACKAGE_TARNAME
  738 PACKAGE_NAME
  739 PATH_SEPARATOR
  740 SHELL'
  741 ac_subst_files=''
  742 ac_user_opts='
  743 enable_option_checking
  744 with_gcc
  745 enable_largefile
  746 enable_protochain
  747 with_pcap
  748 with_libnl
  749 enable_ipv6
  750 with_dag
  751 with_dag_includes
  752 with_dag_libraries
  753 with_septel
  754 with_snf
  755 with_snf_includes
  756 with_snf_libraries
  757 with_turbocap
  758 enable_remote
  759 enable_optimizer_dbg
  760 enable_yydebug
  761 enable_universal
  762 enable_shared
  763 enable_usb
  764 enable_netmap
  765 with_dpdk
  766 enable_bluetooth
  767 enable_dbus
  768 enable_rdma
  769 '
  770       ac_precious_vars='build_alias
  771 host_alias
  772 target_alias
  773 CC
  774 CFLAGS
  775 LDFLAGS
  776 LIBS
  777 CPPFLAGS
  778 CXX
  779 CXXFLAGS
  780 CCC
  781 CPP'
  782 
  783 
  784 # Initialize some variables set by options.
  785 ac_init_help=
  786 ac_init_version=false
  787 ac_unrecognized_opts=
  788 ac_unrecognized_sep=
  789 # The variables have the same names as the options, with
  790 # dashes changed to underlines.
  791 cache_file=/dev/null
  792 exec_prefix=NONE
  793 no_create=
  794 no_recursion=
  795 prefix=NONE
  796 program_prefix=NONE
  797 program_suffix=NONE
  798 program_transform_name=s,x,x,
  799 silent=
  800 site=
  801 srcdir=
  802 verbose=
  803 x_includes=NONE
  804 x_libraries=NONE
  805 
  806 # Installation directory options.
  807 # These are left unexpanded so users can "make install exec_prefix=/foo"
  808 # and all the variables that are supposed to be based on exec_prefix
  809 # by default will actually change.
  810 # Use braces instead of parens because sh, perl, etc. also accept them.
  811 # (The list follows the same order as the GNU Coding Standards.)
  812 bindir='${exec_prefix}/bin'
  813 sbindir='${exec_prefix}/sbin'
  814 libexecdir='${exec_prefix}/libexec'
  815 datarootdir='${prefix}/share'
  816 datadir='${datarootdir}'
  817 sysconfdir='${prefix}/etc'
  818 sharedstatedir='${prefix}/com'
  819 localstatedir='${prefix}/var'
  820 runstatedir='${localstatedir}/run'
  821 includedir='${prefix}/include'
  822 oldincludedir='/usr/include'
  823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  824 infodir='${datarootdir}/info'
  825 htmldir='${docdir}'
  826 dvidir='${docdir}'
  827 pdfdir='${docdir}'
  828 psdir='${docdir}'
  829 libdir='${exec_prefix}/lib'
  830 localedir='${datarootdir}/locale'
  831 mandir='${datarootdir}/man'
  832 
  833 ac_prev=
  834 ac_dashdash=
  835 for ac_option
  836 do
  837   # If the previous option needs an argument, assign it.
  838   if test -n "$ac_prev"; then
  839     eval $ac_prev=\$ac_option
  840     ac_prev=
  841     continue
  842   fi
  843 
  844   case $ac_option in
  845   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  846   *=)   ac_optarg= ;;
  847   *)    ac_optarg=yes ;;
  848   esac
  849 
  850   # Accept the important Cygnus configure options, so we can diagnose typos.
  851 
  852   case $ac_dashdash$ac_option in
  853   --)
  854     ac_dashdash=yes ;;
  855 
  856   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  857     ac_prev=bindir ;;
  858   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  859     bindir=$ac_optarg ;;
  860 
  861   -build | --build | --buil | --bui | --bu)
  862     ac_prev=build_alias ;;
  863   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  864     build_alias=$ac_optarg ;;
  865 
  866   -cache-file | --cache-file | --cache-fil | --cache-fi \
  867   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  868     ac_prev=cache_file ;;
  869   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  870   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  871     cache_file=$ac_optarg ;;
  872 
  873   --config-cache | -C)
  874     cache_file=config.cache ;;
  875 
  876   -datadir | --datadir | --datadi | --datad)
  877     ac_prev=datadir ;;
  878   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  879     datadir=$ac_optarg ;;
  880 
  881   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  882   | --dataroo | --dataro | --datar)
  883     ac_prev=datarootdir ;;
  884   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  885   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  886     datarootdir=$ac_optarg ;;
  887 
  888   -disable-* | --disable-*)
  889     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  890     # Reject names that are not valid shell variable names.
  891     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  892       as_fn_error $? "invalid feature name: $ac_useropt"
  893     ac_useropt_orig=$ac_useropt
  894     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  895     case $ac_user_opts in
  896       *"
  897 "enable_$ac_useropt"
  898 "*) ;;
  899       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  900      ac_unrecognized_sep=', ';;
  901     esac
  902     eval enable_$ac_useropt=no ;;
  903 
  904   -docdir | --docdir | --docdi | --doc | --do)
  905     ac_prev=docdir ;;
  906   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  907     docdir=$ac_optarg ;;
  908 
  909   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  910     ac_prev=dvidir ;;
  911   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  912     dvidir=$ac_optarg ;;
  913 
  914   -enable-* | --enable-*)
  915     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  916     # Reject names that are not valid shell variable names.
  917     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  918       as_fn_error $? "invalid feature name: $ac_useropt"
  919     ac_useropt_orig=$ac_useropt
  920     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  921     case $ac_user_opts in
  922       *"
  923 "enable_$ac_useropt"
  924 "*) ;;
  925       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  926      ac_unrecognized_sep=', ';;
  927     esac
  928     eval enable_$ac_useropt=\$ac_optarg ;;
  929 
  930   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  931   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  932   | --exec | --exe | --ex)
  933     ac_prev=exec_prefix ;;
  934   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  935   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  936   | --exec=* | --exe=* | --ex=*)
  937     exec_prefix=$ac_optarg ;;
  938 
  939   -gas | --gas | --ga | --g)
  940     # Obsolete; use --with-gas.
  941     with_gas=yes ;;
  942 
  943   -help | --help | --hel | --he | -h)
  944     ac_init_help=long ;;
  945   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  946     ac_init_help=recursive ;;
  947   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  948     ac_init_help=short ;;
  949 
  950   -host | --host | --hos | --ho)
  951     ac_prev=host_alias ;;
  952   -host=* | --host=* | --hos=* | --ho=*)
  953     host_alias=$ac_optarg ;;
  954 
  955   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  956     ac_prev=htmldir ;;
  957   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  958   | --ht=*)
  959     htmldir=$ac_optarg ;;
  960 
  961   -includedir | --includedir | --includedi | --included | --include \
  962   | --includ | --inclu | --incl | --inc)
  963     ac_prev=includedir ;;
  964   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  965   | --includ=* | --inclu=* | --incl=* | --inc=*)
  966     includedir=$ac_optarg ;;
  967 
  968   -infodir | --infodir | --infodi | --infod | --info | --inf)
  969     ac_prev=infodir ;;
  970   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  971     infodir=$ac_optarg ;;
  972 
  973   -libdir | --libdir | --libdi | --libd)
  974     ac_prev=libdir ;;
  975   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  976     libdir=$ac_optarg ;;
  977 
  978   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  979   | --libexe | --libex | --libe)
  980     ac_prev=libexecdir ;;
  981   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  982   | --libexe=* | --libex=* | --libe=*)
  983     libexecdir=$ac_optarg ;;
  984 
  985   -localedir | --localedir | --localedi | --localed | --locale)
  986     ac_prev=localedir ;;
  987   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  988     localedir=$ac_optarg ;;
  989 
  990   -localstatedir | --localstatedir | --localstatedi | --localstated \
  991   | --localstate | --localstat | --localsta | --localst | --locals)
  992     ac_prev=localstatedir ;;
  993   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  994   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  995     localstatedir=$ac_optarg ;;
  996 
  997   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  998     ac_prev=mandir ;;
  999   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 1000     mandir=$ac_optarg ;;
 1001 
 1002   -nfp | --nfp | --nf)
 1003     # Obsolete; use --without-fp.
 1004     with_fp=no ;;
 1005 
 1006   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1007   | --no-cr | --no-c | -n)
 1008     no_create=yes ;;
 1009 
 1010   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1011   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1012     no_recursion=yes ;;
 1013 
 1014   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1015   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1016   | --oldin | --oldi | --old | --ol | --o)
 1017     ac_prev=oldincludedir ;;
 1018   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1019   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1020   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1021     oldincludedir=$ac_optarg ;;
 1022 
 1023   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1024     ac_prev=prefix ;;
 1025   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1026     prefix=$ac_optarg ;;
 1027 
 1028   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1029   | --program-pre | --program-pr | --program-p)
 1030     ac_prev=program_prefix ;;
 1031   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1032   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1033     program_prefix=$ac_optarg ;;
 1034 
 1035   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1036   | --program-suf | --program-su | --program-s)
 1037     ac_prev=program_suffix ;;
 1038   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1039   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1040     program_suffix=$ac_optarg ;;
 1041 
 1042   -program-transform-name | --program-transform-name \
 1043   | --program-transform-nam | --program-transform-na \
 1044   | --program-transform-n | --program-transform- \
 1045   | --program-transform | --program-transfor \
 1046   | --program-transfo | --program-transf \
 1047   | --program-trans | --program-tran \
 1048   | --progr-tra | --program-tr | --program-t)
 1049     ac_prev=program_transform_name ;;
 1050   -program-transform-name=* | --program-transform-name=* \
 1051   | --program-transform-nam=* | --program-transform-na=* \
 1052   | --program-transform-n=* | --program-transform-=* \
 1053   | --program-transform=* | --program-transfor=* \
 1054   | --program-transfo=* | --program-transf=* \
 1055   | --program-trans=* | --program-tran=* \
 1056   | --progr-tra=* | --program-tr=* | --program-t=*)
 1057     program_transform_name=$ac_optarg ;;
 1058 
 1059   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1060     ac_prev=pdfdir ;;
 1061   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1062     pdfdir=$ac_optarg ;;
 1063 
 1064   -psdir | --psdir | --psdi | --psd | --ps)
 1065     ac_prev=psdir ;;
 1066   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1067     psdir=$ac_optarg ;;
 1068 
 1069   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1070   | -silent | --silent | --silen | --sile | --sil)
 1071     silent=yes ;;
 1072 
 1073   -runstatedir | --runstatedir | --runstatedi | --runstated \
 1074   | --runstate | --runstat | --runsta | --runst | --runs \
 1075   | --run | --ru | --r)
 1076     ac_prev=runstatedir ;;
 1077   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
 1078   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
 1079   | --run=* | --ru=* | --r=*)
 1080     runstatedir=$ac_optarg ;;
 1081 
 1082   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1083     ac_prev=sbindir ;;
 1084   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1085   | --sbi=* | --sb=*)
 1086     sbindir=$ac_optarg ;;
 1087 
 1088   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1089   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1090   | --sharedst | --shareds | --shared | --share | --shar \
 1091   | --sha | --sh)
 1092     ac_prev=sharedstatedir ;;
 1093   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1094   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1095   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1096   | --sha=* | --sh=*)
 1097     sharedstatedir=$ac_optarg ;;
 1098 
 1099   -site | --site | --sit)
 1100     ac_prev=site ;;
 1101   -site=* | --site=* | --sit=*)
 1102     site=$ac_optarg ;;
 1103 
 1104   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1105     ac_prev=srcdir ;;
 1106   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1107     srcdir=$ac_optarg ;;
 1108 
 1109   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1110   | --syscon | --sysco | --sysc | --sys | --sy)
 1111     ac_prev=sysconfdir ;;
 1112   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1113   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1114     sysconfdir=$ac_optarg ;;
 1115 
 1116   -target | --target | --targe | --targ | --tar | --ta | --t)
 1117     ac_prev=target_alias ;;
 1118   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1119     target_alias=$ac_optarg ;;
 1120 
 1121   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1122     verbose=yes ;;
 1123 
 1124   -version | --version | --versio | --versi | --vers | -V)
 1125     ac_init_version=: ;;
 1126 
 1127   -with-* | --with-*)
 1128     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1129     # Reject names that are not valid shell variable names.
 1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1131       as_fn_error $? "invalid package name: $ac_useropt"
 1132     ac_useropt_orig=$ac_useropt
 1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1134     case $ac_user_opts in
 1135       *"
 1136 "with_$ac_useropt"
 1137 "*) ;;
 1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1139      ac_unrecognized_sep=', ';;
 1140     esac
 1141     eval with_$ac_useropt=\$ac_optarg ;;
 1142 
 1143   -without-* | --without-*)
 1144     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1145     # Reject names that are not valid shell variable names.
 1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1147       as_fn_error $? "invalid package name: $ac_useropt"
 1148     ac_useropt_orig=$ac_useropt
 1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1150     case $ac_user_opts in
 1151       *"
 1152 "with_$ac_useropt"
 1153 "*) ;;
 1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1155      ac_unrecognized_sep=', ';;
 1156     esac
 1157     eval with_$ac_useropt=no ;;
 1158 
 1159   --x)
 1160     # Obsolete; use --with-x.
 1161     with_x=yes ;;
 1162 
 1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1164   | --x-incl | --x-inc | --x-in | --x-i)
 1165     ac_prev=x_includes ;;
 1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1168     x_includes=$ac_optarg ;;
 1169 
 1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1172     ac_prev=x_libraries ;;
 1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1175     x_libraries=$ac_optarg ;;
 1176 
 1177   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1178 Try \`$0 --help' for more information"
 1179     ;;
 1180 
 1181   *=*)
 1182     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1183     # Reject names that are not valid shell variable names.
 1184     case $ac_envvar in #(
 1185       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1186       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1187     esac
 1188     eval $ac_envvar=\$ac_optarg
 1189     export $ac_envvar ;;
 1190 
 1191   *)
 1192     # FIXME: should be removed in autoconf 3.0.
 1193     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1195       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1196     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1197     ;;
 1198 
 1199   esac
 1200 done
 1201 
 1202 if test -n "$ac_prev"; then
 1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1204   as_fn_error $? "missing argument to $ac_option"
 1205 fi
 1206 
 1207 if test -n "$ac_unrecognized_opts"; then
 1208   case $enable_option_checking in
 1209     no) ;;
 1210     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1211     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1212   esac
 1213 fi
 1214 
 1215 # Check all directory arguments for consistency.
 1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1217         datadir sysconfdir sharedstatedir localstatedir includedir \
 1218         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1219         libdir localedir mandir runstatedir
 1220 do
 1221   eval ac_val=\$$ac_var
 1222   # Remove trailing slashes.
 1223   case $ac_val in
 1224     */ )
 1225       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1226       eval $ac_var=\$ac_val;;
 1227   esac
 1228   # Be sure to have absolute directory names.
 1229   case $ac_val in
 1230     [\\/$]* | ?:[\\/]* )  continue;;
 1231     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1232   esac
 1233   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1234 done
 1235 
 1236 # There might be people who depend on the old broken behavior: `$host'
 1237 # used to hold the argument of --host etc.
 1238 # FIXME: To remove some day.
 1239 build=$build_alias
 1240 host=$host_alias
 1241 target=$target_alias
 1242 
 1243 # FIXME: To remove some day.
 1244 if test "x$host_alias" != x; then
 1245   if test "x$build_alias" = x; then
 1246     cross_compiling=maybe
 1247   elif test "x$build_alias" != "x$host_alias"; then
 1248     cross_compiling=yes
 1249   fi
 1250 fi
 1251 
 1252 ac_tool_prefix=
 1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1254 
 1255 test "$silent" = yes && exec 6>/dev/null
 1256 
 1257 
 1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1259 ac_ls_di=`ls -di .` &&
 1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1261   as_fn_error $? "working directory cannot be determined"
 1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1263   as_fn_error $? "pwd does not report name of working directory"
 1264 
 1265 
 1266 # Find the source files, if location was not specified.
 1267 if test -z "$srcdir"; then
 1268   ac_srcdir_defaulted=yes
 1269   # Try the directory containing this script, then the parent directory.
 1270   ac_confdir=`$as_dirname -- "$as_myself" ||
 1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1272      X"$as_myself" : 'X\(//\)[^/]' \| \
 1273      X"$as_myself" : 'X\(//\)$' \| \
 1274      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1275 $as_echo X"$as_myself" |
 1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1277         s//\1/
 1278         q
 1279       }
 1280       /^X\(\/\/\)[^/].*/{
 1281         s//\1/
 1282         q
 1283       }
 1284       /^X\(\/\/\)$/{
 1285         s//\1/
 1286         q
 1287       }
 1288       /^X\(\/\).*/{
 1289         s//\1/
 1290         q
 1291       }
 1292       s/.*/./; q'`
 1293   srcdir=$ac_confdir
 1294   if test ! -r "$srcdir/$ac_unique_file"; then
 1295     srcdir=..
 1296   fi
 1297 else
 1298   ac_srcdir_defaulted=no
 1299 fi
 1300 if test ! -r "$srcdir/$ac_unique_file"; then
 1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1302   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1303 fi
 1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1305 ac_abs_confdir=`(
 1306     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1307     pwd)`
 1308 # When building in place, set srcdir=.
 1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
 1310   srcdir=.
 1311 fi
 1312 # Remove unnecessary trailing slashes from srcdir.
 1313 # Double slashes in file names in object file debugging info
 1314 # mess up M-x gdb in Emacs.
 1315 case $srcdir in
 1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1317 esac
 1318 for ac_var in $ac_precious_vars; do
 1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1320   eval ac_env_${ac_var}_value=\$${ac_var}
 1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1323 done
 1324 
 1325 #
 1326 # Report the --help message.
 1327 #
 1328 if test "$ac_init_help" = "long"; then
 1329   # Omit some internal or obsolete options to make the list less imposing.
 1330   # This message is too long to be a string in the A/UX 3.1 sh.
 1331   cat <<_ACEOF
 1332 \`configure' configures pcap 1.10.1 to adapt to many kinds of systems.
 1333 
 1334 Usage: $0 [OPTION]... [VAR=VALUE]...
 1335 
 1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
 1338 
 1339 Defaults for the options are specified in brackets.
 1340 
 1341 Configuration:
 1342   -h, --help              display this help and exit
 1343       --help=short        display options specific to this package
 1344       --help=recursive    display the short help of all the included packages
 1345   -V, --version           display version information and exit
 1346   -q, --quiet, --silent   do not print \`checking ...' messages
 1347       --cache-file=FILE   cache test results in FILE [disabled]
 1348   -C, --config-cache      alias for \`--cache-file=config.cache'
 1349   -n, --no-create         do not create output files
 1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1351 
 1352 Installation directories:
 1353   --prefix=PREFIX         install architecture-independent files in PREFIX
 1354                           [$ac_default_prefix]
 1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1356                           [PREFIX]
 1357 
 1358 By default, \`make install' will install all the files in
 1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1361 for instance \`--prefix=\$HOME'.
 1362 
 1363 For better control, use the options below.
 1364 
 1365 Fine tuning of the installation directories:
 1366   --bindir=DIR            user executables [EPREFIX/bin]
 1367   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1368   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1369   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1370   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1371   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1372   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
 1373   --libdir=DIR            object code libraries [EPREFIX/lib]
 1374   --includedir=DIR        C header files [PREFIX/include]
 1375   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1376   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1377   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1378   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1379   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1380   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1381   --docdir=DIR            documentation root [DATAROOTDIR/doc/pcap]
 1382   --htmldir=DIR           html documentation [DOCDIR]
 1383   --dvidir=DIR            dvi documentation [DOCDIR]
 1384   --pdfdir=DIR            pdf documentation [DOCDIR]
 1385   --psdir=DIR             ps documentation [DOCDIR]
 1386 _ACEOF
 1387 
 1388   cat <<\_ACEOF
 1389 
 1390 System types:
 1391   --build=BUILD     configure for building on BUILD [guessed]
 1392   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1393   --target=TARGET   configure for building compilers for TARGET [HOST]
 1394 _ACEOF
 1395 fi
 1396 
 1397 if test -n "$ac_init_help"; then
 1398   case $ac_init_help in
 1399      short | recursive ) echo "Configuration of pcap 1.10.1:";;
 1400    esac
 1401   cat <<\_ACEOF
 1402 
 1403 Optional Features:
 1404   --disable-option-checking  ignore unrecognized --enable/--with options
 1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1407   --disable-largefile     omit support for large files
 1408   --disable-protochain    disable \"protochain\" insn
 1409   --enable-ipv6           build IPv6-capable version [default=yes]
 1410   --enable-remote         enable remote packet capture [default=no]
 1411   --disable-remote        disable remote packet capture
 1412   --enable-optimizer-dbg  build optimizer debugging code
 1413   --enable-yydebug        build parser debugging code
 1414   --disable-universal     don't build universal on macOS
 1415   --enable-shared         build shared libraries [default=yes, if support
 1416                           available]
 1417   --enable-usb            enable Linux usbmon USB capture support
 1418                           [default=yes, if support available]
 1419   --enable-netmap         enable netmap support [default=yes, if support
 1420                           available]
 1421   --enable-bluetooth      enable Bluetooth support [default=yes, if support
 1422                           available]
 1423   --enable-dbus           enable D-Bus capture support [default=yes, if
 1424                           support available]
 1425   --enable-rdma           enable RDMA capture support [default=yes, if support
 1426                           available]
 1427 
 1428 Optional Packages:
 1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1431   --without-gcc           don't use gcc
 1432   --with-pcap=TYPE        use packet capture TYPE
 1433   --without-libnl         disable libnl support [default=yes, on Linux, if
 1434                           present]
 1435   --with-dag[=DIR]        include Endace DAG support (located in directory
 1436                           DIR, if supplied). [default=yes, if present]
 1437   --with-dag-includes=IDIR
 1438                           Endace DAG include directory, if not DIR/include
 1439   --with-dag-libraries=LDIR
 1440                           Endace DAG library directory, if not DIR/lib
 1441   --with-septel[=DIR]     include Septel support (located in directory DIR, if
 1442                           supplied). [default=yes, if present]
 1443   --with-snf[=DIR]        include Myricom SNF support (located in directory
 1444                           DIR, if supplied). [default=yes, if present]
 1445   --with-snf-includes=IDIR
 1446                           Myricom SNF include directory, if not DIR/include
 1447   --with-snf-libraries=LDIR
 1448                           Myricom SNF library directory, if not DIR/lib
 1449   --with-turbocap[=DIR]   include Riverbed TurboCap support (located in
 1450                           directory DIR, if supplied). [default=yes, if
 1451                           present]
 1452   --with-dpdk[=DIR]       include DPDK support (located in directory DIR, if
 1453                           supplied). [default=yes, if present]
 1454 
 1455 Some influential environment variables:
 1456   CC          C compiler command
 1457   CFLAGS      C compiler flags
 1458   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1459               nonstandard directory <lib dir>
 1460   LIBS        libraries to pass to the linker, e.g. -l<library>
 1461   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1462               you have headers in a nonstandard directory <include dir>
 1463   CXX         C++ compiler command
 1464   CXXFLAGS    C++ compiler flags
 1465   CPP         C preprocessor
 1466 
 1467 Use these variables to override the choices made by `configure' or to help
 1468 it to find libraries and programs with nonstandard names/locations.
 1469 
 1470 Report bugs to the package provider.
 1471 _ACEOF
 1472 ac_status=$?
 1473 fi
 1474 
 1475 if test "$ac_init_help" = "recursive"; then
 1476   # If there are subdirs, report their specific --help.
 1477   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1478     test -d "$ac_dir" ||
 1479       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1480       continue
 1481     ac_builddir=.
 1482 
 1483 case "$ac_dir" in
 1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1485 *)
 1486   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1487   # A ".." for each directory in $ac_dir_suffix.
 1488   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1489   case $ac_top_builddir_sub in
 1490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1492   esac ;;
 1493 esac
 1494 ac_abs_top_builddir=$ac_pwd
 1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1496 # for backward compatibility:
 1497 ac_top_builddir=$ac_top_build_prefix
 1498 
 1499 case $srcdir in
 1500   .)  # We are building in place.
 1501     ac_srcdir=.
 1502     ac_top_srcdir=$ac_top_builddir_sub
 1503     ac_abs_top_srcdir=$ac_pwd ;;
 1504   [\\/]* | ?:[\\/]* )  # Absolute name.
 1505     ac_srcdir=$srcdir$ac_dir_suffix;
 1506     ac_top_srcdir=$srcdir
 1507     ac_abs_top_srcdir=$srcdir ;;
 1508   *) # Relative name.
 1509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1510     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1512 esac
 1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1514 
 1515     cd "$ac_dir" || { ac_status=$?; continue; }
 1516     # Check for guested configure.
 1517     if test -f "$ac_srcdir/configure.gnu"; then
 1518       echo &&
 1519       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1520     elif test -f "$ac_srcdir/configure"; then
 1521       echo &&
 1522       $SHELL "$ac_srcdir/configure" --help=recursive
 1523     else
 1524       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1525     fi || ac_status=$?
 1526     cd "$ac_pwd" || { ac_status=$?; break; }
 1527   done
 1528 fi
 1529 
 1530 test -n "$ac_init_help" && exit $ac_status
 1531 if $ac_init_version; then
 1532   cat <<\_ACEOF
 1533 pcap configure 1.10.1
 1534 generated by GNU Autoconf 2.69
 1535 
 1536 Copyright (C) 2012 Free Software Foundation, Inc.
 1537 This configure script is free software; the Free Software Foundation
 1538 gives unlimited permission to copy, distribute and modify it.
 1539 _ACEOF
 1540   exit
 1541 fi
 1542 
 1543 ## ------------------------ ##
 1544 ## Autoconf initialization. ##
 1545 ## ------------------------ ##
 1546 
 1547 # ac_fn_c_try_compile LINENO
 1548 # --------------------------
 1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1550 ac_fn_c_try_compile ()
 1551 {
 1552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1553   rm -f conftest.$ac_objext
 1554   if { { ac_try="$ac_compile"
 1555 case "(($ac_try" in
 1556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1557   *) ac_try_echo=$ac_try;;
 1558 esac
 1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1560 $as_echo "$ac_try_echo"; } >&5
 1561   (eval "$ac_compile") 2>conftest.err
 1562   ac_status=$?
 1563   if test -s conftest.err; then
 1564     grep -v '^ *+' conftest.err >conftest.er1
 1565     cat conftest.er1 >&5
 1566     mv -f conftest.er1 conftest.err
 1567   fi
 1568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1569   test $ac_status = 0; } && {
 1570      test -z "$ac_c_werror_flag" ||
 1571      test ! -s conftest.err
 1572        } && test -s conftest.$ac_objext; then :
 1573   ac_retval=0
 1574 else
 1575   $as_echo "$as_me: failed program was:" >&5
 1576 sed 's/^/| /' conftest.$ac_ext >&5
 1577 
 1578     ac_retval=1
 1579 fi
 1580   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1581   as_fn_set_status $ac_retval
 1582 
 1583 } # ac_fn_c_try_compile
 1584 
 1585 # ac_fn_cxx_try_compile LINENO
 1586 # ----------------------------
 1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1588 ac_fn_cxx_try_compile ()
 1589 {
 1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1591   rm -f conftest.$ac_objext
 1592   if { { ac_try="$ac_compile"
 1593 case "(($ac_try" in
 1594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1595   *) ac_try_echo=$ac_try;;
 1596 esac
 1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1598 $as_echo "$ac_try_echo"; } >&5
 1599   (eval "$ac_compile") 2>conftest.err
 1600   ac_status=$?
 1601   if test -s conftest.err; then
 1602     grep -v '^ *+' conftest.err >conftest.er1
 1603     cat conftest.er1 >&5
 1604     mv -f conftest.er1 conftest.err
 1605   fi
 1606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1607   test $ac_status = 0; } && {
 1608      test -z "$ac_cxx_werror_flag" ||
 1609      test ! -s conftest.err
 1610        } && test -s conftest.$ac_objext; then :
 1611   ac_retval=0
 1612 else
 1613   $as_echo "$as_me: failed program was:" >&5
 1614 sed 's/^/| /' conftest.$ac_ext >&5
 1615 
 1616     ac_retval=1
 1617 fi
 1618   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1619   as_fn_set_status $ac_retval
 1620 
 1621 } # ac_fn_cxx_try_compile
 1622 
 1623 # ac_fn_c_try_cpp LINENO
 1624 # ----------------------
 1625 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1626 ac_fn_c_try_cpp ()
 1627 {
 1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1629   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1630 case "(($ac_try" in
 1631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1632   *) ac_try_echo=$ac_try;;
 1633 esac
 1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1635 $as_echo "$ac_try_echo"; } >&5
 1636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1637   ac_status=$?
 1638   if test -s conftest.err; then
 1639     grep -v '^ *+' conftest.err >conftest.er1
 1640     cat conftest.er1 >&5
 1641     mv -f conftest.er1 conftest.err
 1642   fi
 1643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1644   test $ac_status = 0; } > conftest.i && {
 1645      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1646      test ! -s conftest.err
 1647        }; then :
 1648   ac_retval=0
 1649 else
 1650   $as_echo "$as_me: failed program was:" >&5
 1651 sed 's/^/| /' conftest.$ac_ext >&5
 1652 
 1653     ac_retval=1
 1654 fi
 1655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1656   as_fn_set_status $ac_retval
 1657 
 1658 } # ac_fn_c_try_cpp
 1659 
 1660 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 1661 # -------------------------------------------------------
 1662 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 1663 # the include files in INCLUDES and setting the cache variable VAR
 1664 # accordingly.
 1665 ac_fn_c_check_header_mongrel ()
 1666 {
 1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1668   if eval \${$3+:} false; then :
 1669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1670 $as_echo_n "checking for $2... " >&6; }
 1671 if eval \${$3+:} false; then :
 1672   $as_echo_n "(cached) " >&6
 1673 fi
 1674 eval ac_res=\$$3
 1675            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1676 $as_echo "$ac_res" >&6; }
 1677 else
 1678   # Is the header compilable?
 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 1680 $as_echo_n "checking $2 usability... " >&6; }
 1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1682 /* end confdefs.h.  */
 1683 $4
 1684 #include <$2>
 1685 _ACEOF
 1686 if ac_fn_c_try_compile "$LINENO"; then :
 1687   ac_header_compiler=yes
 1688 else
 1689   ac_header_compiler=no
 1690 fi
 1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 1693 $as_echo "$ac_header_compiler" >&6; }
 1694 
 1695 # Is the header present?
 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 1697 $as_echo_n "checking $2 presence... " >&6; }
 1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1699 /* end confdefs.h.  */
 1700 #include <$2>
 1701 _ACEOF
 1702 if ac_fn_c_try_cpp "$LINENO"; then :
 1703   ac_header_preproc=yes
 1704 else
 1705   ac_header_preproc=no
 1706 fi
 1707 rm -f conftest.err conftest.i conftest.$ac_ext
 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 1709 $as_echo "$ac_header_preproc" >&6; }
 1710 
 1711 # So?  What about this header?
 1712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 1713   yes:no: )
 1714     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 1715 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1717 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1718     ;;
 1719   no:yes:* )
 1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 1721 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 1723 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 1725 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 1727 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1729 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1730     ;;
 1731 esac
 1732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1733 $as_echo_n "checking for $2... " >&6; }
 1734 if eval \${$3+:} false; then :
 1735   $as_echo_n "(cached) " >&6
 1736 else
 1737   eval "$3=\$ac_header_compiler"
 1738 fi
 1739 eval ac_res=\$$3
 1740            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1741 $as_echo "$ac_res" >&6; }
 1742 fi
 1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1744 
 1745 } # ac_fn_c_check_header_mongrel
 1746 
 1747 # ac_fn_c_try_run LINENO
 1748 # ----------------------
 1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1750 # that executables *can* be run.
 1751 ac_fn_c_try_run ()
 1752 {
 1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1754   if { { ac_try="$ac_link"
 1755 case "(($ac_try" in
 1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1757   *) ac_try_echo=$ac_try;;
 1758 esac
 1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1760 $as_echo "$ac_try_echo"; } >&5
 1761   (eval "$ac_link") 2>&5
 1762   ac_status=$?
 1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1764   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1765   { { case "(($ac_try" in
 1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1767   *) ac_try_echo=$ac_try;;
 1768 esac
 1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1770 $as_echo "$ac_try_echo"; } >&5
 1771   (eval "$ac_try") 2>&5
 1772   ac_status=$?
 1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1774   test $ac_status = 0; }; }; then :
 1775   ac_retval=0
 1776 else
 1777   $as_echo "$as_me: program exited with status $ac_status" >&5
 1778        $as_echo "$as_me: failed program was:" >&5
 1779 sed 's/^/| /' conftest.$ac_ext >&5
 1780 
 1781        ac_retval=$ac_status
 1782 fi
 1783   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1784   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1785   as_fn_set_status $ac_retval
 1786 
 1787 } # ac_fn_c_try_run
 1788 
 1789 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1790 # -------------------------------------------------------
 1791 # Tests whether HEADER exists and can be compiled using the include files in
 1792 # INCLUDES, setting the cache variable VAR accordingly.
 1793 ac_fn_c_check_header_compile ()
 1794 {
 1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1797 $as_echo_n "checking for $2... " >&6; }
 1798 if eval \${$3+:} false; then :
 1799   $as_echo_n "(cached) " >&6
 1800 else
 1801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1802 /* end confdefs.h.  */
 1803 $4
 1804 #include <$2>
 1805 _ACEOF
 1806 if ac_fn_c_try_compile "$LINENO"; then :
 1807   eval "$3=yes"
 1808 else
 1809   eval "$3=no"
 1810 fi
 1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1812 fi
 1813 eval ac_res=\$$3
 1814            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1815 $as_echo "$ac_res" >&6; }
 1816   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1817 
 1818 } # ac_fn_c_check_header_compile
 1819 
 1820 # ac_fn_c_check_func LINENO FUNC VAR
 1821 # ----------------------------------
 1822 # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1823 ac_fn_c_check_func ()
 1824 {
 1825   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1827 $as_echo_n "checking for $2... " >&6; }
 1828 if eval \${$3+:} false; then :
 1829   $as_echo_n "(cached) " >&6
 1830 else
 1831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1832 /* end confdefs.h.  */
 1833 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1835 #define $2 innocuous_$2
 1836 
 1837 /* System header to define __stub macros and hopefully few prototypes,
 1838     which can conflict with char $2 (); below.
 1839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1840     <limits.h> exists even on freestanding compilers.  */
 1841 
 1842 #ifdef __STDC__
 1843 # include <limits.h>
 1844 #else
 1845 # include <assert.h>
 1846 #endif
 1847 
 1848 #undef $2
 1849 
 1850 /* Override any GCC internal prototype to avoid an error.
 1851    Use char because int might match the return type of a GCC
 1852    builtin and then its argument prototype would still apply.  */
 1853 #ifdef __cplusplus
 1854 extern "C"
 1855 #endif
 1856 char $2 ();
 1857 /* The GNU C library defines this for functions which it implements
 1858     to always fail with ENOSYS.  Some functions are actually named
 1859     something starting with __ and the normal name is an alias.  */
 1860 #if defined __stub_$2 || defined __stub___$2
 1861 choke me
 1862 #endif
 1863 
 1864 int
 1865 main ()
 1866 {
 1867 return $2 ();
 1868   ;
 1869   return 0;
 1870 }
 1871 _ACEOF
 1872 if ac_fn_c_try_link "$LINENO"; then :
 1873   eval "$3=yes"
 1874 else
 1875   eval "$3=no"
 1876 fi
 1877 rm -f core conftest.err conftest.$ac_objext \
 1878     conftest$ac_exeext conftest.$ac_ext
 1879 fi
 1880 eval ac_res=\$$3
 1881            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1882 $as_echo "$ac_res" >&6; }
 1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1884 
 1885 } # ac_fn_c_check_func
 1886 
 1887 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 1888 # ---------------------------------------------
 1889 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 1890 # accordingly.
 1891 ac_fn_c_check_decl ()
 1892 {
 1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1894   as_decl_name=`echo $2|sed 's/ *(.*//'`
 1895   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 1896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 1897 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 1898 if eval \${$3+:} false; then :
 1899   $as_echo_n "(cached) " >&6
 1900 else
 1901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1902 /* end confdefs.h.  */
 1903 $4
 1904 int
 1905 main ()
 1906 {
 1907 #ifndef $as_decl_name
 1908 #ifdef __cplusplus
 1909   (void) $as_decl_use;
 1910 #else
 1911   (void) $as_decl_name;
 1912 #endif
 1913 #endif
 1914 
 1915   ;
 1916   return 0;
 1917 }
 1918 _ACEOF
 1919 if ac_fn_c_try_compile "$LINENO"; then :
 1920   eval "$3=yes"
 1921 else
 1922   eval "$3=no"
 1923 fi
 1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1925 fi
 1926 eval ac_res=\$$3
 1927            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1928 $as_echo "$ac_res" >&6; }
 1929   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1930 
 1931 } # ac_fn_c_check_decl
 1932 
 1933 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 1934 # -------------------------------------------
 1935 # Tests whether TYPE exists after having included INCLUDES, setting cache
 1936 # variable VAR accordingly.
 1937 ac_fn_c_check_type ()
 1938 {
 1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1941 $as_echo_n "checking for $2... " >&6; }
 1942 if eval \${$3+:} false; then :
 1943   $as_echo_n "(cached) " >&6
 1944 else
 1945   eval "$3=no"
 1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1947 /* end confdefs.h.  */
 1948 $4
 1949 int
 1950 main ()
 1951 {
 1952 if (sizeof ($2))
 1953      return 0;
 1954   ;
 1955   return 0;
 1956 }
 1957 _ACEOF
 1958 if ac_fn_c_try_compile "$LINENO"; then :
 1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1960 /* end confdefs.h.  */
 1961 $4
 1962 int
 1963 main ()
 1964 {
 1965 if (sizeof (($2)))
 1966         return 0;
 1967   ;
 1968   return 0;
 1969 }
 1970 _ACEOF
 1971 if ac_fn_c_try_compile "$LINENO"; then :
 1972 
 1973 else
 1974   eval "$3=yes"
 1975 fi
 1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1977 fi
 1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1979 fi
 1980 eval ac_res=\$$3
 1981            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1982 $as_echo "$ac_res" >&6; }
 1983   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1984 
 1985 } # ac_fn_c_check_type
 1986 
 1987 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 1988 # ----------------------------------------------------
 1989 # Tries to find if the field MEMBER exists in type AGGR, after including
 1990 # INCLUDES, setting cache variable VAR accordingly.
 1991 ac_fn_c_check_member ()
 1992 {
 1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 1995 $as_echo_n "checking for $2.$3... " >&6; }
 1996 if eval \${$4+:} false; then :
 1997   $as_echo_n "(cached) " >&6
 1998 else
 1999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2000 /* end confdefs.h.  */
 2001 $5
 2002 int
 2003 main ()
 2004 {
 2005 static $2 ac_aggr;
 2006 if (ac_aggr.$3)
 2007 return 0;
 2008   ;
 2009   return 0;
 2010 }
 2011 _ACEOF
 2012 if ac_fn_c_try_compile "$LINENO"; then :
 2013   eval "$4=yes"
 2014 else
 2015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2016 /* end confdefs.h.  */
 2017 $5
 2018 int
 2019 main ()
 2020 {
 2021 static $2 ac_aggr;
 2022 if (sizeof ac_aggr.$3)
 2023 return 0;
 2024   ;
 2025   return 0;
 2026 }
 2027 _ACEOF
 2028 if ac_fn_c_try_compile "$LINENO"; then :
 2029   eval "$4=yes"
 2030 else
 2031   eval "$4=no"
 2032 fi
 2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2034 fi
 2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2036 fi
 2037 eval ac_res=\$$4
 2038            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2039 $as_echo "$ac_res" >&6; }
 2040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2041 
 2042 } # ac_fn_c_check_member
 2043 cat >config.log <<_ACEOF
 2044 This file contains any messages produced by compilers while
 2045 running configure, to aid debugging if configure makes a mistake.
 2046 
 2047 It was created by pcap $as_me 1.10.1, which was
 2048 generated by GNU Autoconf 2.69.  Invocation command line was
 2049 
 2050   $ $0 $@
 2051 
 2052 _ACEOF
 2053 exec 5>>config.log
 2054 {
 2055 cat <<_ASUNAME
 2056 ## --------- ##
 2057 ## Platform. ##
 2058 ## --------- ##
 2059 
 2060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 2061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
 2062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
 2063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
 2064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
 2065 
 2066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 2067 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 2068 
 2069 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 2070 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 2071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 2072 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 2073 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 2074 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 2075 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 2076 
 2077 _ASUNAME
 2078 
 2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2080 for as_dir in $PATH
 2081 do
 2082   IFS=$as_save_IFS
 2083   test -z "$as_dir" && as_dir=.
 2084     $as_echo "PATH: $as_dir"
 2085   done
 2086 IFS=$as_save_IFS
 2087 
 2088 } >&5
 2089 
 2090 cat >&5 <<_ACEOF
 2091 
 2092 
 2093 ## ----------- ##
 2094 ## Core tests. ##
 2095 ## ----------- ##
 2096 
 2097 _ACEOF
 2098 
 2099 
 2100 # Keep a trace of the command line.
 2101 # Strip out --no-create and --no-recursion so they do not pile up.
 2102 # Strip out --silent because we don't want to record it for future runs.
 2103 # Also quote any args containing shell meta-characters.
 2104 # Make two passes to allow for proper duplicate-argument suppression.
 2105 ac_configure_args=
 2106 ac_configure_args0=
 2107 ac_configure_args1=
 2108 ac_must_keep_next=false
 2109 for ac_pass in 1 2
 2110 do
 2111   for ac_arg
 2112   do
 2113     case $ac_arg in
 2114     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 2115     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 2116     | -silent | --silent | --silen | --sile | --sil)
 2117       continue ;;
 2118     *\'*)
 2119       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 2120     esac
 2121     case $ac_pass in
 2122     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 2123     2)
 2124       as_fn_append ac_configure_args1 " '$ac_arg'"
 2125       if test $ac_must_keep_next = true; then
 2126     ac_must_keep_next=false # Got value, back to normal.
 2127       else
 2128     case $ac_arg in
 2129       *=* | --config-cache | -C | -disable-* | --disable-* \
 2130       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 2131       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 2132       | -with-* | --with-* | -without-* | --without-* | --x)
 2133         case "$ac_configure_args0 " in
 2134           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 2135         esac
 2136         ;;
 2137       -* ) ac_must_keep_next=true ;;
 2138     esac
 2139       fi
 2140       as_fn_append ac_configure_args " '$ac_arg'"
 2141       ;;
 2142     esac
 2143   done
 2144 done
 2145 { ac_configure_args0=; unset ac_configure_args0;}
 2146 { ac_configure_args1=; unset ac_configure_args1;}
 2147 
 2148 # When interrupted or exit'd, cleanup temporary files, and complete
 2149 # config.log.  We remove comments because anyway the quotes in there
 2150 # would cause problems or look ugly.
 2151 # WARNING: Use '\'' to represent an apostrophe within the trap.
 2152 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 2153 trap 'exit_status=$?
 2154   # Save into config.log some information that might help in debugging.
 2155   {
 2156     echo
 2157 
 2158     $as_echo "## ---------------- ##
 2159 ## Cache variables. ##
 2160 ## ---------------- ##"
 2161     echo
 2162     # The following way of writing the cache mishandles newlines in values,
 2163 (
 2164   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 2165     eval ac_val=\$$ac_var
 2166     case $ac_val in #(
 2167     *${as_nl}*)
 2168       case $ac_var in #(
 2169       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2171       esac
 2172       case $ac_var in #(
 2173       _ | IFS | as_nl) ;; #(
 2174       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2175       *) { eval $ac_var=; unset $ac_var;} ;;
 2176       esac ;;
 2177     esac
 2178   done
 2179   (set) 2>&1 |
 2180     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2181     *${as_nl}ac_space=\ *)
 2182       sed -n \
 2183     "s/'\''/'\''\\\\'\'''\''/g;
 2184       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2185       ;; #(
 2186     *)
 2187       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2188       ;;
 2189     esac |
 2190     sort
 2191 )
 2192     echo
 2193 
 2194     $as_echo "## ----------------- ##
 2195 ## Output variables. ##
 2196 ## ----------------- ##"
 2197     echo
 2198     for ac_var in $ac_subst_vars
 2199     do
 2200       eval ac_val=\$$ac_var
 2201       case $ac_val in
 2202       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2203       esac
 2204       $as_echo "$ac_var='\''$ac_val'\''"
 2205     done | sort
 2206     echo
 2207 
 2208     if test -n "$ac_subst_files"; then
 2209       $as_echo "## ------------------- ##
 2210 ## File substitutions. ##
 2211 ## ------------------- ##"
 2212       echo
 2213       for ac_var in $ac_subst_files
 2214       do
 2215     eval ac_val=\$$ac_var
 2216     case $ac_val in
 2217     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2218     esac
 2219     $as_echo "$ac_var='\''$ac_val'\''"
 2220       done | sort
 2221       echo
 2222     fi
 2223 
 2224     if test -s confdefs.h; then
 2225       $as_echo "## ----------- ##
 2226 ## confdefs.h. ##
 2227 ## ----------- ##"
 2228       echo
 2229       cat confdefs.h
 2230       echo
 2231     fi
 2232     test "$ac_signal" != 0 &&
 2233       $as_echo "$as_me: caught signal $ac_signal"
 2234     $as_echo "$as_me: exit $exit_status"
 2235   } >&5
 2236   rm -f core *.core core.conftest.* &&
 2237     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2238     exit $exit_status
 2239 ' 0
 2240 for ac_signal in 1 2 13 15; do
 2241   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2242 done
 2243 ac_signal=0
 2244 
 2245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2246 rm -f -r conftest* confdefs.h
 2247 
 2248 $as_echo "/* confdefs.h */" > confdefs.h
 2249 
 2250 # Predefined preprocessor variables.
 2251 
 2252 cat >>confdefs.h <<_ACEOF
 2253 #define PACKAGE_NAME "$PACKAGE_NAME"
 2254 _ACEOF
 2255 
 2256 cat >>confdefs.h <<_ACEOF
 2257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2258 _ACEOF
 2259 
 2260 cat >>confdefs.h <<_ACEOF
 2261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2262 _ACEOF
 2263 
 2264 cat >>confdefs.h <<_ACEOF
 2265 #define PACKAGE_STRING "$PACKAGE_STRING"
 2266 _ACEOF
 2267 
 2268 cat >>confdefs.h <<_ACEOF
 2269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2270 _ACEOF
 2271 
 2272 cat >>confdefs.h <<_ACEOF
 2273 #define PACKAGE_URL "$PACKAGE_URL"
 2274 _ACEOF
 2275 
 2276 
 2277 # Let the site file select an alternate cache file if it wants to.
 2278 # Prefer an explicitly selected file to automatically selected ones.
 2279 ac_site_file1=NONE
 2280 ac_site_file2=NONE
 2281 if test -n "$CONFIG_SITE"; then
 2282   # We do not want a PATH search for config.site.
 2283   case $CONFIG_SITE in #((
 2284     -*)  ac_site_file1=./$CONFIG_SITE;;
 2285     */*) ac_site_file1=$CONFIG_SITE;;
 2286     *)   ac_site_file1=./$CONFIG_SITE;;
 2287   esac
 2288 elif test "x$prefix" != xNONE; then
 2289   ac_site_file1=$prefix/share/config.site
 2290   ac_site_file2=$prefix/etc/config.site
 2291 else
 2292   ac_site_file1=$ac_default_prefix/share/config.site
 2293   ac_site_file2=$ac_default_prefix/etc/config.site
 2294 fi
 2295 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2296 do
 2297   test "x$ac_site_file" = xNONE && continue
 2298   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2299     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2300 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2301     sed 's/^/| /' "$ac_site_file" >&5
 2302     . "$ac_site_file" \
 2303       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2305 as_fn_error $? "failed to load site script $ac_site_file
 2306 See \`config.log' for more details" "$LINENO" 5; }
 2307   fi
 2308 done
 2309 
 2310 if test -r "$cache_file"; then
 2311   # Some versions of bash will fail to source /dev/null (special files
 2312   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2313   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2314     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2315 $as_echo "$as_me: loading cache $cache_file" >&6;}
 2316     case $cache_file in
 2317       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2318       *)                      . "./$cache_file";;
 2319     esac
 2320   fi
 2321 else
 2322   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2323 $as_echo "$as_me: creating cache $cache_file" >&6;}
 2324   >$cache_file
 2325 fi
 2326 
 2327 # Check that the precious variables saved in the cache have kept the same
 2328 # value.
 2329 ac_cache_corrupted=false
 2330 for ac_var in $ac_precious_vars; do
 2331   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2332   eval ac_new_set=\$ac_env_${ac_var}_set
 2333   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2334   eval ac_new_val=\$ac_env_${ac_var}_value
 2335   case $ac_old_set,$ac_new_set in
 2336     set,)
 2337       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2338 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2339       ac_cache_corrupted=: ;;
 2340     ,set)
 2341       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2342 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2343       ac_cache_corrupted=: ;;
 2344     ,);;
 2345     *)
 2346       if test "x$ac_old_val" != "x$ac_new_val"; then
 2347     # differences in whitespace do not lead to failure.
 2348     ac_old_val_w=`echo x $ac_old_val`
 2349     ac_new_val_w=`echo x $ac_new_val`
 2350     if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2351       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2352 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2353       ac_cache_corrupted=:
 2354     else
 2355       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2356 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2357       eval $ac_var=\$ac_old_val
 2358     fi
 2359     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2360 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2361     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2362 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2363       fi;;
 2364   esac
 2365   # Pass precious variables to config.status.
 2366   if test "$ac_new_set" = set; then
 2367     case $ac_new_val in
 2368     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2369     *) ac_arg=$ac_var=$ac_new_val ;;
 2370     esac
 2371     case " $ac_configure_args " in
 2372       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2373       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2374     esac
 2375   fi
 2376 done
 2377 if $ac_cache_corrupted; then
 2378   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2380   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2381 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2382   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2383 fi
 2384 ## -------------------- ##
 2385 ## Main body of script. ##
 2386 ## -------------------- ##
 2387 
 2388 ac_ext=c
 2389 ac_cpp='$CPP $CPPFLAGS'
 2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2393 
 2394 
 2395 
 2396 
 2397 
 2398 ac_aux_dir=
 2399 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 2400   if test -f "$ac_dir/install-sh"; then
 2401     ac_aux_dir=$ac_dir
 2402     ac_install_sh="$ac_aux_dir/install-sh -c"
 2403     break
 2404   elif test -f "$ac_dir/install.sh"; then
 2405     ac_aux_dir=$ac_dir
 2406     ac_install_sh="$ac_aux_dir/install.sh -c"
 2407     break
 2408   elif test -f "$ac_dir/shtool"; then
 2409     ac_aux_dir=$ac_dir
 2410     ac_install_sh="$ac_aux_dir/shtool install -c"
 2411     break
 2412   fi
 2413 done
 2414 if test -z "$ac_aux_dir"; then
 2415   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 2416 fi
 2417 
 2418 # These three variables are undocumented and unsupported,
 2419 # and are intended to be withdrawn in a future Autoconf release.
 2420 # They can cause serious problems if a builder's source tree is in a directory
 2421 # whose full name contains unusual characters.
 2422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 2423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 2424 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 2425 
 2426 
 2427 # Make sure we can run config.sub.
 2428 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 2429   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 2430 
 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 2432 $as_echo_n "checking build system type... " >&6; }
 2433 if ${ac_cv_build+:} false; then :
 2434   $as_echo_n "(cached) " >&6
 2435 else
 2436   ac_build_alias=$build_alias
 2437 test "x$ac_build_alias" = x &&
 2438   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 2439 test "x$ac_build_alias" = x &&
 2440   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 2441 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 2442   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 2443 
 2444 fi
 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 2446 $as_echo "$ac_cv_build" >&6; }
 2447 case $ac_cv_build in
 2448 *-*-*) ;;
 2449 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 2450 esac
 2451 build=$ac_cv_build
 2452 ac_save_IFS=$IFS; IFS='-'
 2453 set x $ac_cv_build
 2454 shift
 2455 build_cpu=$1
 2456 build_vendor=$2
 2457 shift; shift
 2458 # Remember, the first character of IFS is used to create $*,
 2459 # except with old shells:
 2460 build_os=$*
 2461 IFS=$ac_save_IFS
 2462 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 2463 
 2464 
 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 2466 $as_echo_n "checking host system type... " >&6; }
 2467 if ${ac_cv_host+:} false; then :
 2468   $as_echo_n "(cached) " >&6
 2469 else
 2470   if test "x$host_alias" = x; then
 2471   ac_cv_host=$ac_cv_build
 2472 else
 2473   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 2474     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 2475 fi
 2476 
 2477 fi
 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 2479 $as_echo "$ac_cv_host" >&6; }
 2480 case $ac_cv_host in
 2481 *-*-*) ;;
 2482 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 2483 esac
 2484 host=$ac_cv_host
 2485 ac_save_IFS=$IFS; IFS='-'
 2486 set x $ac_cv_host
 2487 shift
 2488 host_cpu=$1
 2489 host_vendor=$2
 2490 shift; shift
 2491 # Remember, the first character of IFS is used to create $*,
 2492 # except with old shells:
 2493 host_os=$*
 2494 IFS=$ac_save_IFS
 2495 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 2496 
 2497 
 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 2499 $as_echo_n "checking target system type... " >&6; }
 2500 if ${ac_cv_target+:} false; then :
 2501   $as_echo_n "(cached) " >&6
 2502 else
 2503   if test "x$target_alias" = x; then
 2504   ac_cv_target=$ac_cv_host
 2505 else
 2506   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 2507     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 2508 fi
 2509 
 2510 fi
 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 2512 $as_echo "$ac_cv_target" >&6; }
 2513 case $ac_cv_target in
 2514 *-*-*) ;;
 2515 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
 2516 esac
 2517 target=$ac_cv_target
 2518 ac_save_IFS=$IFS; IFS='-'
 2519 set x $ac_cv_target
 2520 shift
 2521 target_cpu=$1
 2522 target_vendor=$2
 2523 shift; shift
 2524 # Remember, the first character of IFS is used to create $*,
 2525 # except with old shells:
 2526 target_os=$*
 2527 IFS=$ac_save_IFS
 2528 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 2529 
 2530 
 2531 # The aliases save the names the user supplied, while $host etc.
 2532 # will get canonicalized.
 2533 test -n "$target_alias" &&
 2534   test "$program_prefix$program_suffix$program_transform_name" = \
 2535     NONENONEs,x,x, &&
 2536   program_prefix=${target_alias}-
 2537 
 2538 
 2539 
 2540 
 2541 
 2542 
 2543 
 2544 
 2545 # Check whether --with-gcc was given.
 2546 if test "${with_gcc+set}" = set; then :
 2547   withval=$with_gcc;
 2548 fi
 2549 
 2550     V_CCOPT=""
 2551     if test "${srcdir}" != "." ; then
 2552         V_CCOPT="-I\$(srcdir)"
 2553     fi
 2554     if test "${CFLAGS+set}" = set; then
 2555         LBL_CFLAGS="$CFLAGS"
 2556     fi
 2557     if test -z "$CC" ; then
 2558         case "$host_os" in
 2559 
 2560         bsdi*)
 2561             # Extract the first word of "shlicc2", so it can be a program name with args.
 2562 set dummy shlicc2; ac_word=$2
 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2564 $as_echo_n "checking for $ac_word... " >&6; }
 2565 if ${ac_cv_prog_SHLICC2+:} false; then :
 2566   $as_echo_n "(cached) " >&6
 2567 else
 2568   if test -n "$SHLICC2"; then
 2569   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
 2570 else
 2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2572 for as_dir in $PATH
 2573 do
 2574   IFS=$as_save_IFS
 2575   test -z "$as_dir" && as_dir=.
 2576     for ac_exec_ext in '' $ac_executable_extensions; do
 2577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2578     ac_cv_prog_SHLICC2="yes"
 2579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2580     break 2
 2581   fi
 2582 done
 2583   done
 2584 IFS=$as_save_IFS
 2585 
 2586   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
 2587 fi
 2588 fi
 2589 SHLICC2=$ac_cv_prog_SHLICC2
 2590 if test -n "$SHLICC2"; then
 2591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
 2592 $as_echo "$SHLICC2" >&6; }
 2593 else
 2594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2595 $as_echo "no" >&6; }
 2596 fi
 2597 
 2598 
 2599             if test $SHLICC2 = yes ; then
 2600                 CC=shlicc2
 2601                 export CC
 2602             fi
 2603             ;;
 2604         esac
 2605     fi
 2606     if test -z "$CC" -a "$with_gcc" = no ; then
 2607         CC=cc
 2608         export CC
 2609     fi
 2610 
 2611 #
 2612 # We require C99 or later.
 2613 # Try to get it, which may involve adding compiler flags;
 2614 # if that fails, give up.
 2615 #
 2616 ac_ext=c
 2617 ac_cpp='$CPP $CPPFLAGS'
 2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2621 if test -n "$ac_tool_prefix"; then
 2622   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 2623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2625 $as_echo_n "checking for $ac_word... " >&6; }
 2626 if ${ac_cv_prog_CC+:} false; then :
 2627   $as_echo_n "(cached) " >&6
 2628 else
 2629   if test -n "$CC"; then
 2630   ac_cv_prog_CC="$CC" # Let the user override the test.
 2631 else
 2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2633 for as_dir in $PATH
 2634 do
 2635   IFS=$as_save_IFS
 2636   test -z "$as_dir" && as_dir=.
 2637     for ac_exec_ext in '' $ac_executable_extensions; do
 2638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2639     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 2640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2641     break 2
 2642   fi
 2643 done
 2644   done
 2645 IFS=$as_save_IFS
 2646 
 2647 fi
 2648 fi
 2649 CC=$ac_cv_prog_CC
 2650 if test -n "$CC"; then
 2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2652 $as_echo "$CC" >&6; }
 2653 else
 2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2655 $as_echo "no" >&6; }
 2656 fi
 2657 
 2658 
 2659 fi
 2660 if test -z "$ac_cv_prog_CC"; then
 2661   ac_ct_CC=$CC
 2662   # Extract the first word of "gcc", so it can be a program name with args.
 2663 set dummy gcc; ac_word=$2
 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2665 $as_echo_n "checking for $ac_word... " >&6; }
 2666 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2667   $as_echo_n "(cached) " >&6
 2668 else
 2669   if test -n "$ac_ct_CC"; then
 2670   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2671 else
 2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2673 for as_dir in $PATH
 2674 do
 2675   IFS=$as_save_IFS
 2676   test -z "$as_dir" && as_dir=.
 2677     for ac_exec_ext in '' $ac_executable_extensions; do
 2678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2679     ac_cv_prog_ac_ct_CC="gcc"
 2680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2681     break 2
 2682   fi
 2683 done
 2684   done
 2685 IFS=$as_save_IFS
 2686 
 2687 fi
 2688 fi
 2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2690 if test -n "$ac_ct_CC"; then
 2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2692 $as_echo "$ac_ct_CC" >&6; }
 2693 else
 2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2695 $as_echo "no" >&6; }
 2696 fi
 2697 
 2698   if test "x$ac_ct_CC" = x; then
 2699     CC=""
 2700   else
 2701     case $cross_compiling:$ac_tool_warned in
 2702 yes:)
 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2705 ac_tool_warned=yes ;;
 2706 esac
 2707     CC=$ac_ct_CC
 2708   fi
 2709 else
 2710   CC="$ac_cv_prog_CC"
 2711 fi
 2712 
 2713 if test -z "$CC"; then
 2714           if test -n "$ac_tool_prefix"; then
 2715     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2716 set dummy ${ac_tool_prefix}cc; ac_word=$2
 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2718 $as_echo_n "checking for $ac_word... " >&6; }
 2719 if ${ac_cv_prog_CC+:} false; then :
 2720   $as_echo_n "(cached) " >&6
 2721 else
 2722   if test -n "$CC"; then
 2723   ac_cv_prog_CC="$CC" # Let the user override the test.
 2724 else
 2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2726 for as_dir in $PATH
 2727 do
 2728   IFS=$as_save_IFS
 2729   test -z "$as_dir" && as_dir=.
 2730     for ac_exec_ext in '' $ac_executable_extensions; do
 2731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2732     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2734     break 2
 2735   fi
 2736 done
 2737   done
 2738 IFS=$as_save_IFS
 2739 
 2740 fi
 2741 fi
 2742 CC=$ac_cv_prog_CC
 2743 if test -n "$CC"; then
 2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2745 $as_echo "$CC" >&6; }
 2746 else
 2747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2748 $as_echo "no" >&6; }
 2749 fi
 2750 
 2751 
 2752   fi
 2753 fi
 2754 if test -z "$CC"; then
 2755   # Extract the first word of "cc", so it can be a program name with args.
 2756 set dummy cc; ac_word=$2
 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2758 $as_echo_n "checking for $ac_word... " >&6; }
 2759 if ${ac_cv_prog_CC+:} false; then :
 2760   $as_echo_n "(cached) " >&6
 2761 else
 2762   if test -n "$CC"; then
 2763   ac_cv_prog_CC="$CC" # Let the user override the test.
 2764 else
 2765   ac_prog_rejected=no
 2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2767 for as_dir in $PATH
 2768 do
 2769   IFS=$as_save_IFS
 2770   test -z "$as_dir" && as_dir=.
 2771     for ac_exec_ext in '' $ac_executable_extensions; do
 2772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2773     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2774        ac_prog_rejected=yes
 2775        continue
 2776      fi
 2777     ac_cv_prog_CC="cc"
 2778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2779     break 2
 2780   fi
 2781 done
 2782   done
 2783 IFS=$as_save_IFS
 2784 
 2785 if test $ac_prog_rejected = yes; then
 2786   # We found a bogon in the path, so make sure we never use it.
 2787   set dummy $ac_cv_prog_CC
 2788   shift
 2789   if test $# != 0; then
 2790     # We chose a different compiler from the bogus one.
 2791     # However, it has the same basename, so the bogon will be chosen
 2792     # first if we set CC to just the basename; use the full file name.
 2793     shift
 2794     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2795   fi
 2796 fi
 2797 fi
 2798 fi
 2799 CC=$ac_cv_prog_CC
 2800 if test -n "$CC"; then
 2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2802 $as_echo "$CC" >&6; }
 2803 else
 2804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2805 $as_echo "no" >&6; }
 2806 fi
 2807 
 2808 
 2809 fi
 2810 if test -z "$CC"; then
 2811   if test -n "$ac_tool_prefix"; then
 2812   for ac_prog in cl.exe
 2813   do
 2814     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2817 $as_echo_n "checking for $ac_word... " >&6; }
 2818 if ${ac_cv_prog_CC+:} false; then :
 2819   $as_echo_n "(cached) " >&6
 2820 else
 2821   if test -n "$CC"; then
 2822   ac_cv_prog_CC="$CC" # Let the user override the test.
 2823 else
 2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2825 for as_dir in $PATH
 2826 do
 2827   IFS=$as_save_IFS
 2828   test -z "$as_dir" && as_dir=.
 2829     for ac_exec_ext in '' $ac_executable_extensions; do
 2830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2831     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2833     break 2
 2834   fi
 2835 done
 2836   done
 2837 IFS=$as_save_IFS
 2838 
 2839 fi
 2840 fi
 2841 CC=$ac_cv_prog_CC
 2842 if test -n "$CC"; then
 2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2844 $as_echo "$CC" >&6; }
 2845 else
 2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2847 $as_echo "no" >&6; }
 2848 fi
 2849 
 2850 
 2851     test -n "$CC" && break
 2852   done
 2853 fi
 2854 if test -z "$CC"; then
 2855   ac_ct_CC=$CC
 2856   for ac_prog in cl.exe
 2857 do
 2858   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2859 set dummy $ac_prog; ac_word=$2
 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2861 $as_echo_n "checking for $ac_word... " >&6; }
 2862 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2863   $as_echo_n "(cached) " >&6
 2864 else
 2865   if test -n "$ac_ct_CC"; then
 2866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2867 else
 2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2869 for as_dir in $PATH
 2870 do
 2871   IFS=$as_save_IFS
 2872   test -z "$as_dir" && as_dir=.
 2873     for ac_exec_ext in '' $ac_executable_extensions; do
 2874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2875     ac_cv_prog_ac_ct_CC="$ac_prog"
 2876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2877     break 2
 2878   fi
 2879 done
 2880   done
 2881 IFS=$as_save_IFS
 2882 
 2883 fi
 2884 fi
 2885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2886 if test -n "$ac_ct_CC"; then
 2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2888 $as_echo "$ac_ct_CC" >&6; }
 2889 else
 2890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2891 $as_echo "no" >&6; }
 2892 fi
 2893 
 2894 
 2895   test -n "$ac_ct_CC" && break
 2896 done
 2897 
 2898   if test "x$ac_ct_CC" = x; then
 2899     CC=""
 2900   else
 2901     case $cross_compiling:$ac_tool_warned in
 2902 yes:)
 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2905 ac_tool_warned=yes ;;
 2906 esac
 2907     CC=$ac_ct_CC
 2908   fi
 2909 fi
 2910 
 2911 fi
 2912 
 2913 
 2914 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2916 as_fn_error $? "no acceptable C compiler found in \$PATH
 2917 See \`config.log' for more details" "$LINENO" 5; }
 2918 
 2919 # Provide some information about the compiler.
 2920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 2921 set X $ac_compile
 2922 ac_compiler=$2
 2923 for ac_option in --version -v -V -qversion; do
 2924   { { ac_try="$ac_compiler $ac_option >&5"
 2925 case "(($ac_try" in
 2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2927   *) ac_try_echo=$ac_try;;
 2928 esac
 2929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2930 $as_echo "$ac_try_echo"; } >&5
 2931   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 2932   ac_status=$?
 2933   if test -s conftest.err; then
 2934     sed '10a\
 2935 ... rest of stderr output deleted ...
 2936          10q' conftest.err >conftest.er1
 2937     cat conftest.er1 >&5
 2938   fi
 2939   rm -f conftest.er1 conftest.err
 2940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2941   test $ac_status = 0; }
 2942 done
 2943 
 2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2945 /* end confdefs.h.  */
 2946 
 2947 int
 2948 main ()
 2949 {
 2950 
 2951   ;
 2952   return 0;
 2953 }
 2954 _ACEOF
 2955 ac_clean_files_save=$ac_clean_files
 2956 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 2957 # Try to create an executable without -o first, disregard a.out.
 2958 # It will help us diagnose broken compilers, and finding out an intuition
 2959 # of exeext.
 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 2961 $as_echo_n "checking whether the C compiler works... " >&6; }
 2962 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2963 
 2964 # The possible output files:
 2965 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 2966 
 2967 ac_rmfiles=
 2968 for ac_file in $ac_files
 2969 do
 2970   case $ac_file in
 2971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2972     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 2973   esac
 2974 done
 2975 rm -f $ac_rmfiles
 2976 
 2977 if { { ac_try="$ac_link_default"
 2978 case "(($ac_try" in
 2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2980   *) ac_try_echo=$ac_try;;
 2981 esac
 2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2983 $as_echo "$ac_try_echo"; } >&5
 2984   (eval "$ac_link_default") 2>&5
 2985   ac_status=$?
 2986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2987   test $ac_status = 0; }; then :
 2988   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 2989 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 2990 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 2991 # so that the user can short-circuit this test for compilers unknown to
 2992 # Autoconf.
 2993 for ac_file in $ac_files ''
 2994 do
 2995   test -f "$ac_file" || continue
 2996   case $ac_file in
 2997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 2998     ;;
 2999     [ab].out )
 3000     # We found the default executable, but exeext='' is most
 3001     # certainly right.
 3002     break;;
 3003     *.* )
 3004     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 3005     then :; else
 3006        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3007     fi
 3008     # We set ac_cv_exeext here because the later test for it is not
 3009     # safe: cross compilers may not add the suffix if given an `-o'
 3010     # argument, so we may need to know it at that point already.
 3011     # Even if this section looks crufty: it has the advantage of
 3012     # actually working.
 3013     break;;
 3014     * )
 3015     break;;
 3016   esac
 3017 done
 3018 test "$ac_cv_exeext" = no && ac_cv_exeext=
 3019 
 3020 else
 3021   ac_file=''
 3022 fi
 3023 if test -z "$ac_file"; then :
 3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3025 $as_echo "no" >&6; }
 3026 $as_echo "$as_me: failed program was:" >&5
 3027 sed 's/^/| /' conftest.$ac_ext >&5
 3028 
 3029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3031 as_fn_error 77 "C compiler cannot create executables
 3032 See \`config.log' for more details" "$LINENO" 5; }
 3033 else
 3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3035 $as_echo "yes" >&6; }
 3036 fi
 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 3038 $as_echo_n "checking for C compiler default output file name... " >&6; }
 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 3040 $as_echo "$ac_file" >&6; }
 3041 ac_exeext=$ac_cv_exeext
 3042 
 3043 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 3044 ac_clean_files=$ac_clean_files_save
 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 3046 $as_echo_n "checking for suffix of executables... " >&6; }
 3047 if { { ac_try="$ac_link"
 3048 case "(($ac_try" in
 3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3050   *) ac_try_echo=$ac_try;;
 3051 esac
 3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3053 $as_echo "$ac_try_echo"; } >&5
 3054   (eval "$ac_link") 2>&5
 3055   ac_status=$?
 3056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3057   test $ac_status = 0; }; then :
 3058   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 3059 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 3060 # work properly (i.e., refer to `conftest.exe'), while it won't with
 3061 # `rm'.
 3062 for ac_file in conftest.exe conftest conftest.*; do
 3063   test -f "$ac_file" || continue
 3064   case $ac_file in
 3065     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3066     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3067       break;;
 3068     * ) break;;
 3069   esac
 3070 done
 3071 else
 3072   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3074 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 3075 See \`config.log' for more details" "$LINENO" 5; }
 3076 fi
 3077 rm -f conftest conftest$ac_cv_exeext
 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 3079 $as_echo "$ac_cv_exeext" >&6; }
 3080 
 3081 rm -f conftest.$ac_ext
 3082 EXEEXT=$ac_cv_exeext
 3083 ac_exeext=$EXEEXT
 3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3085 /* end confdefs.h.  */
 3086 #include <stdio.h>
 3087 int
 3088 main ()
 3089 {
 3090 FILE *f = fopen ("conftest.out", "w");
 3091  return ferror (f) || fclose (f) != 0;
 3092 
 3093   ;
 3094   return 0;
 3095 }
 3096 _ACEOF
 3097 ac_clean_files="$ac_clean_files conftest.out"
 3098 # Check that the compiler produces executables we can run.  If not, either
 3099 # the compiler is broken, or we cross compile.
 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 3101 $as_echo_n "checking whether we are cross compiling... " >&6; }
 3102 if test "$cross_compiling" != yes; then
 3103   { { ac_try="$ac_link"
 3104 case "(($ac_try" in
 3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3106   *) ac_try_echo=$ac_try;;
 3107 esac
 3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3109 $as_echo "$ac_try_echo"; } >&5
 3110   (eval "$ac_link") 2>&5
 3111   ac_status=$?
 3112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3113   test $ac_status = 0; }
 3114   if { ac_try='./conftest$ac_cv_exeext'
 3115   { { case "(($ac_try" in
 3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3117   *) ac_try_echo=$ac_try;;
 3118 esac
 3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3120 $as_echo "$ac_try_echo"; } >&5
 3121   (eval "$ac_try") 2>&5
 3122   ac_status=$?
 3123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3124   test $ac_status = 0; }; }; then
 3125     cross_compiling=no
 3126   else
 3127     if test "$cross_compiling" = maybe; then
 3128     cross_compiling=yes
 3129     else
 3130     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3132 as_fn_error $? "cannot run C compiled programs.
 3133 If you meant to cross compile, use \`--host'.
 3134 See \`config.log' for more details" "$LINENO" 5; }
 3135     fi
 3136   fi
 3137 fi
 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 3139 $as_echo "$cross_compiling" >&6; }
 3140 
 3141 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 3142 ac_clean_files=$ac_clean_files_save
 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 3144 $as_echo_n "checking for suffix of object files... " >&6; }
 3145 if ${ac_cv_objext+:} false; then :
 3146   $as_echo_n "(cached) " >&6
 3147 else
 3148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3149 /* end confdefs.h.  */
 3150 
 3151 int
 3152 main ()
 3153 {
 3154 
 3155   ;
 3156   return 0;
 3157 }
 3158 _ACEOF
 3159 rm -f conftest.o conftest.obj
 3160 if { { ac_try="$ac_compile"
 3161 case "(($ac_try" in
 3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3163   *) ac_try_echo=$ac_try;;
 3164 esac
 3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3166 $as_echo "$ac_try_echo"; } >&5
 3167   (eval "$ac_compile") 2>&5
 3168   ac_status=$?
 3169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3170   test $ac_status = 0; }; then :
 3171   for ac_file in conftest.o conftest.obj conftest.*; do
 3172   test -f "$ac_file" || continue;
 3173   case $ac_file in
 3174     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 3175     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 3176        break;;
 3177   esac
 3178 done
 3179 else
 3180   $as_echo "$as_me: failed program was:" >&5
 3181 sed 's/^/| /' conftest.$ac_ext >&5
 3182 
 3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3185 as_fn_error $? "cannot compute suffix of object files: cannot compile
 3186 See \`config.log' for more details" "$LINENO" 5; }
 3187 fi
 3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 3189 fi
 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 3191 $as_echo "$ac_cv_objext" >&6; }
 3192 OBJEXT=$ac_cv_objext
 3193 ac_objext=$OBJEXT
 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3195 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3196 if ${ac_cv_c_compiler_gnu+:} false; then :
 3197   $as_echo_n "(cached) " >&6
 3198 else
 3199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3200 /* end confdefs.h.  */
 3201 
 3202 int
 3203 main ()
 3204 {
 3205 #ifndef __GNUC__
 3206        choke me
 3207 #endif
 3208 
 3209   ;
 3210   return 0;
 3211 }
 3212 _ACEOF
 3213 if ac_fn_c_try_compile "$LINENO"; then :
 3214   ac_compiler_gnu=yes
 3215 else
 3216   ac_compiler_gnu=no
 3217 fi
 3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3220 
 3221 fi
 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3223 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3224 if test $ac_compiler_gnu = yes; then
 3225   GCC=yes
 3226 else
 3227   GCC=
 3228 fi
 3229 ac_test_CFLAGS=${CFLAGS+set}
 3230 ac_save_CFLAGS=$CFLAGS
 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3232 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3233 if ${ac_cv_prog_cc_g+:} false; then :
 3234   $as_echo_n "(cached) " >&6
 3235 else
 3236   ac_save_c_werror_flag=$ac_c_werror_flag
 3237    ac_c_werror_flag=yes
 3238    ac_cv_prog_cc_g=no
 3239    CFLAGS="-g"
 3240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3241 /* end confdefs.h.  */
 3242 
 3243 int
 3244 main ()
 3245 {
 3246 
 3247   ;
 3248   return 0;
 3249 }
 3250 _ACEOF
 3251 if ac_fn_c_try_compile "$LINENO"; then :
 3252   ac_cv_prog_cc_g=yes
 3253 else
 3254   CFLAGS=""
 3255       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3256 /* end confdefs.h.  */
 3257 
 3258 int
 3259 main ()
 3260 {
 3261 
 3262   ;
 3263   return 0;
 3264 }
 3265 _ACEOF
 3266 if ac_fn_c_try_compile "$LINENO"; then :
 3267 
 3268 else
 3269   ac_c_werror_flag=$ac_save_c_werror_flag
 3270      CFLAGS="-g"
 3271      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3272 /* end confdefs.h.  */
 3273 
 3274 int
 3275 main ()
 3276 {
 3277 
 3278   ;
 3279   return 0;
 3280 }
 3281 _ACEOF
 3282 if ac_fn_c_try_compile "$LINENO"; then :
 3283   ac_cv_prog_cc_g=yes
 3284 fi
 3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3286 fi
 3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3288 fi
 3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3290    ac_c_werror_flag=$ac_save_c_werror_flag
 3291 fi
 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3293 $as_echo "$ac_cv_prog_cc_g" >&6; }
 3294 if test "$ac_test_CFLAGS" = set; then
 3295   CFLAGS=$ac_save_CFLAGS
 3296 elif test $ac_cv_prog_cc_g = yes; then
 3297   if test "$GCC" = yes; then
 3298     CFLAGS="-g -O2"
 3299   else
 3300     CFLAGS="-g"
 3301   fi
 3302 else
 3303   if test "$GCC" = yes; then
 3304     CFLAGS="-O2"
 3305   else
 3306     CFLAGS=
 3307   fi
 3308 fi
 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3310 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3311 if ${ac_cv_prog_cc_c89+:} false; then :
 3312   $as_echo_n "(cached) " >&6
 3313 else
 3314   ac_cv_prog_cc_c89=no
 3315 ac_save_CC=$CC
 3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3317 /* end confdefs.h.  */
 3318 #include <stdarg.h>
 3319 #include <stdio.h>
 3320 struct stat;
 3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3322 struct buf { int x; };
 3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3324 static char *e (p, i)
 3325      char **p;
 3326      int i;
 3327 {
 3328   return p[i];
 3329 }
 3330 static char *f (char * (*g) (char **, int), char **p, ...)
 3331 {
 3332   char *s;
 3333   va_list v;
 3334   va_start (v,p);
 3335   s = g (p, va_arg (v,int));
 3336   va_end (v);
 3337   return s;
 3338 }
 3339 
 3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3341    function prototypes and stuff, but not '\xHH' hex character constants.
 3342    These don't provoke an error unfortunately, instead are silently treated
 3343    as 'x'.  The following induces an error, until -std is added to get
 3344    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3345    array size at least.  It's necessary to write '\x00'==0 to get something
 3346    that's true only with -std.  */
 3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3348 
 3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3350    inside strings and character constants.  */
 3351 #define FOO(x) 'x'
 3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3353 
 3354 int test (int i, double x);
 3355 struct s1 {int (*f) (int a);};
 3356 struct s2 {int (*f) (double a);};
 3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3358 int argc;
 3359 char **argv;
 3360 int
 3361 main ()
 3362 {
 3363 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3364   ;
 3365   return 0;
 3366 }
 3367 _ACEOF
 3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 3369     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 3370 do
 3371   CC="$ac_save_CC $ac_arg"
 3372   if ac_fn_c_try_compile "$LINENO"; then :
 3373   ac_cv_prog_cc_c89=$ac_arg
 3374 fi
 3375 rm -f core conftest.err conftest.$ac_objext
 3376   test "x$ac_cv_prog_cc_c89" != "xno" && break
 3377 done
 3378 rm -f conftest.$ac_ext
 3379 CC=$ac_save_CC
 3380 
 3381 fi
 3382 # AC_CACHE_VAL
 3383 case "x$ac_cv_prog_cc_c89" in
 3384   x)
 3385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3386 $as_echo "none needed" >&6; } ;;
 3387   xno)
 3388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3389 $as_echo "unsupported" >&6; } ;;
 3390   *)
 3391     CC="$CC $ac_cv_prog_cc_c89"
 3392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 3393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 3394 esac
 3395 if test "x$ac_cv_prog_cc_c89" != xno; then :
 3396 
 3397 fi
 3398 
 3399 ac_ext=c
 3400 ac_cpp='$CPP $CPPFLAGS'
 3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3404 
 3405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
 3406 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 3407 if ${ac_cv_prog_cc_c99+:} false; then :
 3408   $as_echo_n "(cached) " >&6
 3409 else
 3410   ac_cv_prog_cc_c99=no
 3411 ac_save_CC=$CC
 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3413 /* end confdefs.h.  */
 3414 #include <stdarg.h>
 3415 #include <stdbool.h>
 3416 #include <stdlib.h>
 3417 #include <wchar.h>
 3418 #include <stdio.h>
 3419 
 3420 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
 3421 #define debug(...) fprintf (stderr, __VA_ARGS__)
 3422 #define showlist(...) puts (#__VA_ARGS__)
 3423 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 3424 static void
 3425 test_varargs_macros (void)
 3426 {
 3427   int x = 1234;
 3428   int y = 5678;
 3429   debug ("Flag");
 3430   debug ("X = %d\n", x);
 3431   showlist (The first, second, and third items.);
 3432   report (x>y, "x is %d but y is %d", x, y);
 3433 }
 3434 
 3435 // Check long long types.
 3436 #define BIG64 18446744073709551615ull
 3437 #define BIG32 4294967295ul
 3438 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 3439 #if !BIG_OK
 3440   your preprocessor is broken;
 3441 #endif
 3442 #if BIG_OK
 3443 #else
 3444   your preprocessor is broken;
 3445 #endif
 3446 static long long int bignum = -9223372036854775807LL;
 3447 static unsigned long long int ubignum = BIG64;
 3448 
 3449 struct incomplete_array
 3450 {
 3451   int datasize;
 3452   double data[];
 3453 };
 3454 
 3455 struct named_init {
 3456   int number;
 3457   const wchar_t *name;
 3458   double average;
 3459 };
 3460 
 3461 typedef const char *ccp;
 3462 
 3463 static inline int
 3464 test_restrict (ccp restrict text)
 3465 {
 3466   // See if C++-style comments work.
 3467   // Iterate through items via the restricted pointer.
 3468   // Also check for declarations in for loops.
 3469   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 3470     continue;
 3471   return 0;
 3472 }
 3473 
 3474 // Check varargs and va_copy.
 3475 static void
 3476 test_varargs (const char *format, ...)
 3477 {
 3478   va_list args;
 3479   va_start (args, format);
 3480   va_list args_copy;
 3481   va_copy (args_copy, args);
 3482 
 3483   const char *str;
 3484   int number;
 3485   float fnumber;
 3486 
 3487   while (*format)
 3488     {
 3489       switch (*format++)
 3490     {
 3491     case 's': // string
 3492       str = va_arg (args_copy, const char *);
 3493       break;
 3494     case 'd': // int
 3495       number = va_arg (args_copy, int);
 3496       break;
 3497     case 'f': // float
 3498       fnumber = va_arg (args_copy, double);
 3499       break;
 3500     default:
 3501       break;
 3502     }
 3503     }
 3504   va_end (args_copy);
 3505   va_end (args);
 3506 }
 3507 
 3508 int
 3509 main ()
 3510 {
 3511 
 3512   // Check bool.
 3513   _Bool success = false;
 3514 
 3515   // Check restrict.
 3516   if (test_restrict ("String literal") == 0)
 3517     success = true;
 3518   char *restrict newvar = "Another string";
 3519 
 3520   // Check varargs.
 3521   test_varargs ("s, d' f .", "string", 65, 34.234);
 3522   test_varargs_macros ();
 3523 
 3524   // Check flexible array members.
 3525   struct incomplete_array *ia =
 3526     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 3527   ia->datasize = 10;
 3528   for (int i = 0; i < ia->datasize; ++i)
 3529     ia->data[i] = i * 1.234;
 3530 
 3531   // Check named initializers.
 3532   struct named_init ni = {
 3533     .number = 34,
 3534     .name = L"Test wide string",
 3535     .average = 543.34343,
 3536   };
 3537 
 3538   ni.number = 58;
 3539 
 3540   int dynamic_array[ni.number];
 3541   dynamic_array[ni.number - 1] = 543;
 3542 
 3543   // work around unused variable warnings
 3544   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 3545       || dynamic_array[ni.number - 1] != 543);
 3546 
 3547   ;
 3548   return 0;
 3549 }
 3550 _ACEOF
 3551 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
 3552 do
 3553   CC="$ac_save_CC $ac_arg"
 3554   if ac_fn_c_try_compile "$LINENO"; then :
 3555   ac_cv_prog_cc_c99=$ac_arg
 3556 fi
 3557 rm -f core conftest.err conftest.$ac_objext
 3558   test "x$ac_cv_prog_cc_c99" != "xno" && break
 3559 done
 3560 rm -f conftest.$ac_ext
 3561 CC=$ac_save_CC
 3562 
 3563 fi
 3564 # AC_CACHE_VAL
 3565 case "x$ac_cv_prog_cc_c99" in
 3566   x)
 3567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3568 $as_echo "none needed" >&6; } ;;
 3569   xno)
 3570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3571 $as_echo "unsupported" >&6; } ;;
 3572   *)
 3573     CC="$CC $ac_cv_prog_cc_c99"
 3574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 3575 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 3576 esac
 3577 if test "x$ac_cv_prog_cc_c99" != xno; then :
 3578 
 3579 fi
 3580 
 3581 
 3582 if test "$ac_cv_prog_cc_c99" = "no"; then
 3583     as_fn_error $? "The C compiler does not support C99" "$LINENO" 5
 3584 fi
 3585 case "$host_os" in
 3586 haiku*)
 3587     #
 3588     # Haiku's platform file is in C++.
 3589     #
 3590     ac_ext=cpp
 3591 ac_cpp='$CXXCPP $CPPFLAGS'
 3592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 3595 if test -z "$CXX"; then
 3596   if test -n "$CCC"; then
 3597     CXX=$CCC
 3598   else
 3599     if test -n "$ac_tool_prefix"; then
 3600   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 3601   do
 3602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3605 $as_echo_n "checking for $ac_word... " >&6; }
 3606 if ${ac_cv_prog_CXX+:} false; then :
 3607   $as_echo_n "(cached) " >&6
 3608 else
 3609   if test -n "$CXX"; then
 3610   ac_cv_prog_CXX="$CXX" # Let the user override the test.
 3611 else
 3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3613 for as_dir in $PATH
 3614 do
 3615   IFS=$as_save_IFS
 3616   test -z "$as_dir" && as_dir=.
 3617     for ac_exec_ext in '' $ac_executable_extensions; do
 3618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3619     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 3620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3621     break 2
 3622   fi
 3623 done
 3624   done
 3625 IFS=$as_save_IFS
 3626 
 3627 fi
 3628 fi
 3629 CXX=$ac_cv_prog_CXX
 3630 if test -n "$CXX"; then
 3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 3632 $as_echo "$CXX" >&6; }
 3633 else
 3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3635 $as_echo "no" >&6; }
 3636 fi
 3637 
 3638 
 3639     test -n "$CXX" && break
 3640   done
 3641 fi
 3642 if test -z "$CXX"; then
 3643   ac_ct_CXX=$CXX
 3644   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 3645 do
 3646   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3647 set dummy $ac_prog; ac_word=$2
 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3649 $as_echo_n "checking for $ac_word... " >&6; }
 3650 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 3651   $as_echo_n "(cached) " >&6
 3652 else
 3653   if test -n "$ac_ct_CXX"; then
 3654   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 3655 else
 3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3657 for as_dir in $PATH
 3658 do
 3659   IFS=$as_save_IFS
 3660   test -z "$as_dir" && as_dir=.
 3661     for ac_exec_ext in '' $ac_executable_extensions; do
 3662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3663     ac_cv_prog_ac_ct_CXX="$ac_prog"
 3664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3665     break 2
 3666   fi
 3667 done
 3668   done
 3669 IFS=$as_save_IFS
 3670 
 3671 fi
 3672 fi
 3673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 3674 if test -n "$ac_ct_CXX"; then
 3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 3676 $as_echo "$ac_ct_CXX" >&6; }
 3677 else
 3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3679 $as_echo "no" >&6; }
 3680 fi
 3681 
 3682 
 3683   test -n "$ac_ct_CXX" && break
 3684 done
 3685 
 3686   if test "x$ac_ct_CXX" = x; then
 3687     CXX="g++"
 3688   else
 3689     case $cross_compiling:$ac_tool_warned in
 3690 yes:)
 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3693 ac_tool_warned=yes ;;
 3694 esac
 3695     CXX=$ac_ct_CXX
 3696   fi
 3697 fi
 3698 
 3699   fi
 3700 fi
 3701 # Provide some information about the compiler.
 3702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 3703 set X $ac_compile
 3704 ac_compiler=$2
 3705 for ac_option in --version -v -V -qversion; do
 3706   { { ac_try="$ac_compiler $ac_option >&5"
 3707 case "(($ac_try" in
 3708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3709   *) ac_try_echo=$ac_try;;
 3710 esac
 3711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3712 $as_echo "$ac_try_echo"; } >&5
 3713   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 3714   ac_status=$?
 3715   if test -s conftest.err; then
 3716     sed '10a\
 3717 ... rest of stderr output deleted ...
 3718          10q' conftest.err >conftest.er1
 3719     cat conftest.er1 >&5
 3720   fi
 3721   rm -f conftest.er1 conftest.err
 3722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3723   test $ac_status = 0; }
 3724 done
 3725 
 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 3727 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 3728 if ${ac_cv_cxx_compiler_gnu+:} false; then :
 3729   $as_echo_n "(cached) " >&6
 3730 else
 3731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3732 /* end confdefs.h.  */
 3733 
 3734 int
 3735 main ()
 3736 {
 3737 #ifndef __GNUC__
 3738        choke me
 3739 #endif
 3740 
 3741   ;
 3742   return 0;
 3743 }
 3744 _ACEOF
 3745 if ac_fn_cxx_try_compile "$LINENO"; then :
 3746   ac_compiler_gnu=yes
 3747 else
 3748   ac_compiler_gnu=no
 3749 fi
 3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 3752 
 3753 fi
 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 3755 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 3756 if test $ac_compiler_gnu = yes; then
 3757   GXX=yes
 3758 else
 3759   GXX=
 3760 fi
 3761 ac_test_CXXFLAGS=${CXXFLAGS+set}
 3762 ac_save_CXXFLAGS=$CXXFLAGS
 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 3764 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
 3765 if ${ac_cv_prog_cxx_g+:} false; then :
 3766   $as_echo_n "(cached) " >&6
 3767 else
 3768   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 3769    ac_cxx_werror_flag=yes
 3770    ac_cv_prog_cxx_g=no
 3771    CXXFLAGS="-g"
 3772    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3773 /* end confdefs.h.  */
 3774 
 3775 int
 3776 main ()
 3777 {
 3778 
 3779   ;
 3780   return 0;
 3781 }
 3782 _ACEOF
 3783 if ac_fn_cxx_try_compile "$LINENO"; then :
 3784   ac_cv_prog_cxx_g=yes
 3785 else
 3786   CXXFLAGS=""
 3787       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3788 /* end confdefs.h.  */
 3789 
 3790 int
 3791 main ()
 3792 {
 3793 
 3794   ;
 3795   return 0;
 3796 }
 3797 _ACEOF
 3798 if ac_fn_cxx_try_compile "$LINENO"; then :
 3799 
 3800 else
 3801   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 3802      CXXFLAGS="-g"
 3803      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3804 /* end confdefs.h.  */
 3805 
 3806 int
 3807 main ()
 3808 {
 3809 
 3810   ;
 3811   return 0;
 3812 }
 3813 _ACEOF
 3814 if ac_fn_cxx_try_compile "$LINENO"; then :
 3815   ac_cv_prog_cxx_g=yes
 3816 fi
 3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3818 fi
 3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3820 fi
 3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3822    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 3823 fi
 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 3825 $as_echo "$ac_cv_prog_cxx_g" >&6; }
 3826 if test "$ac_test_CXXFLAGS" = set; then
 3827   CXXFLAGS=$ac_save_CXXFLAGS
 3828 elif test $ac_cv_prog_cxx_g = yes; then
 3829   if test "$GXX" = yes; then
 3830     CXXFLAGS="-g -O2"
 3831   else
 3832     CXXFLAGS="-g"
 3833   fi
 3834 else
 3835   if test "$GXX" = yes; then
 3836     CXXFLAGS="-O2"
 3837   else
 3838     CXXFLAGS=
 3839   fi
 3840 fi
 3841 ac_ext=c
 3842 ac_cpp='$CPP $CPPFLAGS'
 3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3846 
 3847     ;;
 3848 esac
 3849 
 3850 
 3851 
 3852 
 3853 
 3854 
 3855     if test "$GCC" = yes ; then
 3856         #
 3857         # -Werror forces warnings to be errors.
 3858         #
 3859         ac_lbl_cc_force_warning_errors=-Werror
 3860 
 3861         #
 3862         # Try to have the compiler default to hiding symbols,
 3863         # so that only symbols explicitly exported with
 3864         # PCAP_API will be visible outside (shared) libraries.
 3865         #
 3866 
 3867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
 3868 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
 3869     save_CFLAGS="$CFLAGS"
 3870     if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
 3871     then
 3872         CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
 3873     elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
 3874     then
 3875         CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
 3876     elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
 3877     then
 3878         CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
 3879     else
 3880         CFLAGS="$CFLAGS -fvisibility=hidden"
 3881     fi
 3882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3883 /* end confdefs.h.  */
 3884 
 3885 int
 3886 main ()
 3887 {
 3888 return 0
 3889   ;
 3890   return 0;
 3891 }
 3892 _ACEOF
 3893 if ac_fn_c_try_compile "$LINENO"; then :
 3894 
 3895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3896 $as_echo "yes" >&6; }
 3897         can_add_to_cflags=yes
 3898         #
 3899         # The compile supports this; do we have some C code for
 3900         # which the warning should *not* appear?
 3901         # We test the fourth argument because the third argument
 3902         # could contain quotes, breaking the test.
 3903         #
 3904         if test "x" != "x"
 3905         then
 3906             CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
 3907             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
 3908 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
 3909             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3910 /* end confdefs.h.  */
 3911 
 3912 _ACEOF
 3913 if ac_fn_c_try_compile "$LINENO"; then :
 3914 
 3915             #
 3916             # Not a problem.
 3917             #
 3918             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3919 $as_echo "no" >&6; }
 3920 
 3921 else
 3922 
 3923             #
 3924             # A problem.
 3925             #
 3926             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3927 $as_echo "yes" >&6; }
 3928             can_add_to_cflags=no
 3929 
 3930 fi
 3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3932         fi
 3933         CFLAGS="$save_CFLAGS"
 3934         if test x"$can_add_to_cflags" = "xyes"
 3935         then
 3936             V_CCOPT="$V_CCOPT -fvisibility=hidden"
 3937         fi
 3938 
 3939 else
 3940 
 3941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3942 $as_echo "no" >&6; }
 3943         CFLAGS="$save_CFLAGS"
 3944 
 3945 fi
 3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3947 
 3948     else
 3949         V_INCLS="$V_INCLS -I/usr/local/include"
 3950         LDFLAGS="$LDFLAGS -L/usr/local/lib"
 3951 
 3952         case "$host_os" in
 3953 
 3954         darwin*)
 3955             #
 3956             # This is assumed either to be GCC or clang, both
 3957             # of which use -Werror to force warnings to be errors.
 3958             #
 3959             ac_lbl_cc_force_warning_errors=-Werror
 3960 
 3961             #
 3962             # Try to have the compiler default to hiding symbols,
 3963             # so that only symbols explicitly exported with
 3964             # PCAP_API will be visible outside (shared) libraries.
 3965             #
 3966 
 3967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
 3968 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
 3969     save_CFLAGS="$CFLAGS"
 3970     if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
 3971     then
 3972         CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
 3973     elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
 3974     then
 3975         CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
 3976     elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
 3977     then
 3978         CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
 3979     else
 3980         CFLAGS="$CFLAGS -fvisibility=hidden"
 3981     fi
 3982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3983 /* end confdefs.h.  */
 3984 
 3985 int
 3986 main ()
 3987 {
 3988 return 0
 3989   ;
 3990   return 0;
 3991 }
 3992 _ACEOF
 3993 if ac_fn_c_try_compile "$LINENO"; then :
 3994 
 3995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3996 $as_echo "yes" >&6; }
 3997         can_add_to_cflags=yes
 3998         #
 3999         # The compile supports this; do we have some C code for
 4000         # which the warning should *not* appear?
 4001         # We test the fourth argument because the third argument
 4002         # could contain quotes, breaking the test.
 4003         #
 4004         if test "x" != "x"
 4005         then
 4006             CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
 4007             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
 4008 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
 4009             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4010 /* end confdefs.h.  */
 4011 
 4012 _ACEOF
 4013 if ac_fn_c_try_compile "$LINENO"; then :
 4014 
 4015             #
 4016             # Not a problem.
 4017             #
 4018             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4019 $as_echo "no" >&6; }
 4020 
 4021 else
 4022 
 4023             #
 4024             # A problem.
 4025             #
 4026             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4027 $as_echo "yes" >&6; }
 4028             can_add_to_cflags=no
 4029 
 4030 fi
 4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4032         fi
 4033         CFLAGS="$save_CFLAGS"
 4034         if test x"$can_add_to_cflags" = "xyes"
 4035         then
 4036             V_CCOPT="$V_CCOPT -fvisibility=hidden"
 4037         fi
 4038 
 4039 else
 4040 
 4041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4042 $as_echo "no" >&6; }
 4043         CFLAGS="$save_CFLAGS"
 4044 
 4045 fi
 4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4047 
 4048             ;;
 4049 
 4050         hpux*)
 4051             #
 4052             # HP C, which is what we presume we're using, doesn't
 4053             # exit with a non-zero exit status if we hand it an
 4054             # invalid -W flag, can't be forced to do so even with
 4055             # +We, and doesn't handle GCC-style -W flags, so we
 4056             # don't want to try using GCC-style -W flags.
 4057             #
 4058             ac_lbl_cc_dont_try_gcc_dashW=yes
 4059             ;;
 4060 
 4061         irix*)
 4062             #
 4063             # MIPS C, which is what we presume we're using, doesn't
 4064             # necessarily exit with a non-zero exit status if we
 4065             # hand it an invalid -W flag, can't be forced to do
 4066             # so, and doesn't handle GCC-style -W flags, so we
 4067             # don't want to try using GCC-style -W flags.
 4068             #
 4069             ac_lbl_cc_dont_try_gcc_dashW=yes
 4070             #
 4071             # It also, apparently, defaults to "char" being
 4072             # unsigned, unlike most other C implementations;
 4073             # I suppose we could say "signed char" whenever
 4074             # we want to guarantee a signed "char", but let's
 4075             # just force signed chars.
 4076             #
 4077             # -xansi is normally the default, but the
 4078             # configure script was setting it; perhaps -cckr
 4079             # was the default in the Old Days.  (Then again,
 4080             # that would probably be for backwards compatibility
 4081             # in the days when ANSI C was Shiny and New, i.e.
 4082             # 1989 and the early '90's, so maybe we can just
 4083             # drop support for those compilers.)
 4084             #
 4085             # -g is equivalent to -g2, which turns off
 4086             # optimization; we choose -g3, which generates
 4087             # debugging information but doesn't turn off
 4088             # optimization (even if the optimization would
 4089             # cause inaccuracies in debugging).
 4090             #
 4091             V_CCOPT="$V_CCOPT -xansi -signed -g3"
 4092             ;;
 4093 
 4094         osf*)
 4095             #
 4096             # Presumed to be DEC OSF/1, Digital UNIX, or
 4097             # Tru64 UNIX.
 4098             #
 4099             # The DEC C compiler, which is what we presume we're
 4100             # using, doesn't exit with a non-zero exit status if we
 4101             # hand it an invalid -W flag, can't be forced to do
 4102             # so, and doesn't handle GCC-style -W flags, so we
 4103             # don't want to try using GCC-style -W flags.
 4104             #
 4105             ac_lbl_cc_dont_try_gcc_dashW=yes
 4106             #
 4107             # -g is equivalent to -g2, which turns off
 4108             # optimization; we choose -g3, which generates
 4109             # debugging information but doesn't turn off
 4110             # optimization (even if the optimization would
 4111             # cause inaccuracies in debugging).
 4112             #
 4113             V_CCOPT="$V_CCOPT -g3"
 4114             ;;
 4115 
 4116         solaris*)
 4117             #
 4118             # Assumed to be Sun C, which requires -errwarn to force
 4119             # warnings to be treated as errors.
 4120             #
 4121             ac_lbl_cc_force_warning_errors=-errwarn
 4122 
 4123             #
 4124             # Try to have the compiler default to hiding symbols,
 4125             # so that only symbols explicitly exported with
 4126             # PCAP_API will be visible outside (shared) libraries.
 4127             #
 4128 
 4129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
 4130 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
 4131     save_CFLAGS="$CFLAGS"
 4132     if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
 4133     then
 4134         CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
 4135     elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
 4136     then
 4137         CFLAGS="$CFLAGS -Werror -xldscope=hidden"
 4138     elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
 4139     then
 4140         CFLAGS="$CFLAGS -Werror -xldscope=hidden"
 4141     else
 4142         CFLAGS="$CFLAGS -xldscope=hidden"
 4143     fi
 4144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4145 /* end confdefs.h.  */
 4146 
 4147 int
 4148 main ()
 4149 {
 4150 return 0
 4151   ;
 4152   return 0;
 4153 }
 4154 _ACEOF
 4155 if ac_fn_c_try_compile "$LINENO"; then :
 4156 
 4157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4158 $as_echo "yes" >&6; }
 4159         can_add_to_cflags=yes
 4160         #
 4161         # The compile supports this; do we have some C code for
 4162         # which the warning should *not* appear?
 4163         # We test the fourth argument because the third argument
 4164         # could contain quotes, breaking the test.
 4165         #
 4166         if test "x" != "x"
 4167         then
 4168             CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
 4169             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
 4170 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
 4171             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4172 /* end confdefs.h.  */
 4173 
 4174 _ACEOF
 4175 if ac_fn_c_try_compile "$LINENO"; then :
 4176 
 4177             #
 4178             # Not a problem.
 4179             #
 4180             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4181 $as_echo "no" >&6; }
 4182 
 4183 else
 4184 
 4185             #
 4186             # A problem.
 4187             #
 4188             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4189 $as_echo "yes" >&6; }
 4190             can_add_to_cflags=no
 4191 
 4192 fi
 4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4194         fi
 4195         CFLAGS="$save_CFLAGS"
 4196         if test x"$can_add_to_cflags" = "xyes"
 4197         then
 4198             V_CCOPT="$V_CCOPT -xldscope=hidden"
 4199         fi
 4200 
 4201 else
 4202 
 4203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4204 $as_echo "no" >&6; }
 4205         CFLAGS="$save_CFLAGS"
 4206 
 4207 fi
 4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4209 
 4210             ;;
 4211 
 4212         ultrix*)
 4213             { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
 4214 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
 4215             if ${ac_cv_lbl_cc_const_proto+:} false; then :
 4216   $as_echo_n "(cached) " >&6
 4217 else
 4218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4219 /* end confdefs.h.  */
 4220 #include <sys/types.h>
 4221 int
 4222 main ()
 4223 {
 4224 struct a { int b; };
 4225                 void c(const struct a *)
 4226   ;
 4227   return 0;
 4228 }
 4229 _ACEOF
 4230 if ac_fn_c_try_compile "$LINENO"; then :
 4231   ac_cv_lbl_cc_const_proto=yes
 4232 else
 4233   ac_cv_lbl_cc_const_proto=no
 4234 fi
 4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4236 fi
 4237 
 4238             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
 4239 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
 4240             if test $ac_cv_lbl_cc_const_proto = no ; then
 4241 
 4242 $as_echo "#define const /**/" >>confdefs.h
 4243 
 4244             fi
 4245             ;;
 4246         esac
 4247         V_CCOPT="$V_CCOPT -O"
 4248     fi
 4249 
 4250 
 4251     if test "$GCC" = yes ; then
 4252         #
 4253         # On platforms where we build a shared library:
 4254         #
 4255         #   add options to generate position-independent code,
 4256         #   if necessary (it's the default in AIX and Darwin/macOS);
 4257         #
 4258         #   define option to set the soname of the shared library,
 4259         #   if the OS supports that;
 4260         #
 4261         #   add options to specify, at link time, a directory to
 4262         #   add to the run-time search path, if that's necessary.
 4263         #
 4264         V_SHLIB_CMD="\$(CC)"
 4265         V_SHLIB_OPT="-shared"
 4266         case "$host_os" in
 4267 
 4268         aix*)
 4269             ;;
 4270 
 4271         freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*|haiku*|midipix*)
 4272             #
 4273             # Platforms where the linker is the GNU linker
 4274             # or accepts command-line arguments like
 4275             # those the GNU linker accepts.
 4276             #
 4277             # Some instruction sets require -fPIC on some
 4278             # operating systems.  Check for them.  If you
 4279             # have a combination that requires it, add it
 4280             # here.
 4281             #
 4282             PIC_OPT=-fpic
 4283             case "$host_cpu" in
 4284 
 4285             sparc64*)
 4286             case "$host_os" in
 4287 
 4288             freebsd*|openbsd*|linux*)
 4289                 PIC_OPT=-fPIC
 4290                 ;;
 4291             esac
 4292             ;;
 4293             esac
 4294             V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
 4295             V_SONAME_OPT="-Wl,-soname,"
 4296             V_RPATH_OPT="-Wl,-rpath,"
 4297             ;;
 4298 
 4299         hpux*)
 4300             V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
 4301             #
 4302             # XXX - this assumes GCC is using the HP linker,
 4303             # rather than the GNU linker, and that the "+h"
 4304             # option is used on all HP-UX platforms, both .sl
 4305             # and .so.
 4306             #
 4307             V_SONAME_OPT="-Wl,+h,"
 4308             #
 4309             # By default, directories specified with -L
 4310             # are added to the run-time search path, so
 4311             # we don't add them in pcap-config.
 4312             #
 4313             ;;
 4314 
 4315         solaris*)
 4316             V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
 4317             #
 4318             # XXX - this assumes GCC is using the Sun linker,
 4319             # rather than the GNU linker.
 4320             #
 4321             V_SONAME_OPT="-Wl,-h,"
 4322             V_RPATH_OPT="-Wl,-R,"
 4323             ;;
 4324         esac
 4325     else
 4326         #
 4327         # Set the appropriate compiler flags and, on platforms
 4328         # where we build a shared library:
 4329         #
 4330         #   add options to generate position-independent code,
 4331         #   if necessary (it's the default in Darwin/macOS);
 4332         #
 4333         #   if we generate ".so" shared libraries, define the
 4334         #   appropriate options for building the shared library;
 4335         #
 4336         #   add options to specify, at link time, a directory to
 4337         #   add to the run-time search path, if that's necessary.
 4338         #
 4339         # Note: spaces after V_SONAME_OPT are significant; on
 4340         # some platforms the soname is passed with a GCC-like
 4341         # "-Wl,-soname,{soname}" option, with the soname part
 4342         # of the option, while on other platforms the C compiler
 4343         # driver takes it as a regular option with the soname
 4344         # following the option.  The same applies to V_RPATH_OPT.
 4345         #
 4346         case "$host_os" in
 4347 
 4348         aix*)
 4349             V_SHLIB_CMD="\$(CC)"
 4350             V_SHLIB_OPT="-G -bnoentry -bexpall"
 4351             ;;
 4352 
 4353         freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
 4354             #
 4355             # "cc" is GCC.
 4356             #
 4357             V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
 4358             V_SHLIB_CMD="\$(CC)"
 4359             V_SHLIB_OPT="-shared"
 4360             V_SONAME_OPT="-Wl,-soname,"
 4361             V_RPATH_OPT="-Wl,-rpath,"
 4362             ;;
 4363 
 4364         hpux*)
 4365             V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
 4366             V_SHLIB_CMD="\$(LD)"
 4367             V_SHLIB_OPT="-b"
 4368             V_SONAME_OPT="+h "
 4369             #
 4370             # By default, directories specified with -L
 4371             # are added to the run-time search path, so
 4372             # we don't add them in pcap-config.
 4373             #
 4374             ;;
 4375 
 4376         osf*)
 4377             #
 4378             # Presumed to be DEC OSF/1, Digital UNIX, or
 4379             # Tru64 UNIX.
 4380             #
 4381             V_SHLIB_CMD="\$(CC)"
 4382             V_SHLIB_OPT="-shared"
 4383             V_SONAME_OPT="-soname "
 4384             V_RPATH_OPT="-rpath "
 4385             ;;
 4386 
 4387         solaris*)
 4388             V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
 4389             V_SHLIB_CMD="\$(CC)"
 4390             V_SHLIB_OPT="-G"
 4391             V_SONAME_OPT="-h "
 4392             V_RPATH_OPT="-R"
 4393             ;;
 4394         esac
 4395     fi
 4396 
 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 4398 $as_echo_n "checking for inline... " >&6; }
 4399     save_CFLAGS="$CFLAGS"
 4400     CFLAGS="$V_CCOPT"
 4401     if ${ac_cv_lbl_inline+:} false; then :
 4402   $as_echo_n "(cached) " >&6
 4403 else
 4404 
 4405     ac_cv_lbl_inline=""
 4406     ac_lbl_cc_inline=no
 4407     for ac_lbl_inline in inline __inline__ __inline
 4408     do
 4409         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4410 /* end confdefs.h.  */
 4411 #define inline $ac_lbl_inline
 4412         static inline struct iltest *foo(void);
 4413         struct iltest {
 4414             int iltest1;
 4415             int iltest2;
 4416         };
 4417 
 4418         static inline struct iltest *
 4419         foo()
 4420         {
 4421             static struct iltest xxx;
 4422 
 4423             return &xxx;
 4424         }
 4425 int
 4426 main ()
 4427 {
 4428 
 4429   ;
 4430   return 0;
 4431 }
 4432 _ACEOF
 4433 if ac_fn_c_try_compile "$LINENO"; then :
 4434   ac_lbl_cc_inline=yes
 4435 fi
 4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4437         if test "$ac_lbl_cc_inline" = yes ; then
 4438         break;
 4439         fi
 4440     done
 4441     if test "$ac_lbl_cc_inline" = yes ; then
 4442         ac_cv_lbl_inline=$ac_lbl_inline
 4443     fi
 4444 fi
 4445 
 4446     CFLAGS="$save_CFLAGS"
 4447     if test ! -z "$ac_cv_lbl_inline" ; then
 4448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
 4449 $as_echo "$ac_cv_lbl_inline" >&6; }
 4450     else
 4451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4452 $as_echo "no" >&6; }
 4453     fi
 4454 
 4455 cat >>confdefs.h <<_ACEOF
 4456 #define inline $ac_cv_lbl_inline
 4457 _ACEOF
 4458 
 4459 
 4460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load_n" >&5
 4461 $as_echo_n "checking for __atomic_load_n... " >&6; }
 4462     if ${ac_cv_have___atomic_load_n+:} false; then :
 4463   $as_echo_n "(cached) " >&6
 4464 else
 4465 
 4466 # ac_fn_c_try_link LINENO
 4467 # -----------------------
 4468 # Try to link conftest.$ac_ext, and return whether this succeeded.
 4469 ac_fn_c_try_link ()
 4470 {
 4471   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 4472   rm -f conftest.$ac_objext conftest$ac_exeext
 4473   if { { ac_try="$ac_link"
 4474 case "(($ac_try" in
 4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4476   *) ac_try_echo=$ac_try;;
 4477 esac
 4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4479 $as_echo "$ac_try_echo"; } >&5
 4480   (eval "$ac_link") 2>conftest.err
 4481   ac_status=$?
 4482   if test -s conftest.err; then
 4483     grep -v '^ *+' conftest.err >conftest.er1
 4484     cat conftest.er1 >&5
 4485     mv -f conftest.er1 conftest.err
 4486   fi
 4487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4488   test $ac_status = 0; } && {
 4489      test -z "$ac_c_werror_flag" ||
 4490      test ! -s conftest.err
 4491        } && test -s conftest$ac_exeext && {
 4492      test "$cross_compiling" = yes ||
 4493      test -x conftest$ac_exeext
 4494        }; then :
 4495   ac_retval=0
 4496 else
 4497   $as_echo "$as_me: failed program was:" >&5
 4498 sed 's/^/| /' conftest.$ac_ext >&5
 4499 
 4500     ac_retval=1
 4501 fi
 4502   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 4503   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 4504   # interfere with the next link command; also delete a directory that is
 4505   # left behind by Apple's compiler.  We do this before executing the actions.
 4506   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 4507   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 4508   as_fn_set_status $ac_retval
 4509 
 4510 } # ac_fn_c_try_link
 4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4512 /* end confdefs.h.  */
 4513 
 4514 int
 4515 main ()
 4516 {
 4517 
 4518             int i = 17;
 4519             int j;
 4520             j = __atomic_load_n(&i, __ATOMIC_RELAXED);
 4521 
 4522   ;
 4523   return 0;
 4524 }
 4525 _ACEOF
 4526 if ac_fn_c_try_link "$LINENO"; then :
 4527   ac_have___atomic_load_n=yes
 4528 else
 4529   ac_have___atomic_load_n=no
 4530 fi
 4531 rm -f core conftest.err conftest.$ac_objext \
 4532     conftest$ac_exeext conftest.$ac_ext
 4533 fi
 4534 
 4535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___atomic_load_n" >&5
 4536 $as_echo "$ac_have___atomic_load_n" >&6; }
 4537     if test $ac_have___atomic_load_n = yes ; then
 4538 
 4539 $as_echo "#define HAVE___ATOMIC_LOAD_N 1" >>confdefs.h
 4540 
 4541     fi
 4542 
 4543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_store_n" >&5
 4544 $as_echo_n "checking for __atomic_store_n... " >&6; }
 4545     if ${ac_cv_have___atomic_store_n+:} false; then :
 4546   $as_echo_n "(cached) " >&6
 4547 else
 4548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4549 /* end confdefs.h.  */
 4550 
 4551 int
 4552 main ()
 4553 {
 4554 
 4555             int i;
 4556             __atomic_store_n(&i, 17, __ATOMIC_RELAXED);
 4557 
 4558   ;
 4559   return 0;
 4560 }
 4561 _ACEOF
 4562 if ac_fn_c_try_link "$LINENO"; then :
 4563   ac_have___atomic_store_n=yes
 4564 else
 4565   ac_have___atomic_store_n=no
 4566 fi
 4567 rm -f core conftest.err conftest.$ac_objext \
 4568     conftest$ac_exeext conftest.$ac_ext
 4569 fi
 4570 
 4571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___atomic_store_n" >&5
 4572 $as_echo "$ac_have___atomic_store_n" >&6; }
 4573     if test $ac_have___atomic_store_n = yes ; then
 4574 
 4575 $as_echo "#define HAVE___ATOMIC_STORE_N 1" >>confdefs.h
 4576 
 4577     fi
 4578 
 4579 #
 4580 # Try to arrange for large file support.
 4581 #
 4582 # Check whether --enable-largefile was given.
 4583 if test "${enable_largefile+set}" = set; then :
 4584   enableval=$enable_largefile;
 4585 fi
 4586 
 4587 if test "$enable_largefile" != no; then
 4588 
 4589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 4590 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 4591 if ${ac_cv_sys_largefile_CC+:} false; then :
 4592   $as_echo_n "(cached) " >&6
 4593 else
 4594   ac_cv_sys_largefile_CC=no
 4595      if test "$GCC" != yes; then
 4596        ac_save_CC=$CC
 4597        while :; do
 4598      # IRIX 6.2 and later do not support large files by default,
 4599      # so use the C compiler's -n32 option if that helps.
 4600      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4601 /* end confdefs.h.  */
 4602 #include <sys/types.h>
 4603  /* Check that off_t can represent 2**63 - 1 correctly.
 4604     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4605     since some C++ compilers masquerading as C compilers
 4606     incorrectly reject 9223372036854775807.  */
 4607 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
 4608   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4609                && LARGE_OFF_T % 2147483647 == 1)
 4610               ? 1 : -1];
 4611 int
 4612 main ()
 4613 {
 4614 
 4615   ;
 4616   return 0;
 4617 }
 4618 _ACEOF
 4619      if ac_fn_c_try_compile "$LINENO"; then :
 4620   break
 4621 fi
 4622 rm -f core conftest.err conftest.$ac_objext
 4623      CC="$CC -n32"
 4624      if ac_fn_c_try_compile "$LINENO"; then :
 4625   ac_cv_sys_largefile_CC=' -n32'; break
 4626 fi
 4627 rm -f core conftest.err conftest.$ac_objext
 4628      break
 4629        done
 4630        CC=$ac_save_CC
 4631        rm -f conftest.$ac_ext
 4632     fi
 4633 fi
 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 4635 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
 4636   if test "$ac_cv_sys_largefile_CC" != no; then
 4637     CC=$CC$ac_cv_sys_largefile_CC
 4638   fi
 4639 
 4640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 4641 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 4642 if ${ac_cv_sys_file_offset_bits+:} false; then :
 4643   $as_echo_n "(cached) " >&6
 4644 else
 4645   while :; do
 4646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4647 /* end confdefs.h.  */
 4648 #include <sys/types.h>
 4649  /* Check that off_t can represent 2**63 - 1 correctly.
 4650     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4651     since some C++ compilers masquerading as C compilers
 4652     incorrectly reject 9223372036854775807.  */
 4653 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
 4654   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4655                && LARGE_OFF_T % 2147483647 == 1)
 4656               ? 1 : -1];
 4657 int
 4658 main ()
 4659 {
 4660 
 4661   ;
 4662   return 0;
 4663 }
 4664 _ACEOF
 4665 if ac_fn_c_try_compile "$LINENO"; then :
 4666   ac_cv_sys_file_offset_bits=no; break
 4667 fi
 4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4670 /* end confdefs.h.  */
 4671 #define _FILE_OFFSET_BITS 64
 4672 #include <sys/types.h>
 4673  /* Check that off_t can represent 2**63 - 1 correctly.
 4674     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4675     since some C++ compilers masquerading as C compilers
 4676     incorrectly reject 9223372036854775807.  */
 4677 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
 4678   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4679                && LARGE_OFF_T % 2147483647 == 1)
 4680               ? 1 : -1];
 4681 int
 4682 main ()
 4683 {
 4684 
 4685   ;
 4686   return 0;
 4687 }
 4688 _ACEOF
 4689 if ac_fn_c_try_compile "$LINENO"; then :
 4690   ac_cv_sys_file_offset_bits=64; break
 4691 fi
 4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4693   ac_cv_sys_file_offset_bits=unknown
 4694   break
 4695 done
 4696 fi
 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 4698 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 4699 case $ac_cv_sys_file_offset_bits in #(
 4700   no | unknown) ;;
 4701   *)
 4702 cat >>confdefs.h <<_ACEOF
 4703 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 4704 _ACEOF
 4705 ;;
 4706 esac
 4707 rm -rf conftest*
 4708   if test $ac_cv_sys_file_offset_bits = unknown; then
 4709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 4710 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 4711 if ${ac_cv_sys_large_files+:} false; then :
 4712   $as_echo_n "(cached) " >&6
 4713 else
 4714   while :; do
 4715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4716 /* end confdefs.h.  */
 4717 #include <sys/types.h>
 4718  /* Check that off_t can represent 2**63 - 1 correctly.
 4719     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4720     since some C++ compilers masquerading as C compilers
 4721     incorrectly reject 9223372036854775807.  */
 4722 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
 4723   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4724                && LARGE_OFF_T % 2147483647 == 1)
 4725               ? 1 : -1];
 4726 int
 4727 main ()
 4728 {
 4729 
 4730   ;
 4731   return 0;
 4732 }
 4733 _ACEOF
 4734 if ac_fn_c_try_compile "$LINENO"; then :
 4735   ac_cv_sys_large_files=no; break
 4736 fi
 4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4739 /* end confdefs.h.  */
 4740 #define _LARGE_FILES 1
 4741 #include <sys/types.h>
 4742  /* Check that off_t can represent 2**63 - 1 correctly.
 4743     We can't simply define LARGE_OFF_T to be 9223372036854775807,
 4744     since some C++ compilers masquerading as C compilers
 4745     incorrectly reject 9223372036854775807.  */
 4746 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
 4747   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 4748                && LARGE_OFF_T % 2147483647 == 1)
 4749               ? 1 : -1];
 4750 int
 4751 main ()
 4752 {
 4753 
 4754   ;
 4755   return 0;
 4756 }
 4757 _ACEOF
 4758 if ac_fn_c_try_compile "$LINENO"; then :
 4759   ac_cv_sys_large_files=1; break
 4760 fi
 4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4762   ac_cv_sys_large_files=unknown
 4763   break
 4764 done
 4765 fi
 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 4767 $as_echo "$ac_cv_sys_large_files" >&6; }
 4768 case $ac_cv_sys_large_files in #(
 4769   no | unknown) ;;
 4770   *)
 4771 cat >>confdefs.h <<_ACEOF
 4772 #define _LARGE_FILES $ac_cv_sys_large_files
 4773 _ACEOF
 4774 ;;
 4775 esac
 4776 rm -rf conftest*
 4777   fi
 4778 
 4779 
 4780 fi
 4781 
 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 4783 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
 4784 if ${ac_cv_sys_largefile_source+:} false; then :
 4785   $as_echo_n "(cached) " >&6
 4786 else
 4787   while :; do
 4788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4789 /* end confdefs.h.  */
 4790 #include <sys/types.h> /* for off_t */
 4791      #include <stdio.h>
 4792 int
 4793 main ()
 4794 {
 4795 int (*fp) (FILE *, off_t, int) = fseeko;
 4796      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
 4797   ;
 4798   return 0;
 4799 }
 4800 _ACEOF
 4801 if ac_fn_c_try_link "$LINENO"; then :
 4802   ac_cv_sys_largefile_source=no; break
 4803 fi
 4804 rm -f core conftest.err conftest.$ac_objext \
 4805     conftest$ac_exeext conftest.$ac_ext
 4806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4807 /* end confdefs.h.  */
 4808 #define _LARGEFILE_SOURCE 1
 4809 #include <sys/types.h> /* for off_t */
 4810      #include <stdio.h>
 4811 int
 4812 main ()
 4813 {
 4814 int (*fp) (FILE *, off_t, int) = fseeko;
 4815      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
 4816   ;
 4817   return 0;
 4818 }
 4819 _ACEOF
 4820 if ac_fn_c_try_link "$LINENO"; then :
 4821   ac_cv_sys_largefile_source=1; break
 4822 fi
 4823 rm -f core conftest.err conftest.$ac_objext \
 4824     conftest$ac_exeext conftest.$ac_ext
 4825   ac_cv_sys_largefile_source=unknown
 4826   break
 4827 done
 4828 fi
 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
 4830 $as_echo "$ac_cv_sys_largefile_source" >&6; }
 4831 case $ac_cv_sys_largefile_source in #(
 4832   no | unknown) ;;
 4833   *)
 4834 cat >>confdefs.h <<_ACEOF
 4835 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
 4836 _ACEOF
 4837 ;;
 4838 esac
 4839 rm -rf conftest*
 4840 
 4841 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
 4842 # in glibc 2.1.3, but that breaks too many other things.
 4843 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
 4844 if test $ac_cv_sys_largefile_source != unknown; then
 4845 
 4846 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
 4847 
 4848 fi
 4849 
 4850 
 4851 ac_ext=c
 4852 ac_cpp='$CPP $CPPFLAGS'
 4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 4857 $as_echo_n "checking how to run the C preprocessor... " >&6; }
 4858 # On Suns, sometimes $CPP names a directory.
 4859 if test -n "$CPP" && test -d "$CPP"; then
 4860   CPP=
 4861 fi
 4862 if test -z "$CPP"; then
 4863   if ${ac_cv_prog_CPP+:} false; then :
 4864   $as_echo_n "(cached) " >&6
 4865 else
 4866       # Double quotes because CPP needs to be expanded
 4867     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 4868     do
 4869       ac_preproc_ok=false
 4870 for ac_c_preproc_warn_flag in '' yes
 4871 do
 4872   # Use a header file that comes with gcc, so configuring glibc
 4873   # with a fresh cross-compiler works.
 4874   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4875   # <limits.h> exists even on freestanding compilers.
 4876   # On the NeXT, cc -E runs the code through the compiler's parser,
 4877   # not just through cpp. "Syntax error" is here to catch this case.
 4878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4879 /* end confdefs.h.  */
 4880 #ifdef __STDC__
 4881 # include <limits.h>
 4882 #else
 4883 # include <assert.h>
 4884 #endif
 4885              Syntax error
 4886 _ACEOF
 4887 if ac_fn_c_try_cpp "$LINENO"; then :
 4888 
 4889 else
 4890   # Broken: fails on valid input.
 4891 continue
 4892 fi
 4893 rm -f conftest.err conftest.i conftest.$ac_ext
 4894 
 4895   # OK, works on sane cases.  Now check whether nonexistent headers
 4896   # can be detected and how.
 4897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4898 /* end confdefs.h.  */
 4899 #include <ac_nonexistent.h>
 4900 _ACEOF
 4901 if ac_fn_c_try_cpp "$LINENO"; then :
 4902   # Broken: success on invalid input.
 4903 continue
 4904 else
 4905   # Passes both tests.
 4906 ac_preproc_ok=:
 4907 break
 4908 fi
 4909 rm -f conftest.err conftest.i conftest.$ac_ext
 4910 
 4911 done
 4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4913 rm -f conftest.i conftest.err conftest.$ac_ext
 4914 if $ac_preproc_ok; then :
 4915   break
 4916 fi
 4917 
 4918     done
 4919     ac_cv_prog_CPP=$CPP
 4920 
 4921 fi
 4922   CPP=$ac_cv_prog_CPP
 4923 else
 4924   ac_cv_prog_CPP=$CPP
 4925 fi
 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 4927 $as_echo "$CPP" >&6; }
 4928 ac_preproc_ok=false
 4929 for ac_c_preproc_warn_flag in '' yes
 4930 do
 4931   # Use a header file that comes with gcc, so configuring glibc
 4932   # with a fresh cross-compiler works.
 4933   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4934   # <limits.h> exists even on freestanding compilers.
 4935   # On the NeXT, cc -E runs the code through the compiler's parser,
 4936   # not just through cpp. "Syntax error" is here to catch this case.
 4937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4938 /* end confdefs.h.  */
 4939 #ifdef __STDC__
 4940 # include <limits.h>
 4941 #else
 4942 # include <assert.h>
 4943 #endif
 4944              Syntax error
 4945 _ACEOF
 4946 if ac_fn_c_try_cpp "$LINENO"; then :
 4947 
 4948 else
 4949   # Broken: fails on valid input.
 4950 continue
 4951 fi
 4952 rm -f conftest.err conftest.i conftest.$ac_ext
 4953 
 4954   # OK, works on sane cases.  Now check whether nonexistent headers
 4955   # can be detected and how.
 4956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4957 /* end confdefs.h.  */
 4958 #include <ac_nonexistent.h>
 4959 _ACEOF
 4960 if ac_fn_c_try_cpp "$LINENO"; then :
 4961   # Broken: success on invalid input.
 4962 continue
 4963 else
 4964   # Passes both tests.
 4965 ac_preproc_ok=:
 4966 break
 4967 fi
 4968 rm -f conftest.err conftest.i conftest.$ac_ext
 4969 
 4970 done
 4971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4972 rm -f conftest.i conftest.err conftest.$ac_ext
 4973 if $ac_preproc_ok; then :
 4974 
 4975 else
 4976   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4978 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 4979 See \`config.log' for more details" "$LINENO" 5; }
 4980 fi
 4981 
 4982 ac_ext=c
 4983 ac_cpp='$CPP $CPPFLAGS'
 4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4987 
 4988 
 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 4990 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 4991 if ${ac_cv_path_GREP+:} false; then :
 4992   $as_echo_n "(cached) " >&6
 4993 else
 4994   if test -z "$GREP"; then
 4995   ac_path_GREP_found=false
 4996   # Loop through the user's path and test for each of PROGNAME-LIST
 4997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4999 do
 5000   IFS=$as_save_IFS
 5001   test -z "$as_dir" && as_dir=.
 5002     for ac_prog in grep ggrep; do
 5003     for ac_exec_ext in '' $ac_executable_extensions; do
 5004       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 5005       as_fn_executable_p "$ac_path_GREP" || continue
 5006 # Check for GNU ac_path_GREP and select it if it is found.
 5007   # Check for GNU $ac_path_GREP
 5008 case `"$ac_path_GREP" --version 2>&1` in
 5009 *GNU*)
 5010   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 5011 *)
 5012   ac_count=0
 5013   $as_echo_n 0123456789 >"conftest.in"
 5014   while :
 5015   do
 5016     cat "conftest.in" "conftest.in" >"conftest.tmp"
 5017     mv "conftest.tmp" "conftest.in"
 5018     cp "conftest.in" "conftest.nl"
 5019     $as_echo 'GREP' >> "conftest.nl"
 5020     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 5021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 5022     as_fn_arith $ac_count + 1 && ac_count=$as_val
 5023     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 5024       # Best one so far, save it but keep looking for a better one
 5025       ac_cv_path_GREP="$ac_path_GREP"
 5026       ac_path_GREP_max=$ac_count
 5027     fi
 5028     # 10*(2^10) chars as input seems more than enough
 5029     test $ac_count -gt 10 && break
 5030   done
 5031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 5032 esac
 5033 
 5034       $ac_path_GREP_found && break 3
 5035     done
 5036   done
 5037   done
 5038 IFS=$as_save_IFS
 5039   if test -z "$ac_cv_path_GREP"; then
 5040     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 5041   fi
 5042 else
 5043   ac_cv_path_GREP=$GREP
 5044 fi
 5045 
 5046 fi
 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 5048 $as_echo "$ac_cv_path_GREP" >&6; }
 5049  GREP="$ac_cv_path_GREP"
 5050 
 5051 
 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 5053 $as_echo_n "checking for egrep... " >&6; }
 5054 if ${ac_cv_path_EGREP+:} false; then :
 5055   $as_echo_n "(cached) " >&6
 5056 else
 5057   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 5058    then ac_cv_path_EGREP="$GREP -E"
 5059    else
 5060      if test -z "$EGREP"; then
 5061   ac_path_EGREP_found=false
 5062   # Loop through the user's path and test for each of PROGNAME-LIST
 5063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 5065 do
 5066   IFS=$as_save_IFS
 5067   test -z "$as_dir" && as_dir=.
 5068     for ac_prog in egrep; do
 5069     for ac_exec_ext in '' $ac_executable_extensions; do
 5070       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 5071       as_fn_executable_p "$ac_path_EGREP" || continue
 5072 # Check for GNU ac_path_EGREP and select it if it is found.
 5073   # Check for GNU $ac_path_EGREP
 5074 case `"$ac_path_EGREP" --version 2>&1` in
 5075 *GNU*)
 5076   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 5077 *)
 5078   ac_count=0
 5079   $as_echo_n 0123456789 >"conftest.in"
 5080   while :
 5081   do
 5082     cat "conftest.in" "conftest.in" >"conftest.tmp"
 5083     mv "conftest.tmp" "conftest.in"
 5084     cp "conftest.in" "conftest.nl"
 5085     $as_echo 'EGREP' >> "conftest.nl"
 5086     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 5087     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 5088     as_fn_arith $ac_count + 1 && ac_count=$as_val
 5089     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 5090       # Best one so far, save it but keep looking for a better one
 5091       ac_cv_path_EGREP="$ac_path_EGREP"
 5092       ac_path_EGREP_max=$ac_count
 5093     fi
 5094     # 10*(2^10) chars as input seems more than enough
 5095     test $ac_count -gt 10 && break
 5096   done
 5097   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 5098 esac
 5099 
 5100       $ac_path_EGREP_found && break 3
 5101     done
 5102   done
 5103   done
 5104 IFS=$as_save_IFS
 5105   if test -z "$ac_cv_path_EGREP"; then
 5106     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 5107   fi
 5108 else
 5109   ac_cv_path_EGREP=$EGREP
 5110 fi
 5111 
 5112    fi
 5113 fi
 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 5115 $as_echo "$ac_cv_path_EGREP" >&6; }
 5116  EGREP="$ac_cv_path_EGREP"
 5117 
 5118 
 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 5120 $as_echo_n "checking for ANSI C header files... " >&6; }
 5121 if ${ac_cv_header_stdc+:} false; then :
 5122   $as_echo_n "(cached) " >&6
 5123 else
 5124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5125 /* end confdefs.h.  */
 5126 #include <stdlib.h>
 5127 #include <stdarg.h>
 5128 #include <string.h>
 5129 #include <float.h>
 5130 
 5131 int
 5132 main ()
 5133 {
 5134 
 5135   ;
 5136   return 0;
 5137 }
 5138 _ACEOF
 5139 if ac_fn_c_try_compile "$LINENO"; then :
 5140   ac_cv_header_stdc=yes
 5141 else
 5142   ac_cv_header_stdc=no
 5143 fi
 5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5145 
 5146 if test $ac_cv_header_stdc = yes; then
 5147   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 5148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5149 /* end confdefs.h.  */
 5150 #include <string.h>
 5151 
 5152 _ACEOF
 5153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5154   $EGREP "memchr" >/dev/null 2>&1; then :
 5155 
 5156 else
 5157   ac_cv_header_stdc=no
 5158 fi
 5159 rm -f conftest*
 5160 
 5161 fi
 5162 
 5163 if test $ac_cv_header_stdc = yes; then
 5164   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 5165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5166 /* end confdefs.h.  */
 5167 #include <stdlib.h>
 5168 
 5169 _ACEOF
 5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5171   $EGREP "free" >/dev/null 2>&1; then :
 5172 
 5173 else
 5174   ac_cv_header_stdc=no
 5175 fi
 5176 rm -f conftest*
 5177 
 5178 fi
 5179 
 5180 if test $ac_cv_header_stdc = yes; then
 5181   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 5182   if test "$cross_compiling" = yes; then :
 5183   :
 5184 else
 5185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5186 /* end confdefs.h.  */
 5187 #include <ctype.h>
 5188 #include <stdlib.h>
 5189 #if ((' ' & 0x0FF) == 0x020)
 5190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 5191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 5192 #else
 5193 # define ISLOWER(c) \
 5194            (('a' <= (c) && (c) <= 'i') \
 5195              || ('j' <= (c) && (c) <= 'r') \
 5196              || ('s' <= (c) && (c) <= 'z'))
 5197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 5198 #endif
 5199 
 5200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 5201 int
 5202 main ()
 5203 {
 5204   int i;
 5205   for (i = 0; i < 256; i++)
 5206     if (XOR (islower (i), ISLOWER (i))
 5207     || toupper (i) != TOUPPER (i))
 5208       return 2;
 5209   return 0;
 5210 }
 5211 _ACEOF
 5212 if ac_fn_c_try_run "$LINENO"; then :
 5213 
 5214 else
 5215   ac_cv_header_stdc=no
 5216 fi
 5217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5218   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5219 fi
 5220 
 5221 fi
 5222 fi
 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 5224 $as_echo "$ac_cv_header_stdc" >&6; }
 5225 if test $ac_cv_header_stdc = yes; then
 5226 
 5227 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 5228 
 5229 fi
 5230 
 5231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 5232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 5233           inttypes.h stdint.h unistd.h
 5234 do :
 5235   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 5236 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 5237 "
 5238 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 5239   cat >>confdefs.h <<_ACEOF
 5240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 5241 _ACEOF
 5242 
 5243 fi
 5244 
 5245 done
 5246 
 5247 
 5248 for ac_header in sys/ioccom.h sys/sockio.h
 5249 do :
 5250   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 5251 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 5252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 5253   cat >>confdefs.h <<_ACEOF
 5254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 5255 _ACEOF
 5256 
 5257 fi
 5258 
 5259 done
 5260 
 5261 for ac_header in netpacket/packet.h
 5262 do :
 5263   ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
 5264 if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
 5265   cat >>confdefs.h <<_ACEOF
 5266 #define HAVE_NETPACKET_PACKET_H 1
 5267 _ACEOF
 5268 
 5269 fi
 5270 
 5271 done
 5272 
 5273 for ac_header in net/pfvar.h
 5274 do :
 5275   ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
 5276 #include <sys/socket.h>
 5277 #include <net/if.h>
 5278 "
 5279 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
 5280   cat >>confdefs.h <<_ACEOF
 5281 #define HAVE_NET_PFVAR_H 1
 5282 _ACEOF
 5283 
 5284 fi
 5285 
 5286 done
 5287 
 5288 if test "$ac_cv_header_net_pfvar_h" = yes; then
 5289     #
 5290     # Check for various PF actions.
 5291     #
 5292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
 5293 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
 5294     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5295 /* end confdefs.h.  */
 5296 #include <sys/types.h>
 5297         #include <sys/socket.h>
 5298         #include <net/if.h>
 5299         #include <net/pfvar.h>
 5300 int
 5301 main ()
 5302 {
 5303 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
 5304   ;
 5305   return 0;
 5306 }
 5307 _ACEOF
 5308 if ac_fn_c_try_compile "$LINENO"; then :
 5309 
 5310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5311 $as_echo "yes" >&6; }
 5312 
 5313 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
 5314 
 5315 
 5316 else
 5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5318 $as_echo "no" >&6; }
 5319 fi
 5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5321 fi
 5322 
 5323 case "$host_os" in
 5324 haiku*)
 5325     #
 5326     # Haiku needs _BSD_SOURCE for the _IO* macros because it doesn't use them.
 5327     #
 5328     CFLAGS="$CFLAGS -D_BSD_SOURCE"
 5329     ;;
 5330 esac
 5331 
 5332 if test "$GCC" = yes ; then
 5333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
 5334 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
 5335         if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
 5336   $as_echo_n "(cached) " >&6
 5337 else
 5338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5339 /* end confdefs.h.  */
 5340 /*
 5341              * This generates a "duplicate case value" when fixincludes
 5342              * has not be run.
 5343              */
 5344 #       include <sys/types.h>
 5345 #       include <sys/time.h>
 5346 #       include <sys/ioctl.h>
 5347 #       ifdef HAVE_SYS_IOCCOM_H
 5348 #       include <sys/ioccom.h>
 5349 #       endif
 5350 int
 5351 main ()
 5352 {
 5353 switch (0) {
 5354             case _IO('A', 1):;
 5355             case _IO('B', 1):;
 5356             }
 5357   ;
 5358   return 0;
 5359 }
 5360 _ACEOF
 5361 if ac_fn_c_try_compile "$LINENO"; then :
 5362   ac_cv_lbl_gcc_fixincludes=yes
 5363 else
 5364   ac_cv_lbl_gcc_fixincludes=no
 5365 fi
 5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5367 fi
 5368 
 5369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
 5370 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
 5371         if test $ac_cv_lbl_gcc_fixincludes = no ; then
 5372             # Don't cache failure
 5373             unset ac_cv_lbl_gcc_fixincludes
 5374             as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
 5375         fi
 5376     fi
 5377 
 5378 for ac_func in strerror
 5379 do :
 5380   ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
 5381 if test "x$ac_cv_func_strerror" = xyes; then :
 5382   cat >>confdefs.h <<_ACEOF
 5383 #define HAVE_STRERROR 1
 5384 _ACEOF
 5385 
 5386 fi
 5387 done
 5388 
 5389 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
 5390 if test "x$ac_cv_func_strerror_r" = xyes; then :
 5391 
 5392     #
 5393     # We have strerror_r; if we define _GNU_SOURCE, is it a
 5394     # POSIX-compliant strerror_r() or a GNU strerror_r()?
 5395     #
 5396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r is GNU-style" >&5
 5397 $as_echo_n "checking whether strerror_r is GNU-style... " >&6; }
 5398     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5399 /* end confdefs.h.  */
 5400 
 5401         #define _GNU_SOURCE
 5402 #include <string.h>
 5403 
 5404 /* Define it GNU-style; that will cause an error if it's not GNU-style */
 5405 extern char *strerror_r(int, char *, size_t);
 5406 
 5407 int
 5408 main(void)
 5409 {
 5410     return 0;
 5411 }
 5412 
 5413 
 5414 _ACEOF
 5415 if ac_fn_c_try_compile "$LINENO"; then :
 5416 
 5417             # GNU-style
 5418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5419 $as_echo "yes" >&6; }
 5420 
 5421 $as_echo "#define HAVE_GNU_STRERROR_R /**/" >>confdefs.h
 5422 
 5423 
 5424 else
 5425 
 5426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5427 $as_echo "no" >&6; }
 5428 
 5429 $as_echo "#define HAVE_POSIX_STRERROR_R /**/" >>confdefs.h
 5430 
 5431 
 5432 fi
 5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5434 
 5435 else
 5436 
 5437     #
 5438     # We don't have strerror_r; do we have _wcserror_s?
 5439     #
 5440     for ac_func in _wcserror_s
 5441 do :
 5442   ac_fn_c_check_func "$LINENO" "_wcserror_s" "ac_cv_func__wcserror_s"
 5443 if test "x$ac_cv_func__wcserror_s" = xyes; then :
 5444   cat >>confdefs.h <<_ACEOF
 5445 #define HAVE__WCSERROR_S 1
 5446 _ACEOF
 5447 
 5448 fi
 5449 done
 5450 
 5451 
 5452 fi
 5453 
 5454 
 5455 #
 5456 # Thanks, IBM, for not providing vsyslog() in AIX!
 5457 #
 5458 for ac_func in vsyslog
 5459 do :
 5460   ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
 5461 if test "x$ac_cv_func_vsyslog" = xyes; then :
 5462   cat >>confdefs.h <<_ACEOF
 5463 #define HAVE_VSYSLOG 1
 5464 _ACEOF
 5465 
 5466 fi
 5467 done
 5468 
 5469 
 5470 #
 5471 # Make sure we have vsnprintf() and snprintf(); we require them.
 5472 #
 5473 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
 5474 if test "x$ac_cv_func_vsnprintf" = xyes; then :
 5475 
 5476 else
 5477   as_fn_error $? "vsnprintf() is required but wasn't found" "$LINENO" 5
 5478 fi
 5479 
 5480 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
 5481 if test "x$ac_cv_func_snprintf" = xyes; then :
 5482 
 5483 else
 5484   as_fn_error $? "snprintf() is required but wasn't found" "$LINENO" 5
 5485 fi
 5486 
 5487 
 5488 needasprintf=no
 5489 for ac_func in vasprintf asprintf
 5490 do :
 5491   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 5492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 5493 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 5494   cat >>confdefs.h <<_ACEOF
 5495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 5496 _ACEOF
 5497 
 5498 else
 5499   needasprintf=yes
 5500 fi
 5501 done
 5502 
 5503 if test $needasprintf = yes; then
 5504     case " $LIBOBJS " in
 5505   *" asprintf.$ac_objext "* ) ;;
 5506   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
 5507  ;;
 5508 esac
 5509 
 5510 fi
 5511 
 5512 needstrlcat=no
 5513 for ac_func in strlcat
 5514 do :
 5515   ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
 5516 if test "x$ac_cv_func_strlcat" = xyes; then :
 5517   cat >>confdefs.h <<_ACEOF
 5518 #define HAVE_STRLCAT 1
 5519 _ACEOF
 5520 
 5521 else
 5522   needstrlcat=yes
 5523 fi
 5524 done
 5525 
 5526 if test $needstrlcat = yes; then
 5527     case " $LIBOBJS " in
 5528   *" strlcat.$ac_objext "* ) ;;
 5529   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
 5530  ;;
 5531 esac
 5532 
 5533 fi
 5534 
 5535 needstrlcpy=no
 5536 for ac_func in strlcpy
 5537 do :
 5538   ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
 5539 if test "x$ac_cv_func_strlcpy" = xyes; then :
 5540   cat >>confdefs.h <<_ACEOF
 5541 #define HAVE_STRLCPY 1
 5542 _ACEOF
 5543 
 5544 else
 5545   needstrlcpy=yes
 5546 fi
 5547 done
 5548 
 5549 if test $needstrlcpy = yes; then
 5550     case " $LIBOBJS " in
 5551   *" strlcpy.$ac_objext "* ) ;;
 5552   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
 5553  ;;
 5554 esac
 5555 
 5556 fi
 5557 
 5558 needstrtok_r=no
 5559 for ac_func in strtok_r
 5560 do :
 5561   ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
 5562 if test "x$ac_cv_func_strtok_r" = xyes; then :
 5563   cat >>confdefs.h <<_ACEOF
 5564 #define HAVE_STRTOK_R 1
 5565 _ACEOF
 5566 
 5567 else
 5568   needstrtok_r=yes
 5569 fi
 5570 done
 5571 
 5572 if test $needstrtok_r = yes; then
 5573     case " $LIBOBJS " in
 5574   *" strtok_r.$ac_objext "* ) ;;
 5575   *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
 5576  ;;
 5577 esac
 5578 
 5579 fi
 5580 
 5581 #
 5582 # Do we have ffs(), and is it declared in <strings.h>?
 5583 #
 5584 for ac_func in ffs
 5585 do :
 5586   ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
 5587 if test "x$ac_cv_func_ffs" = xyes; then :
 5588   cat >>confdefs.h <<_ACEOF
 5589 #define HAVE_FFS 1
 5590 _ACEOF
 5591 
 5592 fi
 5593 done
 5594 
 5595 if test "$ac_cv_func_ffs" = yes; then
 5596     #
 5597     # We have ffs(); is it declared in <strings.h>?
 5598     #
 5599     # This test fails if we don't have <strings.h> or if we do
 5600     # but it doesn't declare ffs().
 5601     #
 5602     ac_fn_c_check_decl "