Home | History | Annotate | Download | only in tcpdump
      1 #! /bin/sh
      2 # From configure.in Revision: 1.188.2.8 .
      3 # Guess values for system-dependent variables and create Makefiles.
      4 # Generated by GNU Autoconf 2.61.
      5 #
      6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      8 # This configure script is free software; the Free Software Foundation
      9 # gives unlimited permission to copy, distribute and modify it.
     10 ## --------------------- ##
     11 ## M4sh Initialization.  ##
     12 ## --------------------- ##
     13 
     14 # Be more Bourne compatible
     15 DUALCASE=1; export DUALCASE # for MKS sh
     16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     17   emulate sh
     18   NULLCMD=:
     19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     20   # is contrary to our usage.  Disable this feature.
     21   alias -g '${1+"$@"}'='"$@"'
     22   setopt NO_GLOB_SUBST
     23 else
     24   case `(set -o) 2>/dev/null` in
     25   *posix*) set -o posix ;;
     26 esac
     27 
     28 fi
     29 
     30 
     31 
     32 
     33 # PATH needs CR
     34 # Avoid depending upon Character Ranges.
     35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     38 as_cr_digits='0123456789'
     39 as_cr_alnum=$as_cr_Letters$as_cr_digits
     40 
     41 # The user is always right.
     42 if test "${PATH_SEPARATOR+set}" != set; then
     43   echo "#! /bin/sh" >conf$$.sh
     44   echo  "exit 0"   >>conf$$.sh
     45   chmod +x conf$$.sh
     46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     47     PATH_SEPARATOR=';'
     48   else
     49     PATH_SEPARATOR=:
     50   fi
     51   rm -f conf$$.sh
     52 fi
     53 
     54 # Support unset when possible.
     55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     56   as_unset=unset
     57 else
     58   as_unset=false
     59 fi
     60 
     61 
     62 # IFS
     63 # We need space, tab and new line, in precisely that order.  Quoting is
     64 # there to prevent editors from complaining about space-tab.
     65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     66 # splitting by setting IFS to empty value.)
     67 as_nl='
     68 '
     69 IFS=" ""	$as_nl"
     70 
     71 # Find who we are.  Look in the path if we contain no directory separator.
     72 case $0 in
     73   *[\\/]* ) as_myself=$0 ;;
     74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     75 for as_dir in $PATH
     76 do
     77   IFS=$as_save_IFS
     78   test -z "$as_dir" && as_dir=.
     79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     80 done
     81 IFS=$as_save_IFS
     82 
     83      ;;
     84 esac
     85 # We did not find ourselves, most probably we were run as `sh COMMAND'
     86 # in which case we are not to be found in the path.
     87 if test "x$as_myself" = x; then
     88   as_myself=$0
     89 fi
     90 if test ! -f "$as_myself"; then
     91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     92   { (exit 1); exit 1; }
     93 fi
     94 
     95 # Work around bugs in pre-3.0 UWIN ksh.
     96 for as_var in ENV MAIL MAILPATH
     97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     98 done
     99 PS1='$ '
    100 PS2='> '
    101 PS4='+ '
    102 
    103 # NLS nuisances.
    104 for as_var in \
    105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    107   LC_TELEPHONE LC_TIME
    108 do
    109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    110     eval $as_var=C; export $as_var
    111   else
    112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    113   fi
    114 done
    115 
    116 # Required to use basename.
    117 if expr a : '\(a\)' >/dev/null 2>&1 &&
    118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    119   as_expr=expr
    120 else
    121   as_expr=false
    122 fi
    123 
    124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    125   as_basename=basename
    126 else
    127   as_basename=false
    128 fi
    129 
    130 
    131 # Name of the executable.
    132 as_me=`$as_basename -- "$0" ||
    133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    134 	 X"$0" : 'X\(//\)$' \| \
    135 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    136 echo X/"$0" |
    137     sed '/^.*\/\([^/][^/]*\)\/*$/{
    138 	    s//\1/
    139 	    q
    140 	  }
    141 	  /^X\/\(\/\/\)$/{
    142 	    s//\1/
    143 	    q
    144 	  }
    145 	  /^X\/\(\/\).*/{
    146 	    s//\1/
    147 	    q
    148 	  }
    149 	  s/.*/./; q'`
    150 
    151 # CDPATH.
    152 $as_unset CDPATH
    153 
    154 
    155 if test "x$CONFIG_SHELL" = x; then
    156   if (eval ":") 2>/dev/null; then
    157   as_have_required=yes
    158 else
    159   as_have_required=no
    160 fi
    161 
    162   if test $as_have_required = yes && 	 (eval ":
    163 (as_func_return () {
    164   (exit \$1)
    165 }
    166 as_func_success () {
    167   as_func_return 0
    168 }
    169 as_func_failure () {
    170   as_func_return 1
    171 }
    172 as_func_ret_success () {
    173   return 0
    174 }
    175 as_func_ret_failure () {
    176   return 1
    177 }
    178 
    179 exitcode=0
    180 if as_func_success; then
    181   :
    182 else
    183   exitcode=1
    184   echo as_func_success failed.
    185 fi
    186 
    187 if as_func_failure; then
    188   exitcode=1
    189   echo as_func_failure succeeded.
    190 fi
    191 
    192 if as_func_ret_success; then
    193   :
    194 else
    195   exitcode=1
    196   echo as_func_ret_success failed.
    197 fi
    198 
    199 if as_func_ret_failure; then
    200   exitcode=1
    201   echo as_func_ret_failure succeeded.
    202 fi
    203 
    204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    205   :
    206 else
    207   exitcode=1
    208   echo positional parameters were not saved.
    209 fi
    210 
    211 test \$exitcode = 0) || { (exit 1); exit 1; }
    212 
    213 (
    214   as_lineno_1=\$LINENO
    215   as_lineno_2=\$LINENO
    216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    218 ") 2> /dev/null; then
    219   :
    220 else
    221   as_candidate_shells=
    222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    224 do
    225   IFS=$as_save_IFS
    226   test -z "$as_dir" && as_dir=.
    227   case $as_dir in
    228 	 /*)
    229 	   for as_base in sh bash ksh sh5; do
    230 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    231 	   done;;
    232        esac
    233 done
    234 IFS=$as_save_IFS
    235 
    236 
    237       for as_shell in $as_candidate_shells $SHELL; do
    238 	 # Try only shells that exist, to save several forks.
    239 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    240 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    242   emulate sh
    243   NULLCMD=:
    244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    245   # is contrary to our usage.  Disable this feature.
    246   alias -g '${1+"$@"}'='"$@"'
    247   setopt NO_GLOB_SUBST
    248 else
    249   case `(set -o) 2>/dev/null` in
    250   *posix*) set -o posix ;;
    251 esac
    252 
    253 fi
    254 
    255 
    256 :
    257 _ASEOF
    258 }; then
    259   CONFIG_SHELL=$as_shell
    260 	       as_have_required=yes
    261 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    263   emulate sh
    264   NULLCMD=:
    265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    266   # is contrary to our usage.  Disable this feature.
    267   alias -g '${1+"$@"}'='"$@"'
    268   setopt NO_GLOB_SUBST
    269 else
    270   case `(set -o) 2>/dev/null` in
    271   *posix*) set -o posix ;;
    272 esac
    273 
    274 fi
    275 
    276 
    277 :
    278 (as_func_return () {
    279   (exit $1)
    280 }
    281 as_func_success () {
    282   as_func_return 0
    283 }
    284 as_func_failure () {
    285   as_func_return 1
    286 }
    287 as_func_ret_success () {
    288   return 0
    289 }
    290 as_func_ret_failure () {
    291   return 1
    292 }
    293 
    294 exitcode=0
    295 if as_func_success; then
    296   :
    297 else
    298   exitcode=1
    299   echo as_func_success failed.
    300 fi
    301 
    302 if as_func_failure; then
    303   exitcode=1
    304   echo as_func_failure succeeded.
    305 fi
    306 
    307 if as_func_ret_success; then
    308   :
    309 else
    310   exitcode=1
    311   echo as_func_ret_success failed.
    312 fi
    313 
    314 if as_func_ret_failure; then
    315   exitcode=1
    316   echo as_func_ret_failure succeeded.
    317 fi
    318 
    319 if ( set x; as_func_ret_success y && test x = "$1" ); then
    320   :
    321 else
    322   exitcode=1
    323   echo positional parameters were not saved.
    324 fi
    325 
    326 test $exitcode = 0) || { (exit 1); exit 1; }
    327 
    328 (
    329   as_lineno_1=$LINENO
    330   as_lineno_2=$LINENO
    331   test "x$as_lineno_1" != "x$as_lineno_2" &&
    332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    333 
    334 _ASEOF
    335 }; then
    336   break
    337 fi
    338 
    339 fi
    340 
    341       done
    342 
    343       if test "x$CONFIG_SHELL" != x; then
    344   for as_var in BASH_ENV ENV
    345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    346         done
    347         export CONFIG_SHELL
    348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    349 fi
    350 
    351 
    352     if test $as_have_required = no; then
    353   echo This script requires a shell more modern than all the
    354       echo shells that I found on your system.  Please install a
    355       echo modern shell, or manually run the script under such a
    356       echo shell if you do have one.
    357       { (exit 1); exit 1; }
    358 fi
    359 
    360 
    361 fi
    362 
    363 fi
    364 
    365 
    366 
    367 (eval "as_func_return () {
    368   (exit \$1)
    369 }
    370 as_func_success () {
    371   as_func_return 0
    372 }
    373 as_func_failure () {
    374   as_func_return 1
    375 }
    376 as_func_ret_success () {
    377   return 0
    378 }
    379 as_func_ret_failure () {
    380   return 1
    381 }
    382 
    383 exitcode=0
    384 if as_func_success; then
    385   :
    386 else
    387   exitcode=1
    388   echo as_func_success failed.
    389 fi
    390 
    391 if as_func_failure; then
    392   exitcode=1
    393   echo as_func_failure succeeded.
    394 fi
    395 
    396 if as_func_ret_success; then
    397   :
    398 else
    399   exitcode=1
    400   echo as_func_ret_success failed.
    401 fi
    402 
    403 if as_func_ret_failure; then
    404   exitcode=1
    405   echo as_func_ret_failure succeeded.
    406 fi
    407 
    408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    409   :
    410 else
    411   exitcode=1
    412   echo positional parameters were not saved.
    413 fi
    414 
    415 test \$exitcode = 0") || {
    416   echo No shell found that supports shell functions.
    417   echo Please tell autoconf@gnu.org about your system,
    418   echo including any error possibly output before this
    419   echo message
    420 }
    421 
    422 
    423 
    424   as_lineno_1=$LINENO
    425   as_lineno_2=$LINENO
    426   test "x$as_lineno_1" != "x$as_lineno_2" &&
    427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    428 
    429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    430   # uniformly replaced by the line number.  The first 'sed' inserts a
    431   # line-number line after each line using $LINENO; the second 'sed'
    432   # does the real work.  The second script uses 'N' to pair each
    433   # line-number line with the line containing $LINENO, and appends
    434   # trailing '-' during substitution so that $LINENO is not a special
    435   # case at line end.
    436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    438   # E. McMahon (1931-1989) for sed's syntax.  :-)
    439   sed -n '
    440     p
    441     /[$]LINENO/=
    442   ' <$as_myself |
    443     sed '
    444       s/[$]LINENO.*/&-/
    445       t lineno
    446       b
    447       :lineno
    448       N
    449       :loop
    450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    451       t loop
    452       s/-\n.*//
    453     ' >$as_me.lineno &&
    454   chmod +x "$as_me.lineno" ||
    455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    456    { (exit 1); exit 1; }; }
    457 
    458   # Don't try to exec as it changes $[0], causing all sort of problems
    459   # (the dirname of $[0] is not the place where we might find the
    460   # original and so on.  Autoconf is especially sensitive to this).
    461   . "./$as_me.lineno"
    462   # Exit status is that of the last command.
    463   exit
    464 }
    465 
    466 
    467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    468   as_dirname=dirname
    469 else
    470   as_dirname=false
    471 fi
    472 
    473 ECHO_C= ECHO_N= ECHO_T=
    474 case `echo -n x` in
    475 -n*)
    476   case `echo 'x\c'` in
    477   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    478   *)   ECHO_C='\c';;
    479   esac;;
    480 *)
    481   ECHO_N='-n';;
    482 esac
    483 
    484 if expr a : '\(a\)' >/dev/null 2>&1 &&
    485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    486   as_expr=expr
    487 else
    488   as_expr=false
    489 fi
    490 
    491 rm -f conf$$ conf$$.exe conf$$.file
    492 if test -d conf$$.dir; then
    493   rm -f conf$$.dir/conf$$.file
    494 else
    495   rm -f conf$$.dir
    496   mkdir conf$$.dir
    497 fi
    498 echo >conf$$.file
    499 if ln -s conf$$.file conf$$ 2>/dev/null; then
    500   as_ln_s='ln -s'
    501   # ... but there are two gotchas:
    502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    504   # In both cases, we have to default to `cp -p'.
    505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    506     as_ln_s='cp -p'
    507 elif ln conf$$.file conf$$ 2>/dev/null; then
    508   as_ln_s=ln
    509 else
    510   as_ln_s='cp -p'
    511 fi
    512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    513 rmdir conf$$.dir 2>/dev/null
    514 
    515 if mkdir -p . 2>/dev/null; then
    516   as_mkdir_p=:
    517 else
    518   test -d ./-p && rmdir ./-p
    519   as_mkdir_p=false
    520 fi
    521 
    522 if test -x / >/dev/null 2>&1; then
    523   as_test_x='test -x'
    524 else
    525   if ls -dL / >/dev/null 2>&1; then
    526     as_ls_L_option=L
    527   else
    528     as_ls_L_option=
    529   fi
    530   as_test_x='
    531     eval sh -c '\''
    532       if test -d "$1"; then
    533         test -d "$1/.";
    534       else
    535 	case $1 in
    536         -*)set "./$1";;
    537 	esac;
    538 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    539 	???[sx]*):;;*)false;;esac;fi
    540     '\'' sh
    541   '
    542 fi
    543 as_executable_p=$as_test_x
    544 
    545 # Sed expression to map a string onto a valid CPP name.
    546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    547 
    548 # Sed expression to map a string onto a valid variable name.
    549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    550 
    551 
    552 
    553 exec 7<&0 </dev/null 6>&1
    554 
    555 # Name of the host.
    556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    557 # so uname gets run too.
    558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    559 
    560 #
    561 # Initializations.
    562 #
    563 ac_default_prefix=/usr/local
    564 ac_clean_files=
    565 ac_config_libobj_dir=.
    566 LIBOBJS=
    567 cross_compiling=no
    568 subdirs=
    569 MFLAGS=
    570 MAKEFLAGS=
    571 SHELL=${CONFIG_SHELL-/bin/sh}
    572 
    573 # Identity of this package.
    574 PACKAGE_NAME=
    575 PACKAGE_TARNAME=
    576 PACKAGE_VERSION=
    577 PACKAGE_STRING=
    578 PACKAGE_BUGREPORT=
    579 
    580 ac_unique_file="tcpdump.c"
    581 # Factoring default headers for most tests.
    582 ac_includes_default="\
    583 #include <stdio.h>
    584 #ifdef HAVE_SYS_TYPES_H
    585 # include <sys/types.h>
    586 #endif
    587 #ifdef HAVE_SYS_STAT_H
    588 # include <sys/stat.h>
    589 #endif
    590 #ifdef STDC_HEADERS
    591 # include <stdlib.h>
    592 # include <stddef.h>
    593 #else
    594 # ifdef HAVE_STDLIB_H
    595 #  include <stdlib.h>
    596 # endif
    597 #endif
    598 #ifdef HAVE_STRING_H
    599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    600 #  include <memory.h>
    601 # endif
    602 # include <string.h>
    603 #endif
    604 #ifdef HAVE_STRINGS_H
    605 # include <strings.h>
    606 #endif
    607 #ifdef HAVE_INTTYPES_H
    608 # include <inttypes.h>
    609 #endif
    610 #ifdef HAVE_STDINT_H
    611 # include <stdint.h>
    612 #endif
    613 #ifdef HAVE_UNISTD_H
    614 # include <unistd.h>
    615 #endif"
    616 
    617 ac_subst_vars='SHELL
    618 PATH_SEPARATOR
    619 PACKAGE_NAME
    620 PACKAGE_TARNAME
    621 PACKAGE_VERSION
    622 PACKAGE_STRING
    623 PACKAGE_BUGREPORT
    624 exec_prefix
    625 prefix
    626 program_transform_name
    627 bindir
    628 sbindir
    629 libexecdir
    630 datarootdir
    631 datadir
    632 sysconfdir
    633 sharedstatedir
    634 localstatedir
    635 includedir
    636 oldincludedir
    637 docdir
    638 infodir
    639 htmldir
    640 dvidir
    641 pdfdir
    642 psdir
    643 libdir
    644 localedir
    645 mandir
    646 DEFS
    647 ECHO_C
    648 ECHO_N
    649 ECHO_T
    650 LIBS
    651 build_alias
    652 host_alias
    653 target_alias
    654 build
    655 build_cpu
    656 build_vendor
    657 build_os
    658 host
    659 host_cpu
    660 host_vendor
    661 host_os
    662 SHLICC2
    663 CC
    664 CFLAGS
    665 LDFLAGS
    666 CPPFLAGS
    667 ac_ct_CC
    668 EXEEXT
    669 OBJEXT
    670 CPP
    671 GREP
    672 EGREP
    673 LIBOBJS
    674 V_CCOPT
    675 V_DEFS
    676 V_GROUP
    677 V_INCLS
    678 V_PCAPDEP
    679 LOCALSRC
    680 INSTALL_PROGRAM
    681 INSTALL_SCRIPT
    682 INSTALL_DATA
    683 LTLIBOBJS'
    684 ac_subst_files=''
    685       ac_precious_vars='build_alias
    686 host_alias
    687 target_alias
    688 CC
    689 CFLAGS
    690 LDFLAGS
    691 LIBS
    692 CPPFLAGS
    693 CPP'
    694 
    695 
    696 # Initialize some variables set by options.
    697 ac_init_help=
    698 ac_init_version=false
    699 # The variables have the same names as the options, with
    700 # dashes changed to underlines.
    701 cache_file=/dev/null
    702 exec_prefix=NONE
    703 no_create=
    704 no_recursion=
    705 prefix=NONE
    706 program_prefix=NONE
    707 program_suffix=NONE
    708 program_transform_name=s,x,x,
    709 silent=
    710 site=
    711 srcdir=
    712 verbose=
    713 x_includes=NONE
    714 x_libraries=NONE
    715 
    716 # Installation directory options.
    717 # These are left unexpanded so users can "make install exec_prefix=/foo"
    718 # and all the variables that are supposed to be based on exec_prefix
    719 # by default will actually change.
    720 # Use braces instead of parens because sh, perl, etc. also accept them.
    721 # (The list follows the same order as the GNU Coding Standards.)
    722 bindir='${exec_prefix}/bin'
    723 sbindir='${exec_prefix}/sbin'
    724 libexecdir='${exec_prefix}/libexec'
    725 datarootdir='${prefix}/share'
    726 datadir='${datarootdir}'
    727 sysconfdir='${prefix}/etc'
    728 sharedstatedir='${prefix}/com'
    729 localstatedir='${prefix}/var'
    730 includedir='${prefix}/include'
    731 oldincludedir='/usr/include'
    732 docdir='${datarootdir}/doc/${PACKAGE}'
    733 infodir='${datarootdir}/info'
    734 htmldir='${docdir}'
    735 dvidir='${docdir}'
    736 pdfdir='${docdir}'
    737 psdir='${docdir}'
    738 libdir='${exec_prefix}/lib'
    739 localedir='${datarootdir}/locale'
    740 mandir='${datarootdir}/man'
    741 
    742 ac_prev=
    743 ac_dashdash=
    744 for ac_option
    745 do
    746   # If the previous option needs an argument, assign it.
    747   if test -n "$ac_prev"; then
    748     eval $ac_prev=\$ac_option
    749     ac_prev=
    750     continue
    751   fi
    752 
    753   case $ac_option in
    754   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    755   *)	ac_optarg=yes ;;
    756   esac
    757 
    758   # Accept the important Cygnus configure options, so we can diagnose typos.
    759 
    760   case $ac_dashdash$ac_option in
    761   --)
    762     ac_dashdash=yes ;;
    763 
    764   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    765     ac_prev=bindir ;;
    766   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    767     bindir=$ac_optarg ;;
    768 
    769   -build | --build | --buil | --bui | --bu)
    770     ac_prev=build_alias ;;
    771   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    772     build_alias=$ac_optarg ;;
    773 
    774   -cache-file | --cache-file | --cache-fil | --cache-fi \
    775   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    776     ac_prev=cache_file ;;
    777   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    778   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    779     cache_file=$ac_optarg ;;
    780 
    781   --config-cache | -C)
    782     cache_file=config.cache ;;
    783 
    784   -datadir | --datadir | --datadi | --datad)
    785     ac_prev=datadir ;;
    786   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    787     datadir=$ac_optarg ;;
    788 
    789   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    790   | --dataroo | --dataro | --datar)
    791     ac_prev=datarootdir ;;
    792   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    793   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    794     datarootdir=$ac_optarg ;;
    795 
    796   -disable-* | --disable-*)
    797     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    798     # Reject names that are not valid shell variable names.
    799     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    800       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    801    { (exit 1); exit 1; }; }
    802     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    803     eval enable_$ac_feature=no ;;
    804 
    805   -docdir | --docdir | --docdi | --doc | --do)
    806     ac_prev=docdir ;;
    807   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    808     docdir=$ac_optarg ;;
    809 
    810   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    811     ac_prev=dvidir ;;
    812   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    813     dvidir=$ac_optarg ;;
    814 
    815   -enable-* | --enable-*)
    816     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    817     # Reject names that are not valid shell variable names.
    818     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    819       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    820    { (exit 1); exit 1; }; }
    821     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    822     eval enable_$ac_feature=\$ac_optarg ;;
    823 
    824   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    825   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    826   | --exec | --exe | --ex)
    827     ac_prev=exec_prefix ;;
    828   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    829   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    830   | --exec=* | --exe=* | --ex=*)
    831     exec_prefix=$ac_optarg ;;
    832 
    833   -gas | --gas | --ga | --g)
    834     # Obsolete; use --with-gas.
    835     with_gas=yes ;;
    836 
    837   -help | --help | --hel | --he | -h)
    838     ac_init_help=long ;;
    839   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    840     ac_init_help=recursive ;;
    841   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    842     ac_init_help=short ;;
    843 
    844   -host | --host | --hos | --ho)
    845     ac_prev=host_alias ;;
    846   -host=* | --host=* | --hos=* | --ho=*)
    847     host_alias=$ac_optarg ;;
    848 
    849   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    850     ac_prev=htmldir ;;
    851   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    852   | --ht=*)
    853     htmldir=$ac_optarg ;;
    854 
    855   -includedir | --includedir | --includedi | --included | --include \
    856   | --includ | --inclu | --incl | --inc)
    857     ac_prev=includedir ;;
    858   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    859   | --includ=* | --inclu=* | --incl=* | --inc=*)
    860     includedir=$ac_optarg ;;
    861 
    862   -infodir | --infodir | --infodi | --infod | --info | --inf)
    863     ac_prev=infodir ;;
    864   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    865     infodir=$ac_optarg ;;
    866 
    867   -libdir | --libdir | --libdi | --libd)
    868     ac_prev=libdir ;;
    869   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    870     libdir=$ac_optarg ;;
    871 
    872   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    873   | --libexe | --libex | --libe)
    874     ac_prev=libexecdir ;;
    875   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    876   | --libexe=* | --libex=* | --libe=*)
    877     libexecdir=$ac_optarg ;;
    878 
    879   -localedir | --localedir | --localedi | --localed | --locale)
    880     ac_prev=localedir ;;
    881   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    882     localedir=$ac_optarg ;;
    883 
    884   -localstatedir | --localstatedir | --localstatedi | --localstated \
    885   | --localstate | --localstat | --localsta | --localst | --locals)
    886     ac_prev=localstatedir ;;
    887   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    888   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    889     localstatedir=$ac_optarg ;;
    890 
    891   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    892     ac_prev=mandir ;;
    893   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    894     mandir=$ac_optarg ;;
    895 
    896   -nfp | --nfp | --nf)
    897     # Obsolete; use --without-fp.
    898     with_fp=no ;;
    899 
    900   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    901   | --no-cr | --no-c | -n)
    902     no_create=yes ;;
    903 
    904   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    905   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    906     no_recursion=yes ;;
    907 
    908   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    909   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    910   | --oldin | --oldi | --old | --ol | --o)
    911     ac_prev=oldincludedir ;;
    912   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    913   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    914   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    915     oldincludedir=$ac_optarg ;;
    916 
    917   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    918     ac_prev=prefix ;;
    919   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    920     prefix=$ac_optarg ;;
    921 
    922   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    923   | --program-pre | --program-pr | --program-p)
    924     ac_prev=program_prefix ;;
    925   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    926   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    927     program_prefix=$ac_optarg ;;
    928 
    929   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    930   | --program-suf | --program-su | --program-s)
    931     ac_prev=program_suffix ;;
    932   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    933   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    934     program_suffix=$ac_optarg ;;
    935 
    936   -program-transform-name | --program-transform-name \
    937   | --program-transform-nam | --program-transform-na \
    938   | --program-transform-n | --program-transform- \
    939   | --program-transform | --program-transfor \
    940   | --program-transfo | --program-transf \
    941   | --program-trans | --program-tran \
    942   | --progr-tra | --program-tr | --program-t)
    943     ac_prev=program_transform_name ;;
    944   -program-transform-name=* | --program-transform-name=* \
    945   | --program-transform-nam=* | --program-transform-na=* \
    946   | --program-transform-n=* | --program-transform-=* \
    947   | --program-transform=* | --program-transfor=* \
    948   | --program-transfo=* | --program-transf=* \
    949   | --program-trans=* | --program-tran=* \
    950   | --progr-tra=* | --program-tr=* | --program-t=*)
    951     program_transform_name=$ac_optarg ;;
    952 
    953   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    954     ac_prev=pdfdir ;;
    955   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    956     pdfdir=$ac_optarg ;;
    957 
    958   -psdir | --psdir | --psdi | --psd | --ps)
    959     ac_prev=psdir ;;
    960   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    961     psdir=$ac_optarg ;;
    962 
    963   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    964   | -silent | --silent | --silen | --sile | --sil)
    965     silent=yes ;;
    966 
    967   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    968     ac_prev=sbindir ;;
    969   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    970   | --sbi=* | --sb=*)
    971     sbindir=$ac_optarg ;;
    972 
    973   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    974   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    975   | --sharedst | --shareds | --shared | --share | --shar \
    976   | --sha | --sh)
    977     ac_prev=sharedstatedir ;;
    978   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    979   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    980   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    981   | --sha=* | --sh=*)
    982     sharedstatedir=$ac_optarg ;;
    983 
    984   -site | --site | --sit)
    985     ac_prev=site ;;
    986   -site=* | --site=* | --sit=*)
    987     site=$ac_optarg ;;
    988 
    989   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    990     ac_prev=srcdir ;;
    991   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    992     srcdir=$ac_optarg ;;
    993 
    994   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    995   | --syscon | --sysco | --sysc | --sys | --sy)
    996     ac_prev=sysconfdir ;;
    997   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    998   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    999     sysconfdir=$ac_optarg ;;
   1000 
   1001   -target | --target | --targe | --targ | --tar | --ta | --t)
   1002     ac_prev=target_alias ;;
   1003   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1004     target_alias=$ac_optarg ;;
   1005 
   1006   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1007     verbose=yes ;;
   1008 
   1009   -version | --version | --versio | --versi | --vers | -V)
   1010     ac_init_version=: ;;
   1011 
   1012   -with-* | --with-*)
   1013     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1014     # Reject names that are not valid shell variable names.
   1015     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1016       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1017    { (exit 1); exit 1; }; }
   1018     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1019     eval with_$ac_package=\$ac_optarg ;;
   1020 
   1021   -without-* | --without-*)
   1022     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1023     # Reject names that are not valid shell variable names.
   1024     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1025       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1026    { (exit 1); exit 1; }; }
   1027     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1028     eval with_$ac_package=no ;;
   1029 
   1030   --x)
   1031     # Obsolete; use --with-x.
   1032     with_x=yes ;;
   1033 
   1034   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1035   | --x-incl | --x-inc | --x-in | --x-i)
   1036     ac_prev=x_includes ;;
   1037   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1038   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1039     x_includes=$ac_optarg ;;
   1040 
   1041   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1042   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1043     ac_prev=x_libraries ;;
   1044   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1045   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1046     x_libraries=$ac_optarg ;;
   1047 
   1048   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1049 Try \`$0 --help' for more information." >&2
   1050    { (exit 1); exit 1; }; }
   1051     ;;
   1052 
   1053   *=*)
   1054     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1055     # Reject names that are not valid shell variable names.
   1056     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1057       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1058    { (exit 1); exit 1; }; }
   1059     eval $ac_envvar=\$ac_optarg
   1060     export $ac_envvar ;;
   1061 
   1062   *)
   1063     # FIXME: should be removed in autoconf 3.0.
   1064     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1065     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1066       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1067     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1068     ;;
   1069 
   1070   esac
   1071 done
   1072 
   1073 if test -n "$ac_prev"; then
   1074   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1075   { echo "$as_me: error: missing argument to $ac_option" >&2
   1076    { (exit 1); exit 1; }; }
   1077 fi
   1078 
   1079 # Be sure to have absolute directory names.
   1080 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1081 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1082 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1083 		libdir localedir mandir
   1084 do
   1085   eval ac_val=\$$ac_var
   1086   case $ac_val in
   1087     [\\/$]* | ?:[\\/]* )  continue;;
   1088     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1089   esac
   1090   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1091    { (exit 1); exit 1; }; }
   1092 done
   1093 
   1094 # There might be people who depend on the old broken behavior: `$host'
   1095 # used to hold the argument of --host etc.
   1096 # FIXME: To remove some day.
   1097 build=$build_alias
   1098 host=$host_alias
   1099 target=$target_alias
   1100 
   1101 # FIXME: To remove some day.
   1102 if test "x$host_alias" != x; then
   1103   if test "x$build_alias" = x; then
   1104     cross_compiling=maybe
   1105     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1106     If a cross compiler is detected then cross compile mode will be used." >&2
   1107   elif test "x$build_alias" != "x$host_alias"; then
   1108     cross_compiling=yes
   1109   fi
   1110 fi
   1111 
   1112 ac_tool_prefix=
   1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1114 
   1115 test "$silent" = yes && exec 6>/dev/null
   1116 
   1117 
   1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1119 ac_ls_di=`ls -di .` &&
   1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1121   { echo "$as_me: error: Working directory cannot be determined" >&2
   1122    { (exit 1); exit 1; }; }
   1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1124   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1125    { (exit 1); exit 1; }; }
   1126 
   1127 
   1128 # Find the source files, if location was not specified.
   1129 if test -z "$srcdir"; then
   1130   ac_srcdir_defaulted=yes
   1131   # Try the directory containing this script, then the parent directory.
   1132   ac_confdir=`$as_dirname -- "$0" ||
   1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1134 	 X"$0" : 'X\(//\)[^/]' \| \
   1135 	 X"$0" : 'X\(//\)$' \| \
   1136 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1137 echo X"$0" |
   1138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1139 	    s//\1/
   1140 	    q
   1141 	  }
   1142 	  /^X\(\/\/\)[^/].*/{
   1143 	    s//\1/
   1144 	    q
   1145 	  }
   1146 	  /^X\(\/\/\)$/{
   1147 	    s//\1/
   1148 	    q
   1149 	  }
   1150 	  /^X\(\/\).*/{
   1151 	    s//\1/
   1152 	    q
   1153 	  }
   1154 	  s/.*/./; q'`
   1155   srcdir=$ac_confdir
   1156   if test ! -r "$srcdir/$ac_unique_file"; then
   1157     srcdir=..
   1158   fi
   1159 else
   1160   ac_srcdir_defaulted=no
   1161 fi
   1162 if test ! -r "$srcdir/$ac_unique_file"; then
   1163   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1164   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1165    { (exit 1); exit 1; }; }
   1166 fi
   1167 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1168 ac_abs_confdir=`(
   1169 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1170    { (exit 1); exit 1; }; }
   1171 	pwd)`
   1172 # When building in place, set srcdir=.
   1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1174   srcdir=.
   1175 fi
   1176 # Remove unnecessary trailing slashes from srcdir.
   1177 # Double slashes in file names in object file debugging info
   1178 # mess up M-x gdb in Emacs.
   1179 case $srcdir in
   1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1181 esac
   1182 for ac_var in $ac_precious_vars; do
   1183   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1184   eval ac_env_${ac_var}_value=\$${ac_var}
   1185   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1186   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1187 done
   1188 
   1189 #
   1190 # Report the --help message.
   1191 #
   1192 if test "$ac_init_help" = "long"; then
   1193   # Omit some internal or obsolete options to make the list less imposing.
   1194   # This message is too long to be a string in the A/UX 3.1 sh.
   1195   cat <<_ACEOF
   1196 \`configure' configures this package to adapt to many kinds of systems.
   1197 
   1198 Usage: $0 [OPTION]... [VAR=VALUE]...
   1199 
   1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1201 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1202 
   1203 Defaults for the options are specified in brackets.
   1204 
   1205 Configuration:
   1206   -h, --help              display this help and exit
   1207       --help=short        display options specific to this package
   1208       --help=recursive    display the short help of all the included packages
   1209   -V, --version           display version information and exit
   1210   -q, --quiet, --silent   do not print \`checking...' messages
   1211       --cache-file=FILE   cache test results in FILE [disabled]
   1212   -C, --config-cache      alias for \`--cache-file=config.cache'
   1213   -n, --no-create         do not create output files
   1214       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1215 
   1216 Installation directories:
   1217   --prefix=PREFIX         install architecture-independent files in PREFIX
   1218 			  [$ac_default_prefix]
   1219   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1220 			  [PREFIX]
   1221 
   1222 By default, \`make install' will install all the files in
   1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1225 for instance \`--prefix=\$HOME'.
   1226 
   1227 For better control, use the options below.
   1228 
   1229 Fine tuning of the installation directories:
   1230   --bindir=DIR           user executables [EPREFIX/bin]
   1231   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1232   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1233   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1234   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1235   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1236   --libdir=DIR           object code libraries [EPREFIX/lib]
   1237   --includedir=DIR       C header files [PREFIX/include]
   1238   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1239   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1240   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1241   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1242   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1243   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1244   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
   1245   --htmldir=DIR          html documentation [DOCDIR]
   1246   --dvidir=DIR           dvi documentation [DOCDIR]
   1247   --pdfdir=DIR           pdf documentation [DOCDIR]
   1248   --psdir=DIR            ps documentation [DOCDIR]
   1249 _ACEOF
   1250 
   1251   cat <<\_ACEOF
   1252 
   1253 System types:
   1254   --build=BUILD     configure for building on BUILD [guessed]
   1255   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1256 _ACEOF
   1257 fi
   1258 
   1259 if test -n "$ac_init_help"; then
   1260 
   1261   cat <<\_ACEOF
   1262 
   1263 Optional Features:
   1264   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1265   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1266   --enable-smb            enable possibly-buggy SMB printer default=yes
   1267   --disable-smb           disable possibly-buggy SMB printer
   1268   --enable-ipv6           enable ipv6 (with ipv4) support
   1269   --disable-ipv6          disable ipv6 support
   1270 
   1271 Optional Packages:
   1272   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1273   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1274   --without-gcc           don't use gcc
   1275   --with-user=USERNAME    drop privileges by default to USERNAME
   1276   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
   1277   --without-crypto        disable crypto support
   1278 
   1279 Some influential environment variables:
   1280   CC          C compiler command
   1281   CFLAGS      C compiler flags
   1282   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1283               nonstandard directory <lib dir>
   1284   LIBS        libraries to pass to the linker, e.g. -l<library>
   1285   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1286               you have headers in a nonstandard directory <include dir>
   1287   CPP         C preprocessor
   1288 
   1289 Use these variables to override the choices made by `configure' or to help
   1290 it to find libraries and programs with nonstandard names/locations.
   1291 
   1292 _ACEOF
   1293 ac_status=$?
   1294 fi
   1295 
   1296 if test "$ac_init_help" = "recursive"; then
   1297   # If there are subdirs, report their specific --help.
   1298   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1299     test -d "$ac_dir" || continue
   1300     ac_builddir=.
   1301 
   1302 case "$ac_dir" in
   1303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1304 *)
   1305   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1306   # A ".." for each directory in $ac_dir_suffix.
   1307   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1308   case $ac_top_builddir_sub in
   1309   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1310   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1311   esac ;;
   1312 esac
   1313 ac_abs_top_builddir=$ac_pwd
   1314 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1315 # for backward compatibility:
   1316 ac_top_builddir=$ac_top_build_prefix
   1317 
   1318 case $srcdir in
   1319   .)  # We are building in place.
   1320     ac_srcdir=.
   1321     ac_top_srcdir=$ac_top_builddir_sub
   1322     ac_abs_top_srcdir=$ac_pwd ;;
   1323   [\\/]* | ?:[\\/]* )  # Absolute name.
   1324     ac_srcdir=$srcdir$ac_dir_suffix;
   1325     ac_top_srcdir=$srcdir
   1326     ac_abs_top_srcdir=$srcdir ;;
   1327   *) # Relative name.
   1328     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1329     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1330     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1331 esac
   1332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1333 
   1334     cd "$ac_dir" || { ac_status=$?; continue; }
   1335     # Check for guested configure.
   1336     if test -f "$ac_srcdir/configure.gnu"; then
   1337       echo &&
   1338       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1339     elif test -f "$ac_srcdir/configure"; then
   1340       echo &&
   1341       $SHELL "$ac_srcdir/configure" --help=recursive
   1342     else
   1343       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1344     fi || ac_status=$?
   1345     cd "$ac_pwd" || { ac_status=$?; break; }
   1346   done
   1347 fi
   1348 
   1349 test -n "$ac_init_help" && exit $ac_status
   1350 if $ac_init_version; then
   1351   cat <<\_ACEOF
   1352 configure
   1353 generated by GNU Autoconf 2.61
   1354 
   1355 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1356 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1357 This configure script is free software; the Free Software Foundation
   1358 gives unlimited permission to copy, distribute and modify it.
   1359 _ACEOF
   1360   exit
   1361 fi
   1362 cat >config.log <<_ACEOF
   1363 This file contains any messages produced by compilers while
   1364 running configure, to aid debugging if configure makes a mistake.
   1365 
   1366 It was created by $as_me, which was
   1367 generated by GNU Autoconf 2.61.  Invocation command line was
   1368 
   1369   $ $0 $@
   1370 
   1371 _ACEOF
   1372 exec 5>>config.log
   1373 {
   1374 cat <<_ASUNAME
   1375 ## --------- ##
   1376 ## Platform. ##
   1377 ## --------- ##
   1378 
   1379 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1380 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1381 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1382 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1383 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1384 
   1385 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1386 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1387 
   1388 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1389 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1390 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1391 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1392 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1393 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1394 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1395 
   1396 _ASUNAME
   1397 
   1398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1399 for as_dir in $PATH
   1400 do
   1401   IFS=$as_save_IFS
   1402   test -z "$as_dir" && as_dir=.
   1403   echo "PATH: $as_dir"
   1404 done
   1405 IFS=$as_save_IFS
   1406 
   1407 } >&5
   1408 
   1409 cat >&5 <<_ACEOF
   1410 
   1411 
   1412 ## ----------- ##
   1413 ## Core tests. ##
   1414 ## ----------- ##
   1415 
   1416 _ACEOF
   1417 
   1418 
   1419 # Keep a trace of the command line.
   1420 # Strip out --no-create and --no-recursion so they do not pile up.
   1421 # Strip out --silent because we don't want to record it for future runs.
   1422 # Also quote any args containing shell meta-characters.
   1423 # Make two passes to allow for proper duplicate-argument suppression.
   1424 ac_configure_args=
   1425 ac_configure_args0=
   1426 ac_configure_args1=
   1427 ac_must_keep_next=false
   1428 for ac_pass in 1 2
   1429 do
   1430   for ac_arg
   1431   do
   1432     case $ac_arg in
   1433     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1434     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1435     | -silent | --silent | --silen | --sile | --sil)
   1436       continue ;;
   1437     *\'*)
   1438       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1439     esac
   1440     case $ac_pass in
   1441     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1442     2)
   1443       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1444       if test $ac_must_keep_next = true; then
   1445 	ac_must_keep_next=false # Got value, back to normal.
   1446       else
   1447 	case $ac_arg in
   1448 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1449 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1450 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1451 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1452 	    case "$ac_configure_args0 " in
   1453 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1454 	    esac
   1455 	    ;;
   1456 	  -* ) ac_must_keep_next=true ;;
   1457 	esac
   1458       fi
   1459       ac_configure_args="$ac_configure_args '$ac_arg'"
   1460       ;;
   1461     esac
   1462   done
   1463 done
   1464 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1465 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1466 
   1467 # When interrupted or exit'd, cleanup temporary files, and complete
   1468 # config.log.  We remove comments because anyway the quotes in there
   1469 # would cause problems or look ugly.
   1470 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1471 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1472 trap 'exit_status=$?
   1473   # Save into config.log some information that might help in debugging.
   1474   {
   1475     echo
   1476 
   1477     cat <<\_ASBOX
   1478 ## ---------------- ##
   1479 ## Cache variables. ##
   1480 ## ---------------- ##
   1481 _ASBOX
   1482     echo
   1483     # The following way of writing the cache mishandles newlines in values,
   1484 (
   1485   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1486     eval ac_val=\$$ac_var
   1487     case $ac_val in #(
   1488     *${as_nl}*)
   1489       case $ac_var in #(
   1490       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1491 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1492       esac
   1493       case $ac_var in #(
   1494       _ | IFS | as_nl) ;; #(
   1495       *) $as_unset $ac_var ;;
   1496       esac ;;
   1497     esac
   1498   done
   1499   (set) 2>&1 |
   1500     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1501     *${as_nl}ac_space=\ *)
   1502       sed -n \
   1503 	"s/'\''/'\''\\\\'\'''\''/g;
   1504 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1505       ;; #(
   1506     *)
   1507       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1508       ;;
   1509     esac |
   1510     sort
   1511 )
   1512     echo
   1513 
   1514     cat <<\_ASBOX
   1515 ## ----------------- ##
   1516 ## Output variables. ##
   1517 ## ----------------- ##
   1518 _ASBOX
   1519     echo
   1520     for ac_var in $ac_subst_vars
   1521     do
   1522       eval ac_val=\$$ac_var
   1523       case $ac_val in
   1524       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1525       esac
   1526       echo "$ac_var='\''$ac_val'\''"
   1527     done | sort
   1528     echo
   1529 
   1530     if test -n "$ac_subst_files"; then
   1531       cat <<\_ASBOX
   1532 ## ------------------- ##
   1533 ## File substitutions. ##
   1534 ## ------------------- ##
   1535 _ASBOX
   1536       echo
   1537       for ac_var in $ac_subst_files
   1538       do
   1539 	eval ac_val=\$$ac_var
   1540 	case $ac_val in
   1541 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1542 	esac
   1543 	echo "$ac_var='\''$ac_val'\''"
   1544       done | sort
   1545       echo
   1546     fi
   1547 
   1548     if test -s confdefs.h; then
   1549       cat <<\_ASBOX
   1550 ## ----------- ##
   1551 ## confdefs.h. ##
   1552 ## ----------- ##
   1553 _ASBOX
   1554       echo
   1555       cat confdefs.h
   1556       echo
   1557     fi
   1558     test "$ac_signal" != 0 &&
   1559       echo "$as_me: caught signal $ac_signal"
   1560     echo "$as_me: exit $exit_status"
   1561   } >&5
   1562   rm -f core *.core core.conftest.* &&
   1563     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1564     exit $exit_status
   1565 ' 0
   1566 for ac_signal in 1 2 13 15; do
   1567   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1568 done
   1569 ac_signal=0
   1570 
   1571 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1572 rm -f -r conftest* confdefs.h
   1573 
   1574 # Predefined preprocessor variables.
   1575 
   1576 cat >>confdefs.h <<_ACEOF
   1577 #define PACKAGE_NAME "$PACKAGE_NAME"
   1578 _ACEOF
   1579 
   1580 
   1581 cat >>confdefs.h <<_ACEOF
   1582 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1583 _ACEOF
   1584 
   1585 
   1586 cat >>confdefs.h <<_ACEOF
   1587 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1588 _ACEOF
   1589 
   1590 
   1591 cat >>confdefs.h <<_ACEOF
   1592 #define PACKAGE_STRING "$PACKAGE_STRING"
   1593 _ACEOF
   1594 
   1595 
   1596 cat >>confdefs.h <<_ACEOF
   1597 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1598 _ACEOF
   1599 
   1600 
   1601 # Let the site file select an alternate cache file if it wants to.
   1602 # Prefer explicitly selected file to automatically selected ones.
   1603 if test -n "$CONFIG_SITE"; then
   1604   set x "$CONFIG_SITE"
   1605 elif test "x$prefix" != xNONE; then
   1606   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1607 else
   1608   set x "$ac_default_prefix/share/config.site" \
   1609 	"$ac_default_prefix/etc/config.site"
   1610 fi
   1611 shift
   1612 for ac_site_file
   1613 do
   1614   if test -r "$ac_site_file"; then
   1615     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1616 echo "$as_me: loading site script $ac_site_file" >&6;}
   1617     sed 's/^/| /' "$ac_site_file" >&5
   1618     . "$ac_site_file"
   1619   fi
   1620 done
   1621 
   1622 if test -r "$cache_file"; then
   1623   # Some versions of bash will fail to source /dev/null (special
   1624   # files actually), so we avoid doing that.
   1625   if test -f "$cache_file"; then
   1626     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1627 echo "$as_me: loading cache $cache_file" >&6;}
   1628     case $cache_file in
   1629       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1630       *)                      . "./$cache_file";;
   1631     esac
   1632   fi
   1633 else
   1634   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1635 echo "$as_me: creating cache $cache_file" >&6;}
   1636   >$cache_file
   1637 fi
   1638 
   1639 # Check that the precious variables saved in the cache have kept the same
   1640 # value.
   1641 ac_cache_corrupted=false
   1642 for ac_var in $ac_precious_vars; do
   1643   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1644   eval ac_new_set=\$ac_env_${ac_var}_set
   1645   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1646   eval ac_new_val=\$ac_env_${ac_var}_value
   1647   case $ac_old_set,$ac_new_set in
   1648     set,)
   1649       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1650 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1651       ac_cache_corrupted=: ;;
   1652     ,set)
   1653       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1654 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1655       ac_cache_corrupted=: ;;
   1656     ,);;
   1657     *)
   1658       if test "x$ac_old_val" != "x$ac_new_val"; then
   1659 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1660 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1661 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1662 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1663 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1664 echo "$as_me:   current value: $ac_new_val" >&2;}
   1665 	ac_cache_corrupted=:
   1666       fi;;
   1667   esac
   1668   # Pass precious variables to config.status.
   1669   if test "$ac_new_set" = set; then
   1670     case $ac_new_val in
   1671     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1672     *) ac_arg=$ac_var=$ac_new_val ;;
   1673     esac
   1674     case " $ac_configure_args " in
   1675       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1676       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1677     esac
   1678   fi
   1679 done
   1680 if $ac_cache_corrupted; then
   1681   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1682 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1683   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1684 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1685    { (exit 1); exit 1; }; }
   1686 fi
   1687 
   1688 
   1689 
   1690 
   1691 
   1692 
   1693 
   1694 
   1695 
   1696 
   1697 
   1698 
   1699 
   1700 
   1701 
   1702 
   1703 
   1704 ac_ext=c
   1705 ac_cpp='$CPP $CPPFLAGS'
   1706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1709 
   1710 
   1711 
   1712 ac_aux_dir=
   1713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   1714   if test -f "$ac_dir/install-sh"; then
   1715     ac_aux_dir=$ac_dir
   1716     ac_install_sh="$ac_aux_dir/install-sh -c"
   1717     break
   1718   elif test -f "$ac_dir/install.sh"; then
   1719     ac_aux_dir=$ac_dir
   1720     ac_install_sh="$ac_aux_dir/install.sh -c"
   1721     break
   1722   elif test -f "$ac_dir/shtool"; then
   1723     ac_aux_dir=$ac_dir
   1724     ac_install_sh="$ac_aux_dir/shtool install -c"
   1725     break
   1726   fi
   1727 done
   1728 if test -z "$ac_aux_dir"; then
   1729   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
   1730 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   1731    { (exit 1); exit 1; }; }
   1732 fi
   1733 
   1734 # These three variables are undocumented and unsupported,
   1735 # and are intended to be withdrawn in a future Autoconf release.
   1736 # They can cause serious problems if a builder's source tree is in a directory
   1737 # whose full name contains unusual characters.
   1738 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   1739 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   1740 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   1741 
   1742 
   1743 # Make sure we can run config.sub.
   1744 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   1745   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   1746 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   1747    { (exit 1); exit 1; }; }
   1748 
   1749 { echo "$as_me:$LINENO: checking build system type" >&5
   1750 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   1751 if test "${ac_cv_build+set}" = set; then
   1752   echo $ECHO_N "(cached) $ECHO_C" >&6
   1753 else
   1754   ac_build_alias=$build_alias
   1755 test "x$ac_build_alias" = x &&
   1756   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   1757 test "x$ac_build_alias" = x &&
   1758   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   1759 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1760    { (exit 1); exit 1; }; }
   1761 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   1762   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   1763 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   1764    { (exit 1); exit 1; }; }
   1765 
   1766 fi
   1767 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   1768 echo "${ECHO_T}$ac_cv_build" >&6; }
   1769 case $ac_cv_build in
   1770 *-*-*) ;;
   1771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   1772 echo "$as_me: error: invalid value of canonical build" >&2;}
   1773    { (exit 1); exit 1; }; };;
   1774 esac
   1775 build=$ac_cv_build
   1776 ac_save_IFS=$IFS; IFS='-'
   1777 set x $ac_cv_build
   1778 shift
   1779 build_cpu=$1
   1780 build_vendor=$2
   1781 shift; shift
   1782 # Remember, the first character of IFS is used to create $*,
   1783 # except with old shells:
   1784 build_os=$*
   1785 IFS=$ac_save_IFS
   1786 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   1787 
   1788 
   1789 { echo "$as_me:$LINENO: checking host system type" >&5
   1790 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   1791 if test "${ac_cv_host+set}" = set; then
   1792   echo $ECHO_N "(cached) $ECHO_C" >&6
   1793 else
   1794   if test "x$host_alias" = x; then
   1795   ac_cv_host=$ac_cv_build
   1796 else
   1797   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   1798     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   1799 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   1800    { (exit 1); exit 1; }; }
   1801 fi
   1802 
   1803 fi
   1804 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   1805 echo "${ECHO_T}$ac_cv_host" >&6; }
   1806 case $ac_cv_host in
   1807 *-*-*) ;;
   1808 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   1809 echo "$as_me: error: invalid value of canonical host" >&2;}
   1810    { (exit 1); exit 1; }; };;
   1811 esac
   1812 host=$ac_cv_host
   1813 ac_save_IFS=$IFS; IFS='-'
   1814 set x $ac_cv_host
   1815 shift
   1816 host_cpu=$1
   1817 host_vendor=$2
   1818 shift; shift
   1819 # Remember, the first character of IFS is used to create $*,
   1820 # except with old shells:
   1821 host_os=$*
   1822 IFS=$ac_save_IFS
   1823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   1824 
   1825 
   1826 
   1827 
   1828 
   1829 
   1830 
   1831 
   1832 # Check whether --with-gcc was given.
   1833 if test "${with_gcc+set}" = set; then
   1834   withval=$with_gcc;
   1835 fi
   1836 
   1837     V_CCOPT="-O"
   1838     V_INCLS=""
   1839     if test "${srcdir}" != "." ; then
   1840 	    V_INCLS="-I\$(srcdir)"
   1841     fi
   1842     if test "${CFLAGS+set}" = set; then
   1843 	    LBL_CFLAGS="$CFLAGS"
   1844     fi
   1845     if test -z "$CC" ; then
   1846 	    case "$host_os" in
   1847 
   1848 	    bsdi*)
   1849 		    # Extract the first word of "shlicc2", so it can be a program name with args.
   1850 set dummy shlicc2; ac_word=$2
   1851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1853 if test "${ac_cv_prog_SHLICC2+set}" = set; then
   1854   echo $ECHO_N "(cached) $ECHO_C" >&6
   1855 else
   1856   if test -n "$SHLICC2"; then
   1857   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
   1858 else
   1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1860 for as_dir in $PATH
   1861 do
   1862   IFS=$as_save_IFS
   1863   test -z "$as_dir" && as_dir=.
   1864   for ac_exec_ext in '' $ac_executable_extensions; do
   1865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1866     ac_cv_prog_SHLICC2="yes"
   1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1868     break 2
   1869   fi
   1870 done
   1871 done
   1872 IFS=$as_save_IFS
   1873 
   1874   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
   1875 fi
   1876 fi
   1877 SHLICC2=$ac_cv_prog_SHLICC2
   1878 if test -n "$SHLICC2"; then
   1879   { echo "$as_me:$LINENO: result: $SHLICC2" >&5
   1880 echo "${ECHO_T}$SHLICC2" >&6; }
   1881 else
   1882   { echo "$as_me:$LINENO: result: no" >&5
   1883 echo "${ECHO_T}no" >&6; }
   1884 fi
   1885 
   1886 
   1887 		    if test $SHLICC2 = yes ; then
   1888 			    CC=shlicc2
   1889 			    export CC
   1890 		    fi
   1891 		    ;;
   1892 	    esac
   1893     fi
   1894     if test -z "$CC" -a "$with_gcc" = no ; then
   1895 	    CC=cc
   1896 	    export CC
   1897     fi
   1898     ac_ext=c
   1899 ac_cpp='$CPP $CPPFLAGS'
   1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1903 if test -n "$ac_tool_prefix"; then
   1904   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1905 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1908 if test "${ac_cv_prog_CC+set}" = set; then
   1909   echo $ECHO_N "(cached) $ECHO_C" >&6
   1910 else
   1911   if test -n "$CC"; then
   1912   ac_cv_prog_CC="$CC" # Let the user override the test.
   1913 else
   1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1915 for as_dir in $PATH
   1916 do
   1917   IFS=$as_save_IFS
   1918   test -z "$as_dir" && as_dir=.
   1919   for ac_exec_ext in '' $ac_executable_extensions; do
   1920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1921     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1923     break 2
   1924   fi
   1925 done
   1926 done
   1927 IFS=$as_save_IFS
   1928 
   1929 fi
   1930 fi
   1931 CC=$ac_cv_prog_CC
   1932 if test -n "$CC"; then
   1933   { echo "$as_me:$LINENO: result: $CC" >&5
   1934 echo "${ECHO_T}$CC" >&6; }
   1935 else
   1936   { echo "$as_me:$LINENO: result: no" >&5
   1937 echo "${ECHO_T}no" >&6; }
   1938 fi
   1939 
   1940 
   1941 fi
   1942 if test -z "$ac_cv_prog_CC"; then
   1943   ac_ct_CC=$CC
   1944   # Extract the first word of "gcc", so it can be a program name with args.
   1945 set dummy gcc; ac_word=$2
   1946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1949   echo $ECHO_N "(cached) $ECHO_C" >&6
   1950 else
   1951   if test -n "$ac_ct_CC"; then
   1952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1953 else
   1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1955 for as_dir in $PATH
   1956 do
   1957   IFS=$as_save_IFS
   1958   test -z "$as_dir" && as_dir=.
   1959   for ac_exec_ext in '' $ac_executable_extensions; do
   1960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1961     ac_cv_prog_ac_ct_CC="gcc"
   1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1963     break 2
   1964   fi
   1965 done
   1966 done
   1967 IFS=$as_save_IFS
   1968 
   1969 fi
   1970 fi
   1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1972 if test -n "$ac_ct_CC"; then
   1973   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1974 echo "${ECHO_T}$ac_ct_CC" >&6; }
   1975 else
   1976   { echo "$as_me:$LINENO: result: no" >&5
   1977 echo "${ECHO_T}no" >&6; }
   1978 fi
   1979 
   1980   if test "x$ac_ct_CC" = x; then
   1981     CC=""
   1982   else
   1983     case $cross_compiling:$ac_tool_warned in
   1984 yes:)
   1985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1986 whose name does not start with the host triplet.  If you think this
   1987 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   1988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1989 whose name does not start with the host triplet.  If you think this
   1990 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   1991 ac_tool_warned=yes ;;
   1992 esac
   1993     CC=$ac_ct_CC
   1994   fi
   1995 else
   1996   CC="$ac_cv_prog_CC"
   1997 fi
   1998 
   1999 if test -z "$CC"; then
   2000           if test -n "$ac_tool_prefix"; then
   2001     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2002 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2005 if test "${ac_cv_prog_CC+set}" = set; then
   2006   echo $ECHO_N "(cached) $ECHO_C" >&6
   2007 else
   2008   if test -n "$CC"; then
   2009   ac_cv_prog_CC="$CC" # Let the user override the test.
   2010 else
   2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2012 for as_dir in $PATH
   2013 do
   2014   IFS=$as_save_IFS
   2015   test -z "$as_dir" && as_dir=.
   2016   for ac_exec_ext in '' $ac_executable_extensions; do
   2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2018     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2020     break 2
   2021   fi
   2022 done
   2023 done
   2024 IFS=$as_save_IFS
   2025 
   2026 fi
   2027 fi
   2028 CC=$ac_cv_prog_CC
   2029 if test -n "$CC"; then
   2030   { echo "$as_me:$LINENO: result: $CC" >&5
   2031 echo "${ECHO_T}$CC" >&6; }
   2032 else
   2033   { echo "$as_me:$LINENO: result: no" >&5
   2034 echo "${ECHO_T}no" >&6; }
   2035 fi
   2036 
   2037 
   2038   fi
   2039 fi
   2040 if test -z "$CC"; then
   2041   # Extract the first word of "cc", so it can be a program name with args.
   2042 set dummy cc; ac_word=$2
   2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2045 if test "${ac_cv_prog_CC+set}" = set; then
   2046   echo $ECHO_N "(cached) $ECHO_C" >&6
   2047 else
   2048   if test -n "$CC"; then
   2049   ac_cv_prog_CC="$CC" # Let the user override the test.
   2050 else
   2051   ac_prog_rejected=no
   2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2053 for as_dir in $PATH
   2054 do
   2055   IFS=$as_save_IFS
   2056   test -z "$as_dir" && as_dir=.
   2057   for ac_exec_ext in '' $ac_executable_extensions; do
   2058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2059     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2060        ac_prog_rejected=yes
   2061        continue
   2062      fi
   2063     ac_cv_prog_CC="cc"
   2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2065     break 2
   2066   fi
   2067 done
   2068 done
   2069 IFS=$as_save_IFS
   2070 
   2071 if test $ac_prog_rejected = yes; then
   2072   # We found a bogon in the path, so make sure we never use it.
   2073   set dummy $ac_cv_prog_CC
   2074   shift
   2075   if test $# != 0; then
   2076     # We chose a different compiler from the bogus one.
   2077     # However, it has the same basename, so the bogon will be chosen
   2078     # first if we set CC to just the basename; use the full file name.
   2079     shift
   2080     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2081   fi
   2082 fi
   2083 fi
   2084 fi
   2085 CC=$ac_cv_prog_CC
   2086 if test -n "$CC"; then
   2087   { echo "$as_me:$LINENO: result: $CC" >&5
   2088 echo "${ECHO_T}$CC" >&6; }
   2089 else
   2090   { echo "$as_me:$LINENO: result: no" >&5
   2091 echo "${ECHO_T}no" >&6; }
   2092 fi
   2093 
   2094 
   2095 fi
   2096 if test -z "$CC"; then
   2097   if test -n "$ac_tool_prefix"; then
   2098   for ac_prog in cl.exe
   2099   do
   2100     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2104 if test "${ac_cv_prog_CC+set}" = set; then
   2105   echo $ECHO_N "(cached) $ECHO_C" >&6
   2106 else
   2107   if test -n "$CC"; then
   2108   ac_cv_prog_CC="$CC" # Let the user override the test.
   2109 else
   2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2111 for as_dir in $PATH
   2112 do
   2113   IFS=$as_save_IFS
   2114   test -z "$as_dir" && as_dir=.
   2115   for ac_exec_ext in '' $ac_executable_extensions; do
   2116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2117     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2119     break 2
   2120   fi
   2121 done
   2122 done
   2123 IFS=$as_save_IFS
   2124 
   2125 fi
   2126 fi
   2127 CC=$ac_cv_prog_CC
   2128 if test -n "$CC"; then
   2129   { echo "$as_me:$LINENO: result: $CC" >&5
   2130 echo "${ECHO_T}$CC" >&6; }
   2131 else
   2132   { echo "$as_me:$LINENO: result: no" >&5
   2133 echo "${ECHO_T}no" >&6; }
   2134 fi
   2135 
   2136 
   2137     test -n "$CC" && break
   2138   done
   2139 fi
   2140 if test -z "$CC"; then
   2141   ac_ct_CC=$CC
   2142   for ac_prog in cl.exe
   2143 do
   2144   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2145 set dummy $ac_prog; ac_word=$2
   2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2149   echo $ECHO_N "(cached) $ECHO_C" >&6
   2150 else
   2151   if test -n "$ac_ct_CC"; then
   2152   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2153 else
   2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2155 for as_dir in $PATH
   2156 do
   2157   IFS=$as_save_IFS
   2158   test -z "$as_dir" && as_dir=.
   2159   for ac_exec_ext in '' $ac_executable_extensions; do
   2160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2161     ac_cv_prog_ac_ct_CC="$ac_prog"
   2162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2163     break 2
   2164   fi
   2165 done
   2166 done
   2167 IFS=$as_save_IFS
   2168 
   2169 fi
   2170 fi
   2171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2172 if test -n "$ac_ct_CC"; then
   2173   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2174 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2175 else
   2176   { echo "$as_me:$LINENO: result: no" >&5
   2177 echo "${ECHO_T}no" >&6; }
   2178 fi
   2179 
   2180 
   2181   test -n "$ac_ct_CC" && break
   2182 done
   2183 
   2184   if test "x$ac_ct_CC" = x; then
   2185     CC=""
   2186   else
   2187     case $cross_compiling:$ac_tool_warned in
   2188 yes:)
   2189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2190 whose name does not start with the host triplet.  If you think this
   2191 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2193 whose name does not start with the host triplet.  If you think this
   2194 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2195 ac_tool_warned=yes ;;
   2196 esac
   2197     CC=$ac_ct_CC
   2198   fi
   2199 fi
   2200 
   2201 fi
   2202 
   2203 
   2204 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2205 See \`config.log' for more details." >&5
   2206 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2207 See \`config.log' for more details." >&2;}
   2208    { (exit 1); exit 1; }; }
   2209 
   2210 # Provide some information about the compiler.
   2211 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2212 ac_compiler=`set X $ac_compile; echo $2`
   2213 { (ac_try="$ac_compiler --version >&5"
   2214 case "(($ac_try" in
   2215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2216   *) ac_try_echo=$ac_try;;
   2217 esac
   2218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2219   (eval "$ac_compiler --version >&5") 2>&5
   2220   ac_status=$?
   2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2222   (exit $ac_status); }
   2223 { (ac_try="$ac_compiler -v >&5"
   2224 case "(($ac_try" in
   2225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2226   *) ac_try_echo=$ac_try;;
   2227 esac
   2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2229   (eval "$ac_compiler -v >&5") 2>&5
   2230   ac_status=$?
   2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2232   (exit $ac_status); }
   2233 { (ac_try="$ac_compiler -V >&5"
   2234 case "(($ac_try" in
   2235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2236   *) ac_try_echo=$ac_try;;
   2237 esac
   2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2239   (eval "$ac_compiler -V >&5") 2>&5
   2240   ac_status=$?
   2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2242   (exit $ac_status); }
   2243 
   2244 cat >conftest.$ac_ext <<_ACEOF
   2245 /* confdefs.h.  */
   2246 _ACEOF
   2247 cat confdefs.h >>conftest.$ac_ext
   2248 cat >>conftest.$ac_ext <<_ACEOF
   2249 /* end confdefs.h.  */
   2250 
   2251 int
   2252 main ()
   2253 {
   2254 
   2255   ;
   2256   return 0;
   2257 }
   2258 _ACEOF
   2259 ac_clean_files_save=$ac_clean_files
   2260 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2261 # Try to create an executable without -o first, disregard a.out.
   2262 # It will help us diagnose broken compilers, and finding out an intuition
   2263 # of exeext.
   2264 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2265 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2266 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2267 #
   2268 # List of possible output files, starting from the most likely.
   2269 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2270 # only as a last resort.  b.out is created by i960 compilers.
   2271 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2272 #
   2273 # The IRIX 6 linker writes into existing files which may not be
   2274 # executable, retaining their permissions.  Remove them first so a
   2275 # subsequent execution test works.
   2276 ac_rmfiles=
   2277 for ac_file in $ac_files
   2278 do
   2279   case $ac_file in
   2280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2281     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2282   esac
   2283 done
   2284 rm -f $ac_rmfiles
   2285 
   2286 if { (ac_try="$ac_link_default"
   2287 case "(($ac_try" in
   2288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2289   *) ac_try_echo=$ac_try;;
   2290 esac
   2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2292   (eval "$ac_link_default") 2>&5
   2293   ac_status=$?
   2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2295   (exit $ac_status); }; then
   2296   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2297 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2298 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2299 # so that the user can short-circuit this test for compilers unknown to
   2300 # Autoconf.
   2301 for ac_file in $ac_files ''
   2302 do
   2303   test -f "$ac_file" || continue
   2304   case $ac_file in
   2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2306 	;;
   2307     [ab].out )
   2308 	# We found the default executable, but exeext='' is most
   2309 	# certainly right.
   2310 	break;;
   2311     *.* )
   2312         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2313 	then :; else
   2314 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2315 	fi
   2316 	# We set ac_cv_exeext here because the later test for it is not
   2317 	# safe: cross compilers may not add the suffix if given an `-o'
   2318 	# argument, so we may need to know it at that point already.
   2319 	# Even if this section looks crufty: it has the advantage of
   2320 	# actually working.
   2321 	break;;
   2322     * )
   2323 	break;;
   2324   esac
   2325 done
   2326 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2327 
   2328 else
   2329   ac_file=''
   2330 fi
   2331 
   2332 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2333 echo "${ECHO_T}$ac_file" >&6; }
   2334 if test -z "$ac_file"; then
   2335   echo "$as_me: failed program was:" >&5
   2336 sed 's/^/| /' conftest.$ac_ext >&5
   2337 
   2338 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2339 See \`config.log' for more details." >&5
   2340 echo "$as_me: error: C compiler cannot create executables
   2341 See \`config.log' for more details." >&2;}
   2342    { (exit 77); exit 77; }; }
   2343 fi
   2344 
   2345 ac_exeext=$ac_cv_exeext
   2346 
   2347 # Check that the compiler produces executables we can run.  If not, either
   2348 # the compiler is broken, or we cross compile.
   2349 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2350 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2351 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2352 # If not cross compiling, check that we can run a simple program.
   2353 if test "$cross_compiling" != yes; then
   2354   if { ac_try='./$ac_file'
   2355   { (case "(($ac_try" in
   2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2357   *) ac_try_echo=$ac_try;;
   2358 esac
   2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2360   (eval "$ac_try") 2>&5
   2361   ac_status=$?
   2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2363   (exit $ac_status); }; }; then
   2364     cross_compiling=no
   2365   else
   2366     if test "$cross_compiling" = maybe; then
   2367 	cross_compiling=yes
   2368     else
   2369 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2370 If you meant to cross compile, use \`--host'.
   2371 See \`config.log' for more details." >&5
   2372 echo "$as_me: error: cannot run C compiled programs.
   2373 If you meant to cross compile, use \`--host'.
   2374 See \`config.log' for more details." >&2;}
   2375    { (exit 1); exit 1; }; }
   2376     fi
   2377   fi
   2378 fi
   2379 { echo "$as_me:$LINENO: result: yes" >&5
   2380 echo "${ECHO_T}yes" >&6; }
   2381 
   2382 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2383 ac_clean_files=$ac_clean_files_save
   2384 # Check that the compiler produces executables we can run.  If not, either
   2385 # the compiler is broken, or we cross compile.
   2386 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2388 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2389 echo "${ECHO_T}$cross_compiling" >&6; }
   2390 
   2391 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2393 if { (ac_try="$ac_link"
   2394 case "(($ac_try" in
   2395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2396   *) ac_try_echo=$ac_try;;
   2397 esac
   2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2399   (eval "$ac_link") 2>&5
   2400   ac_status=$?
   2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2402   (exit $ac_status); }; then
   2403   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2404 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2405 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2406 # `rm'.
   2407 for ac_file in conftest.exe conftest conftest.*; do
   2408   test -f "$ac_file" || continue
   2409   case $ac_file in
   2410     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2411     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2412 	  break;;
   2413     * ) break;;
   2414   esac
   2415 done
   2416 else
   2417   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2418 See \`config.log' for more details." >&5
   2419 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2420 See \`config.log' for more details." >&2;}
   2421    { (exit 1); exit 1; }; }
   2422 fi
   2423 
   2424 rm -f conftest$ac_cv_exeext
   2425 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2426 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2427 
   2428 rm -f conftest.$ac_ext
   2429 EXEEXT=$ac_cv_exeext
   2430 ac_exeext=$EXEEXT
   2431 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2432 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2433 if test "${ac_cv_objext+set}" = set; then
   2434   echo $ECHO_N "(cached) $ECHO_C" >&6
   2435 else
   2436   cat >conftest.$ac_ext <<_ACEOF
   2437 /* confdefs.h.  */
   2438 _ACEOF
   2439 cat confdefs.h >>conftest.$ac_ext
   2440 cat >>conftest.$ac_ext <<_ACEOF
   2441 /* end confdefs.h.  */
   2442 
   2443 int
   2444 main ()
   2445 {
   2446 
   2447   ;
   2448   return 0;
   2449 }
   2450 _ACEOF
   2451 rm -f conftest.o conftest.obj
   2452 if { (ac_try="$ac_compile"
   2453 case "(($ac_try" in
   2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2455   *) ac_try_echo=$ac_try;;
   2456 esac
   2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2458   (eval "$ac_compile") 2>&5
   2459   ac_status=$?
   2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2461   (exit $ac_status); }; then
   2462   for ac_file in conftest.o conftest.obj conftest.*; do
   2463   test -f "$ac_file" || continue;
   2464   case $ac_file in
   2465     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2466     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2467        break;;
   2468   esac
   2469 done
   2470 else
   2471   echo "$as_me: failed program was:" >&5
   2472 sed 's/^/| /' conftest.$ac_ext >&5
   2473 
   2474 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2475 See \`config.log' for more details." >&5
   2476 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2477 See \`config.log' for more details." >&2;}
   2478    { (exit 1); exit 1; }; }
   2479 fi
   2480 
   2481 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2482 fi
   2483 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2484 echo "${ECHO_T}$ac_cv_objext" >&6; }
   2485 OBJEXT=$ac_cv_objext
   2486 ac_objext=$OBJEXT
   2487 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2488 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2489 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2490   echo $ECHO_N "(cached) $ECHO_C" >&6
   2491 else
   2492   cat >conftest.$ac_ext <<_ACEOF
   2493 /* confdefs.h.  */
   2494 _ACEOF
   2495 cat confdefs.h >>conftest.$ac_ext
   2496 cat >>conftest.$ac_ext <<_ACEOF
   2497 /* end confdefs.h.  */
   2498 
   2499 int
   2500 main ()
   2501 {
   2502 #ifndef __GNUC__
   2503        choke me
   2504 #endif
   2505 
   2506   ;
   2507   return 0;
   2508 }
   2509 _ACEOF
   2510 rm -f conftest.$ac_objext
   2511 if { (ac_try="$ac_compile"
   2512 case "(($ac_try" in
   2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2514   *) ac_try_echo=$ac_try;;
   2515 esac
   2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2517   (eval "$ac_compile") 2>conftest.er1
   2518   ac_status=$?
   2519   grep -v '^ *+' conftest.er1 >conftest.err
   2520   rm -f conftest.er1
   2521   cat conftest.err >&5
   2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2523   (exit $ac_status); } && {
   2524 	 test -z "$ac_c_werror_flag" ||
   2525 	 test ! -s conftest.err
   2526        } && test -s conftest.$ac_objext; then
   2527   ac_compiler_gnu=yes
   2528 else
   2529   echo "$as_me: failed program was:" >&5
   2530 sed 's/^/| /' conftest.$ac_ext >&5
   2531 
   2532 	ac_compiler_gnu=no
   2533 fi
   2534 
   2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2537 
   2538 fi
   2539 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2541 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2542 ac_test_CFLAGS=${CFLAGS+set}
   2543 ac_save_CFLAGS=$CFLAGS
   2544 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2545 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2546 if test "${ac_cv_prog_cc_g+set}" = set; then
   2547   echo $ECHO_N "(cached) $ECHO_C" >&6
   2548 else
   2549   ac_save_c_werror_flag=$ac_c_werror_flag
   2550    ac_c_werror_flag=yes
   2551    ac_cv_prog_cc_g=no
   2552    CFLAGS="-g"
   2553    cat >conftest.$ac_ext <<_ACEOF
   2554 /* confdefs.h.  */
   2555 _ACEOF
   2556 cat confdefs.h >>conftest.$ac_ext
   2557 cat >>conftest.$ac_ext <<_ACEOF
   2558 /* end confdefs.h.  */
   2559 
   2560 int
   2561 main ()
   2562 {
   2563 
   2564   ;
   2565   return 0;
   2566 }
   2567 _ACEOF
   2568 rm -f conftest.$ac_objext
   2569 if { (ac_try="$ac_compile"
   2570 case "(($ac_try" in
   2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2572   *) ac_try_echo=$ac_try;;
   2573 esac
   2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2575   (eval "$ac_compile") 2>conftest.er1
   2576   ac_status=$?
   2577   grep -v '^ *+' conftest.er1 >conftest.err
   2578   rm -f conftest.er1
   2579   cat conftest.err >&5
   2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2581   (exit $ac_status); } && {
   2582 	 test -z "$ac_c_werror_flag" ||
   2583 	 test ! -s conftest.err
   2584        } && test -s conftest.$ac_objext; then
   2585   ac_cv_prog_cc_g=yes
   2586 else
   2587   echo "$as_me: failed program was:" >&5
   2588 sed 's/^/| /' conftest.$ac_ext >&5
   2589 
   2590 	CFLAGS=""
   2591       cat >conftest.$ac_ext <<_ACEOF
   2592 /* confdefs.h.  */
   2593 _ACEOF
   2594 cat confdefs.h >>conftest.$ac_ext
   2595 cat >>conftest.$ac_ext <<_ACEOF
   2596 /* end confdefs.h.  */
   2597 
   2598 int
   2599 main ()
   2600 {
   2601 
   2602   ;
   2603   return 0;
   2604 }
   2605 _ACEOF
   2606 rm -f conftest.$ac_objext
   2607 if { (ac_try="$ac_compile"
   2608 case "(($ac_try" in
   2609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2610   *) ac_try_echo=$ac_try;;
   2611 esac
   2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2613   (eval "$ac_compile") 2>conftest.er1
   2614   ac_status=$?
   2615   grep -v '^ *+' conftest.er1 >conftest.err
   2616   rm -f conftest.er1
   2617   cat conftest.err >&5
   2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2619   (exit $ac_status); } && {
   2620 	 test -z "$ac_c_werror_flag" ||
   2621 	 test ! -s conftest.err
   2622        } && test -s conftest.$ac_objext; then
   2623   :
   2624 else
   2625   echo "$as_me: failed program was:" >&5
   2626 sed 's/^/| /' conftest.$ac_ext >&5
   2627 
   2628 	ac_c_werror_flag=$ac_save_c_werror_flag
   2629 	 CFLAGS="-g"
   2630 	 cat >conftest.$ac_ext <<_ACEOF
   2631 /* confdefs.h.  */
   2632 _ACEOF
   2633 cat confdefs.h >>conftest.$ac_ext
   2634 cat >>conftest.$ac_ext <<_ACEOF
   2635 /* end confdefs.h.  */
   2636 
   2637 int
   2638 main ()
   2639 {
   2640 
   2641   ;
   2642   return 0;
   2643 }
   2644 _ACEOF
   2645 rm -f conftest.$ac_objext
   2646 if { (ac_try="$ac_compile"
   2647 case "(($ac_try" in
   2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2649   *) ac_try_echo=$ac_try;;
   2650 esac
   2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2652   (eval "$ac_compile") 2>conftest.er1
   2653   ac_status=$?
   2654   grep -v '^ *+' conftest.er1 >conftest.err
   2655   rm -f conftest.er1
   2656   cat conftest.err >&5
   2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2658   (exit $ac_status); } && {
   2659 	 test -z "$ac_c_werror_flag" ||
   2660 	 test ! -s conftest.err
   2661        } && test -s conftest.$ac_objext; then
   2662   ac_cv_prog_cc_g=yes
   2663 else
   2664   echo "$as_me: failed program was:" >&5
   2665 sed 's/^/| /' conftest.$ac_ext >&5
   2666 
   2667 
   2668 fi
   2669 
   2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2671 fi
   2672 
   2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2674 fi
   2675 
   2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2677    ac_c_werror_flag=$ac_save_c_werror_flag
   2678 fi
   2679 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2680 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   2681 if test "$ac_test_CFLAGS" = set; then
   2682   CFLAGS=$ac_save_CFLAGS
   2683 elif test $ac_cv_prog_cc_g = yes; then
   2684   if test "$GCC" = yes; then
   2685     CFLAGS="-g -O2"
   2686   else
   2687     CFLAGS="-g"
   2688   fi
   2689 else
   2690   if test "$GCC" = yes; then
   2691     CFLAGS="-O2"
   2692   else
   2693     CFLAGS=
   2694   fi
   2695 fi
   2696 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   2697 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   2698 if test "${ac_cv_prog_cc_c89+set}" = set; then
   2699   echo $ECHO_N "(cached) $ECHO_C" >&6
   2700 else
   2701   ac_cv_prog_cc_c89=no
   2702 ac_save_CC=$CC
   2703 cat >conftest.$ac_ext <<_ACEOF
   2704 /* confdefs.h.  */
   2705 _ACEOF
   2706 cat confdefs.h >>conftest.$ac_ext
   2707 cat >>conftest.$ac_ext <<_ACEOF
   2708 /* end confdefs.h.  */
   2709 #include <stdarg.h>
   2710 #include <stdio.h>
   2711 #include <sys/types.h>
   2712 #include <sys/stat.h>
   2713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2714 struct buf { int x; };
   2715 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2716 static char *e (p, i)
   2717      char **p;
   2718      int i;
   2719 {
   2720   return p[i];
   2721 }
   2722 static char *f (char * (*g) (char **, int), char **p, ...)
   2723 {
   2724   char *s;
   2725   va_list v;
   2726   va_start (v,p);
   2727   s = g (p, va_arg (v,int));
   2728   va_end (v);
   2729   return s;
   2730 }
   2731 
   2732 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2733    function prototypes and stuff, but not '\xHH' hex character constants.
   2734    These don't provoke an error unfortunately, instead are silently treated
   2735    as 'x'.  The following induces an error, until -std is added to get
   2736    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2737    array size at least.  It's necessary to write '\x00'==0 to get something
   2738    that's true only with -std.  */
   2739 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2740 
   2741 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2742    inside strings and character constants.  */
   2743 #define FOO(x) 'x'
   2744 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   2745 
   2746 int test (int i, double x);
   2747 struct s1 {int (*f) (int a);};
   2748 struct s2 {int (*f) (double a);};
   2749 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2750 int argc;
   2751 char **argv;
   2752 int
   2753 main ()
   2754 {
   2755 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2756   ;
   2757   return 0;
   2758 }
   2759 _ACEOF
   2760 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   2761 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2762 do
   2763   CC="$ac_save_CC $ac_arg"
   2764   rm -f conftest.$ac_objext
   2765 if { (ac_try="$ac_compile"
   2766 case "(($ac_try" in
   2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2768   *) ac_try_echo=$ac_try;;
   2769 esac
   2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2771   (eval "$ac_compile") 2>conftest.er1
   2772   ac_status=$?
   2773   grep -v '^ *+' conftest.er1 >conftest.err
   2774   rm -f conftest.er1
   2775   cat conftest.err >&5
   2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2777   (exit $ac_status); } && {
   2778 	 test -z "$ac_c_werror_flag" ||
   2779 	 test ! -s conftest.err
   2780        } && test -s conftest.$ac_objext; then
   2781   ac_cv_prog_cc_c89=$ac_arg
   2782 else
   2783   echo "$as_me: failed program was:" >&5
   2784 sed 's/^/| /' conftest.$ac_ext >&5
   2785 
   2786 
   2787 fi
   2788 
   2789 rm -f core conftest.err conftest.$ac_objext
   2790   test "x$ac_cv_prog_cc_c89" != "xno" && break
   2791 done
   2792 rm -f conftest.$ac_ext
   2793 CC=$ac_save_CC
   2794 
   2795 fi
   2796 # AC_CACHE_VAL
   2797 case "x$ac_cv_prog_cc_c89" in
   2798   x)
   2799     { echo "$as_me:$LINENO: result: none needed" >&5
   2800 echo "${ECHO_T}none needed" >&6; } ;;
   2801   xno)
   2802     { echo "$as_me:$LINENO: result: unsupported" >&5
   2803 echo "${ECHO_T}unsupported" >&6; } ;;
   2804   *)
   2805     CC="$CC $ac_cv_prog_cc_c89"
   2806     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   2807 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   2808 esac
   2809 
   2810 
   2811 ac_ext=c
   2812 ac_cpp='$CPP $CPPFLAGS'
   2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2816 
   2817     if test "$GCC" = yes ; then
   2818 	    if test "$SHLICC2" = yes ; then
   2819 		    ac_cv_lbl_gcc_vers=2
   2820 		    V_CCOPT="-O2"
   2821 	    else
   2822 		    { echo "$as_me:$LINENO: checking gcc version" >&5
   2823 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
   2824 		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
   2825   echo $ECHO_N "(cached) $ECHO_C" >&6
   2826 else
   2827   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
   2828 			    sed -e '/^gcc version /!d' \
   2829 				-e 's/^gcc version //' \
   2830 				-e 's/ .*//' -e 's/^[^0-9]*//' \
   2831 				-e 's/\..*//'`
   2832 fi
   2833 
   2834 		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
   2835 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
   2836 		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
   2837 			    V_CCOPT="-O2"
   2838 		    fi
   2839 	    fi
   2840     else
   2841 	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
   2842 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
   2843 	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
   2844   echo $ECHO_N "(cached) $ECHO_C" >&6
   2845 else
   2846 
   2847 cat >conftest.$ac_ext <<_ACEOF
   2848 /* confdefs.h.  */
   2849 _ACEOF
   2850 cat confdefs.h >>conftest.$ac_ext
   2851 cat >>conftest.$ac_ext <<_ACEOF
   2852 /* end confdefs.h.  */
   2853 #include <sys/types.h>
   2854 int
   2855 main ()
   2856 {
   2857 int frob(int, char *)
   2858   ;
   2859   return 0;
   2860 }
   2861 _ACEOF
   2862 rm -f conftest.$ac_objext
   2863 if { (ac_try="$ac_compile"
   2864 case "(($ac_try" in
   2865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2866   *) ac_try_echo=$ac_try;;
   2867 esac
   2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2869   (eval "$ac_compile") 2>conftest.er1
   2870   ac_status=$?
   2871   grep -v '^ *+' conftest.er1 >conftest.err
   2872   rm -f conftest.er1
   2873   cat conftest.err >&5
   2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2875   (exit $ac_status); } && {
   2876 	 test -z "$ac_c_werror_flag" ||
   2877 	 test ! -s conftest.err
   2878        } && test -s conftest.$ac_objext; then
   2879   ac_cv_lbl_cc_ansi_prototypes=yes
   2880 else
   2881   echo "$as_me: failed program was:" >&5
   2882 sed 's/^/| /' conftest.$ac_ext >&5
   2883 
   2884 	ac_cv_lbl_cc_ansi_prototypes=no
   2885 fi
   2886 
   2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2888 fi
   2889 
   2890 	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
   2891 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
   2892 	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
   2893 		    case "$host_os" in
   2894 
   2895 		    hpux*)
   2896 			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
   2897 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
   2898 			    savedcflags="$CFLAGS"
   2899 			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
   2900 			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
   2901   echo $ECHO_N "(cached) $ECHO_C" >&6
   2902 else
   2903   cat >conftest.$ac_ext <<_ACEOF
   2904 /* confdefs.h.  */
   2905 _ACEOF
   2906 cat confdefs.h >>conftest.$ac_ext
   2907 cat >>conftest.$ac_ext <<_ACEOF
   2908 /* end confdefs.h.  */
   2909 #include <sys/types.h>
   2910 int
   2911 main ()
   2912 {
   2913 int frob(int, char *)
   2914   ;
   2915   return 0;
   2916 }
   2917 _ACEOF
   2918 rm -f conftest.$ac_objext
   2919 if { (ac_try="$ac_compile"
   2920 case "(($ac_try" in
   2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2922   *) ac_try_echo=$ac_try;;
   2923 esac
   2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2925   (eval "$ac_compile") 2>conftest.er1
   2926   ac_status=$?
   2927   grep -v '^ *+' conftest.er1 >conftest.err
   2928   rm -f conftest.er1
   2929   cat conftest.err >&5
   2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2931   (exit $ac_status); } && {
   2932 	 test -z "$ac_c_werror_flag" ||
   2933 	 test ! -s conftest.err
   2934        } && test -s conftest.$ac_objext; then
   2935   ac_cv_lbl_cc_hpux_cc_aa=yes
   2936 else
   2937   echo "$as_me: failed program was:" >&5
   2938 sed 's/^/| /' conftest.$ac_ext >&5
   2939 
   2940 	ac_cv_lbl_cc_hpux_cc_aa=no
   2941 fi
   2942 
   2943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2944 fi
   2945 
   2946 			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
   2947 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
   2948 			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
   2949 				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
   2950 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
   2951    { (exit 1); exit 1; }; }
   2952 			    fi
   2953 			    CFLAGS="$savedcflags"
   2954 			    V_CCOPT="-Aa $V_CCOPT"
   2955 			    cat >>confdefs.h <<\_ACEOF
   2956 #define _HPUX_SOURCE 1
   2957 _ACEOF
   2958 
   2959 			    ;;
   2960 
   2961 		    *)
   2962 			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
   2963 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
   2964    { (exit 1); exit 1; }; }
   2965 			    ;;
   2966 		    esac
   2967 	    fi
   2968 	    V_INCLS="$V_INCLS -I/usr/local/include"
   2969 	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   2970 
   2971 	    case "$host_os" in
   2972 
   2973 	    irix*)
   2974 		    V_CCOPT="$V_CCOPT -xansi -signed -O"
   2975 		    ;;
   2976 
   2977 	    osf*)
   2978 		    V_CCOPT="$V_CCOPT -std1 -O"
   2979 		    ;;
   2980 
   2981 	    ultrix*)
   2982 		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
   2983 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
   2984 		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
   2985   echo $ECHO_N "(cached) $ECHO_C" >&6
   2986 else
   2987   cat >conftest.$ac_ext <<_ACEOF
   2988 /* confdefs.h.  */
   2989 _ACEOF
   2990 cat confdefs.h >>conftest.$ac_ext
   2991 cat >>conftest.$ac_ext <<_ACEOF
   2992 /* end confdefs.h.  */
   2993 #include <sys/types.h>
   2994 int
   2995 main ()
   2996 {
   2997 struct a { int b; };
   2998 			    void c(const struct a *)
   2999   ;
   3000   return 0;
   3001 }
   3002 _ACEOF
   3003 rm -f conftest.$ac_objext
   3004 if { (ac_try="$ac_compile"
   3005 case "(($ac_try" in
   3006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3007   *) ac_try_echo=$ac_try;;
   3008 esac
   3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3010   (eval "$ac_compile") 2>conftest.er1
   3011   ac_status=$?
   3012   grep -v '^ *+' conftest.er1 >conftest.err
   3013   rm -f conftest.er1
   3014   cat conftest.err >&5
   3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3016   (exit $ac_status); } && {
   3017 	 test -z "$ac_c_werror_flag" ||
   3018 	 test ! -s conftest.err
   3019        } && test -s conftest.$ac_objext; then
   3020   ac_cv_lbl_cc_const_proto=yes
   3021 else
   3022   echo "$as_me: failed program was:" >&5
   3023 sed 's/^/| /' conftest.$ac_ext >&5
   3024 
   3025 	ac_cv_lbl_cc_const_proto=no
   3026 fi
   3027 
   3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3029 fi
   3030 
   3031 		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
   3032 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
   3033 		    if test $ac_cv_lbl_cc_const_proto = no ; then
   3034 			    cat >>confdefs.h <<\_ACEOF
   3035 #define const
   3036 _ACEOF
   3037 
   3038 		    fi
   3039 		    ;;
   3040 	    esac
   3041     fi
   3042 
   3043 { echo "$as_me:$LINENO: checking for inline" >&5
   3044 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
   3045     if test "${ac_cv_lbl_inline+set}" = set; then
   3046   echo $ECHO_N "(cached) $ECHO_C" >&6
   3047 else
   3048 
   3049 	ac_cv_lbl_inline=""
   3050 	ac_lbl_cc_inline=no
   3051 	for ac_lbl_inline in inline __inline__ __inline
   3052 	do
   3053 	    cat >conftest.$ac_ext <<_ACEOF
   3054 /* confdefs.h.  */
   3055 _ACEOF
   3056 cat confdefs.h >>conftest.$ac_ext
   3057 cat >>conftest.$ac_ext <<_ACEOF
   3058 /* end confdefs.h.  */
   3059 #define inline $ac_lbl_inline
   3060 		static inline struct iltest *foo(void);
   3061 		struct iltest {
   3062 		    int iltest1;
   3063 		    int iltest2;
   3064 		};
   3065 
   3066 		static inline struct iltest *
   3067 		foo()
   3068 		{
   3069 		    static struct iltest xxx;
   3070 
   3071 		    return &xxx;
   3072 		}
   3073 int
   3074 main ()
   3075 {
   3076 
   3077   ;
   3078   return 0;
   3079 }
   3080 _ACEOF
   3081 rm -f conftest.$ac_objext
   3082 if { (ac_try="$ac_compile"
   3083 case "(($ac_try" in
   3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3085   *) ac_try_echo=$ac_try;;
   3086 esac
   3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3088   (eval "$ac_compile") 2>conftest.er1
   3089   ac_status=$?
   3090   grep -v '^ *+' conftest.er1 >conftest.err
   3091   rm -f conftest.er1
   3092   cat conftest.err >&5
   3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3094   (exit $ac_status); } && {
   3095 	 test -z "$ac_c_werror_flag" ||
   3096 	 test ! -s conftest.err
   3097        } && test -s conftest.$ac_objext; then
   3098   ac_lbl_cc_inline=yes
   3099 else
   3100   echo "$as_me: failed program was:" >&5
   3101 sed 's/^/| /' conftest.$ac_ext >&5
   3102 
   3103 
   3104 fi
   3105 
   3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3107 	    if test "$ac_lbl_cc_inline" = yes ; then
   3108 		break;
   3109 	    fi
   3110 	done
   3111 	if test "$ac_lbl_cc_inline" = yes ; then
   3112 	    ac_cv_lbl_inline=$ac_lbl_inline
   3113 	fi
   3114 fi
   3115 
   3116     if test ! -z "$ac_cv_lbl_inline" ; then
   3117 	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
   3118 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
   3119     else
   3120 	{ echo "$as_me:$LINENO: result: no" >&5
   3121 echo "${ECHO_T}no" >&6; }
   3122     fi
   3123 
   3124 cat >>confdefs.h <<_ACEOF
   3125 #define inline $ac_cv_lbl_inline
   3126 _ACEOF
   3127 
   3128 
   3129 { echo "$as_me:$LINENO: checking for __attribute__" >&5
   3130 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
   3131 if test "${ac_cv___attribute__+set}" = set; then
   3132   echo $ECHO_N "(cached) $ECHO_C" >&6
   3133 else
   3134 
   3135 cat >conftest.$ac_ext <<_ACEOF
   3136 /* confdefs.h.  */
   3137 _ACEOF
   3138 cat confdefs.h >>conftest.$ac_ext
   3139 cat >>conftest.$ac_ext <<_ACEOF
   3140 /* end confdefs.h.  */
   3141 
   3142 #include <stdlib.h>
   3143 
   3144 static void foo(void) __attribute__ ((noreturn));
   3145 
   3146 static void
   3147 foo(void)
   3148 {
   3149   exit(1);
   3150 }
   3151 
   3152 int
   3153 main(int argc, char **argv)
   3154 {
   3155   foo();
   3156 }
   3157 
   3158 _ACEOF
   3159 rm -f conftest.$ac_objext
   3160 if { (ac_try="$ac_compile"
   3161 case "(($ac_try" in
   3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3163   *) ac_try_echo=$ac_try;;
   3164 esac
   3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3166   (eval "$ac_compile") 2>conftest.er1
   3167   ac_status=$?
   3168   grep -v '^ *+' conftest.er1 >conftest.err
   3169   rm -f conftest.er1
   3170   cat conftest.err >&5
   3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3172   (exit $ac_status); } && {
   3173 	 test -z "$ac_c_werror_flag" ||
   3174 	 test ! -s conftest.err
   3175        } && test -s conftest.$ac_objext; then
   3176   ac_cv___attribute__=yes
   3177 else
   3178   echo "$as_me: failed program was:" >&5
   3179 sed 's/^/| /' conftest.$ac_ext >&5
   3180 
   3181 	ac_cv___attribute__=no
   3182 fi
   3183 
   3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3185 fi
   3186 
   3187 if test "$ac_cv___attribute__" = "yes"; then
   3188 
   3189 cat >>confdefs.h <<\_ACEOF
   3190 #define HAVE___ATTRIBUTE__ 1
   3191 _ACEOF
   3192 
   3193   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
   3194 else
   3195   V_DEFS="$V_DEFS -D_U_=\"\""
   3196 fi
   3197 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
   3198 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
   3199 
   3200 ac_ext=c
   3201 ac_cpp='$CPP $CPPFLAGS'
   3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3205 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3206 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   3207 # On Suns, sometimes $CPP names a directory.
   3208 if test -n "$CPP" && test -d "$CPP"; then
   3209   CPP=
   3210 fi
   3211 if test -z "$CPP"; then
   3212   if test "${ac_cv_prog_CPP+set}" = set; then
   3213   echo $ECHO_N "(cached) $ECHO_C" >&6
   3214 else
   3215       # Double quotes because CPP needs to be expanded
   3216     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3217     do
   3218       ac_preproc_ok=false
   3219 for ac_c_preproc_warn_flag in '' yes
   3220 do
   3221   # Use a header file that comes with gcc, so configuring glibc
   3222   # with a fresh cross-compiler works.
   3223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3224   # <limits.h> exists even on freestanding compilers.
   3225   # On the NeXT, cc -E runs the code through the compiler's parser,
   3226   # not just through cpp. "Syntax error" is here to catch this case.
   3227   cat >conftest.$ac_ext <<_ACEOF
   3228 /* confdefs.h.  */
   3229 _ACEOF
   3230 cat confdefs.h >>conftest.$ac_ext
   3231 cat >>conftest.$ac_ext <<_ACEOF
   3232 /* end confdefs.h.  */
   3233 #ifdef __STDC__
   3234 # include <limits.h>
   3235 #else
   3236 # include <assert.h>
   3237 #endif
   3238 		     Syntax error
   3239 _ACEOF
   3240 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3241 case "(($ac_try" in
   3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3243   *) ac_try_echo=$ac_try;;
   3244 esac
   3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3247   ac_status=$?
   3248   grep -v '^ *+' conftest.er1 >conftest.err
   3249   rm -f conftest.er1
   3250   cat conftest.err >&5
   3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3252   (exit $ac_status); } >/dev/null && {
   3253 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3254 	 test ! -s conftest.err
   3255        }; then
   3256   :
   3257 else
   3258   echo "$as_me: failed program was:" >&5
   3259 sed 's/^/| /' conftest.$ac_ext >&5
   3260 
   3261   # Broken: fails on valid input.
   3262 continue
   3263 fi
   3264 
   3265 rm -f conftest.err conftest.$ac_ext
   3266 
   3267   # OK, works on sane cases.  Now check whether nonexistent headers
   3268   # can be detected and how.
   3269   cat >conftest.$ac_ext <<_ACEOF
   3270 /* confdefs.h.  */
   3271 _ACEOF
   3272 cat confdefs.h >>conftest.$ac_ext
   3273 cat >>conftest.$ac_ext <<_ACEOF
   3274 /* end confdefs.h.  */
   3275 #include <ac_nonexistent.h>
   3276 _ACEOF
   3277 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3278 case "(($ac_try" in
   3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3280   *) ac_try_echo=$ac_try;;
   3281 esac
   3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3284   ac_status=$?
   3285   grep -v '^ *+' conftest.er1 >conftest.err
   3286   rm -f conftest.er1
   3287   cat conftest.err >&5
   3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3289   (exit $ac_status); } >/dev/null && {
   3290 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3291 	 test ! -s conftest.err
   3292        }; then
   3293   # Broken: success on invalid input.
   3294 continue
   3295 else
   3296   echo "$as_me: failed program was:" >&5
   3297 sed 's/^/| /' conftest.$ac_ext >&5
   3298 
   3299   # Passes both tests.
   3300 ac_preproc_ok=:
   3301 break
   3302 fi
   3303 
   3304 rm -f conftest.err conftest.$ac_ext
   3305 
   3306 done
   3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3308 rm -f conftest.err conftest.$ac_ext
   3309 if $ac_preproc_ok; then
   3310   break
   3311 fi
   3312 
   3313     done
   3314     ac_cv_prog_CPP=$CPP
   3315 
   3316 fi
   3317   CPP=$ac_cv_prog_CPP
   3318 else
   3319   ac_cv_prog_CPP=$CPP
   3320 fi
   3321 { echo "$as_me:$LINENO: result: $CPP" >&5
   3322 echo "${ECHO_T}$CPP" >&6; }
   3323 ac_preproc_ok=false
   3324 for ac_c_preproc_warn_flag in '' yes
   3325 do
   3326   # Use a header file that comes with gcc, so configuring glibc
   3327   # with a fresh cross-compiler works.
   3328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3329   # <limits.h> exists even on freestanding compilers.
   3330   # On the NeXT, cc -E runs the code through the compiler's parser,
   3331   # not just through cpp. "Syntax error" is here to catch this case.
   3332   cat >conftest.$ac_ext <<_ACEOF
   3333 /* confdefs.h.  */
   3334 _ACEOF
   3335 cat confdefs.h >>conftest.$ac_ext
   3336 cat >>conftest.$ac_ext <<_ACEOF
   3337 /* end confdefs.h.  */
   3338 #ifdef __STDC__
   3339 # include <limits.h>
   3340 #else
   3341 # include <assert.h>
   3342 #endif
   3343 		     Syntax error
   3344 _ACEOF
   3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3346 case "(($ac_try" in
   3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3348   *) ac_try_echo=$ac_try;;
   3349 esac
   3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3352   ac_status=$?
   3353   grep -v '^ *+' conftest.er1 >conftest.err
   3354   rm -f conftest.er1
   3355   cat conftest.err >&5
   3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3357   (exit $ac_status); } >/dev/null && {
   3358 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3359 	 test ! -s conftest.err
   3360        }; then
   3361   :
   3362 else
   3363   echo "$as_me: failed program was:" >&5
   3364 sed 's/^/| /' conftest.$ac_ext >&5
   3365 
   3366   # Broken: fails on valid input.
   3367 continue
   3368 fi
   3369 
   3370 rm -f conftest.err conftest.$ac_ext
   3371 
   3372   # OK, works on sane cases.  Now check whether nonexistent headers
   3373   # can be detected and how.
   3374   cat >conftest.$ac_ext <<_ACEOF
   3375 /* confdefs.h.  */
   3376 _ACEOF
   3377 cat confdefs.h >>conftest.$ac_ext
   3378 cat >>conftest.$ac_ext <<_ACEOF
   3379 /* end confdefs.h.  */
   3380 #include <ac_nonexistent.h>
   3381 _ACEOF
   3382 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3383 case "(($ac_try" in
   3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3385   *) ac_try_echo=$ac_try;;
   3386 esac
   3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3389   ac_status=$?
   3390   grep -v '^ *+' conftest.er1 >conftest.err
   3391   rm -f conftest.er1
   3392   cat conftest.err >&5
   3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3394   (exit $ac_status); } >/dev/null && {
   3395 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3396 	 test ! -s conftest.err
   3397        }; then
   3398   # Broken: success on invalid input.
   3399 continue
   3400 else
   3401   echo "$as_me: failed program was:" >&5
   3402 sed 's/^/| /' conftest.$ac_ext >&5
   3403 
   3404   # Passes both tests.
   3405 ac_preproc_ok=:
   3406 break
   3407 fi
   3408 
   3409 rm -f conftest.err conftest.$ac_ext
   3410 
   3411 done
   3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3413 rm -f conftest.err conftest.$ac_ext
   3414 if $ac_preproc_ok; then
   3415   :
   3416 else
   3417   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3418 See \`config.log' for more details." >&5
   3419 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3420 See \`config.log' for more details." >&2;}
   3421    { (exit 1); exit 1; }; }
   3422 fi
   3423 
   3424 ac_ext=c
   3425 ac_cpp='$CPP $CPPFLAGS'
   3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3429 
   3430 
   3431 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3432 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3433 if test "${ac_cv_path_GREP+set}" = set; then
   3434   echo $ECHO_N "(cached) $ECHO_C" >&6
   3435 else
   3436   # Extract the first word of "grep ggrep" to use in msg output
   3437 if test -z "$GREP"; then
   3438 set dummy grep ggrep; ac_prog_name=$2
   3439 if test "${ac_cv_path_GREP+set}" = set; then
   3440   echo $ECHO_N "(cached) $ECHO_C" >&6
   3441 else
   3442   ac_path_GREP_found=false
   3443 # Loop through the user's path and test for each of PROGNAME-LIST
   3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3446 do
   3447   IFS=$as_save_IFS
   3448   test -z "$as_dir" && as_dir=.
   3449   for ac_prog in grep ggrep; do
   3450   for ac_exec_ext in '' $ac_executable_extensions; do
   3451     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3452     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3453     # Check for GNU ac_path_GREP and select it if it is found.
   3454   # Check for GNU $ac_path_GREP
   3455 case `"$ac_path_GREP" --version 2>&1` in
   3456 *GNU*)
   3457   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3458 *)
   3459   ac_count=0
   3460   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3461   while :
   3462   do
   3463     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3464     mv "conftest.tmp" "conftest.in"
   3465     cp "conftest.in" "conftest.nl"
   3466     echo 'GREP' >> "conftest.nl"
   3467     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3468     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3469     ac_count=`expr $ac_count + 1`
   3470     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3471       # Best one so far, save it but keep looking for a better one
   3472       ac_cv_path_GREP="$ac_path_GREP"
   3473       ac_path_GREP_max=$ac_count
   3474     fi
   3475     # 10*(2^10) chars as input seems more than enough
   3476     test $ac_count -gt 10 && break
   3477   done
   3478   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3479 esac
   3480 
   3481 
   3482     $ac_path_GREP_found && break 3
   3483   done
   3484 done
   3485 
   3486 done
   3487 IFS=$as_save_IFS
   3488 
   3489 
   3490 fi
   3491 
   3492 GREP="$ac_cv_path_GREP"
   3493 if test -z "$GREP"; then
   3494   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3495 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3496    { (exit 1); exit 1; }; }
   3497 fi
   3498 
   3499 else
   3500   ac_cv_path_GREP=$GREP
   3501 fi
   3502 
   3503 
   3504 fi
   3505 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3506 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3507  GREP="$ac_cv_path_GREP"
   3508 
   3509 
   3510 { echo "$as_me:$LINENO: checking for egrep" >&5
   3511 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3512 if test "${ac_cv_path_EGREP+set}" = set; then
   3513   echo $ECHO_N "(cached) $ECHO_C" >&6
   3514 else
   3515   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3516    then ac_cv_path_EGREP="$GREP -E"
   3517    else
   3518      # Extract the first word of "egrep" to use in msg output
   3519 if test -z "$EGREP"; then
   3520 set dummy egrep; ac_prog_name=$2
   3521 if test "${ac_cv_path_EGREP+set}" = set; then
   3522   echo $ECHO_N "(cached) $ECHO_C" >&6
   3523 else
   3524   ac_path_EGREP_found=false
   3525 # Loop through the user's path and test for each of PROGNAME-LIST
   3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3528 do
   3529   IFS=$as_save_IFS
   3530   test -z "$as_dir" && as_dir=.
   3531   for ac_prog in egrep; do
   3532   for ac_exec_ext in '' $ac_executable_extensions; do
   3533     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3534     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3535     # Check for GNU ac_path_EGREP and select it if it is found.
   3536   # Check for GNU $ac_path_EGREP
   3537 case `"$ac_path_EGREP" --version 2>&1` in
   3538 *GNU*)
   3539   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3540 *)
   3541   ac_count=0
   3542   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3543   while :
   3544   do
   3545     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3546     mv "conftest.tmp" "conftest.in"
   3547     cp "conftest.in" "conftest.nl"
   3548     echo 'EGREP' >> "conftest.nl"
   3549     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3550     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3551     ac_count=`expr $ac_count + 1`
   3552     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3553       # Best one so far, save it but keep looking for a better one
   3554       ac_cv_path_EGREP="$ac_path_EGREP"
   3555       ac_path_EGREP_max=$ac_count
   3556     fi
   3557     # 10*(2^10) chars as input seems more than enough
   3558     test $ac_count -gt 10 && break
   3559   done
   3560   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3561 esac
   3562 
   3563 
   3564     $ac_path_EGREP_found && break 3
   3565   done
   3566 done
   3567 
   3568 done
   3569 IFS=$as_save_IFS
   3570 
   3571 
   3572 fi
   3573 
   3574 EGREP="$ac_cv_path_EGREP"
   3575 if test -z "$EGREP"; then
   3576   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3578    { (exit 1); exit 1; }; }
   3579 fi
   3580 
   3581 else
   3582   ac_cv_path_EGREP=$EGREP
   3583 fi
   3584 
   3585 
   3586    fi
   3587 fi
   3588 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   3589 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   3590  EGREP="$ac_cv_path_EGREP"
   3591 
   3592 
   3593 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   3594 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   3595 if test "${ac_cv_header_stdc+set}" = set; then
   3596   echo $ECHO_N "(cached) $ECHO_C" >&6
   3597 else
   3598   cat >conftest.$ac_ext <<_ACEOF
   3599 /* confdefs.h.  */
   3600 _ACEOF
   3601 cat confdefs.h >>conftest.$ac_ext
   3602 cat >>conftest.$ac_ext <<_ACEOF
   3603 /* end confdefs.h.  */
   3604 #include <stdlib.h>
   3605 #include <stdarg.h>
   3606 #include <string.h>
   3607 #include <float.h>
   3608 
   3609 int
   3610 main ()
   3611 {
   3612 
   3613   ;
   3614   return 0;
   3615 }
   3616 _ACEOF
   3617 rm -f conftest.$ac_objext
   3618 if { (ac_try="$ac_compile"
   3619 case "(($ac_try" in
   3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3621   *) ac_try_echo=$ac_try;;
   3622 esac
   3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3624   (eval "$ac_compile") 2>conftest.er1
   3625   ac_status=$?
   3626   grep -v '^ *+' conftest.er1 >conftest.err
   3627   rm -f conftest.er1
   3628   cat conftest.err >&5
   3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3630   (exit $ac_status); } && {
   3631 	 test -z "$ac_c_werror_flag" ||
   3632 	 test ! -s conftest.err
   3633        } && test -s conftest.$ac_objext; then
   3634   ac_cv_header_stdc=yes
   3635 else
   3636   echo "$as_me: failed program was:" >&5
   3637 sed 's/^/| /' conftest.$ac_ext >&5
   3638 
   3639 	ac_cv_header_stdc=no
   3640 fi
   3641 
   3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3643 
   3644 if test $ac_cv_header_stdc = yes; then
   3645   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3646   cat >conftest.$ac_ext <<_ACEOF
   3647 /* confdefs.h.  */
   3648 _ACEOF
   3649 cat confdefs.h >>conftest.$ac_ext
   3650 cat >>conftest.$ac_ext <<_ACEOF
   3651 /* end confdefs.h.  */
   3652 #include <string.h>
   3653 
   3654 _ACEOF
   3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3656   $EGREP "memchr" >/dev/null 2>&1; then
   3657   :
   3658 else
   3659   ac_cv_header_stdc=no
   3660 fi
   3661 rm -f conftest*
   3662 
   3663 fi
   3664 
   3665 if test $ac_cv_header_stdc = yes; then
   3666   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3667   cat >conftest.$ac_ext <<_ACEOF
   3668 /* confdefs.h.  */
   3669 _ACEOF
   3670 cat confdefs.h >>conftest.$ac_ext
   3671 cat >>conftest.$ac_ext <<_ACEOF
   3672 /* end confdefs.h.  */
   3673 #include <stdlib.h>
   3674 
   3675 _ACEOF
   3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3677   $EGREP "free" >/dev/null 2>&1; then
   3678   :
   3679 else
   3680   ac_cv_header_stdc=no
   3681 fi
   3682 rm -f conftest*
   3683 
   3684 fi
   3685 
   3686 if test $ac_cv_header_stdc = yes; then
   3687   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3688   if test "$cross_compiling" = yes; then
   3689   :
   3690 else
   3691   cat >conftest.$ac_ext <<_ACEOF
   3692 /* confdefs.h.  */
   3693 _ACEOF
   3694 cat confdefs.h >>conftest.$ac_ext
   3695 cat >>conftest.$ac_ext <<_ACEOF
   3696 /* end confdefs.h.  */
   3697 #include <ctype.h>
   3698 #include <stdlib.h>
   3699 #if ((' ' & 0x0FF) == 0x020)
   3700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3702 #else
   3703 # define ISLOWER(c) \
   3704 		   (('a' <= (c) && (c) <= 'i') \
   3705 		     || ('j' <= (c) && (c) <= 'r') \
   3706 		     || ('s' <= (c) && (c) <= 'z'))
   3707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3708 #endif
   3709 
   3710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3711 int
   3712 main ()
   3713 {
   3714   int i;
   3715   for (i = 0; i < 256; i++)
   3716     if (XOR (islower (i), ISLOWER (i))
   3717 	|| toupper (i) != TOUPPER (i))
   3718       return 2;
   3719   return 0;
   3720 }
   3721 _ACEOF
   3722 rm -f conftest$ac_exeext
   3723 if { (ac_try="$ac_link"
   3724 case "(($ac_try" in
   3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3726   *) ac_try_echo=$ac_try;;
   3727 esac
   3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3729   (eval "$ac_link") 2>&5
   3730   ac_status=$?
   3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3733   { (case "(($ac_try" in
   3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3735   *) ac_try_echo=$ac_try;;
   3736 esac
   3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3738   (eval "$ac_try") 2>&5
   3739   ac_status=$?
   3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3741   (exit $ac_status); }; }; then
   3742   :
   3743 else
   3744   echo "$as_me: program exited with status $ac_status" >&5
   3745 echo "$as_me: failed program was:" >&5
   3746 sed 's/^/| /' conftest.$ac_ext >&5
   3747 
   3748 ( exit $ac_status )
   3749 ac_cv_header_stdc=no
   3750 fi
   3751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3752 fi
   3753 
   3754 
   3755 fi
   3756 fi
   3757 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   3758 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   3759 if test $ac_cv_header_stdc = yes; then
   3760 
   3761 cat >>confdefs.h <<\_ACEOF
   3762 #define STDC_HEADERS 1
   3763 _ACEOF
   3764 
   3765 fi
   3766 
   3767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3768 
   3769 
   3770 
   3771 
   3772 
   3773 
   3774 
   3775 
   3776 
   3777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3778 		  inttypes.h stdint.h unistd.h
   3779 do
   3780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   3782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   3783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   3784   echo $ECHO_N "(cached) $ECHO_C" >&6
   3785 else
   3786   cat >conftest.$ac_ext <<_ACEOF
   3787 /* confdefs.h.  */
   3788 _ACEOF
   3789 cat confdefs.h >>conftest.$ac_ext
   3790 cat >>conftest.$ac_ext <<_ACEOF
   3791 /* end confdefs.h.  */
   3792 $ac_includes_default
   3793 
   3794 #include <$ac_header>
   3795 _ACEOF
   3796 rm -f conftest.$ac_objext
   3797 if { (ac_try="$ac_compile"
   3798 case "(($ac_try" in
   3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3800   *) ac_try_echo=$ac_try;;
   3801 esac
   3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3803   (eval "$ac_compile") 2>conftest.er1
   3804   ac_status=$?
   3805   grep -v '^ *+' conftest.er1 >conftest.err
   3806   rm -f conftest.er1
   3807   cat conftest.err >&5
   3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3809   (exit $ac_status); } && {
   3810 	 test -z "$ac_c_werror_flag" ||
   3811 	 test ! -s conftest.err
   3812        } && test -s conftest.$ac_objext; then
   3813   eval "$as_ac_Header=yes"
   3814 else
   3815   echo "$as_me: failed program was:" >&5
   3816 sed 's/^/| /' conftest.$ac_ext >&5
   3817 
   3818 	eval "$as_ac_Header=no"
   3819 fi
   3820 
   3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3822 fi
   3823 ac_res=`eval echo '${'$as_ac_Header'}'`
   3824 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   3825 echo "${ECHO_T}$ac_res" >&6; }
   3826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3827   cat >>confdefs.h <<_ACEOF
   3828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3829 _ACEOF
   3830 
   3831 fi
   3832 
   3833 done
   3834 
   3835 
   3836 
   3837 
   3838 
   3839 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
   3840 do
   3841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   3843   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   3844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   3845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   3846   echo $ECHO_N "(cached) $ECHO_C" >&6
   3847 fi
   3848 ac_res=`eval echo '${'$as_ac_Header'}'`
   3849 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   3850 echo "${ECHO_T}$ac_res" >&6; }
   3851 else
   3852   # Is the header compilable?
   3853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   3854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   3855 cat >conftest.$ac_ext <<_ACEOF
   3856 /* confdefs.h.  */
   3857 _ACEOF
   3858 cat confdefs.h >>conftest.$ac_ext
   3859 cat >>conftest.$ac_ext <<_ACEOF
   3860 /* end confdefs.h.  */
   3861 $ac_includes_default
   3862 #include <$ac_header>
   3863 _ACEOF
   3864 rm -f conftest.$ac_objext
   3865 if { (ac_try="$ac_compile"
   3866 case "(($ac_try" in
   3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3868   *) ac_try_echo=$ac_try;;
   3869 esac
   3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3871   (eval "$ac_compile") 2>conftest.er1
   3872   ac_status=$?
   3873   grep -v '^ *+' conftest.er1 >conftest.err
   3874   rm -f conftest.er1
   3875   cat conftest.err >&5
   3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3877   (exit $ac_status); } && {
   3878 	 test -z "$ac_c_werror_flag" ||
   3879 	 test ! -s conftest.err
   3880        } && test -s conftest.$ac_objext; then
   3881   ac_header_compiler=yes
   3882 else
   3883   echo "$as_me: failed program was:" >&5
   3884 sed 's/^/| /' conftest.$ac_ext >&5
   3885 
   3886 	ac_header_compiler=no
   3887 fi
   3888 
   3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   3891 echo "${ECHO_T}$ac_header_compiler" >&6; }
   3892 
   3893 # Is the header present?
   3894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   3895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   3896 cat >conftest.$ac_ext <<_ACEOF
   3897 /* confdefs.h.  */
   3898 _ACEOF
   3899 cat confdefs.h >>conftest.$ac_ext
   3900 cat >>conftest.$ac_ext <<_ACEOF
   3901 /* end confdefs.h.  */
   3902 #include <$ac_header>
   3903 _ACEOF
   3904 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3905 case "(($ac_try" in
   3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3907   *) ac_try_echo=$ac_try;;
   3908 esac
   3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3911   ac_status=$?
   3912   grep -v '^ *+' conftest.er1 >conftest.err
   3913   rm -f conftest.er1
   3914   cat conftest.err >&5
   3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3916   (exit $ac_status); } >/dev/null && {
   3917 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3918 	 test ! -s conftest.err
   3919        }; then
   3920   ac_header_preproc=yes
   3921 else
   3922   echo "$as_me: failed program was:" >&5
   3923 sed 's/^/| /' conftest.$ac_ext >&5
   3924 
   3925   ac_header_preproc=no
   3926 fi
   3927 
   3928 rm -f conftest.err conftest.$ac_ext
   3929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   3930 echo "${ECHO_T}$ac_header_preproc" >&6; }
   3931 
   3932 # So?  What about this header?
   3933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   3934   yes:no: )
   3935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   3936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   3937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   3938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   3939     ac_header_preproc=yes
   3940     ;;
   3941   no:yes:* )
   3942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   3943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   3944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   3945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   3946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   3947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   3948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   3949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   3950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   3951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   3952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   3953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   3954 
   3955     ;;
   3956 esac
   3957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   3958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   3959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   3960   echo $ECHO_N "(cached) $ECHO_C" >&6
   3961 else
   3962   eval "$as_ac_Header=\$ac_header_preproc"
   3963 fi
   3964 ac_res=`eval echo '${'$as_ac_Header'}'`
   3965 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   3966 echo "${ECHO_T}$ac_res" >&6; }
   3967 
   3968 fi
   3969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3970   cat >>confdefs.h <<_ACEOF
   3971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3972 _ACEOF
   3973 
   3974 fi
   3975 
   3976 done
   3977 
   3978 
   3979 for ac_header in net/pfvar.h
   3980 do
   3981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   3983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   3984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   3985   echo $ECHO_N "(cached) $ECHO_C" >&6
   3986 else
   3987   cat >conftest.$ac_ext <<_ACEOF
   3988 /* confdefs.h.  */
   3989 _ACEOF
   3990 cat confdefs.h >>conftest.$ac_ext
   3991 cat >>conftest.$ac_ext <<_ACEOF
   3992 /* end confdefs.h.  */
   3993 #include <sys/types.h>
   3994 #include <sys/socket.h>
   3995 #include <net/if.h>
   3996 
   3997 #include <$ac_header>
   3998 _ACEOF
   3999 rm -f conftest.$ac_objext
   4000 if { (ac_try="$ac_compile"
   4001 case "(($ac_try" in
   4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4003   *) ac_try_echo=$ac_try;;
   4004 esac
   4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4006   (eval "$ac_compile") 2>conftest.er1
   4007   ac_status=$?
   4008   grep -v '^ *+' conftest.er1 >conftest.err
   4009   rm -f conftest.er1
   4010   cat conftest.err >&5
   4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4012   (exit $ac_status); } && {
   4013 	 test -z "$ac_c_werror_flag" ||
   4014 	 test ! -s conftest.err
   4015        } && test -s conftest.$ac_objext; then
   4016   eval "$as_ac_Header=yes"
   4017 else
   4018   echo "$as_me: failed program was:" >&5
   4019 sed 's/^/| /' conftest.$ac_ext >&5
   4020 
   4021 	eval "$as_ac_Header=no"
   4022 fi
   4023 
   4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4025 fi
   4026 ac_res=`eval echo '${'$as_ac_Header'}'`
   4027 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4028 echo "${ECHO_T}$ac_res" >&6; }
   4029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4030   cat >>confdefs.h <<_ACEOF
   4031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4032 _ACEOF
   4033 
   4034 fi
   4035 
   4036 done
   4037 
   4038 if test "$ac_cv_header_net_pfvar_h" == yes; then
   4039 	LOCALSRC="print-pflog.c $LOCALSRC"
   4040 fi
   4041 
   4042 for ac_header in netinet/if_ether.h
   4043 do
   4044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4048   echo $ECHO_N "(cached) $ECHO_C" >&6
   4049 else
   4050   cat >conftest.$ac_ext <<_ACEOF
   4051 /* confdefs.h.  */
   4052 _ACEOF
   4053 cat confdefs.h >>conftest.$ac_ext
   4054 cat >>conftest.$ac_ext <<_ACEOF
   4055 /* end confdefs.h.  */
   4056 #include <sys/types.h>
   4057 #include <sys/socket.h>
   4058 
   4059 #include <$ac_header>
   4060 _ACEOF
   4061 rm -f conftest.$ac_objext
   4062 if { (ac_try="$ac_compile"
   4063 case "(($ac_try" in
   4064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4065   *) ac_try_echo=$ac_try;;
   4066 esac
   4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4068   (eval "$ac_compile") 2>conftest.er1
   4069   ac_status=$?
   4070   grep -v '^ *+' conftest.er1 >conftest.err
   4071   rm -f conftest.er1
   4072   cat conftest.err >&5
   4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4074   (exit $ac_status); } && {
   4075 	 test -z "$ac_c_werror_flag" ||
   4076 	 test ! -s conftest.err
   4077        } && test -s conftest.$ac_objext; then
   4078   eval "$as_ac_Header=yes"
   4079 else
   4080   echo "$as_me: failed program was:" >&5
   4081 sed 's/^/| /' conftest.$ac_ext >&5
   4082 
   4083 	eval "$as_ac_Header=no"
   4084 fi
   4085 
   4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4087 fi
   4088 ac_res=`eval echo '${'$as_ac_Header'}'`
   4089 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4090 echo "${ECHO_T}$ac_res" >&6; }
   4091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4092   cat >>confdefs.h <<_ACEOF
   4093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4094 _ACEOF
   4095 
   4096 fi
   4097 
   4098 done
   4099 
   4100 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
   4101 	#
   4102 	# The simple test didn't work.
   4103 	# Do we need to include <net/if.h> first?
   4104 	# Unset ac_cv_header_netinet_if_ether_h so we don't
   4105 	# treat the previous failure as a cached value and
   4106 	# suppress the next test.
   4107 	#
   4108 	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
   4109 echo "$as_me: Rechecking with some additional includes" >&6;}
   4110 	unset ac_cv_header_netinet_if_ether_h
   4111 
   4112 for ac_header in netinet/if_ether.h
   4113 do
   4114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4118   echo $ECHO_N "(cached) $ECHO_C" >&6
   4119 else
   4120   cat >conftest.$ac_ext <<_ACEOF
   4121 /* confdefs.h.  */
   4122 _ACEOF
   4123 cat confdefs.h >>conftest.$ac_ext
   4124 cat >>conftest.$ac_ext <<_ACEOF
   4125 /* end confdefs.h.  */
   4126 #include <sys/types.h>
   4127 #include <sys/socket.h>
   4128 #include <netinet/in.h>
   4129 struct mbuf;
   4130 struct rtentry;
   4131 #include <net/if.h>
   4132 
   4133 #include <$ac_header>
   4134 _ACEOF
   4135 rm -f conftest.$ac_objext
   4136 if { (ac_try="$ac_compile"
   4137 case "(($ac_try" in
   4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4139   *) ac_try_echo=$ac_try;;
   4140 esac
   4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4142   (eval "$ac_compile") 2>conftest.er1
   4143   ac_status=$?
   4144   grep -v '^ *+' conftest.er1 >conftest.err
   4145   rm -f conftest.er1
   4146   cat conftest.err >&5
   4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4148   (exit $ac_status); } && {
   4149 	 test -z "$ac_c_werror_flag" ||
   4150 	 test ! -s conftest.err
   4151        } && test -s conftest.$ac_objext; then
   4152   eval "$as_ac_Header=yes"
   4153 else
   4154   echo "$as_me: failed program was:" >&5
   4155 sed 's/^/| /' conftest.$ac_ext >&5
   4156 
   4157 	eval "$as_ac_Header=no"
   4158 fi
   4159 
   4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4161 fi
   4162 ac_res=`eval echo '${'$as_ac_Header'}'`
   4163 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4164 echo "${ECHO_T}$ac_res" >&6; }
   4165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4166   cat >>confdefs.h <<_ACEOF
   4167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4168 _ACEOF
   4169 
   4170 fi
   4171 
   4172 done
   4173 
   4174 fi
   4175 
   4176 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
   4177 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
   4178 if test "${ac_cv_header_time+set}" = set; then
   4179   echo $ECHO_N "(cached) $ECHO_C" >&6
   4180 else
   4181   cat >conftest.$ac_ext <<_ACEOF
   4182 /* confdefs.h.  */
   4183 _ACEOF
   4184 cat confdefs.h >>conftest.$ac_ext
   4185 cat >>conftest.$ac_ext <<_ACEOF
   4186 /* end confdefs.h.  */
   4187 #include <sys/types.h>
   4188 #include <sys/time.h>
   4189 #include <time.h>
   4190 
   4191 int
   4192 main ()
   4193 {
   4194 if ((struct tm *) 0)
   4195 return 0;
   4196   ;
   4197   return 0;
   4198 }
   4199 _ACEOF
   4200 rm -f conftest.$ac_objext
   4201 if { (ac_try="$ac_compile"
   4202 case "(($ac_try" in
   4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4204   *) ac_try_echo=$ac_try;;
   4205 esac
   4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4207   (eval "$ac_compile") 2>conftest.er1
   4208   ac_status=$?
   4209   grep -v '^ *+' conftest.er1 >conftest.err
   4210   rm -f conftest.er1
   4211   cat conftest.err >&5
   4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4213   (exit $ac_status); } && {
   4214 	 test -z "$ac_c_werror_flag" ||
   4215 	 test ! -s conftest.err
   4216        } && test -s conftest.$ac_objext; then
   4217   ac_cv_header_time=yes
   4218 else
   4219   echo "$as_me: failed program was:" >&5
   4220 sed 's/^/| /' conftest.$ac_ext >&5
   4221 
   4222 	ac_cv_header_time=no
   4223 fi
   4224 
   4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4226 fi
   4227 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
   4228 echo "${ECHO_T}$ac_cv_header_time" >&6; }
   4229 if test $ac_cv_header_time = yes; then
   4230 
   4231 cat >>confdefs.h <<\_ACEOF
   4232 #define TIME_WITH_SYS_TIME 1
   4233 _ACEOF
   4234 
   4235 fi
   4236 
   4237 
   4238 case "$host_os" in
   4239 
   4240 linux*)
   4241 	{ echo "$as_me:$LINENO: checking Linux kernel version" >&5
   4242 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
   4243  	if test "$cross_compiling" = yes; then
   4244  		if test "${ac_cv_linux_vers+set}" = set; then
   4245   echo $ECHO_N "(cached) $ECHO_C" >&6
   4246 else
   4247   ac_cv_linux_vers=unknown
   4248 fi
   4249 
   4250  	else
   4251  		if test "${ac_cv_linux_vers+set}" = set; then
   4252   echo $ECHO_N "(cached) $ECHO_C" >&6
   4253 else
   4254   ac_cv_linux_vers=`uname -r 2>&1 | \
   4255  			sed -n -e '$s/.* //' -e '$s/\..*//p'`
   4256 fi
   4257 
   4258  	fi
   4259 	{ echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
   4260 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
   4261  	if test $ac_cv_linux_vers = unknown ; then
   4262  		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
   4263 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
   4264    { (exit 1); exit 1; }; }
   4265  	fi
   4266 	if test $ac_cv_linux_vers -lt 2 ; then
   4267 		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
   4268 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
   4269    { (exit 1); exit 1; }; }
   4270 	fi
   4271 	;;
   4272 
   4273 *)
   4274 	;;
   4275 esac
   4276 
   4277 
   4278 
   4279 for ac_header in smi.h
   4280 do
   4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4283   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4286   echo $ECHO_N "(cached) $ECHO_C" >&6
   4287 fi
   4288 ac_res=`eval echo '${'$as_ac_Header'}'`
   4289 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4290 echo "${ECHO_T}$ac_res" >&6; }
   4291 else
   4292   # Is the header compilable?
   4293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   4294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   4295 cat >conftest.$ac_ext <<_ACEOF
   4296 /* confdefs.h.  */
   4297 _ACEOF
   4298 cat confdefs.h >>conftest.$ac_ext
   4299 cat >>conftest.$ac_ext <<_ACEOF
   4300 /* end confdefs.h.  */
   4301 $ac_includes_default
   4302 #include <$ac_header>
   4303 _ACEOF
   4304 rm -f conftest.$ac_objext
   4305 if { (ac_try="$ac_compile"
   4306 case "(($ac_try" in
   4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4308   *) ac_try_echo=$ac_try;;
   4309 esac
   4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4311   (eval "$ac_compile") 2>conftest.er1
   4312   ac_status=$?
   4313   grep -v '^ *+' conftest.er1 >conftest.err
   4314   rm -f conftest.er1
   4315   cat conftest.err >&5
   4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4317   (exit $ac_status); } && {
   4318 	 test -z "$ac_c_werror_flag" ||
   4319 	 test ! -s conftest.err
   4320        } && test -s conftest.$ac_objext; then
   4321   ac_header_compiler=yes
   4322 else
   4323   echo "$as_me: failed program was:" >&5
   4324 sed 's/^/| /' conftest.$ac_ext >&5
   4325 
   4326 	ac_header_compiler=no
   4327 fi
   4328 
   4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   4331 echo "${ECHO_T}$ac_header_compiler" >&6; }
   4332 
   4333 # Is the header present?
   4334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   4335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   4336 cat >conftest.$ac_ext <<_ACEOF
   4337 /* confdefs.h.  */
   4338 _ACEOF
   4339 cat confdefs.h >>conftest.$ac_ext
   4340 cat >>conftest.$ac_ext <<_ACEOF
   4341 /* end confdefs.h.  */
   4342 #include <$ac_header>
   4343 _ACEOF
   4344 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4345 case "(($ac_try" in
   4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4347   *) ac_try_echo=$ac_try;;
   4348 esac
   4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4351   ac_status=$?
   4352   grep -v '^ *+' conftest.er1 >conftest.err
   4353   rm -f conftest.er1
   4354   cat conftest.err >&5
   4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4356   (exit $ac_status); } >/dev/null && {
   4357 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4358 	 test ! -s conftest.err
   4359        }; then
   4360   ac_header_preproc=yes
   4361 else
   4362   echo "$as_me: failed program was:" >&5
   4363 sed 's/^/| /' conftest.$ac_ext >&5
   4364 
   4365   ac_header_preproc=no
   4366 fi
   4367 
   4368 rm -f conftest.err conftest.$ac_ext
   4369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   4370 echo "${ECHO_T}$ac_header_preproc" >&6; }
   4371 
   4372 # So?  What about this header?
   4373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   4374   yes:no: )
   4375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   4376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   4377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   4378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   4379     ac_header_preproc=yes
   4380     ;;
   4381   no:yes:* )
   4382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   4383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   4384     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   4385 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   4386     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   4387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   4388     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   4389 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   4390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   4391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   4392     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   4393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   4394 
   4395     ;;
   4396 esac
   4397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4400   echo $ECHO_N "(cached) $ECHO_C" >&6
   4401 else
   4402   eval "$as_ac_Header=\$ac_header_preproc"
   4403 fi
   4404 ac_res=`eval echo '${'$as_ac_Header'}'`
   4405 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4406 echo "${ECHO_T}$ac_res" >&6; }
   4407 
   4408 fi
   4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4410   cat >>confdefs.h <<_ACEOF
   4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4412 _ACEOF
   4413 
   4414 fi
   4415 
   4416 done
   4417 
   4418 
   4419 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
   4420 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
   4421 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
   4422   echo $ECHO_N "(cached) $ECHO_C" >&6
   4423 else
   4424   ac_check_lib_save_LIBS=$LIBS
   4425 LIBS="-lsmi  $LIBS"
   4426 cat >conftest.$ac_ext <<_ACEOF
   4427 /* confdefs.h.  */
   4428 _ACEOF
   4429 cat confdefs.h >>conftest.$ac_ext
   4430 cat >>conftest.$ac_ext <<_ACEOF
   4431 /* end confdefs.h.  */
   4432 
   4433 /* Override any GCC internal prototype to avoid an error.
   4434    Use char because int might match the return type of a GCC
   4435    builtin and then its argument prototype would still apply.  */
   4436 #ifdef __cplusplus
   4437 extern "C"
   4438 #endif
   4439 char smiInit ();
   4440 int
   4441 main ()
   4442 {
   4443 return smiInit ();
   4444   ;
   4445   return 0;
   4446 }
   4447 _ACEOF
   4448 rm -f conftest.$ac_objext conftest$ac_exeext
   4449 if { (ac_try="$ac_link"
   4450 case "(($ac_try" in
   4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4452   *) ac_try_echo=$ac_try;;
   4453 esac
   4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4455   (eval "$ac_link") 2>conftest.er1
   4456   ac_status=$?
   4457   grep -v '^ *+' conftest.er1 >conftest.err
   4458   rm -f conftest.er1
   4459   cat conftest.err >&5
   4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4461   (exit $ac_status); } && {
   4462 	 test -z "$ac_c_werror_flag" ||
   4463 	 test ! -s conftest.err
   4464        } && test -s conftest$ac_exeext &&
   4465        $as_test_x conftest$ac_exeext; then
   4466   ac_cv_lib_smi_smiInit=yes
   4467 else
   4468   echo "$as_me: failed program was:" >&5
   4469 sed 's/^/| /' conftest.$ac_ext >&5
   4470 
   4471 	ac_cv_lib_smi_smiInit=no
   4472 fi
   4473 
   4474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   4475       conftest$ac_exeext conftest.$ac_ext
   4476 LIBS=$ac_check_lib_save_LIBS
   4477 fi
   4478 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
   4479 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
   4480 if test $ac_cv_lib_smi_smiInit = yes; then
   4481   cat >>confdefs.h <<_ACEOF
   4482 #define HAVE_LIBSMI 1
   4483 _ACEOF
   4484 
   4485   LIBS="-lsmi $LIBS"
   4486 
   4487 fi
   4488 
   4489 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
   4490 then
   4491 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
   4492 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
   4493         if test "$cross_compiling" = yes; then
   4494    { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
   4495 echo "${ECHO_T}not when cross-compiling" >&6; }
   4496   libsmi=no
   4497 
   4498 else
   4499   cat >conftest.$ac_ext <<_ACEOF
   4500 /* confdefs.h.  */
   4501 _ACEOF
   4502 cat confdefs.h >>conftest.$ac_ext
   4503 cat >>conftest.$ac_ext <<_ACEOF
   4504 /* end confdefs.h.  */
   4505  /* libsmi available check */
   4506 #include <smi.h>
   4507 main()
   4508 {
   4509   int current, revision, age, n;
   4510   const int required = 2;
   4511   if (smiInit(""))
   4512     exit(1);
   4513   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
   4514     exit(2);
   4515   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
   4516   if (n != 3)
   4517     exit(3);
   4518   if (required < current - age || required > current)
   4519     exit(4);
   4520   exit(0);
   4521 }
   4522 
   4523 _ACEOF
   4524 rm -f conftest$ac_exeext
   4525 if { (ac_try="$ac_link"
   4526 case "(($ac_try" in
   4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4528   *) ac_try_echo=$ac_try;;
   4529 esac
   4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4531   (eval "$ac_link") 2>&5
   4532   ac_status=$?
   4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4535   { (case "(($ac_try" in
   4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4537   *) ac_try_echo=$ac_try;;
   4538 esac
   4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4540   (eval "$ac_try") 2>&5
   4541   ac_status=$?
   4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4543   (exit $ac_status); }; }; then
   4544    { echo "$as_me:$LINENO: result: yes" >&5
   4545 echo "${ECHO_T}yes" >&6; }
   4546   cat >>confdefs.h <<\_ACEOF
   4547 #define LIBSMI 1
   4548 _ACEOF
   4549 
   4550   libsmi=yes
   4551 else
   4552   echo "$as_me: program exited with status $ac_status" >&5
   4553 echo "$as_me: failed program was:" >&5
   4554 sed 's/^/| /' conftest.$ac_ext >&5
   4555 
   4556 ( exit $ac_status )
   4557  case $? in
   4558   1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
   4559 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
   4560   2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
   4561 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
   4562   3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
   4563 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
   4564   4) { echo "$as_me:$LINENO: result: no - too old" >&5
   4565 echo "${ECHO_T}no - too old" >&6; } ;;
   4566   *) { echo "$as_me:$LINENO: result: no" >&5
   4567 echo "${ECHO_T}no" >&6; } ;;
   4568   esac
   4569   libsmi=no
   4570 fi
   4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4572 fi
   4573 
   4574 
   4575 fi
   4576 
   4577 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
   4578 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
   4579 # Check whether --enable-smb was given.
   4580 if test "${enable_smb+set}" = set; then
   4581   enableval=$enable_smb;
   4582 else
   4583   enableval=yes
   4584 fi
   4585 
   4586 case "$enableval" in
   4587 yes)	{ echo "$as_me:$LINENO: result: yes" >&5
   4588 echo "${ECHO_T}yes" >&6; }
   4589 	{ echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
   4590 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
   4591 	cat >>confdefs.h <<\_ACEOF
   4592 #define TCPDUMP_DO_SMB 1
   4593 _ACEOF
   4594 
   4595 	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
   4596 	;;
   4597 *)	{ echo "$as_me:$LINENO: result: no" >&5
   4598 echo "${ECHO_T}no" >&6; }
   4599 	;;
   4600 esac
   4601 
   4602 
   4603 # Check whether --with-user was given.
   4604 if test "${with_user+set}" = set; then
   4605   withval=$with_user;
   4606 fi
   4607 
   4608 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
   4609 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
   4610 if test ! -z "$with_user" ; then
   4611         cat >>confdefs.h <<_ACEOF
   4612 #define WITH_USER "$withval"
   4613 _ACEOF
   4614 
   4615        { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
   4616 echo "${ECHO_T}to \"$withval\"" >&6; }
   4617 else
   4618        { echo "$as_me:$LINENO: result: no" >&5
   4619 echo "${ECHO_T}no" >&6; }
   4620 fi
   4621 
   4622 
   4623 # Check whether --with-chroot was given.
   4624 if test "${with_chroot+set}" = set; then
   4625   withval=$with_chroot;
   4626 fi
   4627 
   4628 { echo "$as_me:$LINENO: checking whether to chroot" >&5
   4629 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
   4630 if test ! -z "$with_chroot" ; then
   4631         cat >>confdefs.h <<_ACEOF
   4632 #define WITH_CHROOT "$withval"
   4633 _ACEOF
   4634 
   4635        { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
   4636 echo "${ECHO_T}to \"$withval\"" >&6; }
   4637 else
   4638        { echo "$as_me:$LINENO: result: no" >&5
   4639 echo "${ECHO_T}no" >&6; }
   4640 fi
   4641 
   4642 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
   4643 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
   4644 # Check whether --enable-ipv6 was given.
   4645 if test "${enable_ipv6+set}" = set; then
   4646   enableval=$enable_ipv6;  case "$enableval" in
   4647 yes)   { echo "$as_me:$LINENO: result: yes" >&5
   4648 echo "${ECHO_T}yes" >&6; }
   4649        LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
   4650        cat >>confdefs.h <<\_ACEOF
   4651 #define INET6 1
   4652 _ACEOF
   4653 
   4654        ipv6=yes
   4655        ;;
   4656 *)
   4657        { echo "$as_me:$LINENO: result: no" >&5
   4658 echo "${ECHO_T}no" >&6; }
   4659        ipv6=no
   4660        ;;
   4661   esac
   4662 else
   4663   if test "$cross_compiling" = yes; then
   4664    { echo "$as_me:$LINENO: result: no" >&5
   4665 echo "${ECHO_T}no" >&6; }
   4666   ipv6=no
   4667 
   4668 else
   4669   cat >conftest.$ac_ext <<_ACEOF
   4670 /* confdefs.h.  */
   4671 _ACEOF
   4672 cat confdefs.h >>conftest.$ac_ext
   4673 cat >>conftest.$ac_ext <<_ACEOF
   4674 /* end confdefs.h.  */
   4675  /* AF_INET6 available check */
   4676 #include <sys/types.h>
   4677 #include <sys/socket.h>
   4678 main()
   4679 {
   4680  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
   4681    exit(1);
   4682  else
   4683    exit(0);
   4684 }
   4685 
   4686 _ACEOF
   4687 rm -f conftest$ac_exeext
   4688 if { (ac_try="$ac_link"
   4689 case "(($ac_try" in
   4690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4691   *) ac_try_echo=$ac_try;;
   4692 esac
   4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4694   (eval "$ac_link") 2>&5
   4695   ac_status=$?
   4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4698   { (case "(($ac_try" in
   4699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4700   *) ac_try_echo=$ac_try;;
   4701 esac
   4702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4703   (eval "$ac_try") 2>&5
   4704   ac_status=$?
   4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4706   (exit $ac_status); }; }; then
   4707    { echo "$as_me:$LINENO: result: yes" >&5
   4708 echo "${ECHO_T}yes" >&6; }
   4709   LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
   4710   cat >>confdefs.h <<\_ACEOF
   4711 #define INET6 1
   4712 _ACEOF
   4713 
   4714   ipv6=yes
   4715 else
   4716   echo "$as_me: program exited with status $ac_status" >&5
   4717 echo "$as_me: failed program was:" >&5
   4718 sed 's/^/| /' conftest.$ac_ext >&5
   4719 
   4720 ( exit $ac_status )
   4721  { echo "$as_me:$LINENO: result: no" >&5
   4722 echo "${ECHO_T}no" >&6; }
   4723   ipv6=no
   4724 fi
   4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4726 fi
   4727 
   4728 
   4729 fi
   4730 
   4731 
   4732 ipv6type=unknown
   4733 ipv6lib=none
   4734 ipv6trylibc=no
   4735 
   4736 if test "$ipv6" = "yes"; then
   4737 	{ echo "$as_me:$LINENO: checking ipv6 stack type" >&5
   4738 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
   4739 	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
   4740 		case $i in
   4741 		inria)
   4742 						cat >conftest.$ac_ext <<_ACEOF
   4743 /* confdefs.h.  */
   4744 _ACEOF
   4745 cat confdefs.h >>conftest.$ac_ext
   4746 cat >>conftest.$ac_ext <<_ACEOF
   4747 /* end confdefs.h.  */
   4748 #include <netinet/in.h>
   4749 #ifdef IPV6_INRIA_VERSION
   4750 yes
   4751 #endif
   4752 _ACEOF
   4753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4754   $EGREP "yes" >/dev/null 2>&1; then
   4755   ipv6type=$i;
   4756 				CFLAGS="-DINET6 $CFLAGS"
   4757 fi
   4758 rm -f conftest*
   4759 
   4760 			;;
   4761 		kame)
   4762 						cat >conftest.$ac_ext <<_ACEOF
   4763 /* confdefs.h.  */
   4764 _ACEOF
   4765 cat confdefs.h >>conftest.$ac_ext
   4766 cat >>conftest.$ac_ext <<_ACEOF
   4767 /* end confdefs.h.  */
   4768 #include <netinet/in.h>
   4769 #ifdef __KAME__
   4770 yes
   4771 #endif
   4772 _ACEOF
   4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4774   $EGREP "yes" >/dev/null 2>&1; then
   4775   ipv6type=$i;
   4776 				ipv6lib=inet6;
   4777 				ipv6libdir=/usr/local/v6/lib;
   4778 				ipv6trylibc=yes;
   4779 				CFLAGS="-DINET6 $CFLAGS"
   4780 fi
   4781 rm -f conftest*
   4782 
   4783 			;;
   4784 		linux-glibc)
   4785 						cat >conftest.$ac_ext <<_ACEOF
   4786 /* confdefs.h.  */
   4787 _ACEOF
   4788 cat confdefs.h >>conftest.$ac_ext
   4789 cat >>conftest.$ac_ext <<_ACEOF
   4790 /* end confdefs.h.  */
   4791 #include <features.h>
   4792 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
   4793 yes
   4794 #endif
   4795 _ACEOF
   4796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4797   $EGREP "yes" >/dev/null 2>&1; then
   4798   ipv6type=$i;
   4799 				CFLAGS="-DINET6 $CFLAGS"
   4800 fi
   4801 rm -f conftest*
   4802 
   4803 			;;
   4804 		linux-libinet6)
   4805 																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
   4806 				ipv6type=$i
   4807 				ipv6lib=inet6
   4808 				ipv6libdir=/usr/inet6/lib
   4809 				ipv6trylibc=yes;
   4810 				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
   4811 			fi
   4812 			;;
   4813 		toshiba)
   4814 			cat >conftest.$ac_ext <<_ACEOF
   4815 /* confdefs.h.  */
   4816 _ACEOF
   4817 cat confdefs.h >>conftest.$ac_ext
   4818 cat >>conftest.$ac_ext <<_ACEOF
   4819 /* end confdefs.h.  */
   4820 #include <sys/param.h>
   4821 #ifdef _TOSHIBA_INET6
   4822 yes
   4823 #endif
   4824 _ACEOF
   4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4826   $EGREP "yes" >/dev/null 2>&1; then
   4827   ipv6type=$i;
   4828 				ipv6lib=inet6;
   4829 				ipv6libdir=/usr/local/v6/lib;
   4830 				CFLAGS="-DINET6 $CFLAGS"
   4831 fi
   4832 rm -f conftest*
   4833 
   4834 			;;
   4835 		v6d)
   4836 			cat >conftest.$ac_ext <<_ACEOF
   4837 /* confdefs.h.  */
   4838 _ACEOF
   4839 cat confdefs.h >>conftest.$ac_ext
   4840 cat >>conftest.$ac_ext <<_ACEOF
   4841 /* end confdefs.h.  */
   4842 #include </usr/local/v6/include/sys/v6config.h>
   4843 #ifdef __V6D__
   4844 yes
   4845 #endif
   4846 _ACEOF
   4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4848   $EGREP "yes" >/dev/null 2>&1; then
   4849   ipv6type=$i;
   4850 				ipv6lib=v6;
   4851 				ipv6libdir=/usr/local/v6/lib;
   4852 				CFLAGS="-I/usr/local/v6/include $CFLAGS"
   4853 fi
   4854 rm -f conftest*
   4855 
   4856 			;;
   4857 		zeta)
   4858 			cat >conftest.$ac_ext <<_ACEOF
   4859 /* confdefs.h.  */
   4860 _ACEOF
   4861 cat confdefs.h >>conftest.$ac_ext
   4862 cat >>conftest.$ac_ext <<_ACEOF
   4863 /* end confdefs.h.  */
   4864 #include <sys/param.h>
   4865 #ifdef _ZETA_MINAMI_INET6
   4866 yes
   4867 #endif
   4868 _ACEOF
   4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4870   $EGREP "yes" >/dev/null 2>&1; then
   4871   ipv6type=$i;
   4872 				ipv6lib=inet6;
   4873 				ipv6libdir=/usr/local/v6/lib;
   4874 				CFLAGS="-DINET6 $CFLAGS"
   4875 fi
   4876 rm -f conftest*
   4877 
   4878 			;;
   4879 		esac
   4880 		if test "$ipv6type" != "unknown"; then
   4881 			break
   4882 		fi
   4883 	done
   4884 	{ echo "$as_me:$LINENO: result: $ipv6type" >&5
   4885 echo "${ECHO_T}$ipv6type" >&6; }
   4886 fi
   4887 
   4888 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
   4889 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
   4890 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
   4891 		echo "You have $ipv6lib library, using it"
   4892 	else
   4893 		if test "$ipv6trylibc" = "yes"; then
   4894 			echo "You do not have $ipv6lib library, using libc"
   4895 		else
   4896 			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
   4897 			echo "You need to fetch lib$ipv6lib.a from appropriate"
   4898 			echo 'ipv6 kit and compile beforehand.'
   4899 			exit 1
   4900 		fi
   4901 	fi
   4902 fi
   4903 
   4904 
   4905 if test "$ipv6" = "yes"; then
   4906 	#
   4907 	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
   4908 	# function in libc; there are "ngetaddrinfo()" and
   4909 	# "ogetaddrinfo()" functions, and <netdb.h> #defines
   4910 	# "getaddrinfo" to be either "ngetaddrinfo" or
   4911 	# "ogetaddrinfo", depending on whether _SOCKADDR_LEN
   4912 	# or _XOPEN_SOURCE_EXTENDED are defined or not.
   4913 	#
   4914 	# So this test doesn't work on Tru64 5.1, and possibly
   4915 	# on other 5.x releases.  This causes the configure
   4916 	# script to become confused, and results in libpcap
   4917 	# being unbuildable.
   4918 	#
   4919 	{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
   4920 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
   4921 if test "${ac_cv_search_getaddrinfo+set}" = set; then
   4922   echo $ECHO_N "(cached) $ECHO_C" >&6
   4923 else
   4924   ac_func_search_save_LIBS=$LIBS
   4925 cat >conftest.$ac_ext <<_ACEOF
   4926 /* confdefs.h.  */
   4927 _ACEOF
   4928 cat confdefs.h >>conftest.$ac_ext
   4929 cat >>conftest.$ac_ext <<_ACEOF
   4930 /* end confdefs.h.  */
   4931 
   4932 /* Override any GCC internal prototype to avoid an error.
   4933    Use char because int might match the return type of a GCC
   4934    builtin and then its argument prototype would still apply.  */
   4935 #ifdef __cplusplus
   4936 extern "C"
   4937 #endif
   4938 char getaddrinfo ();
   4939 int
   4940 main ()
   4941 {
   4942 return getaddrinfo ();
   4943   ;
   4944   return 0;
   4945 }
   4946 _ACEOF
   4947 for ac_lib in '' socket; do
   4948   if test -z "$ac_lib"; then
   4949     ac_res="none required"
   4950   else
   4951     ac_res=-l$ac_lib
   4952     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4953   fi
   4954   rm -f conftest.$ac_objext conftest$ac_exeext
   4955 if { (ac_try="$ac_link"
   4956 case "(($ac_try" in
   4957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4958   *) ac_try_echo=$ac_try;;
   4959 esac
   4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4961   (eval "$ac_link") 2>conftest.er1
   4962   ac_status=$?
   4963   grep -v '^ *+' conftest.er1 >conftest.err
   4964   rm -f conftest.er1
   4965   cat conftest.err >&5
   4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4967   (exit $ac_status); } && {
   4968 	 test -z "$ac_c_werror_flag" ||
   4969 	 test ! -s conftest.err
   4970        } && test -s conftest$ac_exeext &&
   4971        $as_test_x conftest$ac_exeext; then
   4972   ac_cv_search_getaddrinfo=$ac_res
   4973 else
   4974   echo "$as_me: failed program was:" >&5
   4975 sed 's/^/| /' conftest.$ac_ext >&5
   4976 
   4977 
   4978 fi
   4979 
   4980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   4981       conftest$ac_exeext
   4982   if test "${ac_cv_search_getaddrinfo+set}" = set; then
   4983   break
   4984 fi
   4985 done
   4986 if test "${ac_cv_search_getaddrinfo+set}" = set; then
   4987   :
   4988 else
   4989   ac_cv_search_getaddrinfo=no
   4990 fi
   4991 rm conftest.$ac_ext
   4992 LIBS=$ac_func_search_save_LIBS
   4993 fi
   4994 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
   4995 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
   4996 ac_res=$ac_cv_search_getaddrinfo
   4997 if test "$ac_res" != no; then
   4998   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4999   	{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
   5000 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
   5001 	if test "${td_cv_buggygetaddrinfo+set}" = set; then
   5002   echo $ECHO_N "(cached) $ECHO_C" >&6
   5003 else
   5004   if test "$cross_compiling" = yes; then
   5005   td_cv_buggygetaddrinfo=yes
   5006 else
   5007   cat >conftest.$ac_ext <<_ACEOF
   5008 /* confdefs.h.  */
   5009 _ACEOF
   5010 cat confdefs.h >>conftest.$ac_ext
   5011 cat >>conftest.$ac_ext <<_ACEOF
   5012 /* end confdefs.h.  */
   5013 
   5014 #include <sys/types.h>
   5015 #include <netdb.h>
   5016 #include <string.h>
   5017 #include <sys/socket.h>
   5018 #include <netinet/in.h>
   5019 
   5020 main()
   5021 {
   5022   int passive, gaierr, inet4 = 0, inet6 = 0;
   5023   struct addrinfo hints, *ai, *aitop;
   5024   char straddr[INET6_ADDRSTRLEN], strport[16];
   5025 
   5026   for (passive = 0; passive <= 1; passive++) {
   5027     memset(&hints, 0, sizeof(hints));
   5028     hints.ai_family = AF_UNSPEC;
   5029     hints.ai_flags = passive ? AI_PASSIVE : 0;
   5030     hints.ai_socktype = SOCK_STREAM;
   5031     hints.ai_protocol = IPPROTO_TCP;
   5032     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
   5033       (void)gai_strerror(gaierr);
   5034       goto bad;
   5035     }
   5036     for (ai = aitop; ai; ai = ai->ai_next) {
   5037       if (ai->ai_addr == NULL ||
   5038           ai->ai_addrlen == 0 ||
   5039           getnameinfo(ai->ai_addr, ai->ai_addrlen,
   5040                       straddr, sizeof(straddr), strport, sizeof(strport),
   5041                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
   5042         goto bad;
   5043       }
   5044       switch (ai->ai_family) {
   5045       case AF_INET:
   5046         if (strcmp(strport, "54321") != 0) {
   5047           goto bad;
   5048         }
   5049         if (passive) {
   5050           if (strcmp(straddr, "0.0.0.0") != 0) {
   5051             goto bad;
   5052           }
   5053         } else {
   5054           if (strcmp(straddr, "127.0.0.1") != 0) {
   5055             goto bad;
   5056           }
   5057         }
   5058         inet4++;
   5059         break;
   5060       case AF_INET6:
   5061         if (strcmp(strport, "54321") != 0) {
   5062           goto bad;
   5063         }
   5064         if (passive) {
   5065           if (strcmp(straddr, "::") != 0) {
   5066             goto bad;
   5067           }
   5068         } else {
   5069           if (strcmp(straddr, "::1") != 0) {
   5070             goto bad;
   5071           }
   5072         }
   5073         inet6++;
   5074         break;
   5075       case AF_UNSPEC:
   5076         goto bad;
   5077         break;
   5078 #ifdef AF_UNIX
   5079       case AF_UNIX:
   5080 #else
   5081 #ifdef AF_LOCAL
   5082       case AF_LOCAL:
   5083 #endif
   5084 #endif
   5085       default:
   5086         /* another family support? */
   5087         break;
   5088       }
   5089     }
   5090   }
   5091 
   5092   /* supported family should be 2, unsupported family should be 0 */
   5093   if (!(inet4 == 0 || inet4 == 2))
   5094     goto bad;
   5095   if (!(inet6 == 0 || inet6 == 2))
   5096     goto bad;
   5097 
   5098   if (aitop)
   5099     freeaddrinfo(aitop);
   5100   exit(0);
   5101 
   5102  bad:
   5103   if (aitop)
   5104     freeaddrinfo(aitop);
   5105   exit(1);
   5106 }
   5107 
   5108 _ACEOF
   5109 rm -f conftest$ac_exeext
   5110 if { (ac_try="$ac_link"
   5111 case "(($ac_try" in
   5112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5113   *) ac_try_echo=$ac_try;;
   5114 esac
   5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5116   (eval "$ac_link") 2>&5
   5117   ac_status=$?
   5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5120   { (case "(($ac_try" in
   5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5122   *) ac_try_echo=$ac_try;;
   5123 esac
   5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5125   (eval "$ac_try") 2>&5
   5126   ac_status=$?
   5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5128   (exit $ac_status); }; }; then
   5129   td_cv_buggygetaddrinfo=no
   5130 else
   5131   echo "$as_me: program exited with status $ac_status" >&5
   5132 echo "$as_me: failed program was:" >&5
   5133 sed 's/^/| /' conftest.$ac_ext >&5
   5134 
   5135 ( exit $ac_status )
   5136 td_cv_buggygetaddrinfo=yes
   5137 fi
   5138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5139 fi
   5140 
   5141 
   5142 fi
   5143 
   5144 	if test "$td_cv_buggygetaddrinfo" = no; then
   5145 		{ echo "$as_me:$LINENO: result: good" >&5
   5146 echo "${ECHO_T}good" >&6; }
   5147 	else
   5148 		{ echo "$as_me:$LINENO: result: buggy" >&5
   5149 echo "${ECHO_T}buggy" >&6; }
   5150 	fi
   5151 
   5152 	if test "$td_cv_buggygetaddrinfo" = "yes"; then
   5153 		#
   5154 		# XXX - it doesn't appear that "ipv6type" can ever be
   5155 		# set to "linux".  Should this be testing for
   5156 		# "linux-glibc", or for that *or* "linux-libinet6"?
   5157 		# If the latter, note that "linux-libinet6" is also
   5158 		# the type given to some non-Linux OSes.
   5159 		#
   5160 		if test "$ipv6type" != "linux"; then
   5161 			echo 'Fatal: You must get working getaddrinfo() function.'
   5162 			echo '       or you can specify "--disable-ipv6"'.
   5163 			exit 1
   5164 		else
   5165 			echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
   5166 			echo '         Better upgrade your system library to newest version'
   5167 			echo '         of GNU C library (aka glibc).'
   5168 		fi
   5169 	fi
   5170 
   5171 fi
   5172 
   5173 
   5174 
   5175 for ac_func in getaddrinfo getnameinfo
   5176 do
   5177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   5179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   5180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   5181   echo $ECHO_N "(cached) $ECHO_C" >&6
   5182 else
   5183   cat >conftest.$ac_ext <<_ACEOF
   5184 /* confdefs.h.  */
   5185 _ACEOF
   5186 cat confdefs.h >>conftest.$ac_ext
   5187 cat >>conftest.$ac_ext <<_ACEOF
   5188 /* end confdefs.h.  */
   5189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   5190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   5191 #define $ac_func innocuous_$ac_func
   5192 
   5193 /* System header to define __stub macros and hopefully few prototypes,
   5194     which can conflict with char $ac_func (); below.
   5195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5196     <limits.h> exists even on freestanding compilers.  */
   5197 
   5198 #ifdef __STDC__
   5199 # include <limits.h>
   5200 #else
   5201 # include <assert.h>
   5202 #endif
   5203 
   5204 #undef $ac_func
   5205 
   5206 /* Override any GCC internal prototype to avoid an error.
   5207    Use char because int might match the return type of a GCC
   5208    builtin and then its argument prototype would still apply.  */
   5209 #ifdef __cplusplus
   5210 extern "C"
   5211 #endif
   5212 char $ac_func ();
   5213 /* The GNU C library defines this for functions which it implements
   5214     to always fail with ENOSYS.  Some functions are actually named
   5215     something starting with __ and the normal name is an alias.  */
   5216 #if defined __stub_$ac_func || defined __stub___$ac_func
   5217 choke me
   5218 #endif
   5219 
   5220 int
   5221 main ()
   5222 {
   5223 return $ac_func ();
   5224   ;
   5225   return 0;
   5226 }
   5227 _ACEOF
   5228 rm -f conftest.$ac_objext conftest$ac_exeext
   5229 if { (ac_try="$ac_link"
   5230 case "(($ac_try" in
   5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5232   *) ac_try_echo=$ac_try;;
   5233 esac
   5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5235   (eval "$ac_link") 2>conftest.er1
   5236   ac_status=$?
   5237   grep -v '^ *+' conftest.er1 >conftest.err
   5238   rm -f conftest.er1
   5239   cat conftest.err >&5
   5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5241   (exit $ac_status); } && {
   5242 	 test -z "$ac_c_werror_flag" ||
   5243 	 test ! -s conftest.err
   5244        } && test -s conftest$ac_exeext &&
   5245        $as_test_x conftest$ac_exeext; then
   5246   eval "$as_ac_var=yes"
   5247 else
   5248   echo "$as_me: failed program was:" >&5
   5249 sed 's/^/| /' conftest.$ac_ext >&5
   5250 
   5251 	eval "$as_ac_var=no"
   5252 fi
   5253 
   5254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5255       conftest$ac_exeext conftest.$ac_ext
   5256 fi
   5257 ac_res=`eval echo '${'$as_ac_var'}'`
   5258 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   5259 echo "${ECHO_T}$ac_res" >&6; }
   5260 if test `eval echo '${'$as_ac_var'}'` = yes; then
   5261   cat >>confdefs.h <<_ACEOF
   5262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5263 _ACEOF
   5264 
   5265 else
   5266   case " $LIBOBJS " in
   5267   *" $ac_func.$ac_objext "* ) ;;
   5268   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   5269  ;;
   5270 esac
   5271 
   5272 fi
   5273 done
   5274 
   5275 
   5276 fi
   5277 
   5278 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
   5279 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
   5280 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
   5281   echo $ECHO_N "(cached) $ECHO_C" >&6
   5282 else
   5283   cat >conftest.$ac_ext <<_ACEOF
   5284 /* confdefs.h.  */
   5285 _ACEOF
   5286 cat confdefs.h >>conftest.$ac_ext
   5287 cat >>conftest.$ac_ext <<_ACEOF
   5288 /* end confdefs.h.  */
   5289 #include <netdnet/dnetdb.h>
   5290 
   5291 _ACEOF
   5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5293   $EGREP "dnet_htoa" >/dev/null 2>&1; then
   5294   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
   5295 else
   5296   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
   5297 fi
   5298 rm -f conftest*
   5299 
   5300 fi
   5301 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
   5302 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
   5303 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
   5304 	cat >>confdefs.h <<\_ACEOF
   5305 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
   5306 _ACEOF
   5307 
   5308 fi
   5309 
   5310 { echo "$as_me:$LINENO: checking for char" >&5
   5311 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
   5312 if test "${ac_cv_type_char+set}" = set; then
   5313   echo $ECHO_N "(cached) $ECHO_C" >&6
   5314 else
   5315   cat >conftest.$ac_ext <<_ACEOF
   5316 /* confdefs.h.  */
   5317 _ACEOF
   5318 cat confdefs.h >>conftest.$ac_ext
   5319 cat >>conftest.$ac_ext <<_ACEOF
   5320 /* end confdefs.h.  */
   5321 $ac_includes_default
   5322 typedef char ac__type_new_;
   5323 int
   5324 main ()
   5325 {
   5326 if ((ac__type_new_ *) 0)
   5327   return 0;
   5328 if (sizeof (ac__type_new_))
   5329   return 0;
   5330   ;
   5331   return 0;
   5332 }
   5333 _ACEOF
   5334 rm -f conftest.$ac_objext
   5335 if { (ac_try="$ac_compile"
   5336 case "(($ac_try" in
   5337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5338   *) ac_try_echo=$ac_try;;
   5339 esac
   5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5341   (eval "$ac_compile") 2>conftest.er1
   5342   ac_status=$?
   5343   grep -v '^ *+' conftest.er1 >conftest.err
   5344   rm -f conftest.er1
   5345   cat conftest.err >&5
   5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5347   (exit $ac_status); } && {
   5348 	 test -z "$ac_c_werror_flag" ||
   5349 	 test ! -s conftest.err
   5350        } && test -s conftest.$ac_objext; then
   5351   ac_cv_type_char=yes
   5352 else
   5353   echo "$as_me: failed program was:" >&5
   5354 sed 's/^/| /' conftest.$ac_ext >&5
   5355 
   5356 	ac_cv_type_char=no
   5357 fi
   5358 
   5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5360 fi
   5361 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
   5362 echo "${ECHO_T}$ac_cv_type_char" >&6; }
   5363 
   5364 # The cast to long int works around a bug in the HP C Compiler
   5365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5367 # This bug is HP SR number 8606223364.
   5368 { echo "$as_me:$LINENO: checking size of char" >&5
   5369 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
   5370 if test "${ac_cv_sizeof_char+set}" = set; then
   5371   echo $ECHO_N "(cached) $ECHO_C" >&6
   5372 else
   5373   if test "$cross_compiling" = yes; then
   5374   # Depending upon the size, compute the lo and hi bounds.
   5375 cat >conftest.$ac_ext <<_ACEOF
   5376 /* confdefs.h.  */
   5377 _ACEOF
   5378 cat confdefs.h >>conftest.$ac_ext
   5379 cat >>conftest.$ac_ext <<_ACEOF
   5380 /* end confdefs.h.  */
   5381 $ac_includes_default
   5382    typedef char ac__type_sizeof_;
   5383 int
   5384 main ()
   5385 {
   5386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   5387 test_array [0] = 0
   5388 
   5389   ;
   5390   return 0;
   5391 }
   5392 _ACEOF
   5393 rm -f conftest.$ac_objext
   5394 if { (ac_try="$ac_compile"
   5395 case "(($ac_try" in
   5396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5397   *) ac_try_echo=$ac_try;;
   5398 esac
   5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5400   (eval "$ac_compile") 2>conftest.er1
   5401   ac_status=$?
   5402   grep -v '^ *+' conftest.er1 >conftest.err
   5403   rm -f conftest.er1
   5404   cat conftest.err >&5
   5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5406   (exit $ac_status); } && {
   5407 	 test -z "$ac_c_werror_flag" ||
   5408 	 test ! -s conftest.err
   5409        } && test -s conftest.$ac_objext; then
   5410   ac_lo=0 ac_mid=0
   5411   while :; do
   5412     cat >conftest.$ac_ext <<_ACEOF
   5413 /* confdefs.h.  */
   5414 _ACEOF
   5415 cat confdefs.h >>conftest.$ac_ext
   5416 cat >>conftest.$ac_ext <<_ACEOF
   5417 /* end confdefs.h.  */
   5418 $ac_includes_default
   5419    typedef char ac__type_sizeof_;
   5420 int
   5421 main ()
   5422 {
   5423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   5424 test_array [0] = 0
   5425 
   5426   ;
   5427   return 0;
   5428 }
   5429 _ACEOF
   5430 rm -f conftest.$ac_objext
   5431 if { (ac_try="$ac_compile"
   5432 case "(($ac_try" in
   5433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5434   *) ac_try_echo=$ac_try;;
   5435 esac
   5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5437   (eval "$ac_compile") 2>conftest.er1
   5438   ac_status=$?
   5439   grep -v '^ *+' conftest.er1 >conftest.err
   5440   rm -f conftest.er1
   5441   cat conftest.err >&5
   5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5443   (exit $ac_status); } && {
   5444 	 test -z "$ac_c_werror_flag" ||
   5445 	 test ! -s conftest.err
   5446        } && test -s conftest.$ac_objext; then
   5447   ac_hi=$ac_mid; break
   5448 else
   5449   echo "$as_me: failed program was:" >&5
   5450 sed 's/^/| /' conftest.$ac_ext >&5
   5451 
   5452 	ac_lo=`expr $ac_mid + 1`
   5453 			if test $ac_lo -le $ac_mid; then
   5454 			  ac_lo= ac_hi=
   5455 			  break
   5456 			fi
   5457 			ac_mid=`expr 2 '*' $ac_mid + 1`
   5458 fi
   5459 
   5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5461   done
   5462 else
   5463   echo "$as_me: failed program was:" >&5
   5464 sed 's/^/| /' conftest.$ac_ext >&5
   5465 
   5466 	cat >conftest.$ac_ext <<_ACEOF
   5467 /* confdefs.h.  */
   5468 _ACEOF
   5469 cat confdefs.h >>conftest.$ac_ext
   5470 cat >>conftest.$ac_ext <<_ACEOF
   5471 /* end confdefs.h.  */
   5472 $ac_includes_default
   5473    typedef char ac__type_sizeof_;
   5474 int
   5475 main ()
   5476 {
   5477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   5478 test_array [0] = 0
   5479 
   5480   ;
   5481   return 0;
   5482 }
   5483 _ACEOF
   5484 rm -f conftest.$ac_objext
   5485 if { (ac_try="$ac_compile"
   5486 case "(($ac_try" in
   5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5488   *) ac_try_echo=$ac_try;;
   5489 esac
   5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5491   (eval "$ac_compile") 2>conftest.er1
   5492   ac_status=$?
   5493   grep -v '^ *+' conftest.er1 >conftest.err
   5494   rm -f conftest.er1
   5495   cat conftest.err >&5
   5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5497   (exit $ac_status); } && {
   5498 	 test -z "$ac_c_werror_flag" ||
   5499 	 test ! -s conftest.err
   5500        } && test -s conftest.$ac_objext; then
   5501   ac_hi=-1 ac_mid=-1
   5502   while :; do
   5503     cat >conftest.$ac_ext <<_ACEOF
   5504 /* confdefs.h.  */
   5505 _ACEOF
   5506 cat confdefs.h >>conftest.$ac_ext
   5507 cat >>conftest.$ac_ext <<_ACEOF
   5508 /* end confdefs.h.  */
   5509 $ac_includes_default
   5510    typedef char ac__type_sizeof_;
   5511 int
   5512 main ()
   5513 {
   5514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   5515 test_array [0] = 0
   5516 
   5517   ;
   5518   return 0;
   5519 }
   5520 _ACEOF
   5521 rm -f conftest.$ac_objext
   5522 if { (ac_try="$ac_compile"
   5523 case "(($ac_try" in
   5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5525   *) ac_try_echo=$ac_try;;
   5526 esac
   5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5528   (eval "$ac_compile") 2>conftest.er1
   5529   ac_status=$?
   5530   grep -v '^ *+' conftest.er1 >conftest.err
   5531   rm -f conftest.er1
   5532   cat conftest.err >&5
   5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5534   (exit $ac_status); } && {
   5535 	 test -z "$ac_c_werror_flag" ||
   5536 	 test ! -s conftest.err
   5537        } && test -s conftest.$ac_objext; then
   5538   ac_lo=$ac_mid; break
   5539 else
   5540   echo "$as_me: failed program was:" >&5
   5541 sed 's/^/| /' conftest.$ac_ext >&5
   5542 
   5543 	ac_hi=`expr '(' $ac_mid ')' - 1`
   5544 			if test $ac_mid -le $ac_hi; then
   5545 			  ac_lo= ac_hi=
   5546 			  break
   5547 			fi
   5548 			ac_mid=`expr 2 '*' $ac_mid`
   5549 fi
   5550 
   5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5552   done
   5553 else
   5554   echo "$as_me: failed program was:" >&5
   5555 sed 's/^/| /' conftest.$ac_ext >&5
   5556 
   5557 	ac_lo= ac_hi=
   5558 fi
   5559 
   5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5561 fi
   5562 
   5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5564 # Binary search between lo and hi bounds.
   5565 while test "x$ac_lo" != "x$ac_hi"; do
   5566   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   5567   cat >conftest.$ac_ext <<_ACEOF
   5568 /* confdefs.h.  */
   5569 _ACEOF
   5570 cat confdefs.h >>conftest.$ac_ext
   5571 cat >>conftest.$ac_ext <<_ACEOF
   5572 /* end confdefs.h.  */
   5573 $ac_includes_default
   5574    typedef char ac__type_sizeof_;
   5575 int
   5576 main ()
   5577 {
   5578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   5579 test_array [0] = 0
   5580 
   5581   ;
   5582   return 0;
   5583 }
   5584 _ACEOF
   5585 rm -f conftest.$ac_objext
   5586 if { (ac_try="$ac_compile"
   5587 case "(($ac_try" in
   5588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5589   *) ac_try_echo=$ac_try;;
   5590 esac
   5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5592   (eval "$ac_compile") 2>conftest.er1
   5593   ac_status=$?
   5594   grep -v '^ *+' conftest.er1 >conftest.err
   5595   rm -f conftest.er1
   5596   cat conftest.err >&5
   5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5598   (exit $ac_status); } && {
   5599 	 test -z "$ac_c_werror_flag" ||
   5600 	 test ! -s conftest.err
   5601        } && test -s conftest.$ac_objext; then
   5602   ac_hi=$ac_mid
   5603 else
   5604   echo "$as_me: failed program was:" >&5
   5605 sed 's/^/| /' conftest.$ac_ext >&5
   5606 
   5607 	ac_lo=`expr '(' $ac_mid ')' + 1`
   5608 fi
   5609 
   5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5611 done
   5612 case $ac_lo in
   5613 ?*) ac_cv_sizeof_char=$ac_lo;;
   5614 '') if test "$ac_cv_type_char" = yes; then
   5615      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
   5616 See \`config.log' for more details." >&5
   5617 echo "$as_me: error: cannot compute sizeof (char)
   5618 See \`config.log' for more details." >&2;}
   5619    { (exit 77); exit 77; }; }
   5620    else
   5621      ac_cv_sizeof_char=0
   5622    fi ;;
   5623 esac
   5624 else
   5625   cat >conftest.$ac_ext <<_ACEOF
   5626 /* confdefs.h.  */
   5627 _ACEOF
   5628 cat confdefs.h >>conftest.$ac_ext
   5629 cat >>conftest.$ac_ext <<_ACEOF
   5630 /* end confdefs.h.  */
   5631 $ac_includes_default
   5632    typedef char ac__type_sizeof_;
   5633 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   5634 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   5635 #include <stdio.h>
   5636 #include <stdlib.h>
   5637 int
   5638 main ()
   5639 {
   5640 
   5641   FILE *f = fopen ("conftest.val", "w");
   5642   if (! f)
   5643     return 1;
   5644   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   5645     {
   5646       long int i = longval ();
   5647       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   5648 	return 1;
   5649       fprintf (f, "%ld\n", i);
   5650     }
   5651   else
   5652     {
   5653       unsigned long int i = ulongval ();
   5654       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   5655 	return 1;
   5656       fprintf (f, "%lu\n", i);
   5657     }
   5658   return ferror (f) || fclose (f) != 0;
   5659 
   5660   ;
   5661   return 0;
   5662 }
   5663 _ACEOF
   5664 rm -f conftest$ac_exeext
   5665 if { (ac_try="$ac_link"
   5666 case "(($ac_try" in
   5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5668   *) ac_try_echo=$ac_try;;
   5669 esac
   5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5671   (eval "$ac_link") 2>&5
   5672   ac_status=$?
   5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5675   { (case "(($ac_try" in
   5676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5677   *) ac_try_echo=$ac_try;;
   5678 esac
   5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5680   (eval "$ac_try") 2>&5
   5681   ac_status=$?
   5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5683   (exit $ac_status); }; }; then
   5684   ac_cv_sizeof_char=`cat conftest.val`
   5685 else
   5686   echo "$as_me: program exited with status $ac_status" >&5
   5687 echo "$as_me: failed program was:" >&5
   5688 sed 's/^/| /' conftest.$ac_ext >&5
   5689 
   5690 ( exit $ac_status )
   5691 if test "$ac_cv_type_char" = yes; then
   5692      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
   5693 See \`config.log' for more details." >&5
   5694 echo "$as_me: error: cannot compute sizeof (char)
   5695 See \`config.log' for more details." >&2;}
   5696    { (exit 77); exit 77; }; }
   5697    else
   5698      ac_cv_sizeof_char=0
   5699    fi
   5700 fi
   5701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5702 fi
   5703 rm -f conftest.val
   5704 fi
   5705 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
   5706 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
   5707 
   5708 
   5709 
   5710 cat >>confdefs.h <<_ACEOF
   5711 #define SIZEOF_CHAR $ac_cv_sizeof_char
   5712 _ACEOF
   5713 
   5714 
   5715 { echo "$as_me:$LINENO: checking for short" >&5
   5716 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
   5717 if test "${ac_cv_type_short+set}" = set; then
   5718   echo $ECHO_N "(cached) $ECHO_C" >&6
   5719 else
   5720   cat >conftest.$ac_ext <<_ACEOF
   5721 /* confdefs.h.  */
   5722 _ACEOF
   5723 cat confdefs.h >>conftest.$ac_ext
   5724 cat >>conftest.$ac_ext <<_ACEOF
   5725 /* end confdefs.h.  */
   5726 $ac_includes_default
   5727 typedef short ac__type_new_;
   5728 int
   5729 main ()
   5730 {
   5731 if ((ac__type_new_ *) 0)
   5732   return 0;
   5733 if (sizeof (ac__type_new_))
   5734   return 0;
   5735   ;
   5736   return 0;
   5737 }
   5738 _ACEOF
   5739 rm -f conftest.$ac_objext
   5740 if { (ac_try="$ac_compile"
   5741 case "(($ac_try" in
   5742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5743   *) ac_try_echo=$ac_try;;
   5744 esac
   5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5746   (eval "$ac_compile") 2>conftest.er1
   5747   ac_status=$?
   5748   grep -v '^ *+' conftest.er1 >conftest.err
   5749   rm -f conftest.er1
   5750   cat conftest.err >&5
   5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5752   (exit $ac_status); } && {
   5753 	 test -z "$ac_c_werror_flag" ||
   5754 	 test ! -s conftest.err
   5755        } && test -s conftest.$ac_objext; then
   5756   ac_cv_type_short=yes
   5757 else
   5758   echo "$as_me: failed program was:" >&5
   5759 sed 's/^/| /' conftest.$ac_ext >&5
   5760 
   5761 	ac_cv_type_short=no
   5762 fi
   5763 
   5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5765 fi
   5766 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
   5767 echo "${ECHO_T}$ac_cv_type_short" >&6; }
   5768 
   5769 # The cast to long int works around a bug in the HP C Compiler
   5770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5772 # This bug is HP SR number 8606223364.
   5773 { echo "$as_me:$LINENO: checking size of short" >&5
   5774 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
   5775 if test "${ac_cv_sizeof_short+set}" = set; then
   5776   echo $ECHO_N "(cached) $ECHO_C" >&6
   5777 else
   5778   if test "$cross_compiling" = yes; then
   5779   # Depending upon the size, compute the lo and hi bounds.
   5780 cat >conftest.$ac_ext <<_ACEOF
   5781 /* confdefs.h.  */
   5782 _ACEOF
   5783 cat confdefs.h >>conftest.$ac_ext
   5784 cat >>conftest.$ac_ext <<_ACEOF
   5785 /* end confdefs.h.  */
   5786 $ac_includes_default
   5787    typedef short ac__type_sizeof_;
   5788 int
   5789 main ()
   5790 {
   5791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   5792 test_array [0] = 0
   5793 
   5794   ;
   5795   return 0;
   5796 }
   5797 _ACEOF
   5798 rm -f conftest.$ac_objext
   5799 if { (ac_try="$ac_compile"
   5800 case "(($ac_try" in
   5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5802   *) ac_try_echo=$ac_try;;
   5803 esac
   5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5805   (eval "$ac_compile") 2>conftest.er1
   5806   ac_status=$?
   5807   grep -v '^ *+' conftest.er1 >conftest.err
   5808   rm -f conftest.er1
   5809   cat conftest.err >&5
   5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5811   (exit $ac_status); } && {
   5812 	 test -z "$ac_c_werror_flag" ||
   5813 	 test ! -s conftest.err
   5814        } && test -s conftest.$ac_objext; then
   5815   ac_lo=0 ac_mid=0
   5816   while :; do
   5817     cat >conftest.$ac_ext <<_ACEOF
   5818 /* confdefs.h.  */
   5819 _ACEOF
   5820 cat confdefs.h >>conftest.$ac_ext
   5821 cat >>conftest.$ac_ext <<_ACEOF
   5822 /* end confdefs.h.  */
   5823 $ac_includes_default
   5824    typedef short ac__type_sizeof_;
   5825 int
   5826 main ()
   5827 {
   5828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   5829 test_array [0] = 0
   5830 
   5831   ;
   5832   return 0;
   5833 }
   5834 _ACEOF
   5835 rm -f conftest.$ac_objext
   5836 if { (ac_try="$ac_compile"
   5837 case "(($ac_try" in
   5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5839   *) ac_try_echo=$ac_try;;
   5840 esac
   5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5842   (eval "$ac_compile") 2>conftest.er1
   5843   ac_status=$?
   5844   grep -v '^ *+' conftest.er1 >conftest.err
   5845   rm -f conftest.er1
   5846   cat conftest.err >&5
   5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5848   (exit $ac_status); } && {
   5849 	 test -z "$ac_c_werror_flag" ||
   5850 	 test ! -s conftest.err
   5851        } && test -s conftest.$ac_objext; then
   5852   ac_hi=$ac_mid; break
   5853 else
   5854   echo "$as_me: failed program was:" >&5
   5855 sed 's/^/| /' conftest.$ac_ext >&5
   5856 
   5857 	ac_lo=`expr $ac_mid + 1`
   5858 			if test $ac_lo -le $ac_mid; then
   5859 			  ac_lo= ac_hi=
   5860 			  break
   5861 			fi
   5862 			ac_mid=`expr 2 '*' $ac_mid + 1`
   5863 fi
   5864 
   5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5866   done
   5867 else
   5868   echo "$as_me: failed program was:" >&5
   5869 sed 's/^/| /' conftest.$ac_ext >&5
   5870 
   5871 	cat >conftest.$ac_ext <<_ACEOF
   5872 /* confdefs.h.  */
   5873 _ACEOF
   5874 cat confdefs.h >>conftest.$ac_ext
   5875 cat >>conftest.$ac_ext <<_ACEOF
   5876 /* end confdefs.h.  */
   5877 $ac_includes_default
   5878    typedef short ac__type_sizeof_;
   5879 int
   5880 main ()
   5881 {
   5882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   5883 test_array [0] = 0
   5884 
   5885   ;
   5886   return 0;
   5887 }
   5888 _ACEOF
   5889 rm -f conftest.$ac_objext
   5890 if { (ac_try="$ac_compile"
   5891 case "(($ac_try" in
   5892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5893   *) ac_try_echo=$ac_try;;
   5894 esac
   5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5896   (eval "$ac_compile") 2>conftest.er1
   5897   ac_status=$?
   5898   grep -v '^ *+' conftest.er1 >conftest.err
   5899   rm -f conftest.er1
   5900   cat conftest.err >&5
   5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5902   (exit $ac_status); } && {
   5903 	 test -z "$ac_c_werror_flag" ||
   5904 	 test ! -s conftest.err
   5905        } && test -s conftest.$ac_objext; then
   5906   ac_hi=-1 ac_mid=-1
   5907   while :; do
   5908     cat >conftest.$ac_ext <<_ACEOF
   5909 /* confdefs.h.  */
   5910 _ACEOF
   5911 cat confdefs.h >>conftest.$ac_ext
   5912 cat >>conftest.$ac_ext <<_ACEOF
   5913 /* end confdefs.h.  */
   5914 $ac_includes_default
   5915    typedef short ac__type_sizeof_;
   5916 int
   5917 main ()
   5918 {
   5919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   5920 test_array [0] = 0
   5921 
   5922   ;
   5923   return 0;
   5924 }
   5925 _ACEOF
   5926 rm -f conftest.$ac_objext
   5927 if { (ac_try="$ac_compile"
   5928 case "(($ac_try" in
   5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5930   *) ac_try_echo=$ac_try;;
   5931 esac
   5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5933   (eval "$ac_compile") 2>conftest.er1
   5934   ac_status=$?
   5935   grep -v '^ *+' conftest.er1 >conftest.err
   5936   rm -f conftest.er1
   5937   cat conftest.err >&5
   5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5939   (exit $ac_status); } && {
   5940 	 test -z "$ac_c_werror_flag" ||
   5941 	 test ! -s conftest.err
   5942        } && test -s conftest.$ac_objext; then
   5943   ac_lo=$ac_mid; break
   5944 else
   5945   echo "$as_me: failed program was:" >&5
   5946 sed 's/^/| /' conftest.$ac_ext >&5
   5947 
   5948 	ac_hi=`expr '(' $ac_mid ')' - 1`
   5949 			if test $ac_mid -le $ac_hi; then
   5950 			  ac_lo= ac_hi=
   5951 			  break
   5952 			fi
   5953 			ac_mid=`expr 2 '*' $ac_mid`
   5954 fi
   5955 
   5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5957   done
   5958 else
   5959   echo "$as_me: failed program was:" >&5
   5960 sed 's/^/| /' conftest.$ac_ext >&5
   5961 
   5962 	ac_lo= ac_hi=
   5963 fi
   5964 
   5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5966 fi
   5967 
   5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5969 # Binary search between lo and hi bounds.
   5970 while test "x$ac_lo" != "x$ac_hi"; do
   5971   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   5972   cat >conftest.$ac_ext <<_ACEOF
   5973 /* confdefs.h.  */
   5974 _ACEOF
   5975 cat confdefs.h >>conftest.$ac_ext
   5976 cat >>conftest.$ac_ext <<_ACEOF
   5977 /* end confdefs.h.  */
   5978 $ac_includes_default
   5979    typedef short ac__type_sizeof_;
   5980 int
   5981 main ()
   5982 {
   5983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   5984 test_array [0] = 0
   5985 
   5986   ;
   5987   return 0;
   5988 }
   5989 _ACEOF
   5990 rm -f conftest.$ac_objext
   5991 if { (ac_try="$ac_compile"
   5992 case "(($ac_try" in
   5993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5994   *) ac_try_echo=$ac_try;;
   5995 esac
   5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5997   (eval "$ac_compile") 2>conftest.er1
   5998   ac_status=$?
   5999   grep -v '^ *+' conftest.er1 >conftest.err
   6000   rm -f conftest.er1
   6001   cat conftest.err >&5
   6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6003   (exit $ac_status); } && {
   6004 	 test -z "$ac_c_werror_flag" ||
   6005 	 test ! -s conftest.err
   6006        } && test -s conftest.$ac_objext; then
   6007   ac_hi=$ac_mid
   6008 else
   6009   echo "$as_me: failed program was:" >&5
   6010 sed 's/^/| /' conftest.$ac_ext >&5
   6011 
   6012 	ac_lo=`expr '(' $ac_mid ')' + 1`
   6013 fi
   6014 
   6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6016 done
   6017 case $ac_lo in
   6018 ?*) ac_cv_sizeof_short=$ac_lo;;
   6019 '') if test "$ac_cv_type_short" = yes; then
   6020      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
   6021 See \`config.log' for more details." >&5
   6022 echo "$as_me: error: cannot compute sizeof (short)
   6023 See \`config.log' for more details." >&2;}
   6024    { (exit 77); exit 77; }; }
   6025    else
   6026      ac_cv_sizeof_short=0
   6027    fi ;;
   6028 esac
   6029 else
   6030   cat >conftest.$ac_ext <<_ACEOF
   6031 /* confdefs.h.  */
   6032 _ACEOF
   6033 cat confdefs.h >>conftest.$ac_ext
   6034 cat >>conftest.$ac_ext <<_ACEOF
   6035 /* end confdefs.h.  */
   6036 $ac_includes_default
   6037    typedef short ac__type_sizeof_;
   6038 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   6039 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   6040 #include <stdio.h>
   6041 #include <stdlib.h>
   6042 int
   6043 main ()
   6044 {
   6045 
   6046   FILE *f = fopen ("conftest.val", "w");
   6047   if (! f)
   6048     return 1;
   6049   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   6050     {
   6051       long int i = longval ();
   6052       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   6053 	return 1;
   6054       fprintf (f, "%ld\n", i);
   6055     }
   6056   else
   6057     {
   6058       unsigned long int i = ulongval ();
   6059       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   6060 	return 1;
   6061       fprintf (f, "%lu\n", i);
   6062     }
   6063   return ferror (f) || fclose (f) != 0;
   6064 
   6065   ;
   6066   return 0;
   6067 }
   6068 _ACEOF
   6069 rm -f conftest$ac_exeext
   6070 if { (ac_try="$ac_link"
   6071 case "(($ac_try" in
   6072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6073   *) ac_try_echo=$ac_try;;
   6074 esac
   6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6076   (eval "$ac_link") 2>&5
   6077   ac_status=$?
   6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6080   { (case "(($ac_try" in
   6081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6082   *) ac_try_echo=$ac_try;;
   6083 esac
   6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6085   (eval "$ac_try") 2>&5
   6086   ac_status=$?
   6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6088   (exit $ac_status); }; }; then
   6089   ac_cv_sizeof_short=`cat conftest.val`
   6090 else
   6091   echo "$as_me: program exited with status $ac_status" >&5
   6092 echo "$as_me: failed program was:" >&5
   6093 sed 's/^/| /' conftest.$ac_ext >&5
   6094 
   6095 ( exit $ac_status )
   6096 if test "$ac_cv_type_short" = yes; then
   6097      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
   6098 See \`config.log' for more details." >&5
   6099 echo "$as_me: error: cannot compute sizeof (short)
   6100 See \`config.log' for more details." >&2;}
   6101    { (exit 77); exit 77; }; }
   6102    else
   6103      ac_cv_sizeof_short=0
   6104    fi
   6105 fi
   6106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6107 fi
   6108 rm -f conftest.val
   6109 fi
   6110 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
   6111 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
   6112 
   6113 
   6114 
   6115 cat >>confdefs.h <<_ACEOF
   6116 #define SIZEOF_SHORT $ac_cv_sizeof_short
   6117 _ACEOF
   6118 
   6119 
   6120 { echo "$as_me:$LINENO: checking for int" >&5
   6121 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
   6122 if test "${ac_cv_type_int+set}" = set; then
   6123   echo $ECHO_N "(cached) $ECHO_C" >&6
   6124 else
   6125   cat >conftest.$ac_ext <<_ACEOF
   6126 /* confdefs.h.  */
   6127 _ACEOF
   6128 cat confdefs.h >>conftest.$ac_ext
   6129 cat >>conftest.$ac_ext <<_ACEOF
   6130 /* end confdefs.h.  */
   6131 $ac_includes_default
   6132 typedef int ac__type_new_;
   6133 int
   6134 main ()
   6135 {
   6136 if ((ac__type_new_ *) 0)
   6137   return 0;
   6138 if (sizeof (ac__type_new_))
   6139   return 0;
   6140   ;
   6141   return 0;
   6142 }
   6143 _ACEOF
   6144 rm -f conftest.$ac_objext
   6145 if { (ac_try="$ac_compile"
   6146 case "(($ac_try" in
   6147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6148   *) ac_try_echo=$ac_try;;
   6149 esac
   6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6151   (eval "$ac_compile") 2>conftest.er1
   6152   ac_status=$?
   6153   grep -v '^ *+' conftest.er1 >conftest.err
   6154   rm -f conftest.er1
   6155   cat conftest.err >&5
   6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6157   (exit $ac_status); } && {
   6158 	 test -z "$ac_c_werror_flag" ||
   6159 	 test ! -s conftest.err
   6160        } && test -s conftest.$ac_objext; then
   6161   ac_cv_type_int=yes
   6162 else
   6163   echo "$as_me: failed program was:" >&5
   6164 sed 's/^/| /' conftest.$ac_ext >&5
   6165 
   6166 	ac_cv_type_int=no
   6167 fi
   6168 
   6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6170 fi
   6171 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
   6172 echo "${ECHO_T}$ac_cv_type_int" >&6; }
   6173 
   6174 # The cast to long int works around a bug in the HP C Compiler
   6175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6177 # This bug is HP SR number 8606223364.
   6178 { echo "$as_me:$LINENO: checking size of int" >&5
   6179 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
   6180 if test "${ac_cv_sizeof_int+set}" = set; then
   6181   echo $ECHO_N "(cached) $ECHO_C" >&6
   6182 else
   6183   if test "$cross_compiling" = yes; then
   6184   # Depending upon the size, compute the lo and hi bounds.
   6185 cat >conftest.$ac_ext <<_ACEOF
   6186 /* confdefs.h.  */
   6187 _ACEOF
   6188 cat confdefs.h >>conftest.$ac_ext
   6189 cat >>conftest.$ac_ext <<_ACEOF
   6190 /* end confdefs.h.  */
   6191 $ac_includes_default
   6192    typedef int ac__type_sizeof_;
   6193 int
   6194 main ()
   6195 {
   6196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   6197 test_array [0] = 0
   6198 
   6199   ;
   6200   return 0;
   6201 }
   6202 _ACEOF
   6203 rm -f conftest.$ac_objext
   6204 if { (ac_try="$ac_compile"
   6205 case "(($ac_try" in
   6206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6207   *) ac_try_echo=$ac_try;;
   6208 esac
   6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6210   (eval "$ac_compile") 2>conftest.er1
   6211   ac_status=$?
   6212   grep -v '^ *+' conftest.er1 >conftest.err
   6213   rm -f conftest.er1
   6214   cat conftest.err >&5
   6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6216   (exit $ac_status); } && {
   6217 	 test -z "$ac_c_werror_flag" ||
   6218 	 test ! -s conftest.err
   6219        } && test -s conftest.$ac_objext; then
   6220   ac_lo=0 ac_mid=0
   6221   while :; do
   6222     cat >conftest.$ac_ext <<_ACEOF
   6223 /* confdefs.h.  */
   6224 _ACEOF
   6225 cat confdefs.h >>conftest.$ac_ext
   6226 cat >>conftest.$ac_ext <<_ACEOF
   6227 /* end confdefs.h.  */
   6228 $ac_includes_default
   6229    typedef int ac__type_sizeof_;
   6230 int
   6231 main ()
   6232 {
   6233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   6234 test_array [0] = 0
   6235 
   6236   ;
   6237   return 0;
   6238 }
   6239 _ACEOF
   6240 rm -f conftest.$ac_objext
   6241 if { (ac_try="$ac_compile"
   6242 case "(($ac_try" in
   6243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6244   *) ac_try_echo=$ac_try;;
   6245 esac
   6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6247   (eval "$ac_compile") 2>conftest.er1
   6248   ac_status=$?
   6249   grep -v '^ *+' conftest.er1 >conftest.err
   6250   rm -f conftest.er1
   6251   cat conftest.err >&5
   6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6253   (exit $ac_status); } && {
   6254 	 test -z "$ac_c_werror_flag" ||
   6255 	 test ! -s conftest.err
   6256        } && test -s conftest.$ac_objext; then
   6257   ac_hi=$ac_mid; break
   6258 else
   6259   echo "$as_me: failed program was:" >&5
   6260 sed 's/^/| /' conftest.$ac_ext >&5
   6261 
   6262 	ac_lo=`expr $ac_mid + 1`
   6263 			if test $ac_lo -le $ac_mid; then
   6264 			  ac_lo= ac_hi=
   6265 			  break
   6266 			fi
   6267 			ac_mid=`expr 2 '*' $ac_mid + 1`
   6268 fi
   6269 
   6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6271   done
   6272 else
   6273   echo "$as_me: failed program was:" >&5
   6274 sed 's/^/| /' conftest.$ac_ext >&5
   6275 
   6276 	cat >conftest.$ac_ext <<_ACEOF
   6277 /* confdefs.h.  */
   6278 _ACEOF
   6279 cat confdefs.h >>conftest.$ac_ext
   6280 cat >>conftest.$ac_ext <<_ACEOF
   6281 /* end confdefs.h.  */
   6282 $ac_includes_default
   6283    typedef int ac__type_sizeof_;
   6284 int
   6285 main ()
   6286 {
   6287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   6288 test_array [0] = 0
   6289 
   6290   ;
   6291   return 0;
   6292 }
   6293 _ACEOF
   6294 rm -f conftest.$ac_objext
   6295 if { (ac_try="$ac_compile"
   6296 case "(($ac_try" in
   6297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6298   *) ac_try_echo=$ac_try;;
   6299 esac
   6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6301   (eval "$ac_compile") 2>conftest.er1
   6302   ac_status=$?
   6303   grep -v '^ *+' conftest.er1 >conftest.err
   6304   rm -f conftest.er1
   6305   cat conftest.err >&5
   6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6307   (exit $ac_status); } && {
   6308 	 test -z "$ac_c_werror_flag" ||
   6309 	 test ! -s conftest.err
   6310        } && test -s conftest.$ac_objext; then
   6311   ac_hi=-1 ac_mid=-1
   6312   while :; do
   6313     cat >conftest.$ac_ext <<_ACEOF
   6314 /* confdefs.h.  */
   6315 _ACEOF
   6316 cat confdefs.h >>conftest.$ac_ext
   6317 cat >>conftest.$ac_ext <<_ACEOF
   6318 /* end confdefs.h.  */
   6319 $ac_includes_default
   6320    typedef int ac__type_sizeof_;
   6321 int
   6322 main ()
   6323 {
   6324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   6325 test_array [0] = 0
   6326 
   6327   ;
   6328   return 0;
   6329 }
   6330 _ACEOF
   6331 rm -f conftest.$ac_objext
   6332 if { (ac_try="$ac_compile"
   6333 case "(($ac_try" in
   6334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6335   *) ac_try_echo=$ac_try;;
   6336 esac
   6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6338   (eval "$ac_compile") 2>conftest.er1
   6339   ac_status=$?
   6340   grep -v '^ *+' conftest.er1 >conftest.err
   6341   rm -f conftest.er1
   6342   cat conftest.err >&5
   6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6344   (exit $ac_status); } && {
   6345 	 test -z "$ac_c_werror_flag" ||
   6346 	 test ! -s conftest.err
   6347        } && test -s conftest.$ac_objext; then
   6348   ac_lo=$ac_mid; break
   6349 else
   6350   echo "$as_me: failed program was:" >&5
   6351 sed 's/^/| /' conftest.$ac_ext >&5
   6352 
   6353 	ac_hi=`expr '(' $ac_mid ')' - 1`
   6354 			if test $ac_mid -le $ac_hi; then
   6355 			  ac_lo= ac_hi=
   6356 			  break
   6357 			fi
   6358 			ac_mid=`expr 2 '*' $ac_mid`
   6359 fi
   6360 
   6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6362   done
   6363 else
   6364   echo "$as_me: failed program was:" >&5
   6365 sed 's/^/| /' conftest.$ac_ext >&5
   6366 
   6367 	ac_lo= ac_hi=
   6368 fi
   6369 
   6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6371 fi
   6372 
   6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6374 # Binary search between lo and hi bounds.
   6375 while test "x$ac_lo" != "x$ac_hi"; do
   6376   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   6377   cat >conftest.$ac_ext <<_ACEOF
   6378 /* confdefs.h.  */
   6379 _ACEOF
   6380 cat confdefs.h >>conftest.$ac_ext
   6381 cat >>conftest.$ac_ext <<_ACEOF
   6382 /* end confdefs.h.  */
   6383 $ac_includes_default
   6384    typedef int ac__type_sizeof_;
   6385 int
   6386 main ()
   6387 {
   6388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   6389 test_array [0] = 0
   6390 
   6391   ;
   6392   return 0;
   6393 }
   6394 _ACEOF
   6395 rm -f conftest.$ac_objext
   6396 if { (ac_try="$ac_compile"
   6397 case "(($ac_try" in
   6398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6399   *) ac_try_echo=$ac_try;;
   6400 esac
   6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6402   (eval "$ac_compile") 2>conftest.er1
   6403   ac_status=$?
   6404   grep -v '^ *+' conftest.er1 >conftest.err
   6405   rm -f conftest.er1
   6406   cat conftest.err >&5
   6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6408   (exit $ac_status); } && {
   6409 	 test -z "$ac_c_werror_flag" ||
   6410 	 test ! -s conftest.err
   6411        } && test -s conftest.$ac_objext; then
   6412   ac_hi=$ac_mid
   6413 else
   6414   echo "$as_me: failed program was:" >&5
   6415 sed 's/^/| /' conftest.$ac_ext >&5
   6416 
   6417 	ac_lo=`expr '(' $ac_mid ')' + 1`
   6418 fi
   6419 
   6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6421 done
   6422 case $ac_lo in
   6423 ?*) ac_cv_sizeof_int=$ac_lo;;
   6424 '') if test "$ac_cv_type_int" = yes; then
   6425      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
   6426 See \`config.log' for more details." >&5
   6427 echo "$as_me: error: cannot compute sizeof (int)
   6428 See \`config.log' for more details." >&2;}
   6429    { (exit 77); exit 77; }; }
   6430    else
   6431      ac_cv_sizeof_int=0
   6432    fi ;;
   6433 esac
   6434 else
   6435   cat >conftest.$ac_ext <<_ACEOF
   6436 /* confdefs.h.  */
   6437 _ACEOF
   6438 cat confdefs.h >>conftest.$ac_ext
   6439 cat >>conftest.$ac_ext <<_ACEOF
   6440 /* end confdefs.h.  */
   6441 $ac_includes_default
   6442    typedef int ac__type_sizeof_;
   6443 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   6444 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   6445 #include <stdio.h>
   6446 #include <stdlib.h>
   6447 int
   6448 main ()
   6449 {
   6450 
   6451   FILE *f = fopen ("conftest.val", "w");
   6452   if (! f)
   6453     return 1;
   6454   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   6455     {
   6456       long int i = longval ();
   6457       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   6458 	return 1;
   6459       fprintf (f, "%ld\n", i);
   6460     }
   6461   else
   6462     {
   6463       unsigned long int i = ulongval ();
   6464       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   6465 	return 1;
   6466       fprintf (f, "%lu\n", i);
   6467     }
   6468   return ferror (f) || fclose (f) != 0;
   6469 
   6470   ;
   6471   return 0;
   6472 }
   6473 _ACEOF
   6474 rm -f conftest$ac_exeext
   6475 if { (ac_try="$ac_link"
   6476 case "(($ac_try" in
   6477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6478   *) ac_try_echo=$ac_try;;
   6479 esac
   6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6481   (eval "$ac_link") 2>&5
   6482   ac_status=$?
   6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6485   { (case "(($ac_try" in
   6486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6487   *) ac_try_echo=$ac_try;;
   6488 esac
   6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6490   (eval "$ac_try") 2>&5
   6491   ac_status=$?
   6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6493   (exit $ac_status); }; }; then
   6494   ac_cv_sizeof_int=`cat conftest.val`
   6495 else
   6496   echo "$as_me: program exited with status $ac_status" >&5
   6497 echo "$as_me: failed program was:" >&5
   6498 sed 's/^/| /' conftest.$ac_ext >&5
   6499 
   6500 ( exit $ac_status )
   6501 if test "$ac_cv_type_int" = yes; then
   6502      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
   6503 See \`config.log' for more details." >&5
   6504 echo "$as_me: error: cannot compute sizeof (int)
   6505 See \`config.log' for more details." >&2;}
   6506    { (exit 77); exit 77; }; }
   6507    else
   6508      ac_cv_sizeof_int=0
   6509    fi
   6510 fi
   6511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6512 fi
   6513 rm -f conftest.val
   6514 fi
   6515 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
   6516 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
   6517 
   6518 
   6519 
   6520 cat >>confdefs.h <<_ACEOF
   6521 #define SIZEOF_INT $ac_cv_sizeof_int
   6522 _ACEOF
   6523 
   6524 
   6525 { echo "$as_me:$LINENO: checking for long" >&5
   6526 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
   6527 if test "${ac_cv_type_long+set}" = set; then
   6528   echo $ECHO_N "(cached) $ECHO_C" >&6
   6529 else
   6530   cat >conftest.$ac_ext <<_ACEOF
   6531 /* confdefs.h.  */
   6532 _ACEOF
   6533 cat confdefs.h >>conftest.$ac_ext
   6534 cat >>conftest.$ac_ext <<_ACEOF
   6535 /* end confdefs.h.  */
   6536 $ac_includes_default
   6537 typedef long ac__type_new_;
   6538 int
   6539 main ()
   6540 {
   6541 if ((ac__type_new_ *) 0)
   6542   return 0;
   6543 if (sizeof (ac__type_new_))
   6544   return 0;
   6545   ;
   6546   return 0;
   6547 }
   6548 _ACEOF
   6549 rm -f conftest.$ac_objext
   6550 if { (ac_try="$ac_compile"
   6551 case "(($ac_try" in
   6552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6553   *) ac_try_echo=$ac_try;;
   6554 esac
   6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6556   (eval "$ac_compile") 2>conftest.er1
   6557   ac_status=$?
   6558   grep -v '^ *+' conftest.er1 >conftest.err
   6559   rm -f conftest.er1
   6560   cat conftest.err >&5
   6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6562   (exit $ac_status); } && {
   6563 	 test -z "$ac_c_werror_flag" ||
   6564 	 test ! -s conftest.err
   6565        } && test -s conftest.$ac_objext; then
   6566   ac_cv_type_long=yes
   6567 else
   6568   echo "$as_me: failed program was:" >&5
   6569 sed 's/^/| /' conftest.$ac_ext >&5
   6570 
   6571 	ac_cv_type_long=no
   6572 fi
   6573 
   6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6575 fi
   6576 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
   6577 echo "${ECHO_T}$ac_cv_type_long" >&6; }
   6578 
   6579 # The cast to long int works around a bug in the HP C Compiler
   6580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6582 # This bug is HP SR number 8606223364.
   6583 { echo "$as_me:$LINENO: checking size of long" >&5
   6584 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
   6585 if test "${ac_cv_sizeof_long+set}" = set; then
   6586   echo $ECHO_N "(cached) $ECHO_C" >&6
   6587 else
   6588   if test "$cross_compiling" = yes; then
   6589   # Depending upon the size, compute the lo and hi bounds.
   6590 cat >conftest.$ac_ext <<_ACEOF
   6591 /* confdefs.h.  */
   6592 _ACEOF
   6593 cat confdefs.h >>conftest.$ac_ext
   6594 cat >>conftest.$ac_ext <<_ACEOF
   6595 /* end confdefs.h.  */
   6596 $ac_includes_default
   6597    typedef long ac__type_sizeof_;
   6598 int
   6599 main ()
   6600 {
   6601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   6602 test_array [0] = 0
   6603 
   6604   ;
   6605   return 0;
   6606 }
   6607 _ACEOF
   6608 rm -f conftest.$ac_objext
   6609 if { (ac_try="$ac_compile"
   6610 case "(($ac_try" in
   6611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6612   *) ac_try_echo=$ac_try;;
   6613 esac
   6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6615   (eval "$ac_compile") 2>conftest.er1
   6616   ac_status=$?
   6617   grep -v '^ *+' conftest.er1 >conftest.err
   6618   rm -f conftest.er1
   6619   cat conftest.err >&5
   6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6621   (exit $ac_status); } && {
   6622 	 test -z "$ac_c_werror_flag" ||
   6623 	 test ! -s conftest.err
   6624        } && test -s conftest.$ac_objext; then
   6625   ac_lo=0 ac_mid=0
   6626   while :; do
   6627     cat >conftest.$ac_ext <<_ACEOF
   6628 /* confdefs.h.  */
   6629 _ACEOF
   6630 cat confdefs.h >>conftest.$ac_ext
   6631 cat >>conftest.$ac_ext <<_ACEOF
   6632 /* end confdefs.h.  */
   6633 $ac_includes_default
   6634    typedef long ac__type_sizeof_;
   6635 int
   6636 main ()
   6637 {
   6638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   6639 test_array [0] = 0
   6640 
   6641   ;
   6642   return 0;
   6643 }
   6644 _ACEOF
   6645 rm -f conftest.$ac_objext
   6646 if { (ac_try="$ac_compile"
   6647 case "(($ac_try" in
   6648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6649   *) ac_try_echo=$ac_try;;
   6650 esac
   6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6652   (eval "$ac_compile") 2>conftest.er1
   6653   ac_status=$?
   6654   grep -v '^ *+' conftest.er1 >conftest.err
   6655   rm -f conftest.er1
   6656   cat conftest.err >&5
   6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6658   (exit $ac_status); } && {
   6659 	 test -z "$ac_c_werror_flag" ||
   6660 	 test ! -s conftest.err
   6661        } && test -s conftest.$ac_objext; then
   6662   ac_hi=$ac_mid; break
   6663 else
   6664   echo "$as_me: failed program was:" >&5
   6665 sed 's/^/| /' conftest.$ac_ext >&5
   6666 
   6667 	ac_lo=`expr $ac_mid + 1`
   6668 			if test $ac_lo -le $ac_mid; then
   6669 			  ac_lo= ac_hi=
   6670 			  break
   6671 			fi
   6672 			ac_mid=`expr 2 '*' $ac_mid + 1`
   6673 fi
   6674 
   6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6676   done
   6677 else
   6678   echo "$as_me: failed program was:" >&5
   6679 sed 's/^/| /' conftest.$ac_ext >&5
   6680 
   6681 	cat >conftest.$ac_ext <<_ACEOF
   6682 /* confdefs.h.  */
   6683 _ACEOF
   6684 cat confdefs.h >>conftest.$ac_ext
   6685 cat >>conftest.$ac_ext <<_ACEOF
   6686 /* end confdefs.h.  */
   6687 $ac_includes_default
   6688    typedef long ac__type_sizeof_;
   6689 int
   6690 main ()
   6691 {
   6692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   6693 test_array [0] = 0
   6694 
   6695   ;
   6696   return 0;
   6697 }
   6698 _ACEOF
   6699 rm -f conftest.$ac_objext
   6700 if { (ac_try="$ac_compile"
   6701 case "(($ac_try" in
   6702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6703   *) ac_try_echo=$ac_try;;
   6704 esac
   6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6706   (eval "$ac_compile") 2>conftest.er1
   6707   ac_status=$?
   6708   grep -v '^ *+' conftest.er1 >conftest.err
   6709   rm -f conftest.er1
   6710   cat conftest.err >&5
   6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6712   (exit $ac_status); } && {
   6713 	 test -z "$ac_c_werror_flag" ||
   6714 	 test ! -s conftest.err
   6715        } && test -s conftest.$ac_objext; then
   6716   ac_hi=-1 ac_mid=-1
   6717   while :; do
   6718     cat >conftest.$ac_ext <<_ACEOF
   6719 /* confdefs.h.  */
   6720 _ACEOF
   6721 cat confdefs.h >>conftest.$ac_ext
   6722 cat >>conftest.$ac_ext <<_ACEOF
   6723 /* end confdefs.h.  */
   6724 $ac_includes_default
   6725    typedef long ac__type_sizeof_;
   6726 int
   6727 main ()
   6728 {
   6729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   6730 test_array [0] = 0
   6731 
   6732   ;
   6733   return 0;
   6734 }
   6735 _ACEOF
   6736 rm -f conftest.$ac_objext
   6737 if { (ac_try="$ac_compile"
   6738 case "(($ac_try" in
   6739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6740   *) ac_try_echo=$ac_try;;
   6741 esac
   6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6743   (eval "$ac_compile") 2>conftest.er1
   6744   ac_status=$?
   6745   grep -v '^ *+' conftest.er1 >conftest.err
   6746   rm -f conftest.er1
   6747   cat conftest.err >&5
   6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6749   (exit $ac_status); } && {
   6750 	 test -z "$ac_c_werror_flag" ||
   6751 	 test ! -s conftest.err
   6752        } && test -s conftest.$ac_objext; then
   6753   ac_lo=$ac_mid; break
   6754 else
   6755   echo "$as_me: failed program was:" >&5
   6756 sed 's/^/| /' conftest.$ac_ext >&5
   6757 
   6758 	ac_hi=`expr '(' $ac_mid ')' - 1`
   6759 			if test $ac_mid -le $ac_hi; then
   6760 			  ac_lo= ac_hi=
   6761 			  break
   6762 			fi
   6763 			ac_mid=`expr 2 '*' $ac_mid`
   6764 fi
   6765 
   6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6767   done
   6768 else
   6769   echo "$as_me: failed program was:" >&5
   6770 sed 's/^/| /' conftest.$ac_ext >&5
   6771 
   6772 	ac_lo= ac_hi=
   6773 fi
   6774 
   6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6776 fi
   6777 
   6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6779 # Binary search between lo and hi bounds.
   6780 while test "x$ac_lo" != "x$ac_hi"; do
   6781   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   6782   cat >conftest.$ac_ext <<_ACEOF
   6783 /* confdefs.h.  */
   6784 _ACEOF
   6785 cat confdefs.h >>conftest.$ac_ext
   6786 cat >>conftest.$ac_ext <<_ACEOF
   6787 /* end confdefs.h.  */
   6788 $ac_includes_default
   6789    typedef long ac__type_sizeof_;
   6790 int
   6791 main ()
   6792 {
   6793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   6794 test_array [0] = 0
   6795 
   6796   ;
   6797   return 0;
   6798 }
   6799 _ACEOF
   6800 rm -f conftest.$ac_objext
   6801 if { (ac_try="$ac_compile"
   6802 case "(($ac_try" in
   6803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6804   *) ac_try_echo=$ac_try;;
   6805 esac
   6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6807   (eval "$ac_compile") 2>conftest.er1
   6808   ac_status=$?
   6809   grep -v '^ *+' conftest.er1 >conftest.err
   6810   rm -f conftest.er1
   6811   cat conftest.err >&5
   6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6813   (exit $ac_status); } && {
   6814 	 test -z "$ac_c_werror_flag" ||
   6815 	 test ! -s conftest.err
   6816        } && test -s conftest.$ac_objext; then
   6817   ac_hi=$ac_mid
   6818 else
   6819   echo "$as_me: failed program was:" >&5
   6820 sed 's/^/| /' conftest.$ac_ext >&5
   6821 
   6822 	ac_lo=`expr '(' $ac_mid ')' + 1`
   6823 fi
   6824 
   6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6826 done
   6827 case $ac_lo in
   6828 ?*) ac_cv_sizeof_long=$ac_lo;;
   6829 '') if test "$ac_cv_type_long" = yes; then
   6830      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
   6831 See \`config.log' for more details." >&5
   6832 echo "$as_me: error: cannot compute sizeof (long)
   6833 See \`config.log' for more details." >&2;}
   6834    { (exit 77); exit 77; }; }
   6835    else
   6836      ac_cv_sizeof_long=0
   6837    fi ;;
   6838 esac
   6839 else
   6840   cat >conftest.$ac_ext <<_ACEOF
   6841 /* confdefs.h.  */
   6842 _ACEOF
   6843 cat confdefs.h >>conftest.$ac_ext
   6844 cat >>conftest.$ac_ext <<_ACEOF
   6845 /* end confdefs.h.  */
   6846 $ac_includes_default
   6847    typedef long ac__type_sizeof_;
   6848 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   6849 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   6850 #include <stdio.h>
   6851 #include <stdlib.h>
   6852 int
   6853 main ()
   6854 {
   6855 
   6856   FILE *f = fopen ("conftest.val", "w");
   6857   if (! f)
   6858     return 1;
   6859   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   6860     {
   6861       long int i = longval ();
   6862       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   6863 	return 1;
   6864       fprintf (f, "%ld\n", i);
   6865     }
   6866   else
   6867     {
   6868       unsigned long int i = ulongval ();
   6869       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   6870 	return 1;
   6871       fprintf (f, "%lu\n", i);
   6872     }
   6873   return ferror (f) || fclose (f) != 0;
   6874 
   6875   ;
   6876   return 0;
   6877 }
   6878 _ACEOF
   6879 rm -f conftest$ac_exeext
   6880 if { (ac_try="$ac_link"
   6881 case "(($ac_try" in
   6882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6883   *) ac_try_echo=$ac_try;;
   6884 esac
   6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6886   (eval "$ac_link") 2>&5
   6887   ac_status=$?
   6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6890   { (case "(($ac_try" in
   6891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6892   *) ac_try_echo=$ac_try;;
   6893 esac
   6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6895   (eval "$ac_try") 2>&5
   6896   ac_status=$?
   6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6898   (exit $ac_status); }; }; then
   6899   ac_cv_sizeof_long=`cat conftest.val`
   6900 else
   6901   echo "$as_me: program exited with status $ac_status" >&5
   6902 echo "$as_me: failed program was:" >&5
   6903 sed 's/^/| /' conftest.$ac_ext >&5
   6904 
   6905 ( exit $ac_status )
   6906 if test "$ac_cv_type_long" = yes; then
   6907      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
   6908 See \`config.log' for more details." >&5
   6909 echo "$as_me: error: cannot compute sizeof (long)
   6910 See \`config.log' for more details." >&2;}
   6911    { (exit 77); exit 77; }; }
   6912    else
   6913      ac_cv_sizeof_long=0
   6914    fi
   6915 fi
   6916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6917 fi
   6918 rm -f conftest.val
   6919 fi
   6920 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
   6921 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
   6922 
   6923 
   6924 
   6925 cat >>confdefs.h <<_ACEOF
   6926 #define SIZEOF_LONG $ac_cv_sizeof_long
   6927 _ACEOF
   6928 
   6929 
   6930 { echo "$as_me:$LINENO: checking for long long" >&5
   6931 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
   6932 if test "${ac_cv_type_long_long+set}" = set; then
   6933   echo $ECHO_N "(cached) $ECHO_C" >&6
   6934 else
   6935   cat >conftest.$ac_ext <<_ACEOF
   6936 /* confdefs.h.  */
   6937 _ACEOF
   6938 cat confdefs.h >>conftest.$ac_ext
   6939 cat >>conftest.$ac_ext <<_ACEOF
   6940 /* end confdefs.h.  */
   6941 $ac_includes_default
   6942 typedef long long ac__type_new_;
   6943 int
   6944 main ()
   6945 {
   6946 if ((ac__type_new_ *) 0)
   6947   return 0;
   6948 if (sizeof (ac__type_new_))
   6949   return 0;
   6950   ;
   6951   return 0;
   6952 }
   6953 _ACEOF
   6954 rm -f conftest.$ac_objext
   6955 if { (ac_try="$ac_compile"
   6956 case "(($ac_try" in
   6957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6958   *) ac_try_echo=$ac_try;;
   6959 esac
   6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6961   (eval "$ac_compile") 2>conftest.er1
   6962   ac_status=$?
   6963   grep -v '^ *+' conftest.er1 >conftest.err
   6964   rm -f conftest.er1
   6965   cat conftest.err >&5
   6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6967   (exit $ac_status); } && {
   6968 	 test -z "$ac_c_werror_flag" ||
   6969 	 test ! -s conftest.err
   6970        } && test -s conftest.$ac_objext; then
   6971   ac_cv_type_long_long=yes
   6972 else
   6973   echo "$as_me: failed program was:" >&5
   6974 sed 's/^/| /' conftest.$ac_ext >&5
   6975 
   6976 	ac_cv_type_long_long=no
   6977 fi
   6978 
   6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6980 fi
   6981 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
   6982 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
   6983 
   6984 # The cast to long int works around a bug in the HP C Compiler
   6985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6987 # This bug is HP SR number 8606223364.
   6988 { echo "$as_me:$LINENO: checking size of long long" >&5
   6989 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
   6990 if test "${ac_cv_sizeof_long_long+set}" = set; then
   6991   echo $ECHO_N "(cached) $ECHO_C" >&6
   6992 else
   6993   if test "$cross_compiling" = yes; then
   6994   # Depending upon the size, compute the lo and hi bounds.
   6995 cat >conftest.$ac_ext <<_ACEOF
   6996 /* confdefs.h.  */
   6997 _ACEOF
   6998 cat confdefs.h >>conftest.$ac_ext
   6999 cat >>conftest.$ac_ext <<_ACEOF
   7000 /* end confdefs.h.  */
   7001 $ac_includes_default
   7002    typedef long long ac__type_sizeof_;
   7003 int
   7004 main ()
   7005 {
   7006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   7007 test_array [0] = 0
   7008 
   7009   ;
   7010   return 0;
   7011 }
   7012 _ACEOF
   7013 rm -f conftest.$ac_objext
   7014 if { (ac_try="$ac_compile"
   7015 case "(($ac_try" in
   7016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7017   *) ac_try_echo=$ac_try;;
   7018 esac
   7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7020   (eval "$ac_compile") 2>conftest.er1
   7021   ac_status=$?
   7022   grep -v '^ *+' conftest.er1 >conftest.err
   7023   rm -f conftest.er1
   7024   cat conftest.err >&5
   7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7026   (exit $ac_status); } && {
   7027 	 test -z "$ac_c_werror_flag" ||
   7028 	 test ! -s conftest.err
   7029        } && test -s conftest.$ac_objext; then
   7030   ac_lo=0 ac_mid=0
   7031   while :; do
   7032     cat >conftest.$ac_ext <<_ACEOF
   7033 /* confdefs.h.  */
   7034 _ACEOF
   7035 cat confdefs.h >>conftest.$ac_ext
   7036 cat >>conftest.$ac_ext <<_ACEOF
   7037 /* end confdefs.h.  */
   7038 $ac_includes_default
   7039    typedef long long ac__type_sizeof_;
   7040 int
   7041 main ()
   7042 {
   7043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   7044 test_array [0] = 0
   7045 
   7046   ;
   7047   return 0;
   7048 }
   7049 _ACEOF
   7050 rm -f conftest.$ac_objext
   7051 if { (ac_try="$ac_compile"
   7052 case "(($ac_try" in
   7053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7054   *) ac_try_echo=$ac_try;;
   7055 esac
   7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7057   (eval "$ac_compile") 2>conftest.er1
   7058   ac_status=$?
   7059   grep -v '^ *+' conftest.er1 >conftest.err
   7060   rm -f conftest.er1
   7061   cat conftest.err >&5
   7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7063   (exit $ac_status); } && {
   7064 	 test -z "$ac_c_werror_flag" ||
   7065 	 test ! -s conftest.err
   7066        } && test -s conftest.$ac_objext; then
   7067   ac_hi=$ac_mid; break
   7068 else
   7069   echo "$as_me: failed program was:" >&5
   7070 sed 's/^/| /' conftest.$ac_ext >&5
   7071 
   7072 	ac_lo=`expr $ac_mid + 1`
   7073 			if test $ac_lo -le $ac_mid; then
   7074 			  ac_lo= ac_hi=
   7075 			  break
   7076 			fi
   7077 			ac_mid=`expr 2 '*' $ac_mid + 1`
   7078 fi
   7079 
   7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7081   done
   7082 else
   7083   echo "$as_me: failed program was:" >&5
   7084 sed 's/^/| /' conftest.$ac_ext >&5
   7085 
   7086 	cat >conftest.$ac_ext <<_ACEOF
   7087 /* confdefs.h.  */
   7088 _ACEOF
   7089 cat confdefs.h >>conftest.$ac_ext
   7090 cat >>conftest.$ac_ext <<_ACEOF
   7091 /* end confdefs.h.  */
   7092 $ac_includes_default
   7093    typedef long long ac__type_sizeof_;
   7094 int
   7095 main ()
   7096 {
   7097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   7098 test_array [0] = 0
   7099 
   7100   ;
   7101   return 0;
   7102 }
   7103 _ACEOF
   7104 rm -f conftest.$ac_objext
   7105 if { (ac_try="$ac_compile"
   7106 case "(($ac_try" in
   7107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7108   *) ac_try_echo=$ac_try;;
   7109 esac
   7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7111   (eval "$ac_compile") 2>conftest.er1
   7112   ac_status=$?
   7113   grep -v '^ *+' conftest.er1 >conftest.err
   7114   rm -f conftest.er1
   7115   cat conftest.err >&5
   7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7117   (exit $ac_status); } && {
   7118 	 test -z "$ac_c_werror_flag" ||
   7119 	 test ! -s conftest.err
   7120        } && test -s conftest.$ac_objext; then
   7121   ac_hi=-1 ac_mid=-1
   7122   while :; do
   7123     cat >conftest.$ac_ext <<_ACEOF
   7124 /* confdefs.h.  */
   7125 _ACEOF
   7126 cat confdefs.h >>conftest.$ac_ext
   7127 cat >>conftest.$ac_ext <<_ACEOF
   7128 /* end confdefs.h.  */
   7129 $ac_includes_default
   7130    typedef long long ac__type_sizeof_;
   7131 int
   7132 main ()
   7133 {
   7134 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   7135 test_array [0] = 0
   7136 
   7137   ;
   7138   return 0;
   7139 }
   7140 _ACEOF
   7141 rm -f conftest.$ac_objext
   7142 if { (ac_try="$ac_compile"
   7143 case "(($ac_try" in
   7144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7145   *) ac_try_echo=$ac_try;;
   7146 esac
   7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7148   (eval "$ac_compile") 2>conftest.er1
   7149   ac_status=$?
   7150   grep -v '^ *+' conftest.er1 >conftest.err
   7151   rm -f conftest.er1
   7152   cat conftest.err >&5
   7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7154   (exit $ac_status); } && {
   7155 	 test -z "$ac_c_werror_flag" ||
   7156 	 test ! -s conftest.err
   7157        } && test -s conftest.$ac_objext; then
   7158   ac_lo=$ac_mid; break
   7159 else
   7160   echo "$as_me: failed program was:" >&5
   7161 sed 's/^/| /' conftest.$ac_ext >&5
   7162 
   7163 	ac_hi=`expr '(' $ac_mid ')' - 1`
   7164 			if test $ac_mid -le $ac_hi; then
   7165 			  ac_lo= ac_hi=
   7166 			  break
   7167 			fi
   7168 			ac_mid=`expr 2 '*' $ac_mid`
   7169 fi
   7170 
   7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7172   done
   7173 else
   7174   echo "$as_me: failed program was:" >&5
   7175 sed 's/^/| /' conftest.$ac_ext >&5
   7176 
   7177 	ac_lo= ac_hi=
   7178 fi
   7179 
   7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7181 fi
   7182 
   7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7184 # Binary search between lo and hi bounds.
   7185 while test "x$ac_lo" != "x$ac_hi"; do
   7186   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   7187   cat >conftest.$ac_ext <<_ACEOF
   7188 /* confdefs.h.  */
   7189 _ACEOF
   7190 cat confdefs.h >>conftest.$ac_ext
   7191 cat >>conftest.$ac_ext <<_ACEOF
   7192 /* end confdefs.h.  */
   7193 $ac_includes_default
   7194    typedef long long ac__type_sizeof_;
   7195 int
   7196 main ()
   7197 {
   7198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   7199 test_array [0] = 0
   7200 
   7201   ;
   7202   return 0;
   7203 }
   7204 _ACEOF
   7205 rm -f conftest.$ac_objext
   7206 if { (ac_try="$ac_compile"
   7207 case "(($ac_try" in
   7208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7209   *) ac_try_echo=$ac_try;;
   7210 esac
   7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7212   (eval "$ac_compile") 2>conftest.er1
   7213   ac_status=$?
   7214   grep -v '^ *+' conftest.er1 >conftest.err
   7215   rm -f conftest.er1
   7216   cat conftest.err >&5
   7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7218   (exit $ac_status); } && {
   7219 	 test -z "$ac_c_werror_flag" ||
   7220 	 test ! -s conftest.err
   7221        } && test -s conftest.$ac_objext; then
   7222   ac_hi=$ac_mid
   7223 else
   7224   echo "$as_me: failed program was:" >&5
   7225 sed 's/^/| /' conftest.$ac_ext >&5
   7226 
   7227 	ac_lo=`expr '(' $ac_mid ')' + 1`
   7228 fi
   7229 
   7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7231 done
   7232 case $ac_lo in
   7233 ?*) ac_cv_sizeof_long_long=$ac_lo;;
   7234 '') if test "$ac_cv_type_long_long" = yes; then
   7235      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
   7236 See \`config.log' for more details." >&5
   7237 echo "$as_me: error: cannot compute sizeof (long long)
   7238 See \`config.log' for more details." >&2;}
   7239    { (exit 77); exit 77; }; }
   7240    else
   7241      ac_cv_sizeof_long_long=0
   7242    fi ;;
   7243 esac
   7244 else
   7245   cat >conftest.$ac_ext <<_ACEOF
   7246 /* confdefs.h.  */
   7247 _ACEOF
   7248 cat confdefs.h >>conftest.$ac_ext
   7249 cat >>conftest.$ac_ext <<_ACEOF
   7250 /* end confdefs.h.  */
   7251 $ac_includes_default
   7252    typedef long long ac__type_sizeof_;
   7253 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   7254 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   7255 #include <stdio.h>
   7256 #include <stdlib.h>
   7257 int
   7258 main ()
   7259 {
   7260 
   7261   FILE *f = fopen ("conftest.val", "w");
   7262   if (! f)
   7263     return 1;
   7264   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   7265     {
   7266       long int i = longval ();
   7267       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   7268 	return 1;
   7269       fprintf (f, "%ld\n", i);
   7270     }
   7271   else
   7272     {
   7273       unsigned long int i = ulongval ();
   7274       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   7275 	return 1;
   7276       fprintf (f, "%lu\n", i);
   7277     }
   7278   return ferror (f) || fclose (f) != 0;
   7279 
   7280   ;
   7281   return 0;
   7282 }
   7283 _ACEOF
   7284 rm -f conftest$ac_exeext
   7285 if { (ac_try="$ac_link"
   7286 case "(($ac_try" in
   7287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7288   *) ac_try_echo=$ac_try;;
   7289 esac
   7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7291   (eval "$ac_link") 2>&5
   7292   ac_status=$?
   7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7295   { (case "(($ac_try" in
   7296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7297   *) ac_try_echo=$ac_try;;
   7298 esac
   7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7300   (eval "$ac_try") 2>&5
   7301   ac_status=$?
   7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7303   (exit $ac_status); }; }; then
   7304   ac_cv_sizeof_long_long=`cat conftest.val`
   7305 else
   7306   echo "$as_me: program exited with status $ac_status" >&5
   7307 echo "$as_me: failed program was:" >&5
   7308 sed 's/^/| /' conftest.$ac_ext >&5
   7309 
   7310 ( exit $ac_status )
   7311 if test "$ac_cv_type_long_long" = yes; then
   7312      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
   7313 See \`config.log' for more details." >&5
   7314 echo "$as_me: error: cannot compute sizeof (long long)
   7315 See \`config.log' for more details." >&2;}
   7316    { (exit 77); exit 77; }; }
   7317    else
   7318      ac_cv_sizeof_long_long=0
   7319    fi
   7320 fi
   7321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7322 fi
   7323 rm -f conftest.val
   7324 fi
   7325 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
   7326 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
   7327 
   7328 
   7329 
   7330 cat >>confdefs.h <<_ACEOF
   7331 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   7332 _ACEOF
   7333 
   7334 
   7335 
   7336 
   7337 
   7338 	{ echo "$as_me:$LINENO: checking for addrinfo" >&5
   7339 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
   7340 	if test "${ac_cv_addrinfo+set}" = set; then
   7341   echo $ECHO_N "(cached) $ECHO_C" >&6
   7342 else
   7343   cat >conftest.$ac_ext <<_ACEOF
   7344 /* confdefs.h.  */
   7345 _ACEOF
   7346 cat confdefs.h >>conftest.$ac_ext
   7347 cat >>conftest.$ac_ext <<_ACEOF
   7348 /* end confdefs.h.  */
   7349 
   7350 #		include <netdb.h>
   7351 int
   7352 main ()
   7353 {
   7354 struct addrinfo a
   7355   ;
   7356   return 0;
   7357 }
   7358 _ACEOF
   7359 rm -f conftest.$ac_objext
   7360 if { (ac_try="$ac_compile"
   7361 case "(($ac_try" in
   7362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7363   *) ac_try_echo=$ac_try;;
   7364 esac
   7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7366   (eval "$ac_compile") 2>conftest.er1
   7367   ac_status=$?
   7368   grep -v '^ *+' conftest.er1 >conftest.err
   7369   rm -f conftest.er1
   7370   cat conftest.err >&5
   7371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7372   (exit $ac_status); } && {
   7373 	 test -z "$ac_c_werror_flag" ||
   7374 	 test ! -s conftest.err
   7375        } && test -s conftest.$ac_objext; then
   7376   ac_cv_addrinfo=yes
   7377 else
   7378   echo "$as_me: failed program was:" >&5
   7379 sed 's/^/| /' conftest.$ac_ext >&5
   7380 
   7381 	ac_cv_addrinfo=no
   7382 fi
   7383 
   7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7385 fi
   7386 
   7387 	{ echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
   7388 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
   7389 	if test $ac_cv_addrinfo = yes; then
   7390 		cat >>confdefs.h <<\_ACEOF
   7391 #define HAVE_ADDRINFO 1
   7392 _ACEOF
   7393 
   7394 	else
   7395 		cat >>confdefs.h <<\_ACEOF
   7396 #define NEED_ADDRINFO_H 1
   7397 _ACEOF
   7398 
   7399 	fi
   7400 
   7401 if test "$ac_cv_addrinfo" = no; then
   7402 	missing_includes=yes
   7403 fi
   7404 
   7405 
   7406 	{ echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
   7407 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
   7408 	if test "${ac_cv_maxserv+set}" = set; then
   7409   echo $ECHO_N "(cached) $ECHO_C" >&6
   7410 else
   7411   cat >conftest.$ac_ext <<_ACEOF
   7412 /* confdefs.h.  */
   7413 _ACEOF
   7414 cat confdefs.h >>conftest.$ac_ext
   7415 cat >>conftest.$ac_ext <<_ACEOF
   7416 /* end confdefs.h.  */
   7417 #include <netdb.h>
   7418 #ifdef NI_MAXSERV
   7419 yes
   7420 #endif
   7421 _ACEOF
   7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7423   $EGREP "yes" >/dev/null 2>&1; then
   7424   ac_cv_maxserv=yes
   7425 else
   7426   ac_cv_maxserv=no
   7427 fi
   7428 rm -f conftest*
   7429 
   7430 fi
   7431 
   7432 	{ echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
   7433 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
   7434 	if test $ac_cv_maxserv != yes; then
   7435 		cat >>confdefs.h <<\_ACEOF
   7436 #define NEED_ADDRINFO_H 1
   7437 _ACEOF
   7438 
   7439 	fi
   7440 
   7441 if test "$ac_cv_maxserv" = no; then
   7442 	missing_includes=yes
   7443 fi
   7444 
   7445 
   7446 	{ echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
   7447 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
   7448 	if test "${ac_cv_namereqd+set}" = set; then
   7449   echo $ECHO_N "(cached) $ECHO_C" >&6
   7450 else
   7451   cat >conftest.$ac_ext <<_ACEOF
   7452 /* confdefs.h.  */
   7453 _ACEOF
   7454 cat confdefs.h >>conftest.$ac_ext
   7455 cat >>conftest.$ac_ext <<_ACEOF
   7456 /* end confdefs.h.  */
   7457 #include <netdb.h>
   7458 #ifdef NI_NOFQDN
   7459 yes
   7460 #endif
   7461 _ACEOF
   7462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7463   $EGREP "yes" >/dev/null 2>&1; then
   7464   ac_cv_namereqd=yes
   7465 else
   7466   ac_cv_namereqd=no
   7467 fi
   7468 rm -f conftest*
   7469 
   7470 fi
   7471 
   7472 	{ echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
   7473 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
   7474 	if test $ac_cv_namereqd != yes; then
   7475 		cat >>confdefs.h <<\_ACEOF
   7476 #define NEED_ADDRINFO_H 1
   7477 _ACEOF
   7478 
   7479 	fi
   7480 
   7481 if test "$ac_cv_namereqd" = no; then
   7482 	missing_includes=yes
   7483 fi
   7484 
   7485 
   7486 	{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
   7487 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
   7488 	if test "${ac_cv_sa_storage+set}" = set; then
   7489   echo $ECHO_N "(cached) $ECHO_C" >&6
   7490 else
   7491   cat >conftest.$ac_ext <<_ACEOF
   7492 /* confdefs.h.  */
   7493 _ACEOF
   7494 cat confdefs.h >>conftest.$ac_ext
   7495 cat >>conftest.$ac_ext <<_ACEOF
   7496 /* end confdefs.h.  */
   7497 
   7498 #		include <sys/types.h>
   7499 #		include <sys/socket.h>
   7500 int
   7501 main ()
   7502 {
   7503 struct sockaddr_storage s
   7504   ;
   7505   return 0;
   7506 }
   7507 _ACEOF
   7508 rm -f conftest.$ac_objext
   7509 if { (ac_try="$ac_compile"
   7510 case "(($ac_try" in
   7511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7512   *) ac_try_echo=$ac_try;;
   7513 esac
   7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7515   (eval "$ac_compile") 2>conftest.er1
   7516   ac_status=$?
   7517   grep -v '^ *+' conftest.er1 >conftest.err
   7518   rm -f conftest.er1
   7519   cat conftest.err >&5
   7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7521   (exit $ac_status); } && {
   7522 	 test -z "$ac_c_werror_flag" ||
   7523 	 test ! -s conftest.err
   7524        } && test -s conftest.$ac_objext; then
   7525   ac_cv_sa_storage=yes
   7526 else
   7527   echo "$as_me: failed program was:" >&5
   7528 sed 's/^/| /' conftest.$ac_ext >&5
   7529 
   7530 	ac_cv_sa_storage=no
   7531 fi
   7532 
   7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7534 fi
   7535 
   7536 	{ echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
   7537 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
   7538 	if test $ac_cv_sa_storage = yes; then
   7539 		cat >>confdefs.h <<\_ACEOF
   7540 #define HAVE_SOCKADDR_STORAGE 1
   7541 _ACEOF
   7542 
   7543 	fi
   7544 
   7545 if test "$ac_cv_sa_storage" = no; then
   7546 	missing_includes=yes
   7547 fi
   7548 
   7549 
   7550 	ac_cv_addrsz=yes
   7551 	{ echo "$as_me:$LINENO: checking for INADDRSZ" >&5
   7552 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
   7553 	if test "${ac_cv_inaddrsz+set}" = set; then
   7554   echo $ECHO_N "(cached) $ECHO_C" >&6
   7555 else
   7556   cat >conftest.$ac_ext <<_ACEOF
   7557 /* confdefs.h.  */
   7558 _ACEOF
   7559 cat confdefs.h >>conftest.$ac_ext
   7560 cat >>conftest.$ac_ext <<_ACEOF
   7561 /* end confdefs.h.  */
   7562 
   7563 #		include <arpa/nameser.h>
   7564 int
   7565 main ()
   7566 {
   7567 int a = INADDRSZ
   7568   ;
   7569   return 0;
   7570 }
   7571 _ACEOF
   7572 rm -f conftest.$ac_objext
   7573 if { (ac_try="$ac_compile"
   7574 case "(($ac_try" in
   7575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7576   *) ac_try_echo=$ac_try;;
   7577 esac
   7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7579   (eval "$ac_compile") 2>conftest.er1
   7580   ac_status=$?
   7581   grep -v '^ *+' conftest.er1 >conftest.err
   7582   rm -f conftest.er1
   7583   cat conftest.err >&5
   7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7585   (exit $ac_status); } && {
   7586 	 test -z "$ac_c_werror_flag" ||
   7587 	 test ! -s conftest.err
   7588        } && test -s conftest.$ac_objext; then
   7589   ac_cv_inaddrsz=yes
   7590 else
   7591   echo "$as_me: failed program was:" >&5
   7592 sed 's/^/| /' conftest.$ac_ext >&5
   7593 
   7594 	ac_cv_inaddrsz=no
   7595 fi
   7596 
   7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7598 fi
   7599 
   7600 	{ echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
   7601 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
   7602 	if test $ac_cv_inaddrsz = yes; then
   7603 		cat >>confdefs.h <<\_ACEOF
   7604 #define HAVE_INADDRSZ 1
   7605 _ACEOF
   7606 
   7607 	else
   7608 		ac_cv_addrsz=no
   7609 	fi
   7610 	{ echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
   7611 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
   7612 	if test "${ac_cv_in6addrsz+set}" = set; then
   7613   echo $ECHO_N "(cached) $ECHO_C" >&6
   7614 else
   7615   cat >conftest.$ac_ext <<_ACEOF
   7616 /* confdefs.h.  */
   7617 _ACEOF
   7618 cat confdefs.h >>conftest.$ac_ext
   7619 cat >>conftest.$ac_ext <<_ACEOF
   7620 /* end confdefs.h.  */
   7621 
   7622 #		include <arpa/nameser.h>
   7623 int
   7624 main ()
   7625 {
   7626 int a = IN6ADDRSZ
   7627   ;
   7628   return 0;
   7629 }
   7630 _ACEOF
   7631 rm -f conftest.$ac_objext
   7632 if { (ac_try="$ac_compile"
   7633 case "(($ac_try" in
   7634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7635   *) ac_try_echo=$ac_try;;
   7636 esac
   7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7638   (eval "$ac_compile") 2>conftest.er1
   7639   ac_status=$?
   7640   grep -v '^ *+' conftest.er1 >conftest.err
   7641   rm -f conftest.er1
   7642   cat conftest.err >&5
   7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7644   (exit $ac_status); } && {
   7645 	 test -z "$ac_c_werror_flag" ||
   7646 	 test ! -s conftest.err
   7647        } && test -s conftest.$ac_objext; then
   7648   ac_cv_in6addrsz=yes
   7649 else
   7650   echo "$as_me: failed program was:" >&5
   7651 sed 's/^/| /' conftest.$ac_ext >&5
   7652 
   7653 	ac_cv_in6addrsz=no
   7654 fi
   7655 
   7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7657 fi
   7658 
   7659 	{ echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
   7660 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
   7661 	if test $ac_cv_in6addrsz = yes; then
   7662 		cat >>confdefs.h <<\_ACEOF
   7663 #define HAVE_IN6ADDRSZ 1
   7664 _ACEOF
   7665 
   7666 	else
   7667 		ac_cv_addrsz=no
   7668 	fi
   7669 
   7670 if test "$ac_cv_addrsz" = no; then
   7671 	missing_includes=yes
   7672 fi
   7673 
   7674 
   7675 	{ echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
   7676 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
   7677 	if test "${ac_cv_res_inet6+set}" = set; then
   7678   echo $ECHO_N "(cached) $ECHO_C" >&6
   7679 else
   7680   cat >conftest.$ac_ext <<_ACEOF
   7681 /* confdefs.h.  */
   7682 _ACEOF
   7683 cat confdefs.h >>conftest.$ac_ext
   7684 cat >>conftest.$ac_ext <<_ACEOF
   7685 /* end confdefs.h.  */
   7686 
   7687 #		include <sys/types.h>
   7688 #		include <netinet/in.h>
   7689 #		include <resolv.h>
   7690 int
   7691 main ()
   7692 {
   7693 int a = RES_USE_INET6
   7694   ;
   7695   return 0;
   7696 }
   7697 _ACEOF
   7698 rm -f conftest.$ac_objext
   7699 if { (ac_try="$ac_compile"
   7700 case "(($ac_try" in
   7701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7702   *) ac_try_echo=$ac_try;;
   7703 esac
   7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7705   (eval "$ac_compile") 2>conftest.er1
   7706   ac_status=$?
   7707   grep -v '^ *+' conftest.er1 >conftest.err
   7708   rm -f conftest.er1
   7709   cat conftest.err >&5
   7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7711   (exit $ac_status); } && {
   7712 	 test -z "$ac_c_werror_flag" ||
   7713 	 test ! -s conftest.err
   7714        } && test -s conftest.$ac_objext; then
   7715   ac_cv_res_inet6=yes
   7716 else
   7717   echo "$as_me: failed program was:" >&5
   7718 sed 's/^/| /' conftest.$ac_ext >&5
   7719 
   7720 	ac_cv_res_inet6=no
   7721 fi
   7722 
   7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7724 fi
   7725 
   7726 	{ echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
   7727 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
   7728 	if test $ac_cv_res_inet6 = yes; then
   7729 		cat >>confdefs.h <<\_ACEOF
   7730 #define HAVE_RES_USE_INET6 1
   7731 _ACEOF
   7732 
   7733 	fi
   7734 
   7735 if test "$ac_cv_res_inet6" = no; then
   7736 	missing_includes=yes
   7737 fi
   7738 
   7739 
   7740 	{ echo "$as_me:$LINENO: checking for res_state_ext" >&5
   7741 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
   7742 	if test "${ac_cv_res_state_ext+set}" = set; then
   7743   echo $ECHO_N "(cached) $ECHO_C" >&6
   7744 else
   7745   cat >conftest.$ac_ext <<_ACEOF
   7746 /* confdefs.h.  */
   7747 _ACEOF
   7748 cat confdefs.h >>conftest.$ac_ext
   7749 cat >>conftest.$ac_ext <<_ACEOF
   7750 /* end confdefs.h.  */
   7751 
   7752 #		include <sys/types.h>
   7753 #		include <netinet/in.h>
   7754 #		include <netinet6/in6.h>
   7755 #		include <resolv.h>
   7756 int
   7757 main ()
   7758 {
   7759 struct __res_state_ext e
   7760   ;
   7761   return 0;
   7762 }
   7763 _ACEOF
   7764 rm -f conftest.$ac_objext
   7765 if { (ac_try="$ac_compile"
   7766 case "(($ac_try" in
   7767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7768   *) ac_try_echo=$ac_try;;
   7769 esac
   7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7771   (eval "$ac_compile") 2>conftest.er1
   7772   ac_status=$?
   7773   grep -v '^ *+' conftest.er1 >conftest.err
   7774   rm -f conftest.er1
   7775   cat conftest.err >&5
   7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7777   (exit $ac_status); } && {
   7778 	 test -z "$ac_c_werror_flag" ||
   7779 	 test ! -s conftest.err
   7780        } && test -s conftest.$ac_objext; then
   7781   ac_cv_res_state_ext=yes
   7782 else
   7783   echo "$as_me: failed program was:" >&5
   7784 sed 's/^/| /' conftest.$ac_ext >&5
   7785 
   7786 	ac_cv_res_state_ext=no
   7787 fi
   7788 
   7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7790 fi
   7791 
   7792 	{ echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
   7793 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
   7794 	if test $ac_cv_res_state_ext = yes; then
   7795 		cat >>confdefs.h <<\_ACEOF
   7796 #define HAVE_RES_STATE_EXT 1
   7797 _ACEOF
   7798 
   7799 	fi
   7800 
   7801 if test "$ac_cv_res_state_ext" = no; then
   7802 	missing_includes=yes
   7803 fi
   7804 
   7805 
   7806 	{ echo "$as_me:$LINENO: checking for nsort in res_state" >&5
   7807 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
   7808 	if test "${ac_cv_res_state+set}" = set; then
   7809   echo $ECHO_N "(cached) $ECHO_C" >&6
   7810 else
   7811   cat >conftest.$ac_ext <<_ACEOF
   7812 /* confdefs.h.  */
   7813 _ACEOF
   7814 cat confdefs.h >>conftest.$ac_ext
   7815 cat >>conftest.$ac_ext <<_ACEOF
   7816 /* end confdefs.h.  */
   7817 
   7818 #		include <sys/types.h>
   7819 #		include <netinet/in.h>
   7820 #		include <netinet6/in6.h>
   7821 #		include <resolv.h>
   7822 int
   7823 main ()
   7824 {
   7825 struct __res_state e; e.nsort = 0
   7826   ;
   7827   return 0;
   7828 }
   7829 _ACEOF
   7830 rm -f conftest.$ac_objext
   7831 if { (ac_try="$ac_compile"
   7832 case "(($ac_try" in
   7833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7834   *) ac_try_echo=$ac_try;;
   7835 esac
   7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7837   (eval "$ac_compile") 2>conftest.er1
   7838   ac_status=$?
   7839   grep -v '^ *+' conftest.er1 >conftest.err
   7840   rm -f conftest.er1
   7841   cat conftest.err >&5
   7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7843   (exit $ac_status); } && {
   7844 	 test -z "$ac_c_werror_flag" ||
   7845 	 test ! -s conftest.err
   7846        } && test -s conftest.$ac_objext; then
   7847   ac_cv_res_state=yes
   7848 else
   7849   echo "$as_me: failed program was:" >&5
   7850 sed 's/^/| /' conftest.$ac_ext >&5
   7851 
   7852 	ac_cv_res_state=no
   7853 fi
   7854 
   7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7856 fi
   7857 
   7858 	{ echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
   7859 echo "${ECHO_T}$ac_cv_res_state" >&6; }
   7860 	if test $ac_cv_res_state = yes; then
   7861 		cat >>confdefs.h <<\_ACEOF
   7862 #define HAVE_NEW_RES_STATE 1
   7863 _ACEOF
   7864 
   7865 	fi
   7866 
   7867 
   7868 
   7869 
   7870 
   7871 
   7872 
   7873 
   7874 
   7875 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
   7876 do
   7877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   7879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   7880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   7881   echo $ECHO_N "(cached) $ECHO_C" >&6
   7882 else
   7883   cat >conftest.$ac_ext <<_ACEOF
   7884 /* confdefs.h.  */
   7885 _ACEOF
   7886 cat confdefs.h >>conftest.$ac_ext
   7887 cat >>conftest.$ac_ext <<_ACEOF
   7888 /* end confdefs.h.  */
   7889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   7890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7891 #define $ac_func innocuous_$ac_func
   7892 
   7893 /* System header to define __stub macros and hopefully few prototypes,
   7894     which can conflict with char $ac_func (); below.
   7895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7896     <limits.h> exists even on freestanding compilers.  */
   7897 
   7898 #ifdef __STDC__
   7899 # include <limits.h>
   7900 #else
   7901 # include <assert.h>
   7902 #endif
   7903 
   7904 #undef $ac_func
   7905 
   7906 /* Override any GCC internal prototype to avoid an error.
   7907    Use char because int might match the return type of a GCC
   7908    builtin and then its argument prototype would still apply.  */
   7909 #ifdef __cplusplus
   7910 extern "C"
   7911 #endif
   7912 char $ac_func ();
   7913 /* The GNU C library defines this for functions which it implements
   7914     to always fail with ENOSYS.  Some functions are actually named
   7915     something starting with __ and the normal name is an alias.  */
   7916 #if defined __stub_$ac_func || defined __stub___$ac_func
   7917 choke me
   7918 #endif
   7919 
   7920 int
   7921 main ()
   7922 {
   7923 return $ac_func ();
   7924   ;
   7925   return 0;
   7926 }
   7927 _ACEOF
   7928 rm -f conftest.$ac_objext conftest$ac_exeext
   7929 if { (ac_try="$ac_link"
   7930 case "(($ac_try" in
   7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7932   *) ac_try_echo=$ac_try;;
   7933 esac
   7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7935   (eval "$ac_link") 2>conftest.er1
   7936   ac_status=$?
   7937   grep -v '^ *+' conftest.er1 >conftest.err
   7938   rm -f conftest.er1
   7939   cat conftest.err >&5
   7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7941   (exit $ac_status); } && {
   7942 	 test -z "$ac_c_werror_flag" ||
   7943 	 test ! -s conftest.err
   7944        } && test -s conftest$ac_exeext &&
   7945        $as_test_x conftest$ac_exeext; then
   7946   eval "$as_ac_var=yes"
   7947 else
   7948   echo "$as_me: failed program was:" >&5
   7949 sed 's/^/| /' conftest.$ac_ext >&5
   7950 
   7951 	eval "$as_ac_var=no"
   7952 fi
   7953 
   7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7955       conftest$ac_exeext conftest.$ac_ext
   7956 fi
   7957 ac_res=`eval echo '${'$as_ac_var'}'`
   7958 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7959 echo "${ECHO_T}$ac_res" >&6; }
   7960 if test `eval echo '${'$as_ac_var'}'` = yes; then
   7961   cat >>confdefs.h <<_ACEOF
   7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7963 _ACEOF
   7964 
   7965 else
   7966   case " $LIBOBJS " in
   7967   *" $ac_func.$ac_objext "* ) ;;
   7968   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   7969  ;;
   7970 esac
   7971 
   7972 fi
   7973 done
   7974 
   7975 
   7976 
   7977 for ac_func in strftime
   7978 do
   7979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   7981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   7982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   7983   echo $ECHO_N "(cached) $ECHO_C" >&6
   7984 else
   7985   cat >conftest.$ac_ext <<_ACEOF
   7986 /* confdefs.h.  */
   7987 _ACEOF
   7988 cat confdefs.h >>conftest.$ac_ext
   7989 cat >>conftest.$ac_ext <<_ACEOF
   7990 /* end confdefs.h.  */
   7991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   7992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7993 #define $ac_func innocuous_$ac_func
   7994 
   7995 /* System header to define __stub macros and hopefully few prototypes,
   7996     which can conflict with char $ac_func (); below.
   7997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7998     <limits.h> exists even on freestanding compilers.  */
   7999 
   8000 #ifdef __STDC__
   8001 # include <limits.h>
   8002 #else
   8003 # include <assert.h>
   8004 #endif
   8005 
   8006 #undef $ac_func
   8007 
   8008 /* Override any GCC internal prototype to avoid an error.
   8009    Use char because int might match the return type of a GCC
   8010    builtin and then its argument prototype would still apply.  */
   8011 #ifdef __cplusplus
   8012 extern "C"
   8013 #endif
   8014 char $ac_func ();
   8015 /* The GNU C library defines this for functions which it implements
   8016     to always fail with ENOSYS.  Some functions are actually named
   8017     something starting with __ and the normal name is an alias.  */
   8018 #if defined __stub_$ac_func || defined __stub___$ac_func
   8019 choke me
   8020 #endif
   8021 
   8022 int
   8023 main ()
   8024 {
   8025 return $ac_func ();
   8026   ;
   8027   return 0;
   8028 }
   8029 _ACEOF
   8030 rm -f conftest.$ac_objext conftest$ac_exeext
   8031 if { (ac_try="$ac_link"
   8032 case "(($ac_try" in
   8033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8034   *) ac_try_echo=$ac_try;;
   8035 esac
   8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8037   (eval "$ac_link") 2>conftest.er1
   8038   ac_status=$?
   8039   grep -v '^ *+' conftest.er1 >conftest.err
   8040   rm -f conftest.er1
   8041   cat conftest.err >&5
   8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8043   (exit $ac_status); } && {
   8044 	 test -z "$ac_c_werror_flag" ||
   8045 	 test ! -s conftest.err
   8046        } && test -s conftest$ac_exeext &&
   8047        $as_test_x conftest$ac_exeext; then
   8048   eval "$as_ac_var=yes"
   8049 else
   8050   echo "$as_me: failed program was:" >&5
   8051 sed 's/^/| /' conftest.$ac_ext >&5
   8052 
   8053 	eval "$as_ac_var=no"
   8054 fi
   8055 
   8056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8057       conftest$ac_exeext conftest.$ac_ext
   8058 fi
   8059 ac_res=`eval echo '${'$as_ac_var'}'`
   8060 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8061 echo "${ECHO_T}$ac_res" >&6; }
   8062 if test `eval echo '${'$as_ac_var'}'` = yes; then
   8063   cat >>confdefs.h <<_ACEOF
   8064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8065 _ACEOF
   8066 
   8067 fi
   8068 done
   8069 
   8070 
   8071 
   8072 for ac_func in setlinebuf alarm
   8073 do
   8074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   8076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   8077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   8078   echo $ECHO_N "(cached) $ECHO_C" >&6
   8079 else
   8080   cat >conftest.$ac_ext <<_ACEOF
   8081 /* confdefs.h.  */
   8082 _ACEOF
   8083 cat confdefs.h >>conftest.$ac_ext
   8084 cat >>conftest.$ac_ext <<_ACEOF
   8085 /* end confdefs.h.  */
   8086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8088 #define $ac_func innocuous_$ac_func
   8089 
   8090 /* System header to define __stub macros and hopefully few prototypes,
   8091     which can conflict with char $ac_func (); below.
   8092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8093     <limits.h> exists even on freestanding compilers.  */
   8094 
   8095 #ifdef __STDC__
   8096 # include <limits.h>
   8097 #else
   8098 # include <assert.h>
   8099 #endif
   8100 
   8101 #undef $ac_func
   8102 
   8103 /* Override any GCC internal prototype to avoid an error.
   8104    Use char because int might match the return type of a GCC
   8105    builtin and then its argument prototype would still apply.  */
   8106 #ifdef __cplusplus
   8107 extern "C"
   8108 #endif
   8109 char $ac_func ();
   8110 /* The GNU C library defines this for functions which it implements
   8111     to always fail with ENOSYS.  Some functions are actually named
   8112     something starting with __ and the normal name is an alias.  */
   8113 #if defined __stub_$ac_func || defined __stub___$ac_func
   8114 choke me
   8115 #endif
   8116 
   8117 int
   8118 main ()
   8119 {
   8120 return $ac_func ();
   8121   ;
   8122   return 0;
   8123 }
   8124 _ACEOF
   8125 rm -f conftest.$ac_objext conftest$ac_exeext
   8126 if { (ac_try="$ac_link"
   8127 case "(($ac_try" in
   8128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8129   *) ac_try_echo=$ac_try;;
   8130 esac
   8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8132   (eval "$ac_link") 2>conftest.er1
   8133   ac_status=$?
   8134   grep -v '^ *+' conftest.er1 >conftest.err
   8135   rm -f conftest.er1
   8136   cat conftest.err >&5
   8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8138   (exit $ac_status); } && {
   8139 	 test -z "$ac_c_werror_flag" ||
   8140 	 test ! -s conftest.err
   8141        } && test -s conftest$ac_exeext &&
   8142        $as_test_x conftest$ac_exeext; then
   8143   eval "$as_ac_var=yes"
   8144 else
   8145   echo "$as_me: failed program was:" >&5
   8146 sed 's/^/| /' conftest.$ac_ext >&5
   8147 
   8148 	eval "$as_ac_var=no"
   8149 fi
   8150 
   8151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8152       conftest$ac_exeext conftest.$ac_ext
   8153 fi
   8154 ac_res=`eval echo '${'$as_ac_var'}'`
   8155 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8156 echo "${ECHO_T}$ac_res" >&6; }
   8157 if test `eval echo '${'$as_ac_var'}'` = yes; then
   8158   cat >>confdefs.h <<_ACEOF
   8159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8160 _ACEOF
   8161 
   8162 fi
   8163 done
   8164 
   8165 
   8166 needsnprintf=no
   8167 
   8168 
   8169 for ac_func in vsnprintf snprintf
   8170 do
   8171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   8173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   8174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   8175   echo $ECHO_N "(cached) $ECHO_C" >&6
   8176 else
   8177   cat >conftest.$ac_ext <<_ACEOF
   8178 /* confdefs.h.  */
   8179 _ACEOF
   8180 cat confdefs.h >>conftest.$ac_ext
   8181 cat >>conftest.$ac_ext <<_ACEOF
   8182 /* end confdefs.h.  */
   8183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8185 #define $ac_func innocuous_$ac_func
   8186 
   8187 /* System header to define __stub macros and hopefully few prototypes,
   8188     which can conflict with char $ac_func (); below.
   8189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8190     <limits.h> exists even on freestanding compilers.  */
   8191 
   8192 #ifdef __STDC__
   8193 # include <limits.h>
   8194 #else
   8195 # include <assert.h>
   8196 #endif
   8197 
   8198 #undef $ac_func
   8199 
   8200 /* Override any GCC internal prototype to avoid an error.
   8201    Use char because int might match the return type of a GCC
   8202    builtin and then its argument prototype would still apply.  */
   8203 #ifdef __cplusplus
   8204 extern "C"
   8205 #endif
   8206 char $ac_func ();
   8207 /* The GNU C library defines this for functions which it implements
   8208     to always fail with ENOSYS.  Some functions are actually named
   8209     something starting with __ and the normal name is an alias.  */
   8210 #if defined __stub_$ac_func || defined __stub___$ac_func
   8211 choke me
   8212 #endif
   8213 
   8214 int
   8215 main ()
   8216 {
   8217 return $ac_func ();
   8218   ;
   8219   return 0;
   8220 }
   8221 _ACEOF
   8222 rm -f conftest.$ac_objext conftest$ac_exeext
   8223 if { (ac_try="$ac_link"
   8224 case "(($ac_try" in
   8225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8226   *) ac_try_echo=$ac_try;;
   8227 esac
   8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8229   (eval "$ac_link") 2>conftest.er1
   8230   ac_status=$?
   8231   grep -v '^ *+' conftest.er1 >conftest.err
   8232   rm -f conftest.er1
   8233   cat conftest.err >&5
   8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8235   (exit $ac_status); } && {
   8236 	 test -z "$ac_c_werror_flag" ||
   8237 	 test ! -s conftest.err
   8238        } && test -s conftest$ac_exeext &&
   8239        $as_test_x conftest$ac_exeext; then
   8240   eval "$as_ac_var=yes"
   8241 else
   8242   echo "$as_me: failed program was:" >&5
   8243 sed 's/^/| /' conftest.$ac_ext >&5
   8244 
   8245 	eval "$as_ac_var=no"
   8246 fi
   8247 
   8248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8249       conftest$ac_exeext conftest.$ac_ext
   8250 fi
   8251 ac_res=`eval echo '${'$as_ac_var'}'`
   8252 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8253 echo "${ECHO_T}$ac_res" >&6; }
   8254 if test `eval echo '${'$as_ac_var'}'` = yes; then
   8255   cat >>confdefs.h <<_ACEOF
   8256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8257 _ACEOF
   8258 
   8259 else
   8260   needsnprintf=yes
   8261 fi
   8262 done
   8263 
   8264 if test $needsnprintf = yes; then
   8265 	case " $LIBOBJS " in
   8266   *" snprintf.$ac_objext "* ) ;;
   8267   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   8268  ;;
   8269 esac
   8270 
   8271 fi
   8272 
   8273 
   8274     { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
   8275 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
   8276 if test "${ac_cv_type_signal+set}" = set; then
   8277   echo $ECHO_N "(cached) $ECHO_C" >&6
   8278 else
   8279   cat >conftest.$ac_ext <<_ACEOF
   8280 /* confdefs.h.  */
   8281 _ACEOF
   8282 cat confdefs.h >>conftest.$ac_ext
   8283 cat >>conftest.$ac_ext <<_ACEOF
   8284 /* end confdefs.h.  */
   8285 #include <sys/types.h>
   8286 #include <signal.h>
   8287 
   8288 int
   8289 main ()
   8290 {
   8291 return *(signal (0, 0)) (0) == 1;
   8292   ;
   8293   return 0;
   8294 }
   8295 _ACEOF
   8296 rm -f conftest.$ac_objext
   8297 if { (ac_try="$ac_compile"
   8298 case "(($ac_try" in
   8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8300   *) ac_try_echo=$ac_try;;
   8301 esac
   8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8303   (eval "$ac_compile") 2>conftest.er1
   8304   ac_status=$?
   8305   grep -v '^ *+' conftest.er1 >conftest.err
   8306   rm -f conftest.er1
   8307   cat conftest.err >&5
   8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8309   (exit $ac_status); } && {
   8310 	 test -z "$ac_c_werror_flag" ||
   8311 	 test ! -s conftest.err
   8312        } && test -s conftest.$ac_objext; then
   8313   ac_cv_type_signal=int
   8314 else
   8315   echo "$as_me: failed program was:" >&5
   8316 sed 's/^/| /' conftest.$ac_ext >&5
   8317 
   8318 	ac_cv_type_signal=void
   8319 fi
   8320 
   8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8322 fi
   8323 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
   8324 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
   8325 
   8326 cat >>confdefs.h <<_ACEOF
   8327 #define RETSIGTYPE $ac_cv_type_signal
   8328 _ACEOF
   8329 
   8330 
   8331     if test "$ac_cv_type_signal" = void ; then
   8332 	    cat >>confdefs.h <<\_ACEOF
   8333 #define RETSIGVAL
   8334 _ACEOF
   8335 
   8336     else
   8337 	    cat >>confdefs.h <<\_ACEOF
   8338 #define RETSIGVAL (0)
   8339 _ACEOF
   8340 
   8341     fi
   8342     case "$host_os" in
   8343 
   8344     irix*)
   8345 	    cat >>confdefs.h <<\_ACEOF
   8346 #define _BSD_SIGNALS 1
   8347 _ACEOF
   8348 
   8349 	    ;;
   8350 
   8351     *)
   8352 
   8353 for ac_func in sigaction
   8354 do
   8355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   8357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   8358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   8359   echo $ECHO_N "(cached) $ECHO_C" >&6
   8360 else
   8361   cat >conftest.$ac_ext <<_ACEOF
   8362 /* confdefs.h.  */
   8363 _ACEOF
   8364 cat confdefs.h >>conftest.$ac_ext
   8365 cat >>conftest.$ac_ext <<_ACEOF
   8366 /* end confdefs.h.  */
   8367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8369 #define $ac_func innocuous_$ac_func
   8370 
   8371 /* System header to define __stub macros and hopefully few prototypes,
   8372     which can conflict with char $ac_func (); below.
   8373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8374     <limits.h> exists even on freestanding compilers.  */
   8375 
   8376 #ifdef __STDC__
   8377 # include <limits.h>
   8378 #else
   8379 # include <assert.h>
   8380 #endif
   8381 
   8382 #undef $ac_func
   8383 
   8384 /* Override any GCC internal prototype to avoid an error.
   8385    Use char because int might match the return type of a GCC
   8386    builtin and then its argument prototype would still apply.  */
   8387 #ifdef __cplusplus
   8388 extern "C"
   8389 #endif
   8390 char $ac_func ();
   8391 /* The GNU C library defines this for functions which it implements
   8392     to always fail with ENOSYS.  Some functions are actually named
   8393     something starting with __ and the normal name is an alias.  */
   8394 #if defined __stub_$ac_func || defined __stub___$ac_func
   8395 choke me
   8396 #endif
   8397 
   8398 int
   8399 main ()
   8400 {
   8401 return $ac_func ();
   8402   ;
   8403   return 0;
   8404 }
   8405 _ACEOF
   8406 rm -f conftest.$ac_objext conftest$ac_exeext
   8407 if { (ac_try="$ac_link"
   8408 case "(($ac_try" in
   8409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8410   *) ac_try_echo=$ac_try;;
   8411 esac
   8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8413   (eval "$ac_link") 2>conftest.er1
   8414   ac_status=$?
   8415   grep -v '^ *+' conftest.er1 >conftest.err
   8416   rm -f conftest.er1
   8417   cat conftest.err >&5
   8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8419   (exit $ac_status); } && {
   8420 	 test -z "$ac_c_werror_flag" ||
   8421 	 test ! -s conftest.err
   8422        } && test -s conftest$ac_exeext &&
   8423        $as_test_x conftest$ac_exeext; then
   8424   eval "$as_ac_var=yes"
   8425 else
   8426   echo "$as_me: failed program was:" >&5
   8427 sed 's/^/| /' conftest.$ac_ext >&5
   8428 
   8429 	eval "$as_ac_var=no"
   8430 fi
   8431 
   8432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8433       conftest$ac_exeext conftest.$ac_ext
   8434 fi
   8435 ac_res=`eval echo '${'$as_ac_var'}'`
   8436 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8437 echo "${ECHO_T}$ac_res" >&6; }
   8438 if test `eval echo '${'$as_ac_var'}'` = yes; then
   8439   cat >>confdefs.h <<_ACEOF
   8440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8441 _ACEOF
   8442 
   8443 fi
   8444 done
   8445 
   8446 	    if test $ac_cv_func_sigaction = no ; then
   8447 
   8448 for ac_func in sigset
   8449 do
   8450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   8452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   8453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   8454   echo $ECHO_N "(cached) $ECHO_C" >&6
   8455 else
   8456   cat >conftest.$ac_ext <<_ACEOF
   8457 /* confdefs.h.  */
   8458 _ACEOF
   8459 cat confdefs.h >>conftest.$ac_ext
   8460 cat >>conftest.$ac_ext <<_ACEOF
   8461 /* end confdefs.h.  */
   8462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8464 #define $ac_func innocuous_$ac_func
   8465 
   8466 /* System header to define __stub macros and hopefully few prototypes,
   8467     which can conflict with char $ac_func (); below.
   8468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8469     <limits.h> exists even on freestanding compilers.  */
   8470 
   8471 #ifdef __STDC__
   8472 # include <limits.h>
   8473 #else
   8474 # include <assert.h>
   8475 #endif
   8476 
   8477 #undef $ac_func
   8478 
   8479 /* Override any GCC internal prototype to avoid an error.
   8480    Use char because int might match the return type of a GCC
   8481    builtin and then its argument prototype would still apply.  */
   8482 #ifdef __cplusplus
   8483 extern "C"
   8484 #endif
   8485 char $ac_func ();
   8486 /* The GNU C library defines this for functions which it implements
   8487     to always fail with ENOSYS.  Some functions are actually named
   8488     something starting with __ and the normal name is an alias.  */
   8489 #if defined __stub_$ac_func || defined __stub___$ac_func
   8490 choke me
   8491 #endif
   8492 
   8493 int
   8494 main ()
   8495 {
   8496 return $ac_func ();
   8497   ;
   8498   return 0;
   8499 }
   8500 _ACEOF
   8501 rm -f conftest.$ac_objext conftest$ac_exeext
   8502 if { (ac_try="$ac_link"
   8503 case "(($ac_try" in
   8504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8505   *) ac_try_echo=$ac_try;;
   8506 esac
   8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8508   (eval "$ac_link") 2>conftest.er1
   8509   ac_status=$?
   8510   grep -v '^ *+' conftest.er1 >conftest.err
   8511   rm -f conftest.er1
   8512   cat conftest.err >&5
   8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8514   (exit $ac_status); } && {
   8515 	 test -z "$ac_c_werror_flag" ||
   8516 	 test ! -s conftest.err
   8517        } && test -s conftest$ac_exeext &&
   8518        $as_test_x conftest$ac_exeext; then
   8519   eval "$as_ac_var=yes"
   8520 else
   8521   echo "$as_me: failed program was:" >&5
   8522 sed 's/^/| /' conftest.$ac_ext >&5
   8523 
   8524 	eval "$as_ac_var=no"
   8525 fi
   8526 
   8527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8528       conftest$ac_exeext conftest.$ac_ext
   8529 fi
   8530 ac_res=`eval echo '${'$as_ac_var'}'`
   8531 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8532 echo "${ECHO_T}$ac_res" >&6; }
   8533 if test `eval echo '${'$as_ac_var'}'` = yes; then
   8534   cat >>confdefs.h <<_ACEOF
   8535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8536 _ACEOF
   8537 
   8538 fi
   8539 done
   8540 
   8541 	    fi
   8542 	    ;;
   8543     esac
   8544 
   8545 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
   8546 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
   8547 if test "${ac_cv_search_dnet_htoa+set}" = set; then
   8548   echo $ECHO_N "(cached) $ECHO_C" >&6
   8549 else
   8550   ac_func_search_save_LIBS=$LIBS
   8551 cat >conftest.$ac_ext <<_ACEOF
   8552 /* confdefs.h.  */
   8553 _ACEOF
   8554 cat confdefs.h >>conftest.$ac_ext
   8555 cat >>conftest.$ac_ext <<_ACEOF
   8556 /* end confdefs.h.  */
   8557 
   8558 /* Override any GCC internal prototype to avoid an error.
   8559    Use char because int might match the return type of a GCC
   8560    builtin and then its argument prototype would still apply.  */
   8561 #ifdef __cplusplus
   8562 extern "C"
   8563 #endif
   8564 char dnet_htoa ();
   8565 int
   8566 main ()
   8567 {
   8568 return dnet_htoa ();
   8569   ;
   8570   return 0;
   8571 }
   8572 _ACEOF
   8573 for ac_lib in '' dnet; do
   8574   if test -z "$ac_lib"; then
   8575     ac_res="none required"
   8576   else
   8577     ac_res=-l$ac_lib
   8578     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8579   fi
   8580   rm -f conftest.$ac_objext conftest$ac_exeext
   8581 if { (ac_try="$ac_link"
   8582 case "(($ac_try" in
   8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8584   *) ac_try_echo=$ac_try;;
   8585 esac
   8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8587   (eval "$ac_link") 2>conftest.er1
   8588   ac_status=$?
   8589   grep -v '^ *+' conftest.er1 >conftest.err
   8590   rm -f conftest.er1
   8591   cat conftest.err >&5
   8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8593   (exit $ac_status); } && {
   8594 	 test -z "$ac_c_werror_flag" ||
   8595 	 test ! -s conftest.err
   8596        } && test -s conftest$ac_exeext &&
   8597        $as_test_x conftest$ac_exeext; then
   8598   ac_cv_search_dnet_htoa=$ac_res
   8599 else
   8600   echo "$as_me: failed program was:" >&5
   8601 sed 's/^/| /' conftest.$ac_ext >&5
   8602 
   8603 
   8604 fi
   8605 
   8606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8607       conftest$ac_exeext
   8608   if test "${ac_cv_search_dnet_htoa+set}" = set; then
   8609   break
   8610 fi
   8611 done
   8612 if test "${ac_cv_search_dnet_htoa+set}" = set; then
   8613   :
   8614 else
   8615   ac_cv_search_dnet_htoa=no
   8616 fi
   8617 rm conftest.$ac_ext
   8618 LIBS=$ac_func_search_save_LIBS
   8619 fi
   8620 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
   8621 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
   8622 ac_res=$ac_cv_search_dnet_htoa
   8623 if test "$ac_res" != no; then
   8624   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8625   cat >>confdefs.h <<\_ACEOF
   8626 #define HAVE_DNET_HTOA 1
   8627 _ACEOF
   8628 
   8629 fi
   8630 
   8631 
   8632 
   8633 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
   8634 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
   8635 if test "${ac_cv_lib_rpc_main+set}" = set; then
   8636   echo $ECHO_N "(cached) $ECHO_C" >&6
   8637 else
   8638   ac_check_lib_save_LIBS=$LIBS
   8639 LIBS="-lrpc  $LIBS"
   8640 cat >conftest.$ac_ext <<_ACEOF
   8641 /* confdefs.h.  */
   8642 _ACEOF
   8643 cat confdefs.h >>conftest.$ac_ext
   8644 cat >>conftest.$ac_ext <<_ACEOF
   8645 /* end confdefs.h.  */
   8646 
   8647 
   8648 int
   8649 main ()
   8650 {
   8651 return main ();
   8652   ;
   8653   return 0;
   8654 }
   8655 _ACEOF
   8656 rm -f conftest.$ac_objext conftest$ac_exeext
   8657 if { (ac_try="$ac_link"
   8658 case "(($ac_try" in
   8659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8660   *) ac_try_echo=$ac_try;;
   8661 esac
   8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8663   (eval "$ac_link") 2>conftest.er1
   8664   ac_status=$?
   8665   grep -v '^ *+' conftest.er1 >conftest.err
   8666   rm -f conftest.er1
   8667   cat conftest.err >&5
   8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8669   (exit $ac_status); } && {
   8670 	 test -z "$ac_c_werror_flag" ||
   8671 	 test ! -s conftest.err
   8672        } && test -s conftest$ac_exeext &&
   8673        $as_test_x conftest$ac_exeext; then
   8674   ac_cv_lib_rpc_main=yes
   8675 else
   8676   echo "$as_me: failed program was:" >&5
   8677 sed 's/^/| /' conftest.$ac_ext >&5
   8678 
   8679 	ac_cv_lib_rpc_main=no
   8680 fi
   8681 
   8682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8683       conftest$ac_exeext conftest.$ac_ext
   8684 LIBS=$ac_check_lib_save_LIBS
   8685 fi
   8686 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
   8687 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
   8688 if test $ac_cv_lib_rpc_main = yes; then
   8689   cat >>confdefs.h <<_ACEOF
   8690 #define HAVE_LIBRPC 1
   8691 _ACEOF
   8692 
   8693   LIBS="-lrpc $LIBS"
   8694 
   8695 fi
   8696 
   8697 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
   8698 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
   8699 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
   8700   echo $ECHO_N "(cached) $ECHO_C" >&6
   8701 else
   8702   ac_func_search_save_LIBS=$LIBS
   8703 cat >conftest.$ac_ext <<_ACEOF
   8704 /* confdefs.h.  */
   8705 _ACEOF
   8706 cat confdefs.h >>conftest.$ac_ext
   8707 cat >>conftest.$ac_ext <<_ACEOF
   8708 /* end confdefs.h.  */
   8709 
   8710 /* Override any GCC internal prototype to avoid an error.
   8711    Use char because int might match the return type of a GCC
   8712    builtin and then its argument prototype would still apply.  */
   8713 #ifdef __cplusplus
   8714 extern "C"
   8715 #endif
   8716 char getrpcbynumber ();
   8717 int
   8718 main ()
   8719 {
   8720 return getrpcbynumber ();
   8721   ;
   8722   return 0;
   8723 }
   8724 _ACEOF
   8725 for ac_lib in '' nsl; do
   8726   if test -z "$ac_lib"; then
   8727     ac_res="none required"
   8728   else
   8729     ac_res=-l$ac_lib
   8730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8731   fi
   8732   rm -f conftest.$ac_objext conftest$ac_exeext
   8733 if { (ac_try="$ac_link"
   8734 case "(($ac_try" in
   8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8736   *) ac_try_echo=$ac_try;;
   8737 esac
   8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8739   (eval "$ac_link") 2>conftest.er1
   8740   ac_status=$?
   8741   grep -v '^ *+' conftest.er1 >conftest.err
   8742   rm -f conftest.er1
   8743   cat conftest.err >&5
   8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8745   (exit $ac_status); } && {
   8746 	 test -z "$ac_c_werror_flag" ||
   8747 	 test ! -s conftest.err
   8748        } && test -s conftest$ac_exeext &&
   8749        $as_test_x conftest$ac_exeext; then
   8750   ac_cv_search_getrpcbynumber=$ac_res
   8751 else
   8752   echo "$as_me: failed program was:" >&5
   8753 sed 's/^/| /' conftest.$ac_ext >&5
   8754 
   8755 
   8756 fi
   8757 
   8758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8759       conftest$ac_exeext
   8760   if test "${ac_cv_search_getrpcbynumber+set}" = set; then
   8761   break
   8762 fi
   8763 done
   8764 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
   8765   :
   8766 else
   8767   ac_cv_search_getrpcbynumber=no
   8768 fi
   8769 rm conftest.$ac_ext
   8770 LIBS=$ac_func_search_save_LIBS
   8771 fi
   8772 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
   8773 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
   8774 ac_res=$ac_cv_search_getrpcbynumber
   8775 if test "$ac_res" != no; then
   8776   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8777   cat >>confdefs.h <<\_ACEOF
   8778 #define HAVE_GETRPCBYNUMBER 1
   8779 _ACEOF
   8780 
   8781 fi
   8782 
   8783 
   8784 
   8785 
   8786     # Most operating systems have gethostbyname() in the default searched
   8787     # libraries (i.e. libc):
   8788     # Some OSes (eg. Solaris) place it in libnsl
   8789     # Some strange OSes (SINIX) have it in libsocket:
   8790     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
   8791 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
   8792 if test "${ac_cv_search_gethostbyname+set}" = set; then
   8793   echo $ECHO_N "(cached) $ECHO_C" >&6
   8794 else
   8795   ac_func_search_save_LIBS=$LIBS
   8796 cat >conftest.$ac_ext <<_ACEOF
   8797 /* confdefs.h.  */
   8798 _ACEOF
   8799 cat confdefs.h >>conftest.$ac_ext
   8800 cat >>conftest.$ac_ext <<_ACEOF
   8801 /* end confdefs.h.  */
   8802 
   8803 /* Override any GCC internal prototype to avoid an error.
   8804    Use char because int might match the return type of a GCC
   8805    builtin and then its argument prototype would still apply.  */
   8806 #ifdef __cplusplus
   8807 extern "C"
   8808 #endif
   8809 char gethostbyname ();
   8810 int
   8811 main ()
   8812 {
   8813 return gethostbyname ();
   8814   ;
   8815   return 0;
   8816 }
   8817 _ACEOF
   8818 for ac_lib in '' nsl socket resolv; do
   8819   if test -z "$ac_lib"; then
   8820     ac_res="none required"
   8821   else
   8822     ac_res=-l$ac_lib
   8823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8824   fi
   8825   rm -f conftest.$ac_objext conftest$ac_exeext
   8826 if { (ac_try="$ac_link"
   8827 case "(($ac_try" in
   8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8829   *) ac_try_echo=$ac_try;;
   8830 esac
   8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8832   (eval "$ac_link") 2>conftest.er1
   8833   ac_status=$?
   8834   grep -v '^ *+' conftest.er1 >conftest.err
   8835   rm -f conftest.er1
   8836   cat conftest.err >&5
   8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8838   (exit $ac_status); } && {
   8839 	 test -z "$ac_c_werror_flag" ||
   8840 	 test ! -s conftest.err
   8841        } && test -s conftest$ac_exeext &&
   8842        $as_test_x conftest$ac_exeext; then
   8843   ac_cv_search_gethostbyname=$ac_res
   8844 else
   8845   echo "$as_me: failed program was:" >&5
   8846 sed 's/^/| /' conftest.$ac_ext >&5
   8847 
   8848 
   8849 fi
   8850 
   8851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8852       conftest$ac_exeext
   8853   if test "${ac_cv_search_gethostbyname+set}" = set; then
   8854   break
   8855 fi
   8856 done
   8857 if test "${ac_cv_search_gethostbyname+set}" = set; then
   8858   :
   8859 else
   8860   ac_cv_search_gethostbyname=no
   8861 fi
   8862 rm conftest.$ac_ext
   8863 LIBS=$ac_func_search_save_LIBS
   8864 fi
   8865 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
   8866 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
   8867 ac_res=$ac_cv_search_gethostbyname
   8868 if test "$ac_res" != no; then
   8869   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8870 
   8871 fi
   8872 
   8873     # Unfortunately libsocket sometimes depends on libnsl and
   8874     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
   8875     if test "$ac_cv_search_gethostbyname" = "no"
   8876     then
   8877 	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
   8878 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
   8879 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
   8880   echo $ECHO_N "(cached) $ECHO_C" >&6
   8881 else
   8882   ac_check_lib_save_LIBS=$LIBS
   8883 LIBS="-lsocket -lnsl $LIBS"
   8884 cat >conftest.$ac_ext <<_ACEOF
   8885 /* confdefs.h.  */
   8886 _ACEOF
   8887 cat confdefs.h >>conftest.$ac_ext
   8888 cat >>conftest.$ac_ext <<_ACEOF
   8889 /* end confdefs.h.  */
   8890 
   8891 /* Override any GCC internal prototype to avoid an error.
   8892    Use char because int might match the return type of a GCC
   8893    builtin and then its argument prototype would still apply.  */
   8894 #ifdef __cplusplus
   8895 extern "C"
   8896 #endif
   8897 char gethostbyname ();
   8898 int
   8899 main ()
   8900 {
   8901 return gethostbyname ();
   8902   ;
   8903   return 0;
   8904 }
   8905 _ACEOF
   8906 rm -f conftest.$ac_objext conftest$ac_exeext
   8907 if { (ac_try="$ac_link"
   8908 case "(($ac_try" in
   8909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8910   *) ac_try_echo=$ac_try;;
   8911 esac
   8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8913   (eval "$ac_link") 2>conftest.er1
   8914   ac_status=$?
   8915   grep -v '^ *+' conftest.er1 >conftest.err
   8916   rm -f conftest.er1
   8917   cat conftest.err >&5
   8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8919   (exit $ac_status); } && {
   8920 	 test -z "$ac_c_werror_flag" ||
   8921 	 test ! -s conftest.err
   8922        } && test -s conftest$ac_exeext &&
   8923        $as_test_x conftest$ac_exeext; then
   8924   ac_cv_lib_socket_gethostbyname=yes
   8925 else
   8926   echo "$as_me: failed program was:" >&5
   8927 sed 's/^/| /' conftest.$ac_ext >&5
   8928 
   8929 	ac_cv_lib_socket_gethostbyname=no
   8930 fi
   8931 
   8932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8933       conftest$ac_exeext conftest.$ac_ext
   8934 LIBS=$ac_check_lib_save_LIBS
   8935 fi
   8936 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
   8937 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
   8938 if test $ac_cv_lib_socket_gethostbyname = yes; then
   8939   LIBS="-lsocket -lnsl $LIBS"
   8940 fi
   8941 
   8942     fi
   8943     { echo "$as_me:$LINENO: checking for library containing socket" >&5
   8944 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
   8945 if test "${ac_cv_search_socket+set}" = set; then
   8946   echo $ECHO_N "(cached) $ECHO_C" >&6
   8947 else
   8948   ac_func_search_save_LIBS=$LIBS
   8949 cat >conftest.$ac_ext <<_ACEOF
   8950 /* confdefs.h.  */
   8951 _ACEOF
   8952 cat confdefs.h >>conftest.$ac_ext
   8953 cat >>conftest.$ac_ext <<_ACEOF
   8954 /* end confdefs.h.  */
   8955 
   8956 /* Override any GCC internal prototype to avoid an error.
   8957    Use char because int might match the return type of a GCC
   8958    builtin and then its argument prototype would still apply.  */
   8959 #ifdef __cplusplus
   8960 extern "C"
   8961 #endif
   8962 char socket ();
   8963 int
   8964 main ()
   8965 {
   8966 return socket ();
   8967   ;
   8968   return 0;
   8969 }
   8970 _ACEOF
   8971 for ac_lib in '' socket; do
   8972   if test -z "$ac_lib"; then
   8973     ac_res="none required"
   8974   else
   8975     ac_res=-l$ac_lib
   8976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8977   fi
   8978   rm -f conftest.$ac_objext conftest$ac_exeext
   8979 if { (ac_try="$ac_link"
   8980 case "(($ac_try" in
   8981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8982   *) ac_try_echo=$ac_try;;
   8983 esac
   8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8985   (eval "$ac_link") 2>conftest.er1
   8986   ac_status=$?
   8987   grep -v '^ *+' conftest.er1 >conftest.err
   8988   rm -f conftest.er1
   8989   cat conftest.err >&5
   8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8991   (exit $ac_status); } && {
   8992 	 test -z "$ac_c_werror_flag" ||
   8993 	 test ! -s conftest.err
   8994        } && test -s conftest$ac_exeext &&
   8995        $as_test_x conftest$ac_exeext; then
   8996   ac_cv_search_socket=$ac_res
   8997 else
   8998   echo "$as_me: failed program was:" >&5
   8999 sed 's/^/| /' conftest.$ac_ext >&5
   9000 
   9001 
   9002 fi
   9003 
   9004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9005       conftest$ac_exeext
   9006   if test "${ac_cv_search_socket+set}" = set; then
   9007   break
   9008 fi
   9009 done
   9010 if test "${ac_cv_search_socket+set}" = set; then
   9011   :
   9012 else
   9013   ac_cv_search_socket=no
   9014 fi
   9015 rm conftest.$ac_ext
   9016 LIBS=$ac_func_search_save_LIBS
   9017 fi
   9018 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
   9019 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
   9020 ac_res=$ac_cv_search_socket
   9021 if test "$ac_res" != no; then
   9022   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9023 
   9024 else
   9025   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
   9026 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
   9027 if test "${ac_cv_lib_socket_socket+set}" = set; then
   9028   echo $ECHO_N "(cached) $ECHO_C" >&6
   9029 else
   9030   ac_check_lib_save_LIBS=$LIBS
   9031 LIBS="-lsocket -lnsl $LIBS"
   9032 cat >conftest.$ac_ext <<_ACEOF
   9033 /* confdefs.h.  */
   9034 _ACEOF
   9035 cat confdefs.h >>conftest.$ac_ext
   9036 cat >>conftest.$ac_ext <<_ACEOF
   9037 /* end confdefs.h.  */
   9038 
   9039 /* Override any GCC internal prototype to avoid an error.
   9040    Use char because int might match the return type of a GCC
   9041    builtin and then its argument prototype would still apply.  */
   9042 #ifdef __cplusplus
   9043 extern "C"
   9044 #endif
   9045 char socket ();
   9046 int
   9047 main ()
   9048 {
   9049 return socket ();
   9050   ;
   9051   return 0;
   9052 }
   9053 _ACEOF
   9054 rm -f conftest.$ac_objext conftest$ac_exeext
   9055 if { (ac_try="$ac_link"
   9056 case "(($ac_try" in
   9057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9058   *) ac_try_echo=$ac_try;;
   9059 esac
   9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9061   (eval "$ac_link") 2>conftest.er1
   9062   ac_status=$?
   9063   grep -v '^ *+' conftest.er1 >conftest.err
   9064   rm -f conftest.er1
   9065   cat conftest.err >&5
   9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9067   (exit $ac_status); } && {
   9068 	 test -z "$ac_c_werror_flag" ||
   9069 	 test ! -s conftest.err
   9070        } && test -s conftest$ac_exeext &&
   9071        $as_test_x conftest$ac_exeext; then
   9072   ac_cv_lib_socket_socket=yes
   9073 else
   9074   echo "$as_me: failed program was:" >&5
   9075 sed 's/^/| /' conftest.$ac_ext >&5
   9076 
   9077 	ac_cv_lib_socket_socket=no
   9078 fi
   9079 
   9080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9081       conftest$ac_exeext conftest.$ac_ext
   9082 LIBS=$ac_check_lib_save_LIBS
   9083 fi
   9084 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
   9085 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
   9086 if test $ac_cv_lib_socket_socket = yes; then
   9087   LIBS="-lsocket -lnsl $LIBS"
   9088 fi
   9089 
   9090 fi
   9091 
   9092     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
   9093     { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
   9094 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
   9095 if test "${ac_cv_search_putmsg+set}" = set; then
   9096   echo $ECHO_N "(cached) $ECHO_C" >&6
   9097 else
   9098   ac_func_search_save_LIBS=$LIBS
   9099 cat >conftest.$ac_ext <<_ACEOF
   9100 /* confdefs.h.  */
   9101 _ACEOF
   9102 cat confdefs.h >>conftest.$ac_ext
   9103 cat >>conftest.$ac_ext <<_ACEOF
   9104 /* end confdefs.h.  */
   9105 
   9106 /* Override any GCC internal prototype to avoid an error.
   9107    Use char because int might match the return type of a GCC
   9108    builtin and then its argument prototype would still apply.  */
   9109 #ifdef __cplusplus
   9110 extern "C"
   9111 #endif
   9112 char putmsg ();
   9113 int
   9114 main ()
   9115 {
   9116 return putmsg ();
   9117   ;
   9118   return 0;
   9119 }
   9120 _ACEOF
   9121 for ac_lib in '' str; do
   9122   if test -z "$ac_lib"; then
   9123     ac_res="none required"
   9124   else
   9125     ac_res=-l$ac_lib
   9126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9127   fi
   9128   rm -f conftest.$ac_objext conftest$ac_exeext
   9129 if { (ac_try="$ac_link"
   9130 case "(($ac_try" in
   9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9132   *) ac_try_echo=$ac_try;;
   9133 esac
   9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9135   (eval "$ac_link") 2>conftest.er1
   9136   ac_status=$?
   9137   grep -v '^ *+' conftest.er1 >conftest.err
   9138   rm -f conftest.er1
   9139   cat conftest.err >&5
   9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9141   (exit $ac_status); } && {
   9142 	 test -z "$ac_c_werror_flag" ||
   9143 	 test ! -s conftest.err
   9144        } && test -s conftest$ac_exeext &&
   9145        $as_test_x conftest$ac_exeext; then
   9146   ac_cv_search_putmsg=$ac_res
   9147 else
   9148   echo "$as_me: failed program was:" >&5
   9149 sed 's/^/| /' conftest.$ac_ext >&5
   9150 
   9151 
   9152 fi
   9153 
   9154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9155       conftest$ac_exeext
   9156   if test "${ac_cv_search_putmsg+set}" = set; then
   9157   break
   9158 fi
   9159 done
   9160 if test "${ac_cv_search_putmsg+set}" = set; then
   9161   :
   9162 else
   9163   ac_cv_search_putmsg=no
   9164 fi
   9165 rm conftest.$ac_ext
   9166 LIBS=$ac_func_search_save_LIBS
   9167 fi
   9168 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
   9169 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
   9170 ac_res=$ac_cv_search_putmsg
   9171 if test "$ac_res" != no; then
   9172   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9173 
   9174 fi
   9175 
   9176 
   9177 
   9178                 LBL_LIBS="$LIBS"
   9179     pfopen=/usr/examples/packetfilter/pfopen.c
   9180     if test -f $pfopen ; then
   9181 
   9182 for ac_func in pfopen
   9183 do
   9184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   9186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   9187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   9188   echo $ECHO_N "(cached) $ECHO_C" >&6
   9189 else
   9190   cat >conftest.$ac_ext <<_ACEOF
   9191 /* confdefs.h.  */
   9192 _ACEOF
   9193 cat confdefs.h >>conftest.$ac_ext
   9194 cat >>conftest.$ac_ext <<_ACEOF
   9195 /* end confdefs.h.  */
   9196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9198 #define $ac_func innocuous_$ac_func
   9199 
   9200 /* System header to define __stub macros and hopefully few prototypes,
   9201     which can conflict with char $ac_func (); below.
   9202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9203     <limits.h> exists even on freestanding compilers.  */
   9204 
   9205 #ifdef __STDC__
   9206 # include <limits.h>
   9207 #else
   9208 # include <assert.h>
   9209 #endif
   9210 
   9211 #undef $ac_func
   9212 
   9213 /* Override any GCC internal prototype to avoid an error.
   9214    Use char because int might match the return type of a GCC
   9215    builtin and then its argument prototype would still apply.  */
   9216 #ifdef __cplusplus
   9217 extern "C"
   9218 #endif
   9219 char $ac_func ();
   9220 /* The GNU C library defines this for functions which it implements
   9221     to always fail with ENOSYS.  Some functions are actually named
   9222     something starting with __ and the normal name is an alias.  */
   9223 #if defined __stub_$ac_func || defined __stub___$ac_func
   9224 choke me
   9225 #endif
   9226 
   9227 int
   9228 main ()
   9229 {
   9230 return $ac_func ();
   9231   ;
   9232   return 0;
   9233 }
   9234 _ACEOF
   9235 rm -f conftest.$ac_objext conftest$ac_exeext
   9236 if { (ac_try="$ac_link"
   9237 case "(($ac_try" in
   9238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9239   *) ac_try_echo=$ac_try;;
   9240 esac
   9241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9242   (eval "$ac_link") 2>conftest.er1
   9243   ac_status=$?
   9244   grep -v '^ *+' conftest.er1 >conftest.err
   9245   rm -f conftest.er1
   9246   cat conftest.err >&5
   9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9248   (exit $ac_status); } && {
   9249 	 test -z "$ac_c_werror_flag" ||
   9250 	 test ! -s conftest.err
   9251        } && test -s conftest$ac_exeext &&
   9252        $as_test_x conftest$ac_exeext; then
   9253   eval "$as_ac_var=yes"
   9254 else
   9255   echo "$as_me: failed program was:" >&5
   9256 sed 's/^/| /' conftest.$ac_ext >&5
   9257 
   9258 	eval "$as_ac_var=no"
   9259 fi
   9260 
   9261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9262       conftest$ac_exeext conftest.$ac_ext
   9263 fi
   9264 ac_res=`eval echo '${'$as_ac_var'}'`
   9265 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9266 echo "${ECHO_T}$ac_res" >&6; }
   9267 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9268   cat >>confdefs.h <<_ACEOF
   9269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9270 _ACEOF
   9271 
   9272 fi
   9273 done
   9274 
   9275 	    if test $ac_cv_func_pfopen = "no" ; then
   9276 		    { echo "$as_me:$LINENO: result: Using $pfopen" >&5
   9277 echo "${ECHO_T}Using $pfopen" >&6; }
   9278 		    LIBS="$LIBS $pfopen"
   9279 	    fi
   9280     fi
   9281     { echo "$as_me:$LINENO: checking for local pcap library" >&5
   9282 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
   9283     libpcap=FAIL
   9284     lastdir=FAIL
   9285     places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
   9286 	egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
   9287     for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
   9288 	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
   9289 	    if test $lastdir = $basedir ; then
   9290 		    		    continue;
   9291 	    fi
   9292 	    lastdir=$dir
   9293 	    if test -r $dir/libpcap.a ; then
   9294 		    libpcap=$dir/libpcap.a
   9295 		    d=$dir
   9296 		    	    fi
   9297     done
   9298     if test $libpcap = FAIL ; then
   9299 	    { echo "$as_me:$LINENO: result: not found" >&5
   9300 echo "${ECHO_T}not found" >&6; }
   9301 	    { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
   9302 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
   9303 if test "${ac_cv_lib_pcap_main+set}" = set; then
   9304   echo $ECHO_N "(cached) $ECHO_C" >&6
   9305 else
   9306   ac_check_lib_save_LIBS=$LIBS
   9307 LIBS="-lpcap  $LIBS"
   9308 cat >conftest.$ac_ext <<_ACEOF
   9309 /* confdefs.h.  */
   9310 _ACEOF
   9311 cat confdefs.h >>conftest.$ac_ext
   9312 cat >>conftest.$ac_ext <<_ACEOF
   9313 /* end confdefs.h.  */
   9314 
   9315 
   9316 int
   9317 main ()
   9318 {
   9319 return main ();
   9320   ;
   9321   return 0;
   9322 }
   9323 _ACEOF
   9324 rm -f conftest.$ac_objext conftest$ac_exeext
   9325 if { (ac_try="$ac_link"
   9326 case "(($ac_try" in
   9327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9328   *) ac_try_echo=$ac_try;;
   9329 esac
   9330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9331   (eval "$ac_link") 2>conftest.er1
   9332   ac_status=$?
   9333   grep -v '^ *+' conftest.er1 >conftest.err
   9334   rm -f conftest.er1
   9335   cat conftest.err >&5
   9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9337   (exit $ac_status); } && {
   9338 	 test -z "$ac_c_werror_flag" ||
   9339 	 test ! -s conftest.err
   9340        } && test -s conftest$ac_exeext &&
   9341        $as_test_x conftest$ac_exeext; then
   9342   ac_cv_lib_pcap_main=yes
   9343 else
   9344   echo "$as_me: failed program was:" >&5
   9345 sed 's/^/| /' conftest.$ac_ext >&5
   9346 
   9347 	ac_cv_lib_pcap_main=no
   9348 fi
   9349 
   9350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9351       conftest$ac_exeext conftest.$ac_ext
   9352 LIBS=$ac_check_lib_save_LIBS
   9353 fi
   9354 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
   9355 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
   9356 if test $ac_cv_lib_pcap_main = yes; then
   9357   libpcap="-lpcap"
   9358 fi
   9359 
   9360 	    if test $libpcap = FAIL ; then
   9361 		    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
   9362 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
   9363    { (exit 1); exit 1; }; }
   9364 	    fi
   9365 	    	    	    	    	    	    	    	    	    	    	    	    	    	    	    	    { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
   9366 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
   9367 	    if test \( ! -r /usr/local/include/pcap.h \) -a \
   9368 			\( ! -r /usr/include/pcap.h \); then
   9369 		if test -r /usr/local/include/pcap/pcap.h; then
   9370 		    d="/usr/local/include/pcap"
   9371 		elif test -r /usr/include/pcap/pcap.h; then
   9372 		    d="/usr/include/pcap"
   9373 		fi
   9374 	    fi
   9375 	    if test -z "$d" ; then
   9376 		{ echo "$as_me:$LINENO: result: not found" >&5
   9377 echo "${ECHO_T}not found" >&6; }
   9378 	    else
   9379 		V_INCLS="-I$d $V_INCLS"
   9380 		{ echo "$as_me:$LINENO: result: found -- -I$d added" >&5
   9381 echo "${ECHO_T}found -- -I$d added" >&6; }
   9382 	    fi
   9383     else
   9384 	    V_PCAPDEP=$libpcap
   9385 	    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
   9386     	 		egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
   9387 	    if test -r $d/pcap.h; then
   9388 		    V_INCLS="-I$d $V_INCLS"
   9389 	    elif test -r $places/pcap.h; then
   9390 		    V_INCLS="-I$places $V_INCLS"
   9391 	    else
   9392                     { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
   9393 echo "$as_me: error: cannot find pcap.h" >&2;}
   9394    { (exit see INSTALL); exit see INSTALL; }; }
   9395  	    fi
   9396 	    { echo "$as_me:$LINENO: result: $libpcap" >&5
   9397 echo "${ECHO_T}$libpcap" >&6; }
   9398     fi
   9399     LIBS="$libpcap $LIBS"
   9400     case "$host_os" in
   9401 
   9402     aix*)
   9403 	    pseexe="/lib/pse.exp"
   9404 	    { echo "$as_me:$LINENO: checking for $pseexe" >&5
   9405 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
   9406 	    if test -f $pseexe ; then
   9407 		    { echo "$as_me:$LINENO: result: yes" >&5
   9408 echo "${ECHO_T}yes" >&6; }
   9409 		    LIBS="$LIBS -I:$pseexe"
   9410 	    fi
   9411 	    #
   9412 	    # We need "-lodm" and "-lcfg", as libpcap requires them on
   9413 	    # AIX, and we just build a static libpcap.a and thus can't
   9414 	    # arrange that when you link with libpcap you automatically
   9415 	    # link with those libraries.
   9416 	    #
   9417 	    LIBS="$LIBS -lodm -lcfg"
   9418 	    ;;
   9419     esac
   9420 
   9421                         { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
   9422 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
   9423 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
   9424   echo $ECHO_N "(cached) $ECHO_C" >&6
   9425 else
   9426   cat >conftest.$ac_ext <<_ACEOF
   9427 /* confdefs.h.  */
   9428 _ACEOF
   9429 cat confdefs.h >>conftest.$ac_ext
   9430 cat >>conftest.$ac_ext <<_ACEOF
   9431 /* end confdefs.h.  */
   9432 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
   9433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9434 #define pcap_list_datalinks innocuous_pcap_list_datalinks
   9435 
   9436 /* System header to define __stub macros and hopefully few prototypes,
   9437     which can conflict with char pcap_list_datalinks (); below.
   9438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9439     <limits.h> exists even on freestanding compilers.  */
   9440 
   9441 #ifdef __STDC__
   9442 # include <limits.h>
   9443 #else
   9444 # include <assert.h>
   9445 #endif
   9446 
   9447 #undef pcap_list_datalinks
   9448 
   9449 /* Override any GCC internal prototype to avoid an error.
   9450    Use char because int might match the return type of a GCC
   9451    builtin and then its argument prototype would still apply.  */
   9452 #ifdef __cplusplus
   9453 extern "C"
   9454 #endif
   9455 char pcap_list_datalinks ();
   9456 /* The GNU C library defines this for functions which it implements
   9457     to always fail with ENOSYS.  Some functions are actually named
   9458     something starting with __ and the normal name is an alias.  */
   9459 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
   9460 choke me
   9461 #endif
   9462 
   9463 int
   9464 main ()
   9465 {
   9466 return pcap_list_datalinks ();
   9467   ;
   9468   return 0;
   9469 }
   9470 _ACEOF
   9471 rm -f conftest.$ac_objext conftest$ac_exeext
   9472 if { (ac_try="$ac_link"
   9473 case "(($ac_try" in
   9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9475   *) ac_try_echo=$ac_try;;
   9476 esac
   9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9478   (eval "$ac_link") 2>conftest.er1
   9479   ac_status=$?
   9480   grep -v '^ *+' conftest.er1 >conftest.err
   9481   rm -f conftest.er1
   9482   cat conftest.err >&5
   9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9484   (exit $ac_status); } && {
   9485 	 test -z "$ac_c_werror_flag" ||
   9486 	 test ! -s conftest.err
   9487        } && test -s conftest$ac_exeext &&
   9488        $as_test_x conftest$ac_exeext; then
   9489   ac_cv_func_pcap_list_datalinks=yes
   9490 else
   9491   echo "$as_me: failed program was:" >&5
   9492 sed 's/^/| /' conftest.$ac_ext >&5
   9493 
   9494 	ac_cv_func_pcap_list_datalinks=no
   9495 fi
   9496 
   9497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9498       conftest$ac_exeext conftest.$ac_ext
   9499 fi
   9500 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
   9501 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
   9502 if test $ac_cv_func_pcap_list_datalinks = yes; then
   9503   cat >>confdefs.h <<\_ACEOF
   9504 #define HAVE_PCAP_LIST_DATALINKS 1
   9505 _ACEOF
   9506 
   9507 else
   9508 
   9509 	    case " $LIBOBJS " in
   9510   *" datalinks.$ac_objext "* ) ;;
   9511   *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
   9512  ;;
   9513 esac
   9514 
   9515 
   9516 fi
   9517 
   9518     { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
   9519 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
   9520 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
   9521   echo $ECHO_N "(cached) $ECHO_C" >&6
   9522 else
   9523   cat >conftest.$ac_ext <<_ACEOF
   9524 /* confdefs.h.  */
   9525 _ACEOF
   9526 cat confdefs.h >>conftest.$ac_ext
   9527 cat >>conftest.$ac_ext <<_ACEOF
   9528 /* end confdefs.h.  */
   9529 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
   9530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9531 #define pcap_set_datalink innocuous_pcap_set_datalink
   9532 
   9533 /* System header to define __stub macros and hopefully few prototypes,
   9534     which can conflict with char pcap_set_datalink (); below.
   9535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9536     <limits.h> exists even on freestanding compilers.  */
   9537 
   9538 #ifdef __STDC__
   9539 # include <limits.h>
   9540 #else
   9541 # include <assert.h>
   9542 #endif
   9543 
   9544 #undef pcap_set_datalink
   9545 
   9546 /* Override any GCC internal prototype to avoid an error.
   9547    Use char because int might match the return type of a GCC
   9548    builtin and then its argument prototype would still apply.  */
   9549 #ifdef __cplusplus
   9550 extern "C"
   9551 #endif
   9552 char pcap_set_datalink ();
   9553 /* The GNU C library defines this for functions which it implements
   9554     to always fail with ENOSYS.  Some functions are actually named
   9555     something starting with __ and the normal name is an alias.  */
   9556 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
   9557 choke me
   9558 #endif
   9559 
   9560 int
   9561 main ()
   9562 {
   9563 return pcap_set_datalink ();
   9564   ;
   9565   return 0;
   9566 }
   9567 _ACEOF
   9568 rm -f conftest.$ac_objext conftest$ac_exeext
   9569 if { (ac_try="$ac_link"
   9570 case "(($ac_try" in
   9571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9572   *) ac_try_echo=$ac_try;;
   9573 esac
   9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9575   (eval "$ac_link") 2>conftest.er1
   9576   ac_status=$?
   9577   grep -v '^ *+' conftest.er1 >conftest.err
   9578   rm -f conftest.er1
   9579   cat conftest.err >&5
   9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9581   (exit $ac_status); } && {
   9582 	 test -z "$ac_c_werror_flag" ||
   9583 	 test ! -s conftest.err
   9584        } && test -s conftest$ac_exeext &&
   9585        $as_test_x conftest$ac_exeext; then
   9586   ac_cv_func_pcap_set_datalink=yes
   9587 else
   9588   echo "$as_me: failed program was:" >&5
   9589 sed 's/^/| /' conftest.$ac_ext >&5
   9590 
   9591 	ac_cv_func_pcap_set_datalink=no
   9592 fi
   9593 
   9594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9595       conftest$ac_exeext conftest.$ac_ext
   9596 fi
   9597 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
   9598 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
   9599 if test $ac_cv_func_pcap_set_datalink = yes; then
   9600   cat >>confdefs.h <<\_ACEOF
   9601 #define HAVE_PCAP_SET_DATALINK 1
   9602 _ACEOF
   9603 
   9604 fi
   9605 
   9606     { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
   9607 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
   9608 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
   9609   echo $ECHO_N "(cached) $ECHO_C" >&6
   9610 else
   9611   cat >conftest.$ac_ext <<_ACEOF
   9612 /* confdefs.h.  */
   9613 _ACEOF
   9614 cat confdefs.h >>conftest.$ac_ext
   9615 cat >>conftest.$ac_ext <<_ACEOF
   9616 /* end confdefs.h.  */
   9617 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
   9618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9619 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
   9620 
   9621 /* System header to define __stub macros and hopefully few prototypes,
   9622     which can conflict with char pcap_datalink_name_to_val (); below.
   9623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9624     <limits.h> exists even on freestanding compilers.  */
   9625 
   9626 #ifdef __STDC__
   9627 # include <limits.h>
   9628 #else
   9629 # include <assert.h>
   9630 #endif
   9631 
   9632 #undef pcap_datalink_name_to_val
   9633 
   9634 /* Override any GCC internal prototype to avoid an error.
   9635    Use char because int might match the return type of a GCC
   9636    builtin and then its argument prototype would still apply.  */
   9637 #ifdef __cplusplus
   9638 extern "C"
   9639 #endif
   9640 char pcap_datalink_name_to_val ();
   9641 /* The GNU C library defines this for functions which it implements
   9642     to always fail with ENOSYS.  Some functions are actually named
   9643     something starting with __ and the normal name is an alias.  */
   9644 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
   9645 choke me
   9646 #endif
   9647 
   9648 int
   9649 main ()
   9650 {
   9651 return pcap_datalink_name_to_val ();
   9652   ;
   9653   return 0;
   9654 }
   9655 _ACEOF
   9656 rm -f conftest.$ac_objext conftest$ac_exeext
   9657 if { (ac_try="$ac_link"
   9658 case "(($ac_try" in
   9659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9660   *) ac_try_echo=$ac_try;;
   9661 esac
   9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9663   (eval "$ac_link") 2>conftest.er1
   9664   ac_status=$?
   9665   grep -v '^ *+' conftest.er1 >conftest.err
   9666   rm -f conftest.er1
   9667   cat conftest.err >&5
   9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9669   (exit $ac_status); } && {
   9670 	 test -z "$ac_c_werror_flag" ||
   9671 	 test ! -s conftest.err
   9672        } && test -s conftest$ac_exeext &&
   9673        $as_test_x conftest$ac_exeext; then
   9674   ac_cv_func_pcap_datalink_name_to_val=yes
   9675 else
   9676   echo "$as_me: failed program was:" >&5
   9677 sed 's/^/| /' conftest.$ac_ext >&5
   9678 
   9679 	ac_cv_func_pcap_datalink_name_to_val=no
   9680 fi
   9681 
   9682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9683       conftest$ac_exeext conftest.$ac_ext
   9684 fi
   9685 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
   9686 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
   9687 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
   9688 
   9689 	    cat >>confdefs.h <<\_ACEOF
   9690 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
   9691 _ACEOF
   9692 
   9693 	    { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
   9694 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
   9695 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
   9696   echo $ECHO_N "(cached) $ECHO_C" >&6
   9697 else
   9698   cat >conftest.$ac_ext <<_ACEOF
   9699 /* confdefs.h.  */
   9700 _ACEOF
   9701 cat confdefs.h >>conftest.$ac_ext
   9702 cat >>conftest.$ac_ext <<_ACEOF
   9703 /* end confdefs.h.  */
   9704 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
   9705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9706 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
   9707 
   9708 /* System header to define __stub macros and hopefully few prototypes,
   9709     which can conflict with char pcap_datalink_val_to_description (); below.
   9710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9711     <limits.h> exists even on freestanding compilers.  */
   9712 
   9713 #ifdef __STDC__
   9714 # include <limits.h>
   9715 #else
   9716 # include <assert.h>
   9717 #endif
   9718 
   9719 #undef pcap_datalink_val_to_description
   9720 
   9721 /* Override any GCC internal prototype to avoid an error.
   9722    Use char because int might match the return type of a GCC
   9723    builtin and then its argument prototype would still apply.  */
   9724 #ifdef __cplusplus
   9725 extern "C"
   9726 #endif
   9727 char pcap_datalink_val_to_description ();
   9728 /* The GNU C library defines this for functions which it implements
   9729     to always fail with ENOSYS.  Some functions are actually named
   9730     something starting with __ and the normal name is an alias.  */
   9731 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
   9732 choke me
   9733 #endif
   9734 
   9735 int
   9736 main ()
   9737 {
   9738 return pcap_datalink_val_to_description ();
   9739   ;
   9740   return 0;
   9741 }
   9742 _ACEOF
   9743 rm -f conftest.$ac_objext conftest$ac_exeext
   9744 if { (ac_try="$ac_link"
   9745 case "(($ac_try" in
   9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9747   *) ac_try_echo=$ac_try;;
   9748 esac
   9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9750   (eval "$ac_link") 2>conftest.er1
   9751   ac_status=$?
   9752   grep -v '^ *+' conftest.er1 >conftest.err
   9753   rm -f conftest.er1
   9754   cat conftest.err >&5
   9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9756   (exit $ac_status); } && {
   9757 	 test -z "$ac_c_werror_flag" ||
   9758 	 test ! -s conftest.err
   9759        } && test -s conftest$ac_exeext &&
   9760        $as_test_x conftest$ac_exeext; then
   9761   ac_cv_func_pcap_datalink_val_to_description=yes
   9762 else
   9763   echo "$as_me: failed program was:" >&5
   9764 sed 's/^/| /' conftest.$ac_ext >&5
   9765 
   9766 	ac_cv_func_pcap_datalink_val_to_description=no
   9767 fi
   9768 
   9769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9770       conftest$ac_exeext conftest.$ac_ext
   9771 fi
   9772 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
   9773 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
   9774 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
   9775   cat >>confdefs.h <<\_ACEOF
   9776 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
   9777 _ACEOF
   9778 
   9779 else
   9780 
   9781 		    case " $LIBOBJS " in
   9782   *" dlnames.$ac_objext "* ) ;;
   9783   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
   9784  ;;
   9785 esac
   9786 
   9787 
   9788 fi
   9789 
   9790 
   9791 else
   9792 
   9793 	    case " $LIBOBJS " in
   9794   *" dlnames.$ac_objext "* ) ;;
   9795   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
   9796  ;;
   9797 esac
   9798 
   9799 
   9800 fi
   9801 
   9802 
   9803 
   9804 for ac_func in pcap_breakloop
   9805 do
   9806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   9808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   9809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   9810   echo $ECHO_N "(cached) $ECHO_C" >&6
   9811 else
   9812   cat >conftest.$ac_ext <<_ACEOF
   9813 /* confdefs.h.  */
   9814 _ACEOF
   9815 cat confdefs.h >>conftest.$ac_ext
   9816 cat >>conftest.$ac_ext <<_ACEOF
   9817 /* end confdefs.h.  */
   9818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9820 #define $ac_func innocuous_$ac_func
   9821 
   9822 /* System header to define __stub macros and hopefully few prototypes,
   9823     which can conflict with char $ac_func (); below.
   9824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9825     <limits.h> exists even on freestanding compilers.  */
   9826 
   9827 #ifdef __STDC__
   9828 # include <limits.h>
   9829 #else
   9830 # include <assert.h>
   9831 #endif
   9832 
   9833 #undef $ac_func
   9834 
   9835 /* Override any GCC internal prototype to avoid an error.
   9836    Use char because int might match the return type of a GCC
   9837    builtin and then its argument prototype would still apply.  */
   9838 #ifdef __cplusplus
   9839 extern "C"
   9840 #endif
   9841 char $ac_func ();
   9842 /* The GNU C library defines this for functions which it implements
   9843     to always fail with ENOSYS.  Some functions are actually named
   9844     something starting with __ and the normal name is an alias.  */
   9845 #if defined __stub_$ac_func || defined __stub___$ac_func
   9846 choke me
   9847 #endif
   9848 
   9849 int
   9850 main ()
   9851 {
   9852 return $ac_func ();
   9853   ;
   9854   return 0;
   9855 }
   9856 _ACEOF
   9857 rm -f conftest.$ac_objext conftest$ac_exeext
   9858 if { (ac_try="$ac_link"
   9859 case "(($ac_try" in
   9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9861   *) ac_try_echo=$ac_try;;
   9862 esac
   9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9864   (eval "$ac_link") 2>conftest.er1
   9865   ac_status=$?
   9866   grep -v '^ *+' conftest.er1 >conftest.err
   9867   rm -f conftest.er1
   9868   cat conftest.err >&5
   9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9870   (exit $ac_status); } && {
   9871 	 test -z "$ac_c_werror_flag" ||
   9872 	 test ! -s conftest.err
   9873        } && test -s conftest$ac_exeext &&
   9874        $as_test_x conftest$ac_exeext; then
   9875   eval "$as_ac_var=yes"
   9876 else
   9877   echo "$as_me: failed program was:" >&5
   9878 sed 's/^/| /' conftest.$ac_ext >&5
   9879 
   9880 	eval "$as_ac_var=no"
   9881 fi
   9882 
   9883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9884       conftest$ac_exeext conftest.$ac_ext
   9885 fi
   9886 ac_res=`eval echo '${'$as_ac_var'}'`
   9887 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9888 echo "${ECHO_T}$ac_res" >&6; }
   9889 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9890   cat >>confdefs.h <<_ACEOF
   9891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9892 _ACEOF
   9893 
   9894 fi
   9895 done
   9896 
   9897 
   9898                 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
   9899 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
   9900 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
   9901   echo $ECHO_N "(cached) $ECHO_C" >&6
   9902 else
   9903   cat >conftest.$ac_ext <<_ACEOF
   9904 /* confdefs.h.  */
   9905 _ACEOF
   9906 cat confdefs.h >>conftest.$ac_ext
   9907 cat >>conftest.$ac_ext <<_ACEOF
   9908 /* end confdefs.h.  */
   9909 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
   9910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9911 #define pcap_dump_ftell innocuous_pcap_dump_ftell
   9912 
   9913 /* System header to define __stub macros and hopefully few prototypes,
   9914     which can conflict with char pcap_dump_ftell (); below.
   9915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9916     <limits.h> exists even on freestanding compilers.  */
   9917 
   9918 #ifdef __STDC__
   9919 # include <limits.h>
   9920 #else
   9921 # include <assert.h>
   9922 #endif
   9923 
   9924 #undef pcap_dump_ftell
   9925 
   9926 /* Override any GCC internal prototype to avoid an error.
   9927    Use char because int might match the return type of a GCC
   9928    builtin and then its argument prototype would still apply.  */
   9929 #ifdef __cplusplus
   9930 extern "C"
   9931 #endif
   9932 char pcap_dump_ftell ();
   9933 /* The GNU C library defines this for functions which it implements
   9934     to always fail with ENOSYS.  Some functions are actually named
   9935     something starting with __ and the normal name is an alias.  */
   9936 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
   9937 choke me
   9938 #endif
   9939 
   9940 int
   9941 main ()
   9942 {
   9943 return pcap_dump_ftell ();
   9944   ;
   9945   return 0;
   9946 }
   9947 _ACEOF
   9948 rm -f conftest.$ac_objext conftest$ac_exeext
   9949 if { (ac_try="$ac_link"
   9950 case "(($ac_try" in
   9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9952   *) ac_try_echo=$ac_try;;
   9953 esac
   9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9955   (eval "$ac_link") 2>conftest.er1
   9956   ac_status=$?
   9957   grep -v '^ *+' conftest.er1 >conftest.err
   9958   rm -f conftest.er1
   9959   cat conftest.err >&5
   9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9961   (exit $ac_status); } && {
   9962 	 test -z "$ac_c_werror_flag" ||
   9963 	 test ! -s conftest.err
   9964        } && test -s conftest$ac_exeext &&
   9965        $as_test_x conftest$ac_exeext; then
   9966   ac_cv_func_pcap_dump_ftell=yes
   9967 else
   9968   echo "$as_me: failed program was:" >&5
   9969 sed 's/^/| /' conftest.$ac_ext >&5
   9970 
   9971 	ac_cv_func_pcap_dump_ftell=no
   9972 fi
   9973 
   9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9975       conftest$ac_exeext conftest.$ac_ext
   9976 fi
   9977 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
   9978 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
   9979 if test $ac_cv_func_pcap_dump_ftell = yes; then
   9980   cat >>confdefs.h <<\_ACEOF
   9981 #define HAVE_PCAP_DUMP_FTELL 1
   9982 _ACEOF
   9983 
   9984 else
   9985 
   9986 	    case " $LIBOBJS " in
   9987   *" pcap_dump_ftell.$ac_objext "* ) ;;
   9988   *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
   9989  ;;
   9990 esac
   9991 
   9992 
   9993 fi
   9994 
   9995 
   9996 
   9997 #
   9998 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
   9999 # libraries (e.g., "-lsocket -lnsl" on Solaris).
   10000 #
   10001 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
   10002 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
   10003 # to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
   10004 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
   10005 # it does not ship with a libc symbol "inet_ntop()", it ships with
   10006 # "_inet_ntop()", and has a #define macro in one of the system headers
   10007 # to rename it.
   10008 #
   10009 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
   10010 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
   10011 cat >conftest.$ac_ext <<_ACEOF
   10012 /* confdefs.h.  */
   10013 _ACEOF
   10014 cat confdefs.h >>conftest.$ac_ext
   10015 cat >>conftest.$ac_ext <<_ACEOF
   10016 /* end confdefs.h.  */
   10017 #include <sys/types.h>
   10018 #include <sys/socket.h>
   10019 #include <netinet/in.h>
   10020 #include <arpa/inet.h>
   10021 int
   10022 main ()
   10023 {
   10024 char src[4], dst[128];
   10025 inet_ntop(AF_INET, src, dst, sizeof(dst));
   10026   ;
   10027   return 0;
   10028 }
   10029 _ACEOF
   10030 rm -f conftest.$ac_objext conftest$ac_exeext
   10031 if { (ac_try="$ac_link"
   10032 case "(($ac_try" in
   10033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10034   *) ac_try_echo=$ac_try;;
   10035 esac
   10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10037   (eval "$ac_link") 2>conftest.er1
   10038   ac_status=$?
   10039   grep -v '^ *+' conftest.er1 >conftest.err
   10040   rm -f conftest.er1
   10041   cat conftest.err >&5
   10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10043   (exit $ac_status); } && {
   10044 	 test -z "$ac_c_werror_flag" ||
   10045 	 test ! -s conftest.err
   10046        } && test -s conftest$ac_exeext &&
   10047        $as_test_x conftest$ac_exeext; then
   10048   { echo "$as_me:$LINENO: result: yes" >&5
   10049 echo "${ECHO_T}yes" >&6; }
   10050 else
   10051   echo "$as_me: failed program was:" >&5
   10052 sed 's/^/| /' conftest.$ac_ext >&5
   10053 
   10054 	{ echo "$as_me:$LINENO: result: no" >&5
   10055 echo "${ECHO_T}no" >&6; }
   10056 	case " $LIBOBJS " in
   10057   *" inet_ntop.$ac_objext "* ) ;;
   10058   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
   10059  ;;
   10060 esac
   10061 
   10062 fi
   10063 
   10064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10065       conftest$ac_exeext conftest.$ac_ext
   10066 { echo "$as_me:$LINENO: checking for inet_pton" >&5
   10067 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
   10068 cat >conftest.$ac_ext <<_ACEOF
   10069 /* confdefs.h.  */
   10070 _ACEOF
   10071 cat confdefs.h >>conftest.$ac_ext
   10072 cat >>conftest.$ac_ext <<_ACEOF
   10073 /* end confdefs.h.  */
   10074 #include <sys/types.h>
   10075 #include <sys/socket.h>
   10076 #include <netinet/in.h>
   10077 #include <arpa/inet.h>
   10078 int
   10079 main ()
   10080 {
   10081 char src[128], dst[4];
   10082 inet_pton(AF_INET, src, dst);
   10083   ;
   10084   return 0;
   10085 }
   10086 _ACEOF
   10087 rm -f conftest.$ac_objext conftest$ac_exeext
   10088 if { (ac_try="$ac_link"
   10089 case "(($ac_try" in
   10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10091   *) ac_try_echo=$ac_try;;
   10092 esac
   10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10094   (eval "$ac_link") 2>conftest.er1
   10095   ac_status=$?
   10096   grep -v '^ *+' conftest.er1 >conftest.err
   10097   rm -f conftest.er1
   10098   cat conftest.err >&5
   10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10100   (exit $ac_status); } && {
   10101 	 test -z "$ac_c_werror_flag" ||
   10102 	 test ! -s conftest.err
   10103        } && test -s conftest$ac_exeext &&
   10104        $as_test_x conftest$ac_exeext; then
   10105   { echo "$as_me:$LINENO: result: yes" >&5
   10106 echo "${ECHO_T}yes" >&6; }
   10107 else
   10108   echo "$as_me: failed program was:" >&5
   10109 sed 's/^/| /' conftest.$ac_ext >&5
   10110 
   10111 	{ echo "$as_me:$LINENO: result: no" >&5
   10112 echo "${ECHO_T}no" >&6; }
   10113 	case " $LIBOBJS " in
   10114   *" inet_pton.$ac_objext "* ) ;;
   10115   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
   10116  ;;
   10117 esac
   10118 
   10119 fi
   10120 
   10121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10122       conftest$ac_exeext conftest.$ac_ext
   10123 { echo "$as_me:$LINENO: checking for inet_aton" >&5
   10124 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
   10125 cat >conftest.$ac_ext <<_ACEOF
   10126 /* confdefs.h.  */
   10127 _ACEOF
   10128 cat confdefs.h >>conftest.$ac_ext
   10129 cat >>conftest.$ac_ext <<_ACEOF
   10130 /* end confdefs.h.  */
   10131 #include <sys/types.h>
   10132 #include <netinet/in.h>
   10133 #include <arpa/inet.h>
   10134 int
   10135 main ()
   10136 {
   10137 char src[128];
   10138 struct in_addr dst;
   10139 inet_aton(src, &dst);
   10140   ;
   10141   return 0;
   10142 }
   10143 _ACEOF
   10144 rm -f conftest.$ac_objext conftest$ac_exeext
   10145 if { (ac_try="$ac_link"
   10146 case "(($ac_try" in
   10147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10148   *) ac_try_echo=$ac_try;;
   10149 esac
   10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10151   (eval "$ac_link") 2>conftest.er1
   10152   ac_status=$?
   10153   grep -v '^ *+' conftest.er1 >conftest.err
   10154   rm -f conftest.er1
   10155   cat conftest.err >&5
   10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10157   (exit $ac_status); } && {
   10158 	 test -z "$ac_c_werror_flag" ||
   10159 	 test ! -s conftest.err
   10160        } && test -s conftest$ac_exeext &&
   10161        $as_test_x conftest$ac_exeext; then
   10162   { echo "$as_me:$LINENO: result: yes" >&5
   10163 echo "${ECHO_T}yes" >&6; }
   10164 else
   10165   echo "$as_me: failed program was:" >&5
   10166 sed 's/^/| /' conftest.$ac_ext >&5
   10167 
   10168 	{ echo "$as_me:$LINENO: result: no" >&5
   10169 echo "${ECHO_T}no" >&6; }
   10170 	case " $LIBOBJS " in
   10171   *" inet_aton.$ac_objext "* ) ;;
   10172   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
   10173  ;;
   10174 esac
   10175 
   10176 fi
   10177 
   10178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10179       conftest$ac_exeext conftest.$ac_ext
   10180 
   10181 #
   10182 # Check for these after AC_LBL_LIBPCAP, for the same reason.
   10183 #
   10184 # You are in a twisty little maze of UN*Xes, all different.
   10185 # Some might not have ether_ntohost().
   10186 # Some might have it, but not declare it in any header file.
   10187 # Some might have it, but declare it in <netinet/if_ether.h>.
   10188 # Some might have it, but declare it in <netinet/ether.h>
   10189 # (And some might have it but document it as something declared in
   10190 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
   10191 #
   10192 # Before you is a C compiler.
   10193 #
   10194 
   10195 for ac_func in ether_ntohost
   10196 do
   10197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10201   echo $ECHO_N "(cached) $ECHO_C" >&6
   10202 else
   10203   cat >conftest.$ac_ext <<_ACEOF
   10204 /* confdefs.h.  */
   10205 _ACEOF
   10206 cat confdefs.h >>conftest.$ac_ext
   10207 cat >>conftest.$ac_ext <<_ACEOF
   10208 /* end confdefs.h.  */
   10209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10211 #define $ac_func innocuous_$ac_func
   10212 
   10213 /* System header to define __stub macros and hopefully few prototypes,
   10214     which can conflict with char $ac_func (); below.
   10215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10216     <limits.h> exists even on freestanding compilers.  */
   10217 
   10218 #ifdef __STDC__
   10219 # include <limits.h>
   10220 #else
   10221 # include <assert.h>
   10222 #endif
   10223 
   10224 #undef $ac_func
   10225 
   10226 /* Override any GCC internal prototype to avoid an error.
   10227    Use char because int might match the return type of a GCC
   10228    builtin and then its argument prototype would still apply.  */
   10229 #ifdef __cplusplus
   10230 extern "C"
   10231 #endif
   10232 char $ac_func ();
   10233 /* The GNU C library defines this for functions which it implements
   10234     to always fail with ENOSYS.  Some functions are actually named
   10235     something starting with __ and the normal name is an alias.  */
   10236 #if defined __stub_$ac_func || defined __stub___$ac_func
   10237 choke me
   10238 #endif
   10239 
   10240 int
   10241 main ()
   10242 {
   10243 return $ac_func ();
   10244   ;
   10245   return 0;
   10246 }
   10247 _ACEOF
   10248 rm -f conftest.$ac_objext conftest$ac_exeext
   10249 if { (ac_try="$ac_link"
   10250 case "(($ac_try" in
   10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10252   *) ac_try_echo=$ac_try;;
   10253 esac
   10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10255   (eval "$ac_link") 2>conftest.er1
   10256   ac_status=$?
   10257   grep -v '^ *+' conftest.er1 >conftest.err
   10258   rm -f conftest.er1
   10259   cat conftest.err >&5
   10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10261   (exit $ac_status); } && {
   10262 	 test -z "$ac_c_werror_flag" ||
   10263 	 test ! -s conftest.err
   10264        } && test -s conftest$ac_exeext &&
   10265        $as_test_x conftest$ac_exeext; then
   10266   eval "$as_ac_var=yes"
   10267 else
   10268   echo "$as_me: failed program was:" >&5
   10269 sed 's/^/| /' conftest.$ac_ext >&5
   10270 
   10271 	eval "$as_ac_var=no"
   10272 fi
   10273 
   10274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10275       conftest$ac_exeext conftest.$ac_ext
   10276 fi
   10277 ac_res=`eval echo '${'$as_ac_var'}'`
   10278 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10279 echo "${ECHO_T}$ac_res" >&6; }
   10280 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10281   cat >>confdefs.h <<_ACEOF
   10282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10283 _ACEOF
   10284 
   10285     { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
   10286 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
   10287 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
   10288   echo $ECHO_N "(cached) $ECHO_C" >&6
   10289 else
   10290 
   10291 	if test "$cross_compiling" = yes; then
   10292   ac_cv_buggy_ether_ntohost="not while cross-compiling"
   10293 else
   10294   cat >conftest.$ac_ext <<_ACEOF
   10295 /* confdefs.h.  */
   10296 _ACEOF
   10297 cat confdefs.h >>conftest.$ac_ext
   10298 cat >>conftest.$ac_ext <<_ACEOF
   10299 /* end confdefs.h.  */
   10300 
   10301 		#include <netdb.h>
   10302 		#include <sys/types.h>
   10303 		#include <sys/param.h>
   10304 		#include <sys/socket.h>
   10305 
   10306 		int
   10307 		main(int argc, char **argv)
   10308 		{
   10309 			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
   10310 			char name[MAXHOSTNAMELEN];
   10311 
   10312 			ether_ntohost(name, (struct ether_addr *)ea);
   10313 			exit(0);
   10314 		}
   10315 
   10316 _ACEOF
   10317 rm -f conftest$ac_exeext
   10318 if { (ac_try="$ac_link"
   10319 case "(($ac_try" in
   10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10321   *) ac_try_echo=$ac_try;;
   10322 esac
   10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10324   (eval "$ac_link") 2>&5
   10325   ac_status=$?
   10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10328   { (case "(($ac_try" in
   10329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10330   *) ac_try_echo=$ac_try;;
   10331 esac
   10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10333   (eval "$ac_try") 2>&5
   10334   ac_status=$?
   10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10336   (exit $ac_status); }; }; then
   10337   ac_cv_buggy_ether_ntohost=no
   10338 else
   10339   echo "$as_me: program exited with status $ac_status" >&5
   10340 echo "$as_me: failed program was:" >&5
   10341 sed 's/^/| /' conftest.$ac_ext >&5
   10342 
   10343 ( exit $ac_status )
   10344 ac_cv_buggy_ether_ntohost=yes
   10345 fi
   10346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   10347 fi
   10348 
   10349 
   10350 fi
   10351 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
   10352 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
   10353     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
   10354 	cat >>confdefs.h <<\_ACEOF
   10355 #define USE_ETHER_NTOHOST 1
   10356 _ACEOF
   10357 
   10358     fi
   10359 
   10360 fi
   10361 done
   10362 
   10363 if test "$ac_cv_func_ether_ntohost" = yes -a \
   10364     "$ac_cv_buggy_ether_ntohost" = "no"; then
   10365 	#
   10366 	# OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
   10367 	#
   10368 	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
   10369 		#
   10370 		# Yes.  Does it declare ether_ntohost()?
   10371 		#
   10372 		{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
   10373 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
   10374 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
   10375   echo $ECHO_N "(cached) $ECHO_C" >&6
   10376 else
   10377   cat >conftest.$ac_ext <<_ACEOF
   10378 /* confdefs.h.  */
   10379 _ACEOF
   10380 cat confdefs.h >>conftest.$ac_ext
   10381 cat >>conftest.$ac_ext <<_ACEOF
   10382 /* end confdefs.h.  */
   10383 
   10384 #include <sys/types.h>
   10385 #include <sys/socket.h>
   10386 #include <netinet/in.h>
   10387 #include <arpa/inet.h>
   10388 struct mbuf;
   10389 struct rtentry;
   10390 #include <net/if.h>
   10391 #include <netinet/if_ether.h>
   10392 
   10393 
   10394 int
   10395 main ()
   10396 {
   10397 #ifndef ether_ntohost
   10398   (void) ether_ntohost;
   10399 #endif
   10400 
   10401   ;
   10402   return 0;
   10403 }
   10404 _ACEOF
   10405 rm -f conftest.$ac_objext
   10406 if { (ac_try="$ac_compile"
   10407 case "(($ac_try" in
   10408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10409   *) ac_try_echo=$ac_try;;
   10410 esac
   10411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10412   (eval "$ac_compile") 2>conftest.er1
   10413   ac_status=$?
   10414   grep -v '^ *+' conftest.er1 >conftest.err
   10415   rm -f conftest.er1
   10416   cat conftest.err >&5
   10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10418   (exit $ac_status); } && {
   10419 	 test -z "$ac_c_werror_flag" ||
   10420 	 test ! -s conftest.err
   10421        } && test -s conftest.$ac_objext; then
   10422   ac_cv_have_decl_ether_ntohost=yes
   10423 else
   10424   echo "$as_me: failed program was:" >&5
   10425 sed 's/^/| /' conftest.$ac_ext >&5
   10426 
   10427 	ac_cv_have_decl_ether_ntohost=no
   10428 fi
   10429 
   10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10431 fi
   10432 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
   10433 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
   10434 if test $ac_cv_have_decl_ether_ntohost = yes; then
   10435 
   10436 
   10437 cat >>confdefs.h <<\_ACEOF
   10438 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
   10439 _ACEOF
   10440 
   10441 
   10442 fi
   10443 
   10444 	fi
   10445 	#
   10446 	# Did that succeed?
   10447 	#
   10448 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   10449 		#
   10450 		# No, how about <netinet/ether.h>, as on Linux?
   10451 		#
   10452 
   10453 for ac_header in netinet/ether.h
   10454 do
   10455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10457   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10460   echo $ECHO_N "(cached) $ECHO_C" >&6
   10461 fi
   10462 ac_res=`eval echo '${'$as_ac_Header'}'`
   10463 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10464 echo "${ECHO_T}$ac_res" >&6; }
   10465 else
   10466   # Is the header compilable?
   10467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10469 cat >conftest.$ac_ext <<_ACEOF
   10470 /* confdefs.h.  */
   10471 _ACEOF
   10472 cat confdefs.h >>conftest.$ac_ext
   10473 cat >>conftest.$ac_ext <<_ACEOF
   10474 /* end confdefs.h.  */
   10475 $ac_includes_default
   10476 #include <$ac_header>
   10477 _ACEOF
   10478 rm -f conftest.$ac_objext
   10479 if { (ac_try="$ac_compile"
   10480 case "(($ac_try" in
   10481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10482   *) ac_try_echo=$ac_try;;
   10483 esac
   10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10485   (eval "$ac_compile") 2>conftest.er1
   10486   ac_status=$?
   10487   grep -v '^ *+' conftest.er1 >conftest.err
   10488   rm -f conftest.er1
   10489   cat conftest.err >&5
   10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10491   (exit $ac_status); } && {
   10492 	 test -z "$ac_c_werror_flag" ||
   10493 	 test ! -s conftest.err
   10494        } && test -s conftest.$ac_objext; then
   10495   ac_header_compiler=yes
   10496 else
   10497   echo "$as_me: failed program was:" >&5
   10498 sed 's/^/| /' conftest.$ac_ext >&5
   10499 
   10500 	ac_header_compiler=no
   10501 fi
   10502 
   10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10505 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10506 
   10507 # Is the header present?
   10508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10510 cat >conftest.$ac_ext <<_ACEOF
   10511 /* confdefs.h.  */
   10512 _ACEOF
   10513 cat confdefs.h >>conftest.$ac_ext
   10514 cat >>conftest.$ac_ext <<_ACEOF
   10515 /* end confdefs.h.  */
   10516 #include <$ac_header>
   10517 _ACEOF
   10518 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10519 case "(($ac_try" in
   10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10521   *) ac_try_echo=$ac_try;;
   10522 esac
   10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10525   ac_status=$?
   10526   grep -v '^ *+' conftest.er1 >conftest.err
   10527   rm -f conftest.er1
   10528   cat conftest.err >&5
   10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10530   (exit $ac_status); } >/dev/null && {
   10531 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10532 	 test ! -s conftest.err
   10533        }; then
   10534   ac_header_preproc=yes
   10535 else
   10536   echo "$as_me: failed program was:" >&5
   10537 sed 's/^/| /' conftest.$ac_ext >&5
   10538 
   10539   ac_header_preproc=no
   10540 fi
   10541 
   10542 rm -f conftest.err conftest.$ac_ext
   10543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10544 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10545 
   10546 # So?  What about this header?
   10547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10548   yes:no: )
   10549     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10553     ac_header_preproc=yes
   10554     ;;
   10555   no:yes:* )
   10556     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10558     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10559 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10560     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10562     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10563 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10566     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10568 
   10569     ;;
   10570 esac
   10571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10574   echo $ECHO_N "(cached) $ECHO_C" >&6
   10575 else
   10576   eval "$as_ac_Header=\$ac_header_preproc"
   10577 fi
   10578 ac_res=`eval echo '${'$as_ac_Header'}'`
   10579 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10580 echo "${ECHO_T}$ac_res" >&6; }
   10581 
   10582 fi
   10583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10584   cat >>confdefs.h <<_ACEOF
   10585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10586 _ACEOF
   10587 
   10588 fi
   10589 
   10590 done
   10591 
   10592 		if test "$ac_cv_header_netinet_ether_h" = yes; then
   10593 			#
   10594 			# We have it - does it declare ether_ntohost()?
   10595 			# Unset ac_cv_have_decl_ether_ntohost so we don't
   10596 			# treat the previous failure as a cached value and
   10597 			# suppress the next test.
   10598 			#
   10599 			unset ac_cv_have_decl_ether_ntohost
   10600 			{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
   10601 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
   10602 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
   10603   echo $ECHO_N "(cached) $ECHO_C" >&6
   10604 else
   10605   cat >conftest.$ac_ext <<_ACEOF
   10606 /* confdefs.h.  */
   10607 _ACEOF
   10608 cat confdefs.h >>conftest.$ac_ext
   10609 cat >>conftest.$ac_ext <<_ACEOF
   10610 /* end confdefs.h.  */
   10611 
   10612 #include <netinet/ether.h>
   10613 
   10614 
   10615 int
   10616 main ()
   10617 {
   10618 #ifndef ether_ntohost
   10619   (void) ether_ntohost;
   10620 #endif
   10621 
   10622   ;
   10623   return 0;
   10624 }
   10625 _ACEOF
   10626 rm -f conftest.$ac_objext
   10627 if { (ac_try="$ac_compile"
   10628 case "(($ac_try" in
   10629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10630   *) ac_try_echo=$ac_try;;
   10631 esac
   10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10633   (eval "$ac_compile") 2>conftest.er1
   10634   ac_status=$?
   10635   grep -v '^ *+' conftest.er1 >conftest.err
   10636   rm -f conftest.er1
   10637   cat conftest.err >&5
   10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10639   (exit $ac_status); } && {
   10640 	 test -z "$ac_c_werror_flag" ||
   10641 	 test ! -s conftest.err
   10642        } && test -s conftest.$ac_objext; then
   10643   ac_cv_have_decl_ether_ntohost=yes
   10644 else
   10645   echo "$as_me: failed program was:" >&5
   10646 sed 's/^/| /' conftest.$ac_ext >&5
   10647 
   10648 	ac_cv_have_decl_ether_ntohost=no
   10649 fi
   10650 
   10651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10652 fi
   10653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
   10654 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
   10655 if test $ac_cv_have_decl_ether_ntohost = yes; then
   10656 
   10657 
   10658 cat >>confdefs.h <<\_ACEOF
   10659 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
   10660 _ACEOF
   10661 
   10662 
   10663 fi
   10664 
   10665 		fi
   10666 	fi
   10667 	#
   10668 	# Is ether_ntohost() declared?
   10669 	#
   10670 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   10671 		#
   10672 		# No, we'll have to declare it ourselves.
   10673 		# Do we have "struct ether_addr"?
   10674 		#
   10675 		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
   10676 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
   10677 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
   10678   echo $ECHO_N "(cached) $ECHO_C" >&6
   10679 else
   10680   cat >conftest.$ac_ext <<_ACEOF
   10681 /* confdefs.h.  */
   10682 _ACEOF
   10683 cat confdefs.h >>conftest.$ac_ext
   10684 cat >>conftest.$ac_ext <<_ACEOF
   10685 /* end confdefs.h.  */
   10686 
   10687 #include <sys/types.h>
   10688 #include <sys/socket.h>
   10689 #include <netinet/in.h>
   10690 #include <arpa/inet.h>
   10691 struct mbuf;
   10692 struct rtentry;
   10693 #include <net/if.h>
   10694 #include <netinet/if_ether.h>
   10695 
   10696 
   10697 typedef struct ether_addr ac__type_new_;
   10698 int
   10699 main ()
   10700 {
   10701 if ((ac__type_new_ *) 0)
   10702   return 0;
   10703 if (sizeof (ac__type_new_))
   10704   return 0;
   10705   ;
   10706   return 0;
   10707 }
   10708 _ACEOF
   10709 rm -f conftest.$ac_objext
   10710 if { (ac_try="$ac_compile"
   10711 case "(($ac_try" in
   10712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10713   *) ac_try_echo=$ac_try;;
   10714 esac
   10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10716   (eval "$ac_compile") 2>conftest.er1
   10717   ac_status=$?
   10718   grep -v '^ *+' conftest.er1 >conftest.err
   10719   rm -f conftest.er1
   10720   cat conftest.err >&5
   10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10722   (exit $ac_status); } && {
   10723 	 test -z "$ac_c_werror_flag" ||
   10724 	 test ! -s conftest.err
   10725        } && test -s conftest.$ac_objext; then
   10726   ac_cv_type_struct_ether_addr=yes
   10727 else
   10728   echo "$as_me: failed program was:" >&5
   10729 sed 's/^/| /' conftest.$ac_ext >&5
   10730 
   10731 	ac_cv_type_struct_ether_addr=no
   10732 fi
   10733 
   10734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10735 fi
   10736 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
   10737 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
   10738 if test $ac_cv_type_struct_ether_addr = yes; then
   10739 
   10740 cat >>confdefs.h <<_ACEOF
   10741 #define HAVE_STRUCT_ETHER_ADDR 1
   10742 _ACEOF
   10743 
   10744 
   10745 fi
   10746 
   10747 
   10748 cat >>confdefs.h <<\_ACEOF
   10749 #define HAVE_DECL_ETHER_NTOHOST 0
   10750 _ACEOF
   10751 
   10752 	else
   10753 
   10754 cat >>confdefs.h <<\_ACEOF
   10755 #define HAVE_DECL_ETHER_NTOHOST 1
   10756 _ACEOF
   10757 
   10758 	fi
   10759 fi
   10760 
   10761 
   10762 	{ echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
   10763 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
   10764 	if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
   10765   echo $ECHO_N "(cached) $ECHO_C" >&6
   10766 else
   10767   cat >conftest.$ac_ext <<_ACEOF
   10768 /* confdefs.h.  */
   10769 _ACEOF
   10770 cat confdefs.h >>conftest.$ac_ext
   10771 cat >>conftest.$ac_ext <<_ACEOF
   10772 /* end confdefs.h.  */
   10773 
   10774 #		include <sys/types.h>
   10775 #		include <sys/socket.h>
   10776 int
   10777 main ()
   10778 {
   10779 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
   10780   ;
   10781   return 0;
   10782 }
   10783 _ACEOF
   10784 rm -f conftest.$ac_objext
   10785 if { (ac_try="$ac_compile"
   10786 case "(($ac_try" in
   10787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10788   *) ac_try_echo=$ac_try;;
   10789 esac
   10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10791   (eval "$ac_compile") 2>conftest.er1
   10792   ac_status=$?
   10793   grep -v '^ *+' conftest.er1 >conftest.err
   10794   rm -f conftest.er1
   10795   cat conftest.err >&5
   10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10797   (exit $ac_status); } && {
   10798 	 test -z "$ac_c_werror_flag" ||
   10799 	 test ! -s conftest.err
   10800        } && test -s conftest.$ac_objext; then
   10801   ac_cv_sockaddr_has_sa_len=yes
   10802 else
   10803   echo "$as_me: failed program was:" >&5
   10804 sed 's/^/| /' conftest.$ac_ext >&5
   10805 
   10806 	ac_cv_sockaddr_has_sa_len=no
   10807 fi
   10808 
   10809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10810 fi
   10811 
   10812 	{ echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
   10813 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
   10814 		if test $ac_cv_sockaddr_has_sa_len = yes ; then
   10815 			cat >>confdefs.h <<\_ACEOF
   10816 #define HAVE_SOCKADDR_SA_LEN 1
   10817 _ACEOF
   10818 
   10819 	fi
   10820 
   10821 if test "$ac_cv_sockaddr_has_sa_len" = no; then
   10822 	missing_includes=yes
   10823 fi
   10824 
   10825 
   10826 
   10827 
   10828 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
   10829 do
   10830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10834   echo $ECHO_N "(cached) $ECHO_C" >&6
   10835 else
   10836   cat >conftest.$ac_ext <<_ACEOF
   10837 /* confdefs.h.  */
   10838 _ACEOF
   10839 cat confdefs.h >>conftest.$ac_ext
   10840 cat >>conftest.$ac_ext <<_ACEOF
   10841 /* end confdefs.h.  */
   10842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10844 #define $ac_func innocuous_$ac_func
   10845 
   10846 /* System header to define __stub macros and hopefully few prototypes,
   10847     which can conflict with char $ac_func (); below.
   10848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10849     <limits.h> exists even on freestanding compilers.  */
   10850 
   10851 #ifdef __STDC__
   10852 # include <limits.h>
   10853 #else
   10854 # include <assert.h>
   10855 #endif
   10856 
   10857 #undef $ac_func
   10858 
   10859 /* Override any GCC internal prototype to avoid an error.
   10860    Use char because int might match the return type of a GCC
   10861    builtin and then its argument prototype would still apply.  */
   10862 #ifdef __cplusplus
   10863 extern "C"
   10864 #endif
   10865 char $ac_func ();
   10866 /* The GNU C library defines this for functions which it implements
   10867     to always fail with ENOSYS.  Some functions are actually named
   10868     something starting with __ and the normal name is an alias.  */
   10869 #if defined __stub_$ac_func || defined __stub___$ac_func
   10870 choke me
   10871 #endif
   10872 
   10873 int
   10874 main ()
   10875 {
   10876 return $ac_func ();
   10877   ;
   10878   return 0;
   10879 }
   10880 _ACEOF
   10881 rm -f conftest.$ac_objext conftest$ac_exeext
   10882 if { (ac_try="$ac_link"
   10883 case "(($ac_try" in
   10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10885   *) ac_try_echo=$ac_try;;
   10886 esac
   10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10888   (eval "$ac_link") 2>conftest.er1
   10889   ac_status=$?
   10890   grep -v '^ *+' conftest.er1 >conftest.err
   10891   rm -f conftest.er1
   10892   cat conftest.err >&5
   10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10894   (exit $ac_status); } && {
   10895 	 test -z "$ac_c_werror_flag" ||
   10896 	 test ! -s conftest.err
   10897        } && test -s conftest$ac_exeext &&
   10898        $as_test_x conftest$ac_exeext; then
   10899   eval "$as_ac_var=yes"
   10900 else
   10901   echo "$as_me: failed program was:" >&5
   10902 sed 's/^/| /' conftest.$ac_ext >&5
   10903 
   10904 	eval "$as_ac_var=no"
   10905 fi
   10906 
   10907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10908       conftest$ac_exeext conftest.$ac_ext
   10909 fi
   10910 ac_res=`eval echo '${'$as_ac_var'}'`
   10911 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10912 echo "${ECHO_T}$ac_res" >&6; }
   10913 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10914   cat >>confdefs.h <<_ACEOF
   10915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10916 _ACEOF
   10917 
   10918 fi
   10919 done
   10920 
   10921 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
   10922     savedcflags="$CFLAGS"
   10923     CFLAGS="$CFLAGS $V_INCLS"
   10924     { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
   10925 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
   10926 if test "${ac_cv_type_pcap_if_t+set}" = set; then
   10927   echo $ECHO_N "(cached) $ECHO_C" >&6
   10928 else
   10929   cat >conftest.$ac_ext <<_ACEOF
   10930 /* confdefs.h.  */
   10931 _ACEOF
   10932 cat confdefs.h >>conftest.$ac_ext
   10933 cat >>conftest.$ac_ext <<_ACEOF
   10934 /* end confdefs.h.  */
   10935 #include <pcap.h>
   10936 
   10937 typedef pcap_if_t ac__type_new_;
   10938 int
   10939 main ()
   10940 {
   10941 if ((ac__type_new_ *) 0)
   10942   return 0;
   10943 if (sizeof (ac__type_new_))
   10944   return 0;
   10945   ;
   10946   return 0;
   10947 }
   10948 _ACEOF
   10949 rm -f conftest.$ac_objext
   10950 if { (ac_try="$ac_compile"
   10951 case "(($ac_try" in
   10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10953   *) ac_try_echo=$ac_try;;
   10954 esac
   10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10956   (eval "$ac_compile") 2>conftest.er1
   10957   ac_status=$?
   10958   grep -v '^ *+' conftest.er1 >conftest.err
   10959   rm -f conftest.er1
   10960   cat conftest.err >&5
   10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10962   (exit $ac_status); } && {
   10963 	 test -z "$ac_c_werror_flag" ||
   10964 	 test ! -s conftest.err
   10965        } && test -s conftest.$ac_objext; then
   10966   ac_cv_type_pcap_if_t=yes
   10967 else
   10968   echo "$as_me: failed program was:" >&5
   10969 sed 's/^/| /' conftest.$ac_ext >&5
   10970 
   10971 	ac_cv_type_pcap_if_t=no
   10972 fi
   10973 
   10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10975 fi
   10976 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
   10977 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
   10978 if test $ac_cv_type_pcap_if_t = yes; then
   10979 
   10980 cat >>confdefs.h <<_ACEOF
   10981 #define HAVE_PCAP_IF_T 1
   10982 _ACEOF
   10983 
   10984 
   10985 fi
   10986 
   10987     CFLAGS="$savedcflags"
   10988 fi
   10989 
   10990 if test $ac_cv_func_pcap_lib_version = "no" ; then
   10991     { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
   10992 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
   10993     cat >conftest.$ac_ext <<_ACEOF
   10994 /* confdefs.h.  */
   10995 _ACEOF
   10996 cat confdefs.h >>conftest.$ac_ext
   10997 cat >>conftest.$ac_ext <<_ACEOF
   10998 /* end confdefs.h.  */
   10999 
   11000 int
   11001 main ()
   11002 {
   11003 
   11004 	extern char pcap_version[];
   11005 
   11006 	return (int)pcap_version;
   11007 
   11008   ;
   11009   return 0;
   11010 }
   11011 _ACEOF
   11012 rm -f conftest.$ac_objext conftest$ac_exeext
   11013 if { (ac_try="$ac_link"
   11014 case "(($ac_try" in
   11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11016   *) ac_try_echo=$ac_try;;
   11017 esac
   11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11019   (eval "$ac_link") 2>conftest.er1
   11020   ac_status=$?
   11021   grep -v '^ *+' conftest.er1 >conftest.err
   11022   rm -f conftest.er1
   11023   cat conftest.err >&5
   11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11025   (exit $ac_status); } && {
   11026 	 test -z "$ac_c_werror_flag" ||
   11027 	 test ! -s conftest.err
   11028        } && test -s conftest$ac_exeext &&
   11029        $as_test_x conftest$ac_exeext; then
   11030   ac_lbl_cv_pcap_version_defined=yes
   11031 else
   11032   echo "$as_me: failed program was:" >&5
   11033 sed 's/^/| /' conftest.$ac_ext >&5
   11034 
   11035 	ac_lbl_cv_pcap_version_defined=no
   11036 fi
   11037 
   11038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11039       conftest$ac_exeext conftest.$ac_ext
   11040     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
   11041     	{ echo "$as_me:$LINENO: result: yes" >&5
   11042 echo "${ECHO_T}yes" >&6; }
   11043 	cat >>confdefs.h <<\_ACEOF
   11044 #define HAVE_PCAP_VERSION 1
   11045 _ACEOF
   11046 
   11047     else
   11048 	{ echo "$as_me:$LINENO: result: no" >&5
   11049 echo "${ECHO_T}no" >&6; }
   11050     fi
   11051 fi
   11052 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
   11053 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
   11054 cat >conftest.$ac_ext <<_ACEOF
   11055 /* confdefs.h.  */
   11056 _ACEOF
   11057 cat confdefs.h >>conftest.$ac_ext
   11058 cat >>conftest.$ac_ext <<_ACEOF
   11059 /* end confdefs.h.  */
   11060 
   11061 int
   11062 main ()
   11063 {
   11064 
   11065 	extern int pcap_debug;
   11066 
   11067 	return pcap_debug;
   11068 
   11069   ;
   11070   return 0;
   11071 }
   11072 _ACEOF
   11073 rm -f conftest.$ac_objext conftest$ac_exeext
   11074 if { (ac_try="$ac_link"
   11075 case "(($ac_try" in
   11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11077   *) ac_try_echo=$ac_try;;
   11078 esac
   11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11080   (eval "$ac_link") 2>conftest.er1
   11081   ac_status=$?
   11082   grep -v '^ *+' conftest.er1 >conftest.err
   11083   rm -f conftest.er1
   11084   cat conftest.err >&5
   11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11086   (exit $ac_status); } && {
   11087 	 test -z "$ac_c_werror_flag" ||
   11088 	 test ! -s conftest.err
   11089        } && test -s conftest$ac_exeext &&
   11090        $as_test_x conftest$ac_exeext; then
   11091   ac_lbl_cv_pcap_debug_defined=yes
   11092 else
   11093   echo "$as_me: failed program was:" >&5
   11094 sed 's/^/| /' conftest.$ac_ext >&5
   11095 
   11096 	ac_lbl_cv_pcap_debug_defined=no
   11097 fi
   11098 
   11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11100       conftest$ac_exeext conftest.$ac_ext
   11101 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
   11102 	{ echo "$as_me:$LINENO: result: yes" >&5
   11103 echo "${ECHO_T}yes" >&6; }
   11104 	cat >>confdefs.h <<\_ACEOF
   11105 #define HAVE_PCAP_DEBUG 1
   11106 _ACEOF
   11107 
   11108 else
   11109 	{ echo "$as_me:$LINENO: result: no" >&5
   11110 echo "${ECHO_T}no" >&6; }
   11111 	#
   11112 	# OK, what about "yydebug"?
   11113 	#
   11114 	{ echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
   11115 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
   11116 	cat >conftest.$ac_ext <<_ACEOF
   11117 /* confdefs.h.  */
   11118 _ACEOF
   11119 cat confdefs.h >>conftest.$ac_ext
   11120 cat >>conftest.$ac_ext <<_ACEOF
   11121 /* end confdefs.h.  */
   11122 
   11123 int
   11124 main ()
   11125 {
   11126 
   11127 		extern int yydebug;
   11128 
   11129 		return yydebug;
   11130 
   11131   ;
   11132   return 0;
   11133 }
   11134 _ACEOF
   11135 rm -f conftest.$ac_objext conftest$ac_exeext
   11136 if { (ac_try="$ac_link"
   11137 case "(($ac_try" in
   11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11139   *) ac_try_echo=$ac_try;;
   11140 esac
   11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11142   (eval "$ac_link") 2>conftest.er1
   11143   ac_status=$?
   11144   grep -v '^ *+' conftest.er1 >conftest.err
   11145   rm -f conftest.er1
   11146   cat conftest.err >&5
   11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11148   (exit $ac_status); } && {
   11149 	 test -z "$ac_c_werror_flag" ||
   11150 	 test ! -s conftest.err
   11151        } && test -s conftest$ac_exeext &&
   11152        $as_test_x conftest$ac_exeext; then
   11153   ac_lbl_cv_yydebug_defined=yes
   11154 else
   11155   echo "$as_me: failed program was:" >&5
   11156 sed 's/^/| /' conftest.$ac_ext >&5
   11157 
   11158 	ac_lbl_cv_yydebug_defined=no
   11159 fi
   11160 
   11161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11162       conftest$ac_exeext conftest.$ac_ext
   11163 	if test "$ac_lbl_cv_yydebug_defined" = yes ; then
   11164 		{ echo "$as_me:$LINENO: result: yes" >&5
   11165 echo "${ECHO_T}yes" >&6; }
   11166 		cat >>confdefs.h <<\_ACEOF
   11167 #define HAVE_YYDEBUG 1
   11168 _ACEOF
   11169 
   11170 	else
   11171 		{ echo "$as_me:$LINENO: result: no" >&5
   11172 echo "${ECHO_T}no" >&6; }
   11173 	fi
   11174 fi
   11175 
   11176 for ac_func in bpf_dump
   11177 do
   11178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11182   echo $ECHO_N "(cached) $ECHO_C" >&6
   11183 else
   11184   cat >conftest.$ac_ext <<_ACEOF
   11185 /* confdefs.h.  */
   11186 _ACEOF
   11187 cat confdefs.h >>conftest.$ac_ext
   11188 cat >>conftest.$ac_ext <<_ACEOF
   11189 /* end confdefs.h.  */
   11190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11192 #define $ac_func innocuous_$ac_func
   11193 
   11194 /* System header to define __stub macros and hopefully few prototypes,
   11195     which can conflict with char $ac_func (); below.
   11196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11197     <limits.h> exists even on freestanding compilers.  */
   11198 
   11199 #ifdef __STDC__
   11200 # include <limits.h>
   11201 #else
   11202 # include <assert.h>
   11203 #endif
   11204 
   11205 #undef $ac_func
   11206 
   11207 /* Override any GCC internal prototype to avoid an error.
   11208    Use char because int might match the return type of a GCC
   11209    builtin and then its argument prototype would still apply.  */
   11210 #ifdef __cplusplus
   11211 extern "C"
   11212 #endif
   11213 char $ac_func ();
   11214 /* The GNU C library defines this for functions which it implements
   11215     to always fail with ENOSYS.  Some functions are actually named
   11216     something starting with __ and the normal name is an alias.  */
   11217 #if defined __stub_$ac_func || defined __stub___$ac_func
   11218 choke me
   11219 #endif
   11220 
   11221 int
   11222 main ()
   11223 {
   11224 return $ac_func ();
   11225   ;
   11226   return 0;
   11227 }
   11228 _ACEOF
   11229 rm -f conftest.$ac_objext conftest$ac_exeext
   11230 if { (ac_try="$ac_link"
   11231 case "(($ac_try" in
   11232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11233   *) ac_try_echo=$ac_try;;
   11234 esac
   11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11236   (eval "$ac_link") 2>conftest.er1
   11237   ac_status=$?
   11238   grep -v '^ *+' conftest.er1 >conftest.err
   11239   rm -f conftest.er1
   11240   cat conftest.err >&5
   11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11242   (exit $ac_status); } && {
   11243 	 test -z "$ac_c_werror_flag" ||
   11244 	 test ! -s conftest.err
   11245        } && test -s conftest$ac_exeext &&
   11246        $as_test_x conftest$ac_exeext; then
   11247   eval "$as_ac_var=yes"
   11248 else
   11249   echo "$as_me: failed program was:" >&5
   11250 sed 's/^/| /' conftest.$ac_ext >&5
   11251 
   11252 	eval "$as_ac_var=no"
   11253 fi
   11254 
   11255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11256       conftest$ac_exeext conftest.$ac_ext
   11257 fi
   11258 ac_res=`eval echo '${'$as_ac_var'}'`
   11259 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11260 echo "${ECHO_T}$ac_res" >&6; }
   11261 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11262   cat >>confdefs.h <<_ACEOF
   11263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11264 _ACEOF
   11265 
   11266 else
   11267   case " $LIBOBJS " in
   11268   *" $ac_func.$ac_objext "* ) ;;
   11269   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   11270  ;;
   11271 esac
   11272 
   11273 fi
   11274 done
   11275 
   11276 
   11277 V_GROUP=0
   11278 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
   11279 	V_GROUP=wheel
   11280 fi
   11281 case "$host_os" in
   11282 
   11283 aix*)
   11284 		cat >>confdefs.h <<\_ACEOF
   11285 #define _SUN 1
   11286 _ACEOF
   11287 
   11288 	;;
   11289 
   11290 irix*)
   11291 	V_GROUP=sys
   11292 	;;
   11293 
   11294 osf*)
   11295 	V_GROUP=system
   11296 	;;
   11297 
   11298 solaris*)
   11299 	V_GROUP=sys
   11300 	;;
   11301 esac
   11302 
   11303 if test -f /dev/bpf0 ; then
   11304 	V_GROUP=bpf
   11305 fi
   11306 
   11307 
   11308 for ac_header in sys/bitypes.h
   11309 do
   11310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11312   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11315   echo $ECHO_N "(cached) $ECHO_C" >&6
   11316 fi
   11317 ac_res=`eval echo '${'$as_ac_Header'}'`
   11318 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11319 echo "${ECHO_T}$ac_res" >&6; }
   11320 else
   11321   # Is the header compilable?
   11322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11324 cat >conftest.$ac_ext <<_ACEOF
   11325 /* confdefs.h.  */
   11326 _ACEOF
   11327 cat confdefs.h >>conftest.$ac_ext
   11328 cat >>conftest.$ac_ext <<_ACEOF
   11329 /* end confdefs.h.  */
   11330 $ac_includes_default
   11331 #include <$ac_header>
   11332 _ACEOF
   11333 rm -f conftest.$ac_objext
   11334 if { (ac_try="$ac_compile"
   11335 case "(($ac_try" in
   11336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11337   *) ac_try_echo=$ac_try;;
   11338 esac
   11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11340   (eval "$ac_compile") 2>conftest.er1
   11341   ac_status=$?
   11342   grep -v '^ *+' conftest.er1 >conftest.err
   11343   rm -f conftest.er1
   11344   cat conftest.err >&5
   11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11346   (exit $ac_status); } && {
   11347 	 test -z "$ac_c_werror_flag" ||
   11348 	 test ! -s conftest.err
   11349        } && test -s conftest.$ac_objext; then
   11350   ac_header_compiler=yes
   11351 else
   11352   echo "$as_me: failed program was:" >&5
   11353 sed 's/^/| /' conftest.$ac_ext >&5
   11354 
   11355 	ac_header_compiler=no
   11356 fi
   11357 
   11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11360 echo "${ECHO_T}$ac_header_compiler" >&6; }
   11361 
   11362 # Is the header present?
   11363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11365 cat >conftest.$ac_ext <<_ACEOF
   11366 /* confdefs.h.  */
   11367 _ACEOF
   11368 cat confdefs.h >>conftest.$ac_ext
   11369 cat >>conftest.$ac_ext <<_ACEOF
   11370 /* end confdefs.h.  */
   11371 #include <$ac_header>
   11372 _ACEOF
   11373 if { (ac_try="$ac_cpp conftest.$ac_ext"
   11374 case "(($ac_try" in
   11375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11376   *) ac_try_echo=$ac_try;;
   11377 esac
   11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11380   ac_status=$?
   11381   grep -v '^ *+' conftest.er1 >conftest.err
   11382   rm -f conftest.er1
   11383   cat conftest.err >&5
   11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11385   (exit $ac_status); } >/dev/null && {
   11386 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   11387 	 test ! -s conftest.err
   11388        }; then
   11389   ac_header_preproc=yes
   11390 else
   11391   echo "$as_me: failed program was:" >&5
   11392 sed 's/^/| /' conftest.$ac_ext >&5
   11393 
   11394   ac_header_preproc=no
   11395 fi
   11396 
   11397 rm -f conftest.err conftest.$ac_ext
   11398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11399 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11400 
   11401 # So?  What about this header?
   11402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11403   yes:no: )
   11404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11408     ac_header_preproc=yes
   11409     ;;
   11410   no:yes:* )
   11411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11423 
   11424     ;;
   11425 esac
   11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11429   echo $ECHO_N "(cached) $ECHO_C" >&6
   11430 else
   11431   eval "$as_ac_Header=\$ac_header_preproc"
   11432 fi
   11433 ac_res=`eval echo '${'$as_ac_Header'}'`
   11434 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11435 echo "${ECHO_T}$ac_res" >&6; }
   11436 
   11437 fi
   11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11439   cat >>confdefs.h <<_ACEOF
   11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11441 _ACEOF
   11442 
   11443 fi
   11444 
   11445 done
   11446 
   11447 
   11448 { echo "$as_me:$LINENO: checking for int8_t" >&5
   11449 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
   11450 if test "${ac_cv_type_int8_t+set}" = set; then
   11451   echo $ECHO_N "(cached) $ECHO_C" >&6
   11452 else
   11453   cat >conftest.$ac_ext <<_ACEOF
   11454 /* confdefs.h.  */
   11455 _ACEOF
   11456 cat confdefs.h >>conftest.$ac_ext
   11457 cat >>conftest.$ac_ext <<_ACEOF
   11458 /* end confdefs.h.  */
   11459 $ac_includes_default
   11460 typedef int8_t ac__type_new_;
   11461 int
   11462 main ()
   11463 {
   11464 if ((ac__type_new_ *) 0)
   11465   return 0;
   11466 if (sizeof (ac__type_new_))
   11467   return 0;
   11468   ;
   11469   return 0;
   11470 }
   11471 _ACEOF
   11472 rm -f conftest.$ac_objext
   11473 if { (ac_try="$ac_compile"
   11474 case "(($ac_try" in
   11475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11476   *) ac_try_echo=$ac_try;;
   11477 esac
   11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11479   (eval "$ac_compile") 2>conftest.er1
   11480   ac_status=$?
   11481   grep -v '^ *+' conftest.er1 >conftest.err
   11482   rm -f conftest.er1
   11483   cat conftest.err >&5
   11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11485   (exit $ac_status); } && {
   11486 	 test -z "$ac_c_werror_flag" ||
   11487 	 test ! -s conftest.err
   11488        } && test -s conftest.$ac_objext; then
   11489   ac_cv_type_int8_t=yes
   11490 else
   11491   echo "$as_me: failed program was:" >&5
   11492 sed 's/^/| /' conftest.$ac_ext >&5
   11493 
   11494 	ac_cv_type_int8_t=no
   11495 fi
   11496 
   11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11498 fi
   11499 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
   11500 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
   11501 if test $ac_cv_type_int8_t = yes; then
   11502   :
   11503 else
   11504 
   11505 cat >>confdefs.h <<\_ACEOF
   11506 #define int8_t signed char
   11507 _ACEOF
   11508 
   11509 fi
   11510 
   11511 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
   11512 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
   11513 if test "${ac_cv_type_u_int8_t+set}" = set; then
   11514   echo $ECHO_N "(cached) $ECHO_C" >&6
   11515 else
   11516   cat >conftest.$ac_ext <<_ACEOF
   11517 /* confdefs.h.  */
   11518 _ACEOF
   11519 cat confdefs.h >>conftest.$ac_ext
   11520 cat >>conftest.$ac_ext <<_ACEOF
   11521 /* end confdefs.h.  */
   11522 $ac_includes_default
   11523 #ifdef HAVE_SYS_BITYPES_H
   11524 #include <sys/bitypes.h>
   11525 #endif
   11526 
   11527 typedef u_int8_t ac__type_new_;
   11528 int
   11529 main ()
   11530 {
   11531 if ((ac__type_new_ *) 0)
   11532   return 0;
   11533 if (sizeof (ac__type_new_))
   11534   return 0;
   11535   ;
   11536   return 0;
   11537 }
   11538 _ACEOF
   11539 rm -f conftest.$ac_objext
   11540 if { (ac_try="$ac_compile"
   11541 case "(($ac_try" in
   11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11543   *) ac_try_echo=$ac_try;;
   11544 esac
   11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11546   (eval "$ac_compile") 2>conftest.er1
   11547   ac_status=$?
   11548   grep -v '^ *+' conftest.er1 >conftest.err
   11549   rm -f conftest.er1
   11550   cat conftest.err >&5
   11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11552   (exit $ac_status); } && {
   11553 	 test -z "$ac_c_werror_flag" ||
   11554 	 test ! -s conftest.err
   11555        } && test -s conftest.$ac_objext; then
   11556   ac_cv_type_u_int8_t=yes
   11557 else
   11558   echo "$as_me: failed program was:" >&5
   11559 sed 's/^/| /' conftest.$ac_ext >&5
   11560 
   11561 	ac_cv_type_u_int8_t=no
   11562 fi
   11563 
   11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11565 fi
   11566 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
   11567 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
   11568 if test $ac_cv_type_u_int8_t = yes; then
   11569   :
   11570 else
   11571 
   11572 cat >>confdefs.h <<\_ACEOF
   11573 #define u_int8_t unsigned char
   11574 _ACEOF
   11575 
   11576 fi
   11577 
   11578 { echo "$as_me:$LINENO: checking for int16_t" >&5
   11579 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
   11580 if test "${ac_cv_type_int16_t+set}" = set; then
   11581   echo $ECHO_N "(cached) $ECHO_C" >&6
   11582 else
   11583   cat >conftest.$ac_ext <<_ACEOF
   11584 /* confdefs.h.  */
   11585 _ACEOF
   11586 cat confdefs.h >>conftest.$ac_ext
   11587 cat >>conftest.$ac_ext <<_ACEOF
   11588 /* end confdefs.h.  */
   11589 $ac_includes_default
   11590 typedef int16_t ac__type_new_;
   11591 int
   11592 main ()
   11593 {
   11594 if ((ac__type_new_ *) 0)
   11595   return 0;
   11596 if (sizeof (ac__type_new_))
   11597   return 0;
   11598   ;
   11599   return 0;
   11600 }
   11601 _ACEOF
   11602 rm -f conftest.$ac_objext
   11603 if { (ac_try="$ac_compile"
   11604 case "(($ac_try" in
   11605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11606   *) ac_try_echo=$ac_try;;
   11607 esac
   11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11609   (eval "$ac_compile") 2>conftest.er1
   11610   ac_status=$?
   11611   grep -v '^ *+' conftest.er1 >conftest.err
   11612   rm -f conftest.er1
   11613   cat conftest.err >&5
   11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11615   (exit $ac_status); } && {
   11616 	 test -z "$ac_c_werror_flag" ||
   11617 	 test ! -s conftest.err
   11618        } && test -s conftest.$ac_objext; then
   11619   ac_cv_type_int16_t=yes
   11620 else
   11621   echo "$as_me: failed program was:" >&5
   11622 sed 's/^/| /' conftest.$ac_ext >&5
   11623 
   11624 	ac_cv_type_int16_t=no
   11625 fi
   11626 
   11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11628 fi
   11629 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
   11630 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
   11631 if test $ac_cv_type_int16_t = yes; then
   11632   :
   11633 else
   11634 
   11635 cat >>confdefs.h <<\_ACEOF
   11636 #define int16_t short
   11637 _ACEOF
   11638 
   11639 fi
   11640 
   11641 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
   11642 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
   11643 if test "${ac_cv_type_u_int16_t+set}" = set; then
   11644   echo $ECHO_N "(cached) $ECHO_C" >&6
   11645 else
   11646   cat >conftest.$ac_ext <<_ACEOF
   11647 /* confdefs.h.  */
   11648 _ACEOF
   11649 cat confdefs.h >>conftest.$ac_ext
   11650 cat >>conftest.$ac_ext <<_ACEOF
   11651 /* end confdefs.h.  */
   11652 $ac_includes_default
   11653 #ifdef HAVE_SYS_BITYPES_H
   11654 #include <sys/bitypes.h>
   11655 #endif
   11656 
   11657 typedef u_int16_t ac__type_new_;
   11658 int
   11659 main ()
   11660 {
   11661 if ((ac__type_new_ *) 0)
   11662   return 0;
   11663 if (sizeof (ac__type_new_))
   11664   return 0;
   11665   ;
   11666   return 0;
   11667 }
   11668 _ACEOF
   11669 rm -f conftest.$ac_objext
   11670 if { (ac_try="$ac_compile"
   11671 case "(($ac_try" in
   11672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11673   *) ac_try_echo=$ac_try;;
   11674 esac
   11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11676   (eval "$ac_compile") 2>conftest.er1
   11677   ac_status=$?
   11678   grep -v '^ *+' conftest.er1 >conftest.err
   11679   rm -f conftest.er1
   11680   cat conftest.err >&5
   11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11682   (exit $ac_status); } && {
   11683 	 test -z "$ac_c_werror_flag" ||
   11684 	 test ! -s conftest.err
   11685        } && test -s conftest.$ac_objext; then
   11686   ac_cv_type_u_int16_t=yes
   11687 else
   11688   echo "$as_me: failed program was:" >&5
   11689 sed 's/^/| /' conftest.$ac_ext >&5
   11690 
   11691 	ac_cv_type_u_int16_t=no
   11692 fi
   11693 
   11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11695 fi
   11696 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
   11697 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
   11698 if test $ac_cv_type_u_int16_t = yes; then
   11699   :
   11700 else
   11701 
   11702 cat >>confdefs.h <<\_ACEOF
   11703 #define u_int16_t unsigned short
   11704 _ACEOF
   11705 
   11706 fi
   11707 
   11708 { echo "$as_me:$LINENO: checking for int32_t" >&5
   11709 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
   11710 if test "${ac_cv_type_int32_t+set}" = set; then
   11711   echo $ECHO_N "(cached) $ECHO_C" >&6
   11712 else
   11713   cat >conftest.$ac_ext <<_ACEOF
   11714 /* confdefs.h.  */
   11715 _ACEOF
   11716 cat confdefs.h >>conftest.$ac_ext
   11717 cat >>conftest.$ac_ext <<_ACEOF
   11718 /* end confdefs.h.  */
   11719 $ac_includes_default
   11720 typedef int32_t ac__type_new_;
   11721 int
   11722 main ()
   11723 {
   11724 if ((ac__type_new_ *) 0)
   11725   return 0;
   11726 if (sizeof (ac__type_new_))
   11727   return 0;
   11728   ;
   11729   return 0;
   11730 }
   11731 _ACEOF
   11732 rm -f conftest.$ac_objext
   11733 if { (ac_try="$ac_compile"
   11734 case "(($ac_try" in
   11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11736   *) ac_try_echo=$ac_try;;
   11737 esac
   11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11739   (eval "$ac_compile") 2>conftest.er1
   11740   ac_status=$?
   11741   grep -v '^ *+' conftest.er1 >conftest.err
   11742   rm -f conftest.er1
   11743   cat conftest.err >&5
   11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11745   (exit $ac_status); } && {
   11746 	 test -z "$ac_c_werror_flag" ||
   11747 	 test ! -s conftest.err
   11748        } && test -s conftest.$ac_objext; then
   11749   ac_cv_type_int32_t=yes
   11750 else
   11751   echo "$as_me: failed program was:" >&5
   11752 sed 's/^/| /' conftest.$ac_ext >&5
   11753 
   11754 	ac_cv_type_int32_t=no
   11755 fi
   11756 
   11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11758 fi
   11759 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
   11760 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
   11761 if test $ac_cv_type_int32_t = yes; then
   11762   :
   11763 else
   11764 
   11765 cat >>confdefs.h <<\_ACEOF
   11766 #define int32_t int
   11767 _ACEOF
   11768 
   11769 fi
   11770 
   11771 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
   11772 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
   11773 if test "${ac_cv_type_u_int32_t+set}" = set; then
   11774   echo $ECHO_N "(cached) $ECHO_C" >&6
   11775 else
   11776   cat >conftest.$ac_ext <<_ACEOF
   11777 /* confdefs.h.  */
   11778 _ACEOF
   11779 cat confdefs.h >>conftest.$ac_ext
   11780 cat >>conftest.$ac_ext <<_ACEOF
   11781 /* end confdefs.h.  */
   11782 $ac_includes_default
   11783 #ifdef HAVE_SYS_BITYPES_H
   11784 #include <sys/bitypes.h>
   11785 #endif
   11786 
   11787 typedef u_int32_t ac__type_new_;
   11788 int
   11789 main ()
   11790 {
   11791 if ((ac__type_new_ *) 0)
   11792   return 0;
   11793 if (sizeof (ac__type_new_))
   11794   return 0;
   11795   ;
   11796   return 0;
   11797 }
   11798 _ACEOF
   11799 rm -f conftest.$ac_objext
   11800 if { (ac_try="$ac_compile"
   11801 case "(($ac_try" in
   11802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11803   *) ac_try_echo=$ac_try;;
   11804 esac
   11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11806   (eval "$ac_compile") 2>conftest.er1
   11807   ac_status=$?
   11808   grep -v '^ *+' conftest.er1 >conftest.err
   11809   rm -f conftest.er1
   11810   cat conftest.err >&5
   11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11812   (exit $ac_status); } && {
   11813 	 test -z "$ac_c_werror_flag" ||
   11814 	 test ! -s conftest.err
   11815        } && test -s conftest.$ac_objext; then
   11816   ac_cv_type_u_int32_t=yes
   11817 else
   11818   echo "$as_me: failed program was:" >&5
   11819 sed 's/^/| /' conftest.$ac_ext >&5
   11820 
   11821 	ac_cv_type_u_int32_t=no
   11822 fi
   11823 
   11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11825 fi
   11826 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
   11827 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
   11828 if test $ac_cv_type_u_int32_t = yes; then
   11829   :
   11830 else
   11831 
   11832 cat >>confdefs.h <<\_ACEOF
   11833 #define u_int32_t unsigned int
   11834 _ACEOF
   11835 
   11836 fi
   11837 
   11838 { echo "$as_me:$LINENO: checking for int64_t" >&5
   11839 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
   11840 if test "${ac_cv_type_int64_t+set}" = set; then
   11841   echo $ECHO_N "(cached) $ECHO_C" >&6
   11842 else
   11843   cat >conftest.$ac_ext <<_ACEOF
   11844 /* confdefs.h.  */
   11845 _ACEOF
   11846 cat confdefs.h >>conftest.$ac_ext
   11847 cat >>conftest.$ac_ext <<_ACEOF
   11848 /* end confdefs.h.  */
   11849 $ac_includes_default
   11850 typedef int64_t ac__type_new_;
   11851 int
   11852 main ()
   11853 {
   11854 if ((ac__type_new_ *) 0)
   11855   return 0;
   11856 if (sizeof (ac__type_new_))
   11857   return 0;
   11858   ;
   11859   return 0;
   11860 }
   11861 _ACEOF
   11862 rm -f conftest.$ac_objext
   11863 if { (ac_try="$ac_compile"
   11864 case "(($ac_try" in
   11865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11866   *) ac_try_echo=$ac_try;;
   11867 esac
   11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11869   (eval "$ac_compile") 2>conftest.er1
   11870   ac_status=$?
   11871   grep -v '^ *+' conftest.er1 >conftest.err
   11872   rm -f conftest.er1
   11873   cat conftest.err >&5
   11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11875   (exit $ac_status); } && {
   11876 	 test -z "$ac_c_werror_flag" ||
   11877 	 test ! -s conftest.err
   11878        } && test -s conftest.$ac_objext; then
   11879   ac_cv_type_int64_t=yes
   11880 else
   11881   echo "$as_me: failed program was:" >&5
   11882 sed 's/^/| /' conftest.$ac_ext >&5
   11883 
   11884 	ac_cv_type_int64_t=no
   11885 fi
   11886 
   11887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11888 fi
   11889 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
   11890 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
   11891 if test $ac_cv_type_int64_t = yes; then
   11892   :
   11893 else
   11894 
   11895 cat >>confdefs.h <<\_ACEOF
   11896 #define int64_t long long
   11897 _ACEOF
   11898 
   11899 fi
   11900 
   11901 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
   11902 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
   11903 if test "${ac_cv_type_u_int64_t+set}" = set; then
   11904   echo $ECHO_N "(cached) $ECHO_C" >&6
   11905 else
   11906   cat >conftest.$ac_ext <<_ACEOF
   11907 /* confdefs.h.  */
   11908 _ACEOF
   11909 cat confdefs.h >>conftest.$ac_ext
   11910 cat >>conftest.$ac_ext <<_ACEOF
   11911 /* end confdefs.h.  */
   11912 $ac_includes_default
   11913 #ifdef HAVE_SYS_BITYPES_H
   11914 #include <sys/bitypes.h>
   11915 #endif
   11916 
   11917 typedef u_int64_t ac__type_new_;
   11918 int
   11919 main ()
   11920 {
   11921 if ((ac__type_new_ *) 0)
   11922   return 0;
   11923 if (sizeof (ac__type_new_))
   11924   return 0;
   11925   ;
   11926   return 0;
   11927 }
   11928 _ACEOF
   11929 rm -f conftest.$ac_objext
   11930 if { (ac_try="$ac_compile"
   11931 case "(($ac_try" in
   11932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11933   *) ac_try_echo=$ac_try;;
   11934 esac
   11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11936   (eval "$ac_compile") 2>conftest.er1
   11937   ac_status=$?
   11938   grep -v '^ *+' conftest.er1 >conftest.err
   11939   rm -f conftest.er1
   11940   cat conftest.err >&5
   11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11942   (exit $ac_status); } && {
   11943 	 test -z "$ac_c_werror_flag" ||
   11944 	 test ! -s conftest.err
   11945        } && test -s conftest.$ac_objext; then
   11946   ac_cv_type_u_int64_t=yes
   11947 else
   11948   echo "$as_me: failed program was:" >&5
   11949 sed 's/^/| /' conftest.$ac_ext >&5
   11950 
   11951 	ac_cv_type_u_int64_t=no
   11952 fi
   11953 
   11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11955 fi
   11956 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
   11957 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
   11958 if test $ac_cv_type_u_int64_t = yes; then
   11959   :
   11960 else
   11961 
   11962 cat >>confdefs.h <<\_ACEOF
   11963 #define u_int64_t unsigned long long
   11964 _ACEOF
   11965 
   11966 fi
   11967 
   11968 
   11969 #
   11970 # We can't just check for <inttypes.h> - some systems have one that
   11971 # doesn't define all the PRI[doxu]64 macros.
   11972 #
   11973 
   11974 for ac_header in inttypes.h
   11975 do
   11976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11978   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11981   echo $ECHO_N "(cached) $ECHO_C" >&6
   11982 fi
   11983 ac_res=`eval echo '${'$as_ac_Header'}'`
   11984 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11985 echo "${ECHO_T}$ac_res" >&6; }
   11986 else
   11987   # Is the header compilable?
   11988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11990 cat >conftest.$ac_ext <<_ACEOF
   11991 /* confdefs.h.  */
   11992 _ACEOF
   11993 cat confdefs.h >>conftest.$ac_ext
   11994 cat >>conftest.$ac_ext <<_ACEOF
   11995 /* end confdefs.h.  */
   11996 $ac_includes_default
   11997 #include <$ac_header>
   11998 _ACEOF
   11999 rm -f conftest.$ac_objext
   12000 if { (ac_try="$ac_compile"
   12001 case "(($ac_try" in
   12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12003   *) ac_try_echo=$ac_try;;
   12004 esac
   12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12006   (eval "$ac_compile") 2>conftest.er1
   12007   ac_status=$?
   12008   grep -v '^ *+' conftest.er1 >conftest.err
   12009   rm -f conftest.er1
   12010   cat conftest.err >&5
   12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12012   (exit $ac_status); } && {
   12013 	 test -z "$ac_c_werror_flag" ||
   12014 	 test ! -s conftest.err
   12015        } && test -s conftest.$ac_objext; then
   12016   ac_header_compiler=yes
   12017 else
   12018   echo "$as_me: failed program was:" >&5
   12019 sed 's/^/| /' conftest.$ac_ext >&5
   12020 
   12021 	ac_header_compiler=no
   12022 fi
   12023 
   12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   12026 echo "${ECHO_T}$ac_header_compiler" >&6; }
   12027 
   12028 # Is the header present?
   12029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   12030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   12031 cat >conftest.$ac_ext <<_ACEOF
   12032 /* confdefs.h.  */
   12033 _ACEOF
   12034 cat confdefs.h >>conftest.$ac_ext
   12035 cat >>conftest.$ac_ext <<_ACEOF
   12036 /* end confdefs.h.  */
   12037 #include <$ac_header>
   12038 _ACEOF
   12039 if { (ac_try="$ac_cpp conftest.$ac_ext"
   12040 case "(($ac_try" in
   12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12042   *) ac_try_echo=$ac_try;;
   12043 esac
   12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   12046   ac_status=$?
   12047   grep -v '^ *+' conftest.er1 >conftest.err
   12048   rm -f conftest.er1
   12049   cat conftest.err >&5
   12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12051   (exit $ac_status); } >/dev/null && {
   12052 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   12053 	 test ! -s conftest.err
   12054        }; then
   12055   ac_header_preproc=yes
   12056 else
   12057   echo "$as_me: failed program was:" >&5
   12058 sed 's/^/| /' conftest.$ac_ext >&5
   12059 
   12060   ac_header_preproc=no
   12061 fi
   12062 
   12063 rm -f conftest.err conftest.$ac_ext
   12064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   12065 echo "${ECHO_T}$ac_header_preproc" >&6; }
   12066 
   12067 # So?  What about this header?
   12068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   12069   yes:no: )
   12070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   12071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   12072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   12073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   12074     ac_header_preproc=yes
   12075     ;;
   12076   no:yes:* )
   12077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   12078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   12079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   12080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   12081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   12082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   12083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   12084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   12085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   12086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   12087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   12088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   12089 
   12090     ;;
   12091 esac
   12092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   12093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   12094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12095   echo $ECHO_N "(cached) $ECHO_C" >&6
   12096 else
   12097   eval "$as_ac_Header=\$ac_header_preproc"
   12098 fi
   12099 ac_res=`eval echo '${'$as_ac_Header'}'`
   12100 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12101 echo "${ECHO_T}$ac_res" >&6; }
   12102 
   12103 fi
   12104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   12105   cat >>confdefs.h <<_ACEOF
   12106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12107 _ACEOF
   12108 
   12109     #
   12110     # OK, we have inttypes.h, but does it define those macros?
   12111     #
   12112     { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
   12113 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
   12114     cat >conftest.$ac_ext <<_ACEOF
   12115 
   12116 	/* confdefs.h.  */
   12117 _ACEOF
   12118 cat confdefs.h >>conftest.$ac_ext
   12119 cat >>conftest.$ac_ext <<_ACEOF
   12120 /* end confdefs.h.  */
   12121 
   12122 	    #include <inttypes.h>
   12123 	    #include <stdio.h>
   12124 	    #include <sys/types.h>
   12125 	    #ifdef HAVE_SYS_BITYPES_H
   12126 	    #include <sys/bitypes.h>
   12127 	    #endif
   12128 
   12129 	    main()
   12130 	    {
   12131 	      printf("%" PRId64 "\n", (u_int64_t)1);
   12132 	      printf("%" PRIo64 "\n", (u_int64_t)1);
   12133 	      printf("%" PRIx64 "\n", (u_int64_t)1);
   12134 	      printf("%" PRIu64 "\n", (u_int64_t)1);
   12135 	    }
   12136 
   12137 
   12138 _ACEOF
   12139 rm -f conftest.$ac_objext
   12140 if { (ac_try="$ac_compile"
   12141 case "(($ac_try" in
   12142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12143   *) ac_try_echo=$ac_try;;
   12144 esac
   12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12146   (eval "$ac_compile") 2>conftest.er1
   12147   ac_status=$?
   12148   grep -v '^ *+' conftest.er1 >conftest.err
   12149   rm -f conftest.er1
   12150   cat conftest.err >&5
   12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12152   (exit $ac_status); } && {
   12153 	 test -z "$ac_c_werror_flag" ||
   12154 	 test ! -s conftest.err
   12155        } && test -s conftest.$ac_objext; then
   12156 
   12157 	{ echo "$as_me:$LINENO: result: yes" >&5
   12158 echo "${ECHO_T}yes" >&6; }
   12159 	ac_lbl_inttypes_h_defines_formats=yes
   12160 
   12161 else
   12162   echo "$as_me: failed program was:" >&5
   12163 sed 's/^/| /' conftest.$ac_ext >&5
   12164 
   12165 
   12166 	{ echo "$as_me:$LINENO: result: no" >&5
   12167 echo "${ECHO_T}no" >&6; }
   12168 	ac_lbl_inttypes_h_defines_formats=no
   12169 
   12170 fi
   12171 
   12172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12173 
   12174 else
   12175 
   12176     #
   12177     # We don't have inttypes.h, so it obviously can't define those
   12178     # macros.
   12179     #
   12180     ac_lbl_inttypes_h_defines_formats=no
   12181 
   12182 fi
   12183 
   12184 done
   12185 
   12186 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
   12187 
   12188     { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
   12189 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
   12190     if test "$cross_compiling" = yes; then
   12191   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   12192 See \`config.log' for more details." >&5
   12193 echo "$as_me: error: cannot run test program while cross compiling
   12194 See \`config.log' for more details." >&2;}
   12195    { (exit 1); exit 1; }; }
   12196 else
   12197   cat >conftest.$ac_ext <<_ACEOF
   12198 
   12199 	/* confdefs.h.  */
   12200 _ACEOF
   12201 cat confdefs.h >>conftest.$ac_ext
   12202 cat >>conftest.$ac_ext <<_ACEOF
   12203 /* end confdefs.h.  */
   12204 
   12205 #	    ifdef HAVE_INTTYPES_H
   12206 	    #include <inttypes.h>
   12207 #	    endif
   12208 #	    ifdef HAVE_SYS_BITYPES_H
   12209             #include <sys/bitypes.h>
   12210 #	    endif
   12211 	    #include <stdio.h>
   12212 	    #include <sys/types.h>
   12213 
   12214 	    main()
   12215 	    {
   12216 	      u_int64_t t = 1;
   12217 	      char strbuf[16+1];
   12218 	      sprintf(strbuf, "%016lx", t << 32);
   12219 	      if (strcmp(strbuf, "0000000100000000") == 0)
   12220 		exit(0);
   12221 	      else
   12222 		exit(1);
   12223 	    }
   12224 
   12225 
   12226 _ACEOF
   12227 rm -f conftest$ac_exeext
   12228 if { (ac_try="$ac_link"
   12229 case "(($ac_try" in
   12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12231   *) ac_try_echo=$ac_try;;
   12232 esac
   12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12234   (eval "$ac_link") 2>&5
   12235   ac_status=$?
   12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   12238   { (case "(($ac_try" in
   12239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12240   *) ac_try_echo=$ac_try;;
   12241 esac
   12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12243   (eval "$ac_try") 2>&5
   12244   ac_status=$?
   12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12246   (exit $ac_status); }; }; then
   12247 
   12248 	cat >>confdefs.h <<\_ACEOF
   12249 #define PRId64 "ld"
   12250 _ACEOF
   12251 
   12252 	cat >>confdefs.h <<\_ACEOF
   12253 #define PRIo64 "lo"
   12254 _ACEOF
   12255 
   12256 	cat >>confdefs.h <<\_ACEOF
   12257 #define PRIx64 "lx"
   12258 _ACEOF
   12259 
   12260 	cat >>confdefs.h <<\_ACEOF
   12261 #define PRIu64 "lu"
   12262 _ACEOF
   12263 
   12264 	{ echo "$as_me:$LINENO: result: yes" >&5
   12265 echo "${ECHO_T}yes" >&6; }
   12266 
   12267 else
   12268   echo "$as_me: program exited with status $ac_status" >&5
   12269 echo "$as_me: failed program was:" >&5
   12270 sed 's/^/| /' conftest.$ac_ext >&5
   12271 
   12272 ( exit $ac_status )
   12273 
   12274 	{ echo "$as_me:$LINENO: result: no" >&5
   12275 echo "${ECHO_T}no" >&6; }
   12276 
   12277 
   12278     { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
   12279 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
   12280     if test "$cross_compiling" = yes; then
   12281   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   12282 See \`config.log' for more details." >&5
   12283 echo "$as_me: error: cannot run test program while cross compiling
   12284 See \`config.log' for more details." >&2;}
   12285    { (exit 1); exit 1; }; }
   12286 else
   12287   cat >conftest.$ac_ext <<_ACEOF
   12288 
   12289 	/* confdefs.h.  */
   12290 _ACEOF
   12291 cat confdefs.h >>conftest.$ac_ext
   12292 cat >>conftest.$ac_ext <<_ACEOF
   12293 /* end confdefs.h.  */
   12294 
   12295 #	    ifdef HAVE_INTTYPES_H
   12296 	    #include <inttypes.h>
   12297 #	    endif
   12298 #	    ifdef HAVE_SYS_BITYPES_H
   12299             #include <sys/bitypes.h>
   12300 #	    endif
   12301 	    #include <stdio.h>
   12302 	    #include <sys/types.h>
   12303 
   12304 	    main()
   12305 	    {
   12306 	      u_int64_t t = 1;
   12307 	      char strbuf[16+1];
   12308 	      sprintf(strbuf, "%016llx", t << 32);
   12309 	      if (strcmp(strbuf, "0000000100000000") == 0)
   12310 		exit(0);
   12311 	      else
   12312 		exit(1);
   12313 	    }
   12314 
   12315 
   12316 _ACEOF
   12317 rm -f conftest$ac_exeext
   12318 if { (ac_try="$ac_link"
   12319 case "(($ac_try" in
   12320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12321   *) ac_try_echo=$ac_try;;
   12322 esac
   12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12324   (eval "$ac_link") 2>&5
   12325   ac_status=$?
   12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   12328   { (case "(($ac_try" in
   12329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12330   *) ac_try_echo=$ac_try;;
   12331 esac
   12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12333   (eval "$ac_try") 2>&5
   12334   ac_status=$?
   12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12336   (exit $ac_status); }; }; then
   12337 
   12338 	cat >>confdefs.h <<\_ACEOF
   12339 #define PRId64 "lld"
   12340 _ACEOF
   12341 
   12342 	cat >>confdefs.h <<\_ACEOF
   12343 #define PRIo64 "llo"
   12344 _ACEOF
   12345 
   12346 	cat >>confdefs.h <<\_ACEOF
   12347 #define PRIx64 "llx"
   12348 _ACEOF
   12349 
   12350 	cat >>confdefs.h <<\_ACEOF
   12351 #define PRIu64 "llu"
   12352 _ACEOF
   12353 
   12354 	{ echo "$as_me:$LINENO: result: yes" >&5
   12355 echo "${ECHO_T}yes" >&6; }
   12356 
   12357 else
   12358   echo "$as_me: program exited with status $ac_status" >&5
   12359 echo "$as_me: failed program was:" >&5
   12360 sed 's/^/| /' conftest.$ac_ext >&5
   12361 
   12362 ( exit $ac_status )
   12363 
   12364 	{ echo "$as_me:$LINENO: result: no" >&5
   12365 echo "${ECHO_T}no" >&6; }
   12366 
   12367 
   12368     { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
   12369 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
   12370     if test "$cross_compiling" = yes; then
   12371   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   12372 See \`config.log' for more details." >&5
   12373 echo "$as_me: error: cannot run test program while cross compiling
   12374 See \`config.log' for more details." >&2;}
   12375    { (exit 1); exit 1; }; }
   12376 else
   12377   cat >conftest.$ac_ext <<_ACEOF
   12378 
   12379 	/* confdefs.h.  */
   12380 _ACEOF
   12381 cat confdefs.h >>conftest.$ac_ext
   12382 cat >>conftest.$ac_ext <<_ACEOF
   12383 /* end confdefs.h.  */
   12384 
   12385 #	    ifdef HAVE_INTTYPES_H
   12386 	    #include <inttypes.h>
   12387 #	    endif
   12388 #	    ifdef HAVE_SYS_BITYPES_H
   12389             #include <sys/bitypes.h>
   12390 #	    endif
   12391 	    #include <stdio.h>
   12392 	    #include <sys/types.h>
   12393 
   12394 	    main()
   12395 	    {
   12396 	      u_int64_t t = 1;
   12397 	      char strbuf[16+1];
   12398 	      sprintf(strbuf, "%016Lx", t << 32);
   12399 	      if (strcmp(strbuf, "0000000100000000") == 0)
   12400 		exit(0);
   12401 	      else
   12402 		exit(1);
   12403 	    }
   12404 
   12405 
   12406 _ACEOF
   12407 rm -f conftest$ac_exeext
   12408 if { (ac_try="$ac_link"
   12409 case "(($ac_try" in
   12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12411   *) ac_try_echo=$ac_try;;
   12412 esac
   12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12414   (eval "$ac_link") 2>&5
   12415   ac_status=$?
   12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   12418   { (case "(($ac_try" in
   12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12420   *) ac_try_echo=$ac_try;;
   12421 esac
   12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12423   (eval "$ac_try") 2>&5
   12424   ac_status=$?
   12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12426   (exit $ac_status); }; }; then
   12427 
   12428 	cat >>confdefs.h <<\_ACEOF
   12429 #define PRId64 "Ld"
   12430 _ACEOF
   12431 
   12432 	cat >>confdefs.h <<\_ACEOF
   12433 #define PRIo64 "Lo"
   12434 _ACEOF
   12435 
   12436 	cat >>confdefs.h <<\_ACEOF
   12437 #define PRIx64 "Lx"
   12438 _ACEOF
   12439 
   12440 	cat >>confdefs.h <<\_ACEOF
   12441 #define PRIu64 "Lu"
   12442 _ACEOF
   12443 
   12444 	{ echo "$as_me:$LINENO: result: yes" >&5
   12445 echo "${ECHO_T}yes" >&6; }
   12446 
   12447 else
   12448   echo "$as_me: program exited with status $ac_status" >&5
   12449 echo "$as_me: failed program was:" >&5
   12450 sed 's/^/| /' conftest.$ac_ext >&5
   12451 
   12452 ( exit $ac_status )
   12453 
   12454 	{ echo "$as_me:$LINENO: result: no" >&5
   12455 echo "${ECHO_T}no" >&6; }
   12456 
   12457 
   12458     { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
   12459 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
   12460     if test "$cross_compiling" = yes; then
   12461   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   12462 See \`config.log' for more details." >&5
   12463 echo "$as_me: error: cannot run test program while cross compiling
   12464 See \`config.log' for more details." >&2;}
   12465    { (exit 1); exit 1; }; }
   12466 else
   12467   cat >conftest.$ac_ext <<_ACEOF
   12468 
   12469 	/* confdefs.h.  */
   12470 _ACEOF
   12471 cat confdefs.h >>conftest.$ac_ext
   12472 cat >>conftest.$ac_ext <<_ACEOF
   12473 /* end confdefs.h.  */
   12474 
   12475 #	    ifdef HAVE_INTTYPES_H
   12476 	    #include <inttypes.h>
   12477 #	    endif
   12478 #	    ifdef HAVE_SYS_BITYPES_H
   12479             #include <sys/bitypes.h>
   12480 #	    endif
   12481 	    #include <stdio.h>
   12482 	    #include <sys/types.h>
   12483 
   12484 	    main()
   12485 	    {
   12486 	      u_int64_t t = 1;
   12487 	      char strbuf[16+1];
   12488 	      sprintf(strbuf, "%016qx", t << 32);
   12489 	      if (strcmp(strbuf, "0000000100000000") == 0)
   12490 		exit(0);
   12491 	      else
   12492 		exit(1);
   12493 	    }
   12494 
   12495 
   12496 _ACEOF
   12497 rm -f conftest$ac_exeext
   12498 if { (ac_try="$ac_link"
   12499 case "(($ac_try" in
   12500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12501   *) ac_try_echo=$ac_try;;
   12502 esac
   12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12504   (eval "$ac_link") 2>&5
   12505   ac_status=$?
   12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   12508   { (case "(($ac_try" in
   12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12510   *) ac_try_echo=$ac_try;;
   12511 esac
   12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12513   (eval "$ac_try") 2>&5
   12514   ac_status=$?
   12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12516   (exit $ac_status); }; }; then
   12517 
   12518 	cat >>confdefs.h <<\_ACEOF
   12519 #define PRId64 "qd"
   12520 _ACEOF
   12521 
   12522 	cat >>confdefs.h <<\_ACEOF
   12523 #define PRIo64 "qo"
   12524 _ACEOF
   12525 
   12526 	cat >>confdefs.h <<\_ACEOF
   12527 #define PRIx64 "qx"
   12528 _ACEOF
   12529 
   12530 	cat >>confdefs.h <<\_ACEOF
   12531 #define PRIu64 "qu"
   12532 _ACEOF
   12533 
   12534 	{ echo "$as_me:$LINENO: result: yes" >&5
   12535 echo "${ECHO_T}yes" >&6; }
   12536 
   12537 else
   12538   echo "$as_me: program exited with status $ac_status" >&5
   12539 echo "$as_me: failed program was:" >&5
   12540 sed 's/^/| /' conftest.$ac_ext >&5
   12541 
   12542 ( exit $ac_status )
   12543 
   12544 	{ echo "$as_me:$LINENO: result: no" >&5
   12545 echo "${ECHO_T}no" >&6; }
   12546 
   12547 	          { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
   12548 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
   12549    { (exit 1); exit 1; }; }
   12550 
   12551 
   12552 fi
   12553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   12554 fi
   12555 
   12556 
   12557 
   12558 
   12559 
   12560 fi
   12561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   12562 fi
   12563 
   12564 
   12565 
   12566 
   12567 
   12568 fi
   12569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   12570 fi
   12571 
   12572 
   12573 
   12574 
   12575 
   12576 fi
   12577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   12578 fi
   12579 
   12580 
   12581 
   12582 fi
   12583 
   12584 rm -f os-proto.h
   12585     if test "${LBL_CFLAGS+set}" = set; then
   12586 	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
   12587     fi
   12588     if test -f .devel ; then
   12589 	    if test "$GCC" = yes ; then
   12590 		    if test "${LBL_CFLAGS+set}" != set; then
   12591 			    if test "$ac_cv_prog_cc_g" = yes ; then
   12592 				    V_CCOPT="-g $V_CCOPT"
   12593 			    fi
   12594 			    V_CCOPT="$V_CCOPT -Wall"
   12595 			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
   12596 				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
   12597 			    fi
   12598 		    fi
   12599 	    else
   12600 		    case "$host_os" in
   12601 
   12602 		    irix6*)
   12603 			    V_CCOPT="$V_CCOPT -n32"
   12604 			    ;;
   12605 
   12606 		    *)
   12607 			    ;;
   12608 		    esac
   12609 	    fi
   12610 	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
   12611 	    name="lbl/os-$os.h"
   12612 	    if test -f $name ; then
   12613 		    ln -s $name os-proto.h
   12614 		    cat >>confdefs.h <<\_ACEOF
   12615 #define HAVE_OS_PROTO_H 1
   12616 _ACEOF
   12617 
   12618 	    else
   12619 		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
   12620 echo "$as_me: WARNING: can't find $name" >&2;}
   12621 	    fi
   12622     fi
   12623 
   12624 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
   12625 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
   12626     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
   12627   echo $ECHO_N "(cached) $ECHO_C" >&6
   12628 else
   12629   cat >conftest.$ac_ext <<_ACEOF
   12630 /* confdefs.h.  */
   12631 _ACEOF
   12632 cat confdefs.h >>conftest.$ac_ext
   12633 cat >>conftest.$ac_ext <<_ACEOF
   12634 /* end confdefs.h.  */
   12635 
   12636 #	include <sys/types.h>
   12637 #	include <sys/socket.h>
   12638 int
   12639 main ()
   12640 {
   12641 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
   12642   ;
   12643   return 0;
   12644 }
   12645 _ACEOF
   12646 rm -f conftest.$ac_objext
   12647 if { (ac_try="$ac_compile"
   12648 case "(($ac_try" in
   12649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12650   *) ac_try_echo=$ac_try;;
   12651 esac
   12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12653   (eval "$ac_compile") 2>conftest.er1
   12654   ac_status=$?
   12655   grep -v '^ *+' conftest.er1 >conftest.err
   12656   rm -f conftest.er1
   12657   cat conftest.err >&5
   12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12659   (exit $ac_status); } && {
   12660 	 test -z "$ac_c_werror_flag" ||
   12661 	 test ! -s conftest.err
   12662        } && test -s conftest.$ac_objext; then
   12663   ac_cv_lbl_sockaddr_has_sa_len=yes
   12664 else
   12665   echo "$as_me: failed program was:" >&5
   12666 sed 's/^/| /' conftest.$ac_ext >&5
   12667 
   12668 	ac_cv_lbl_sockaddr_has_sa_len=no
   12669 fi
   12670 
   12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12672 fi
   12673 
   12674     { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
   12675 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
   12676     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
   12677 	    cat >>confdefs.h <<\_ACEOF
   12678 #define HAVE_SOCKADDR_SA_LEN 1
   12679 _ACEOF
   12680 
   12681     fi
   12682 
   12683 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
   12684 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
   12685     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
   12686   echo $ECHO_N "(cached) $ECHO_C" >&6
   12687 else
   12688   case "$host_cpu" in
   12689 
   12690 	#
   12691 	# These are CPU types where:
   12692 	#
   12693 	#	the CPU faults on an unaligned access, but at least some
   12694 	#	OSes that support that CPU catch the fault and simulate
   12695 	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
   12696 	#	the simulation is slow, so we don't want to use it;
   12697 	#
   12698 	#	the CPU, I infer (from the old
   12699 	#
   12700 	# XXX: should also check that they don't do weird things (like on arm)
   12701 	#
   12702 	#	comment) doesn't fault on unaligned accesses, but doesn't
   12703 	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
   12704 	#
   12705 	#	for whatever reason, the test program doesn't work
   12706 	#	(this has been claimed to be the case for several of those
   12707 	#	CPUs - I don't know what the problem is; the problem
   12708 	#	was reported as "the test program dumps core" for SuperH,
   12709 	#	but that's what the test program is *supposed* to do -
   12710 	#	it dumps core before it writes anything, so the test
   12711 	#	for an empty output file should find an empty output
   12712 	#	file and conclude that unaligned accesses don't work).
   12713 	#
   12714 	# This run-time test won't work if you're cross-compiling, so
   12715 	# in order to support cross-compiling for a particular CPU,
   12716 	# we have to wire in the list of CPU types anyway, as far as
   12717 	# I know, so perhaps we should just have a set of CPUs on
   12718 	# which we know it doesn't work, a set of CPUs on which we
   12719 	# know it does work, and have the script just fail on other
   12720 	# cpu types and update it when such a failure occurs.
   12721 	#
   12722 	alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
   12723 		ac_cv_lbl_unaligned_fail=yes
   12724 		;;
   12725 
   12726 	*)
   12727 		cat >conftest.c <<EOF
   12728 #		include <sys/types.h>
   12729 #		include <sys/wait.h>
   12730 #		include <stdio.h>
   12731 		unsigned char a[5] = { 1, 2, 3, 4, 5 };
   12732 		main() {
   12733 		unsigned int i;
   12734 		pid_t pid;
   12735 		int status;
   12736 		/* avoid "core dumped" message */
   12737 		pid = fork();
   12738 		if (pid <  0)
   12739 			exit(2);
   12740 		if (pid > 0) {
   12741 			/* parent */
   12742 			pid = waitpid(pid, &status, 0);
   12743 			if (pid < 0)
   12744 				exit(3);
   12745 			exit(!WIFEXITED(status));
   12746 		}
   12747 		/* child */
   12748 		i = *(unsigned int *)&a[1];
   12749 		printf("%d\n", i);
   12750 		exit(0);
   12751 		}
   12752 EOF
   12753 		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
   12754 		    conftest.c $LIBS >/dev/null 2>&1
   12755 		if test ! -x conftest ; then
   12756 						ac_cv_lbl_unaligned_fail=yes
   12757 		else
   12758 			./conftest >conftest.out
   12759 			if test ! -s conftest.out ; then
   12760 				ac_cv_lbl_unaligned_fail=yes
   12761 			else
   12762 				ac_cv_lbl_unaligned_fail=no
   12763 			fi
   12764 		fi
   12765 		rm -f conftest* core core.conftest
   12766 		;;
   12767 	esac
   12768 fi
   12769 
   12770     { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
   12771 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
   12772     if test $ac_cv_lbl_unaligned_fail = yes ; then
   12773 	    cat >>confdefs.h <<\_ACEOF
   12774 #define LBL_ALIGN 1
   12775 _ACEOF
   12776 
   12777     fi
   12778 
   12779 
   12780 	{ echo "$as_me:$LINENO: checking for h_errno" >&5
   12781 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
   12782 	if test "${ac_cv_var_h_errno+set}" = set; then
   12783   echo $ECHO_N "(cached) $ECHO_C" >&6
   12784 else
   12785   cat >conftest.$ac_ext <<_ACEOF
   12786 /* confdefs.h.  */
   12787 _ACEOF
   12788 cat confdefs.h >>conftest.$ac_ext
   12789 cat >>conftest.$ac_ext <<_ACEOF
   12790 /* end confdefs.h.  */
   12791 
   12792 #		include <sys/types.h>
   12793 #		include <netdb.h>
   12794 int
   12795 main ()
   12796 {
   12797 int foo = h_errno;
   12798   ;
   12799   return 0;
   12800 }
   12801 _ACEOF
   12802 rm -f conftest.$ac_objext
   12803 if { (ac_try="$ac_compile"
   12804 case "(($ac_try" in
   12805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12806   *) ac_try_echo=$ac_try;;
   12807 esac
   12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12809   (eval "$ac_compile") 2>conftest.er1
   12810   ac_status=$?
   12811   grep -v '^ *+' conftest.er1 >conftest.err
   12812   rm -f conftest.er1
   12813   cat conftest.err >&5
   12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12815   (exit $ac_status); } && {
   12816 	 test -z "$ac_c_werror_flag" ||
   12817 	 test ! -s conftest.err
   12818        } && test -s conftest.$ac_objext; then
   12819   ac_cv_var_h_errno=yes
   12820 else
   12821   echo "$as_me: failed program was:" >&5
   12822 sed 's/^/| /' conftest.$ac_ext >&5
   12823 
   12824 	ac_cv_var_h_errno=no
   12825 fi
   12826 
   12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12828 fi
   12829 
   12830 	{ echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
   12831 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
   12832 	if test "$ac_cv_var_h_errno" = "yes"; then
   12833 		cat >>confdefs.h <<\_ACEOF
   12834 #define HAVE_H_ERRNO 1
   12835 _ACEOF
   12836 
   12837 	fi
   12838 
   12839 
   12840 
   12841 # Check whether --with-crypto was given.
   12842 if test "${with_crypto+set}" = set; then
   12843   withval=$with_crypto;
   12844 else
   12845 
   12846 { echo "$as_me:$LINENO: checking for SSLeay" >&5
   12847 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6; }
   12848 ac_cv_ssleay_path=no
   12849 incdir=no
   12850 
   12851 #
   12852 # If Xprefix is set in the environment, use that value.
   12853 # XXX - this should arguably be done by having --with-crypto take an
   12854 # optional argument, and have that argument be used to set Xprefix
   12855 # if present.
   12856 #
   12857 if test -z "$Xprefix"; then
   12858 	Xprefix=`eval echo $prefix`
   12859 fi
   12860 
   12861 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
   12862 	#
   12863 	# XXX - is there a better way to check if a given library is
   12864 	# in a given directory than checking each of the possible
   12865 	# shared library suffixes?
   12866 	#
   12867 	# Are there any other suffixes we need to look for?  Do we have to
   12868 	# worry about ".so.{version}"?
   12869 	#
   12870 	# Or should we just look for "libcrypto.*"?
   12871 	#
   12872 	if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
   12873 			          -f $dir/lib/libcrypto.so -o \
   12874 			          -f $dir/lib/libcrypto.sl -o \
   12875 				  -f $dir/lib/libcrypto.dylib \); then
   12876 		ac_cv_ssleay_path=$dir
   12877 	fi
   12878 	if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
   12879 		incdir="-I$dir/include"
   12880 	fi
   12881 	if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
   12882 		break;
   12883 	else
   12884 		ac_cv_ssleay_path=no
   12885 		incdir=no
   12886 	fi
   12887 done
   12888 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
   12889 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
   12890 if test "$ac_cv_ssleay_path" != no; then
   12891 	V_INCLS="$V_INCLS $incdir"
   12892 	LDFLAGS="-L$dir/lib $LDFLAGS"
   12893 	if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
   12894 		LIBS="$LIBS -lRSAglue"
   12895 	fi
   12896 	if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
   12897 		LIBS="$LIBS -lrsaref"
   12898 	fi
   12899 
   12900 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
   12901 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
   12902 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
   12903   echo $ECHO_N "(cached) $ECHO_C" >&6
   12904 else
   12905   ac_check_lib_save_LIBS=$LIBS
   12906 LIBS="-lcrypto  $LIBS"
   12907 cat >conftest.$ac_ext <<_ACEOF
   12908 /* confdefs.h.  */
   12909 _ACEOF
   12910 cat confdefs.h >>conftest.$ac_ext
   12911 cat >>conftest.$ac_ext <<_ACEOF
   12912 /* end confdefs.h.  */
   12913 
   12914 /* Override any GCC internal prototype to avoid an error.
   12915    Use char because int might match the return type of a GCC
   12916    builtin and then its argument prototype would still apply.  */
   12917 #ifdef __cplusplus
   12918 extern "C"
   12919 #endif
   12920 char DES_cbc_encrypt ();
   12921 int
   12922 main ()
   12923 {
   12924 return DES_cbc_encrypt ();
   12925   ;
   12926   return 0;
   12927 }
   12928 _ACEOF
   12929 rm -f conftest.$ac_objext conftest$ac_exeext
   12930 if { (ac_try="$ac_link"
   12931 case "(($ac_try" in
   12932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12933   *) ac_try_echo=$ac_try;;
   12934 esac
   12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12936   (eval "$ac_link") 2>conftest.er1
   12937   ac_status=$?
   12938   grep -v '^ *+' conftest.er1 >conftest.err
   12939   rm -f conftest.er1
   12940   cat conftest.err >&5
   12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12942   (exit $ac_status); } && {
   12943 	 test -z "$ac_c_werror_flag" ||
   12944 	 test ! -s conftest.err
   12945        } && test -s conftest$ac_exeext &&
   12946        $as_test_x conftest$ac_exeext; then
   12947   ac_cv_lib_crypto_DES_cbc_encrypt=yes
   12948 else
   12949   echo "$as_me: failed program was:" >&5
   12950 sed 's/^/| /' conftest.$ac_ext >&5
   12951 
   12952 	ac_cv_lib_crypto_DES_cbc_encrypt=no
   12953 fi
   12954 
   12955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12956       conftest$ac_exeext conftest.$ac_ext
   12957 LIBS=$ac_check_lib_save_LIBS
   12958 fi
   12959 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
   12960 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
   12961 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
   12962   cat >>confdefs.h <<_ACEOF
   12963 #define HAVE_LIBCRYPTO 1
   12964 _ACEOF
   12965 
   12966   LIBS="-lcrypto $LIBS"
   12967 
   12968 fi
   12969 
   12970 
   12971 	CPPFLAGS="$CPPFLAGS $V_INCLS"
   12972 
   12973 for ac_header in openssl/evp.h
   12974 do
   12975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12977   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   12978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   12979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12980   echo $ECHO_N "(cached) $ECHO_C" >&6
   12981 fi
   12982 ac_res=`eval echo '${'$as_ac_Header'}'`
   12983 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12984 echo "${ECHO_T}$ac_res" >&6; }
   12985 else
   12986   # Is the header compilable?
   12987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   12988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   12989 cat >conftest.$ac_ext <<_ACEOF
   12990 /* confdefs.h.  */
   12991 _ACEOF
   12992 cat confdefs.h >>conftest.$ac_ext
   12993 cat >>conftest.$ac_ext <<_ACEOF
   12994 /* end confdefs.h.  */
   12995 $ac_includes_default
   12996 #include <$ac_header>
   12997 _ACEOF
   12998 rm -f conftest.$ac_objext
   12999 if { (ac_try="$ac_compile"
   13000 case "(($ac_try" in
   13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13002   *) ac_try_echo=$ac_try;;
   13003 esac
   13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13005   (eval "$ac_compile") 2>conftest.er1
   13006   ac_status=$?
   13007   grep -v '^ *+' conftest.er1 >conftest.err
   13008   rm -f conftest.er1
   13009   cat conftest.err >&5
   13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13011   (exit $ac_status); } && {
   13012 	 test -z "$ac_c_werror_flag" ||
   13013 	 test ! -s conftest.err
   13014        } && test -s conftest.$ac_objext; then
   13015   ac_header_compiler=yes
   13016 else
   13017   echo "$as_me: failed program was:" >&5
   13018 sed 's/^/| /' conftest.$ac_ext >&5
   13019 
   13020 	ac_header_compiler=no
   13021 fi
   13022 
   13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13025 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13026 
   13027 # Is the header present?
   13028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   13030 cat >conftest.$ac_ext <<_ACEOF
   13031 /* confdefs.h.  */
   13032 _ACEOF
   13033 cat confdefs.h >>conftest.$ac_ext
   13034 cat >>conftest.$ac_ext <<_ACEOF
   13035 /* end confdefs.h.  */
   13036 #include <$ac_header>
   13037 _ACEOF
   13038 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13039 case "(($ac_try" in
   13040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13041   *) ac_try_echo=$ac_try;;
   13042 esac
   13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13045   ac_status=$?
   13046   grep -v '^ *+' conftest.er1 >conftest.err
   13047   rm -f conftest.er1
   13048   cat conftest.err >&5
   13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13050   (exit $ac_status); } >/dev/null && {
   13051 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13052 	 test ! -s conftest.err
   13053        }; then
   13054   ac_header_preproc=yes
   13055 else
   13056   echo "$as_me: failed program was:" >&5
   13057 sed 's/^/| /' conftest.$ac_ext >&5
   13058 
   13059   ac_header_preproc=no
   13060 fi
   13061 
   13062 rm -f conftest.err conftest.$ac_ext
   13063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13064 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13065 
   13066 # So?  What about this header?
   13067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13068   yes:no: )
   13069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13073     ac_header_preproc=yes
   13074     ;;
   13075   no:yes:* )
   13076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13088 
   13089     ;;
   13090 esac
   13091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13094   echo $ECHO_N "(cached) $ECHO_C" >&6
   13095 else
   13096   eval "$as_ac_Header=\$ac_header_preproc"
   13097 fi
   13098 ac_res=`eval echo '${'$as_ac_Header'}'`
   13099 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13100 echo "${ECHO_T}$ac_res" >&6; }
   13101 
   13102 fi
   13103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13104   cat >>confdefs.h <<_ACEOF
   13105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13106 _ACEOF
   13107 
   13108 fi
   13109 
   13110 done
   13111 
   13112 fi
   13113 
   13114 fi
   13115 
   13116 
   13117 if test "$missing_includes" = "yes"; then
   13118 	CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
   13119 	V_INCLS="$V_INCLS -I\$(srcdir)/missing"
   13120 fi
   13121 
   13122 
   13123 
   13124 
   13125 
   13126 
   13127 
   13128 
   13129 # Find a good install program.  We prefer a C program (faster),
   13130 # so one script is as good as another.  But avoid the broken or
   13131 # incompatible versions:
   13132 # SysV /etc/install, /usr/sbin/install
   13133 # SunOS /usr/etc/install
   13134 # IRIX /sbin/install
   13135 # AIX /bin/install
   13136 # AmigaOS /C/install, which installs bootblocks on floppy discs
   13137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   13138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   13139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   13140 # OS/2's system install, which has a completely different semantic
   13141 # ./install, which can be erroneously created by make from ./install.sh.
   13142 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   13143 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   13144 if test -z "$INSTALL"; then
   13145 if test "${ac_cv_path_install+set}" = set; then
   13146   echo $ECHO_N "(cached) $ECHO_C" >&6
   13147 else
   13148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13149 for as_dir in $PATH
   13150 do
   13151   IFS=$as_save_IFS
   13152   test -z "$as_dir" && as_dir=.
   13153   # Account for people who put trailing slashes in PATH elements.
   13154 case $as_dir/ in
   13155   ./ | .// | /cC/* | \
   13156   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   13157   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   13158   /usr/ucb/* ) ;;
   13159   *)
   13160     # OSF1 and SCO ODT 3.0 have their own names for install.
   13161     # Don't use installbsd from OSF since it installs stuff as root
   13162     # by default.
   13163     for ac_prog in ginstall scoinst install; do
   13164       for ac_exec_ext in '' $ac_executable_extensions; do
   13165 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   13166 	  if test $ac_prog = install &&
   13167 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   13168 	    # AIX install.  It has an incompatible calling convention.
   13169 	    :
   13170 	  elif test $ac_prog = install &&
   13171 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   13172 	    # program-specific install script used by HP pwplus--don't use.
   13173 	    :
   13174 	  else
   13175 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   13176 	    break 3
   13177 	  fi
   13178 	fi
   13179       done
   13180     done
   13181     ;;
   13182 esac
   13183 done
   13184 IFS=$as_save_IFS
   13185 
   13186 
   13187 fi
   13188   if test "${ac_cv_path_install+set}" = set; then
   13189     INSTALL=$ac_cv_path_install
   13190   else
   13191     # As a last resort, use the slow shell script.  Don't cache a
   13192     # value for INSTALL within a source directory, because that will
   13193     # break other packages using the cache if that directory is
   13194     # removed, or if the value is a relative name.
   13195     INSTALL=$ac_install_sh
   13196   fi
   13197 fi
   13198 { echo "$as_me:$LINENO: result: $INSTALL" >&5
   13199 echo "${ECHO_T}$INSTALL" >&6; }
   13200 
   13201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   13202 # It thinks the first close brace ends the variable substitution.
   13203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   13204 
   13205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   13206 
   13207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   13208 
   13209 
   13210 ac_config_headers="$ac_config_headers config.h"
   13211 
   13212 
   13213 ac_config_commands="$ac_config_commands default-1"
   13214 
   13215 ac_config_files="$ac_config_files Makefile"
   13216 
   13217 cat >confcache <<\_ACEOF
   13218 # This file is a shell script that caches the results of configure
   13219 # tests run on this system so they can be shared between configure
   13220 # scripts and configure runs, see configure's option --config-cache.
   13221 # It is not useful on other systems.  If it contains results you don't
   13222 # want to keep, you may remove or edit it.
   13223 #
   13224 # config.status only pays attention to the cache file if you give it
   13225 # the --recheck option to rerun configure.
   13226 #
   13227 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   13228 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   13229 # following values.
   13230 
   13231 _ACEOF
   13232 
   13233 # The following way of writing the cache mishandles newlines in values,
   13234 # but we know of no workaround that is simple, portable, and efficient.
   13235 # So, we kill variables containing newlines.
   13236 # Ultrix sh set writes to stderr and can't be redirected directly,
   13237 # and sets the high bit in the cache file unless we assign to the vars.
   13238 (
   13239   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   13240     eval ac_val=\$$ac_var
   13241     case $ac_val in #(
   13242     *${as_nl}*)
   13243       case $ac_var in #(
   13244       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   13245 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   13246       esac
   13247       case $ac_var in #(
   13248       _ | IFS | as_nl) ;; #(
   13249       *) $as_unset $ac_var ;;
   13250       esac ;;
   13251     esac
   13252   done
   13253 
   13254   (set) 2>&1 |
   13255     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   13256     *${as_nl}ac_space=\ *)
   13257       # `set' does not quote correctly, so add quotes (double-quote
   13258       # substitution turns \\\\ into \\, and sed turns \\ into \).
   13259       sed -n \
   13260 	"s/'/'\\\\''/g;
   13261 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   13262       ;; #(
   13263     *)
   13264       # `set' quotes correctly as required by POSIX, so do not add quotes.
   13265       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   13266       ;;
   13267     esac |
   13268     sort
   13269 ) |
   13270   sed '
   13271      /^ac_cv_env_/b end
   13272      t clear
   13273      :clear
   13274      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   13275      t end
   13276      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   13277      :end' >>confcache
   13278 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   13279   if test -w "$cache_file"; then
   13280     test "x$cache_file" != "x/dev/null" &&
   13281       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
   13282 echo "$as_me: updating cache $cache_file" >&6;}
   13283     cat confcache >$cache_file
   13284   else
   13285     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   13286 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   13287   fi
   13288 fi
   13289 rm -f confcache
   13290 
   13291 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   13292 # Let make expand exec_prefix.
   13293 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   13294 
   13295 DEFS=-DHAVE_CONFIG_H
   13296 
   13297 ac_libobjs=
   13298 ac_ltlibobjs=
   13299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   13300   # 1. Remove the extension, and $U if already installed.
   13301   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   13302   ac_i=`echo "$ac_i" | sed "$ac_script"`
   13303   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   13304   #    will be set to the directory where LIBOBJS objects are built.
   13305   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   13306   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   13307 done
   13308 LIBOBJS=$ac_libobjs
   13309 
   13310 LTLIBOBJS=$ac_ltlibobjs
   13311 
   13312 
   13313 
   13314 : ${CONFIG_STATUS=./config.status}
   13315 ac_clean_files_save=$ac_clean_files
   13316 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   13317 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   13318 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   13319 cat >$CONFIG_STATUS <<_ACEOF
   13320 #! $SHELL
   13321 # Generated by $as_me.
   13322 # Run this file to recreate the current configuration.
   13323 # Compiler output produced by configure, useful for debugging
   13324 # configure, is in config.log if it exists.
   13325 
   13326 debug=false
   13327 ac_cs_recheck=false
   13328 ac_cs_silent=false
   13329 SHELL=\${CONFIG_SHELL-$SHELL}
   13330 _ACEOF
   13331 
   13332 cat >>$CONFIG_STATUS <<\_ACEOF
   13333 ## --------------------- ##
   13334 ## M4sh Initialization.  ##
   13335 ## --------------------- ##
   13336 
   13337 # Be more Bourne compatible
   13338 DUALCASE=1; export DUALCASE # for MKS sh
   13339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   13340   emulate sh
   13341   NULLCMD=:
   13342   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   13343   # is contrary to our usage.  Disable this feature.
   13344   alias -g '${1+"$@"}'='"$@"'
   13345   setopt NO_GLOB_SUBST
   13346 else
   13347   case `(set -o) 2>/dev/null` in
   13348   *posix*) set -o posix ;;
   13349 esac
   13350 
   13351 fi
   13352 
   13353 
   13354 
   13355 
   13356 # PATH needs CR
   13357 # Avoid depending upon Character Ranges.
   13358 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   13359 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   13360 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   13361 as_cr_digits='0123456789'
   13362 as_cr_alnum=$as_cr_Letters$as_cr_digits
   13363 
   13364 # The user is always right.
   13365 if test "${PATH_SEPARATOR+set}" != set; then
   13366   echo "#! /bin/sh" >conf$$.sh
   13367   echo  "exit 0"   >>conf$$.sh
   13368   chmod +x conf$$.sh
   13369   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   13370     PATH_SEPARATOR=';'
   13371   else
   13372     PATH_SEPARATOR=:
   13373   fi
   13374   rm -f conf$$.sh
   13375 fi
   13376 
   13377 # Support unset when possible.
   13378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   13379   as_unset=unset
   13380 else
   13381   as_unset=false
   13382 fi
   13383 
   13384 
   13385 # IFS
   13386 # We need space, tab and new line, in precisely that order.  Quoting is
   13387 # there to prevent editors from complaining about space-tab.
   13388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   13389 # splitting by setting IFS to empty value.)
   13390 as_nl='
   13391 '
   13392 IFS=" ""	$as_nl"
   13393 
   13394 # Find who we are.  Look in the path if we contain no directory separator.
   13395 case $0 in
   13396   *[\\/]* ) as_myself=$0 ;;
   13397   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13398 for as_dir in $PATH
   13399 do
   13400   IFS=$as_save_IFS
   13401   test -z "$as_dir" && as_dir=.
   13402   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   13403 done
   13404 IFS=$as_save_IFS
   13405 
   13406      ;;
   13407 esac
   13408 # We did not find ourselves, most probably we were run as `sh COMMAND'
   13409 # in which case we are not to be found in the path.
   13410 if test "x$as_myself" = x; then
   13411   as_myself=$0
   13412 fi
   13413 if test ! -f "$as_myself"; then
   13414   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   13415   { (exit 1); exit 1; }
   13416 fi
   13417 
   13418 # Work around bugs in pre-3.0 UWIN ksh.
   13419 for as_var in ENV MAIL MAILPATH
   13420 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   13421 done
   13422 PS1='$ '
   13423 PS2='> '
   13424 PS4='+ '
   13425 
   13426 # NLS nuisances.
   13427 for as_var in \
   13428   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   13429   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   13430   LC_TELEPHONE LC_TIME
   13431 do
   13432   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   13433     eval $as_var=C; export $as_var
   13434   else
   13435     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   13436   fi
   13437 done
   13438 
   13439 # Required to use basename.
   13440 if expr a : '\(a\)' >/dev/null 2>&1 &&
   13441    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   13442   as_expr=expr
   13443 else
   13444   as_expr=false
   13445 fi
   13446 
   13447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   13448   as_basename=basename
   13449 else
   13450   as_basename=false
   13451 fi
   13452 
   13453 
   13454 # Name of the executable.
   13455 as_me=`$as_basename -- "$0" ||
   13456 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   13457 	 X"$0" : 'X\(//\)$' \| \
   13458 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   13459 echo X/"$0" |
   13460     sed '/^.*\/\([^/][^/]*\)\/*$/{
   13461 	    s//\1/
   13462 	    q
   13463 	  }
   13464 	  /^X\/\(\/\/\)$/{
   13465 	    s//\1/
   13466 	    q
   13467 	  }
   13468 	  /^X\/\(\/\).*/{
   13469 	    s//\1/
   13470 	    q
   13471 	  }
   13472 	  s/.*/./; q'`
   13473 
   13474 # CDPATH.
   13475 $as_unset CDPATH
   13476 
   13477 
   13478 
   13479   as_lineno_1=$LINENO
   13480   as_lineno_2=$LINENO
   13481   test "x$as_lineno_1" != "x$as_lineno_2" &&
   13482   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   13483 
   13484   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   13485   # uniformly replaced by the line number.  The first 'sed' inserts a
   13486   # line-number line after each line using $LINENO; the second 'sed'
   13487   # does the real work.  The second script uses 'N' to pair each
   13488   # line-number line with the line containing $LINENO, and appends
   13489   # trailing '-' during substitution so that $LINENO is not a special
   13490   # case at line end.
   13491   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   13492   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   13493   # E. McMahon (1931-1989) for sed's syntax.  :-)
   13494   sed -n '
   13495     p
   13496     /[$]LINENO/=
   13497   ' <$as_myself |
   13498     sed '
   13499       s/[$]LINENO.*/&-/
   13500       t lineno
   13501       b
   13502       :lineno
   13503       N
   13504       :loop
   13505       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   13506       t loop
   13507       s/-\n.*//
   13508     ' >$as_me.lineno &&
   13509   chmod +x "$as_me.lineno" ||
   13510     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   13511    { (exit 1); exit 1; }; }
   13512 
   13513   # Don't try to exec as it changes $[0], causing all sort of problems
   13514   # (the dirname of $[0] is not the place where we might find the
   13515   # original and so on.  Autoconf is especially sensitive to this).
   13516   . "./$as_me.lineno"
   13517   # Exit status is that of the last command.
   13518   exit
   13519 }
   13520 
   13521 
   13522 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   13523   as_dirname=dirname
   13524 else
   13525   as_dirname=false
   13526 fi
   13527 
   13528 ECHO_C= ECHO_N= ECHO_T=
   13529 case `echo -n x` in
   13530 -n*)
   13531   case `echo 'x\c'` in
   13532   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   13533   *)   ECHO_C='\c';;
   13534   esac;;
   13535 *)
   13536   ECHO_N='-n';;
   13537 esac
   13538 
   13539 if expr a : '\(a\)' >/dev/null 2>&1 &&
   13540    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   13541   as_expr=expr
   13542 else
   13543   as_expr=false
   13544 fi
   13545 
   13546 rm -f conf$$ conf$$.exe conf$$.file
   13547 if test -d conf$$.dir; then
   13548   rm -f conf$$.dir/conf$$.file
   13549 else
   13550   rm -f conf$$.dir
   13551   mkdir conf$$.dir
   13552 fi
   13553 echo >conf$$.file
   13554 if ln -s conf$$.file conf$$ 2>/dev/null; then
   13555   as_ln_s='ln -s'
   13556   # ... but there are two gotchas:
   13557   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   13558   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   13559   # In both cases, we have to default to `cp -p'.
   13560   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   13561     as_ln_s='cp -p'
   13562 elif ln conf$$.file conf$$ 2>/dev/null; then
   13563   as_ln_s=ln
   13564 else
   13565   as_ln_s='cp -p'
   13566 fi
   13567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   13568 rmdir conf$$.dir 2>/dev/null
   13569 
   13570 if mkdir -p . 2>/dev/null; then
   13571   as_mkdir_p=:
   13572 else
   13573   test -d ./-p && rmdir ./-p
   13574   as_mkdir_p=false
   13575 fi
   13576 
   13577 if test -x / >/dev/null 2>&1; then
   13578   as_test_x='test -x'
   13579 else
   13580   if ls -dL / >/dev/null 2>&1; then
   13581     as_ls_L_option=L
   13582   else
   13583     as_ls_L_option=
   13584   fi
   13585   as_test_x='
   13586     eval sh -c '\''
   13587       if test -d "$1"; then
   13588         test -d "$1/.";
   13589       else
   13590 	case $1 in
   13591         -*)set "./$1";;
   13592 	esac;
   13593 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   13594 	???[sx]*):;;*)false;;esac;fi
   13595     '\'' sh
   13596   '
   13597 fi
   13598 as_executable_p=$as_test_x
   13599 
   13600 # Sed expression to map a string onto a valid CPP name.
   13601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   13602 
   13603 # Sed expression to map a string onto a valid variable name.
   13604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   13605 
   13606 
   13607 exec 6>&1
   13608 
   13609 # Save the log message, to keep $[0] and so on meaningful, and to
   13610 # report actual input values of CONFIG_FILES etc. instead of their
   13611 # values after options handling.
   13612 ac_log="
   13613 This file was extended by $as_me, which was
   13614 generated by GNU Autoconf 2.61.  Invocation command line was
   13615 
   13616   CONFIG_FILES    = $CONFIG_FILES
   13617   CONFIG_HEADERS  = $CONFIG_HEADERS
   13618   CONFIG_LINKS    = $CONFIG_LINKS
   13619   CONFIG_COMMANDS = $CONFIG_COMMANDS
   13620   $ $0 $@
   13621 
   13622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   13623 "
   13624 
   13625 _ACEOF
   13626 
   13627 cat >>$CONFIG_STATUS <<_ACEOF
   13628 # Files that config.status was made for.
   13629 config_files="$ac_config_files"
   13630 config_headers="$ac_config_headers"
   13631 config_commands="$ac_config_commands"
   13632 
   13633 _ACEOF
   13634 
   13635 cat >>$CONFIG_STATUS <<\_ACEOF
   13636 ac_cs_usage="\
   13637 \`$as_me' instantiates files from templates according to the
   13638 current configuration.
   13639 
   13640 Usage: $0 [OPTIONS] [FILE]...
   13641 
   13642   -h, --help       print this help, then exit
   13643   -V, --version    print version number and configuration settings, then exit
   13644   -q, --quiet      do not print progress messages
   13645   -d, --debug      don't remove temporary files
   13646       --recheck    update $as_me by reconfiguring in the same conditions
   13647   --file=FILE[:TEMPLATE]
   13648 		   instantiate the configuration file FILE
   13649   --header=FILE[:TEMPLATE]
   13650 		   instantiate the configuration header FILE
   13651 
   13652 Configuration files:
   13653 $config_files
   13654 
   13655 Configuration headers:
   13656 $config_headers
   13657 
   13658 Configuration commands:
   13659 $config_commands
   13660 
   13661 Report bugs to <bug-autoconf (at] gnu.org>."
   13662 
   13663 _ACEOF
   13664 cat >>$CONFIG_STATUS <<_ACEOF
   13665 ac_cs_version="\\
   13666 config.status
   13667 configured by $0, generated by GNU Autoconf 2.61,
   13668   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   13669 
   13670 Copyright (C) 2006 Free Software Foundation, Inc.
   13671 This config.status script is free software; the Free Software Foundation
   13672 gives unlimited permission to copy, distribute and modify it."
   13673 
   13674 ac_pwd='$ac_pwd'
   13675 srcdir='$srcdir'
   13676 INSTALL='$INSTALL'
   13677 _ACEOF
   13678 
   13679 cat >>$CONFIG_STATUS <<\_ACEOF
   13680 # If no file are specified by the user, then we need to provide default
   13681 # value.  By we need to know if files were specified by the user.
   13682 ac_need_defaults=:
   13683 while test $# != 0
   13684 do
   13685   case $1 in
   13686   --*=*)
   13687     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   13688     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   13689     ac_shift=:
   13690     ;;
   13691   *)
   13692     ac_option=$1
   13693     ac_optarg=$2
   13694     ac_shift=shift
   13695     ;;
   13696   esac
   13697 
   13698   case $ac_option in
   13699   # Handling of the options.
   13700   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   13701     ac_cs_recheck=: ;;
   13702   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   13703     echo "$ac_cs_version"; exit ;;
   13704   --debug | --debu | --deb | --de | --d | -d )
   13705     debug=: ;;
   13706   --file | --fil | --fi | --f )
   13707     $ac_shift
   13708     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   13709     ac_need_defaults=false;;
   13710   --header | --heade | --head | --hea )
   13711     $ac_shift
   13712     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   13713     ac_need_defaults=false;;
   13714   --he | --h)
   13715     # Conflict between --help and --header
   13716     { echo "$as_me: error: ambiguous option: $1
   13717 Try \`$0 --help' for more information." >&2
   13718    { (exit 1); exit 1; }; };;
   13719   --help | --hel | -h )
   13720     echo "$ac_cs_usage"; exit ;;
   13721   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   13722   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   13723     ac_cs_silent=: ;;
   13724 
   13725   # This is an error.
   13726   -*) { echo "$as_me: error: unrecognized option: $1
   13727 Try \`$0 --help' for more information." >&2
   13728    { (exit 1); exit 1; }; } ;;
   13729 
   13730   *) ac_config_targets="$ac_config_targets $1"
   13731      ac_need_defaults=false ;;
   13732 
   13733   esac
   13734   shift
   13735 done
   13736 
   13737 ac_configure_extra_args=
   13738 
   13739 if $ac_cs_silent; then
   13740   exec 6>/dev/null
   13741   ac_configure_extra_args="$ac_configure_extra_args --silent"
   13742 fi
   13743 
   13744 _ACEOF
   13745 cat >>$CONFIG_STATUS <<_ACEOF
   13746 if \$ac_cs_recheck; then
   13747   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   13748   CONFIG_SHELL=$SHELL
   13749   export CONFIG_SHELL
   13750   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   13751 fi
   13752 
   13753 _ACEOF
   13754 cat >>$CONFIG_STATUS <<\_ACEOF
   13755 exec 5>>config.log
   13756 {
   13757   echo
   13758   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   13759 ## Running $as_me. ##
   13760 _ASBOX
   13761   echo "$ac_log"
   13762 } >&5
   13763 
   13764 _ACEOF
   13765 cat >>$CONFIG_STATUS <<_ACEOF
   13766 #
   13767 # INIT-COMMANDS
   13768 #
   13769 
   13770 
   13771 _ACEOF
   13772 
   13773 cat >>$CONFIG_STATUS <<\_ACEOF
   13774 
   13775 # Handling of arguments.
   13776 for ac_config_target in $ac_config_targets
   13777 do
   13778   case $ac_config_target in
   13779     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   13780     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
   13781     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   13782 
   13783   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   13784 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   13785    { (exit 1); exit 1; }; };;
   13786   esac
   13787 done
   13788 
   13789 
   13790 # If the user did not use the arguments to specify the items to instantiate,
   13791 # then the envvar interface is used.  Set only those that are not.
   13792 # We use the long form for the default assignment because of an extremely
   13793 # bizarre bug on SunOS 4.1.3.
   13794 if $ac_need_defaults; then
   13795   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   13796   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   13797   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   13798 fi
   13799 
   13800 # Have a temporary directory for convenience.  Make it in the build tree
   13801 # simply because there is no reason against having it here, and in addition,
   13802 # creating and moving files from /tmp can sometimes cause problems.
   13803 # Hook for its removal unless debugging.
   13804 # Note that there is a small window in which the directory will not be cleaned:
   13805 # after its creation but before its name has been assigned to `$tmp'.
   13806 $debug ||
   13807 {
   13808   tmp=
   13809   trap 'exit_status=$?
   13810   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   13811 ' 0
   13812   trap '{ (exit 1); exit 1; }' 1 2 13 15
   13813 }
   13814 # Create a (secure) tmp directory for tmp files.
   13815 
   13816 {
   13817   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   13818   test -n "$tmp" && test -d "$tmp"
   13819 }  ||
   13820 {
   13821   tmp=./conf$$-$RANDOM
   13822   (umask 077 && mkdir "$tmp")
   13823 } ||
   13824 {
   13825    echo "$me: cannot create a temporary directory in ." >&2
   13826    { (exit 1); exit 1; }
   13827 }
   13828 
   13829 #
   13830 # Set up the sed scripts for CONFIG_FILES section.
   13831 #
   13832 
   13833 # No need to generate the scripts if there are no CONFIG_FILES.
   13834 # This happens for instance when ./config.status config.h
   13835 if test -n "$CONFIG_FILES"; then
   13836 
   13837 _ACEOF
   13838 
   13839 
   13840 
   13841 ac_delim='%!_!# '
   13842 for ac_last_try in false false false false false :; do
   13843   cat >conf$$subs.sed <<_ACEOF
   13844 SHELL!$SHELL$ac_delim
   13845 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
   13846 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
   13847 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
   13848 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
   13849 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
   13850 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
   13851 exec_prefix!$exec_prefix$ac_delim
   13852 prefix!$prefix$ac_delim
   13853 program_transform_name!$program_transform_name$ac_delim
   13854 bindir!$bindir$ac_delim
   13855 sbindir!$sbindir$ac_delim
   13856 libexecdir!$libexecdir$ac_delim
   13857 datarootdir!$datarootdir$ac_delim
   13858 datadir!$datadir$ac_delim
   13859 sysconfdir!$sysconfdir$ac_delim
   13860 sharedstatedir!$sharedstatedir$ac_delim
   13861 localstatedir!$localstatedir$ac_delim
   13862 includedir!$includedir$ac_delim
   13863 oldincludedir!$oldincludedir$ac_delim
   13864 docdir!$docdir$ac_delim
   13865 infodir!$infodir$ac_delim
   13866 htmldir!$htmldir$ac_delim
   13867 dvidir!$dvidir$ac_delim
   13868 pdfdir!$pdfdir$ac_delim
   13869 psdir!$psdir$ac_delim
   13870 libdir!$libdir$ac_delim
   13871 localedir!$localedir$ac_delim
   13872 mandir!$mandir$ac_delim
   13873 DEFS!$DEFS$ac_delim
   13874 ECHO_C!$ECHO_C$ac_delim
   13875 ECHO_N!$ECHO_N$ac_delim
   13876 ECHO_T!$ECHO_T$ac_delim
   13877 LIBS!$LIBS$ac_delim
   13878 build_alias!$build_alias$ac_delim
   13879 host_alias!$host_alias$ac_delim
   13880 target_alias!$target_alias$ac_delim
   13881 build!$build$ac_delim
   13882 build_cpu!$build_cpu$ac_delim
   13883 build_vendor!$build_vendor$ac_delim
   13884 build_os!$build_os$ac_delim
   13885 host!$host$ac_delim
   13886 host_cpu!$host_cpu$ac_delim
   13887 host_vendor!$host_vendor$ac_delim
   13888 host_os!$host_os$ac_delim
   13889 SHLICC2!$SHLICC2$ac_delim
   13890 CC!$CC$ac_delim
   13891 CFLAGS!$CFLAGS$ac_delim
   13892 LDFLAGS!$LDFLAGS$ac_delim
   13893 CPPFLAGS!$CPPFLAGS$ac_delim
   13894 ac_ct_CC!$ac_ct_CC$ac_delim
   13895 EXEEXT!$EXEEXT$ac_delim
   13896 OBJEXT!$OBJEXT$ac_delim
   13897 CPP!$CPP$ac_delim
   13898 GREP!$GREP$ac_delim
   13899 EGREP!$EGREP$ac_delim
   13900 LIBOBJS!$LIBOBJS$ac_delim
   13901 V_CCOPT!$V_CCOPT$ac_delim
   13902 V_DEFS!$V_DEFS$ac_delim
   13903 V_GROUP!$V_GROUP$ac_delim
   13904 V_INCLS!$V_INCLS$ac_delim
   13905 V_PCAPDEP!$V_PCAPDEP$ac_delim
   13906 LOCALSRC!$LOCALSRC$ac_delim
   13907 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
   13908 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
   13909 INSTALL_DATA!$INSTALL_DATA$ac_delim
   13910 LTLIBOBJS!$LTLIBOBJS$ac_delim
   13911 _ACEOF
   13912 
   13913   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
   13914     break
   13915   elif $ac_last_try; then
   13916     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   13917 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   13918    { (exit 1); exit 1; }; }
   13919   else
   13920     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   13921   fi
   13922 done
   13923 
   13924 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   13925 if test -n "$ac_eof"; then
   13926   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   13927   ac_eof=`expr $ac_eof + 1`
   13928 fi
   13929 
   13930 cat >>$CONFIG_STATUS <<_ACEOF
   13931 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
   13932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
   13933 _ACEOF
   13934 sed '
   13935 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   13936 s/^/s,@/; s/!/@,|#_!!_#|/
   13937 :n
   13938 t n
   13939 s/'"$ac_delim"'$/,g/; t
   13940 s/$/\\/; p
   13941 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   13942 ' >>$CONFIG_STATUS <conf$$subs.sed
   13943 rm -f conf$$subs.sed
   13944 cat >>$CONFIG_STATUS <<_ACEOF
   13945 :end
   13946 s/|#_!!_#|//g
   13947 CEOF$ac_eof
   13948 _ACEOF
   13949 
   13950 
   13951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   13952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   13953 # trailing colons and then remove the whole line if VPATH becomes empty
   13954 # (actually we leave an empty line to preserve line numbers).
   13955 if test "x$srcdir" = x.; then
   13956   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   13957 s/:*\$(srcdir):*/:/
   13958 s/:*\${srcdir}:*/:/
   13959 s/:*@srcdir@:*/:/
   13960 s/^\([^=]*=[	 ]*\):*/\1/
   13961 s/:*$//
   13962 s/^[^=]*=[	 ]*$//
   13963 }'
   13964 fi
   13965 
   13966 cat >>$CONFIG_STATUS <<\_ACEOF
   13967 fi # test -n "$CONFIG_FILES"
   13968 
   13969 
   13970 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
   13971 do
   13972   case $ac_tag in
   13973   :[FHLC]) ac_mode=$ac_tag; continue;;
   13974   esac
   13975   case $ac_mode$ac_tag in
   13976   :[FHL]*:*);;
   13977   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
   13978 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   13979    { (exit 1); exit 1; }; };;
   13980   :[FH]-) ac_tag=-:-;;
   13981   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   13982   esac
   13983   ac_save_IFS=$IFS
   13984   IFS=:
   13985   set x $ac_tag
   13986   IFS=$ac_save_IFS
   13987   shift
   13988   ac_file=$1
   13989   shift
   13990 
   13991   case $ac_mode in
   13992   :L) ac_source=$1;;
   13993   :[FH])
   13994     ac_file_inputs=
   13995     for ac_f
   13996     do
   13997       case $ac_f in
   13998       -) ac_f="$tmp/stdin";;
   13999       *) # Look for the file first in the build tree, then in the source tree
   14000 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   14001 	 # because $ac_f cannot contain `:'.
   14002 	 test -f "$ac_f" ||
   14003 	   case $ac_f in
   14004 	   [\\/$]*) false;;
   14005 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   14006 	   esac ||
   14007 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   14008 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   14009    { (exit 1); exit 1; }; };;
   14010       esac
   14011       ac_file_inputs="$ac_file_inputs $ac_f"
   14012     done
   14013 
   14014     # Let's still pretend it is `configure' which instantiates (i.e., don't
   14015     # use $as_me), people would be surprised to read:
   14016     #    /* config.h.  Generated by config.status.  */
   14017     configure_input="Generated from "`IFS=:
   14018 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
   14019     if test x"$ac_file" != x-; then
   14020       configure_input="$ac_file.  $configure_input"
   14021       { echo "$as_me:$LINENO: creating $ac_file" >&5
   14022 echo "$as_me: creating $ac_file" >&6;}
   14023     fi
   14024 
   14025     case $ac_tag in
   14026     *:-:* | *:-) cat >"$tmp/stdin";;
   14027     esac
   14028     ;;
   14029   esac
   14030 
   14031   ac_dir=`$as_dirname -- "$ac_file" ||
   14032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   14033 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   14034 	 X"$ac_file" : 'X\(//\)$' \| \
   14035 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   14036 echo X"$ac_file" |
   14037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   14038 	    s//\1/
   14039 	    q
   14040 	  }
   14041 	  /^X\(\/\/\)[^/].*/{
   14042 	    s//\1/
   14043 	    q
   14044 	  }
   14045 	  /^X\(\/\/\)$/{
   14046 	    s//\1/
   14047 	    q
   14048 	  }
   14049 	  /^X\(\/\).*/{
   14050 	    s//\1/
   14051 	    q
   14052 	  }
   14053 	  s/.*/./; q'`
   14054   { as_dir="$ac_dir"
   14055   case $as_dir in #(
   14056   -*) as_dir=./$as_dir;;
   14057   esac
   14058   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   14059     as_dirs=
   14060     while :; do
   14061       case $as_dir in #(
   14062       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   14063       *) as_qdir=$as_dir;;
   14064       esac
   14065       as_dirs="'$as_qdir' $as_dirs"
   14066       as_dir=`$as_dirname -- "$as_dir" ||
   14067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   14068 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   14069 	 X"$as_dir" : 'X\(//\)$' \| \
   14070 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   14071 echo X"$as_dir" |
   14072     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   14073 	    s//\1/
   14074 	    q
   14075 	  }
   14076 	  /^X\(\/\/\)[^/].*/{
   14077 	    s//\1/
   14078 	    q
   14079 	  }
   14080 	  /^X\(\/\/\)$/{
   14081 	    s//\1/
   14082 	    q
   14083 	  }
   14084 	  /^X\(\/\).*/{
   14085 	    s//\1/
   14086 	    q
   14087 	  }
   14088 	  s/.*/./; q'`
   14089       test -d "$as_dir" && break
   14090     done
   14091     test -z "$as_dirs" || eval "mkdir $as_dirs"
   14092   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   14093 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   14094    { (exit 1); exit 1; }; }; }
   14095   ac_builddir=.
   14096 
   14097 case "$ac_dir" in
   14098 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   14099 *)
   14100   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   14101   # A ".." for each directory in $ac_dir_suffix.
   14102   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   14103   case $ac_top_builddir_sub in
   14104   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   14105   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   14106   esac ;;
   14107 esac
   14108 ac_abs_top_builddir=$ac_pwd
   14109 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   14110 # for backward compatibility:
   14111 ac_top_builddir=$ac_top_build_prefix
   14112 
   14113 case $srcdir in
   14114   .)  # We are building in place.
   14115     ac_srcdir=.
   14116     ac_top_srcdir=$ac_top_builddir_sub
   14117     ac_abs_top_srcdir=$ac_pwd ;;
   14118   [\\/]* | ?:[\\/]* )  # Absolute name.
   14119     ac_srcdir=$srcdir$ac_dir_suffix;
   14120     ac_top_srcdir=$srcdir
   14121     ac_abs_top_srcdir=$srcdir ;;
   14122   *) # Relative name.
   14123     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   14124     ac_top_srcdir=$ac_top_build_prefix$srcdir
   14125     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   14126 esac
   14127 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   14128 
   14129 
   14130   case $ac_mode in
   14131   :F)
   14132   #
   14133   # CONFIG_FILE
   14134   #
   14135 
   14136   case $INSTALL in
   14137   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   14138   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   14139   esac
   14140 _ACEOF
   14141 
   14142 cat >>$CONFIG_STATUS <<\_ACEOF
   14143 # If the template does not know about datarootdir, expand it.
   14144 # FIXME: This hack should be removed a few years after 2.60.
   14145 ac_datarootdir_hack=; ac_datarootdir_seen=
   14146 
   14147 case `sed -n '/datarootdir/ {
   14148   p
   14149   q
   14150 }
   14151 /@datadir@/p
   14152 /@docdir@/p
   14153 /@infodir@/p
   14154 /@localedir@/p
   14155 /@mandir@/p
   14156 ' $ac_file_inputs` in
   14157 *datarootdir*) ac_datarootdir_seen=yes;;
   14158 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   14159   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   14160 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   14161 _ACEOF
   14162 cat >>$CONFIG_STATUS <<_ACEOF
   14163   ac_datarootdir_hack='
   14164   s&@datadir@&$datadir&g
   14165   s&@docdir@&$docdir&g
   14166   s&@infodir@&$infodir&g
   14167   s&@localedir@&$localedir&g
   14168   s&@mandir@&$mandir&g
   14169     s&\\\${datarootdir}&$datarootdir&g' ;;
   14170 esac
   14171 _ACEOF
   14172 
   14173 # Neutralize VPATH when `$srcdir' = `.'.
   14174 # Shell code in configure.ac might set extrasub.
   14175 # FIXME: do we really want to maintain this feature?
   14176 cat >>$CONFIG_STATUS <<_ACEOF
   14177   sed "$ac_vpsub
   14178 $extrasub
   14179 _ACEOF
   14180 cat >>$CONFIG_STATUS <<\_ACEOF
   14181 :t
   14182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   14183 s&@configure_input@&$configure_input&;t t
   14184 s&@top_builddir@&$ac_top_builddir_sub&;t t
   14185 s&@srcdir@&$ac_srcdir&;t t
   14186 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   14187 s&@top_srcdir@&$ac_top_srcdir&;t t
   14188 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   14189 s&@builddir@&$ac_builddir&;t t
   14190 s&@abs_builddir@&$ac_abs_builddir&;t t
   14191 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   14192 s&@INSTALL@&$ac_INSTALL&;t t
   14193 $ac_datarootdir_hack
   14194 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
   14195 
   14196 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   14197   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   14198   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   14199   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   14200 which seems to be undefined.  Please make sure it is defined." >&5
   14201 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   14202 which seems to be undefined.  Please make sure it is defined." >&2;}
   14203 
   14204   rm -f "$tmp/stdin"
   14205   case $ac_file in
   14206   -) cat "$tmp/out"; rm -f "$tmp/out";;
   14207   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
   14208   esac
   14209  ;;
   14210   :H)
   14211   #
   14212   # CONFIG_HEADER
   14213   #
   14214 _ACEOF
   14215 
   14216 # Transform confdefs.h into a sed script `conftest.defines', that
   14217 # substitutes the proper values into config.h.in to produce config.h.
   14218 rm -f conftest.defines conftest.tail
   14219 # First, append a space to every undef/define line, to ease matching.
   14220 echo 's/$/ /' >conftest.defines
   14221 # Then, protect against being on the right side of a sed subst, or in
   14222 # an unquoted here document, in config.status.  If some macros were
   14223 # called several times there might be several #defines for the same
   14224 # symbol, which is useless.  But do not sort them, since the last
   14225 # AC_DEFINE must be honored.
   14226 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   14227 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
   14228 # NAME is the cpp macro being defined, VALUE is the value it is being given.
   14229 # PARAMS is the parameter list in the macro definition--in most cases, it's
   14230 # just an empty string.
   14231 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
   14232 ac_dB='\\)[	 (].*,\\1define\\2'
   14233 ac_dC=' '
   14234 ac_dD=' ,'
   14235 
   14236 uniq confdefs.h |
   14237   sed -n '
   14238 	t rset
   14239 	:rset
   14240 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
   14241 	t ok
   14242 	d
   14243 	:ok
   14244 	s/[\\&,]/\\&/g
   14245 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
   14246 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
   14247   ' >>conftest.defines
   14248 
   14249 # Remove the space that was appended to ease matching.
   14250 # Then replace #undef with comments.  This is necessary, for
   14251 # example, in the case of _POSIX_SOURCE, which is predefined and required
   14252 # on some systems where configure will not decide to define it.
   14253 # (The regexp can be short, since the line contains either #define or #undef.)
   14254 echo 's/ $//
   14255 s,^[	 #]*u.*,/* & */,' >>conftest.defines
   14256 
   14257 # Break up conftest.defines:
   14258 ac_max_sed_lines=50
   14259 
   14260 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
   14261 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
   14262 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
   14263 # et cetera.
   14264 ac_in='$ac_file_inputs'
   14265 ac_out='"$tmp/out1"'
   14266 ac_nxt='"$tmp/out2"'
   14267 
   14268 while :
   14269 do
   14270   # Write a here document:
   14271     cat >>$CONFIG_STATUS <<_ACEOF
   14272     # First, check the format of the line:
   14273     cat >"\$tmp/defines.sed" <<\\CEOF
   14274 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
   14275 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
   14276 b
   14277 :def
   14278 _ACEOF
   14279   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
   14280   echo 'CEOF
   14281     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
   14282   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
   14283   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
   14284   grep . conftest.tail >/dev/null || break
   14285   rm -f conftest.defines
   14286   mv conftest.tail conftest.defines
   14287 done
   14288 rm -f conftest.defines conftest.tail
   14289 
   14290 echo "ac_result=$ac_in" >>$CONFIG_STATUS
   14291 cat >>$CONFIG_STATUS <<\_ACEOF
   14292   if test x"$ac_file" != x-; then
   14293     echo "/* $configure_input  */" >"$tmp/config.h"
   14294     cat "$ac_result" >>"$tmp/config.h"
   14295     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
   14296       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   14297 echo "$as_me: $ac_file is unchanged" >&6;}
   14298     else
   14299       rm -f $ac_file
   14300       mv "$tmp/config.h" $ac_file
   14301     fi
   14302   else
   14303     echo "/* $configure_input  */"
   14304     cat "$ac_result"
   14305   fi
   14306   rm -f "$tmp/out12"
   14307  ;;
   14308 
   14309   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
   14310 echo "$as_me: executing $ac_file commands" >&6;}
   14311  ;;
   14312   esac
   14313 
   14314 
   14315   case $ac_file$ac_mode in
   14316     "default-1":C) if test -f .devel; then
   14317 	echo timestamp > stamp-h
   14318 	cat Makefile-devel-adds >> Makefile
   14319 	make depend
   14320 fi ;;
   14321 
   14322   esac
   14323 done # for ac_tag
   14324 
   14325 
   14326 { (exit 0); exit 0; }
   14327 _ACEOF
   14328 chmod +x $CONFIG_STATUS
   14329 ac_clean_files=$ac_clean_files_save
   14330 
   14331 
   14332 # configure is writing to config.log, and then calls config.status.
   14333 # config.status does its own redirection, appending to config.log.
   14334 # Unfortunately, on DOS this fails, as config.log is still kept open
   14335 # by configure, so config.status won't be able to write to it; its
   14336 # output is simply discarded.  So we exec the FD to /dev/null,
   14337 # effectively closing config.log, so it can be properly (re)opened and
   14338 # appended to by config.status.  When coming back to configure, we
   14339 # need to make the FD available again.
   14340 if test "$no_create" != yes; then
   14341   ac_cs_success=:
   14342   ac_config_status_args=
   14343   test "$silent" = yes &&
   14344     ac_config_status_args="$ac_config_status_args --quiet"
   14345   exec 5>/dev/null
   14346   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   14347   exec 5>>config.log
   14348   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   14349   # would make configure fail if this is the last instruction.
   14350   $ac_cs_success || { (exit 1); exit 1; }
   14351 fi
   14352 
   14353 exit 0
   14354