Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.4
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69.
      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 (at] 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=
    579 PACKAGE_TARNAME=
    580 PACKAGE_VERSION=
    581 PACKAGE_STRING=
    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 DBUS_SRC
    627 PCAP_SUPPORT_DBUS
    628 PKGCONFIG
    629 CAN_SRC
    630 PCAP_SUPPORT_CAN
    631 CANUSB_SRC
    632 PCAP_SUPPORT_CANUSB
    633 BT_MONITOR_SRC
    634 BT_SRC
    635 PCAP_SUPPORT_BT
    636 NETFILTER_SRC
    637 PCAP_SUPPORT_NETFILTER
    638 USB_SRC
    639 PCAP_SUPPORT_USB
    640 MAN_MISC_INFO
    641 MAN_FILE_FORMATS
    642 DYEXT
    643 SSRC
    644 ADDLARCHIVEOBJS
    645 ADDLOBJS
    646 V_RPATH_OPT
    647 V_SONAME_OPT
    648 V_SHLIB_OPT
    649 V_SHLIB_CMD
    650 V_PCAP
    651 V_INCLS
    652 V_FINDALLDEVS
    653 V_DEFS
    654 V_CCOPT
    655 MKDEP
    656 DEPENDENCY_CFLAG
    657 LN_S
    658 AR
    659 RANLIB
    660 V_YACC
    661 V_LEX
    662 HAVE_LINUX_TPACKET_AUXDATA
    663 LIBOBJS
    664 EGREP
    665 GREP
    666 CPP
    667 OBJEXT
    668 EXEEXT
    669 ac_ct_CC
    670 CPPFLAGS
    671 LDFLAGS
    672 CFLAGS
    673 CC
    674 SHLICC2
    675 target_os
    676 target_vendor
    677 target_cpu
    678 target
    679 host_os
    680 host_vendor
    681 host_cpu
    682 host
    683 build_os
    684 build_vendor
    685 build_cpu
    686 build
    687 target_alias
    688 host_alias
    689 build_alias
    690 LIBS
    691 ECHO_T
    692 ECHO_N
    693 ECHO_C
    694 DEFS
    695 mandir
    696 localedir
    697 libdir
    698 psdir
    699 pdfdir
    700 dvidir
    701 htmldir
    702 infodir
    703 docdir
    704 oldincludedir
    705 includedir
    706 localstatedir
    707 sharedstatedir
    708 sysconfdir
    709 datadir
    710 datarootdir
    711 libexecdir
    712 sbindir
    713 bindir
    714 program_transform_name
    715 prefix
    716 exec_prefix
    717 PACKAGE_URL
    718 PACKAGE_BUGREPORT
    719 PACKAGE_STRING
    720 PACKAGE_VERSION
    721 PACKAGE_TARNAME
    722 PACKAGE_NAME
    723 PATH_SEPARATOR
    724 SHELL'
    725 ac_subst_files=''
    726 ac_user_opts='
    727 enable_option_checking
    728 with_gcc
    729 enable_largefile
    730 enable_protochain
    731 with_sita
    732 with_pcap
    733 with_libnl
    734 enable_ipv6
    735 enable_optimizer_dbg
    736 enable_yydebug
    737 with_dag
    738 with_dag_includes
    739 with_dag_libraries
    740 with_septel
    741 with_snf
    742 with_snf_includes
    743 with_snf_libraries
    744 with_flex
    745 with_bison
    746 enable_universal
    747 enable_shared
    748 enable_bluetooth
    749 enable_canusb
    750 enable_can
    751 enable_dbus
    752 '
    753       ac_precious_vars='build_alias
    754 host_alias
    755 target_alias
    756 CC
    757 CFLAGS
    758 LDFLAGS
    759 LIBS
    760 CPPFLAGS
    761 CPP'
    762 
    763 
    764 # Initialize some variables set by options.
    765 ac_init_help=
    766 ac_init_version=false
    767 ac_unrecognized_opts=
    768 ac_unrecognized_sep=
    769 # The variables have the same names as the options, with
    770 # dashes changed to underlines.
    771 cache_file=/dev/null
    772 exec_prefix=NONE
    773 no_create=
    774 no_recursion=
    775 prefix=NONE
    776 program_prefix=NONE
    777 program_suffix=NONE
    778 program_transform_name=s,x,x,
    779 silent=
    780 site=
    781 srcdir=
    782 verbose=
    783 x_includes=NONE
    784 x_libraries=NONE
    785 
    786 # Installation directory options.
    787 # These are left unexpanded so users can "make install exec_prefix=/foo"
    788 # and all the variables that are supposed to be based on exec_prefix
    789 # by default will actually change.
    790 # Use braces instead of parens because sh, perl, etc. also accept them.
    791 # (The list follows the same order as the GNU Coding Standards.)
    792 bindir='${exec_prefix}/bin'
    793 sbindir='${exec_prefix}/sbin'
    794 libexecdir='${exec_prefix}/libexec'
    795 datarootdir='${prefix}/share'
    796 datadir='${datarootdir}'
    797 sysconfdir='${prefix}/etc'
    798 sharedstatedir='${prefix}/com'
    799 localstatedir='${prefix}/var'
    800 includedir='${prefix}/include'
    801 oldincludedir='/usr/include'
    802 docdir='${datarootdir}/doc/${PACKAGE}'
    803 infodir='${datarootdir}/info'
    804 htmldir='${docdir}'
    805 dvidir='${docdir}'
    806 pdfdir='${docdir}'
    807 psdir='${docdir}'
    808 libdir='${exec_prefix}/lib'
    809 localedir='${datarootdir}/locale'
    810 mandir='${datarootdir}/man'
    811 
    812 ac_prev=
    813 ac_dashdash=
    814 for ac_option
    815 do
    816   # If the previous option needs an argument, assign it.
    817   if test -n "$ac_prev"; then
    818     eval $ac_prev=\$ac_option
    819     ac_prev=
    820     continue
    821   fi
    822 
    823   case $ac_option in
    824   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    825   *=)   ac_optarg= ;;
    826   *)    ac_optarg=yes ;;
    827   esac
    828 
    829   # Accept the important Cygnus configure options, so we can diagnose typos.
    830 
    831   case $ac_dashdash$ac_option in
    832   --)
    833     ac_dashdash=yes ;;
    834 
    835   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    836     ac_prev=bindir ;;
    837   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    838     bindir=$ac_optarg ;;
    839 
    840   -build | --build | --buil | --bui | --bu)
    841     ac_prev=build_alias ;;
    842   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    843     build_alias=$ac_optarg ;;
    844 
    845   -cache-file | --cache-file | --cache-fil | --cache-fi \
    846   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    847     ac_prev=cache_file ;;
    848   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    849   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    850     cache_file=$ac_optarg ;;
    851 
    852   --config-cache | -C)
    853     cache_file=config.cache ;;
    854 
    855   -datadir | --datadir | --datadi | --datad)
    856     ac_prev=datadir ;;
    857   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    858     datadir=$ac_optarg ;;
    859 
    860   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    861   | --dataroo | --dataro | --datar)
    862     ac_prev=datarootdir ;;
    863   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    864   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    865     datarootdir=$ac_optarg ;;
    866 
    867   -disable-* | --disable-*)
    868     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    869     # Reject names that are not valid shell variable names.
    870     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    871       as_fn_error $? "invalid feature name: $ac_useropt"
    872     ac_useropt_orig=$ac_useropt
    873     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    874     case $ac_user_opts in
    875       *"
    876 "enable_$ac_useropt"
    877 "*) ;;
    878       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    879 	 ac_unrecognized_sep=', ';;
    880     esac
    881     eval enable_$ac_useropt=no ;;
    882 
    883   -docdir | --docdir | --docdi | --doc | --do)
    884     ac_prev=docdir ;;
    885   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    886     docdir=$ac_optarg ;;
    887 
    888   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    889     ac_prev=dvidir ;;
    890   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    891     dvidir=$ac_optarg ;;
    892 
    893   -enable-* | --enable-*)
    894     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    895     # Reject names that are not valid shell variable names.
    896     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    897       as_fn_error $? "invalid feature name: $ac_useropt"
    898     ac_useropt_orig=$ac_useropt
    899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    900     case $ac_user_opts in
    901       *"
    902 "enable_$ac_useropt"
    903 "*) ;;
    904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    905 	 ac_unrecognized_sep=', ';;
    906     esac
    907     eval enable_$ac_useropt=\$ac_optarg ;;
    908 
    909   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    910   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    911   | --exec | --exe | --ex)
    912     ac_prev=exec_prefix ;;
    913   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    914   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    915   | --exec=* | --exe=* | --ex=*)
    916     exec_prefix=$ac_optarg ;;
    917 
    918   -gas | --gas | --ga | --g)
    919     # Obsolete; use --with-gas.
    920     with_gas=yes ;;
    921 
    922   -help | --help | --hel | --he | -h)
    923     ac_init_help=long ;;
    924   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    925     ac_init_help=recursive ;;
    926   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    927     ac_init_help=short ;;
    928 
    929   -host | --host | --hos | --ho)
    930     ac_prev=host_alias ;;
    931   -host=* | --host=* | --hos=* | --ho=*)
    932     host_alias=$ac_optarg ;;
    933 
    934   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    935     ac_prev=htmldir ;;
    936   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    937   | --ht=*)
    938     htmldir=$ac_optarg ;;
    939 
    940   -includedir | --includedir | --includedi | --included | --include \
    941   | --includ | --inclu | --incl | --inc)
    942     ac_prev=includedir ;;
    943   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    944   | --includ=* | --inclu=* | --incl=* | --inc=*)
    945     includedir=$ac_optarg ;;
    946 
    947   -infodir | --infodir | --infodi | --infod | --info | --inf)
    948     ac_prev=infodir ;;
    949   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    950     infodir=$ac_optarg ;;
    951 
    952   -libdir | --libdir | --libdi | --libd)
    953     ac_prev=libdir ;;
    954   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    955     libdir=$ac_optarg ;;
    956 
    957   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    958   | --libexe | --libex | --libe)
    959     ac_prev=libexecdir ;;
    960   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    961   | --libexe=* | --libex=* | --libe=*)
    962     libexecdir=$ac_optarg ;;
    963 
    964   -localedir | --localedir | --localedi | --localed | --locale)
    965     ac_prev=localedir ;;
    966   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    967     localedir=$ac_optarg ;;
    968 
    969   -localstatedir | --localstatedir | --localstatedi | --localstated \
    970   | --localstate | --localstat | --localsta | --localst | --locals)
    971     ac_prev=localstatedir ;;
    972   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    973   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    974     localstatedir=$ac_optarg ;;
    975 
    976   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    977     ac_prev=mandir ;;
    978   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    979     mandir=$ac_optarg ;;
    980 
    981   -nfp | --nfp | --nf)
    982     # Obsolete; use --without-fp.
    983     with_fp=no ;;
    984 
    985   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    986   | --no-cr | --no-c | -n)
    987     no_create=yes ;;
    988 
    989   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    990   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    991     no_recursion=yes ;;
    992 
    993   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    994   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    995   | --oldin | --oldi | --old | --ol | --o)
    996     ac_prev=oldincludedir ;;
    997   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    998   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    999   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1000     oldincludedir=$ac_optarg ;;
   1001 
   1002   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1003     ac_prev=prefix ;;
   1004   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1005     prefix=$ac_optarg ;;
   1006 
   1007   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1008   | --program-pre | --program-pr | --program-p)
   1009     ac_prev=program_prefix ;;
   1010   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1011   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1012     program_prefix=$ac_optarg ;;
   1013 
   1014   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1015   | --program-suf | --program-su | --program-s)
   1016     ac_prev=program_suffix ;;
   1017   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1018   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1019     program_suffix=$ac_optarg ;;
   1020 
   1021   -program-transform-name | --program-transform-name \
   1022   | --program-transform-nam | --program-transform-na \
   1023   | --program-transform-n | --program-transform- \
   1024   | --program-transform | --program-transfor \
   1025   | --program-transfo | --program-transf \
   1026   | --program-trans | --program-tran \
   1027   | --progr-tra | --program-tr | --program-t)
   1028     ac_prev=program_transform_name ;;
   1029   -program-transform-name=* | --program-transform-name=* \
   1030   | --program-transform-nam=* | --program-transform-na=* \
   1031   | --program-transform-n=* | --program-transform-=* \
   1032   | --program-transform=* | --program-transfor=* \
   1033   | --program-transfo=* | --program-transf=* \
   1034   | --program-trans=* | --program-tran=* \
   1035   | --progr-tra=* | --program-tr=* | --program-t=*)
   1036     program_transform_name=$ac_optarg ;;
   1037 
   1038   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1039     ac_prev=pdfdir ;;
   1040   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1041     pdfdir=$ac_optarg ;;
   1042 
   1043   -psdir | --psdir | --psdi | --psd | --ps)
   1044     ac_prev=psdir ;;
   1045   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1046     psdir=$ac_optarg ;;
   1047 
   1048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1049   | -silent | --silent | --silen | --sile | --sil)
   1050     silent=yes ;;
   1051 
   1052   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1053     ac_prev=sbindir ;;
   1054   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1055   | --sbi=* | --sb=*)
   1056     sbindir=$ac_optarg ;;
   1057 
   1058   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1059   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1060   | --sharedst | --shareds | --shared | --share | --shar \
   1061   | --sha | --sh)
   1062     ac_prev=sharedstatedir ;;
   1063   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1064   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1065   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1066   | --sha=* | --sh=*)
   1067     sharedstatedir=$ac_optarg ;;
   1068 
   1069   -site | --site | --sit)
   1070     ac_prev=site ;;
   1071   -site=* | --site=* | --sit=*)
   1072     site=$ac_optarg ;;
   1073 
   1074   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1075     ac_prev=srcdir ;;
   1076   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1077     srcdir=$ac_optarg ;;
   1078 
   1079   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1080   | --syscon | --sysco | --sysc | --sys | --sy)
   1081     ac_prev=sysconfdir ;;
   1082   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1083   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1084     sysconfdir=$ac_optarg ;;
   1085 
   1086   -target | --target | --targe | --targ | --tar | --ta | --t)
   1087     ac_prev=target_alias ;;
   1088   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1089     target_alias=$ac_optarg ;;
   1090 
   1091   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1092     verbose=yes ;;
   1093 
   1094   -version | --version | --versio | --versi | --vers | -V)
   1095     ac_init_version=: ;;
   1096 
   1097   -with-* | --with-*)
   1098     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1099     # Reject names that are not valid shell variable names.
   1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1101       as_fn_error $? "invalid package name: $ac_useropt"
   1102     ac_useropt_orig=$ac_useropt
   1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1104     case $ac_user_opts in
   1105       *"
   1106 "with_$ac_useropt"
   1107 "*) ;;
   1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1109 	 ac_unrecognized_sep=', ';;
   1110     esac
   1111     eval with_$ac_useropt=\$ac_optarg ;;
   1112 
   1113   -without-* | --without-*)
   1114     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1115     # Reject names that are not valid shell variable names.
   1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1117       as_fn_error $? "invalid package name: $ac_useropt"
   1118     ac_useropt_orig=$ac_useropt
   1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1120     case $ac_user_opts in
   1121       *"
   1122 "with_$ac_useropt"
   1123 "*) ;;
   1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1125 	 ac_unrecognized_sep=', ';;
   1126     esac
   1127     eval with_$ac_useropt=no ;;
   1128 
   1129   --x)
   1130     # Obsolete; use --with-x.
   1131     with_x=yes ;;
   1132 
   1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1134   | --x-incl | --x-inc | --x-in | --x-i)
   1135     ac_prev=x_includes ;;
   1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1138     x_includes=$ac_optarg ;;
   1139 
   1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1142     ac_prev=x_libraries ;;
   1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1145     x_libraries=$ac_optarg ;;
   1146 
   1147   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1148 Try \`$0 --help' for more information"
   1149     ;;
   1150 
   1151   *=*)
   1152     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1153     # Reject names that are not valid shell variable names.
   1154     case $ac_envvar in #(
   1155       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1156       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1157     esac
   1158     eval $ac_envvar=\$ac_optarg
   1159     export $ac_envvar ;;
   1160 
   1161   *)
   1162     # FIXME: should be removed in autoconf 3.0.
   1163     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1165       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1166     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1167     ;;
   1168 
   1169   esac
   1170 done
   1171 
   1172 if test -n "$ac_prev"; then
   1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1174   as_fn_error $? "missing argument to $ac_option"
   1175 fi
   1176 
   1177 if test -n "$ac_unrecognized_opts"; then
   1178   case $enable_option_checking in
   1179     no) ;;
   1180     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1181     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1182   esac
   1183 fi
   1184 
   1185 # Check all directory arguments for consistency.
   1186 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1187 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1188 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1189 		libdir localedir mandir
   1190 do
   1191   eval ac_val=\$$ac_var
   1192   # Remove trailing slashes.
   1193   case $ac_val in
   1194     */ )
   1195       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1196       eval $ac_var=\$ac_val;;
   1197   esac
   1198   # Be sure to have absolute directory names.
   1199   case $ac_val in
   1200     [\\/$]* | ?:[\\/]* )  continue;;
   1201     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1202   esac
   1203   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1204 done
   1205 
   1206 # There might be people who depend on the old broken behavior: `$host'
   1207 # used to hold the argument of --host etc.
   1208 # FIXME: To remove some day.
   1209 build=$build_alias
   1210 host=$host_alias
   1211 target=$target_alias
   1212 
   1213 # FIXME: To remove some day.
   1214 if test "x$host_alias" != x; then
   1215   if test "x$build_alias" = x; then
   1216     cross_compiling=maybe
   1217   elif test "x$build_alias" != "x$host_alias"; then
   1218     cross_compiling=yes
   1219   fi
   1220 fi
   1221 
   1222 ac_tool_prefix=
   1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1224 
   1225 test "$silent" = yes && exec 6>/dev/null
   1226 
   1227 
   1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1229 ac_ls_di=`ls -di .` &&
   1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1231   as_fn_error $? "working directory cannot be determined"
   1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1233   as_fn_error $? "pwd does not report name of working directory"
   1234 
   1235 
   1236 # Find the source files, if location was not specified.
   1237 if test -z "$srcdir"; then
   1238   ac_srcdir_defaulted=yes
   1239   # Try the directory containing this script, then the parent directory.
   1240   ac_confdir=`$as_dirname -- "$as_myself" ||
   1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1242 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1243 	 X"$as_myself" : 'X\(//\)$' \| \
   1244 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1245 $as_echo X"$as_myself" |
   1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1247 	    s//\1/
   1248 	    q
   1249 	  }
   1250 	  /^X\(\/\/\)[^/].*/{
   1251 	    s//\1/
   1252 	    q
   1253 	  }
   1254 	  /^X\(\/\/\)$/{
   1255 	    s//\1/
   1256 	    q
   1257 	  }
   1258 	  /^X\(\/\).*/{
   1259 	    s//\1/
   1260 	    q
   1261 	  }
   1262 	  s/.*/./; q'`
   1263   srcdir=$ac_confdir
   1264   if test ! -r "$srcdir/$ac_unique_file"; then
   1265     srcdir=..
   1266   fi
   1267 else
   1268   ac_srcdir_defaulted=no
   1269 fi
   1270 if test ! -r "$srcdir/$ac_unique_file"; then
   1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1272   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1273 fi
   1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1275 ac_abs_confdir=`(
   1276 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1277 	pwd)`
   1278 # When building in place, set srcdir=.
   1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1280   srcdir=.
   1281 fi
   1282 # Remove unnecessary trailing slashes from srcdir.
   1283 # Double slashes in file names in object file debugging info
   1284 # mess up M-x gdb in Emacs.
   1285 case $srcdir in
   1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1287 esac
   1288 for ac_var in $ac_precious_vars; do
   1289   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1290   eval ac_env_${ac_var}_value=\$${ac_var}
   1291   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1292   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1293 done
   1294 
   1295 #
   1296 # Report the --help message.
   1297 #
   1298 if test "$ac_init_help" = "long"; then
   1299   # Omit some internal or obsolete options to make the list less imposing.
   1300   # This message is too long to be a string in the A/UX 3.1 sh.
   1301   cat <<_ACEOF
   1302 \`configure' configures this package to adapt to many kinds of systems.
   1303 
   1304 Usage: $0 [OPTION]... [VAR=VALUE]...
   1305 
   1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1307 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1308 
   1309 Defaults for the options are specified in brackets.
   1310 
   1311 Configuration:
   1312   -h, --help              display this help and exit
   1313       --help=short        display options specific to this package
   1314       --help=recursive    display the short help of all the included packages
   1315   -V, --version           display version information and exit
   1316   -q, --quiet, --silent   do not print \`checking ...' messages
   1317       --cache-file=FILE   cache test results in FILE [disabled]
   1318   -C, --config-cache      alias for \`--cache-file=config.cache'
   1319   -n, --no-create         do not create output files
   1320       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1321 
   1322 Installation directories:
   1323   --prefix=PREFIX         install architecture-independent files in PREFIX
   1324                           [$ac_default_prefix]
   1325   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1326                           [PREFIX]
   1327 
   1328 By default, \`make install' will install all the files in
   1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1331 for instance \`--prefix=\$HOME'.
   1332 
   1333 For better control, use the options below.
   1334 
   1335 Fine tuning of the installation directories:
   1336   --bindir=DIR            user executables [EPREFIX/bin]
   1337   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1338   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1339   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1340   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1341   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1342   --libdir=DIR            object code libraries [EPREFIX/lib]
   1343   --includedir=DIR        C header files [PREFIX/include]
   1344   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1345   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1346   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1347   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1348   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1349   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1350   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1351   --htmldir=DIR           html documentation [DOCDIR]
   1352   --dvidir=DIR            dvi documentation [DOCDIR]
   1353   --pdfdir=DIR            pdf documentation [DOCDIR]
   1354   --psdir=DIR             ps documentation [DOCDIR]
   1355 _ACEOF
   1356 
   1357   cat <<\_ACEOF
   1358 
   1359 System types:
   1360   --build=BUILD     configure for building on BUILD [guessed]
   1361   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1362   --target=TARGET   configure for building compilers for TARGET [HOST]
   1363 _ACEOF
   1364 fi
   1365 
   1366 if test -n "$ac_init_help"; then
   1367 
   1368   cat <<\_ACEOF
   1369 
   1370 Optional Features:
   1371   --disable-option-checking  ignore unrecognized --enable/--with options
   1372   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1373   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1374   --disable-largefile     omit support for large files
   1375   --disable-protochain    disable \"protochain\" insn
   1376   --enable-ipv6           build IPv6-capable version [default=yes, if
   1377                           getaddrinfo available]
   1378   --enable-optimizer-dbg  build optimizer debugging code
   1379   --enable-yydebug        build parser debugging code
   1380   --disable-universal     don't build universal on OS X
   1381   --enable-shared         build shared libraries [default=yes, if support
   1382                           available]
   1383   --enable-bluetooth      enable Bluetooth support [default=yes, if support
   1384                           available]
   1385   --enable-canusb         enable canusb support [default=yes, if support
   1386                           available]
   1387   --enable-can            enable CAN support [default=yes, if support
   1388                           available]
   1389   --enable-dbus           enable D-Bus capture support [default=yes, if
   1390                           support available]
   1391 
   1392 Optional Packages:
   1393   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1394   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1395   --without-gcc           don't use gcc
   1396   --with-sita             include SITA support
   1397   --with-pcap=TYPE        use packet capture TYPE
   1398   --without-libnl         disable libnl support [default=yes, on Linux, if
   1399                           present]
   1400   --with-dag[=DIR]        include Endace DAG support ["yes", "no" or DIR;
   1401                           default="yes" on BSD and Linux if present]
   1402   --with-dag-includes=DIR Endace DAG include directory
   1403   --with-dag-libraries=DIR
   1404                           Endace DAG library directory
   1405   --with-septel[=DIR]     include Septel support (located in directory DIR, if
   1406                           supplied). [default=yes, on Linux, if present]
   1407   --with-snf[=DIR]        include Myricom SNF support ["yes", "no" or DIR;
   1408                           default="yes" on BSD and Linux if present]
   1409   --with-snf-includes=DIR Myricom SNF include directory
   1410   --with-snf-libraries=DIR
   1411                           Myricom SNF library directory
   1412   --without-flex          don't use flex
   1413   --without-bison         don't use bison
   1414 
   1415 Some influential environment variables:
   1416   CC          C compiler command
   1417   CFLAGS      C compiler flags
   1418   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1419               nonstandard directory <lib dir>
   1420   LIBS        libraries to pass to the linker, e.g. -l<library>
   1421   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1422               you have headers in a nonstandard directory <include dir>
   1423   CPP         C preprocessor
   1424 
   1425 Use these variables to override the choices made by `configure' or to help
   1426 it to find libraries and programs with nonstandard names/locations.
   1427 
   1428 Report bugs to the package provider.
   1429 _ACEOF
   1430 ac_status=$?
   1431 fi
   1432 
   1433 if test "$ac_init_help" = "recursive"; then
   1434   # If there are subdirs, report their specific --help.
   1435   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1436     test -d "$ac_dir" ||
   1437       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1438       continue
   1439     ac_builddir=.
   1440 
   1441 case "$ac_dir" in
   1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1443 *)
   1444   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1445   # A ".." for each directory in $ac_dir_suffix.
   1446   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1447   case $ac_top_builddir_sub in
   1448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1450   esac ;;
   1451 esac
   1452 ac_abs_top_builddir=$ac_pwd
   1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1454 # for backward compatibility:
   1455 ac_top_builddir=$ac_top_build_prefix
   1456 
   1457 case $srcdir in
   1458   .)  # We are building in place.
   1459     ac_srcdir=.
   1460     ac_top_srcdir=$ac_top_builddir_sub
   1461     ac_abs_top_srcdir=$ac_pwd ;;
   1462   [\\/]* | ?:[\\/]* )  # Absolute name.
   1463     ac_srcdir=$srcdir$ac_dir_suffix;
   1464     ac_top_srcdir=$srcdir
   1465     ac_abs_top_srcdir=$srcdir ;;
   1466   *) # Relative name.
   1467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1468     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1470 esac
   1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1472 
   1473     cd "$ac_dir" || { ac_status=$?; continue; }
   1474     # Check for guested configure.
   1475     if test -f "$ac_srcdir/configure.gnu"; then
   1476       echo &&
   1477       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1478     elif test -f "$ac_srcdir/configure"; then
   1479       echo &&
   1480       $SHELL "$ac_srcdir/configure" --help=recursive
   1481     else
   1482       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1483     fi || ac_status=$?
   1484     cd "$ac_pwd" || { ac_status=$?; break; }
   1485   done
   1486 fi
   1487 
   1488 test -n "$ac_init_help" && exit $ac_status
   1489 if $ac_init_version; then
   1490   cat <<\_ACEOF
   1491 configure
   1492 generated by GNU Autoconf 2.69
   1493 
   1494 Copyright (C) 2012 Free Software Foundation, Inc.
   1495 This configure script is free software; the Free Software Foundation
   1496 gives unlimited permission to copy, distribute and modify it.
   1497 _ACEOF
   1498   exit
   1499 fi
   1500 
   1501 ## ------------------------ ##
   1502 ## Autoconf initialization. ##
   1503 ## ------------------------ ##
   1504 
   1505 # ac_fn_c_try_compile LINENO
   1506 # --------------------------
   1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1508 ac_fn_c_try_compile ()
   1509 {
   1510   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1511   rm -f conftest.$ac_objext
   1512   if { { ac_try="$ac_compile"
   1513 case "(($ac_try" in
   1514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1515   *) ac_try_echo=$ac_try;;
   1516 esac
   1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1518 $as_echo "$ac_try_echo"; } >&5
   1519   (eval "$ac_compile") 2>conftest.err
   1520   ac_status=$?
   1521   if test -s conftest.err; then
   1522     grep -v '^ *+' conftest.err >conftest.er1
   1523     cat conftest.er1 >&5
   1524     mv -f conftest.er1 conftest.err
   1525   fi
   1526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1527   test $ac_status = 0; } && {
   1528 	 test -z "$ac_c_werror_flag" ||
   1529 	 test ! -s conftest.err
   1530        } && test -s conftest.$ac_objext; then :
   1531   ac_retval=0
   1532 else
   1533   $as_echo "$as_me: failed program was:" >&5
   1534 sed 's/^/| /' conftest.$ac_ext >&5
   1535 
   1536 	ac_retval=1
   1537 fi
   1538   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1539   as_fn_set_status $ac_retval
   1540 
   1541 } # ac_fn_c_try_compile
   1542 
   1543 # ac_fn_c_try_cpp LINENO
   1544 # ----------------------
   1545 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1546 ac_fn_c_try_cpp ()
   1547 {
   1548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1549   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1550 case "(($ac_try" in
   1551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1552   *) ac_try_echo=$ac_try;;
   1553 esac
   1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1555 $as_echo "$ac_try_echo"; } >&5
   1556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1557   ac_status=$?
   1558   if test -s conftest.err; then
   1559     grep -v '^ *+' conftest.err >conftest.er1
   1560     cat conftest.er1 >&5
   1561     mv -f conftest.er1 conftest.err
   1562   fi
   1563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1564   test $ac_status = 0; } > conftest.i && {
   1565 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1566 	 test ! -s conftest.err
   1567        }; then :
   1568   ac_retval=0
   1569 else
   1570   $as_echo "$as_me: failed program was:" >&5
   1571 sed 's/^/| /' conftest.$ac_ext >&5
   1572 
   1573     ac_retval=1
   1574 fi
   1575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1576   as_fn_set_status $ac_retval
   1577 
   1578 } # ac_fn_c_try_cpp
   1579 
   1580 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1581 # -------------------------------------------------------
   1582 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1583 # the include files in INCLUDES and setting the cache variable VAR
   1584 # accordingly.
   1585 ac_fn_c_check_header_mongrel ()
   1586 {
   1587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1588   if eval \${$3+:} false; then :
   1589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1590 $as_echo_n "checking for $2... " >&6; }
   1591 if eval \${$3+:} false; then :
   1592   $as_echo_n "(cached) " >&6
   1593 fi
   1594 eval ac_res=\$$3
   1595 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1596 $as_echo "$ac_res" >&6; }
   1597 else
   1598   # Is the header compilable?
   1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1600 $as_echo_n "checking $2 usability... " >&6; }
   1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1602 /* end confdefs.h.  */
   1603 $4
   1604 #include <$2>
   1605 _ACEOF
   1606 if ac_fn_c_try_compile "$LINENO"; then :
   1607   ac_header_compiler=yes
   1608 else
   1609   ac_header_compiler=no
   1610 fi
   1611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1613 $as_echo "$ac_header_compiler" >&6; }
   1614 
   1615 # Is the header present?
   1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1617 $as_echo_n "checking $2 presence... " >&6; }
   1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1619 /* end confdefs.h.  */
   1620 #include <$2>
   1621 _ACEOF
   1622 if ac_fn_c_try_cpp "$LINENO"; then :
   1623   ac_header_preproc=yes
   1624 else
   1625   ac_header_preproc=no
   1626 fi
   1627 rm -f conftest.err conftest.i conftest.$ac_ext
   1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1629 $as_echo "$ac_header_preproc" >&6; }
   1630 
   1631 # So?  What about this header?
   1632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1633   yes:no: )
   1634     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1635 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1636     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1637 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1638     ;;
   1639   no:yes:* )
   1640     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1641 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1643 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1645 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1647 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1648     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1649 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1650     ;;
   1651 esac
   1652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1653 $as_echo_n "checking for $2... " >&6; }
   1654 if eval \${$3+:} false; then :
   1655   $as_echo_n "(cached) " >&6
   1656 else
   1657   eval "$3=\$ac_header_compiler"
   1658 fi
   1659 eval ac_res=\$$3
   1660 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1661 $as_echo "$ac_res" >&6; }
   1662 fi
   1663   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1664 
   1665 } # ac_fn_c_check_header_mongrel
   1666 
   1667 # ac_fn_c_try_run LINENO
   1668 # ----------------------
   1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1670 # that executables *can* be run.
   1671 ac_fn_c_try_run ()
   1672 {
   1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1674   if { { ac_try="$ac_link"
   1675 case "(($ac_try" in
   1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1677   *) ac_try_echo=$ac_try;;
   1678 esac
   1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1680 $as_echo "$ac_try_echo"; } >&5
   1681   (eval "$ac_link") 2>&5
   1682   ac_status=$?
   1683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1684   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1685   { { case "(($ac_try" in
   1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1687   *) ac_try_echo=$ac_try;;
   1688 esac
   1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1690 $as_echo "$ac_try_echo"; } >&5
   1691   (eval "$ac_try") 2>&5
   1692   ac_status=$?
   1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1694   test $ac_status = 0; }; }; then :
   1695   ac_retval=0
   1696 else
   1697   $as_echo "$as_me: program exited with status $ac_status" >&5
   1698        $as_echo "$as_me: failed program was:" >&5
   1699 sed 's/^/| /' conftest.$ac_ext >&5
   1700 
   1701        ac_retval=$ac_status
   1702 fi
   1703   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1704   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1705   as_fn_set_status $ac_retval
   1706 
   1707 } # ac_fn_c_try_run
   1708 
   1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1710 # -------------------------------------------------------
   1711 # Tests whether HEADER exists and can be compiled using the include files in
   1712 # INCLUDES, setting the cache variable VAR accordingly.
   1713 ac_fn_c_check_header_compile ()
   1714 {
   1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1717 $as_echo_n "checking for $2... " >&6; }
   1718 if eval \${$3+:} false; then :
   1719   $as_echo_n "(cached) " >&6
   1720 else
   1721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1722 /* end confdefs.h.  */
   1723 $4
   1724 #include <$2>
   1725 _ACEOF
   1726 if ac_fn_c_try_compile "$LINENO"; then :
   1727   eval "$3=yes"
   1728 else
   1729   eval "$3=no"
   1730 fi
   1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1732 fi
   1733 eval ac_res=\$$3
   1734 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1735 $as_echo "$ac_res" >&6; }
   1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1737 
   1738 } # ac_fn_c_check_header_compile
   1739 
   1740 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1741 # -------------------------------------------
   1742 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1743 # variable VAR accordingly.
   1744 ac_fn_c_check_type ()
   1745 {
   1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1748 $as_echo_n "checking for $2... " >&6; }
   1749 if eval \${$3+:} false; then :
   1750   $as_echo_n "(cached) " >&6
   1751 else
   1752   eval "$3=no"
   1753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1754 /* end confdefs.h.  */
   1755 $4
   1756 int
   1757 main ()
   1758 {
   1759 if (sizeof ($2))
   1760 	 return 0;
   1761   ;
   1762   return 0;
   1763 }
   1764 _ACEOF
   1765 if ac_fn_c_try_compile "$LINENO"; then :
   1766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1767 /* end confdefs.h.  */
   1768 $4
   1769 int
   1770 main ()
   1771 {
   1772 if (sizeof (($2)))
   1773 	    return 0;
   1774   ;
   1775   return 0;
   1776 }
   1777 _ACEOF
   1778 if ac_fn_c_try_compile "$LINENO"; then :
   1779 
   1780 else
   1781   eval "$3=yes"
   1782 fi
   1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1784 fi
   1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1786 fi
   1787 eval ac_res=\$$3
   1788 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1789 $as_echo "$ac_res" >&6; }
   1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1791 
   1792 } # ac_fn_c_check_type
   1793 
   1794 # ac_fn_c_try_link LINENO
   1795 # -----------------------
   1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1797 ac_fn_c_try_link ()
   1798 {
   1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1800   rm -f conftest.$ac_objext conftest$ac_exeext
   1801   if { { ac_try="$ac_link"
   1802 case "(($ac_try" in
   1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1804   *) ac_try_echo=$ac_try;;
   1805 esac
   1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1807 $as_echo "$ac_try_echo"; } >&5
   1808   (eval "$ac_link") 2>conftest.err
   1809   ac_status=$?
   1810   if test -s conftest.err; then
   1811     grep -v '^ *+' conftest.err >conftest.er1
   1812     cat conftest.er1 >&5
   1813     mv -f conftest.er1 conftest.err
   1814   fi
   1815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1816   test $ac_status = 0; } && {
   1817 	 test -z "$ac_c_werror_flag" ||
   1818 	 test ! -s conftest.err
   1819        } && test -s conftest$ac_exeext && {
   1820 	 test "$cross_compiling" = yes ||
   1821 	 test -x conftest$ac_exeext
   1822        }; then :
   1823   ac_retval=0
   1824 else
   1825   $as_echo "$as_me: failed program was:" >&5
   1826 sed 's/^/| /' conftest.$ac_ext >&5
   1827 
   1828 	ac_retval=1
   1829 fi
   1830   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1831   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1832   # interfere with the next link command; also delete a directory that is
   1833   # left behind by Apple's compiler.  We do this before executing the actions.
   1834   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1836   as_fn_set_status $ac_retval
   1837 
   1838 } # ac_fn_c_try_link
   1839 
   1840 # ac_fn_c_check_func LINENO FUNC VAR
   1841 # ----------------------------------
   1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1843 ac_fn_c_check_func ()
   1844 {
   1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1847 $as_echo_n "checking for $2... " >&6; }
   1848 if eval \${$3+:} false; then :
   1849   $as_echo_n "(cached) " >&6
   1850 else
   1851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1852 /* end confdefs.h.  */
   1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1855 #define $2 innocuous_$2
   1856 
   1857 /* System header to define __stub macros and hopefully few prototypes,
   1858     which can conflict with char $2 (); below.
   1859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1860     <limits.h> exists even on freestanding compilers.  */
   1861 
   1862 #ifdef __STDC__
   1863 # include <limits.h>
   1864 #else
   1865 # include <assert.h>
   1866 #endif
   1867 
   1868 #undef $2
   1869 
   1870 /* Override any GCC internal prototype to avoid an error.
   1871    Use char because int might match the return type of a GCC
   1872    builtin and then its argument prototype would still apply.  */
   1873 #ifdef __cplusplus
   1874 extern "C"
   1875 #endif
   1876 char $2 ();
   1877 /* The GNU C library defines this for functions which it implements
   1878     to always fail with ENOSYS.  Some functions are actually named
   1879     something starting with __ and the normal name is an alias.  */
   1880 #if defined __stub_$2 || defined __stub___$2
   1881 choke me
   1882 #endif
   1883 
   1884 int
   1885 main ()
   1886 {
   1887 return $2 ();
   1888   ;
   1889   return 0;
   1890 }
   1891 _ACEOF
   1892 if ac_fn_c_try_link "$LINENO"; then :
   1893   eval "$3=yes"
   1894 else
   1895   eval "$3=no"
   1896 fi
   1897 rm -f core conftest.err conftest.$ac_objext \
   1898     conftest$ac_exeext conftest.$ac_ext
   1899 fi
   1900 eval ac_res=\$$3
   1901 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1902 $as_echo "$ac_res" >&6; }
   1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1904 
   1905 } # ac_fn_c_check_func
   1906 
   1907 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   1908 # ---------------------------------------------
   1909 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1910 # accordingly.
   1911 ac_fn_c_check_decl ()
   1912 {
   1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1914   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1915   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1917 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   1918 if eval \${$3+:} false; then :
   1919   $as_echo_n "(cached) " >&6
   1920 else
   1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1922 /* end confdefs.h.  */
   1923 $4
   1924 int
   1925 main ()
   1926 {
   1927 #ifndef $as_decl_name
   1928 #ifdef __cplusplus
   1929   (void) $as_decl_use;
   1930 #else
   1931   (void) $as_decl_name;
   1932 #endif
   1933 #endif
   1934 
   1935   ;
   1936   return 0;
   1937 }
   1938 _ACEOF
   1939 if ac_fn_c_try_compile "$LINENO"; then :
   1940   eval "$3=yes"
   1941 else
   1942   eval "$3=no"
   1943 fi
   1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1945 fi
   1946 eval ac_res=\$$3
   1947 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1948 $as_echo "$ac_res" >&6; }
   1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1950 
   1951 } # ac_fn_c_check_decl
   1952 cat >config.log <<_ACEOF
   1953 This file contains any messages produced by compilers while
   1954 running configure, to aid debugging if configure makes a mistake.
   1955 
   1956 It was created by $as_me, which was
   1957 generated by GNU Autoconf 2.69.  Invocation command line was
   1958 
   1959   $ $0 $@
   1960 
   1961 _ACEOF
   1962 exec 5>>config.log
   1963 {
   1964 cat <<_ASUNAME
   1965 ## --------- ##
   1966 ## Platform. ##
   1967 ## --------- ##
   1968 
   1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1974 
   1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1976 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1977 
   1978 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1979 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1981 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1982 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1983 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1984 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1985 
   1986 _ASUNAME
   1987 
   1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1989 for as_dir in $PATH
   1990 do
   1991   IFS=$as_save_IFS
   1992   test -z "$as_dir" && as_dir=.
   1993     $as_echo "PATH: $as_dir"
   1994   done
   1995 IFS=$as_save_IFS
   1996 
   1997 } >&5
   1998 
   1999 cat >&5 <<_ACEOF
   2000 
   2001 
   2002 ## ----------- ##
   2003 ## Core tests. ##
   2004 ## ----------- ##
   2005 
   2006 _ACEOF
   2007 
   2008 
   2009 # Keep a trace of the command line.
   2010 # Strip out --no-create and --no-recursion so they do not pile up.
   2011 # Strip out --silent because we don't want to record it for future runs.
   2012 # Also quote any args containing shell meta-characters.
   2013 # Make two passes to allow for proper duplicate-argument suppression.
   2014 ac_configure_args=
   2015 ac_configure_args0=
   2016 ac_configure_args1=
   2017 ac_must_keep_next=false
   2018 for ac_pass in 1 2
   2019 do
   2020   for ac_arg
   2021   do
   2022     case $ac_arg in
   2023     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2024     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2025     | -silent | --silent | --silen | --sile | --sil)
   2026       continue ;;
   2027     *\'*)
   2028       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2029     esac
   2030     case $ac_pass in
   2031     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2032     2)
   2033       as_fn_append ac_configure_args1 " '$ac_arg'"
   2034       if test $ac_must_keep_next = true; then
   2035 	ac_must_keep_next=false # Got value, back to normal.
   2036       else
   2037 	case $ac_arg in
   2038 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2039 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2040 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2041 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2042 	    case "$ac_configure_args0 " in
   2043 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2044 	    esac
   2045 	    ;;
   2046 	  -* ) ac_must_keep_next=true ;;
   2047 	esac
   2048       fi
   2049       as_fn_append ac_configure_args " '$ac_arg'"
   2050       ;;
   2051     esac
   2052   done
   2053 done
   2054 { ac_configure_args0=; unset ac_configure_args0;}
   2055 { ac_configure_args1=; unset ac_configure_args1;}
   2056 
   2057 # When interrupted or exit'd, cleanup temporary files, and complete
   2058 # config.log.  We remove comments because anyway the quotes in there
   2059 # would cause problems or look ugly.
   2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2062 trap 'exit_status=$?
   2063   # Save into config.log some information that might help in debugging.
   2064   {
   2065     echo
   2066 
   2067     $as_echo "## ---------------- ##
   2068 ## Cache variables. ##
   2069 ## ---------------- ##"
   2070     echo
   2071     # The following way of writing the cache mishandles newlines in values,
   2072 (
   2073   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2074     eval ac_val=\$$ac_var
   2075     case $ac_val in #(
   2076     *${as_nl}*)
   2077       case $ac_var in #(
   2078       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2080       esac
   2081       case $ac_var in #(
   2082       _ | IFS | as_nl) ;; #(
   2083       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2084       *) { eval $ac_var=; unset $ac_var;} ;;
   2085       esac ;;
   2086     esac
   2087   done
   2088   (set) 2>&1 |
   2089     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2090     *${as_nl}ac_space=\ *)
   2091       sed -n \
   2092 	"s/'\''/'\''\\\\'\'''\''/g;
   2093 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2094       ;; #(
   2095     *)
   2096       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2097       ;;
   2098     esac |
   2099     sort
   2100 )
   2101     echo
   2102 
   2103     $as_echo "## ----------------- ##
   2104 ## Output variables. ##
   2105 ## ----------------- ##"
   2106     echo
   2107     for ac_var in $ac_subst_vars
   2108     do
   2109       eval ac_val=\$$ac_var
   2110       case $ac_val in
   2111       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2112       esac
   2113       $as_echo "$ac_var='\''$ac_val'\''"
   2114     done | sort
   2115     echo
   2116 
   2117     if test -n "$ac_subst_files"; then
   2118       $as_echo "## ------------------- ##
   2119 ## File substitutions. ##
   2120 ## ------------------- ##"
   2121       echo
   2122       for ac_var in $ac_subst_files
   2123       do
   2124 	eval ac_val=\$$ac_var
   2125 	case $ac_val in
   2126 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2127 	esac
   2128 	$as_echo "$ac_var='\''$ac_val'\''"
   2129       done | sort
   2130       echo
   2131     fi
   2132 
   2133     if test -s confdefs.h; then
   2134       $as_echo "## ----------- ##
   2135 ## confdefs.h. ##
   2136 ## ----------- ##"
   2137       echo
   2138       cat confdefs.h
   2139       echo
   2140     fi
   2141     test "$ac_signal" != 0 &&
   2142       $as_echo "$as_me: caught signal $ac_signal"
   2143     $as_echo "$as_me: exit $exit_status"
   2144   } >&5
   2145   rm -f core *.core core.conftest.* &&
   2146     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2147     exit $exit_status
   2148 ' 0
   2149 for ac_signal in 1 2 13 15; do
   2150   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2151 done
   2152 ac_signal=0
   2153 
   2154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2155 rm -f -r conftest* confdefs.h
   2156 
   2157 $as_echo "/* confdefs.h */" > confdefs.h
   2158 
   2159 # Predefined preprocessor variables.
   2160 
   2161 cat >>confdefs.h <<_ACEOF
   2162 #define PACKAGE_NAME "$PACKAGE_NAME"
   2163 _ACEOF
   2164 
   2165 cat >>confdefs.h <<_ACEOF
   2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2167 _ACEOF
   2168 
   2169 cat >>confdefs.h <<_ACEOF
   2170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2171 _ACEOF
   2172 
   2173 cat >>confdefs.h <<_ACEOF
   2174 #define PACKAGE_STRING "$PACKAGE_STRING"
   2175 _ACEOF
   2176 
   2177 cat >>confdefs.h <<_ACEOF
   2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2179 _ACEOF
   2180 
   2181 cat >>confdefs.h <<_ACEOF
   2182 #define PACKAGE_URL "$PACKAGE_URL"
   2183 _ACEOF
   2184 
   2185 
   2186 # Let the site file select an alternate cache file if it wants to.
   2187 # Prefer an explicitly selected file to automatically selected ones.
   2188 ac_site_file1=NONE
   2189 ac_site_file2=NONE
   2190 if test -n "$CONFIG_SITE"; then
   2191   # We do not want a PATH search for config.site.
   2192   case $CONFIG_SITE in #((
   2193     -*)  ac_site_file1=./$CONFIG_SITE;;
   2194     */*) ac_site_file1=$CONFIG_SITE;;
   2195     *)   ac_site_file1=./$CONFIG_SITE;;
   2196   esac
   2197 elif test "x$prefix" != xNONE; then
   2198   ac_site_file1=$prefix/share/config.site
   2199   ac_site_file2=$prefix/etc/config.site
   2200 else
   2201   ac_site_file1=$ac_default_prefix/share/config.site
   2202   ac_site_file2=$ac_default_prefix/etc/config.site
   2203 fi
   2204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2205 do
   2206   test "x$ac_site_file" = xNONE && continue
   2207   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2208     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2210     sed 's/^/| /' "$ac_site_file" >&5
   2211     . "$ac_site_file" \
   2212       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2214 as_fn_error $? "failed to load site script $ac_site_file
   2215 See \`config.log' for more details" "$LINENO" 5; }
   2216   fi
   2217 done
   2218 
   2219 if test -r "$cache_file"; then
   2220   # Some versions of bash will fail to source /dev/null (special files
   2221   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2222   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2223     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2225     case $cache_file in
   2226       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2227       *)                      . "./$cache_file";;
   2228     esac
   2229   fi
   2230 else
   2231   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2233   >$cache_file
   2234 fi
   2235 
   2236 # Check that the precious variables saved in the cache have kept the same
   2237 # value.
   2238 ac_cache_corrupted=false
   2239 for ac_var in $ac_precious_vars; do
   2240   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2241   eval ac_new_set=\$ac_env_${ac_var}_set
   2242   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2243   eval ac_new_val=\$ac_env_${ac_var}_value
   2244   case $ac_old_set,$ac_new_set in
   2245     set,)
   2246       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2248       ac_cache_corrupted=: ;;
   2249     ,set)
   2250       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2252       ac_cache_corrupted=: ;;
   2253     ,);;
   2254     *)
   2255       if test "x$ac_old_val" != "x$ac_new_val"; then
   2256 	# differences in whitespace do not lead to failure.
   2257 	ac_old_val_w=`echo x $ac_old_val`
   2258 	ac_new_val_w=`echo x $ac_new_val`
   2259 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2260 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2262 	  ac_cache_corrupted=:
   2263 	else
   2264 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2266 	  eval $ac_var=\$ac_old_val
   2267 	fi
   2268 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2269 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2270 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2271 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2272       fi;;
   2273   esac
   2274   # Pass precious variables to config.status.
   2275   if test "$ac_new_set" = set; then
   2276     case $ac_new_val in
   2277     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2278     *) ac_arg=$ac_var=$ac_new_val ;;
   2279     esac
   2280     case " $ac_configure_args " in
   2281       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2282       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2283     esac
   2284   fi
   2285 done
   2286 if $ac_cache_corrupted; then
   2287   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2289   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2291   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2292 fi
   2293 ## -------------------- ##
   2294 ## Main body of script. ##
   2295 ## -------------------- ##
   2296 
   2297 ac_ext=c
   2298 ac_cpp='$CPP $CPPFLAGS'
   2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2302 
   2303 
   2304 
   2305 ac_aux_dir=
   2306 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2307   if test -f "$ac_dir/install-sh"; then
   2308     ac_aux_dir=$ac_dir
   2309     ac_install_sh="$ac_aux_dir/install-sh -c"
   2310     break
   2311   elif test -f "$ac_dir/install.sh"; then
   2312     ac_aux_dir=$ac_dir
   2313     ac_install_sh="$ac_aux_dir/install.sh -c"
   2314     break
   2315   elif test -f "$ac_dir/shtool"; then
   2316     ac_aux_dir=$ac_dir
   2317     ac_install_sh="$ac_aux_dir/shtool install -c"
   2318     break
   2319   fi
   2320 done
   2321 if test -z "$ac_aux_dir"; then
   2322   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2323 fi
   2324 
   2325 # These three variables are undocumented and unsupported,
   2326 # and are intended to be withdrawn in a future Autoconf release.
   2327 # They can cause serious problems if a builder's source tree is in a directory
   2328 # whose full name contains unusual characters.
   2329 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2330 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2331 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2332 
   2333 
   2334 # Make sure we can run config.sub.
   2335 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2336   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2337 
   2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2339 $as_echo_n "checking build system type... " >&6; }
   2340 if ${ac_cv_build+:} false; then :
   2341   $as_echo_n "(cached) " >&6
   2342 else
   2343   ac_build_alias=$build_alias
   2344 test "x$ac_build_alias" = x &&
   2345   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2346 test "x$ac_build_alias" = x &&
   2347   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2349   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2350 
   2351 fi
   2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2353 $as_echo "$ac_cv_build" >&6; }
   2354 case $ac_cv_build in
   2355 *-*-*) ;;
   2356 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2357 esac
   2358 build=$ac_cv_build
   2359 ac_save_IFS=$IFS; IFS='-'
   2360 set x $ac_cv_build
   2361 shift
   2362 build_cpu=$1
   2363 build_vendor=$2
   2364 shift; shift
   2365 # Remember, the first character of IFS is used to create $*,
   2366 # except with old shells:
   2367 build_os=$*
   2368 IFS=$ac_save_IFS
   2369 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2370 
   2371 
   2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2373 $as_echo_n "checking host system type... " >&6; }
   2374 if ${ac_cv_host+:} false; then :
   2375   $as_echo_n "(cached) " >&6
   2376 else
   2377   if test "x$host_alias" = x; then
   2378   ac_cv_host=$ac_cv_build
   2379 else
   2380   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2381     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2382 fi
   2383 
   2384 fi
   2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2386 $as_echo "$ac_cv_host" >&6; }
   2387 case $ac_cv_host in
   2388 *-*-*) ;;
   2389 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2390 esac
   2391 host=$ac_cv_host
   2392 ac_save_IFS=$IFS; IFS='-'
   2393 set x $ac_cv_host
   2394 shift
   2395 host_cpu=$1
   2396 host_vendor=$2
   2397 shift; shift
   2398 # Remember, the first character of IFS is used to create $*,
   2399 # except with old shells:
   2400 host_os=$*
   2401 IFS=$ac_save_IFS
   2402 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2403 
   2404 
   2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   2406 $as_echo_n "checking target system type... " >&6; }
   2407 if ${ac_cv_target+:} false; then :
   2408   $as_echo_n "(cached) " >&6
   2409 else
   2410   if test "x$target_alias" = x; then
   2411   ac_cv_target=$ac_cv_host
   2412 else
   2413   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   2414     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   2415 fi
   2416 
   2417 fi
   2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   2419 $as_echo "$ac_cv_target" >&6; }
   2420 case $ac_cv_target in
   2421 *-*-*) ;;
   2422 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   2423 esac
   2424 target=$ac_cv_target
   2425 ac_save_IFS=$IFS; IFS='-'
   2426 set x $ac_cv_target
   2427 shift
   2428 target_cpu=$1
   2429 target_vendor=$2
   2430 shift; shift
   2431 # Remember, the first character of IFS is used to create $*,
   2432 # except with old shells:
   2433 target_os=$*
   2434 IFS=$ac_save_IFS
   2435 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   2436 
   2437 
   2438 # The aliases save the names the user supplied, while $host etc.
   2439 # will get canonicalized.
   2440 test -n "$target_alias" &&
   2441   test "$program_prefix$program_suffix$program_transform_name" = \
   2442     NONENONEs,x,x, &&
   2443   program_prefix=${target_alias}-
   2444 
   2445 
   2446 
   2447 
   2448 
   2449 
   2450 
   2451 
   2452 # Check whether --with-gcc was given.
   2453 if test "${with_gcc+set}" = set; then :
   2454   withval=$with_gcc;
   2455 fi
   2456 
   2457     V_CCOPT=""
   2458     if test "${srcdir}" != "." ; then
   2459 	    V_CCOPT="-I\$(srcdir)"
   2460     fi
   2461     if test "${CFLAGS+set}" = set; then
   2462 	    LBL_CFLAGS="$CFLAGS"
   2463     fi
   2464     if test -z "$CC" ; then
   2465 	    case "$host_os" in
   2466 
   2467 	    bsdi*)
   2468 		    # Extract the first word of "shlicc2", so it can be a program name with args.
   2469 set dummy shlicc2; ac_word=$2
   2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2471 $as_echo_n "checking for $ac_word... " >&6; }
   2472 if ${ac_cv_prog_SHLICC2+:} false; then :
   2473   $as_echo_n "(cached) " >&6
   2474 else
   2475   if test -n "$SHLICC2"; then
   2476   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
   2477 else
   2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2479 for as_dir in $PATH
   2480 do
   2481   IFS=$as_save_IFS
   2482   test -z "$as_dir" && as_dir=.
   2483     for ac_exec_ext in '' $ac_executable_extensions; do
   2484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2485     ac_cv_prog_SHLICC2="yes"
   2486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2487     break 2
   2488   fi
   2489 done
   2490   done
   2491 IFS=$as_save_IFS
   2492 
   2493   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
   2494 fi
   2495 fi
   2496 SHLICC2=$ac_cv_prog_SHLICC2
   2497 if test -n "$SHLICC2"; then
   2498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
   2499 $as_echo "$SHLICC2" >&6; }
   2500 else
   2501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2502 $as_echo "no" >&6; }
   2503 fi
   2504 
   2505 
   2506 		    if test $SHLICC2 = yes ; then
   2507 			    CC=shlicc2
   2508 			    export CC
   2509 		    fi
   2510 		    ;;
   2511 	    esac
   2512     fi
   2513     if test -z "$CC" -a "$with_gcc" = no ; then
   2514 	    CC=cc
   2515 	    export CC
   2516     fi
   2517 
   2518 ac_ext=c
   2519 ac_cpp='$CPP $CPPFLAGS'
   2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2523 if test -n "$ac_tool_prefix"; then
   2524   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2527 $as_echo_n "checking for $ac_word... " >&6; }
   2528 if ${ac_cv_prog_CC+:} false; then :
   2529   $as_echo_n "(cached) " >&6
   2530 else
   2531   if test -n "$CC"; then
   2532   ac_cv_prog_CC="$CC" # Let the user override the test.
   2533 else
   2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2535 for as_dir in $PATH
   2536 do
   2537   IFS=$as_save_IFS
   2538   test -z "$as_dir" && as_dir=.
   2539     for ac_exec_ext in '' $ac_executable_extensions; do
   2540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2541     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2543     break 2
   2544   fi
   2545 done
   2546   done
   2547 IFS=$as_save_IFS
   2548 
   2549 fi
   2550 fi
   2551 CC=$ac_cv_prog_CC
   2552 if test -n "$CC"; then
   2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2554 $as_echo "$CC" >&6; }
   2555 else
   2556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2557 $as_echo "no" >&6; }
   2558 fi
   2559 
   2560 
   2561 fi
   2562 if test -z "$ac_cv_prog_CC"; then
   2563   ac_ct_CC=$CC
   2564   # Extract the first word of "gcc", so it can be a program name with args.
   2565 set dummy gcc; ac_word=$2
   2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2567 $as_echo_n "checking for $ac_word... " >&6; }
   2568 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2569   $as_echo_n "(cached) " >&6
   2570 else
   2571   if test -n "$ac_ct_CC"; then
   2572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2573 else
   2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2575 for as_dir in $PATH
   2576 do
   2577   IFS=$as_save_IFS
   2578   test -z "$as_dir" && as_dir=.
   2579     for ac_exec_ext in '' $ac_executable_extensions; do
   2580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2581     ac_cv_prog_ac_ct_CC="gcc"
   2582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2583     break 2
   2584   fi
   2585 done
   2586   done
   2587 IFS=$as_save_IFS
   2588 
   2589 fi
   2590 fi
   2591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2592 if test -n "$ac_ct_CC"; then
   2593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2594 $as_echo "$ac_ct_CC" >&6; }
   2595 else
   2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2597 $as_echo "no" >&6; }
   2598 fi
   2599 
   2600   if test "x$ac_ct_CC" = x; then
   2601     CC=""
   2602   else
   2603     case $cross_compiling:$ac_tool_warned in
   2604 yes:)
   2605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2607 ac_tool_warned=yes ;;
   2608 esac
   2609     CC=$ac_ct_CC
   2610   fi
   2611 else
   2612   CC="$ac_cv_prog_CC"
   2613 fi
   2614 
   2615 if test -z "$CC"; then
   2616           if test -n "$ac_tool_prefix"; then
   2617     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2618 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2620 $as_echo_n "checking for $ac_word... " >&6; }
   2621 if ${ac_cv_prog_CC+:} false; then :
   2622   $as_echo_n "(cached) " >&6
   2623 else
   2624   if test -n "$CC"; then
   2625   ac_cv_prog_CC="$CC" # Let the user override the test.
   2626 else
   2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2628 for as_dir in $PATH
   2629 do
   2630   IFS=$as_save_IFS
   2631   test -z "$as_dir" && as_dir=.
   2632     for ac_exec_ext in '' $ac_executable_extensions; do
   2633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2634     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2636     break 2
   2637   fi
   2638 done
   2639   done
   2640 IFS=$as_save_IFS
   2641 
   2642 fi
   2643 fi
   2644 CC=$ac_cv_prog_CC
   2645 if test -n "$CC"; then
   2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2647 $as_echo "$CC" >&6; }
   2648 else
   2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2650 $as_echo "no" >&6; }
   2651 fi
   2652 
   2653 
   2654   fi
   2655 fi
   2656 if test -z "$CC"; then
   2657   # Extract the first word of "cc", so it can be a program name with args.
   2658 set dummy cc; ac_word=$2
   2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2660 $as_echo_n "checking for $ac_word... " >&6; }
   2661 if ${ac_cv_prog_CC+:} false; then :
   2662   $as_echo_n "(cached) " >&6
   2663 else
   2664   if test -n "$CC"; then
   2665   ac_cv_prog_CC="$CC" # Let the user override the test.
   2666 else
   2667   ac_prog_rejected=no
   2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2669 for as_dir in $PATH
   2670 do
   2671   IFS=$as_save_IFS
   2672   test -z "$as_dir" && as_dir=.
   2673     for ac_exec_ext in '' $ac_executable_extensions; do
   2674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2675     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2676        ac_prog_rejected=yes
   2677        continue
   2678      fi
   2679     ac_cv_prog_CC="cc"
   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 if test $ac_prog_rejected = yes; then
   2688   # We found a bogon in the path, so make sure we never use it.
   2689   set dummy $ac_cv_prog_CC
   2690   shift
   2691   if test $# != 0; then
   2692     # We chose a different compiler from the bogus one.
   2693     # However, it has the same basename, so the bogon will be chosen
   2694     # first if we set CC to just the basename; use the full file name.
   2695     shift
   2696     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2697   fi
   2698 fi
   2699 fi
   2700 fi
   2701 CC=$ac_cv_prog_CC
   2702 if test -n "$CC"; then
   2703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2704 $as_echo "$CC" >&6; }
   2705 else
   2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2707 $as_echo "no" >&6; }
   2708 fi
   2709 
   2710 
   2711 fi
   2712 if test -z "$CC"; then
   2713   if test -n "$ac_tool_prefix"; then
   2714   for ac_prog in cl.exe
   2715   do
   2716     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2719 $as_echo_n "checking for $ac_word... " >&6; }
   2720 if ${ac_cv_prog_CC+:} false; then :
   2721   $as_echo_n "(cached) " >&6
   2722 else
   2723   if test -n "$CC"; then
   2724   ac_cv_prog_CC="$CC" # Let the user override the test.
   2725 else
   2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2727 for as_dir in $PATH
   2728 do
   2729   IFS=$as_save_IFS
   2730   test -z "$as_dir" && as_dir=.
   2731     for ac_exec_ext in '' $ac_executable_extensions; do
   2732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2733     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2735     break 2
   2736   fi
   2737 done
   2738   done
   2739 IFS=$as_save_IFS
   2740 
   2741 fi
   2742 fi
   2743 CC=$ac_cv_prog_CC
   2744 if test -n "$CC"; then
   2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2746 $as_echo "$CC" >&6; }
   2747 else
   2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2749 $as_echo "no" >&6; }
   2750 fi
   2751 
   2752 
   2753     test -n "$CC" && break
   2754   done
   2755 fi
   2756 if test -z "$CC"; then
   2757   ac_ct_CC=$CC
   2758   for ac_prog in cl.exe
   2759 do
   2760   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2761 set dummy $ac_prog; ac_word=$2
   2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2763 $as_echo_n "checking for $ac_word... " >&6; }
   2764 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2765   $as_echo_n "(cached) " >&6
   2766 else
   2767   if test -n "$ac_ct_CC"; then
   2768   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2769 else
   2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2771 for as_dir in $PATH
   2772 do
   2773   IFS=$as_save_IFS
   2774   test -z "$as_dir" && as_dir=.
   2775     for ac_exec_ext in '' $ac_executable_extensions; do
   2776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2777     ac_cv_prog_ac_ct_CC="$ac_prog"
   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 fi
   2786 fi
   2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2788 if test -n "$ac_ct_CC"; then
   2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2790 $as_echo "$ac_ct_CC" >&6; }
   2791 else
   2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2793 $as_echo "no" >&6; }
   2794 fi
   2795 
   2796 
   2797   test -n "$ac_ct_CC" && break
   2798 done
   2799 
   2800   if test "x$ac_ct_CC" = x; then
   2801     CC=""
   2802   else
   2803     case $cross_compiling:$ac_tool_warned in
   2804 yes:)
   2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2807 ac_tool_warned=yes ;;
   2808 esac
   2809     CC=$ac_ct_CC
   2810   fi
   2811 fi
   2812 
   2813 fi
   2814 
   2815 
   2816 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2818 as_fn_error $? "no acceptable C compiler found in \$PATH
   2819 See \`config.log' for more details" "$LINENO" 5; }
   2820 
   2821 # Provide some information about the compiler.
   2822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   2823 set X $ac_compile
   2824 ac_compiler=$2
   2825 for ac_option in --version -v -V -qversion; do
   2826   { { ac_try="$ac_compiler $ac_option >&5"
   2827 case "(($ac_try" in
   2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2829   *) ac_try_echo=$ac_try;;
   2830 esac
   2831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2832 $as_echo "$ac_try_echo"; } >&5
   2833   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   2834   ac_status=$?
   2835   if test -s conftest.err; then
   2836     sed '10a\
   2837 ... rest of stderr output deleted ...
   2838          10q' conftest.err >conftest.er1
   2839     cat conftest.er1 >&5
   2840   fi
   2841   rm -f conftest.er1 conftest.err
   2842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2843   test $ac_status = 0; }
   2844 done
   2845 
   2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2847 /* end confdefs.h.  */
   2848 
   2849 int
   2850 main ()
   2851 {
   2852 
   2853   ;
   2854   return 0;
   2855 }
   2856 _ACEOF
   2857 ac_clean_files_save=$ac_clean_files
   2858 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   2859 # Try to create an executable without -o first, disregard a.out.
   2860 # It will help us diagnose broken compilers, and finding out an intuition
   2861 # of exeext.
   2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   2863 $as_echo_n "checking whether the C compiler works... " >&6; }
   2864 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2865 
   2866 # The possible output files:
   2867 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   2868 
   2869 ac_rmfiles=
   2870 for ac_file in $ac_files
   2871 do
   2872   case $ac_file in
   2873     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   2874     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2875   esac
   2876 done
   2877 rm -f $ac_rmfiles
   2878 
   2879 if { { ac_try="$ac_link_default"
   2880 case "(($ac_try" in
   2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2882   *) ac_try_echo=$ac_try;;
   2883 esac
   2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2885 $as_echo "$ac_try_echo"; } >&5
   2886   (eval "$ac_link_default") 2>&5
   2887   ac_status=$?
   2888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2889   test $ac_status = 0; }; then :
   2890   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2891 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2892 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2893 # so that the user can short-circuit this test for compilers unknown to
   2894 # Autoconf.
   2895 for ac_file in $ac_files ''
   2896 do
   2897   test -f "$ac_file" || continue
   2898   case $ac_file in
   2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   2900 	;;
   2901     [ab].out )
   2902 	# We found the default executable, but exeext='' is most
   2903 	# certainly right.
   2904 	break;;
   2905     *.* )
   2906 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2907 	then :; else
   2908 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2909 	fi
   2910 	# We set ac_cv_exeext here because the later test for it is not
   2911 	# safe: cross compilers may not add the suffix if given an `-o'
   2912 	# argument, so we may need to know it at that point already.
   2913 	# Even if this section looks crufty: it has the advantage of
   2914 	# actually working.
   2915 	break;;
   2916     * )
   2917 	break;;
   2918   esac
   2919 done
   2920 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2921 
   2922 else
   2923   ac_file=''
   2924 fi
   2925 if test -z "$ac_file"; then :
   2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2927 $as_echo "no" >&6; }
   2928 $as_echo "$as_me: failed program was:" >&5
   2929 sed 's/^/| /' conftest.$ac_ext >&5
   2930 
   2931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2933 as_fn_error 77 "C compiler cannot create executables
   2934 See \`config.log' for more details" "$LINENO" 5; }
   2935 else
   2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2937 $as_echo "yes" >&6; }
   2938 fi
   2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   2940 $as_echo_n "checking for C compiler default output file name... " >&6; }
   2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   2942 $as_echo "$ac_file" >&6; }
   2943 ac_exeext=$ac_cv_exeext
   2944 
   2945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   2946 ac_clean_files=$ac_clean_files_save
   2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   2948 $as_echo_n "checking for suffix of executables... " >&6; }
   2949 if { { ac_try="$ac_link"
   2950 case "(($ac_try" in
   2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2952   *) ac_try_echo=$ac_try;;
   2953 esac
   2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2955 $as_echo "$ac_try_echo"; } >&5
   2956   (eval "$ac_link") 2>&5
   2957   ac_status=$?
   2958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2959   test $ac_status = 0; }; then :
   2960   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2961 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2962 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2963 # `rm'.
   2964 for ac_file in conftest.exe conftest conftest.*; do
   2965   test -f "$ac_file" || continue
   2966   case $ac_file in
   2967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   2968     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2969 	  break;;
   2970     * ) break;;
   2971   esac
   2972 done
   2973 else
   2974   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2976 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   2977 See \`config.log' for more details" "$LINENO" 5; }
   2978 fi
   2979 rm -f conftest conftest$ac_cv_exeext
   2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   2981 $as_echo "$ac_cv_exeext" >&6; }
   2982 
   2983 rm -f conftest.$ac_ext
   2984 EXEEXT=$ac_cv_exeext
   2985 ac_exeext=$EXEEXT
   2986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2987 /* end confdefs.h.  */
   2988 #include <stdio.h>
   2989 int
   2990 main ()
   2991 {
   2992 FILE *f = fopen ("conftest.out", "w");
   2993  return ferror (f) || fclose (f) != 0;
   2994 
   2995   ;
   2996   return 0;
   2997 }
   2998 _ACEOF
   2999 ac_clean_files="$ac_clean_files conftest.out"
   3000 # Check that the compiler produces executables we can run.  If not, either
   3001 # the compiler is broken, or we cross compile.
   3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3003 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3004 if test "$cross_compiling" != yes; then
   3005   { { ac_try="$ac_link"
   3006 case "(($ac_try" in
   3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3008   *) ac_try_echo=$ac_try;;
   3009 esac
   3010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3011 $as_echo "$ac_try_echo"; } >&5
   3012   (eval "$ac_link") 2>&5
   3013   ac_status=$?
   3014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3015   test $ac_status = 0; }
   3016   if { ac_try='./conftest$ac_cv_exeext'
   3017   { { case "(($ac_try" in
   3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3019   *) ac_try_echo=$ac_try;;
   3020 esac
   3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3022 $as_echo "$ac_try_echo"; } >&5
   3023   (eval "$ac_try") 2>&5
   3024   ac_status=$?
   3025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3026   test $ac_status = 0; }; }; then
   3027     cross_compiling=no
   3028   else
   3029     if test "$cross_compiling" = maybe; then
   3030 	cross_compiling=yes
   3031     else
   3032 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3034 as_fn_error $? "cannot run C compiled programs.
   3035 If you meant to cross compile, use \`--host'.
   3036 See \`config.log' for more details" "$LINENO" 5; }
   3037     fi
   3038   fi
   3039 fi
   3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3041 $as_echo "$cross_compiling" >&6; }
   3042 
   3043 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3044 ac_clean_files=$ac_clean_files_save
   3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3046 $as_echo_n "checking for suffix of object files... " >&6; }
   3047 if ${ac_cv_objext+:} false; then :
   3048   $as_echo_n "(cached) " >&6
   3049 else
   3050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3051 /* end confdefs.h.  */
   3052 
   3053 int
   3054 main ()
   3055 {
   3056 
   3057   ;
   3058   return 0;
   3059 }
   3060 _ACEOF
   3061 rm -f conftest.o conftest.obj
   3062 if { { ac_try="$ac_compile"
   3063 case "(($ac_try" in
   3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3065   *) ac_try_echo=$ac_try;;
   3066 esac
   3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3068 $as_echo "$ac_try_echo"; } >&5
   3069   (eval "$ac_compile") 2>&5
   3070   ac_status=$?
   3071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3072   test $ac_status = 0; }; then :
   3073   for ac_file in conftest.o conftest.obj conftest.*; do
   3074   test -f "$ac_file" || continue;
   3075   case $ac_file in
   3076     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3077     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3078        break;;
   3079   esac
   3080 done
   3081 else
   3082   $as_echo "$as_me: failed program was:" >&5
   3083 sed 's/^/| /' conftest.$ac_ext >&5
   3084 
   3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3087 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3088 See \`config.log' for more details" "$LINENO" 5; }
   3089 fi
   3090 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3091 fi
   3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3093 $as_echo "$ac_cv_objext" >&6; }
   3094 OBJEXT=$ac_cv_objext
   3095 ac_objext=$OBJEXT
   3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3097 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3098 if ${ac_cv_c_compiler_gnu+:} false; then :
   3099   $as_echo_n "(cached) " >&6
   3100 else
   3101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3102 /* end confdefs.h.  */
   3103 
   3104 int
   3105 main ()
   3106 {
   3107 #ifndef __GNUC__
   3108        choke me
   3109 #endif
   3110 
   3111   ;
   3112   return 0;
   3113 }
   3114 _ACEOF
   3115 if ac_fn_c_try_compile "$LINENO"; then :
   3116   ac_compiler_gnu=yes
   3117 else
   3118   ac_compiler_gnu=no
   3119 fi
   3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3122 
   3123 fi
   3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3125 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3126 if test $ac_compiler_gnu = yes; then
   3127   GCC=yes
   3128 else
   3129   GCC=
   3130 fi
   3131 ac_test_CFLAGS=${CFLAGS+set}
   3132 ac_save_CFLAGS=$CFLAGS
   3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3134 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3135 if ${ac_cv_prog_cc_g+:} false; then :
   3136   $as_echo_n "(cached) " >&6
   3137 else
   3138   ac_save_c_werror_flag=$ac_c_werror_flag
   3139    ac_c_werror_flag=yes
   3140    ac_cv_prog_cc_g=no
   3141    CFLAGS="-g"
   3142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3143 /* end confdefs.h.  */
   3144 
   3145 int
   3146 main ()
   3147 {
   3148 
   3149   ;
   3150   return 0;
   3151 }
   3152 _ACEOF
   3153 if ac_fn_c_try_compile "$LINENO"; then :
   3154   ac_cv_prog_cc_g=yes
   3155 else
   3156   CFLAGS=""
   3157       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3158 /* end confdefs.h.  */
   3159 
   3160 int
   3161 main ()
   3162 {
   3163 
   3164   ;
   3165   return 0;
   3166 }
   3167 _ACEOF
   3168 if ac_fn_c_try_compile "$LINENO"; then :
   3169 
   3170 else
   3171   ac_c_werror_flag=$ac_save_c_werror_flag
   3172 	 CFLAGS="-g"
   3173 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3174 /* end confdefs.h.  */
   3175 
   3176 int
   3177 main ()
   3178 {
   3179 
   3180   ;
   3181   return 0;
   3182 }
   3183 _ACEOF
   3184 if ac_fn_c_try_compile "$LINENO"; then :
   3185   ac_cv_prog_cc_g=yes
   3186 fi
   3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3188 fi
   3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3190 fi
   3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3192    ac_c_werror_flag=$ac_save_c_werror_flag
   3193 fi
   3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3195 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3196 if test "$ac_test_CFLAGS" = set; then
   3197   CFLAGS=$ac_save_CFLAGS
   3198 elif test $ac_cv_prog_cc_g = yes; then
   3199   if test "$GCC" = yes; then
   3200     CFLAGS="-g -O2"
   3201   else
   3202     CFLAGS="-g"
   3203   fi
   3204 else
   3205   if test "$GCC" = yes; then
   3206     CFLAGS="-O2"
   3207   else
   3208     CFLAGS=
   3209   fi
   3210 fi
   3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3212 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3213 if ${ac_cv_prog_cc_c89+:} false; then :
   3214   $as_echo_n "(cached) " >&6
   3215 else
   3216   ac_cv_prog_cc_c89=no
   3217 ac_save_CC=$CC
   3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3219 /* end confdefs.h.  */
   3220 #include <stdarg.h>
   3221 #include <stdio.h>
   3222 struct stat;
   3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3224 struct buf { int x; };
   3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3226 static char *e (p, i)
   3227      char **p;
   3228      int i;
   3229 {
   3230   return p[i];
   3231 }
   3232 static char *f (char * (*g) (char **, int), char **p, ...)
   3233 {
   3234   char *s;
   3235   va_list v;
   3236   va_start (v,p);
   3237   s = g (p, va_arg (v,int));
   3238   va_end (v);
   3239   return s;
   3240 }
   3241 
   3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3243    function prototypes and stuff, but not '\xHH' hex character constants.
   3244    These don't provoke an error unfortunately, instead are silently treated
   3245    as 'x'.  The following induces an error, until -std is added to get
   3246    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3247    array size at least.  It's necessary to write '\x00'==0 to get something
   3248    that's true only with -std.  */
   3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3250 
   3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3252    inside strings and character constants.  */
   3253 #define FOO(x) 'x'
   3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3255 
   3256 int test (int i, double x);
   3257 struct s1 {int (*f) (int a);};
   3258 struct s2 {int (*f) (double a);};
   3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3260 int argc;
   3261 char **argv;
   3262 int
   3263 main ()
   3264 {
   3265 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3266   ;
   3267   return 0;
   3268 }
   3269 _ACEOF
   3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3271 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3272 do
   3273   CC="$ac_save_CC $ac_arg"
   3274   if ac_fn_c_try_compile "$LINENO"; then :
   3275   ac_cv_prog_cc_c89=$ac_arg
   3276 fi
   3277 rm -f core conftest.err conftest.$ac_objext
   3278   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3279 done
   3280 rm -f conftest.$ac_ext
   3281 CC=$ac_save_CC
   3282 
   3283 fi
   3284 # AC_CACHE_VAL
   3285 case "x$ac_cv_prog_cc_c89" in
   3286   x)
   3287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3288 $as_echo "none needed" >&6; } ;;
   3289   xno)
   3290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3291 $as_echo "unsupported" >&6; } ;;
   3292   *)
   3293     CC="$CC $ac_cv_prog_cc_c89"
   3294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3295 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3296 esac
   3297 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3298 
   3299 fi
   3300 
   3301 ac_ext=c
   3302 ac_cpp='$CPP $CPPFLAGS'
   3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3306 
   3307 
   3308 
   3309 
   3310 
   3311     if test "$GCC" = yes ; then
   3312 	    #
   3313 	    # -Werror forces warnings to be errors.
   3314 	    #
   3315 	    ac_lbl_cc_force_warning_errors=-Werror
   3316     else
   3317 	    V_INCLS="$V_INCLS -I/usr/local/include"
   3318 	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   3319 
   3320 	    case "$host_os" in
   3321 
   3322 	    darwin*)
   3323 		    #
   3324 		    # This is assumed either to be GCC or clang, both
   3325 		    # of which use -Werror to force warnings to be errors.
   3326 		    #
   3327 		    ac_lbl_cc_force_warning_errors=-Werror
   3328 		    ;;
   3329 
   3330 	    hpux*)
   3331 		    #
   3332 		    # HP C, which is what we presume we're using, doesn't
   3333 		    # exit with a non-zero exit status if we hand it an
   3334 		    # invalid -W flag, can't be forced to do so even with
   3335 		    # +We, and doesn't handle GCC-style -W flags, so we
   3336 		    # don't want to try using GCC-style -W flags.
   3337 		    #
   3338 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   3339 		    ;;
   3340 
   3341 	    irix*)
   3342 		    #
   3343 		    # MIPS C, which is what we presume we're using, doesn't
   3344 		    # necessarily exit with a non-zero exit status if we
   3345 		    # hand it an invalid -W flag, can't be forced to do
   3346 		    # so, and doesn't handle GCC-style -W flags, so we
   3347 		    # don't want to try using GCC-style -W flags.
   3348 		    #
   3349 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   3350 		    #
   3351 		    # It also, apparently, defaults to "char" being
   3352 		    # unsigned, unlike most other C implementations;
   3353 		    # I suppose we could say "signed char" whenever
   3354 		    # we want to guarantee a signed "char", but let's
   3355 		    # just force signed chars.
   3356 		    #
   3357 		    # -xansi is normally the default, but the
   3358 		    # configure script was setting it; perhaps -cckr
   3359 		    # was the default in the Old Days.  (Then again,
   3360 		    # that would probably be for backwards compatibility
   3361 		    # in the days when ANSI C was Shiny and New, i.e.
   3362 		    # 1989 and the early '90's, so maybe we can just
   3363 		    # drop support for those compilers.)
   3364 		    #
   3365 		    # -g is equivalent to -g2, which turns off
   3366 		    # optimization; we choose -g3, which generates
   3367 		    # debugging information but doesn't turn off
   3368 		    # optimization (even if the optimization would
   3369 		    # cause inaccuracies in debugging).
   3370 		    #
   3371 		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
   3372 		    ;;
   3373 
   3374 	    osf*)
   3375 		    #
   3376 		    # Presumed to be DEC OSF/1, Digital UNIX, or
   3377 		    # Tru64 UNIX.
   3378 		    #
   3379 		    # The DEC C compiler, which is what we presume we're
   3380 		    # using, doesn't exit with a non-zero exit status if we
   3381 		    # hand it an invalid -W flag, can't be forced to do
   3382 		    # so, and doesn't handle GCC-style -W flags, so we
   3383 		    # don't want to try using GCC-style -W flags.
   3384 		    #
   3385 		    ac_lbl_cc_dont_try_gcc_dashW=yes
   3386 		    #
   3387 		    # -g is equivalent to -g2, which turns off
   3388 		    # optimization; we choose -g3, which generates
   3389 		    # debugging information but doesn't turn off
   3390 		    # optimization (even if the optimization would
   3391 		    # cause inaccuracies in debugging).
   3392 		    #
   3393 		    V_CCOPT="$V_CCOPT -g3"
   3394 		    ;;
   3395 
   3396 	    solaris*)
   3397 		    #
   3398 		    # Assumed to be Sun C, which requires -errwarn to force
   3399 		    # warnings to be treated as errors.
   3400 		    #
   3401 		    ac_lbl_cc_force_warning_errors=-errwarn
   3402 		    ;;
   3403 
   3404 	    ultrix*)
   3405 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
   3406 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
   3407 		    if ${ac_cv_lbl_cc_const_proto+:} false; then :
   3408   $as_echo_n "(cached) " >&6
   3409 else
   3410 
   3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3412 /* end confdefs.h.  */
   3413 #include <sys/types.h>
   3414 int
   3415 main ()
   3416 {
   3417 struct a { int b; };
   3418 			    void c(const struct a *)
   3419   ;
   3420   return 0;
   3421 }
   3422 _ACEOF
   3423 if ac_fn_c_try_compile "$LINENO"; then :
   3424   ac_cv_lbl_cc_const_proto=yes
   3425 else
   3426   ac_cv_lbl_cc_const_proto=no
   3427 fi
   3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3429 fi
   3430 
   3431 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
   3432 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
   3433 		    if test $ac_cv_lbl_cc_const_proto = no ; then
   3434 
   3435 $as_echo "#define const /**/" >>confdefs.h
   3436 
   3437 		    fi
   3438 		    ;;
   3439 	    esac
   3440 	    V_CCOPT="$V_CCOPT -O"
   3441     fi
   3442 
   3443 
   3444     if test "$GCC" = yes ; then
   3445 	    #
   3446 	    # On platforms where we build a shared library:
   3447 	    #
   3448 	    #	add options to generate position-independent code,
   3449 	    #	if necessary (it's the default in AIX and Darwin/OS X);
   3450 	    #
   3451 	    #	define option to set the soname of the shared library,
   3452 	    #	if the OS supports that;
   3453 	    #
   3454 	    #	add options to specify, at link time, a directory to
   3455 	    #	add to the run-time search path, if that's necessary.
   3456 	    #
   3457 	    V_SHLIB_CMD="\$(CC)"
   3458 	    V_SHLIB_OPT="-shared"
   3459 	    case "$host_os" in
   3460 
   3461 	    aix*)
   3462 		    ;;
   3463 
   3464 	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
   3465 	    	    #
   3466 		    # Platforms where the linker is the GNU linker
   3467 		    # or accepts command-line arguments like
   3468 		    # those the GNU linker accepts.
   3469 		    #
   3470 		    # Some instruction sets require -fPIC on some
   3471 		    # operating systems.  Check for them.  If you
   3472 		    # have a combination that requires it, add it
   3473 		    # here.
   3474 		    #
   3475 		    PIC_OPT=-fpic
   3476 		    case "$host_cpu" in
   3477 
   3478 		    sparc64*)
   3479 			case "$host_os" in
   3480 
   3481 			freebsd*|openbsd*)
   3482 			    PIC_OPT=-fPIC
   3483 			    ;;
   3484 			esac
   3485 			;;
   3486 		    esac
   3487 		    V_CCOPT="$V_CCOPT $PIC_OPT"
   3488 		    V_SONAME_OPT="-Wl,-soname,"
   3489 		    V_RPATH_OPT="-Wl,-rpath,"
   3490 		    ;;
   3491 
   3492 	    hpux*)
   3493 		    V_CCOPT="$V_CCOPT -fpic"
   3494 	    	    #
   3495 		    # XXX - this assumes GCC is using the HP linker,
   3496 		    # rather than the GNU linker, and that the "+h"
   3497 		    # option is used on all HP-UX platforms, both .sl
   3498 		    # and .so.
   3499 		    #
   3500 		    V_SONAME_OPT="-Wl,+h,"
   3501 		    #
   3502 		    # By default, directories specifed with -L
   3503 		    # are added to the run-time search path, so
   3504 		    # we don't add them in pcap-config.
   3505 		    #
   3506 		    ;;
   3507 
   3508 	    solaris*)
   3509 		    V_CCOPT="$V_CCOPT -fpic"
   3510 		    #
   3511 		    # XXX - this assumes GCC is using the Sun linker,
   3512 		    # rather than the GNU linker.
   3513 		    #
   3514 		    V_SONAME_OPT="-Wl,-h,"
   3515 		    V_RPATH_OPT="-Wl,-R,"
   3516 		    ;;
   3517 	    esac
   3518     else
   3519 	    #
   3520 	    # Set the appropriate compiler flags and, on platforms
   3521 	    # where we build a shared library:
   3522 	    #
   3523 	    #	add options to generate position-independent code,
   3524 	    #	if necessary (it's the default in Darwin/OS X);
   3525 	    #
   3526 	    #	if we generate ".so" shared libraries, define the
   3527 	    #	appropriate options for building the shared library;
   3528 	    #
   3529 	    #	add options to specify, at link time, a directory to
   3530 	    #	add to the run-time search path, if that's necessary.
   3531 	    #
   3532 	    # Note: spaces after V_SONAME_OPT are significant; on
   3533 	    # some platforms the soname is passed with a GCC-like
   3534 	    # "-Wl,-soname,{soname}" option, with the soname part
   3535 	    # of the option, while on other platforms the C compiler
   3536 	    # driver takes it as a regular option with the soname
   3537 	    # following the option.  The same applies to V_RPATH_OPT.
   3538 	    #
   3539 	    case "$host_os" in
   3540 
   3541 	    aix*)
   3542 		    V_SHLIB_CMD="\$(CC)"
   3543 		    V_SHLIB_OPT="-G -bnoentry -bexpall"
   3544 		    ;;
   3545 
   3546 	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
   3547 		    #
   3548 		    # "cc" is GCC.
   3549 		    #
   3550 		    V_CCOPT="$V_CCOPT -fpic"
   3551 		    V_SHLIB_CMD="\$(CC)"
   3552 		    V_SHLIB_OPT="-shared"
   3553 		    V_SONAME_OPT="-Wl,-soname,"
   3554 		    V_RPATH_OPT="-Wl,-rpath,"
   3555 		    ;;
   3556 
   3557 	    hpux*)
   3558 		    V_CCOPT="$V_CCOPT +z"
   3559 		    V_SHLIB_CMD="\$(LD)"
   3560 		    V_SHLIB_OPT="-b"
   3561 		    V_SONAME_OPT="+h "
   3562 		    #
   3563 		    # By default, directories specifed with -L
   3564 		    # are added to the run-time search path, so
   3565 		    # we don't add them in pcap-config.
   3566 		    #
   3567 		    ;;
   3568 
   3569 	    osf*)
   3570 	    	    #
   3571 		    # Presumed to be DEC OSF/1, Digital UNIX, or
   3572 		    # Tru64 UNIX.
   3573 		    #
   3574 		    V_SHLIB_CMD="\$(CC)"
   3575 		    V_SHLIB_OPT="-shared"
   3576 		    V_SONAME_OPT="-soname "
   3577 		    V_RPATH_OPT="-rpath "
   3578 		    ;;
   3579 
   3580 	    solaris*)
   3581 		    V_CCOPT="$V_CCOPT -Kpic"
   3582 		    V_SHLIB_CMD="\$(CC)"
   3583 		    V_SHLIB_OPT="-G"
   3584 		    V_SONAME_OPT="-h "
   3585 		    V_RPATH_OPT="-R"
   3586 		    ;;
   3587 	    esac
   3588     fi
   3589 
   3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   3591 $as_echo_n "checking for inline... " >&6; }
   3592     save_CFLAGS="$CFLAGS"
   3593     CFLAGS="$V_CCOPT"
   3594     if ${ac_cv_lbl_inline+:} false; then :
   3595   $as_echo_n "(cached) " >&6
   3596 else
   3597 
   3598 	ac_cv_lbl_inline=""
   3599 	ac_lbl_cc_inline=no
   3600 	for ac_lbl_inline in inline __inline__ __inline
   3601 	do
   3602 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3603 /* end confdefs.h.  */
   3604 #define inline $ac_lbl_inline
   3605 		static inline struct iltest *foo(void);
   3606 		struct iltest {
   3607 		    int iltest1;
   3608 		    int iltest2;
   3609 		};
   3610 
   3611 		static inline struct iltest *
   3612 		foo()
   3613 		{
   3614 		    static struct iltest xxx;
   3615 
   3616 		    return &xxx;
   3617 		}
   3618 int
   3619 main ()
   3620 {
   3621 
   3622   ;
   3623   return 0;
   3624 }
   3625 _ACEOF
   3626 if ac_fn_c_try_compile "$LINENO"; then :
   3627   ac_lbl_cc_inline=yes
   3628 fi
   3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3630 	    if test "$ac_lbl_cc_inline" = yes ; then
   3631 		break;
   3632 	    fi
   3633 	done
   3634 	if test "$ac_lbl_cc_inline" = yes ; then
   3635 	    ac_cv_lbl_inline=$ac_lbl_inline
   3636 	fi
   3637 fi
   3638 
   3639     CFLAGS="$save_CFLAGS"
   3640     if test ! -z "$ac_cv_lbl_inline" ; then
   3641 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
   3642 $as_echo "$ac_cv_lbl_inline" >&6; }
   3643     else
   3644 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3645 $as_echo "no" >&6; }
   3646     fi
   3647 
   3648 cat >>confdefs.h <<_ACEOF
   3649 #define inline $ac_cv_lbl_inline
   3650 _ACEOF
   3651 
   3652 
   3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
   3654 $as_echo_n "checking for __attribute__... " >&6; }
   3655 if ${ac_cv___attribute__+:} false; then :
   3656   $as_echo_n "(cached) " >&6
   3657 else
   3658 
   3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3660 /* end confdefs.h.  */
   3661 
   3662 
   3663 #include <stdlib.h>
   3664 
   3665 static void foo(void) __attribute__ ((noreturn));
   3666 
   3667 static void
   3668 foo(void)
   3669 {
   3670   exit(1);
   3671 }
   3672 
   3673 int
   3674 main(int argc, char **argv)
   3675 {
   3676   foo();
   3677 }
   3678 
   3679 _ACEOF
   3680 if ac_fn_c_try_compile "$LINENO"; then :
   3681   ac_cv___attribute__=yes
   3682 else
   3683   ac_cv___attribute__=no
   3684 fi
   3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3686 fi
   3687 
   3688 if test "$ac_cv___attribute__" = "yes"; then
   3689 
   3690 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
   3691 
   3692 else
   3693   #
   3694   # We can't use __attribute__, so we can't use __attribute__((unused)),
   3695   # so we define _U_ to an empty string.
   3696   #
   3697   V_DEFS="$V_DEFS -D_U_=\"\""
   3698 fi
   3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
   3700 $as_echo "$ac_cv___attribute__" >&6; }
   3701 
   3702 if test "$ac_cv___attribute__" = "yes"; then
   3703 
   3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
   3705 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
   3706 if ${ac_cv___attribute___unused+:} false; then :
   3707   $as_echo_n "(cached) " >&6
   3708 else
   3709 
   3710 save_CFLAGS="$CFLAGS"
   3711 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
   3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3713 /* end confdefs.h.  */
   3714 
   3715 
   3716 #include <stdlib.h>
   3717 #include <stdio.h>
   3718 
   3719 int
   3720 main(int argc  __attribute((unused)), char **argv __attribute((unused)))
   3721 {
   3722   printf("Hello, world!\n");
   3723   return 0;
   3724 }
   3725 
   3726 _ACEOF
   3727 if ac_fn_c_try_compile "$LINENO"; then :
   3728   ac_cv___attribute___unused=yes
   3729 else
   3730   ac_cv___attribute___unused=no
   3731 fi
   3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3733 fi
   3734 
   3735 CFLAGS="$save_CFLAGS"
   3736 if test "$ac_cv___attribute___unused" = "yes"; then
   3737   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
   3738 else
   3739   V_DEFS="$V_DEFS -D_U_=\"\""
   3740 fi
   3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
   3742 $as_echo "$ac_cv___attribute___unused" >&6; }
   3743 
   3744 
   3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be used without warnings" >&5
   3746 $as_echo_n "checking whether __attribute__((format)) can be used without warnings... " >&6; }
   3747 if ${ac_cv___attribute___format+:} false; then :
   3748   $as_echo_n "(cached) " >&6
   3749 else
   3750 
   3751 save_CFLAGS="$CFLAGS"
   3752 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
   3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3754 /* end confdefs.h.  */
   3755 
   3756 
   3757 #include <stdlib.h>
   3758 
   3759 extern int foo(const char *fmt, ...)
   3760 		  __attribute__ ((format (printf, 1, 2)));
   3761 
   3762 int
   3763 main(int argc, char **argv)
   3764 {
   3765   foo("%s", "test");
   3766 }
   3767 
   3768 _ACEOF
   3769 if ac_fn_c_try_compile "$LINENO"; then :
   3770   ac_cv___attribute___format=yes
   3771 else
   3772   ac_cv___attribute___format=no
   3773 fi
   3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3775 fi
   3776 
   3777 CFLAGS="$save_CFLAGS"
   3778 if test "$ac_cv___attribute___format" = "yes"; then
   3779 
   3780 $as_echo "#define __ATTRIBUTE___FORMAT_OK 1" >>confdefs.h
   3781 
   3782 fi
   3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format" >&5
   3784 $as_echo "$ac_cv___attribute___format" >&6; }
   3785 
   3786 fi
   3787 
   3788 ac_ext=c
   3789 ac_cpp='$CPP $CPPFLAGS'
   3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3794 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3795 # On Suns, sometimes $CPP names a directory.
   3796 if test -n "$CPP" && test -d "$CPP"; then
   3797   CPP=
   3798 fi
   3799 if test -z "$CPP"; then
   3800   if ${ac_cv_prog_CPP+:} false; then :
   3801   $as_echo_n "(cached) " >&6
   3802 else
   3803       # Double quotes because CPP needs to be expanded
   3804     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3805     do
   3806       ac_preproc_ok=false
   3807 for ac_c_preproc_warn_flag in '' yes
   3808 do
   3809   # Use a header file that comes with gcc, so configuring glibc
   3810   # with a fresh cross-compiler works.
   3811   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3812   # <limits.h> exists even on freestanding compilers.
   3813   # On the NeXT, cc -E runs the code through the compiler's parser,
   3814   # not just through cpp. "Syntax error" is here to catch this case.
   3815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3816 /* end confdefs.h.  */
   3817 #ifdef __STDC__
   3818 # include <limits.h>
   3819 #else
   3820 # include <assert.h>
   3821 #endif
   3822 		     Syntax error
   3823 _ACEOF
   3824 if ac_fn_c_try_cpp "$LINENO"; then :
   3825 
   3826 else
   3827   # Broken: fails on valid input.
   3828 continue
   3829 fi
   3830 rm -f conftest.err conftest.i conftest.$ac_ext
   3831 
   3832   # OK, works on sane cases.  Now check whether nonexistent headers
   3833   # can be detected and how.
   3834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3835 /* end confdefs.h.  */
   3836 #include <ac_nonexistent.h>
   3837 _ACEOF
   3838 if ac_fn_c_try_cpp "$LINENO"; then :
   3839   # Broken: success on invalid input.
   3840 continue
   3841 else
   3842   # Passes both tests.
   3843 ac_preproc_ok=:
   3844 break
   3845 fi
   3846 rm -f conftest.err conftest.i conftest.$ac_ext
   3847 
   3848 done
   3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3850 rm -f conftest.i conftest.err conftest.$ac_ext
   3851 if $ac_preproc_ok; then :
   3852   break
   3853 fi
   3854 
   3855     done
   3856     ac_cv_prog_CPP=$CPP
   3857 
   3858 fi
   3859   CPP=$ac_cv_prog_CPP
   3860 else
   3861   ac_cv_prog_CPP=$CPP
   3862 fi
   3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3864 $as_echo "$CPP" >&6; }
   3865 ac_preproc_ok=false
   3866 for ac_c_preproc_warn_flag in '' yes
   3867 do
   3868   # Use a header file that comes with gcc, so configuring glibc
   3869   # with a fresh cross-compiler works.
   3870   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3871   # <limits.h> exists even on freestanding compilers.
   3872   # On the NeXT, cc -E runs the code through the compiler's parser,
   3873   # not just through cpp. "Syntax error" is here to catch this case.
   3874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3875 /* end confdefs.h.  */
   3876 #ifdef __STDC__
   3877 # include <limits.h>
   3878 #else
   3879 # include <assert.h>
   3880 #endif
   3881 		     Syntax error
   3882 _ACEOF
   3883 if ac_fn_c_try_cpp "$LINENO"; then :
   3884 
   3885 else
   3886   # Broken: fails on valid input.
   3887 continue
   3888 fi
   3889 rm -f conftest.err conftest.i conftest.$ac_ext
   3890 
   3891   # OK, works on sane cases.  Now check whether nonexistent headers
   3892   # can be detected and how.
   3893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3894 /* end confdefs.h.  */
   3895 #include <ac_nonexistent.h>
   3896 _ACEOF
   3897 if ac_fn_c_try_cpp "$LINENO"; then :
   3898   # Broken: success on invalid input.
   3899 continue
   3900 else
   3901   # Passes both tests.
   3902 ac_preproc_ok=:
   3903 break
   3904 fi
   3905 rm -f conftest.err conftest.i conftest.$ac_ext
   3906 
   3907 done
   3908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3909 rm -f conftest.i conftest.err conftest.$ac_ext
   3910 if $ac_preproc_ok; then :
   3911 
   3912 else
   3913   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3915 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3916 See \`config.log' for more details" "$LINENO" 5; }
   3917 fi
   3918 
   3919 ac_ext=c
   3920 ac_cpp='$CPP $CPPFLAGS'
   3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3924 
   3925 
   3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3927 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3928 if ${ac_cv_path_GREP+:} false; then :
   3929   $as_echo_n "(cached) " >&6
   3930 else
   3931   if test -z "$GREP"; then
   3932   ac_path_GREP_found=false
   3933   # Loop through the user's path and test for each of PROGNAME-LIST
   3934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3936 do
   3937   IFS=$as_save_IFS
   3938   test -z "$as_dir" && as_dir=.
   3939     for ac_prog in grep ggrep; do
   3940     for ac_exec_ext in '' $ac_executable_extensions; do
   3941       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3942       as_fn_executable_p "$ac_path_GREP" || continue
   3943 # Check for GNU ac_path_GREP and select it if it is found.
   3944   # Check for GNU $ac_path_GREP
   3945 case `"$ac_path_GREP" --version 2>&1` in
   3946 *GNU*)
   3947   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3948 *)
   3949   ac_count=0
   3950   $as_echo_n 0123456789 >"conftest.in"
   3951   while :
   3952   do
   3953     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3954     mv "conftest.tmp" "conftest.in"
   3955     cp "conftest.in" "conftest.nl"
   3956     $as_echo 'GREP' >> "conftest.nl"
   3957     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3958     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3959     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3960     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3961       # Best one so far, save it but keep looking for a better one
   3962       ac_cv_path_GREP="$ac_path_GREP"
   3963       ac_path_GREP_max=$ac_count
   3964     fi
   3965     # 10*(2^10) chars as input seems more than enough
   3966     test $ac_count -gt 10 && break
   3967   done
   3968   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3969 esac
   3970 
   3971       $ac_path_GREP_found && break 3
   3972     done
   3973   done
   3974   done
   3975 IFS=$as_save_IFS
   3976   if test -z "$ac_cv_path_GREP"; then
   3977     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3978   fi
   3979 else
   3980   ac_cv_path_GREP=$GREP
   3981 fi
   3982 
   3983 fi
   3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3985 $as_echo "$ac_cv_path_GREP" >&6; }
   3986  GREP="$ac_cv_path_GREP"
   3987 
   3988 
   3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3990 $as_echo_n "checking for egrep... " >&6; }
   3991 if ${ac_cv_path_EGREP+:} false; then :
   3992   $as_echo_n "(cached) " >&6
   3993 else
   3994   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3995    then ac_cv_path_EGREP="$GREP -E"
   3996    else
   3997      if test -z "$EGREP"; then
   3998   ac_path_EGREP_found=false
   3999   # Loop through the user's path and test for each of PROGNAME-LIST
   4000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4002 do
   4003   IFS=$as_save_IFS
   4004   test -z "$as_dir" && as_dir=.
   4005     for ac_prog in egrep; do
   4006     for ac_exec_ext in '' $ac_executable_extensions; do
   4007       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4008       as_fn_executable_p "$ac_path_EGREP" || continue
   4009 # Check for GNU ac_path_EGREP and select it if it is found.
   4010   # Check for GNU $ac_path_EGREP
   4011 case `"$ac_path_EGREP" --version 2>&1` in
   4012 *GNU*)
   4013   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4014 *)
   4015   ac_count=0
   4016   $as_echo_n 0123456789 >"conftest.in"
   4017   while :
   4018   do
   4019     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4020     mv "conftest.tmp" "conftest.in"
   4021     cp "conftest.in" "conftest.nl"
   4022     $as_echo 'EGREP' >> "conftest.nl"
   4023     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4024     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4025     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4026     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4027       # Best one so far, save it but keep looking for a better one
   4028       ac_cv_path_EGREP="$ac_path_EGREP"
   4029       ac_path_EGREP_max=$ac_count
   4030     fi
   4031     # 10*(2^10) chars as input seems more than enough
   4032     test $ac_count -gt 10 && break
   4033   done
   4034   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4035 esac
   4036 
   4037       $ac_path_EGREP_found && break 3
   4038     done
   4039   done
   4040   done
   4041 IFS=$as_save_IFS
   4042   if test -z "$ac_cv_path_EGREP"; then
   4043     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4044   fi
   4045 else
   4046   ac_cv_path_EGREP=$EGREP
   4047 fi
   4048 
   4049    fi
   4050 fi
   4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4052 $as_echo "$ac_cv_path_EGREP" >&6; }
   4053  EGREP="$ac_cv_path_EGREP"
   4054 
   4055 
   4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4057 $as_echo_n "checking for ANSI C header files... " >&6; }
   4058 if ${ac_cv_header_stdc+:} false; then :
   4059   $as_echo_n "(cached) " >&6
   4060 else
   4061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4062 /* end confdefs.h.  */
   4063 #include <stdlib.h>
   4064 #include <stdarg.h>
   4065 #include <string.h>
   4066 #include <float.h>
   4067 
   4068 int
   4069 main ()
   4070 {
   4071 
   4072   ;
   4073   return 0;
   4074 }
   4075 _ACEOF
   4076 if ac_fn_c_try_compile "$LINENO"; then :
   4077   ac_cv_header_stdc=yes
   4078 else
   4079   ac_cv_header_stdc=no
   4080 fi
   4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4082 
   4083 if test $ac_cv_header_stdc = yes; then
   4084   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4086 /* end confdefs.h.  */
   4087 #include <string.h>
   4088 
   4089 _ACEOF
   4090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4091   $EGREP "memchr" >/dev/null 2>&1; then :
   4092 
   4093 else
   4094   ac_cv_header_stdc=no
   4095 fi
   4096 rm -f conftest*
   4097 
   4098 fi
   4099 
   4100 if test $ac_cv_header_stdc = yes; then
   4101   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4103 /* end confdefs.h.  */
   4104 #include <stdlib.h>
   4105 
   4106 _ACEOF
   4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4108   $EGREP "free" >/dev/null 2>&1; then :
   4109 
   4110 else
   4111   ac_cv_header_stdc=no
   4112 fi
   4113 rm -f conftest*
   4114 
   4115 fi
   4116 
   4117 if test $ac_cv_header_stdc = yes; then
   4118   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4119   if test "$cross_compiling" = yes; then :
   4120   :
   4121 else
   4122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4123 /* end confdefs.h.  */
   4124 #include <ctype.h>
   4125 #include <stdlib.h>
   4126 #if ((' ' & 0x0FF) == 0x020)
   4127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4129 #else
   4130 # define ISLOWER(c) \
   4131 		   (('a' <= (c) && (c) <= 'i') \
   4132 		     || ('j' <= (c) && (c) <= 'r') \
   4133 		     || ('s' <= (c) && (c) <= 'z'))
   4134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4135 #endif
   4136 
   4137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4138 int
   4139 main ()
   4140 {
   4141   int i;
   4142   for (i = 0; i < 256; i++)
   4143     if (XOR (islower (i), ISLOWER (i))
   4144 	|| toupper (i) != TOUPPER (i))
   4145       return 2;
   4146   return 0;
   4147 }
   4148 _ACEOF
   4149 if ac_fn_c_try_run "$LINENO"; then :
   4150 
   4151 else
   4152   ac_cv_header_stdc=no
   4153 fi
   4154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4155   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4156 fi
   4157 
   4158 fi
   4159 fi
   4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4161 $as_echo "$ac_cv_header_stdc" >&6; }
   4162 if test $ac_cv_header_stdc = yes; then
   4163 
   4164 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4165 
   4166 fi
   4167 
   4168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4169 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4170 		  inttypes.h stdint.h unistd.h
   4171 do :
   4172   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4173 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4174 "
   4175 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4176   cat >>confdefs.h <<_ACEOF
   4177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4178 _ACEOF
   4179 
   4180 fi
   4181 
   4182 done
   4183 
   4184 
   4185 for ac_header in sys/bitypes.h
   4186 do :
   4187   ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
   4188 if test "x$ac_cv_header_sys_bitypes_h" = xyes; then :
   4189   cat >>confdefs.h <<_ACEOF
   4190 #define HAVE_SYS_BITYPES_H 1
   4191 _ACEOF
   4192 
   4193 fi
   4194 
   4195 done
   4196 
   4197 
   4198 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
   4199 #ifdef HAVE_SYS_BITYPES_H
   4200 #include <sys/bitypes.h>
   4201 #endif
   4202 "
   4203 if test "x$ac_cv_type_int8_t" = xyes; then :
   4204 
   4205 else
   4206 
   4207 $as_echo "#define int8_t signed char" >>confdefs.h
   4208 
   4209 fi
   4210 
   4211 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
   4212 #ifdef HAVE_SYS_BITYPES_H
   4213 #include <sys/bitypes.h>
   4214 #endif
   4215 "
   4216 if test "x$ac_cv_type_u_int8_t" = xyes; then :
   4217 
   4218 else
   4219 
   4220 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
   4221 
   4222 fi
   4223 
   4224 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
   4225 if test "x$ac_cv_type_int16_t" = xyes; then :
   4226 
   4227 else
   4228 
   4229 $as_echo "#define int16_t short" >>confdefs.h
   4230 
   4231 	$ac_includes_default
   4232 #ifdef HAVE_SYS_BITYPES_H
   4233 #include <sys/bitypes.h>
   4234 #endif
   4235 fi
   4236 
   4237 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
   4238 #ifdef HAVE_SYS_BITYPES_H
   4239 #include <sys/bitypes.h>
   4240 #endif
   4241 "
   4242 if test "x$ac_cv_type_u_int16_t" = xyes; then :
   4243 
   4244 else
   4245 
   4246 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
   4247 
   4248 fi
   4249 
   4250 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
   4251 #ifdef HAVE_SYS_BITYPES_H
   4252 #include <sys/bitypes.h>
   4253 #endif
   4254 "
   4255 if test "x$ac_cv_type_int32_t" = xyes; then :
   4256 
   4257 else
   4258 
   4259 $as_echo "#define int32_t int" >>confdefs.h
   4260 
   4261 fi
   4262 
   4263 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
   4264 #ifdef HAVE_SYS_BITYPES_H
   4265 #include <sys/bitypes.h>
   4266 #endif
   4267 "
   4268 if test "x$ac_cv_type_u_int32_t" = xyes; then :
   4269 
   4270 else
   4271 
   4272 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
   4273 
   4274 fi
   4275 
   4276 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
   4277 #ifdef HAVE_SYS_BITYPES_H
   4278 #include <sys/bitypes.h>
   4279 #endif
   4280 "
   4281 if test "x$ac_cv_type_int64_t" = xyes; then :
   4282 
   4283 else
   4284 
   4285 $as_echo "#define int64_t long long" >>confdefs.h
   4286 
   4287 fi
   4288 
   4289 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
   4290 #ifdef HAVE_SYS_BITYPES_H
   4291 #include <sys/bitypes.h>
   4292 #endif
   4293 "
   4294 if test "x$ac_cv_type_u_int64_t" = xyes; then :
   4295 
   4296 else
   4297 
   4298 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
   4299 
   4300 fi
   4301 
   4302 
   4303 #
   4304 # Try to arrange for large file support.
   4305 #
   4306 # Check whether --enable-largefile was given.
   4307 if test "${enable_largefile+set}" = set; then :
   4308   enableval=$enable_largefile;
   4309 fi
   4310 
   4311 if test "$enable_largefile" != no; then
   4312 
   4313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4314 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4315 if ${ac_cv_sys_largefile_CC+:} false; then :
   4316   $as_echo_n "(cached) " >&6
   4317 else
   4318   ac_cv_sys_largefile_CC=no
   4319      if test "$GCC" != yes; then
   4320        ac_save_CC=$CC
   4321        while :; do
   4322 	 # IRIX 6.2 and later do not support large files by default,
   4323 	 # so use the C compiler's -n32 option if that helps.
   4324 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4325 /* end confdefs.h.  */
   4326 #include <sys/types.h>
   4327  /* Check that off_t can represent 2**63 - 1 correctly.
   4328     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4329     since some C++ compilers masquerading as C compilers
   4330     incorrectly reject 9223372036854775807.  */
   4331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4332   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4333 		       && LARGE_OFF_T % 2147483647 == 1)
   4334 		      ? 1 : -1];
   4335 int
   4336 main ()
   4337 {
   4338 
   4339   ;
   4340   return 0;
   4341 }
   4342 _ACEOF
   4343 	 if ac_fn_c_try_compile "$LINENO"; then :
   4344   break
   4345 fi
   4346 rm -f core conftest.err conftest.$ac_objext
   4347 	 CC="$CC -n32"
   4348 	 if ac_fn_c_try_compile "$LINENO"; then :
   4349   ac_cv_sys_largefile_CC=' -n32'; break
   4350 fi
   4351 rm -f core conftest.err conftest.$ac_objext
   4352 	 break
   4353        done
   4354        CC=$ac_save_CC
   4355        rm -f conftest.$ac_ext
   4356     fi
   4357 fi
   4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4359 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4360   if test "$ac_cv_sys_largefile_CC" != no; then
   4361     CC=$CC$ac_cv_sys_largefile_CC
   4362   fi
   4363 
   4364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4365 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4366 if ${ac_cv_sys_file_offset_bits+:} false; then :
   4367   $as_echo_n "(cached) " >&6
   4368 else
   4369   while :; do
   4370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4371 /* end confdefs.h.  */
   4372 #include <sys/types.h>
   4373  /* Check that off_t can represent 2**63 - 1 correctly.
   4374     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4375     since some C++ compilers masquerading as C compilers
   4376     incorrectly reject 9223372036854775807.  */
   4377 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4378   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4379 		       && LARGE_OFF_T % 2147483647 == 1)
   4380 		      ? 1 : -1];
   4381 int
   4382 main ()
   4383 {
   4384 
   4385   ;
   4386   return 0;
   4387 }
   4388 _ACEOF
   4389 if ac_fn_c_try_compile "$LINENO"; then :
   4390   ac_cv_sys_file_offset_bits=no; break
   4391 fi
   4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4394 /* end confdefs.h.  */
   4395 #define _FILE_OFFSET_BITS 64
   4396 #include <sys/types.h>
   4397  /* Check that off_t can represent 2**63 - 1 correctly.
   4398     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4399     since some C++ compilers masquerading as C compilers
   4400     incorrectly reject 9223372036854775807.  */
   4401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4402   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4403 		       && LARGE_OFF_T % 2147483647 == 1)
   4404 		      ? 1 : -1];
   4405 int
   4406 main ()
   4407 {
   4408 
   4409   ;
   4410   return 0;
   4411 }
   4412 _ACEOF
   4413 if ac_fn_c_try_compile "$LINENO"; then :
   4414   ac_cv_sys_file_offset_bits=64; break
   4415 fi
   4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4417   ac_cv_sys_file_offset_bits=unknown
   4418   break
   4419 done
   4420 fi
   4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4422 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4423 case $ac_cv_sys_file_offset_bits in #(
   4424   no | unknown) ;;
   4425   *)
   4426 cat >>confdefs.h <<_ACEOF
   4427 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4428 _ACEOF
   4429 ;;
   4430 esac
   4431 rm -rf conftest*
   4432   if test $ac_cv_sys_file_offset_bits = unknown; then
   4433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4434 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4435 if ${ac_cv_sys_large_files+:} false; then :
   4436   $as_echo_n "(cached) " >&6
   4437 else
   4438   while :; do
   4439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4440 /* end confdefs.h.  */
   4441 #include <sys/types.h>
   4442  /* Check that off_t can represent 2**63 - 1 correctly.
   4443     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4444     since some C++ compilers masquerading as C compilers
   4445     incorrectly reject 9223372036854775807.  */
   4446 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4447   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4448 		       && LARGE_OFF_T % 2147483647 == 1)
   4449 		      ? 1 : -1];
   4450 int
   4451 main ()
   4452 {
   4453 
   4454   ;
   4455   return 0;
   4456 }
   4457 _ACEOF
   4458 if ac_fn_c_try_compile "$LINENO"; then :
   4459   ac_cv_sys_large_files=no; break
   4460 fi
   4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4463 /* end confdefs.h.  */
   4464 #define _LARGE_FILES 1
   4465 #include <sys/types.h>
   4466  /* Check that off_t can represent 2**63 - 1 correctly.
   4467     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4468     since some C++ compilers masquerading as C compilers
   4469     incorrectly reject 9223372036854775807.  */
   4470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4471   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4472 		       && LARGE_OFF_T % 2147483647 == 1)
   4473 		      ? 1 : -1];
   4474 int
   4475 main ()
   4476 {
   4477 
   4478   ;
   4479   return 0;
   4480 }
   4481 _ACEOF
   4482 if ac_fn_c_try_compile "$LINENO"; then :
   4483   ac_cv_sys_large_files=1; break
   4484 fi
   4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4486   ac_cv_sys_large_files=unknown
   4487   break
   4488 done
   4489 fi
   4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4491 $as_echo "$ac_cv_sys_large_files" >&6; }
   4492 case $ac_cv_sys_large_files in #(
   4493   no | unknown) ;;
   4494   *)
   4495 cat >>confdefs.h <<_ACEOF
   4496 #define _LARGE_FILES $ac_cv_sys_large_files
   4497 _ACEOF
   4498 ;;
   4499 esac
   4500 rm -rf conftest*
   4501   fi
   4502 
   4503 
   4504 fi
   4505 
   4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
   4507 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
   4508 if ${ac_cv_sys_largefile_source+:} false; then :
   4509   $as_echo_n "(cached) " >&6
   4510 else
   4511   while :; do
   4512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4513 /* end confdefs.h.  */
   4514 #include <sys/types.h> /* for off_t */
   4515      #include <stdio.h>
   4516 int
   4517 main ()
   4518 {
   4519 int (*fp) (FILE *, off_t, int) = fseeko;
   4520      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   4521   ;
   4522   return 0;
   4523 }
   4524 _ACEOF
   4525 if ac_fn_c_try_link "$LINENO"; then :
   4526   ac_cv_sys_largefile_source=no; break
   4527 fi
   4528 rm -f core conftest.err conftest.$ac_objext \
   4529     conftest$ac_exeext conftest.$ac_ext
   4530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4531 /* end confdefs.h.  */
   4532 #define _LARGEFILE_SOURCE 1
   4533 #include <sys/types.h> /* for off_t */
   4534      #include <stdio.h>
   4535 int
   4536 main ()
   4537 {
   4538 int (*fp) (FILE *, off_t, int) = fseeko;
   4539      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   4540   ;
   4541   return 0;
   4542 }
   4543 _ACEOF
   4544 if ac_fn_c_try_link "$LINENO"; then :
   4545   ac_cv_sys_largefile_source=1; break
   4546 fi
   4547 rm -f core conftest.err conftest.$ac_objext \
   4548     conftest$ac_exeext conftest.$ac_ext
   4549   ac_cv_sys_largefile_source=unknown
   4550   break
   4551 done
   4552 fi
   4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
   4554 $as_echo "$ac_cv_sys_largefile_source" >&6; }
   4555 case $ac_cv_sys_largefile_source in #(
   4556   no | unknown) ;;
   4557   *)
   4558 cat >>confdefs.h <<_ACEOF
   4559 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
   4560 _ACEOF
   4561 ;;
   4562 esac
   4563 rm -rf conftest*
   4564 
   4565 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   4566 # in glibc 2.1.3, but that breaks too many other things.
   4567 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
   4568 if test $ac_cv_sys_largefile_source != unknown; then
   4569 
   4570 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
   4571 
   4572 fi
   4573 
   4574 
   4575 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
   4576 do :
   4577   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4578 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   4579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4580   cat >>confdefs.h <<_ACEOF
   4581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4582 _ACEOF
   4583 
   4584 fi
   4585 
   4586 done
   4587 
   4588 for ac_header in linux/types.h
   4589 do :
   4590   ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
   4591 if test "x$ac_cv_header_linux_types_h" = xyes; then :
   4592   cat >>confdefs.h <<_ACEOF
   4593 #define HAVE_LINUX_TYPES_H 1
   4594 _ACEOF
   4595 
   4596 fi
   4597 
   4598 done
   4599 
   4600 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
   4601 do :
   4602   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4603 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   4604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4605   cat >>confdefs.h <<_ACEOF
   4606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4607 _ACEOF
   4608 
   4609 fi
   4610 
   4611 done
   4612 
   4613 for ac_header in net/pfvar.h
   4614 do :
   4615   ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
   4616 #include <sys/socket.h>
   4617 #include <net/if.h>
   4618 "
   4619 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
   4620   cat >>confdefs.h <<_ACEOF
   4621 #define HAVE_NET_PFVAR_H 1
   4622 _ACEOF
   4623 
   4624 fi
   4625 
   4626 done
   4627 
   4628 if test "$ac_cv_header_net_pfvar_h" = yes; then
   4629 	#
   4630 	# Check for various PF actions.
   4631 	#
   4632 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
   4633 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
   4634 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4635 /* end confdefs.h.  */
   4636 #include <sys/types.h>
   4637 	    #include <sys/socket.h>
   4638 	    #include <net/if.h>
   4639 	    #include <net/pfvar.h>
   4640 int
   4641 main ()
   4642 {
   4643 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
   4644   ;
   4645   return 0;
   4646 }
   4647 _ACEOF
   4648 if ac_fn_c_try_compile "$LINENO"; then :
   4649 
   4650 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4651 $as_echo "yes" >&6; }
   4652 
   4653 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
   4654 
   4655 
   4656 else
   4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4658 $as_echo "no" >&6; }
   4659 fi
   4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4661 fi
   4662 for ac_header in netinet/if_ether.h
   4663 do :
   4664   ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
   4665 #include <sys/socket.h>
   4666 "
   4667 if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
   4668   cat >>confdefs.h <<_ACEOF
   4669 #define HAVE_NETINET_IF_ETHER_H 1
   4670 _ACEOF
   4671 
   4672 fi
   4673 
   4674 done
   4675 
   4676 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
   4677 	#
   4678 	# The simple test didn't work.
   4679 	# Do we need to include <net/if.h> first?
   4680 	# Unset ac_cv_header_netinet_if_ether_h so we don't
   4681 	# treat the previous failure as a cached value and
   4682 	# suppress the next test.
   4683 	#
   4684 	{ $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
   4685 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
   4686 	unset ac_cv_header_netinet_if_ether_h
   4687 	for ac_header in netinet/if_ether.h
   4688 do :
   4689   ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
   4690 #include <sys/socket.h>
   4691 #include <netinet/in.h>
   4692 struct mbuf;
   4693 struct rtentry;
   4694 #include <net/if.h>
   4695 "
   4696 if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
   4697   cat >>confdefs.h <<_ACEOF
   4698 #define HAVE_NETINET_IF_ETHER_H 1
   4699 _ACEOF
   4700 
   4701 fi
   4702 
   4703 done
   4704 
   4705 fi
   4706 
   4707 if test "$GCC" = yes ; then
   4708 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
   4709 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
   4710 	    if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
   4711   $as_echo_n "(cached) " >&6
   4712 else
   4713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4714 /* end confdefs.h.  */
   4715 /*
   4716 		     * This generates a "duplicate case value" when fixincludes
   4717 		     * has not be run.
   4718 		     */
   4719 #		include <sys/types.h>
   4720 #		include <sys/time.h>
   4721 #		include <sys/ioctl.h>
   4722 #		ifdef HAVE_SYS_IOCCOM_H
   4723 #		include <sys/ioccom.h>
   4724 #		endif
   4725 int
   4726 main ()
   4727 {
   4728 switch (0) {
   4729 		    case _IO('A', 1):;
   4730 		    case _IO('B', 1):;
   4731 		    }
   4732   ;
   4733   return 0;
   4734 }
   4735 _ACEOF
   4736 if ac_fn_c_try_compile "$LINENO"; then :
   4737   ac_cv_lbl_gcc_fixincludes=yes
   4738 else
   4739   ac_cv_lbl_gcc_fixincludes=no
   4740 fi
   4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4742 fi
   4743 
   4744 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
   4745 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
   4746 	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
   4747 		    # Don't cache failure
   4748 		    unset ac_cv_lbl_gcc_fixincludes
   4749 		    as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
   4750 	    fi
   4751     fi
   4752 
   4753 for ac_func in strerror strlcpy
   4754 do :
   4755   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   4757 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   4758   cat >>confdefs.h <<_ACEOF
   4759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4760 _ACEOF
   4761 
   4762 fi
   4763 done
   4764 
   4765 
   4766 needsnprintf=no
   4767 for ac_func in vsnprintf snprintf
   4768 do :
   4769   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4770 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   4771 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   4772   cat >>confdefs.h <<_ACEOF
   4773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4774 _ACEOF
   4775 
   4776 else
   4777   needsnprintf=yes
   4778 fi
   4779 done
   4780 
   4781 if test $needsnprintf = yes; then
   4782 	case " $LIBOBJS " in
   4783   *" snprintf.$ac_objext "* ) ;;
   4784   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   4785  ;;
   4786 esac
   4787 
   4788 fi
   4789 
   4790 #
   4791 # Do this before checking for ether_hostton(), as it's a
   4792 # "gethostbyname() -ish function".
   4793 #
   4794 
   4795     # Most operating systems have gethostbyname() in the default searched
   4796     # libraries (i.e. libc):
   4797     # Some OSes (eg. Solaris) place it in libnsl
   4798     # Some strange OSes (SINIX) have it in libsocket:
   4799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   4800 $as_echo_n "checking for library containing gethostbyname... " >&6; }
   4801 if ${ac_cv_search_gethostbyname+:} false; then :
   4802   $as_echo_n "(cached) " >&6
   4803 else
   4804   ac_func_search_save_LIBS=$LIBS
   4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4806 /* end confdefs.h.  */
   4807 
   4808 /* Override any GCC internal prototype to avoid an error.
   4809    Use char because int might match the return type of a GCC
   4810    builtin and then its argument prototype would still apply.  */
   4811 #ifdef __cplusplus
   4812 extern "C"
   4813 #endif
   4814 char gethostbyname ();
   4815 int
   4816 main ()
   4817 {
   4818 return gethostbyname ();
   4819   ;
   4820   return 0;
   4821 }
   4822 _ACEOF
   4823 for ac_lib in '' nsl socket resolv; do
   4824   if test -z "$ac_lib"; then
   4825     ac_res="none required"
   4826   else
   4827     ac_res=-l$ac_lib
   4828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4829   fi
   4830   if ac_fn_c_try_link "$LINENO"; then :
   4831   ac_cv_search_gethostbyname=$ac_res
   4832 fi
   4833 rm -f core conftest.err conftest.$ac_objext \
   4834     conftest$ac_exeext
   4835   if ${ac_cv_search_gethostbyname+:} false; then :
   4836   break
   4837 fi
   4838 done
   4839 if ${ac_cv_search_gethostbyname+:} false; then :
   4840 
   4841 else
   4842   ac_cv_search_gethostbyname=no
   4843 fi
   4844 rm conftest.$ac_ext
   4845 LIBS=$ac_func_search_save_LIBS
   4846 fi
   4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   4848 $as_echo "$ac_cv_search_gethostbyname" >&6; }
   4849 ac_res=$ac_cv_search_gethostbyname
   4850 if test "$ac_res" != no; then :
   4851   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4852 
   4853 fi
   4854 
   4855     # Unfortunately libsocket sometimes depends on libnsl and
   4856     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
   4857     if test "$ac_cv_search_gethostbyname" = "no"
   4858     then
   4859 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
   4860 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
   4861 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
   4862   $as_echo_n "(cached) " >&6
   4863 else
   4864   ac_check_lib_save_LIBS=$LIBS
   4865 LIBS="-lsocket -lnsl $LIBS"
   4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4867 /* end confdefs.h.  */
   4868 
   4869 /* Override any GCC internal prototype to avoid an error.
   4870    Use char because int might match the return type of a GCC
   4871    builtin and then its argument prototype would still apply.  */
   4872 #ifdef __cplusplus
   4873 extern "C"
   4874 #endif
   4875 char gethostbyname ();
   4876 int
   4877 main ()
   4878 {
   4879 return gethostbyname ();
   4880   ;
   4881   return 0;
   4882 }
   4883 _ACEOF
   4884 if ac_fn_c_try_link "$LINENO"; then :
   4885   ac_cv_lib_socket_gethostbyname=yes
   4886 else
   4887   ac_cv_lib_socket_gethostbyname=no
   4888 fi
   4889 rm -f core conftest.err conftest.$ac_objext \
   4890     conftest$ac_exeext conftest.$ac_ext
   4891 LIBS=$ac_check_lib_save_LIBS
   4892 fi
   4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
   4894 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
   4895 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
   4896   LIBS="-lsocket -lnsl $LIBS"
   4897 fi
   4898 
   4899     fi
   4900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   4901 $as_echo_n "checking for library containing socket... " >&6; }
   4902 if ${ac_cv_search_socket+:} false; then :
   4903   $as_echo_n "(cached) " >&6
   4904 else
   4905   ac_func_search_save_LIBS=$LIBS
   4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4907 /* end confdefs.h.  */
   4908 
   4909 /* Override any GCC internal prototype to avoid an error.
   4910    Use char because int might match the return type of a GCC
   4911    builtin and then its argument prototype would still apply.  */
   4912 #ifdef __cplusplus
   4913 extern "C"
   4914 #endif
   4915 char socket ();
   4916 int
   4917 main ()
   4918 {
   4919 return socket ();
   4920   ;
   4921   return 0;
   4922 }
   4923 _ACEOF
   4924 for ac_lib in '' socket; do
   4925   if test -z "$ac_lib"; then
   4926     ac_res="none required"
   4927   else
   4928     ac_res=-l$ac_lib
   4929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4930   fi
   4931   if ac_fn_c_try_link "$LINENO"; then :
   4932   ac_cv_search_socket=$ac_res
   4933 fi
   4934 rm -f core conftest.err conftest.$ac_objext \
   4935     conftest$ac_exeext
   4936   if ${ac_cv_search_socket+:} false; then :
   4937   break
   4938 fi
   4939 done
   4940 if ${ac_cv_search_socket+:} false; then :
   4941 
   4942 else
   4943   ac_cv_search_socket=no
   4944 fi
   4945 rm conftest.$ac_ext
   4946 LIBS=$ac_func_search_save_LIBS
   4947 fi
   4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   4949 $as_echo "$ac_cv_search_socket" >&6; }
   4950 ac_res=$ac_cv_search_socket
   4951 if test "$ac_res" != no; then :
   4952   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4953 
   4954 else
   4955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   4956 $as_echo_n "checking for socket in -lsocket... " >&6; }
   4957 if ${ac_cv_lib_socket_socket+:} false; then :
   4958   $as_echo_n "(cached) " >&6
   4959 else
   4960   ac_check_lib_save_LIBS=$LIBS
   4961 LIBS="-lsocket -lnsl $LIBS"
   4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4963 /* end confdefs.h.  */
   4964 
   4965 /* Override any GCC internal prototype to avoid an error.
   4966    Use char because int might match the return type of a GCC
   4967    builtin and then its argument prototype would still apply.  */
   4968 #ifdef __cplusplus
   4969 extern "C"
   4970 #endif
   4971 char socket ();
   4972 int
   4973 main ()
   4974 {
   4975 return socket ();
   4976   ;
   4977   return 0;
   4978 }
   4979 _ACEOF
   4980 if ac_fn_c_try_link "$LINENO"; then :
   4981   ac_cv_lib_socket_socket=yes
   4982 else
   4983   ac_cv_lib_socket_socket=no
   4984 fi
   4985 rm -f core conftest.err conftest.$ac_objext \
   4986     conftest$ac_exeext conftest.$ac_ext
   4987 LIBS=$ac_check_lib_save_LIBS
   4988 fi
   4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   4990 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   4991 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   4992   LIBS="-lsocket -lnsl $LIBS"
   4993 fi
   4994 
   4995 fi
   4996 
   4997     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
   4998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
   4999 $as_echo_n "checking for library containing putmsg... " >&6; }
   5000 if ${ac_cv_search_putmsg+:} false; then :
   5001   $as_echo_n "(cached) " >&6
   5002 else
   5003   ac_func_search_save_LIBS=$LIBS
   5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5005 /* end confdefs.h.  */
   5006 
   5007 /* Override any GCC internal prototype to avoid an error.
   5008    Use char because int might match the return type of a GCC
   5009    builtin and then its argument prototype would still apply.  */
   5010 #ifdef __cplusplus
   5011 extern "C"
   5012 #endif
   5013 char putmsg ();
   5014 int
   5015 main ()
   5016 {
   5017 return putmsg ();
   5018   ;
   5019   return 0;
   5020 }
   5021 _ACEOF
   5022 for ac_lib in '' str; do
   5023   if test -z "$ac_lib"; then
   5024     ac_res="none required"
   5025   else
   5026     ac_res=-l$ac_lib
   5027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5028   fi
   5029   if ac_fn_c_try_link "$LINENO"; then :
   5030   ac_cv_search_putmsg=$ac_res
   5031 fi
   5032 rm -f core conftest.err conftest.$ac_objext \
   5033     conftest$ac_exeext
   5034   if ${ac_cv_search_putmsg+:} false; then :
   5035   break
   5036 fi
   5037 done
   5038 if ${ac_cv_search_putmsg+:} false; then :
   5039 
   5040 else
   5041   ac_cv_search_putmsg=no
   5042 fi
   5043 rm conftest.$ac_ext
   5044 LIBS=$ac_func_search_save_LIBS
   5045 fi
   5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
   5047 $as_echo "$ac_cv_search_putmsg" >&6; }
   5048 ac_res=$ac_cv_search_putmsg
   5049 if test "$ac_res" != no; then :
   5050   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5051 
   5052 fi
   5053 
   5054 
   5055 
   5056 #
   5057 # You are in a twisty little maze of UN*Xes, all different.
   5058 # Some might not have ether_hostton().
   5059 # Some might have it, but not declare it in any header file.
   5060 # Some might have it, but declare it in <netinet/if_ether.h>.
   5061 # Some might have it, but declare it in <netinet/ether.h>
   5062 # (And some might have it but document it as something declared in
   5063 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
   5064 #
   5065 # Before you is a C compiler.
   5066 #
   5067 for ac_func in ether_hostton
   5068 do :
   5069   ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
   5070 if test "x$ac_cv_func_ether_hostton" = xyes; then :
   5071   cat >>confdefs.h <<_ACEOF
   5072 #define HAVE_ETHER_HOSTTON 1
   5073 _ACEOF
   5074 
   5075 fi
   5076 done
   5077 
   5078 if test "$ac_cv_func_ether_hostton" = yes; then
   5079 	#
   5080 	# OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
   5081 	#
   5082 	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
   5083 		#
   5084 		# Yes.  Does it declare ether_hostton()?
   5085 		#
   5086 		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
   5087 #include <sys/types.h>
   5088 #include <sys/socket.h>
   5089 #include <netinet/in.h>
   5090 #include <arpa/inet.h>
   5091 struct mbuf;
   5092 struct rtentry;
   5093 #include <net/if.h>
   5094 #include <netinet/if_ether.h>
   5095 
   5096 "
   5097 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
   5098 
   5099 
   5100 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
   5101 
   5102 
   5103 fi
   5104 
   5105 	fi
   5106 	#
   5107 	# Did that succeed?
   5108 	#
   5109 	if test "$ac_cv_have_decl_ether_hostton" != yes; then
   5110 		#
   5111 		# No, how about <netinet/ether.h>, as on Linux?
   5112 		#
   5113 		for ac_header in netinet/ether.h
   5114 do :
   5115   ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
   5116 if test "x$ac_cv_header_netinet_ether_h" = xyes; then :
   5117   cat >>confdefs.h <<_ACEOF
   5118 #define HAVE_NETINET_ETHER_H 1
   5119 _ACEOF
   5120 
   5121 fi
   5122 
   5123 done
   5124 
   5125 		if test "$ac_cv_header_netinet_ether_h" = yes; then
   5126 			#
   5127 			# We have it - does it declare ether_hostton()?
   5128 			# Unset ac_cv_have_decl_ether_hostton so we don't
   5129 			# treat the previous failure as a cached value and
   5130 			# suppress the next test.
   5131 			#
   5132 			unset ac_cv_have_decl_ether_hostton
   5133 			ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
   5134 #include <netinet/ether.h>
   5135 
   5136 "
   5137 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
   5138 
   5139 
   5140 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
   5141 
   5142 
   5143 fi
   5144 
   5145 		fi
   5146 	fi
   5147 	#
   5148 	# Is ether_hostton() declared?
   5149 	#
   5150 	if test "$ac_cv_have_decl_ether_hostton" != yes; then
   5151 		#
   5152 		# No, we'll have to declare it ourselves.
   5153 		# Do we have "struct ether_addr"?
   5154 		#
   5155 		ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
   5156 #include <sys/types.h>
   5157 #include <sys/socket.h>
   5158 #include <netinet/in.h>
   5159 #include <arpa/inet.h>
   5160 struct mbuf;
   5161 struct rtentry;
   5162 #include <net/if.h>
   5163 #include <netinet/if_ether.h>
   5164 
   5165 "
   5166 if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
   5167 
   5168 cat >>confdefs.h <<_ACEOF
   5169 #define HAVE_STRUCT_ETHER_ADDR 1
   5170 _ACEOF
   5171 
   5172 
   5173 fi
   5174 
   5175 
   5176 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
   5177 
   5178 	else
   5179 
   5180 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
   5181 
   5182 	fi
   5183 fi
   5184 
   5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
   5186 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
   5187 # Check whether --enable-protochain was given.
   5188 if test "${enable_protochain+set}" = set; then :
   5189   enableval=$enable_protochain;
   5190 fi
   5191 
   5192 case "x$enable_protochain" in
   5193 xyes)	enable_protochain=enabled	;;
   5194 xno)	enable_protochain=disabled	;;
   5195 x)	enable_protochain=enabled	;;
   5196 esac
   5197 
   5198 if test "$enable_protochain" = "disabled"; then
   5199 
   5200 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
   5201 
   5202 fi
   5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
   5204 $as_echo "${enable_protochain}" >&6; }
   5205 
   5206 #
   5207 # SITA support is mutually exclusive with native capture support;
   5208 # "--with-sita" selects SITA support.
   5209 #
   5210 
   5211 # Check whether --with-sita was given.
   5212 if test "${with_sita+set}" = set; then :
   5213   withval=$with_sita;
   5214 	if test ! "x$withval" = "xno" ; then
   5215 
   5216 $as_echo "#define SITA 1" >>confdefs.h
   5217 
   5218 		{ $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
   5219 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
   5220 		V_PCAP=sita
   5221 		V_FINDALLDEVS=sita
   5222 	fi
   5223 
   5224 else
   5225 
   5226 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
   5227 	as_fn_error $? "pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
   5228 fi
   5229 
   5230 # Check whether --with-pcap was given.
   5231 if test "${with_pcap+set}" = set; then :
   5232   withval=$with_pcap;
   5233 fi
   5234 
   5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
   5236 $as_echo_n "checking packet capture type... " >&6; }
   5237 if test ! -z "$with_pcap" ; then
   5238 	V_PCAP="$withval"
   5239 elif test -r /dev/bpf -o -h /dev/bpf ; then
   5240 	#
   5241 	# Cloning BPF device.
   5242 	#
   5243 	V_PCAP=bpf
   5244 
   5245 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
   5246 
   5247 elif test -r /dev/bpf0 ; then
   5248 	V_PCAP=bpf
   5249 elif test -r /usr/include/net/pfilt.h ; then
   5250 	V_PCAP=pf
   5251 elif test -r /dev/enet ; then
   5252 	V_PCAP=enet
   5253 elif test -r /dev/nit ; then
   5254 	V_PCAP=snit
   5255 elif test -r /usr/include/sys/net/nit.h ; then
   5256 	V_PCAP=nit
   5257 elif test -r /usr/include/linux/socket.h ; then
   5258 	V_PCAP=linux
   5259 elif test -r /usr/include/net/raw.h ; then
   5260 	V_PCAP=snoop
   5261 elif test -r /usr/include/odmi.h ; then
   5262 	#
   5263 	# On AIX, the BPF devices might not yet be present - they're
   5264 	# created the first time libpcap runs after booting.
   5265 	# We check for odmi.h instead.
   5266 	#
   5267 	V_PCAP=bpf
   5268 elif test -c /dev/bpf0 ; then		# check again in case not readable
   5269 	V_PCAP=bpf
   5270 elif test -r /usr/include/sys/dlpi.h ; then
   5271 	V_PCAP=dlpi
   5272 elif test -c /dev/enet ; then		# check again in case not readable
   5273 	V_PCAP=enet
   5274 elif test -c /dev/nit ; then		# check again in case not readable
   5275 	V_PCAP=snit
   5276 else
   5277 	V_PCAP=null
   5278 fi
   5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
   5280 $as_echo "$V_PCAP" >&6; }
   5281 
   5282 #
   5283 # Do capture-mechanism-dependent tests.
   5284 #
   5285 case "$V_PCAP" in
   5286 dlpi)
   5287 	#
   5288 	# Needed for common functions used by pcap-[dlpi,libdlpi].c
   5289 	#
   5290  	SSRC="dlpisubs.c"
   5291 
   5292 	#
   5293 	# Checks for some header files.
   5294 	#
   5295 	for ac_header in sys/bufmod.h sys/dlpi_ext.h
   5296 do :
   5297   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5298 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   5299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5300   cat >>confdefs.h <<_ACEOF
   5301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5302 _ACEOF
   5303 
   5304 fi
   5305 
   5306 done
   5307 
   5308 
   5309 	#
   5310 	# Checks to see if Solaris has the public libdlpi(3LIB) library.
   5311 	# Note: The existence of /usr/include/libdlpi.h does not mean it is the
   5312 	# public libdlpi(3LIB) version. Before libdlpi was made public, a
   5313 	# private version also existed, which did not have the same APIs.
   5314 	# Due to a gcc bug, the default search path for 32-bit libraries does
   5315 	# not include /lib, we add it explicitly here.
   5316 	# [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
   5317 	# Also, due to the bug above applications that link to libpcap with
   5318 	# libdlpi will have to add "-L/lib" option to "configure".
   5319 	#
   5320 	saved_ldflags=$LDFLAGS
   5321 	LDFLAGS="$LIBS -L/lib"
   5322 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
   5323 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
   5324 if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
   5325   $as_echo_n "(cached) " >&6
   5326 else
   5327   ac_check_lib_save_LIBS=$LIBS
   5328 LIBS="-ldlpi  $LIBS"
   5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5330 /* end confdefs.h.  */
   5331 
   5332 /* Override any GCC internal prototype to avoid an error.
   5333    Use char because int might match the return type of a GCC
   5334    builtin and then its argument prototype would still apply.  */
   5335 #ifdef __cplusplus
   5336 extern "C"
   5337 #endif
   5338 char dlpi_walk ();
   5339 int
   5340 main ()
   5341 {
   5342 return dlpi_walk ();
   5343   ;
   5344   return 0;
   5345 }
   5346 _ACEOF
   5347 if ac_fn_c_try_link "$LINENO"; then :
   5348   ac_cv_lib_dlpi_dlpi_walk=yes
   5349 else
   5350   ac_cv_lib_dlpi_dlpi_walk=no
   5351 fi
   5352 rm -f core conftest.err conftest.$ac_objext \
   5353     conftest$ac_exeext conftest.$ac_ext
   5354 LIBS=$ac_check_lib_save_LIBS
   5355 fi
   5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
   5357 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
   5358 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
   5359 
   5360 			LIBS="-ldlpi $LIBS"
   5361 			V_PCAP=libdlpi
   5362 
   5363 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
   5364 
   5365 
   5366 else
   5367   V_PCAP=dlpi
   5368 fi
   5369 
   5370 	LDFLAGS=$saved_ldflags
   5371 
   5372 	#
   5373 	# Checks whether <sys/dlpi.h> is usable, to catch weird SCO
   5374 	# versions of DLPI.
   5375 	#
   5376 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
   5377 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
   5378 	if ${ac_cv_sys_dlpi_usable+:} false; then :
   5379   $as_echo_n "(cached) " >&6
   5380 else
   5381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5382 /* end confdefs.h.  */
   5383 
   5384 			#include <sys/types.h>
   5385 			#include <sys/time.h>
   5386 			#include <sys/dlpi.h>
   5387 
   5388 int
   5389 main ()
   5390 {
   5391 int i = DL_PROMISC_PHYS;
   5392   ;
   5393   return 0;
   5394 }
   5395 _ACEOF
   5396 if ac_fn_c_try_compile "$LINENO"; then :
   5397   ac_cv_sys_dlpi_usable=yes
   5398 else
   5399   ac_cv_sys_dlpi_usable=no
   5400 fi
   5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5402 fi
   5403 
   5404 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
   5405 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
   5406 	if test $ac_cv_sys_dlpi_usable = no ; then
   5407 		as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
   5408 	fi
   5409 
   5410 	#
   5411 	# Check whether we have a /dev/dlpi device or have multiple devices.
   5412 	#
   5413 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
   5414 $as_echo_n "checking for /dev/dlpi device... " >&6; }
   5415 	if test -c /dev/dlpi ; then
   5416 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5417 $as_echo "yes" >&6; }
   5418 
   5419 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
   5420 
   5421 	else
   5422 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5423 $as_echo "no" >&6; }
   5424 		dir="/dev/dlpi"
   5425 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
   5426 $as_echo_n "checking for $dir directory... " >&6; }
   5427 		if test -d $dir ; then
   5428 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5429 $as_echo "yes" >&6; }
   5430 
   5431 cat >>confdefs.h <<_ACEOF
   5432 #define PCAP_DEV_PREFIX "$dir"
   5433 _ACEOF
   5434 
   5435 		else
   5436 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5437 $as_echo "no" >&6; }
   5438 		fi
   5439 	fi
   5440 
   5441 	#
   5442 	# This check is for Solaris with DLPI support for passive modes.
   5443 	# See dlpi(7P) for more details.
   5444 	#
   5445 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
   5446 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
   5447        if ${ac_cv_lbl_has_dl_passive_req_t+:} false; then :
   5448   $as_echo_n "(cached) " >&6
   5449 else
   5450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5451 /* end confdefs.h.  */
   5452 
   5453 #       include <sys/types.h>
   5454 #       include <sys/dlpi.h>
   5455 int
   5456 main ()
   5457 {
   5458 u_int i = sizeof(dl_passive_req_t)
   5459   ;
   5460   return 0;
   5461 }
   5462 _ACEOF
   5463 if ac_fn_c_try_compile "$LINENO"; then :
   5464   ac_cv_lbl_has_dl_passive_req_t=yes
   5465 else
   5466   ac_cv_lbl_has_dl_passive_req_t=no
   5467 fi
   5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5469 fi
   5470 
   5471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
   5472 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
   5473     if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
   5474 
   5475 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
   5476 
   5477     fi
   5478 	;;
   5479 
   5480 linux)
   5481 	#
   5482 	# Do we have the wireless extensions?
   5483 	#
   5484 	for ac_header in linux/wireless.h
   5485 do :
   5486   ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
   5487 #include <sys/socket.h>
   5488 #include <linux/if.h>
   5489 #include <linux/types.h>
   5490 
   5491 "
   5492 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
   5493   cat >>confdefs.h <<_ACEOF
   5494 #define HAVE_LINUX_WIRELESS_H 1
   5495 _ACEOF
   5496 
   5497 fi
   5498 
   5499 done
   5500 
   5501 
   5502 	#
   5503 	# Do we have libnl?
   5504 	#
   5505 
   5506 # Check whether --with-libnl was given.
   5507 if test "${with_libnl+set}" = set; then :
   5508   withval=$with_libnl; with_libnl=$withval
   5509 fi
   5510 
   5511 
   5512 	if test x$with_libnl != xno ; then
   5513 		have_any_nl="no"
   5514 
   5515 		#
   5516 		# Try libnl 3.x first.
   5517 		#
   5518 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
   5519 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
   5520 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
   5521   $as_echo_n "(cached) " >&6
   5522 else
   5523   ac_check_lib_save_LIBS=$LIBS
   5524 LIBS="-lnl-3  $LIBS"
   5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5526 /* end confdefs.h.  */
   5527 
   5528 /* Override any GCC internal prototype to avoid an error.
   5529    Use char because int might match the return type of a GCC
   5530    builtin and then its argument prototype would still apply.  */
   5531 #ifdef __cplusplus
   5532 extern "C"
   5533 #endif
   5534 char nl_socket_alloc ();
   5535 int
   5536 main ()
   5537 {
   5538 return nl_socket_alloc ();
   5539   ;
   5540   return 0;
   5541 }
   5542 _ACEOF
   5543 if ac_fn_c_try_link "$LINENO"; then :
   5544   ac_cv_lib_nl_3_nl_socket_alloc=yes
   5545 else
   5546   ac_cv_lib_nl_3_nl_socket_alloc=no
   5547 fi
   5548 rm -f core conftest.err conftest.$ac_objext \
   5549     conftest$ac_exeext conftest.$ac_ext
   5550 LIBS=$ac_check_lib_save_LIBS
   5551 fi
   5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
   5553 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
   5554 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
   5555 
   5556 			#
   5557 			# Yes, we have libnl 3.x.
   5558 			#
   5559 			LIBS="-lnl-genl-3 -lnl-3 $LIBS"
   5560 
   5561 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
   5562 
   5563 
   5564 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
   5565 
   5566 
   5567 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
   5568 
   5569 
   5570 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
   5571 
   5572 			V_INCLS="$V_INCLS -I/usr/include/libnl3"
   5573 			have_any_nl="yes"
   5574 
   5575 fi
   5576 
   5577 
   5578 		if test x$have_any_nl = xno ; then
   5579 			#
   5580 			# Try libnl 2.x
   5581 			#
   5582 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
   5583 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
   5584 if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
   5585   $as_echo_n "(cached) " >&6
   5586 else
   5587   ac_check_lib_save_LIBS=$LIBS
   5588 LIBS="-lnl  $LIBS"
   5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5590 /* end confdefs.h.  */
   5591 
   5592 /* Override any GCC internal prototype to avoid an error.
   5593    Use char because int might match the return type of a GCC
   5594    builtin and then its argument prototype would still apply.  */
   5595 #ifdef __cplusplus
   5596 extern "C"
   5597 #endif
   5598 char nl_socket_alloc ();
   5599 int
   5600 main ()
   5601 {
   5602 return nl_socket_alloc ();
   5603   ;
   5604   return 0;
   5605 }
   5606 _ACEOF
   5607 if ac_fn_c_try_link "$LINENO"; then :
   5608   ac_cv_lib_nl_nl_socket_alloc=yes
   5609 else
   5610   ac_cv_lib_nl_nl_socket_alloc=no
   5611 fi
   5612 rm -f core conftest.err conftest.$ac_objext \
   5613     conftest$ac_exeext conftest.$ac_ext
   5614 LIBS=$ac_check_lib_save_LIBS
   5615 fi
   5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
   5617 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
   5618 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
   5619 
   5620 				#
   5621 				# Yes, we have libnl 2.x.
   5622 				#
   5623 				LIBS="-lnl-genl -lnl $LIBS"
   5624 
   5625 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
   5626 
   5627 
   5628 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
   5629 
   5630 
   5631 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
   5632 
   5633 
   5634 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
   5635 
   5636 				have_any_nl="yes"
   5637 
   5638 fi
   5639 
   5640 		fi
   5641 
   5642 		if test x$have_any_nl = xno ; then
   5643 			#
   5644 			# No, we don't; do we have libnl 1.x?
   5645 			#
   5646 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
   5647 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
   5648 if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
   5649   $as_echo_n "(cached) " >&6
   5650 else
   5651   ac_check_lib_save_LIBS=$LIBS
   5652 LIBS="-lnl  $LIBS"
   5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5654 /* end confdefs.h.  */
   5655 
   5656 /* Override any GCC internal prototype to avoid an error.
   5657    Use char because int might match the return type of a GCC
   5658    builtin and then its argument prototype would still apply.  */
   5659 #ifdef __cplusplus
   5660 extern "C"
   5661 #endif
   5662 char nl_handle_alloc ();
   5663 int
   5664 main ()
   5665 {
   5666 return nl_handle_alloc ();
   5667   ;
   5668   return 0;
   5669 }
   5670 _ACEOF
   5671 if ac_fn_c_try_link "$LINENO"; then :
   5672   ac_cv_lib_nl_nl_handle_alloc=yes
   5673 else
   5674   ac_cv_lib_nl_nl_handle_alloc=no
   5675 fi
   5676 rm -f core conftest.err conftest.$ac_objext \
   5677     conftest$ac_exeext conftest.$ac_ext
   5678 LIBS=$ac_check_lib_save_LIBS
   5679 fi
   5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
   5681 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
   5682 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
   5683 
   5684 				#
   5685 				# Yes.
   5686 				#
   5687 				LIBS="-lnl $LIBS"
   5688 
   5689 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
   5690 
   5691 				have_any_nl="yes"
   5692 
   5693 fi
   5694 
   5695 		fi
   5696 
   5697 		if test x$have_any_nl = xno ; then
   5698 			#
   5699 			# No, we don't have libnl at all.
   5700 			#
   5701 			if test x$with_libnl = xyes ; then
   5702 				as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
   5703 			fi
   5704 		fi
   5705 	fi
   5706 
   5707 	for ac_header in linux/ethtool.h
   5708 do :
   5709   ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
   5710 $ac_includes_default
   5711 #include <linux/types.h>
   5712 
   5713 "
   5714 if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
   5715   cat >>confdefs.h <<_ACEOF
   5716 #define HAVE_LINUX_ETHTOOL_H 1
   5717 _ACEOF
   5718 
   5719 fi
   5720 
   5721 done
   5722 
   5723 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
   5724 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
   5725    if ${ac_cv_lbl_tpacket_stats+:} false; then :
   5726   $as_echo_n "(cached) " >&6
   5727 else
   5728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5729 /* end confdefs.h.  */
   5730 
   5731 #  include <linux/if_packet.h>
   5732 int
   5733 main ()
   5734 {
   5735 struct tpacket_stats stats
   5736   ;
   5737   return 0;
   5738 }
   5739 _ACEOF
   5740 if ac_fn_c_try_compile "$LINENO"; then :
   5741   ac_cv_lbl_tpacket_stats=yes
   5742 else
   5743   ac_cv_lbl_tpacket_stats=no
   5744 fi
   5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5746 fi
   5747 
   5748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
   5749 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
   5750    if test $ac_cv_lbl_tpacket_stats = yes; then
   5751 
   5752 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
   5753 
   5754    fi
   5755 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
   5756 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
   5757     if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false; then :
   5758   $as_echo_n "(cached) " >&6
   5759 else
   5760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5761 /* end confdefs.h.  */
   5762 
   5763 #	include <sys/types.h>
   5764 #	include <linux/if_packet.h>
   5765 int
   5766 main ()
   5767 {
   5768 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
   5769   ;
   5770   return 0;
   5771 }
   5772 _ACEOF
   5773 if ac_fn_c_try_compile "$LINENO"; then :
   5774   ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
   5775 else
   5776   ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
   5777 fi
   5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5779 fi
   5780 
   5781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
   5782 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
   5783     if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
   5784 	    HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
   5785 
   5786 
   5787 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
   5788 
   5789     fi
   5790 	;;
   5791 
   5792 bpf)
   5793 	#
   5794 	# Check whether we have the *BSD-style ioctls.
   5795 	#
   5796 	for ac_header in net/if_media.h
   5797 do :
   5798   ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
   5799 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
   5800   cat >>confdefs.h <<_ACEOF
   5801 #define HAVE_NET_IF_MEDIA_H 1
   5802 _ACEOF
   5803 
   5804 fi
   5805 
   5806 done
   5807 
   5808 
   5809 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
   5810 $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
   5811 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5812 /* end confdefs.h.  */
   5813 #include <sys/socket.h>
   5814 	    #include <sys/ioctl.h>
   5815 	    #include <net/if.h>
   5816 	    #include <net/bpf.h>
   5817 int
   5818 main ()
   5819 {
   5820 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
   5821   ;
   5822   return 0;
   5823 }
   5824 _ACEOF
   5825 if ac_fn_c_try_compile "$LINENO"; then :
   5826 
   5827 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5828 $as_echo "yes" >&6; }
   5829 
   5830 $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
   5831 
   5832 
   5833 else
   5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5835 $as_echo "no" >&6; }
   5836 fi
   5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5838 
   5839 	    #
   5840 	    # Check whether we have struct BPF_TIMEVAL.
   5841 	    #
   5842 	    ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
   5843 #include <sys/types.h>
   5844 #include <sys/ioctl.h>
   5845 #ifdef HAVE_SYS_IOCCOM_H
   5846 #include <sys/ioccom.h>
   5847 #endif
   5848 #include <net/bpf.h>
   5849 
   5850 "
   5851 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
   5852 
   5853 cat >>confdefs.h <<_ACEOF
   5854 #define HAVE_STRUCT_BPF_TIMEVAL 1
   5855 _ACEOF
   5856 
   5857 
   5858 fi
   5859 
   5860 	;;
   5861 
   5862 dag)
   5863 	V_DEFS="$V_DEFS -DDAG_ONLY"
   5864 	;;
   5865 
   5866 septel)
   5867 	V_DEFS="$V_DEFS -DSEPTEL_ONLY"
   5868 	;;
   5869 
   5870 snf)
   5871 	V_DEFS="$V_DEFS -DSNF_ONLY"
   5872 	;;
   5873 
   5874 null)
   5875 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
   5876 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
   5877 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
   5878 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
   5879 	;;
   5880 esac
   5881 
   5882 if test "$V_PCAP" = null
   5883 then
   5884 	#
   5885 	# We can't capture, so we can't open any capture
   5886 	# devices, so we won't return any interfaces.
   5887 	#
   5888 	V_FINDALLDEVS=null
   5889 else
   5890 	ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
   5891 if test "x$ac_cv_func_getifaddrs" = xyes; then :
   5892 
   5893 		#
   5894 		# We have "getifaddrs()"; make sure we have <ifaddrs.h>
   5895 		# as well, just in case some platform is really weird.
   5896 		#
   5897 		ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
   5898 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
   5899 
   5900 		    #
   5901 		    # We have the header, so we use "getifaddrs()" to
   5902 		    # get the list of interfaces.
   5903 		    #
   5904 		    V_FINDALLDEVS=getad
   5905 
   5906 else
   5907 
   5908 		    #
   5909 		    # We don't have the header - give up.
   5910 		    # XXX - we could also fall back on some other
   5911 		    # mechanism, but, for now, this'll catch this
   5912 		    # problem so that we can at least try to figure
   5913 		    # out something to do on systems with "getifaddrs()"
   5914 		    # but without "ifaddrs.h", if there is something
   5915 		    # we can do on those systems.
   5916 		    #
   5917 		    as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
   5918 
   5919 fi
   5920 
   5921 
   5922 
   5923 else
   5924 
   5925 		#
   5926 		# Well, we don't have "getifaddrs()", so we have to use
   5927 		# some other mechanism; determine what that mechanism is.
   5928 		#
   5929 		# The first thing we use is the type of capture mechanism,
   5930 		# which is somewhat of a proxy for the OS we're using.
   5931 		#
   5932 		case "$V_PCAP" in
   5933 
   5934 		dlpi|libdlpi)
   5935 			#
   5936 			# This might be Solaris 8 or later, with
   5937 			# SIOCGLIFCONF, or it might be some other OS
   5938 			# or some older version of Solaris, with
   5939 			# just SIOCGIFCONF.
   5940 			#
   5941 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
   5942 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
   5943 			if ${ac_cv_lbl_have_siocglifconf+:} false; then :
   5944   $as_echo_n "(cached) " >&6
   5945 else
   5946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5947 /* end confdefs.h.  */
   5948 #include <sys/param.h>
   5949 				#include <sys/file.h>
   5950 				#include <sys/ioctl.h>
   5951 				#include <sys/socket.h>
   5952 				#include <sys/sockio.h>
   5953 int
   5954 main ()
   5955 {
   5956 ioctl(0, SIOCGLIFCONF, (char *)0);
   5957   ;
   5958   return 0;
   5959 }
   5960 _ACEOF
   5961 if ac_fn_c_try_compile "$LINENO"; then :
   5962   ac_cv_lbl_have_siocglifconf=yes
   5963 else
   5964   ac_cv_lbl_have_siocglifconf=no
   5965 fi
   5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5967 fi
   5968 
   5969 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
   5970 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
   5971 			if test $ac_cv_lbl_have_siocglifconf = yes ; then
   5972 				V_FINDALLDEVS=glifc
   5973 			else
   5974 				V_FINDALLDEVS=gifc
   5975 			fi
   5976 			;;
   5977 
   5978 		*)
   5979 			#
   5980 			# Assume we just have SIOCGIFCONF.
   5981 			# (XXX - on at least later Linux kernels, there's
   5982 			# another mechanism, and we should be using that
   5983 			# instead.)
   5984 			#
   5985 			V_FINDALLDEVS=gifc
   5986 			;;
   5987 		esac
   5988 fi
   5989 
   5990 fi
   5991 
   5992 fi
   5993 
   5994 
   5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
   5996 $as_echo_n "checking for socklen_t... " >&6; }
   5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5998 /* end confdefs.h.  */
   5999 
   6000 	#include <sys/types.h>
   6001 	#include <sys/socket.h>
   6002 
   6003 int
   6004 main ()
   6005 {
   6006  socklen_t x;
   6007   ;
   6008   return 0;
   6009 }
   6010 _ACEOF
   6011 if ac_fn_c_try_compile "$LINENO"; then :
   6012   have_socklen_t=yes
   6013 else
   6014   have_socklen_t=no
   6015 fi
   6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6017 if test "x$have_socklen_t" = "xyes"; then
   6018 
   6019 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
   6020 
   6021 fi
   6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
   6023 $as_echo "$have_socklen_t" >&6; }
   6024 
   6025 # Check whether --enable-ipv6 was given.
   6026 if test "${enable_ipv6+set}" = set; then :
   6027   enableval=$enable_ipv6;
   6028 else
   6029   enable_ipv6=ifavailable
   6030 fi
   6031 
   6032 if test "$enable_ipv6" != "no"; then
   6033 	ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
   6034 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
   6035 
   6036 
   6037 $as_echo "#define INET6 1" >>confdefs.h
   6038 
   6039 
   6040 else
   6041 
   6042 		if test "$enable_ipv6" != "ifavailable"; then
   6043 			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6045 as_fn_error $? "--enable-ipv6 was given, but getaddrinfo isn't available
   6046 See \`config.log' for more details" "$LINENO" 5; }
   6047 		fi
   6048 
   6049 fi
   6050 
   6051 fi
   6052 
   6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
   6054 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
   6055 # Check whether --enable-optimizer-dbg was given.
   6056 if test "${enable_optimizer_dbg+set}" = set; then :
   6057   enableval=$enable_optimizer_dbg;
   6058 fi
   6059 
   6060 if test "$enable_optimizer_dbg" = "yes"; then
   6061 
   6062 $as_echo "#define BDEBUG 1" >>confdefs.h
   6063 
   6064 fi
   6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
   6066 $as_echo "${enable_optimizer_dbg-no}" >&6; }
   6067 
   6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
   6069 $as_echo_n "checking whether to build parser debugging code... " >&6; }
   6070 # Check whether --enable-yydebug was given.
   6071 if test "${enable_yydebug+set}" = set; then :
   6072   enableval=$enable_yydebug;
   6073 fi
   6074 
   6075 if test "$enable_yydebug" = "yes"; then
   6076 
   6077 $as_echo "#define YYDEBUG 1" >>confdefs.h
   6078 
   6079 fi
   6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
   6081 $as_echo "${enable_yydebug-no}" >&6; }
   6082 
   6083 # Check for Endace DAG card support.
   6084 
   6085 # Check whether --with-dag was given.
   6086 if test "${with_dag+set}" = set; then :
   6087   withval=$with_dag;
   6088 	if test "$withval" = no
   6089 	then
   6090 		# User doesn't want DAG support.
   6091 		want_dag=no
   6092 	elif test "$withval" = yes
   6093 	then
   6094 		# User wants DAG support but hasn't specified a directory.
   6095 		want_dag=yes
   6096 	else
   6097 		# User wants DAG support and has specified a directory, so use the provided value.
   6098 		want_dag=yes
   6099 		dag_root=$withval
   6100 	fi
   6101 
   6102 else
   6103 
   6104 	#
   6105 	# Use DAG API if present, otherwise don't
   6106 	#
   6107 	want_dag=ifpresent
   6108 
   6109 fi
   6110 
   6111 
   6112 
   6113 # Check whether --with-dag-includes was given.
   6114 if test "${with_dag_includes+set}" = set; then :
   6115   withval=$with_dag_includes;
   6116 	# User wants DAG support and has specified a header directory, so use the provided value.
   6117 	want_dag=yes
   6118 	dag_include_dir=$withval
   6119 
   6120 fi
   6121 
   6122 
   6123 
   6124 # Check whether --with-dag-libraries was given.
   6125 if test "${with_dag_libraries+set}" = set; then :
   6126   withval=$with_dag_libraries;
   6127 	# User wants DAG support and has specified a library directory, so use the provided value.
   6128 	want_dag=yes
   6129 	dag_lib_dir=$withval
   6130 
   6131 fi
   6132 
   6133 
   6134 case "$V_PCAP" in
   6135 linux|bpf|dag)
   6136 	#
   6137 	# We support the DAG API if we're on Linux or BSD, or if we're
   6138 	# building a DAG-only libpcap.
   6139 	#
   6140 	;;
   6141 *)
   6142 	#
   6143 	# If the user explicitly requested DAG, tell them it's not
   6144 	# supported.
   6145 	#
   6146 	# If they expressed no preference, don't include it.
   6147 	#
   6148 	if test $want_dag = yes; then
   6149 		as_fn_error $? "DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" "$LINENO" 5
   6150 	elif test $want_dag = yes; then
   6151 		want_dag=no
   6152 	fi
   6153 	;;
   6154 esac
   6155 
   6156 ac_cv_lbl_dag_api=no
   6157 if test "$want_dag" != no; then
   6158 
   6159 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
   6160 $as_echo_n "checking whether we have DAG API headers... " >&6; }
   6161 
   6162 	# If necessary, set default paths for DAG API headers and libraries.
   6163 	if test -z "$dag_root"; then
   6164 	    dag_root=/usr/local
   6165 	fi
   6166 
   6167 	if test -z "$dag_include_dir"; then
   6168 		dag_include_dir="$dag_root/include"
   6169 	fi
   6170 
   6171 	if test -z "$dag_lib_dir"; then
   6172 	    dag_lib_dir="$dag_root/lib"
   6173 	fi
   6174 
   6175 	if test -z "$dag_tools_dir"; then
   6176 	    dag_tools_dir="$dag_root/tools"
   6177 	fi
   6178 
   6179 	if test -r $dag_include_dir/dagapi.h; then
   6180 		ac_cv_lbl_dag_api=yes
   6181 	fi
   6182 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
   6183 $as_echo "$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
   6184 fi
   6185 
   6186 if test $ac_cv_lbl_dag_api = yes; then
   6187 	V_INCLS="$V_INCLS -I$dag_include_dir"
   6188 
   6189 	if test $V_PCAP != dag ; then
   6190 		 SSRC="pcap-dag.c"
   6191 	fi
   6192 
   6193 	# See if we can find a general version string.
   6194 	# Don't need to save and restore LIBS to prevent -ldag being
   6195 	# included if there's a found-action (arg 3).
   6196 	saved_ldflags=$LDFLAGS
   6197 	LDFLAGS="-L$dag_lib_dir"
   6198 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
   6199 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
   6200 if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
   6201   $as_echo_n "(cached) " >&6
   6202 else
   6203   ac_check_lib_save_LIBS=$LIBS
   6204 LIBS="-ldag  $LIBS"
   6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6206 /* end confdefs.h.  */
   6207 
   6208 /* Override any GCC internal prototype to avoid an error.
   6209    Use char because int might match the return type of a GCC
   6210    builtin and then its argument prototype would still apply.  */
   6211 #ifdef __cplusplus
   6212 extern "C"
   6213 #endif
   6214 char dag_attach_stream ();
   6215 int
   6216 main ()
   6217 {
   6218 return dag_attach_stream ();
   6219   ;
   6220   return 0;
   6221 }
   6222 _ACEOF
   6223 if ac_fn_c_try_link "$LINENO"; then :
   6224   ac_cv_lib_dag_dag_attach_stream=yes
   6225 else
   6226   ac_cv_lib_dag_dag_attach_stream=no
   6227 fi
   6228 rm -f core conftest.err conftest.$ac_objext \
   6229     conftest$ac_exeext conftest.$ac_ext
   6230 LIBS=$ac_check_lib_save_LIBS
   6231 fi
   6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
   6233 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
   6234 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
   6235   dag_streams="1"
   6236 else
   6237   dag_streams="0"
   6238 fi
   6239 
   6240 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
   6241 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
   6242 if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
   6243   $as_echo_n "(cached) " >&6
   6244 else
   6245   ac_check_lib_save_LIBS=$LIBS
   6246 LIBS="-ldag  $LIBS"
   6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6248 /* end confdefs.h.  */
   6249 
   6250 /* Override any GCC internal prototype to avoid an error.
   6251    Use char because int might match the return type of a GCC
   6252    builtin and then its argument prototype would still apply.  */
   6253 #ifdef __cplusplus
   6254 extern "C"
   6255 #endif
   6256 char dag_get_erf_types ();
   6257 int
   6258 main ()
   6259 {
   6260 return dag_get_erf_types ();
   6261   ;
   6262   return 0;
   6263 }
   6264 _ACEOF
   6265 if ac_fn_c_try_link "$LINENO"; then :
   6266   ac_cv_lib_dag_dag_get_erf_types=yes
   6267 else
   6268   ac_cv_lib_dag_dag_get_erf_types=no
   6269 fi
   6270 rm -f core conftest.err conftest.$ac_objext \
   6271     conftest$ac_exeext conftest.$ac_ext
   6272 LIBS=$ac_check_lib_save_LIBS
   6273 fi
   6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
   6275 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
   6276 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
   6277 
   6278 
   6279 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
   6280 
   6281 fi
   6282 
   6283 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
   6284 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
   6285 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
   6286   $as_echo_n "(cached) " >&6
   6287 else
   6288   ac_check_lib_save_LIBS=$LIBS
   6289 LIBS="-ldag  $LIBS"
   6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6291 /* end confdefs.h.  */
   6292 
   6293 /* Override any GCC internal prototype to avoid an error.
   6294    Use char because int might match the return type of a GCC
   6295    builtin and then its argument prototype would still apply.  */
   6296 #ifdef __cplusplus
   6297 extern "C"
   6298 #endif
   6299 char dag_get_stream_erf_types ();
   6300 int
   6301 main ()
   6302 {
   6303 return dag_get_stream_erf_types ();
   6304   ;
   6305   return 0;
   6306 }
   6307 _ACEOF
   6308 if ac_fn_c_try_link "$LINENO"; then :
   6309   ac_cv_lib_dag_dag_get_stream_erf_types=yes
   6310 else
   6311   ac_cv_lib_dag_dag_get_stream_erf_types=no
   6312 fi
   6313 rm -f core conftest.err conftest.$ac_objext \
   6314     conftest$ac_exeext conftest.$ac_ext
   6315 LIBS=$ac_check_lib_save_LIBS
   6316 fi
   6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
   6318 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
   6319 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
   6320 
   6321 
   6322 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
   6323 
   6324 fi
   6325 
   6326 
   6327 	LDFLAGS=$saved_ldflags
   6328 
   6329 	if test "$dag_streams" = 1; then
   6330 
   6331 $as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h
   6332 
   6333 		LIBS="$LIBS -ldag"
   6334 		LDFLAGS="$LDFLAGS -L$dag_lib_dir"
   6335 
   6336 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
   6337 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
   6338 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
   6339   $as_echo_n "(cached) " >&6
   6340 else
   6341   ac_check_lib_save_LIBS=$LIBS
   6342 LIBS="-lvdag  $LIBS"
   6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6344 /* end confdefs.h.  */
   6345 
   6346 /* Override any GCC internal prototype to avoid an error.
   6347    Use char because int might match the return type of a GCC
   6348    builtin and then its argument prototype would still apply.  */
   6349 #ifdef __cplusplus
   6350 extern "C"
   6351 #endif
   6352 char vdag_set_device_info ();
   6353 int
   6354 main ()
   6355 {
   6356 return vdag_set_device_info ();
   6357   ;
   6358   return 0;
   6359 }
   6360 _ACEOF
   6361 if ac_fn_c_try_link "$LINENO"; then :
   6362   ac_cv_lib_vdag_vdag_set_device_info=yes
   6363 else
   6364   ac_cv_lib_vdag_vdag_set_device_info=no
   6365 fi
   6366 rm -f core conftest.err conftest.$ac_objext \
   6367     conftest$ac_exeext conftest.$ac_ext
   6368 LIBS=$ac_check_lib_save_LIBS
   6369 fi
   6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
   6371 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
   6372 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
   6373   ac_dag_have_vdag="1"
   6374 else
   6375   ac_dag_have_vdag="0"
   6376 fi
   6377 
   6378 		if test "$ac_dag_have_vdag" = 1; then
   6379 
   6380 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
   6381 
   6382 			LIBS="$LIBS -lpthread"
   6383 		fi
   6384 	fi
   6385 
   6386 
   6387 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
   6388 
   6389 fi
   6390 
   6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the DAG API" >&5
   6392 $as_echo_n "checking whether we have the DAG API... " >&6; }
   6393 
   6394 if test $ac_cv_lbl_dag_api = no; then
   6395 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6396 $as_echo "no" >&6; }
   6397 	if test "$want_dag" = yes; then
   6398         	# User wanted DAG support but we couldn't find it.
   6399 		as_fn_error $? "DAG API requested, but not found at $dag_root: use --without-dag" "$LINENO" 5
   6400 	fi
   6401 
   6402 	if test "$V_PCAP" = dag; then
   6403 		# User requested "dag" capture type but the DAG API wasn't
   6404 		# found.
   6405 		as_fn_error $? "Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" "$LINENO" 5
   6406 	fi
   6407 else
   6408 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6409 $as_echo "yes" >&6; }
   6410 fi
   6411 
   6412 
   6413 # Check whether --with-septel was given.
   6414 if test "${with_septel+set}" = set; then :
   6415   withval=$with_septel;
   6416 	if test "$withval" = no
   6417 	then
   6418 		want_septel=no
   6419 	elif test "$withval" = yes
   6420 	then
   6421 		want_septel=yes
   6422 		septel_root=
   6423 	else
   6424 		want_septel=yes
   6425 		septel_root=$withval
   6426 	fi
   6427 
   6428 else
   6429 
   6430 	#
   6431 	# Use Septel API if present, otherwise don't
   6432 	#
   6433 	want_septel=ifpresent
   6434 	septel_root=./../septel
   6435 
   6436 fi
   6437 
   6438 ac_cv_lbl_septel_api=no
   6439 case "$V_PCAP" in
   6440 linux|septel)
   6441 	#
   6442 	# We support the Septel API if we're on Linux, or if we're building
   6443 	# a Septel-only libpcap.
   6444 	#
   6445 	;;
   6446 *)
   6447 	#
   6448 	# If the user explicitly requested Septel, tell them it's not
   6449 	# supported.
   6450 	#
   6451 	# If they expressed no preference, don't include it.
   6452 	#
   6453 	if test $want_septel = yes; then
   6454 		as_fn_error $? "Septel support only available with 'linux' and 'septel' packet capture types" "$LINENO" 5
   6455 	elif test $want_septel = yes; then
   6456 		want_septel=no
   6457 	fi
   6458 	;;
   6459 esac
   6460 
   6461 if test "$with_septel" != no; then
   6462 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API" >&5
   6463 $as_echo_n "checking whether we have Septel API... " >&6; }
   6464 
   6465 	if test -z "$septel_root"; then
   6466 		septel_root=$srcdir/../septel
   6467 	fi
   6468 
   6469 	septel_tools_dir="$septel_root"
   6470 	septel_include_dir="$septel_root/INC"
   6471 
   6472 	ac_cv_lbl_septel_api=no
   6473 	if test -r "$septel_include_dir/msg.h"; then
   6474 		V_INCLS="$V_INCLS -I$septel_include_dir"
   6475 		ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
   6476 		ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
   6477 
   6478 		if test "$V_PCAP" != septel ; then
   6479 			 SSRC="pcap-septel.c"
   6480 		fi
   6481 		ac_cv_lbl_septel_api=yes
   6482 	fi
   6483 
   6484 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_septel_api" >&5
   6485 $as_echo "$ac_cv_lbl_septel_api" >&6; }
   6486 	if test $ac_cv_lbl_septel_api = no; then
   6487 		if test "$want_septel" = yes; then
   6488 			as_fn_error $? "Septel API not found under directory $septel_root; use --without-septel" "$LINENO" 5
   6489 		fi
   6490 	else
   6491 
   6492 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
   6493 
   6494 	fi
   6495 fi
   6496 
   6497 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
   6498 	as_fn_error $? "Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" "$LINENO" 5
   6499 fi
   6500 
   6501 # Check for Myricom SNF support.
   6502 
   6503 # Check whether --with-snf was given.
   6504 if test "${with_snf+set}" = set; then :
   6505   withval=$with_snf;
   6506 	if test "$withval" = no
   6507 	then
   6508 		# User explicitly doesn't want SNF
   6509 		want_snf=no
   6510 	elif test "$withval" = yes
   6511 	then
   6512 		# User wants SNF support but hasn't specific a directory.
   6513 		want_snf=yes
   6514 	else
   6515 		# User wants SNF support with a specified directory.
   6516 		want_snf=yes
   6517 		snf_root=$withval
   6518 	fi
   6519 
   6520 else
   6521 
   6522 	#
   6523 	# Use Sniffer API if present, otherwise don't
   6524 	#
   6525 	want_snf=ifpresent
   6526 
   6527 fi
   6528 
   6529 
   6530 
   6531 # Check whether --with-snf-includes was given.
   6532 if test "${with_snf_includes+set}" = set; then :
   6533   withval=$with_snf_includes;
   6534 	# User wants SNF with specific header directory
   6535 	want_snf=yes
   6536 	snf_include_dir=$withval
   6537 
   6538 fi
   6539 
   6540 
   6541 
   6542 # Check whether --with-snf-libraries was given.
   6543 if test "${with_snf_libraries+set}" = set; then :
   6544   withval=$with_snf_libraries;
   6545 	# User wants SNF with specific lib directory
   6546 	want_snf=yes
   6547 	snf_lib_dir=$withval
   6548 
   6549 fi
   6550 
   6551 
   6552 case "$V_PCAP" in
   6553 bpf|linux|snf)
   6554 	#
   6555 	# We support the Sniffer API if we're on BSD, Linux, or if we're
   6556 	# building a Sniffer-only libpcap.
   6557 	#
   6558 	;;
   6559 *)
   6560 	#
   6561 	# If the user explicitly requested Sniffer, tell them it's not
   6562 	# supported.
   6563 	#
   6564 	# If they expressed no preference, don't include it.
   6565 	#
   6566 	if test $want_snf = yes; then
   6567 		as_fn_error $? "Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" "$LINENO" 5
   6568 	elif test $want_snf = yes; then
   6569 		want_snf=no
   6570 	fi
   6571 	;;
   6572 esac
   6573 
   6574 ac_cv_lbl_snf_api=no
   6575 if test "$with_snf" != no; then
   6576 
   6577 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
   6578 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
   6579 
   6580 	if test -z "$snf_root"; then
   6581 		snf_root=/opt/snf
   6582 	fi
   6583 
   6584 	if test -z "$snf_include_dir"; then
   6585 		snf_include_dir="$snf_root/include"
   6586 	fi
   6587 
   6588 	if test -z "$snf_lib_dir"; then
   6589 		snf_lib_dir="$snf_root/lib"
   6590 	fi
   6591 
   6592 	if test -f "$snf_include_dir/snf.h"; then
   6593 		ac_cv_lbl_snf_api=yes
   6594 	fi
   6595 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
   6596 $as_echo "$ac_cv_lbl_snf_api ($snf_root)" >&6; }
   6597 
   6598 	if test $ac_cv_lbl_snf_api = no; then
   6599 		if test "$want_snf" = yes; then
   6600 			as_fn_error $? "SNF API headers not found under $snf_include_dir; use --without-snf" "$LINENO" 5
   6601 		fi
   6602 	else
   6603 		saved_ldflags=$LDFLAGS
   6604 		LDFLAGS="$LDFLAGS -L$snf_lib_dir"
   6605 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
   6606 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
   6607 if ${ac_cv_lib_snf_snf_init+:} false; then :
   6608   $as_echo_n "(cached) " >&6
   6609 else
   6610   ac_check_lib_save_LIBS=$LIBS
   6611 LIBS="-lsnf  $LIBS"
   6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6613 /* end confdefs.h.  */
   6614 
   6615 /* Override any GCC internal prototype to avoid an error.
   6616    Use char because int might match the return type of a GCC
   6617    builtin and then its argument prototype would still apply.  */
   6618 #ifdef __cplusplus
   6619 extern "C"
   6620 #endif
   6621 char snf_init ();
   6622 int
   6623 main ()
   6624 {
   6625 return snf_init ();
   6626   ;
   6627   return 0;
   6628 }
   6629 _ACEOF
   6630 if ac_fn_c_try_link "$LINENO"; then :
   6631   ac_cv_lib_snf_snf_init=yes
   6632 else
   6633   ac_cv_lib_snf_snf_init=no
   6634 fi
   6635 rm -f core conftest.err conftest.$ac_objext \
   6636     conftest$ac_exeext conftest.$ac_ext
   6637 LIBS=$ac_check_lib_save_LIBS
   6638 fi
   6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
   6640 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
   6641 if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
   6642   ac_cv_lbl_snf_api="yes"
   6643 else
   6644   ac_cv_lbl_snf_api="no"
   6645 fi
   6646 
   6647 		LDFLAGS="$saved_ldflags"
   6648 
   6649 		if test $ac_cv_lbl_snf_api = no; then
   6650 			if test "$want_snf" = yes; then
   6651 				as_fn_error $? "SNF API cannot correctly be linked check config.log; use --without-snf" "$LINENO" 5
   6652 			fi
   6653 		else
   6654 			V_INCLS="$V_INCLS -I$snf_include_dir"
   6655 			LIBS="$LIBS -lsnf"
   6656 			LDFLAGS="$LDFLAGS -L$snf_lib_dir"
   6657 			if test "$V_PCAP" != snf ; then
   6658 				SSRC="pcap-snf.c"
   6659 			fi
   6660 
   6661 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
   6662 
   6663 		fi
   6664 	fi
   6665 fi
   6666 
   6667 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
   6668 	as_fn_error $? "Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" "$LINENO" 5
   6669 fi
   6670 
   6671 
   6672 # Check whether --with-flex was given.
   6673 if test "${with_flex+set}" = set; then :
   6674   withval=$with_flex;
   6675 fi
   6676 
   6677 
   6678 # Check whether --with-bison was given.
   6679 if test "${with_bison+set}" = set; then :
   6680   withval=$with_bison;
   6681 fi
   6682 
   6683     if test "$with_flex" = no ; then
   6684 	    V_LEX=lex
   6685     else
   6686 	    for ac_prog in flex
   6687 do
   6688   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6689 set dummy $ac_prog; ac_word=$2
   6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6691 $as_echo_n "checking for $ac_word... " >&6; }
   6692 if ${ac_cv_prog_V_LEX+:} false; then :
   6693   $as_echo_n "(cached) " >&6
   6694 else
   6695   if test -n "$V_LEX"; then
   6696   ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
   6697 else
   6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6699 for as_dir in $PATH
   6700 do
   6701   IFS=$as_save_IFS
   6702   test -z "$as_dir" && as_dir=.
   6703     for ac_exec_ext in '' $ac_executable_extensions; do
   6704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6705     ac_cv_prog_V_LEX="$ac_prog"
   6706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6707     break 2
   6708   fi
   6709 done
   6710   done
   6711 IFS=$as_save_IFS
   6712 
   6713 fi
   6714 fi
   6715 V_LEX=$ac_cv_prog_V_LEX
   6716 if test -n "$V_LEX"; then
   6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_LEX" >&5
   6718 $as_echo "$V_LEX" >&6; }
   6719 else
   6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6721 $as_echo "no" >&6; }
   6722 fi
   6723 
   6724 
   6725   test -n "$V_LEX" && break
   6726 done
   6727 test -n "$V_LEX" || V_LEX="lex"
   6728 
   6729     fi
   6730     if test "$V_LEX" = flex ; then
   6731 	    # The -V flag was added in 2.4
   6732 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex 2.4 or higher" >&5
   6733 $as_echo_n "checking for flex 2.4 or higher... " >&6; }
   6734 	    if ${ac_cv_lbl_flex_v24+:} false; then :
   6735   $as_echo_n "(cached) " >&6
   6736 else
   6737   if flex -V >/dev/null 2>&1; then
   6738 			ac_cv_lbl_flex_v24=yes
   6739 		else
   6740 			ac_cv_lbl_flex_v24=no
   6741 		fi
   6742 fi
   6743 
   6744 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_flex_v24" >&5
   6745 $as_echo "$ac_cv_lbl_flex_v24" >&6; }
   6746 	    if test $ac_cv_lbl_flex_v24 = no ; then
   6747 		    s="2.4 or higher required"
   6748 		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring obsolete flex executable ($s)" >&5
   6749 $as_echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
   6750 		    V_LEX=lex
   6751 	    fi
   6752     fi
   6753     if test "$with_bison" = no ; then
   6754 	    V_YACC=yacc
   6755     else
   6756 	    for ac_prog in bison
   6757 do
   6758   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6759 set dummy $ac_prog; ac_word=$2
   6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6761 $as_echo_n "checking for $ac_word... " >&6; }
   6762 if ${ac_cv_prog_V_YACC+:} false; then :
   6763   $as_echo_n "(cached) " >&6
   6764 else
   6765   if test -n "$V_YACC"; then
   6766   ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
   6767 else
   6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6769 for as_dir in $PATH
   6770 do
   6771   IFS=$as_save_IFS
   6772   test -z "$as_dir" && as_dir=.
   6773     for ac_exec_ext in '' $ac_executable_extensions; do
   6774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6775     ac_cv_prog_V_YACC="$ac_prog"
   6776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6777     break 2
   6778   fi
   6779 done
   6780   done
   6781 IFS=$as_save_IFS
   6782 
   6783 fi
   6784 fi
   6785 V_YACC=$ac_cv_prog_V_YACC
   6786 if test -n "$V_YACC"; then
   6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_YACC" >&5
   6788 $as_echo "$V_YACC" >&6; }
   6789 else
   6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6791 $as_echo "no" >&6; }
   6792 fi
   6793 
   6794 
   6795   test -n "$V_YACC" && break
   6796 done
   6797 test -n "$V_YACC" || V_YACC="yacc"
   6798 
   6799     fi
   6800     if test "$V_YACC" = bison ; then
   6801 	    V_YACC="$V_YACC -y"
   6802     fi
   6803     if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
   6804 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
   6805 $as_echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
   6806 	    V_LEX=lex
   6807 	    V_YACC=yacc
   6808     fi
   6809     if test "$V_LEX" = flex -a -n "pcap_" ; then
   6810 	    V_LEX="$V_LEX -Ppcap_"
   6811 	    V_YACC="$V_YACC -p pcap_"
   6812     else
   6813 
   6814 $as_echo "#define NEED_YYPARSE_WRAPPER 1" >>confdefs.h
   6815 
   6816     fi
   6817 if test "$V_LEX" = lex ; then
   6818 # Some versions of lex can't handle the definitions section of scanner.l .
   6819 # Try lexing it and complain if it can't deal.
   6820 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
   6821 $as_echo_n "checking for capable lex... " >&6; }
   6822 if ${tcpdump_cv_capable_lex+:} false; then :
   6823   $as_echo_n "(cached) " >&6
   6824 else
   6825   if lex -t scanner.l > /dev/null 2>&1; then
   6826 			tcpdump_cv_capable_lex=yes
   6827 		else
   6828 			tcpdump_cv_capable_lex=insufficient
   6829 		fi
   6830 fi
   6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
   6832 $as_echo "$tcpdump_cv_capable_lex" >&6; }
   6833 	if test $tcpdump_cv_capable_lex = insufficient ; then
   6834 		as_fn_error $? "Your operating system's lex is insufficient to compile
   6835  libpcap.  flex is a lex replacement that has many advantages, including
   6836  being able to compile libpcap.  For more information, see
   6837  http://www.gnu.org/software/flex/flex.html ." "$LINENO" 5
   6838 	fi
   6839 fi
   6840 
   6841 #
   6842 # Assume, by default, no support for shared libraries and V7/BSD convention
   6843 # for man pages (file formats in section 5, miscellaneous info in section 7).
   6844 # Individual cases can override this.
   6845 #
   6846 DYEXT="none"
   6847 MAN_FILE_FORMATS=5
   6848 MAN_MISC_INFO=7
   6849 case "$host_os" in
   6850 
   6851 aix*)
   6852 
   6853 $as_echo "#define _SUN 1" >>confdefs.h
   6854 
   6855 
   6856 	#
   6857 	# AIX makes it fun to build shared and static libraries,
   6858 	# because they're *both* ".a" archive libraries.  We
   6859 	# build the static library for the benefit of the traditional
   6860 	# scheme of building libpcap and tcpdump in subdirectories of
   6861 	# the same directory, with tcpdump statically linked with the
   6862 	# libpcap in question, but we also build a shared library as
   6863 	# "libpcap.shareda" and install *it*, rather than the static
   6864 	# library, as "libpcap.a".
   6865 	#
   6866 	DYEXT="shareda"
   6867 
   6868 	case "$V_PCAP" in
   6869 
   6870 	dlpi)
   6871 		#
   6872 		# If we're using DLPI, applications will need to
   6873 		# use /lib/pse.exp if present, as we use the
   6874 		# STREAMS routines.
   6875 		#
   6876 		pseexe="/lib/pse.exp"
   6877 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
   6878 $as_echo_n "checking for $pseexe... " >&6; }
   6879 		if test -f $pseexe ; then
   6880 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6881 $as_echo "yes" >&6; }
   6882 			LIBS="-I:$pseexe"
   6883 		fi
   6884 		;;
   6885 
   6886 	bpf)
   6887 		#
   6888 		# If we're using BPF, we need "-lodm" and "-lcfg", as
   6889 		# we use them to load the BPF module.
   6890 		#
   6891 		LIBS="-lodm -lcfg"
   6892 		;;
   6893 	esac
   6894 	;;
   6895 
   6896 darwin*)
   6897 	DYEXT="dylib"
   6898 	V_CCOPT="$V_CCOPT -fno-common"
   6899 	# Check whether --enable-universal was given.
   6900 if test "${enable_universal+set}" = set; then :
   6901   enableval=$enable_universal;
   6902 fi
   6903 
   6904 	if test "$enable_universal" != "no"; then
   6905 		case "$host_os" in
   6906 
   6907 		darwin0-7.*)
   6908 			#
   6909 			# Pre-Tiger.  Build only for 32-bit PowerPC; no
   6910 			# need for any special compiler or linker flags.
   6911 			#
   6912 			;;
   6913 
   6914 		darwin8.0123*)
   6915 			#
   6916 			# Tiger, prior to Intel support.  Build for 32-bit
   6917 			# PowerPC and 64-bit PowerPC, with 32-bit PowerPC
   6918 			# first.  (I'm guessing that's what Apple does.)
   6919 			#
   6920 			V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
   6921 			LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
   6922 			;;
   6923 
   6924 		darwin8.456*)
   6925 			#
   6926 			# Tiger, subsequent to Intel support but prior to
   6927 			# x86-64 support.  Build for 32-bit PowerPC, 64-bit
   6928 			# PowerPC, and x86, with 32-bit PowerPC first.
   6929 			# (I'm guessing that's what Apple does.)
   6930 			#
   6931 			V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
   6932 			LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
   6933 			;;
   6934 
   6935 		darwin8.*)
   6936 			#
   6937 			# All other Tiger, so subsequent to x86-64
   6938 			# support. Build for 32-bit PowerPC, 64-bit
   6939 			# PowerPC, x86, and x86-64, and with 32-bit PowerPC
   6940 			# first.  (I'm guessing that's what Apple does.)
   6941 			#
   6942 			V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
   6943 			LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
   6944 			;;
   6945 
   6946 		darwin9.*)
   6947 			#
   6948 			# Leopard.  Build for 32-bit PowerPC, 64-bit
   6949 			# PowerPC, x86, and x86-64, with 32-bit PowerPC
   6950 			# first.  (That's what Apple does.)
   6951 			#
   6952 			V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
   6953 			LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
   6954 			;;
   6955 
   6956 		darwin10.*)
   6957 			#
   6958 			# Snow Leopard.  Build for x86-64, x86, and
   6959 			# 32-bit PowerPC, with x86-64 first.  (That's
   6960 			# what Apple does, even though Snow Leopard
   6961 			# doesn't run on PPC, so PPC libpcap runs under
   6962 			# Rosetta, and Rosetta doesn't support BPF
   6963 			# ioctls, so PPC programs can't do live
   6964 			# captures.)
   6965 			#
   6966 			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
   6967 			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
   6968 			;;
   6969 
   6970 		darwin*)
   6971 			#
   6972 			# Post-Snow Leopard.  Build for x86-64 and
   6973 			# x86, with x86-64 first.  (That's probably what
   6974 			# Apple does, given that Rosetta is gone.)
   6975 			# XXX - update if and when Apple drops support
   6976 			# for 32-bit x86 code.
   6977 			#
   6978 			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
   6979 			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
   6980 			;;
   6981 		esac
   6982 	fi
   6983 	;;
   6984 
   6985 hpux9*)
   6986 
   6987 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
   6988 
   6989 
   6990 	#
   6991 	# Use System V conventions for man pages.
   6992 	#
   6993 	MAN_FILE_FORMATS=4
   6994 	MAN_MISC_INFO=5
   6995 	;;
   6996 
   6997 hpux10.0*)
   6998 
   6999 	#
   7000 	# Use System V conventions for man pages.
   7001 	#
   7002 	MAN_FILE_FORMATS=4
   7003 	MAN_MISC_INFO=5
   7004 	;;
   7005 
   7006 hpux10.1*)
   7007 
   7008 	#
   7009 	# Use System V conventions for man pages.
   7010 	#
   7011 	MAN_FILE_FORMATS=4
   7012 	MAN_MISC_INFO=5
   7013 	;;
   7014 
   7015 hpux*)
   7016 
   7017 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
   7018 
   7019 	if test "`uname -m`" = "ia64"; then
   7020 		DYEXT="so"
   7021 	else
   7022 		DYEXT="sl"
   7023 	fi
   7024 
   7025 	#
   7026 	# "-b" builds a shared library; "+h" sets the soname.
   7027 	#
   7028 	SHLIB_OPT="-b"
   7029 	SONAME_OPT="+h"
   7030 
   7031 	#
   7032 	# Use System V conventions for man pages.
   7033 	#
   7034 	MAN_FILE_FORMATS=4
   7035 	MAN_MISC_INFO=5
   7036 	;;
   7037 
   7038 irix*)
   7039 	#
   7040 	# Use System V conventions for man pages.
   7041 	#
   7042 	MAN_FILE_FORMATS=4
   7043 	MAN_MISC_INFO=5
   7044 	;;
   7045 
   7046 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
   7047 	DYEXT="so"
   7048 
   7049 	#
   7050 	# Compiler assumed to be GCC; run-time linker may require a -R
   7051 	# flag.
   7052 	#
   7053 	if test "$libdir" != "/usr/lib"; then
   7054 		V_RFLAGS=-Wl,-R$libdir
   7055 	fi
   7056 	;;
   7057 
   7058 osf*)
   7059 	DYEXT="so"
   7060 
   7061 	#
   7062 	# Use System V conventions for man pages.
   7063 	#
   7064 	MAN_FILE_FORMATS=4
   7065 	MAN_MISC_INFO=5
   7066 	;;
   7067 
   7068 sinix*)
   7069 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
   7070 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
   7071 	if ${ac_cv_cc_sinix_defined+:} false; then :
   7072   $as_echo_n "(cached) " >&6
   7073 else
   7074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7075 /* end confdefs.h.  */
   7076 
   7077 int
   7078 main ()
   7079 {
   7080 int i = sinix;
   7081   ;
   7082   return 0;
   7083 }
   7084 _ACEOF
   7085 if ac_fn_c_try_compile "$LINENO"; then :
   7086   ac_cv_cc_sinix_defined=yes
   7087 else
   7088   ac_cv_cc_sinix_defined=no
   7089 fi
   7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7091 fi
   7092 
   7093 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
   7094 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
   7095 	    if test $ac_cv_cc_sinix_defined = no ; then
   7096 
   7097 $as_echo "#define sinix 1" >>confdefs.h
   7098 
   7099 	    fi
   7100 	;;
   7101 
   7102 solaris*)
   7103 
   7104 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
   7105 
   7106 
   7107 	DYEXT="so"
   7108 	#
   7109 	# Use System V conventions for man pages.
   7110 	#
   7111 	MAN_FILE_FORMATS=4
   7112 	MAN_MISC_INFO=5
   7113 	;;
   7114 esac
   7115 
   7116 # Check whether --enable-shared was given.
   7117 if test "${enable_shared+set}" = set; then :
   7118   enableval=$enable_shared;
   7119 fi
   7120 
   7121 test "x$enable_shared" = "xno" && DYEXT="none"
   7122 
   7123 if test -n "$ac_tool_prefix"; then
   7124   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   7125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7127 $as_echo_n "checking for $ac_word... " >&6; }
   7128 if ${ac_cv_prog_RANLIB+:} false; then :
   7129   $as_echo_n "(cached) " >&6
   7130 else
   7131   if test -n "$RANLIB"; then
   7132   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   7133 else
   7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7135 for as_dir in $PATH
   7136 do
   7137   IFS=$as_save_IFS
   7138   test -z "$as_dir" && as_dir=.
   7139     for ac_exec_ext in '' $ac_executable_extensions; do
   7140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7141     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   7142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7143     break 2
   7144   fi
   7145 done
   7146   done
   7147 IFS=$as_save_IFS
   7148 
   7149 fi
   7150 fi
   7151 RANLIB=$ac_cv_prog_RANLIB
   7152 if test -n "$RANLIB"; then
   7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   7154 $as_echo "$RANLIB" >&6; }
   7155 else
   7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7157 $as_echo "no" >&6; }
   7158 fi
   7159 
   7160 
   7161 fi
   7162 if test -z "$ac_cv_prog_RANLIB"; then
   7163   ac_ct_RANLIB=$RANLIB
   7164   # Extract the first word of "ranlib", so it can be a program name with args.
   7165 set dummy ranlib; ac_word=$2
   7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7167 $as_echo_n "checking for $ac_word... " >&6; }
   7168 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   7169   $as_echo_n "(cached) " >&6
   7170 else
   7171   if test -n "$ac_ct_RANLIB"; then
   7172   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   7173 else
   7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7175 for as_dir in $PATH
   7176 do
   7177   IFS=$as_save_IFS
   7178   test -z "$as_dir" && as_dir=.
   7179     for ac_exec_ext in '' $ac_executable_extensions; do
   7180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7181     ac_cv_prog_ac_ct_RANLIB="ranlib"
   7182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7183     break 2
   7184   fi
   7185 done
   7186   done
   7187 IFS=$as_save_IFS
   7188 
   7189 fi
   7190 fi
   7191 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   7192 if test -n "$ac_ct_RANLIB"; then
   7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   7194 $as_echo "$ac_ct_RANLIB" >&6; }
   7195 else
   7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7197 $as_echo "no" >&6; }
   7198 fi
   7199 
   7200   if test "x$ac_ct_RANLIB" = x; then
   7201     RANLIB=":"
   7202   else
   7203     case $cross_compiling:$ac_tool_warned in
   7204 yes:)
   7205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7207 ac_tool_warned=yes ;;
   7208 esac
   7209     RANLIB=$ac_ct_RANLIB
   7210   fi
   7211 else
   7212   RANLIB="$ac_cv_prog_RANLIB"
   7213 fi
   7214 
   7215 if test -n "$ac_tool_prefix"; then
   7216   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   7217 set dummy ${ac_tool_prefix}ar; ac_word=$2
   7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7219 $as_echo_n "checking for $ac_word... " >&6; }
   7220 if ${ac_cv_prog_AR+:} false; then :
   7221   $as_echo_n "(cached) " >&6
   7222 else
   7223   if test -n "$AR"; then
   7224   ac_cv_prog_AR="$AR" # Let the user override the test.
   7225 else
   7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7227 for as_dir in $PATH
   7228 do
   7229   IFS=$as_save_IFS
   7230   test -z "$as_dir" && as_dir=.
   7231     for ac_exec_ext in '' $ac_executable_extensions; do
   7232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7233     ac_cv_prog_AR="${ac_tool_prefix}ar"
   7234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7235     break 2
   7236   fi
   7237 done
   7238   done
   7239 IFS=$as_save_IFS
   7240 
   7241 fi
   7242 fi
   7243 AR=$ac_cv_prog_AR
   7244 if test -n "$AR"; then
   7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   7246 $as_echo "$AR" >&6; }
   7247 else
   7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7249 $as_echo "no" >&6; }
   7250 fi
   7251 
   7252 
   7253 fi
   7254 if test -z "$ac_cv_prog_AR"; then
   7255   ac_ct_AR=$AR
   7256   # Extract the first word of "ar", so it can be a program name with args.
   7257 set dummy ar; ac_word=$2
   7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7259 $as_echo_n "checking for $ac_word... " >&6; }
   7260 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   7261   $as_echo_n "(cached) " >&6
   7262 else
   7263   if test -n "$ac_ct_AR"; then
   7264   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   7265 else
   7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7267 for as_dir in $PATH
   7268 do
   7269   IFS=$as_save_IFS
   7270   test -z "$as_dir" && as_dir=.
   7271     for ac_exec_ext in '' $ac_executable_extensions; do
   7272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7273     ac_cv_prog_ac_ct_AR="ar"
   7274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7275     break 2
   7276   fi
   7277 done
   7278   done
   7279 IFS=$as_save_IFS
   7280 
   7281 fi
   7282 fi
   7283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   7284 if test -n "$ac_ct_AR"; then
   7285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   7286 $as_echo "$ac_ct_AR" >&6; }
   7287 else
   7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7289 $as_echo "no" >&6; }
   7290 fi
   7291 
   7292   if test "x$ac_ct_AR" = x; then
   7293     AR=""
   7294   else
   7295     case $cross_compiling:$ac_tool_warned in
   7296 yes:)
   7297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7299 ac_tool_warned=yes ;;
   7300 esac
   7301     AR=$ac_ct_AR
   7302   fi
   7303 else
   7304   AR="$ac_cv_prog_AR"
   7305 fi
   7306 
   7307 
   7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   7309 $as_echo_n "checking whether ln -s works... " >&6; }
   7310 LN_S=$as_ln_s
   7311 if test "$LN_S" = "ln -s"; then
   7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7313 $as_echo "yes" >&6; }
   7314 else
   7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   7316 $as_echo "no, using $LN_S" >&6; }
   7317 fi
   7318 
   7319 
   7320 
   7321 rm -f os-proto.h
   7322     if test "${LBL_CFLAGS+set}" = set; then
   7323 	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
   7324     fi
   7325     if test -f .devel ; then
   7326 	    #
   7327 	    # Skip all the warning option stuff on some compilers.
   7328 	    #
   7329 	    if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
   7330 
   7331 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
   7332 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
   7333 	save_CFLAGS="$CFLAGS"
   7334 	CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
   7335 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7336 /* end confdefs.h.  */
   7337 
   7338 int
   7339 main ()
   7340 {
   7341 return 0
   7342   ;
   7343   return 0;
   7344 }
   7345 _ACEOF
   7346 if ac_fn_c_try_compile "$LINENO"; then :
   7347 
   7348 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7349 $as_echo "no" >&6; }
   7350 		#
   7351 		# We're assuming this is clang, where
   7352 		# -Werror=unknown-warning-option is the appropriate
   7353 		# option to force the compiler to fail.
   7354 		#
   7355 		ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
   7356 
   7357 else
   7358 
   7359 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7360 $as_echo "yes" >&6; }
   7361 
   7362 fi
   7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7364 	CFLAGS="$save_CFLAGS"
   7365 
   7366 
   7367 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
   7368 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
   7369 	save_CFLAGS="$CFLAGS"
   7370 	CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
   7371 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7372 /* end confdefs.h.  */
   7373 
   7374 int
   7375 main ()
   7376 {
   7377 return 0
   7378   ;
   7379   return 0;
   7380 }
   7381 _ACEOF
   7382 if ac_fn_c_try_compile "$LINENO"; then :
   7383 
   7384 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7385 $as_echo "yes" >&6; }
   7386 		CFLAGS="$save_CFLAGS"
   7387 		V_CCOPT="$V_CCOPT -Wall"
   7388 
   7389 else
   7390 
   7391 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7392 $as_echo "no" >&6; }
   7393 		CFLAGS="$save_CFLAGS"
   7394 
   7395 fi
   7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7397 
   7398 
   7399 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
   7400 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
   7401 	save_CFLAGS="$CFLAGS"
   7402 	CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
   7403 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7404 /* end confdefs.h.  */
   7405 
   7406 int
   7407 main ()
   7408 {
   7409 return 0
   7410   ;
   7411   return 0;
   7412 }
   7413 _ACEOF
   7414 if ac_fn_c_try_compile "$LINENO"; then :
   7415 
   7416 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7417 $as_echo "yes" >&6; }
   7418 		CFLAGS="$save_CFLAGS"
   7419 		V_CCOPT="$V_CCOPT -Wmissing-prototypes"
   7420 
   7421 else
   7422 
   7423 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7424 $as_echo "no" >&6; }
   7425 		CFLAGS="$save_CFLAGS"
   7426 
   7427 fi
   7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7429 
   7430 
   7431 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
   7432 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
   7433 	save_CFLAGS="$CFLAGS"
   7434 	CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
   7435 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7436 /* end confdefs.h.  */
   7437 
   7438 int
   7439 main ()
   7440 {
   7441 return 0
   7442   ;
   7443   return 0;
   7444 }
   7445 _ACEOF
   7446 if ac_fn_c_try_compile "$LINENO"; then :
   7447 
   7448 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7449 $as_echo "yes" >&6; }
   7450 		CFLAGS="$save_CFLAGS"
   7451 		V_CCOPT="$V_CCOPT -Wstrict-prototypes"
   7452 
   7453 else
   7454 
   7455 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7456 $as_echo "no" >&6; }
   7457 		CFLAGS="$save_CFLAGS"
   7458 
   7459 fi
   7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7461 
   7462 	    fi
   7463 
   7464 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
   7465 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
   7466 	if test "$GCC" = yes ; then
   7467 		#
   7468 		# GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
   7469 		# though it's not); we assume that, in this case, the flag
   7470 		# would be -M.
   7471 		#
   7472 		ac_lbl_dependency_flag="-M"
   7473 	else
   7474 		#
   7475 		# Not GCC or a compiler deemed to be GCC; what platform is
   7476 		# this?  (We're assuming that if the compiler isn't GCC
   7477 		# it's the compiler from the vendor of the OS; that won't
   7478 		# necessarily be true for x86 platforms, where it might be
   7479 		# the Intel C compiler.)
   7480 		#
   7481 		case "$host_os" in
   7482 
   7483 		irix*|osf*|darwin*)
   7484 			#
   7485 			# MIPS C for IRIX, DEC C, and clang all use -M.
   7486 			#
   7487 			ac_lbl_dependency_flag="-M"
   7488 			;;
   7489 
   7490 		solaris*)
   7491 			#
   7492 			# Sun C uses -xM.
   7493 			#
   7494 			ac_lbl_dependency_flag="-xM"
   7495 			;;
   7496 
   7497 		hpux*)
   7498 			#
   7499 			# HP's older C compilers don't support this.
   7500 			# HP's newer C compilers support this with
   7501 			# either +M or +Make; the older compilers
   7502 			# interpret +M as something completely
   7503 			# different, so we use +Make so we don't
   7504 			# think it works with the older compilers.
   7505 			#
   7506 			ac_lbl_dependency_flag="+Make"
   7507 			;;
   7508 
   7509 		*)
   7510 			#
   7511 			# Not one of the above; assume no support for
   7512 			# generating dependencies.
   7513 			#
   7514 			ac_lbl_dependency_flag=""
   7515 			;;
   7516 		esac
   7517 	fi
   7518 
   7519 	#
   7520 	# Is ac_lbl_dependency_flag defined and, if so, does the compiler
   7521 	# complain about it?
   7522 	#
   7523 	# Note: clang doesn't seem to exit with an error status when handed
   7524 	# an unknown non-warning error, even if you pass it
   7525 	# -Werror=unknown-warning-option.  However, it always supports
   7526 	# -M, so the fact that this test always succeeds with clang
   7527 	# isn't an issue.
   7528 	#
   7529 	if test ! -z "$ac_lbl_dependency_flag"; then
   7530 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7531 /* end confdefs.h.  */
   7532 int main(void) { return 0; }
   7533 _ACEOF
   7534 		echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
   7535 		if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
   7536 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
   7537 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
   7538 			DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
   7539 			MKDEP='${srcdir}/mkdep'
   7540 		else
   7541 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7542 $as_echo "no" >&6; }
   7543 			#
   7544 			# We can't run mkdep, so have "make depend" do
   7545 			# nothing.
   7546 			#
   7547 			MKDEP=:
   7548 		fi
   7549 		rm -rf conftest*
   7550 	else
   7551 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7552 $as_echo "no" >&6; }
   7553 		#
   7554 		# We can't run mkdep, so have "make depend" do
   7555 		# nothing.
   7556 		#
   7557 		MKDEP=:
   7558 	fi
   7559 
   7560 
   7561 
   7562 	    #
   7563 	    # We used to set -n32 for IRIX 6 when not using GCC (presumed
   7564 	    # to mean that we're using MIPS C or MIPSpro C); it specified
   7565 	    # the "new" faster 32-bit ABI, introduced in IRIX 6.2.  I'm
   7566 	    # not sure why that would be something to do *only* with a
   7567 	    # .devel file; why should the ABI for which we produce code
   7568 	    # depend on .devel?
   7569 	    #
   7570 	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
   7571 	    name="lbl/os-$os.h"
   7572 	    if test -f $name ; then
   7573 		    ln -s $name os-proto.h
   7574 
   7575 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
   7576 
   7577 	    else
   7578 		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
   7579 $as_echo "$as_me: WARNING: can't find $name" >&2;}
   7580 	    fi
   7581     fi
   7582 
   7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
   7584 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
   7585     if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
   7586   $as_echo_n "(cached) " >&6
   7587 else
   7588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7589 /* end confdefs.h.  */
   7590 
   7591 #	include <sys/types.h>
   7592 #	include <sys/socket.h>
   7593 int
   7594 main ()
   7595 {
   7596 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
   7597   ;
   7598   return 0;
   7599 }
   7600 _ACEOF
   7601 if ac_fn_c_try_compile "$LINENO"; then :
   7602   ac_cv_lbl_sockaddr_has_sa_len=yes
   7603 else
   7604   ac_cv_lbl_sockaddr_has_sa_len=no
   7605 fi
   7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7607 fi
   7608 
   7609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
   7610 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
   7611     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
   7612 
   7613 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
   7614 
   7615     fi
   7616 
   7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
   7618 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
   7619     if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
   7620   $as_echo_n "(cached) " >&6
   7621 else
   7622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7623 /* end confdefs.h.  */
   7624 
   7625 #	include <sys/types.h>
   7626 #	include <sys/socket.h>
   7627 int
   7628 main ()
   7629 {
   7630 u_int i = sizeof (struct sockaddr_storage)
   7631   ;
   7632   return 0;
   7633 }
   7634 _ACEOF
   7635 if ac_fn_c_try_compile "$LINENO"; then :
   7636   ac_cv_lbl_has_sockaddr_storage=yes
   7637 else
   7638   ac_cv_lbl_has_sockaddr_storage=no
   7639 fi
   7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7641 fi
   7642 
   7643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
   7644 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
   7645     if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
   7646 
   7647 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
   7648 
   7649     fi
   7650 
   7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
   7652 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
   7653     if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
   7654   $as_echo_n "(cached) " >&6
   7655 else
   7656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7657 /* end confdefs.h.  */
   7658 
   7659 #	include <sys/types.h>
   7660 #	include <sys/dlpi.h>
   7661 #	include <sys/dlpi_ext.h>
   7662 int
   7663 main ()
   7664 {
   7665 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
   7666   ;
   7667   return 0;
   7668 }
   7669 _ACEOF
   7670 if ac_fn_c_try_compile "$LINENO"; then :
   7671   ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
   7672 else
   7673   ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
   7674 fi
   7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7676 fi
   7677 
   7678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
   7679 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
   7680     if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
   7681 
   7682 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
   7683 
   7684     fi
   7685 
   7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
   7687 $as_echo_n "checking if unaligned accesses fail... " >&6; }
   7688     if ${ac_cv_lbl_unaligned_fail+:} false; then :
   7689   $as_echo_n "(cached) " >&6
   7690 else
   7691   case "$host_cpu" in
   7692 
   7693 	#
   7694 	# These are CPU types where:
   7695 	#
   7696 	#	the CPU faults on an unaligned access, but at least some
   7697 	#	OSes that support that CPU catch the fault and simulate
   7698 	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
   7699 	#	the simulation is slow, so we don't want to use it;
   7700 	#
   7701 	#	the CPU, I infer (from the old
   7702 	#
   7703 	# XXX: should also check that they don't do weird things (like on arm)
   7704 	#
   7705 	#	comment) doesn't fault on unaligned accesses, but doesn't
   7706 	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
   7707 	#
   7708 	#	for whatever reason, the test program doesn't work
   7709 	#	(this has been claimed to be the case for several of those
   7710 	#	CPUs - I don't know what the problem is; the problem
   7711 	#	was reported as "the test program dumps core" for SuperH,
   7712 	#	but that's what the test program is *supposed* to do -
   7713 	#	it dumps core before it writes anything, so the test
   7714 	#	for an empty output file should find an empty output
   7715 	#	file and conclude that unaligned accesses don't work).
   7716 	#
   7717 	# This run-time test won't work if you're cross-compiling, so
   7718 	# in order to support cross-compiling for a particular CPU,
   7719 	# we have to wire in the list of CPU types anyway, as far as
   7720 	# I know, so perhaps we should just have a set of CPUs on
   7721 	# which we know it doesn't work, a set of CPUs on which we
   7722 	# know it does work, and have the script just fail on other
   7723 	# cpu types and update it when such a failure occurs.
   7724 	#
   7725 	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
   7726 		ac_cv_lbl_unaligned_fail=yes
   7727 		;;
   7728 
   7729 	*)
   7730 		cat >conftest.c <<EOF
   7731 #		include <sys/types.h>
   7732 #		include <sys/wait.h>
   7733 #		include <stdio.h>
   7734 		unsigned char a[5] = { 1, 2, 3, 4, 5 };
   7735 		main() {
   7736 		unsigned int i;
   7737 		pid_t pid;
   7738 		int status;
   7739 		/* avoid "core dumped" message */
   7740 		pid = fork();
   7741 		if (pid <  0)
   7742 			exit(2);
   7743 		if (pid > 0) {
   7744 			/* parent */
   7745 			pid = waitpid(pid, &status, 0);
   7746 			if (pid < 0)
   7747 				exit(3);
   7748 			exit(!WIFEXITED(status));
   7749 		}
   7750 		/* child */
   7751 		i = *(unsigned int *)&a[1];
   7752 		printf("%d\n", i);
   7753 		exit(0);
   7754 		}
   7755 EOF
   7756 		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
   7757 		    conftest.c $LIBS >/dev/null 2>&1
   7758 		if test ! -x conftest ; then
   7759 						ac_cv_lbl_unaligned_fail=yes
   7760 		else
   7761 			./conftest >conftest.out
   7762 			if test ! -s conftest.out ; then
   7763 				ac_cv_lbl_unaligned_fail=yes
   7764 			else
   7765 				ac_cv_lbl_unaligned_fail=no
   7766 			fi
   7767 		fi
   7768 		rm -f -r conftest* core core.conftest
   7769 		;;
   7770 	esac
   7771 fi
   7772 
   7773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
   7774 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
   7775     if test $ac_cv_lbl_unaligned_fail = yes ; then
   7776 
   7777 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
   7778 
   7779     fi
   7780 
   7781 #
   7782 # Makefile.in includes rules to generate version.h, so we assume
   7783 # that it will be generated if autoconf is used.
   7784 #
   7785 
   7786 $as_echo "#define HAVE_VERSION_H 1" >>confdefs.h
   7787 
   7788 
   7789 rm -f net
   7790 ln -s ${srcdir}/bpf/net net
   7791 
   7792 
   7793 
   7794 
   7795 
   7796 
   7797 
   7798 
   7799 
   7800 
   7801 
   7802 
   7803 
   7804 
   7805 
   7806 
   7807 
   7808 
   7809 
   7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
   7811 $as_echo_n "checking for USB sniffing support... " >&6; }
   7812 case "$host_os" in
   7813 linux*)
   7814 
   7815 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
   7816 
   7817 	USB_SRC=pcap-usb-linux.c
   7818 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7819 $as_echo "yes" >&6; }
   7820 	ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
   7821 	if test $? -ne 0 ; then
   7822 	  ac_usb_dev_name="usbmon"
   7823 	fi
   7824 
   7825 cat >>confdefs.h <<_ACEOF
   7826 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
   7827 _ACEOF
   7828 
   7829 	{ $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
   7830 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
   7831 	#
   7832 	# Do we have a version of <linux/compiler.h> available?
   7833 	# If so, we might need it for <linux/usbdevice_fs.h>.
   7834 	#
   7835 	for ac_header in linux/compiler.h
   7836 do :
   7837   ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
   7838 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
   7839   cat >>confdefs.h <<_ACEOF
   7840 #define HAVE_LINUX_COMPILER_H 1
   7841 _ACEOF
   7842 
   7843 fi
   7844 
   7845 done
   7846 
   7847 	if test "$ac_cv_header_linux_compiler_h" = yes; then
   7848 	  #
   7849 	  # Yes - include it when testing for <linux/usbdevice_fs.h>.
   7850 	  #
   7851 	  for ac_header in linux/usbdevice_fs.h
   7852 do :
   7853   ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
   7854 "
   7855 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
   7856   cat >>confdefs.h <<_ACEOF
   7857 #define HAVE_LINUX_USBDEVICE_FS_H 1
   7858 _ACEOF
   7859 
   7860 fi
   7861 
   7862 done
   7863 
   7864 	else
   7865 	  for ac_header in linux/usbdevice_fs.h
   7866 do :
   7867   ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
   7868 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
   7869   cat >>confdefs.h <<_ACEOF
   7870 #define HAVE_LINUX_USBDEVICE_FS_H 1
   7871 _ACEOF
   7872 
   7873 fi
   7874 
   7875 done
   7876 
   7877 	fi
   7878 	if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
   7879 	  #
   7880 	  # OK, does it define bRequestType?  Older versions of the kernel
   7881 	  # define fields with names like "requesttype, "request", and
   7882 	  # "value", rather than "bRequestType", "bRequest", and
   7883 	  # "wValue".
   7884 	  #
   7885 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
   7886 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
   7887 	  if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
   7888   $as_echo_n "(cached) " >&6
   7889 else
   7890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7891 /* end confdefs.h.  */
   7892 
   7893 $ac_includes_default
   7894 #ifdef HAVE_SYS_BITYPES_H
   7895 #include <sys/bitypes.h>
   7896 #endif
   7897 #ifdef HAVE_LINUX_COMPILER_H
   7898 #include <linux/compiler.h>
   7899 #endif
   7900 #include <linux/usbdevice_fs.h>
   7901 int
   7902 main ()
   7903 {
   7904 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
   7905   ;
   7906   return 0;
   7907 }
   7908 _ACEOF
   7909 if ac_fn_c_try_compile "$LINENO"; then :
   7910   ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
   7911 else
   7912   ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
   7913 fi
   7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7915 fi
   7916 
   7917 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
   7918 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
   7919 	    if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
   7920 
   7921 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
   7922 
   7923 	    fi
   7924 	fi
   7925 	;;
   7926 *)
   7927 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7928 $as_echo "no" >&6; }
   7929 	;;
   7930 esac
   7931 
   7932 
   7933 
   7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
   7935 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
   7936 case "$host_os" in
   7937 linux*)
   7938 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7939 $as_echo "yes" >&6; }
   7940 	#
   7941 	# Life's too short to deal with trying to get this to compile
   7942 	# if you don't get the right types defined with
   7943 	# __KERNEL_STRICT_NAMES getting defined by some other include.
   7944 	#
   7945 	# Check whether the includes Just Work.  If not, don't turn on
   7946 	# netfilter support.
   7947 	#
   7948 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
   7949 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
   7950 	if ${ac_cv_netfilter_can_compile+:} false; then :
   7951   $as_echo_n "(cached) " >&6
   7952 else
   7953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7954 /* end confdefs.h.  */
   7955 
   7956 $ac_includes_default
   7957 #include <sys/socket.h>
   7958 #include <netinet/in.h>
   7959 #include <linux/types.h>
   7960 
   7961 #include <linux/netlink.h>
   7962 #include <linux/netfilter.h>
   7963 #include <linux/netfilter/nfnetlink.h>
   7964 #include <linux/netfilter/nfnetlink_log.h>
   7965 #include <linux/netfilter/nfnetlink_queue.h>
   7966 int
   7967 main ()
   7968 {
   7969 
   7970   ;
   7971   return 0;
   7972 }
   7973 _ACEOF
   7974 if ac_fn_c_try_compile "$LINENO"; then :
   7975   ac_cv_netfilter_can_compile=yes
   7976 else
   7977   ac_cv_netfilter_can_compile=no
   7978 fi
   7979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7980 fi
   7981 
   7982 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
   7983 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
   7984 	if test $ac_cv_netfilter_can_compile = yes ; then
   7985 
   7986 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
   7987 
   7988 	  NETFILTER_SRC=pcap-netfilter-linux.c
   7989 	fi
   7990 	;;
   7991 *)
   7992 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7993 $as_echo "no" >&6; }
   7994 	;;
   7995 esac
   7996 
   7997 
   7998 
   7999 # Check whether --enable-bluetooth was given.
   8000 if test "${enable_bluetooth+set}" = set; then :
   8001   enableval=$enable_bluetooth;
   8002 else
   8003   enable_bluetooth=ifsupportavailable
   8004 fi
   8005 
   8006 
   8007 if test "x$enable_bluetooth" != "xno" ; then
   8008 		case "$host_os" in
   8009 	linux*)
   8010 		ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
   8011 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
   8012 
   8013 
   8014 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
   8015 
   8016 		  BT_SRC=pcap-bt-linux.c
   8017 		  { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
   8018 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
   8019 
   8020 		  #
   8021 		  # OK, does struct sockaddr_hci have an hci_channel
   8022 		  # member?
   8023 		  #
   8024 		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
   8025 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
   8026 		  if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
   8027   $as_echo_n "(cached) " >&6
   8028 else
   8029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8030 /* end confdefs.h.  */
   8031 
   8032 #include <bluetooth/bluetooth.h>
   8033 #include <bluetooth/hci.h>
   8034 
   8035 int
   8036 main ()
   8037 {
   8038 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
   8039   ;
   8040   return 0;
   8041 }
   8042 _ACEOF
   8043 if ac_fn_c_try_compile "$LINENO"; then :
   8044   ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
   8045 else
   8046   ac_cv_lbl_sockaddr_hci_has_hci_channel=no
   8047 fi
   8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8049 fi
   8050 
   8051 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
   8052 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
   8053 		    if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
   8054 
   8055 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
   8056 
   8057 
   8058 		      #
   8059 		      # OK, is HCI_CHANNEL_MONITOR defined?
   8060 		      #
   8061 		      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
   8062 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
   8063 		      if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
   8064   $as_echo_n "(cached) " >&6
   8065 else
   8066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8067 /* end confdefs.h.  */
   8068 
   8069 #include <bluetooth/bluetooth.h>
   8070 #include <bluetooth/hci.h>
   8071 
   8072 int
   8073 main ()
   8074 {
   8075 u_int i = HCI_CHANNEL_MONITOR
   8076   ;
   8077   return 0;
   8078 }
   8079 _ACEOF
   8080 if ac_fn_c_try_compile "$LINENO"; then :
   8081   ac_cv_lbl_hci_channel_monitor_is_defined=yes
   8082 else
   8083   ac_cv_lbl_hci_channel_monitor_is_defined=no
   8084 fi
   8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8086 fi
   8087 
   8088 		      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
   8089 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
   8090 		      if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
   8091 
   8092 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
   8093 
   8094 			BT_MONITOR_SRC=pcap-bt-monitor-linux.c
   8095 		      fi
   8096 		    fi
   8097 		    ac_lbl_bluetooth_available=yes
   8098 
   8099 else
   8100   ac_lbl_bluetooth_available=no
   8101 
   8102 fi
   8103 
   8104 
   8105 		if test "x$ac_lbl_bluetooth_available" == "xno" ; then
   8106 		    if test "x$enable_bluetooth" = "xyes" ; then
   8107 			as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
   8108 		    else
   8109 			{ $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
   8110 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
   8111 		    fi
   8112 		fi
   8113 		;;
   8114 	*)
   8115 		if test "x$enable_bluetooth" = "xyes" ; then
   8116 		    as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
   8117 		else
   8118 		    { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
   8119 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
   8120 		fi
   8121 		;;
   8122 	esac
   8123 
   8124 
   8125 
   8126 fi
   8127 
   8128 # Check whether --enable-canusb was given.
   8129 if test "${enable_canusb+set}" = set; then :
   8130   enableval=$enable_canusb;
   8131 else
   8132   enable_canusb=ifsupportavailable
   8133 fi
   8134 
   8135 
   8136 if test "x$enable_canusb" != "xno" ; then
   8137 		case "$host_os" in
   8138 	linux*)
   8139 		ac_fn_c_check_header_mongrel "$LINENO" "libusb-1.0/libusb.h" "ac_cv_header_libusb_1_0_libusb_h" "$ac_includes_default"
   8140 if test "x$ac_cv_header_libusb_1_0_libusb_h" = xyes; then :
   8141 
   8142 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -lusb-1.0" >&5
   8143 $as_echo_n "checking for libusb_init in -lusb-1.0... " >&6; }
   8144 if ${ac_cv_lib_usb_1_0_libusb_init+:} false; then :
   8145   $as_echo_n "(cached) " >&6
   8146 else
   8147   ac_check_lib_save_LIBS=$LIBS
   8148 LIBS="-lusb-1.0  $LIBS"
   8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8150 /* end confdefs.h.  */
   8151 
   8152 /* Override any GCC internal prototype to avoid an error.
   8153    Use char because int might match the return type of a GCC
   8154    builtin and then its argument prototype would still apply.  */
   8155 #ifdef __cplusplus
   8156 extern "C"
   8157 #endif
   8158 char libusb_init ();
   8159 int
   8160 main ()
   8161 {
   8162 return libusb_init ();
   8163   ;
   8164   return 0;
   8165 }
   8166 _ACEOF
   8167 if ac_fn_c_try_link "$LINENO"; then :
   8168   ac_cv_lib_usb_1_0_libusb_init=yes
   8169 else
   8170   ac_cv_lib_usb_1_0_libusb_init=no
   8171 fi
   8172 rm -f core conftest.err conftest.$ac_objext \
   8173     conftest$ac_exeext conftest.$ac_ext
   8174 LIBS=$ac_check_lib_save_LIBS
   8175 fi
   8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_init" >&5
   8177 $as_echo "$ac_cv_lib_usb_1_0_libusb_init" >&6; }
   8178 if test "x$ac_cv_lib_usb_1_0_libusb_init" = xyes; then :
   8179 
   8180 
   8181 $as_echo "#define PCAP_SUPPORT_CANUSB 1" >>confdefs.h
   8182 
   8183 			CANUSB_SRC=pcap-canusb-linux.c
   8184 			LIBS="-lusb-1.0 -lpthread $LIBS"
   8185 			ac_lbl_has_libusb=yes
   8186 
   8187 else
   8188   ac_lbl_has_libusb=no
   8189 
   8190 fi
   8191 
   8192 
   8193 else
   8194   ac_lbl_has_libusb=no
   8195 
   8196 fi
   8197 
   8198 
   8199 		if test "x$ac_lbl_has_libusb" = "xyes" ; then
   8200 		    { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is supported" >&5
   8201 $as_echo "$as_me: canusb sniffing is supported" >&6;}
   8202 		else
   8203 		    if test "x$enable_canusb" = "xyes" ; then
   8204 			as_fn_error $? "canusb sniffing is not supported; install libusb1.0 lib devel to enable it" "$LINENO" 5
   8205 		    else
   8206 			{ $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5
   8207 $as_echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;}
   8208 		    fi
   8209 		fi
   8210 		;;
   8211 	*)
   8212 		if test "x$enable_canusb" = "xyes" ; then
   8213 		    as_fn_error $? "no canusb support implemented for $host_os" "$LINENO" 5
   8214 		else
   8215 		    { $as_echo "$as_me:${as_lineno-$LINENO}: no canusb support implemented for $host_os" >&5
   8216 $as_echo "$as_me: no canusb support implemented for $host_os" >&6;}
   8217 		fi
   8218 		;;
   8219 	esac
   8220 
   8221 
   8222 fi
   8223 
   8224 # Check whether --enable-can was given.
   8225 if test "${enable_can+set}" = set; then :
   8226   enableval=$enable_can;
   8227 else
   8228   enable_can=ifsupportavailable
   8229 fi
   8230 
   8231 
   8232 if test "x$enable_can" != "xno" ; then
   8233 		case "$host_os" in
   8234 	linux*)
   8235 		ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "#include <sys/socket.h>
   8236 
   8237 "
   8238 if test "x$ac_cv_header_linux_can_h" = xyes; then :
   8239 
   8240 
   8241 $as_echo "#define PCAP_SUPPORT_CAN 1" >>confdefs.h
   8242 
   8243 			    CAN_SRC=pcap-can-linux.c
   8244 			    { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is supported" >&5
   8245 $as_echo "$as_me: CAN sniffing is supported" >&6;}
   8246 
   8247 else
   8248 
   8249 			    if test "x$enable_can" = "xyes" ; then
   8250 				as_fn_error $? "CAN sniffing is not supported" "$LINENO" 5
   8251 			    else
   8252 				{ $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is not supported" >&5
   8253 $as_echo "$as_me: CAN sniffing is not supported" >&6;}
   8254 			    fi
   8255 
   8256 fi
   8257 
   8258 
   8259 		;;
   8260 	*)
   8261 		if test "x$enable_can" = "xyes" ; then
   8262 		    as_fn_error $? "no CAN sniffing support implemented for $host_os" "$LINENO" 5
   8263 		else
   8264 		    { $as_echo "$as_me:${as_lineno-$LINENO}: no CAN sniffing support implemented for $host_os" >&5
   8265 $as_echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
   8266 		fi
   8267 		;;
   8268 	esac
   8269 
   8270 
   8271 fi
   8272 
   8273 # Check whether --enable-dbus was given.
   8274 if test "${enable_dbus+set}" = set; then :
   8275   enableval=$enable_dbus;
   8276 else
   8277   enable_dbus=ifavailable
   8278 fi
   8279 
   8280 
   8281 if test "x$enable_dbus" != "xno"; then
   8282 	if test "x$enable_dbus" = "xyes"; then
   8283 		case "$host_os" in
   8284 
   8285 		darwin*)
   8286 			#
   8287 			# https://bugs.freedesktop.org/show_bug.cgi?id=74029
   8288 			#
   8289 			as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on OS X" "$LINENO" 5
   8290 			;;
   8291 		esac
   8292 	else
   8293 		case "$host_os" in
   8294 
   8295 		darwin*)
   8296 			#
   8297 			# https://bugs.freedesktop.org/show_bug.cgi?id=74029
   8298 			#
   8299 			;;
   8300 
   8301 		*)
   8302 			# Extract the first word of "pkg-config", so it can be a program name with args.
   8303 set dummy pkg-config; ac_word=$2
   8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8305 $as_echo_n "checking for $ac_word... " >&6; }
   8306 if ${ac_cv_prog_PKGCONFIG+:} false; then :
   8307   $as_echo_n "(cached) " >&6
   8308 else
   8309   if test -n "$PKGCONFIG"; then
   8310   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
   8311 else
   8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8313 for as_dir in $PATH
   8314 do
   8315   IFS=$as_save_IFS
   8316   test -z "$as_dir" && as_dir=.
   8317     for ac_exec_ext in '' $ac_executable_extensions; do
   8318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8319     ac_cv_prog_PKGCONFIG="pkg-config"
   8320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8321     break 2
   8322   fi
   8323 done
   8324   done
   8325 IFS=$as_save_IFS
   8326 
   8327   test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
   8328 fi
   8329 fi
   8330 PKGCONFIG=$ac_cv_prog_PKGCONFIG
   8331 if test -n "$PKGCONFIG"; then
   8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
   8333 $as_echo "$PKGCONFIG" >&6; }
   8334 else
   8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8336 $as_echo "no" >&6; }
   8337 fi
   8338 
   8339 
   8340 			if test "x$PKGCONFIG" != "xno"; then
   8341 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
   8342 $as_echo_n "checking for D-Bus... " >&6; }
   8343 				if "$PKGCONFIG" dbus-1; then
   8344 					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8345 $as_echo "yes" >&6; }
   8346 					DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
   8347 					DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
   8348 					save_CFLAGS="$CFLAGS"
   8349 					save_LIBS="$LIBS"
   8350 					CFLAGS="$CFLAGS $DBUS_CFLAGS"
   8351 					LIBS="$LIBS $DBUS_LIBS"
   8352 					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
   8353 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
   8354 					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8355 /* end confdefs.h.  */
   8356 #include <string.h>
   8357 
   8358 					     #include <time.h>
   8359 					     #include <sys/time.h>
   8360 
   8361 					     #include <dbus/dbus.h>
   8362 int
   8363 main ()
   8364 {
   8365 return dbus_connection_read_write(NULL, 0);
   8366   ;
   8367   return 0;
   8368 }
   8369 _ACEOF
   8370 if ac_fn_c_try_link "$LINENO"; then :
   8371 
   8372 						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8373 $as_echo "yes" >&6; }
   8374 
   8375 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
   8376 
   8377 						DBUS_SRC=pcap-dbus.c
   8378 						V_INCLS="$V_INCLS $DBUS_CFLAGS"
   8379 
   8380 else
   8381 
   8382 						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8383 $as_echo "no" >&6; }
   8384 						if test "x$enable_dbus" = "xyes"; then
   8385 						    as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
   8386 						fi
   8387 						LIBS="$save_LIBS"
   8388 
   8389 fi
   8390 rm -f core conftest.err conftest.$ac_objext \
   8391     conftest$ac_exeext conftest.$ac_ext
   8392 					CFLAGS="$save_CFLAGS"
   8393 				else
   8394 					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8395 $as_echo "no" >&6; }
   8396 					if test "x$enable_dbus" = "xyes"; then
   8397 						as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
   8398 					fi
   8399 				fi
   8400 			fi
   8401 			;;
   8402 		esac
   8403 	fi
   8404 
   8405 
   8406 fi
   8407 
   8408 case "$host_os" in
   8409 linux*)
   8410 	for ac_header in linux/net_tstamp.h
   8411 do :
   8412   ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
   8413 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
   8414   cat >>confdefs.h <<_ACEOF
   8415 #define HAVE_LINUX_NET_TSTAMP_H 1
   8416 _ACEOF
   8417 
   8418 fi
   8419 
   8420 done
   8421 
   8422 	;;
   8423 *)
   8424 	{ $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
   8425 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
   8426 	;;
   8427 esac
   8428 
   8429 # Find a good install program.  We prefer a C program (faster),
   8430 # so one script is as good as another.  But avoid the broken or
   8431 # incompatible versions:
   8432 # SysV /etc/install, /usr/sbin/install
   8433 # SunOS /usr/etc/install
   8434 # IRIX /sbin/install
   8435 # AIX /bin/install
   8436 # AmigaOS /C/install, which installs bootblocks on floppy discs
   8437 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   8438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   8439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   8440 # OS/2's system install, which has a completely different semantic
   8441 # ./install, which can be erroneously created by make from ./install.sh.
   8442 # Reject install programs that cannot install multiple files.
   8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   8444 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   8445 if test -z "$INSTALL"; then
   8446 if ${ac_cv_path_install+:} false; then :
   8447   $as_echo_n "(cached) " >&6
   8448 else
   8449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8450 for as_dir in $PATH
   8451 do
   8452   IFS=$as_save_IFS
   8453   test -z "$as_dir" && as_dir=.
   8454     # Account for people who put trailing slashes in PATH elements.
   8455 case $as_dir/ in #((
   8456   ./ | .// | /[cC]/* | \
   8457   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   8458   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   8459   /usr/ucb/* ) ;;
   8460   *)
   8461     # OSF1 and SCO ODT 3.0 have their own names for install.
   8462     # Don't use installbsd from OSF since it installs stuff as root
   8463     # by default.
   8464     for ac_prog in ginstall scoinst install; do
   8465       for ac_exec_ext in '' $ac_executable_extensions; do
   8466 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   8467 	  if test $ac_prog = install &&
   8468 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   8469 	    # AIX install.  It has an incompatible calling convention.
   8470 	    :
   8471 	  elif test $ac_prog = install &&
   8472 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   8473 	    # program-specific install script used by HP pwplus--don't use.
   8474 	    :
   8475 	  else
   8476 	    rm -rf conftest.one conftest.two conftest.dir
   8477 	    echo one > conftest.one
   8478 	    echo two > conftest.two
   8479 	    mkdir conftest.dir
   8480 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   8481 	      test -s conftest.one && test -s conftest.two &&
   8482 	      test -s conftest.dir/conftest.one &&
   8483 	      test -s conftest.dir/conftest.two
   8484 	    then
   8485 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   8486 	      break 3
   8487 	    fi
   8488 	  fi
   8489 	fi
   8490       done
   8491     done
   8492     ;;
   8493 esac
   8494 
   8495   done
   8496 IFS=$as_save_IFS
   8497 
   8498 rm -rf conftest.one conftest.two conftest.dir
   8499 
   8500 fi
   8501   if test "${ac_cv_path_install+set}" = set; then
   8502     INSTALL=$ac_cv_path_install
   8503   else
   8504     # As a last resort, use the slow shell script.  Don't cache a
   8505     # value for INSTALL within a source directory, because that will
   8506     # break other packages using the cache if that directory is
   8507     # removed, or if the value is a relative name.
   8508     INSTALL=$ac_install_sh
   8509   fi
   8510 fi
   8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   8512 $as_echo "$INSTALL" >&6; }
   8513 
   8514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   8515 # It thinks the first close brace ends the variable substitution.
   8516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   8517 
   8518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   8519 
   8520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   8521 
   8522 
   8523 ac_config_headers="$ac_config_headers config.h"
   8524 
   8525 
   8526 ac_config_commands="$ac_config_commands default-1"
   8527 
   8528 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap"
   8529 
   8530 cat >confcache <<\_ACEOF
   8531 # This file is a shell script that caches the results of configure
   8532 # tests run on this system so they can be shared between configure
   8533 # scripts and configure runs, see configure's option --config-cache.
   8534 # It is not useful on other systems.  If it contains results you don't
   8535 # want to keep, you may remove or edit it.
   8536 #
   8537 # config.status only pays attention to the cache file if you give it
   8538 # the --recheck option to rerun configure.
   8539 #
   8540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   8541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   8542 # following values.
   8543 
   8544 _ACEOF
   8545 
   8546 # The following way of writing the cache mishandles newlines in values,
   8547 # but we know of no workaround that is simple, portable, and efficient.
   8548 # So, we kill variables containing newlines.
   8549 # Ultrix sh set writes to stderr and can't be redirected directly,
   8550 # and sets the high bit in the cache file unless we assign to the vars.
   8551 (
   8552   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   8553     eval ac_val=\$$ac_var
   8554     case $ac_val in #(
   8555     *${as_nl}*)
   8556       case $ac_var in #(
   8557       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   8558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   8559       esac
   8560       case $ac_var in #(
   8561       _ | IFS | as_nl) ;; #(
   8562       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   8563       *) { eval $ac_var=; unset $ac_var;} ;;
   8564       esac ;;
   8565     esac
   8566   done
   8567 
   8568   (set) 2>&1 |
   8569     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   8570     *${as_nl}ac_space=\ *)
   8571       # `set' does not quote correctly, so add quotes: double-quote
   8572       # substitution turns \\\\ into \\, and sed turns \\ into \.
   8573       sed -n \
   8574 	"s/'/'\\\\''/g;
   8575 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   8576       ;; #(
   8577     *)
   8578       # `set' quotes correctly as required by POSIX, so do not add quotes.
   8579       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   8580       ;;
   8581     esac |
   8582     sort
   8583 ) |
   8584   sed '
   8585      /^ac_cv_env_/b end
   8586      t clear
   8587      :clear
   8588      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   8589      t end
   8590      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   8591      :end' >>confcache
   8592 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   8593   if test -w "$cache_file"; then
   8594     if test "x$cache_file" != "x/dev/null"; then
   8595       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   8596 $as_echo "$as_me: updating cache $cache_file" >&6;}
   8597       if test ! -f "$cache_file" || test -h "$cache_file"; then
   8598 	cat confcache >"$cache_file"
   8599       else
   8600         case $cache_file in #(
   8601         */* | ?:*)
   8602 	  mv -f confcache "$cache_file"$$ &&
   8603 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   8604         *)
   8605 	  mv -f confcache "$cache_file" ;;
   8606 	esac
   8607       fi
   8608     fi
   8609   else
   8610     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   8611 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   8612   fi
   8613 fi
   8614 rm -f confcache
   8615 
   8616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   8617 # Let make expand exec_prefix.
   8618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   8619 
   8620 DEFS=-DHAVE_CONFIG_H
   8621 
   8622 ac_libobjs=
   8623 ac_ltlibobjs=
   8624 U=
   8625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   8626   # 1. Remove the extension, and $U if already installed.
   8627   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   8628   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   8629   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   8630   #    will be set to the directory where LIBOBJS objects are built.
   8631   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   8632   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   8633 done
   8634 LIBOBJS=$ac_libobjs
   8635 
   8636 LTLIBOBJS=$ac_ltlibobjs
   8637 
   8638 
   8639 
   8640 : "${CONFIG_STATUS=./config.status}"
   8641 ac_write_fail=0
   8642 ac_clean_files_save=$ac_clean_files
   8643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   8644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   8645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   8646 as_write_fail=0
   8647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   8648 #! $SHELL
   8649 # Generated by $as_me.
   8650 # Run this file to recreate the current configuration.
   8651 # Compiler output produced by configure, useful for debugging
   8652 # configure, is in config.log if it exists.
   8653 
   8654 debug=false
   8655 ac_cs_recheck=false
   8656 ac_cs_silent=false
   8657 
   8658 SHELL=\${CONFIG_SHELL-$SHELL}
   8659 export SHELL
   8660 _ASEOF
   8661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   8662 ## -------------------- ##
   8663 ## M4sh Initialization. ##
   8664 ## -------------------- ##
   8665 
   8666 # Be more Bourne compatible
   8667 DUALCASE=1; export DUALCASE # for MKS sh
   8668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   8669   emulate sh
   8670   NULLCMD=:
   8671   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   8672   # is contrary to our usage.  Disable this feature.
   8673   alias -g '${1+"$@"}'='"$@"'
   8674   setopt NO_GLOB_SUBST
   8675 else
   8676   case `(set -o) 2>/dev/null` in #(
   8677   *posix*) :
   8678     set -o posix ;; #(
   8679   *) :
   8680      ;;
   8681 esac
   8682 fi
   8683 
   8684 
   8685 as_nl='
   8686 '
   8687 export as_nl
   8688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   8689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   8690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   8691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   8692 # Prefer a ksh shell builtin over an external printf program on Solaris,
   8693 # but without wasting forks for bash or zsh.
   8694 if test -z "$BASH_VERSION$ZSH_VERSION" \
   8695     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   8696   as_echo='print -r --'
   8697   as_echo_n='print -rn --'
   8698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   8699   as_echo='printf %s\n'
   8700   as_echo_n='printf %s'
   8701 else
   8702   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   8703     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   8704     as_echo_n='/usr/ucb/echo -n'
   8705   else
   8706     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   8707     as_echo_n_body='eval
   8708       arg=$1;
   8709       case $arg in #(
   8710       *"$as_nl"*)
   8711 	expr "X$arg" : "X\\(.*\\)$as_nl";
   8712 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   8713       esac;
   8714       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   8715     '
   8716     export as_echo_n_body
   8717     as_echo_n='sh -c $as_echo_n_body as_echo'
   8718   fi
   8719   export as_echo_body
   8720   as_echo='sh -c $as_echo_body as_echo'
   8721 fi
   8722 
   8723 # The user is always right.
   8724 if test "${PATH_SEPARATOR+set}" != set; then
   8725   PATH_SEPARATOR=:
   8726   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   8727     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   8728       PATH_SEPARATOR=';'
   8729   }
   8730 fi
   8731 
   8732 
   8733 # IFS
   8734 # We need space, tab and new line, in precisely that order.  Quoting is
   8735 # there to prevent editors from complaining about space-tab.
   8736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   8737 # splitting by setting IFS to empty value.)
   8738 IFS=" ""	$as_nl"
   8739 
   8740 # Find who we are.  Look in the path if we contain no directory separator.
   8741 as_myself=
   8742 case $0 in #((
   8743   *[\\/]* ) as_myself=$0 ;;
   8744   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8745 for as_dir in $PATH
   8746 do
   8747   IFS=$as_save_IFS
   8748   test -z "$as_dir" && as_dir=.
   8749     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   8750   done
   8751 IFS=$as_save_IFS
   8752 
   8753      ;;
   8754 esac
   8755 # We did not find ourselves, most probably we were run as `sh COMMAND'
   8756 # in which case we are not to be found in the path.
   8757 if test "x$as_myself" = x; then
   8758   as_myself=$0
   8759 fi
   8760 if test ! -f "$as_myself"; then
   8761   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   8762   exit 1
   8763 fi
   8764 
   8765 # Unset variables that we do not need and which cause bugs (e.g. in
   8766 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   8767 # suppresses any "Segmentation fault" message there.  '((' could
   8768 # trigger a bug in pdksh 5.2.14.
   8769 for as_var in BASH_ENV ENV MAIL MAILPATH
   8770 do eval test x\${$as_var+set} = xset \
   8771   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   8772 done
   8773 PS1='$ '
   8774 PS2='> '
   8775 PS4='+ '
   8776 
   8777 # NLS nuisances.
   8778 LC_ALL=C
   8779 export LC_ALL
   8780 LANGUAGE=C
   8781 export LANGUAGE
   8782 
   8783 # CDPATH.
   8784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   8785 
   8786 
   8787 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   8788 # ----------------------------------------
   8789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   8790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   8791 # script with STATUS, using 1 if that was 0.
   8792 as_fn_error ()
   8793 {
   8794   as_status=$1; test $as_status -eq 0 && as_status=1
   8795   if test "$4"; then
   8796     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   8797     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   8798   fi
   8799   $as_echo "$as_me: error: $2" >&2
   8800   as_fn_exit $as_status
   8801 } # as_fn_error
   8802 
   8803 
   8804 # as_fn_set_status STATUS
   8805 # -----------------------
   8806 # Set $? to STATUS, without forking.
   8807 as_fn_set_status ()
   8808 {
   8809   return $1
   8810 } # as_fn_set_status
   8811 
   8812 # as_fn_exit STATUS
   8813 # -----------------
   8814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   8815 as_fn_exit ()
   8816 {
   8817   set +e
   8818   as_fn_set_status $1
   8819   exit $1
   8820 } # as_fn_exit
   8821 
   8822 # as_fn_unset VAR
   8823 # ---------------
   8824 # Portably unset VAR.
   8825 as_fn_unset ()
   8826 {
   8827   { eval $1=; unset $1;}
   8828 }
   8829 as_unset=as_fn_unset
   8830 # as_fn_append VAR VALUE
   8831 # ----------------------
   8832 # Append the text in VALUE to the end of the definition contained in VAR. Take
   8833 # advantage of any shell optimizations that allow amortized linear growth over
   8834 # repeated appends, instead of the typical quadratic growth present in naive
   8835 # implementations.
   8836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   8837   eval 'as_fn_append ()
   8838   {
   8839     eval $1+=\$2
   8840   }'
   8841 else
   8842   as_fn_append ()
   8843   {
   8844     eval $1=\$$1\$2
   8845   }
   8846 fi # as_fn_append
   8847 
   8848 # as_fn_arith ARG...
   8849 # ------------------
   8850 # Perform arithmetic evaluation on the ARGs, and store the result in the
   8851 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   8852 # must be portable across $(()) and expr.
   8853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   8854   eval 'as_fn_arith ()
   8855   {
   8856     as_val=$(( $* ))
   8857   }'
   8858 else
   8859   as_fn_arith ()
   8860   {
   8861     as_val=`expr "$@" || test $? -eq 1`
   8862   }
   8863 fi # as_fn_arith
   8864 
   8865 
   8866 if expr a : '\(a\)' >/dev/null 2>&1 &&
   8867    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   8868   as_expr=expr
   8869 else
   8870   as_expr=false
   8871 fi
   8872 
   8873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   8874   as_basename=basename
   8875 else
   8876   as_basename=false
   8877 fi
   8878 
   8879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   8880   as_dirname=dirname
   8881 else
   8882   as_dirname=false
   8883 fi
   8884 
   8885 as_me=`$as_basename -- "$0" ||
   8886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   8887 	 X"$0" : 'X\(//\)$' \| \
   8888 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   8889 $as_echo X/"$0" |
   8890     sed '/^.*\/\([^/][^/]*\)\/*$/{
   8891 	    s//\1/
   8892 	    q
   8893 	  }
   8894 	  /^X\/\(\/\/\)$/{
   8895 	    s//\1/
   8896 	    q
   8897 	  }
   8898 	  /^X\/\(\/\).*/{
   8899 	    s//\1/
   8900 	    q
   8901 	  }
   8902 	  s/.*/./; q'`
   8903 
   8904 # Avoid depending upon Character Ranges.
   8905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   8906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   8907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   8908 as_cr_digits='0123456789'
   8909 as_cr_alnum=$as_cr_Letters$as_cr_digits
   8910 
   8911 ECHO_C= ECHO_N= ECHO_T=
   8912 case `echo -n x` in #(((((
   8913 -n*)
   8914   case `echo 'xy\c'` in
   8915   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   8916   xy)  ECHO_C='\c';;
   8917   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   8918        ECHO_T='	';;
   8919   esac;;
   8920 *)
   8921   ECHO_N='-n';;
   8922 esac
   8923 
   8924 rm -f conf$$ conf$$.exe conf$$.file
   8925 if test -d conf$$.dir; then
   8926   rm -f conf$$.dir/conf$$.file
   8927 else
   8928   rm -f conf$$.dir
   8929   mkdir conf$$.dir 2>/dev/null
   8930 fi
   8931 if (echo >conf$$.file) 2>/dev/null; then
   8932   if ln -s conf$$.file conf$$ 2>/dev/null; then
   8933     as_ln_s='ln -s'
   8934     # ... but there are two gotchas:
   8935     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   8936     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   8937     # In both cases, we have to default to `cp -pR'.
   8938     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   8939       as_ln_s='cp -pR'
   8940   elif ln conf$$.file conf$$ 2>/dev/null; then
   8941     as_ln_s=ln
   8942   else
   8943     as_ln_s='cp -pR'
   8944   fi
   8945 else
   8946   as_ln_s='cp -pR'
   8947 fi
   8948 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   8949 rmdir conf$$.dir 2>/dev/null
   8950 
   8951 
   8952 # as_fn_mkdir_p
   8953 # -------------
   8954 # Create "$as_dir" as a directory, including parents if necessary.
   8955 as_fn_mkdir_p ()
   8956 {
   8957 
   8958   case $as_dir in #(
   8959   -*) as_dir=./$as_dir;;
   8960   esac
   8961   test -d "$as_dir" || eval $as_mkdir_p || {
   8962     as_dirs=
   8963     while :; do
   8964       case $as_dir in #(
   8965       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   8966       *) as_qdir=$as_dir;;
   8967       esac
   8968       as_dirs="'$as_qdir' $as_dirs"
   8969       as_dir=`$as_dirname -- "$as_dir" ||
   8970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8971 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   8972 	 X"$as_dir" : 'X\(//\)$' \| \
   8973 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   8974 $as_echo X"$as_dir" |
   8975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8976 	    s//\1/
   8977 	    q
   8978 	  }
   8979 	  /^X\(\/\/\)[^/].*/{
   8980 	    s//\1/
   8981 	    q
   8982 	  }
   8983 	  /^X\(\/\/\)$/{
   8984 	    s//\1/
   8985 	    q
   8986 	  }
   8987 	  /^X\(\/\).*/{
   8988 	    s//\1/
   8989 	    q
   8990 	  }
   8991 	  s/.*/./; q'`
   8992       test -d "$as_dir" && break
   8993     done
   8994     test -z "$as_dirs" || eval "mkdir $as_dirs"
   8995   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   8996 
   8997 
   8998 } # as_fn_mkdir_p
   8999 if mkdir -p . 2>/dev/null; then
   9000   as_mkdir_p='mkdir -p "$as_dir"'
   9001 else
   9002   test -d ./-p && rmdir ./-p
   9003   as_mkdir_p=false
   9004 fi
   9005 
   9006 
   9007 # as_fn_executable_p FILE
   9008 # -----------------------
   9009 # Test if FILE is an executable regular file.
   9010 as_fn_executable_p ()
   9011 {
   9012   test -f "$1" && test -x "$1"
   9013 } # as_fn_executable_p
   9014 as_test_x='test -x'
   9015 as_executable_p=as_fn_executable_p
   9016 
   9017 # Sed expression to map a string onto a valid CPP name.
   9018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   9019 
   9020 # Sed expression to map a string onto a valid variable name.
   9021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   9022 
   9023 
   9024 exec 6>&1
   9025 ## ----------------------------------- ##
   9026 ## Main body of $CONFIG_STATUS script. ##
   9027 ## ----------------------------------- ##
   9028 _ASEOF
   9029 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   9030 
   9031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9032 # Save the log message, to keep $0 and so on meaningful, and to
   9033 # report actual input values of CONFIG_FILES etc. instead of their
   9034 # values after options handling.
   9035 ac_log="
   9036 This file was extended by $as_me, which was
   9037 generated by GNU Autoconf 2.69.  Invocation command line was
   9038 
   9039   CONFIG_FILES    = $CONFIG_FILES
   9040   CONFIG_HEADERS  = $CONFIG_HEADERS
   9041   CONFIG_LINKS    = $CONFIG_LINKS
   9042   CONFIG_COMMANDS = $CONFIG_COMMANDS
   9043   $ $0 $@
   9044 
   9045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   9046 "
   9047 
   9048 _ACEOF
   9049 
   9050 case $ac_config_files in *"
   9051 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   9052 esac
   9053 
   9054 case $ac_config_headers in *"
   9055 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   9056 esac
   9057 
   9058 
   9059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9060 # Files that config.status was made for.
   9061 config_files="$ac_config_files"
   9062 config_headers="$ac_config_headers"
   9063 config_commands="$ac_config_commands"
   9064 
   9065 _ACEOF
   9066 
   9067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9068 ac_cs_usage="\
   9069 \`$as_me' instantiates files and other configuration actions
   9070 from templates according to the current configuration.  Unless the files
   9071 and actions are specified as TAGs, all are instantiated by default.
   9072 
   9073 Usage: $0 [OPTION]... [TAG]...
   9074 
   9075   -h, --help       print this help, then exit
   9076   -V, --version    print version number and configuration settings, then exit
   9077       --config     print configuration, then exit
   9078   -q, --quiet, --silent
   9079                    do not print progress messages
   9080   -d, --debug      don't remove temporary files
   9081       --recheck    update $as_me by reconfiguring in the same conditions
   9082       --file=FILE[:TEMPLATE]
   9083                    instantiate the configuration file FILE
   9084       --header=FILE[:TEMPLATE]
   9085                    instantiate the configuration header FILE
   9086 
   9087 Configuration files:
   9088 $config_files
   9089 
   9090 Configuration headers:
   9091 $config_headers
   9092 
   9093 Configuration commands:
   9094 $config_commands
   9095 
   9096 Report bugs to the package provider."
   9097 
   9098 _ACEOF
   9099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9100 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   9101 ac_cs_version="\\
   9102 config.status
   9103 configured by $0, generated by GNU Autoconf 2.69,
   9104   with options \\"\$ac_cs_config\\"
   9105 
   9106 Copyright (C) 2012 Free Software Foundation, Inc.
   9107 This config.status script is free software; the Free Software Foundation
   9108 gives unlimited permission to copy, distribute and modify it."
   9109 
   9110 ac_pwd='$ac_pwd'
   9111 srcdir='$srcdir'
   9112 INSTALL='$INSTALL'
   9113 test -n "\$AWK" || AWK=awk
   9114 _ACEOF
   9115 
   9116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9117 # The default lists apply if the user does not specify any file.
   9118 ac_need_defaults=:
   9119 while test $# != 0
   9120 do
   9121   case $1 in
   9122   --*=?*)
   9123     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   9124     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   9125     ac_shift=:
   9126     ;;
   9127   --*=)
   9128     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   9129     ac_optarg=
   9130     ac_shift=:
   9131     ;;
   9132   *)
   9133     ac_option=$1
   9134     ac_optarg=$2
   9135     ac_shift=shift
   9136     ;;
   9137   esac
   9138 
   9139   case $ac_option in
   9140   # Handling of the options.
   9141   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   9142     ac_cs_recheck=: ;;
   9143   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   9144     $as_echo "$ac_cs_version"; exit ;;
   9145   --config | --confi | --conf | --con | --co | --c )
   9146     $as_echo "$ac_cs_config"; exit ;;
   9147   --debug | --debu | --deb | --de | --d | -d )
   9148     debug=: ;;
   9149   --file | --fil | --fi | --f )
   9150     $ac_shift
   9151     case $ac_optarg in
   9152     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   9153     '') as_fn_error $? "missing file argument" ;;
   9154     esac
   9155     as_fn_append CONFIG_FILES " '$ac_optarg'"
   9156     ac_need_defaults=false;;
   9157   --header | --heade | --head | --hea )
   9158     $ac_shift
   9159     case $ac_optarg in
   9160     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   9161     esac
   9162     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   9163     ac_need_defaults=false;;
   9164   --he | --h)
   9165     # Conflict between --help and --header
   9166     as_fn_error $? "ambiguous option: \`$1'
   9167 Try \`$0 --help' for more information.";;
   9168   --help | --hel | -h )
   9169     $as_echo "$ac_cs_usage"; exit ;;
   9170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   9171   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   9172     ac_cs_silent=: ;;
   9173 
   9174   # This is an error.
   9175   -*) as_fn_error $? "unrecognized option: \`$1'
   9176 Try \`$0 --help' for more information." ;;
   9177 
   9178   *) as_fn_append ac_config_targets " $1"
   9179      ac_need_defaults=false ;;
   9180 
   9181   esac
   9182   shift
   9183 done
   9184 
   9185 ac_configure_extra_args=
   9186 
   9187 if $ac_cs_silent; then
   9188   exec 6>/dev/null
   9189   ac_configure_extra_args="$ac_configure_extra_args --silent"
   9190 fi
   9191 
   9192 _ACEOF
   9193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9194 if \$ac_cs_recheck; then
   9195   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   9196   shift
   9197   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   9198   CONFIG_SHELL='$SHELL'
   9199   export CONFIG_SHELL
   9200   exec "\$@"
   9201 fi
   9202 
   9203 _ACEOF
   9204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9205 exec 5>>config.log
   9206 {
   9207   echo
   9208   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   9209 ## Running $as_me. ##
   9210 _ASBOX
   9211   $as_echo "$ac_log"
   9212 } >&5
   9213 
   9214 _ACEOF
   9215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9216 #
   9217 # INIT-COMMANDS
   9218 #
   9219 
   9220 
   9221 _ACEOF
   9222 
   9223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9224 
   9225 # Handling of arguments.
   9226 for ac_config_target in $ac_config_targets
   9227 do
   9228   case $ac_config_target in
   9229     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   9230     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
   9231     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   9232     "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
   9233     "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
   9234     "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
   9235     "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
   9236     "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
   9237     "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
   9238     "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
   9239     "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
   9240     "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
   9241     "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
   9242     "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
   9243     "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
   9244     "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
   9245     "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
   9246     "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
   9247 
   9248   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   9249   esac
   9250 done
   9251 
   9252 
   9253 # If the user did not use the arguments to specify the items to instantiate,
   9254 # then the envvar interface is used.  Set only those that are not.
   9255 # We use the long form for the default assignment because of an extremely
   9256 # bizarre bug on SunOS 4.1.3.
   9257 if $ac_need_defaults; then
   9258   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   9259   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   9260   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   9261 fi
   9262 
   9263 # Have a temporary directory for convenience.  Make it in the build tree
   9264 # simply because there is no reason against having it here, and in addition,
   9265 # creating and moving files from /tmp can sometimes cause problems.
   9266 # Hook for its removal unless debugging.
   9267 # Note that there is a small window in which the directory will not be cleaned:
   9268 # after its creation but before its name has been assigned to `$tmp'.
   9269 $debug ||
   9270 {
   9271   tmp= ac_tmp=
   9272   trap 'exit_status=$?
   9273   : "${ac_tmp:=$tmp}"
   9274   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   9275 ' 0
   9276   trap 'as_fn_exit 1' 1 2 13 15
   9277 }
   9278 # Create a (secure) tmp directory for tmp files.
   9279 
   9280 {
   9281   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   9282   test -d "$tmp"
   9283 }  ||
   9284 {
   9285   tmp=./conf$$-$RANDOM
   9286   (umask 077 && mkdir "$tmp")
   9287 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   9288 ac_tmp=$tmp
   9289 
   9290 # Set up the scripts for CONFIG_FILES section.
   9291 # No need to generate them if there are no CONFIG_FILES.
   9292 # This happens for instance with `./config.status config.h'.
   9293 if test -n "$CONFIG_FILES"; then
   9294 
   9295 
   9296 ac_cr=`echo X | tr X '\015'`
   9297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   9298 # But we know of no other shell where ac_cr would be empty at this
   9299 # point, so we can use a bashism as a fallback.
   9300 if test "x$ac_cr" = x; then
   9301   eval ac_cr=\$\'\\r\'
   9302 fi
   9303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   9304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   9305   ac_cs_awk_cr='\\r'
   9306 else
   9307   ac_cs_awk_cr=$ac_cr
   9308 fi
   9309 
   9310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   9311 _ACEOF
   9312 
   9313 
   9314 {
   9315   echo "cat >conf$$subs.awk <<_ACEOF" &&
   9316   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   9317   echo "_ACEOF"
   9318 } >conf$$subs.sh ||
   9319   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   9320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   9321 ac_delim='%!_!# '
   9322 for ac_last_try in false false false false false :; do
   9323   . ./conf$$subs.sh ||
   9324     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   9325 
   9326   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   9327   if test $ac_delim_n = $ac_delim_num; then
   9328     break
   9329   elif $ac_last_try; then
   9330     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   9331   else
   9332     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   9333   fi
   9334 done
   9335 rm -f conf$$subs.sh
   9336 
   9337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9338 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   9339 _ACEOF
   9340 sed -n '
   9341 h
   9342 s/^/S["/; s/!.*/"]=/
   9343 p
   9344 g
   9345 s/^[^!]*!//
   9346 :repl
   9347 t repl
   9348 s/'"$ac_delim"'$//
   9349 t delim
   9350 :nl
   9351 h
   9352 s/\(.\{148\}\)..*/\1/
   9353 t more1
   9354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   9355 p
   9356 n
   9357 b repl
   9358 :more1
   9359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   9360 p
   9361 g
   9362 s/.\{148\}//
   9363 t nl
   9364 :delim
   9365 h
   9366 s/\(.\{148\}\)..*/\1/
   9367 t more2
   9368 s/["\\]/\\&/g; s/^/"/; s/$/"/
   9369 p
   9370 b
   9371 :more2
   9372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   9373 p
   9374 g
   9375 s/.\{148\}//
   9376 t delim
   9377 ' <conf$$subs.awk | sed '
   9378 /^[^""]/{
   9379   N
   9380   s/\n//
   9381 }
   9382 ' >>$CONFIG_STATUS || ac_write_fail=1
   9383 rm -f conf$$subs.awk
   9384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9385 _ACAWK
   9386 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   9387   for (key in S) S_is_set[key] = 1
   9388   FS = ""
   9389 
   9390 }
   9391 {
   9392   line = $ 0
   9393   nfields = split(line, field, "@")
   9394   substed = 0
   9395   len = length(field[1])
   9396   for (i = 2; i < nfields; i++) {
   9397     key = field[i]
   9398     keylen = length(key)
   9399     if (S_is_set[key]) {
   9400       value = S[key]
   9401       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   9402       len += length(value) + length(field[++i])
   9403       substed = 1
   9404     } else
   9405       len += 1 + keylen
   9406   }
   9407 
   9408   print line
   9409 }
   9410 
   9411 _ACAWK
   9412 _ACEOF
   9413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   9415   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   9416 else
   9417   cat
   9418 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   9419   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   9420 _ACEOF
   9421 
   9422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   9423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   9424 # trailing colons and then remove the whole line if VPATH becomes empty
   9425 # (actually we leave an empty line to preserve line numbers).
   9426 if test "x$srcdir" = x.; then
   9427   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   9428 h
   9429 s///
   9430 s/^/:/
   9431 s/[	 ]*$/:/
   9432 s/:\$(srcdir):/:/g
   9433 s/:\${srcdir}:/:/g
   9434 s/:@srcdir@:/:/g
   9435 s/^:*//
   9436 s/:*$//
   9437 x
   9438 s/\(=[	 ]*\).*/\1/
   9439 G
   9440 s/\n//
   9441 s/^[^=]*=[	 ]*$//
   9442 }'
   9443 fi
   9444 
   9445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9446 fi # test -n "$CONFIG_FILES"
   9447 
   9448 # Set up the scripts for CONFIG_HEADERS section.
   9449 # No need to generate them if there are no CONFIG_HEADERS.
   9450 # This happens for instance with `./config.status Makefile'.
   9451 if test -n "$CONFIG_HEADERS"; then
   9452 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   9453 BEGIN {
   9454 _ACEOF
   9455 
   9456 # Transform confdefs.h into an awk script `defines.awk', embedded as
   9457 # here-document in config.status, that substitutes the proper values into
   9458 # config.h.in to produce config.h.
   9459 
   9460 # Create a delimiter string that does not exist in confdefs.h, to ease
   9461 # handling of long lines.
   9462 ac_delim='%!_!# '
   9463 for ac_last_try in false false :; do
   9464   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   9465   if test -z "$ac_tt"; then
   9466     break
   9467   elif $ac_last_try; then
   9468     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   9469   else
   9470     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   9471   fi
   9472 done
   9473 
   9474 # For the awk script, D is an array of macro values keyed by name,
   9475 # likewise P contains macro parameters if any.  Preserve backslash
   9476 # newline sequences.
   9477 
   9478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   9479 sed -n '
   9480 s/.\{148\}/&'"$ac_delim"'/g
   9481 t rset
   9482 :rset
   9483 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   9484 t def
   9485 d
   9486 :def
   9487 s/\\$//
   9488 t bsnl
   9489 s/["\\]/\\&/g
   9490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   9491 D["\1"]=" \3"/p
   9492 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   9493 d
   9494 :bsnl
   9495 s/["\\]/\\&/g
   9496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   9497 D["\1"]=" \3\\\\\\n"\\/p
   9498 t cont
   9499 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   9500 t cont
   9501 d
   9502 :cont
   9503 n
   9504 s/.\{148\}/&'"$ac_delim"'/g
   9505 t clear
   9506 :clear
   9507 s/\\$//
   9508 t bsnlc
   9509 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   9510 d
   9511 :bsnlc
   9512 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   9513 b cont
   9514 ' <confdefs.h | sed '
   9515 s/'"$ac_delim"'/"\\\
   9516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   9517 
   9518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9519   for (key in D) D_is_set[key] = 1
   9520   FS = ""
   9521 }
   9522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   9523   line = \$ 0
   9524   split(line, arg, " ")
   9525   if (arg[1] == "#") {
   9526     defundef = arg[2]
   9527     mac1 = arg[3]
   9528   } else {
   9529     defundef = substr(arg[1], 2)
   9530     mac1 = arg[2]
   9531   }
   9532   split(mac1, mac2, "(") #)
   9533   macro = mac2[1]
   9534   prefix = substr(line, 1, index(line, defundef) - 1)
   9535   if (D_is_set[macro]) {
   9536     # Preserve the white space surrounding the "#".
   9537     print prefix "define", macro P[macro] D[macro]
   9538     next
   9539   } else {
   9540     # Replace #undef with comments.  This is necessary, for example,
   9541     # in the case of _POSIX_SOURCE, which is predefined and required
   9542     # on some systems where configure will not decide to define it.
   9543     if (defundef == "undef") {
   9544       print "/*", prefix defundef, macro, "*/"
   9545       next
   9546     }
   9547   }
   9548 }
   9549 { print }
   9550 _ACAWK
   9551 _ACEOF
   9552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9553   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   9554 fi # test -n "$CONFIG_HEADERS"
   9555 
   9556 
   9557 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   9558 shift
   9559 for ac_tag
   9560 do
   9561   case $ac_tag in
   9562   :[FHLC]) ac_mode=$ac_tag; continue;;
   9563   esac
   9564   case $ac_mode$ac_tag in
   9565   :[FHL]*:*);;
   9566   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   9567   :[FH]-) ac_tag=-:-;;
   9568   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   9569   esac
   9570   ac_save_IFS=$IFS
   9571   IFS=:
   9572   set x $ac_tag
   9573   IFS=$ac_save_IFS
   9574   shift
   9575   ac_file=$1
   9576   shift
   9577 
   9578   case $ac_mode in
   9579   :L) ac_source=$1;;
   9580   :[FH])
   9581     ac_file_inputs=
   9582     for ac_f
   9583     do
   9584       case $ac_f in
   9585       -) ac_f="$ac_tmp/stdin";;
   9586       *) # Look for the file first in the build tree, then in the source tree
   9587 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   9588 	 # because $ac_f cannot contain `:'.
   9589 	 test -f "$ac_f" ||
   9590 	   case $ac_f in
   9591 	   [\\/$]*) false;;
   9592 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   9593 	   esac ||
   9594 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   9595       esac
   9596       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   9597       as_fn_append ac_file_inputs " '$ac_f'"
   9598     done
   9599 
   9600     # Let's still pretend it is `configure' which instantiates (i.e., don't
   9601     # use $as_me), people would be surprised to read:
   9602     #    /* config.h.  Generated by config.status.  */
   9603     configure_input='Generated from '`
   9604 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   9605 	`' by configure.'
   9606     if test x"$ac_file" != x-; then
   9607       configure_input="$ac_file.  $configure_input"
   9608       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   9609 $as_echo "$as_me: creating $ac_file" >&6;}
   9610     fi
   9611     # Neutralize special characters interpreted by sed in replacement strings.
   9612     case $configure_input in #(
   9613     *\&* | *\|* | *\\* )
   9614        ac_sed_conf_input=`$as_echo "$configure_input" |
   9615        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   9616     *) ac_sed_conf_input=$configure_input;;
   9617     esac
   9618 
   9619     case $ac_tag in
   9620     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   9621       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   9622     esac
   9623     ;;
   9624   esac
   9625 
   9626   ac_dir=`$as_dirname -- "$ac_file" ||
   9627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   9628 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   9629 	 X"$ac_file" : 'X\(//\)$' \| \
   9630 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   9631 $as_echo X"$ac_file" |
   9632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   9633 	    s//\1/
   9634 	    q
   9635 	  }
   9636 	  /^X\(\/\/\)[^/].*/{
   9637 	    s//\1/
   9638 	    q
   9639 	  }
   9640 	  /^X\(\/\/\)$/{
   9641 	    s//\1/
   9642 	    q
   9643 	  }
   9644 	  /^X\(\/\).*/{
   9645 	    s//\1/
   9646 	    q
   9647 	  }
   9648 	  s/.*/./; q'`
   9649   as_dir="$ac_dir"; as_fn_mkdir_p
   9650   ac_builddir=.
   9651 
   9652 case "$ac_dir" in
   9653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   9654 *)
   9655   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   9656   # A ".." for each directory in $ac_dir_suffix.
   9657   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   9658   case $ac_top_builddir_sub in
   9659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   9660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   9661   esac ;;
   9662 esac
   9663 ac_abs_top_builddir=$ac_pwd
   9664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   9665 # for backward compatibility:
   9666 ac_top_builddir=$ac_top_build_prefix
   9667 
   9668 case $srcdir in
   9669   .)  # We are building in place.
   9670     ac_srcdir=.
   9671     ac_top_srcdir=$ac_top_builddir_sub
   9672     ac_abs_top_srcdir=$ac_pwd ;;
   9673   [\\/]* | ?:[\\/]* )  # Absolute name.
   9674     ac_srcdir=$srcdir$ac_dir_suffix;
   9675     ac_top_srcdir=$srcdir
   9676     ac_abs_top_srcdir=$srcdir ;;
   9677   *) # Relative name.
   9678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   9679     ac_top_srcdir=$ac_top_build_prefix$srcdir
   9680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   9681 esac
   9682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   9683 
   9684 
   9685   case $ac_mode in
   9686   :F)
   9687   #
   9688   # CONFIG_FILE
   9689   #
   9690 
   9691   case $INSTALL in
   9692   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   9693   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   9694   esac
   9695 _ACEOF
   9696 
   9697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9698 # If the template does not know about datarootdir, expand it.
   9699 # FIXME: This hack should be removed a few years after 2.60.
   9700 ac_datarootdir_hack=; ac_datarootdir_seen=
   9701 ac_sed_dataroot='
   9702 /datarootdir/ {
   9703   p
   9704   q
   9705 }
   9706 /@datadir@/p
   9707 /@docdir@/p
   9708 /@infodir@/p
   9709 /@localedir@/p
   9710 /@mandir@/p'
   9711 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   9712 *datarootdir*) ac_datarootdir_seen=yes;;
   9713 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   9714   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   9715 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   9716 _ACEOF
   9717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9718   ac_datarootdir_hack='
   9719   s&@datadir@&$datadir&g
   9720   s&@docdir@&$docdir&g
   9721   s&@infodir@&$infodir&g
   9722   s&@localedir@&$localedir&g
   9723   s&@mandir@&$mandir&g
   9724   s&\\\${datarootdir}&$datarootdir&g' ;;
   9725 esac
   9726 _ACEOF
   9727 
   9728 # Neutralize VPATH when `$srcdir' = `.'.
   9729 # Shell code in configure.ac might set extrasub.
   9730 # FIXME: do we really want to maintain this feature?
   9731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9732 ac_sed_extra="$ac_vpsub
   9733 $extrasub
   9734 _ACEOF
   9735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9736 :t
   9737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   9738 s|@configure_input@|$ac_sed_conf_input|;t t
   9739 s&@top_builddir@&$ac_top_builddir_sub&;t t
   9740 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   9741 s&@srcdir@&$ac_srcdir&;t t
   9742 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   9743 s&@top_srcdir@&$ac_top_srcdir&;t t
   9744 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   9745 s&@builddir@&$ac_builddir&;t t
   9746 s&@abs_builddir@&$ac_abs_builddir&;t t
   9747 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   9748 s&@INSTALL@&$ac_INSTALL&;t t
   9749 $ac_datarootdir_hack
   9750 "
   9751 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   9752   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9753 
   9754 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   9755   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   9756   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   9757       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   9758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   9759 which seems to be undefined.  Please make sure it is defined" >&5
   9760 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   9761 which seems to be undefined.  Please make sure it is defined" >&2;}
   9762 
   9763   rm -f "$ac_tmp/stdin"
   9764   case $ac_file in
   9765   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   9766   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   9767   esac \
   9768   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9769  ;;
   9770   :H)
   9771   #
   9772   # CONFIG_HEADER
   9773   #
   9774   if test x"$ac_file" != x-; then
   9775     {
   9776       $as_echo "/* $configure_input  */" \
   9777       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   9778     } >"$ac_tmp/config.h" \
   9779       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9780     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   9781       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   9782 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   9783     else
   9784       rm -f "$ac_file"
   9785       mv "$ac_tmp/config.h" "$ac_file" \
   9786 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9787     fi
   9788   else
   9789     $as_echo "/* $configure_input  */" \
   9790       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   9791       || as_fn_error $? "could not create -" "$LINENO" 5
   9792   fi
   9793  ;;
   9794 
   9795   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   9796 $as_echo "$as_me: executing $ac_file commands" >&6;}
   9797  ;;
   9798   esac
   9799 
   9800 
   9801   case $ac_file$ac_mode in
   9802     "default-1":C) if test -f .devel; then
   9803 	echo timestamp > stamp-h
   9804 	cat Makefile-devel-adds >> Makefile
   9805 	make depend
   9806 fi ;;
   9807 
   9808   esac
   9809 done # for ac_tag
   9810 
   9811 
   9812 as_fn_exit 0
   9813 _ACEOF
   9814 ac_clean_files=$ac_clean_files_save
   9815 
   9816 test $ac_write_fail = 0 ||
   9817   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   9818 
   9819 
   9820 # configure is writing to config.log, and then calls config.status.
   9821 # config.status does its own redirection, appending to config.log.
   9822 # Unfortunately, on DOS this fails, as config.log is still kept open
   9823 # by configure, so config.status won't be able to write to it; its
   9824 # output is simply discarded.  So we exec the FD to /dev/null,
   9825 # effectively closing config.log, so it can be properly (re)opened and
   9826 # appended to by config.status.  When coming back to configure, we
   9827 # need to make the FD available again.
   9828 if test "$no_create" != yes; then
   9829   ac_cs_success=:
   9830   ac_config_status_args=
   9831   test "$silent" = yes &&
   9832     ac_config_status_args="$ac_config_status_args --quiet"
   9833   exec 5>/dev/null
   9834   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   9835   exec 5>>config.log
   9836   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   9837   # would make configure fail if this is the last instruction.
   9838   $ac_cs_success || as_fn_exit 1
   9839 fi
   9840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   9841   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   9842 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   9843 fi
   9844 
   9845 exit 0
   9846