Deleted Added
full compact
configure (127668) configure (146773)
1#! /bin/sh
1#! /bin/sh
2# From configure.in Revision: 1.169.2.3 .
2# From configure.in Revision: 1.188 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# 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## --------------------- ##

--- 837 unchanged lines hidden (view full) ---

848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6 (with ipv4) support
850 --disable-ipv6 disable ipv6 support
851
852Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --without-gcc don't use gcc
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# 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## --------------------- ##

--- 837 unchanged lines hidden (view full) ---

848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6 (with ipv4) support
850 --disable-ipv6 disable ipv6 support
851
852Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --without-gcc don't use gcc
856 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
856 --without-crypto disable crypto support
857
858Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have

--- 1632 unchanged lines hidden (view full) ---

2496
2497 fi
2498 ;;
2499 esac
2500 fi
2501
2502echo "$as_me:$LINENO: checking for inline" >&5
2503echo $ECHO_N "checking for inline... $ECHO_C" >&6
858 --without-crypto disable crypto support
859
860Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have

--- 1632 unchanged lines hidden (view full) ---

2498
2499 fi
2500 ;;
2501 esac
2502 fi
2503
2504echo "$as_me:$LINENO: checking for inline" >&5
2505echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 save_CFLAGS="$CFLAGS"
2507 CFLAGS="$V_CCOPT"
2504 if test "${ac_cv_lbl_inline+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507
2508 ac_cv_lbl_inline=""
2509 ac_lbl_cc_inline=no
2510 for ac_lbl_inline in inline __inline__ __inline
2511 do

--- 49 unchanged lines hidden (view full) ---

2561 break;
2562 fi
2563 done
2564 if test "$ac_lbl_cc_inline" = yes ; then
2565 ac_cv_lbl_inline=$ac_lbl_inline
2566 fi
2567fi
2568
2508 if test "${ac_cv_lbl_inline+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510else
2511
2512 ac_cv_lbl_inline=""
2513 ac_lbl_cc_inline=no
2514 for ac_lbl_inline in inline __inline__ __inline
2515 do

--- 49 unchanged lines hidden (view full) ---

2565 break;
2566 fi
2567 done
2568 if test "$ac_lbl_cc_inline" = yes ; then
2569 ac_cv_lbl_inline=$ac_lbl_inline
2570 fi
2571fi
2572
2573 CFLAGS="$save_CFLAGS"
2569 if test ! -z "$ac_cv_lbl_inline" ; then
2570 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2571echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2572 else
2573 echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6
2575 fi
2576

--- 64 unchanged lines hidden (view full) ---

2641
2642 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2643else
2644 V_DEFS="$V_DEFS -D_U_=\"\""
2645fi
2646echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2647echo "${ECHO_T}$ac_cv___attribute__" >&6
2648
2574 if test ! -z "$ac_cv_lbl_inline" ; then
2575 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2576echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
2580 fi
2581

--- 64 unchanged lines hidden (view full) ---

2646
2647 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2648else
2649 V_DEFS="$V_DEFS -D_U_=\"\""
2650fi
2651echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2652echo "${ECHO_T}$ac_cv___attribute__" >&6
2653
2649
2650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2657# On Suns, sometimes $CPP names a directory.

--- 460 unchanged lines hidden (view full) ---

3118fi
3119
3120done
3121
3122
3123
3124
3125
2654ac_ext=c
2655ac_cpp='$CPP $CPPFLAGS'
2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2660echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2661# On Suns, sometimes $CPP names a directory.

--- 460 unchanged lines hidden (view full) ---

3122fi
3123
3124done
3125
3126
3127
3128
3129
3126
3127for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
3130for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3128do
3129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3130if eval "test \"\${$as_ac_Header+set}\" = set"; then
3131 echo "$as_me:$LINENO: checking for $ac_header" >&5
3132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3133if eval "test \"\${$as_ac_Header+set}\" = set"; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135fi

--- 177 unchanged lines hidden (view full) ---

3313 cat >>confdefs.h <<_ACEOF
3314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3315_ACEOF
3316
3317fi
3318
3319done
3320
3131do
3132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3133if eval "test \"\${$as_ac_Header+set}\" = set"; then
3134 echo "$as_me:$LINENO: checking for $ac_header" >&5
3135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3136if eval "test \"\${$as_ac_Header+set}\" = set"; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138fi

--- 177 unchanged lines hidden (view full) ---

3316 cat >>confdefs.h <<_ACEOF
3317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3318_ACEOF
3319
3320fi
3321
3322done
3323
3324if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3325 #
3326 # The simple test didn't work.
3327 # Do we need to include <net/if.h> first?
3328 # Unset ac_cv_header_netinet_if_ether_h so we don't
3329 # treat the previous failure as a cached value and
3330 # suppress the next test.
3331 #
3332 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3333echo "$as_me: Rechecking with some additional includes" >&6;}
3334 unset ac_cv_header_netinet_if_ether_h
3335
3336for ac_header in netinet/if_ether.h
3337do
3338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3339echo "$as_me:$LINENO: checking for $ac_header" >&5
3340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3341if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
3344 cat >conftest.$ac_ext <<_ACEOF
3345#line $LINENO "configure"
3346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h. */
3351#include <sys/types.h>
3352#include <sys/socket.h>
3353#include <netinet/in.h>
3354struct mbuf;
3355struct rtentry;
3356#include <net/if.h>
3357
3358#include <$ac_header>
3359_ACEOF
3360rm -f conftest.$ac_objext
3361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 eval "$as_ac_Header=yes"
3373else
3374 echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377eval "$as_ac_Header=no"
3378fi
3379rm -f conftest.$ac_objext conftest.$ac_ext
3380fi
3381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3383if test `eval echo '${'$as_ac_Header'}'` = yes; then
3384 cat >>confdefs.h <<_ACEOF
3385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3386_ACEOF
3387
3388fi
3389
3390done
3391
3392fi
3393
3321echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3322echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3323if test "${ac_cv_header_time+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326 cat >conftest.$ac_ext <<_ACEOF
3327#line $LINENO "configure"
3328/* confdefs.h. */

--- 390 unchanged lines hidden (view full) ---

3719
3720 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3721 ;;
3722*) echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724 ;;
3725esac
3726
3394echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3395echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3396if test "${ac_cv_header_time+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399 cat >conftest.$ac_ext <<_ACEOF
3400#line $LINENO "configure"
3401/* confdefs.h. */

--- 390 unchanged lines hidden (view full) ---

3792
3793 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3794 ;;
3795*) echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797 ;;
3798esac
3799
3800
3801# Check whether --with-user or --without-user was given.
3802if test "${with_user+set}" = set; then
3803 withval="$with_user"
3804
3805fi;
3806echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3807echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3808if test ! -z "$with_user" ; then
3809 cat >>confdefs.h <<_ACEOF
3810#define WITH_USER "$withval"
3811_ACEOF
3812
3813 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3814echo "${ECHO_T}to \"$withval\"" >&6
3815else
3816 echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6
3818fi
3819
3820
3821# Check whether --with-chroot or --without-chroot was given.
3822if test "${with_chroot+set}" = set; then
3823 withval="$with_chroot"
3824
3825fi;
3826echo "$as_me:$LINENO: checking whether to chroot" >&5
3827echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3828if test ! -z "$with_chroot" ; then
3829 cat >>confdefs.h <<_ACEOF
3830#define WITH_CHROOT "$withval"
3831_ACEOF
3832
3833 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3834echo "${ECHO_T}to \"$withval\"" >&6
3835else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838fi
3839
3727echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3728echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3729# Check whether --enable-ipv6 or --disable-ipv6 was given.
3730if test "${enable_ipv6+set}" = set; then
3731 enableval="$enable_ipv6"
3732 case "$enableval" in
3733yes) echo "$as_me:$LINENO: result: yes" >&5
3734echo "${ECHO_T}yes" >&6

--- 2091 unchanged lines hidden (view full) ---

5826fi
5827echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5828echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5829cat >>confdefs.h <<_ACEOF
5830#define SIZEOF_LONG $ac_cv_sizeof_long
5831_ACEOF
5832
5833
3840echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3841echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3842# Check whether --enable-ipv6 or --disable-ipv6 was given.
3843if test "${enable_ipv6+set}" = set; then
3844 enableval="$enable_ipv6"
3845 case "$enableval" in
3846yes) echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6

--- 2091 unchanged lines hidden (view full) ---

5939fi
5940echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5941echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5942cat >>confdefs.h <<_ACEOF
5943#define SIZEOF_LONG $ac_cv_sizeof_long
5944_ACEOF
5945
5946
5947echo "$as_me:$LINENO: checking for long long" >&5
5948echo $ECHO_N "checking for long long... $ECHO_C" >&6
5949if test "${ac_cv_type_long_long+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 cat >conftest.$ac_ext <<_ACEOF
5953#line $LINENO "configure"
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
5959$ac_includes_default
5960int
5961main ()
5962{
5963if ((long long *) 0)
5964 return 0;
5965if (sizeof (long long))
5966 return 0;
5967 ;
5968 return 0;
5969}
5970_ACEOF
5971rm -f conftest.$ac_objext
5972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_type_long_long=yes
5984else
5985 echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5834
5987
5988ac_cv_type_long_long=no
5989fi
5990rm -f conftest.$ac_objext conftest.$ac_ext
5991fi
5992echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5993echo "${ECHO_T}$ac_cv_type_long_long" >&6
5835
5994
5995echo "$as_me:$LINENO: checking size of long long" >&5
5996echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5997if test "${ac_cv_sizeof_long_long+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 if test "$ac_cv_type_long_long" = yes; then
6001 # The cast to unsigned long works around a bug in the HP C Compiler
6002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6004 # This bug is HP SR number 8606223364.
6005 if test "$cross_compiling" = yes; then
6006 # Depending upon the size, compute the lo and hi bounds.
6007cat >conftest.$ac_ext <<_ACEOF
6008#line $LINENO "configure"
6009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
6014$ac_includes_default
6015int
6016main ()
6017{
6018static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6019test_array [0] = 0
5836
6020
6021 ;
6022 return 0;
6023}
6024_ACEOF
6025rm -f conftest.$ac_objext
6026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 ac_lo=0 ac_mid=0
6038 while :; do
6039 cat >conftest.$ac_ext <<_ACEOF
6040#line $LINENO "configure"
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046$ac_includes_default
6047int
6048main ()
6049{
6050static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6051test_array [0] = 0
6052
6053 ;
6054 return 0;
6055}
6056_ACEOF
6057rm -f conftest.$ac_objext
6058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_hi=$ac_mid; break
6070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074ac_lo=`expr $ac_mid + 1`
6075 if test $ac_lo -le $ac_mid; then
6076 ac_lo= ac_hi=
6077 break
6078 fi
6079 ac_mid=`expr 2 '*' $ac_mid + 1`
6080fi
6081rm -f conftest.$ac_objext conftest.$ac_ext
6082 done
6083else
6084 echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087cat >conftest.$ac_ext <<_ACEOF
6088#line $LINENO "configure"
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */
6094$ac_includes_default
6095int
6096main ()
6097{
6098static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6099test_array [0] = 0
6100
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -s conftest.$ac_objext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 (eval $ac_try) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 ac_hi=-1 ac_mid=-1
6118 while :; do
6119 cat >conftest.$ac_ext <<_ACEOF
6120#line $LINENO "configure"
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
6126$ac_includes_default
6127int
6128main ()
6129{
6130static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6131test_array [0] = 0
6132
6133 ;
6134 return 0;
6135}
6136_ACEOF
6137rm -f conftest.$ac_objext
6138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_lo=$ac_mid; break
6150else
6151 echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
6154ac_hi=`expr '(' $ac_mid ')' - 1`
6155 if test $ac_mid -le $ac_hi; then
6156 ac_lo= ac_hi=
6157 break
6158 fi
6159 ac_mid=`expr 2 '*' $ac_mid`
6160fi
6161rm -f conftest.$ac_objext conftest.$ac_ext
6162 done
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167ac_lo= ac_hi=
6168fi
6169rm -f conftest.$ac_objext conftest.$ac_ext
6170fi
6171rm -f conftest.$ac_objext conftest.$ac_ext
6172# Binary search between lo and hi bounds.
6173while test "x$ac_lo" != "x$ac_hi"; do
6174 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6175 cat >conftest.$ac_ext <<_ACEOF
6176#line $LINENO "configure"
6177/* confdefs.h. */
6178_ACEOF
6179cat confdefs.h >>conftest.$ac_ext
6180cat >>conftest.$ac_ext <<_ACEOF
6181/* end confdefs.h. */
6182$ac_includes_default
6183int
6184main ()
6185{
6186static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6187test_array [0] = 0
6188
6189 ;
6190 return 0;
6191}
6192_ACEOF
6193rm -f conftest.$ac_objext
6194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_hi=$ac_mid
6206else
6207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210ac_lo=`expr '(' $ac_mid ')' + 1`
6211fi
6212rm -f conftest.$ac_objext conftest.$ac_ext
6213done
6214case $ac_lo in
6215?*) ac_cv_sizeof_long_long=$ac_lo;;
6216'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6217See \`config.log' for more details." >&5
6218echo "$as_me: error: cannot compute sizeof (long long), 77
6219See \`config.log' for more details." >&2;}
6220 { (exit 1); exit 1; }; } ;;
6221esac
6222else
6223 if test "$cross_compiling" = yes; then
6224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6225See \`config.log' for more details." >&5
6226echo "$as_me: error: cannot run test program while cross compiling
6227See \`config.log' for more details." >&2;}
6228 { (exit 1); exit 1; }; }
6229else
6230 cat >conftest.$ac_ext <<_ACEOF
6231#line $LINENO "configure"
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
6237$ac_includes_default
6238long longval () { return (long) (sizeof (long long)); }
6239unsigned long ulongval () { return (long) (sizeof (long long)); }
6240#include <stdio.h>
6241#include <stdlib.h>
6242int
6243main ()
6244{
6245
6246 FILE *f = fopen ("conftest.val", "w");
6247 if (! f)
6248 exit (1);
6249 if (((long) (sizeof (long long))) < 0)
6250 {
6251 long i = longval ();
6252 if (i != ((long) (sizeof (long long))))
6253 exit (1);
6254 fprintf (f, "%ld\n", i);
6255 }
6256 else
6257 {
6258 unsigned long i = ulongval ();
6259 if (i != ((long) (sizeof (long long))))
6260 exit (1);
6261 fprintf (f, "%lu\n", i);
6262 }
6263 exit (ferror (f) || fclose (f) != 0);
6264
6265 ;
6266 return 0;
6267}
6268_ACEOF
6269rm -f conftest$ac_exeext
6270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_sizeof_long_long=`cat conftest.val`
6281else
6282 echo "$as_me: program exited with status $ac_status" >&5
6283echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
6286( exit $ac_status )
6287{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6288See \`config.log' for more details." >&5
6289echo "$as_me: error: cannot compute sizeof (long long), 77
6290See \`config.log' for more details." >&2;}
6291 { (exit 1); exit 1; }; }
6292fi
6293rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6294fi
6295fi
6296rm -f conftest.val
6297else
6298 ac_cv_sizeof_long_long=0
6299fi
6300fi
6301echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6302echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6303cat >>confdefs.h <<_ACEOF
6304#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6305_ACEOF
6306
6307
6308
6309
6310
5837 echo "$as_me:$LINENO: checking for addrinfo" >&5
5838echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
5839 if test "${ac_cv_addrinfo+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841else
5842 cat >conftest.$ac_ext <<_ACEOF
5843#line $LINENO "configure"
5844/* confdefs.h. */

--- 481 unchanged lines hidden (view full) ---

6326 if test $ac_cv_res_state = yes; then
6327 cat >>confdefs.h <<\_ACEOF
6328#define HAVE_NEW_RES_STATE 1
6329_ACEOF
6330
6331 fi
6332
6333
6311 echo "$as_me:$LINENO: checking for addrinfo" >&5
6312echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6313 if test "${ac_cv_addrinfo+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 cat >conftest.$ac_ext <<_ACEOF
6317#line $LINENO "configure"
6318/* confdefs.h. */

--- 481 unchanged lines hidden (view full) ---

6800 if test $ac_cv_res_state = yes; then
6801 cat >>confdefs.h <<\_ACEOF
6802#define HAVE_NEW_RES_STATE 1
6803_ACEOF
6804
6805 fi
6806
6807
6334if test "$missing_includes" = "yes"; then
6335 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
6336 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
6337fi
6338
6339
6340
6341
6342
6343
6344
6808
6809
6810
6811
6812
6813
6814
6345
6346for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6347do
6348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6349echo "$as_me:$LINENO: checking for $ac_func" >&5
6350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6351if eval "test \"\${$as_ac_var+set}\" = set"; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353else

--- 155 unchanged lines hidden (view full) ---

6509 cat >>confdefs.h <<_ACEOF
6510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6511_ACEOF
6512
6513fi
6514done
6515
6516
6815for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6816do
6817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6818echo "$as_me:$LINENO: checking for $ac_func" >&5
6819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6820if eval "test \"\${$as_ac_var+set}\" = set"; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822else

--- 155 unchanged lines hidden (view full) ---

6978 cat >>confdefs.h <<_ACEOF
6979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6980_ACEOF
6981
6982fi
6983done
6984
6985
6517for ac_func in ether_ntohost
6518do
6519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6520echo "$as_me:$LINENO: checking for $ac_func" >&5
6521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6522if eval "test \"\${$as_ac_var+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525 cat >conftest.$ac_ext <<_ACEOF
6526#line $LINENO "configure"
6527/* confdefs.h. */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h. */
6532/* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func (); below.
6534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6535 <limits.h> exists even on freestanding compilers. */
6536#ifdef __STDC__
6537# include <limits.h>
6538#else
6539# include <assert.h>
6540#endif
6541/* Override any gcc2 internal prototype to avoid an error. */
6542#ifdef __cplusplus
6543extern "C"
6544{
6545#endif
6546/* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6548char $ac_func ();
6549/* The GNU C library defines this for functions which it implements
6550 to always fail with ENOSYS. Some functions are actually named
6551 something starting with __ and the normal name is an alias. */
6552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6553choke me
6554#else
6555char (*f) () = $ac_func;
6556#endif
6557#ifdef __cplusplus
6558}
6559#endif
6560
6986
6561int
6562main ()
6563{
6564return f != $ac_func;
6565 ;
6566 return 0;
6567}
6568_ACEOF
6569rm -f conftest.$ac_objext conftest$ac_exeext
6570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6571 (eval $ac_link) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 eval "$as_ac_var=yes"
6582else
6583 echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586eval "$as_ac_var=no"
6587fi
6588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6589fi
6590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6592if test `eval echo '${'$as_ac_var'}'` = yes; then
6593 cat >>confdefs.h <<_ACEOF
6594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6595_ACEOF
6596
6597 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6598echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6599if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602
6603 if test "$cross_compiling" = yes; then
6604 ac_cv_buggy_ether_ntohost="not while cross-compiling"
6605else
6606 cat >conftest.$ac_ext <<_ACEOF
6607#line $LINENO "configure"
6608/* confdefs.h. */
6609_ACEOF
6610cat confdefs.h >>conftest.$ac_ext
6611cat >>conftest.$ac_ext <<_ACEOF
6612/* end confdefs.h. */
6613
6614 #include <netdb.h>
6615 #include <sys/types.h>
6616 #include <sys/param.h>
6617 #include <sys/socket.h>
6618
6619 int
6620 main(int argc, char **argv)
6621 {
6622 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6623 char name[MAXHOSTNAMELEN];
6624
6625 ether_ntohost(name, (struct ether_addr *)ea);
6626 exit(0);
6627 }
6628
6629_ACEOF
6630rm -f conftest$ac_exeext
6631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6632 (eval $ac_link) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_buggy_ether_ntohost=no
6642else
6643 echo "$as_me: program exited with status $ac_status" >&5
6644echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647( exit $ac_status )
6648ac_cv_buggy_ether_ntohost=yes
6649fi
6650rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6651fi
6652fi
6653echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
6654echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
6655 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6656 cat >>confdefs.h <<\_ACEOF
6657#define USE_ETHER_NTOHOST 1
6658_ACEOF
6659
6660 fi
6661
6662fi
6663done
6664
6665
6666for ac_func in setlinebuf
6987for ac_func in setlinebuf alarm
6667do
6668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669echo "$as_me:$LINENO: checking for $ac_func" >&5
6670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674 cat >conftest.$ac_ext <<_ACEOF

--- 156 unchanged lines hidden (view full) ---

6831_ACEOF
6832
6833else
6834 needsnprintf=yes
6835fi
6836done
6837
6838if test $needsnprintf = yes; then
6988do
6989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6990echo "$as_me:$LINENO: checking for $ac_func" >&5
6991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6992if eval "test \"\${$as_ac_var+set}\" = set"; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995 cat >conftest.$ac_ext <<_ACEOF

--- 156 unchanged lines hidden (view full) ---

7152_ACEOF
7153
7154else
7155 needsnprintf=yes
7156fi
7157done
7158
7159if test $needsnprintf = yes; then
6839 LIBOBJS="$LIBOBJS snprintf.o.$ac_objext"
7160 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6840fi
6841
6842
6843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6844echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6845if test "${ac_cv_type_signal+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else

--- 512 unchanged lines hidden (view full) ---

7360 done
7361fi
7362LIBS=$ac_func_search_save_LIBS
7363fi
7364echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7365echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7366if test "$ac_cv_search_getrpcbynumber" != no; then
7367 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7161fi
7162
7163
7164 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7165echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7166if test "${ac_cv_type_signal+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168else

--- 512 unchanged lines hidden (view full) ---

7681 done
7682fi
7683LIBS=$ac_func_search_save_LIBS
7684fi
7685echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7686echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7687if test "$ac_cv_search_getrpcbynumber" != no; then
7688 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7689 cat >>confdefs.h <<\_ACEOF
7690#define HAVE_GETRPCBYNUMBER 1
7691_ACEOF
7368
7369fi
7370
7371
7372
7373
7374 # Most operating systems have gethostbyname() in the default searched
7375 # libraries (i.e. libc):

--- 1128 unchanged lines hidden (view full) ---

8504 echo "$as_me:$LINENO: result: yes" >&5
8505echo "${ECHO_T}yes" >&6
8506else
8507 echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
8509
8510echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6
7692
7693fi
7694
7695
7696
7697
7698 # Most operating systems have gethostbyname() in the default searched
7699 # libraries (i.e. libc):

--- 1128 unchanged lines hidden (view full) ---

8828 echo "$as_me:$LINENO: result: yes" >&5
8829echo "${ECHO_T}yes" >&6
8830else
8831 echo "$as_me: failed program was:" >&5
8832sed 's/^/| /' conftest.$ac_ext >&5
8833
8834echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
8512 LIBOBJS="$LIBOBJS inet_ntop.o.$ac_objext"
8836 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8513fi
8514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8515echo "$as_me:$LINENO: checking for inet_pton" >&5
8516echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8517cat >conftest.$ac_ext <<_ACEOF
8518#line $LINENO "configure"
8519/* confdefs.h. */
8520_ACEOF

--- 28 unchanged lines hidden (view full) ---

8549 echo "$as_me:$LINENO: result: yes" >&5
8550echo "${ECHO_T}yes" >&6
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555echo "$as_me:$LINENO: result: no" >&5
8556echo "${ECHO_T}no" >&6
8837fi
8838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8839echo "$as_me:$LINENO: checking for inet_pton" >&5
8840echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8841cat >conftest.$ac_ext <<_ACEOF
8842#line $LINENO "configure"
8843/* confdefs.h. */
8844_ACEOF

--- 28 unchanged lines hidden (view full) ---

8873 echo "$as_me:$LINENO: result: yes" >&5
8874echo "${ECHO_T}yes" >&6
8875else
8876 echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879echo "$as_me:$LINENO: result: no" >&5
8880echo "${ECHO_T}no" >&6
8557 LIBOBJS="$LIBOBJS inet_pton.o.$ac_objext"
8881 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8558fi
8559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8560echo "$as_me:$LINENO: checking for inet_aton" >&5
8561echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8562cat >conftest.$ac_ext <<_ACEOF
8563#line $LINENO "configure"
8564/* confdefs.h. */
8565_ACEOF

--- 28 unchanged lines hidden (view full) ---

8594 echo "$as_me:$LINENO: result: yes" >&5
8595echo "${ECHO_T}yes" >&6
8596else
8597 echo "$as_me: failed program was:" >&5
8598sed 's/^/| /' conftest.$ac_ext >&5
8599
8600echo "$as_me:$LINENO: result: no" >&5
8601echo "${ECHO_T}no" >&6
8882fi
8883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8884echo "$as_me:$LINENO: checking for inet_aton" >&5
8885echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8886cat >conftest.$ac_ext <<_ACEOF
8887#line $LINENO "configure"
8888/* confdefs.h. */
8889_ACEOF

--- 28 unchanged lines hidden (view full) ---

8918 echo "$as_me:$LINENO: result: yes" >&5
8919echo "${ECHO_T}yes" >&6
8920else
8921 echo "$as_me: failed program was:" >&5
8922sed 's/^/| /' conftest.$ac_ext >&5
8923
8924echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
8602 LIBOBJS="$LIBOBJS inet_aton.o.$ac_objext"
8926 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8603fi
8604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8605
8927fi
8928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929
8930#
8931# Check for these after AC_LBL_LIBPCAP, for the same reason.
8932#
8933# You are in a twisty little maze of UN*Xes, all different.
8934# Some might not have ether_ntohost().
8935# Some might have it, but not declare it in any header file.
8936# Some might have it, but declare it in <netinet/if_ether.h>.
8937# Some might have it, but declare it in <netinet/ether.h>
8938# (And some might have it but document it as something declared in
8939# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8940#
8941# Before you is a C compiler.
8942#
8606
8943
8944for ac_func in ether_ntohost
8945do
8946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8947echo "$as_me:$LINENO: checking for $ac_func" >&5
8948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8949if eval "test \"\${$as_ac_var+set}\" = set"; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951else
8952 cat >conftest.$ac_ext <<_ACEOF
8953#line $LINENO "configure"
8954/* confdefs.h. */
8955_ACEOF
8956cat confdefs.h >>conftest.$ac_ext
8957cat >>conftest.$ac_ext <<_ACEOF
8958/* end confdefs.h. */
8959/* System header to define __stub macros and hopefully few prototypes,
8960 which can conflict with char $ac_func (); below.
8961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8962 <limits.h> exists even on freestanding compilers. */
8963#ifdef __STDC__
8964# include <limits.h>
8965#else
8966# include <assert.h>
8967#endif
8968/* Override any gcc2 internal prototype to avoid an error. */
8969#ifdef __cplusplus
8970extern "C"
8971{
8972#endif
8973/* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975char $ac_func ();
8976/* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8980choke me
8981#else
8982char (*f) () = $ac_func;
8983#endif
8984#ifdef __cplusplus
8985}
8986#endif
8987
8988int
8989main ()
8990{
8991return f != $ac_func;
8992 ;
8993 return 0;
8994}
8995_ACEOF
8996rm -f conftest.$ac_objext conftest$ac_exeext
8997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 eval "$as_ac_var=yes"
9009else
9010 echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
9013eval "$as_ac_var=no"
9014fi
9015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9016fi
9017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9019if test `eval echo '${'$as_ac_var'}'` = yes; then
9020 cat >>confdefs.h <<_ACEOF
9021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9022_ACEOF
9023
9024 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9025echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9026if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028else
9029
9030 if test "$cross_compiling" = yes; then
9031 ac_cv_buggy_ether_ntohost="not while cross-compiling"
9032else
9033 cat >conftest.$ac_ext <<_ACEOF
9034#line $LINENO "configure"
9035/* confdefs.h. */
9036_ACEOF
9037cat confdefs.h >>conftest.$ac_ext
9038cat >>conftest.$ac_ext <<_ACEOF
9039/* end confdefs.h. */
9040
9041 #include <netdb.h>
9042 #include <sys/types.h>
9043 #include <sys/param.h>
9044 #include <sys/socket.h>
9045
9046 int
9047 main(int argc, char **argv)
9048 {
9049 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9050 char name[MAXHOSTNAMELEN];
9051
9052 ether_ntohost(name, (struct ether_addr *)ea);
9053 exit(0);
9054 }
9055
9056_ACEOF
9057rm -f conftest$ac_exeext
9058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_buggy_ether_ntohost=no
9069else
9070 echo "$as_me: program exited with status $ac_status" >&5
9071echo "$as_me: failed program was:" >&5
9072sed 's/^/| /' conftest.$ac_ext >&5
9073
9074( exit $ac_status )
9075ac_cv_buggy_ether_ntohost=yes
9076fi
9077rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9078fi
9079fi
9080echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9081echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9082 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9083 cat >>confdefs.h <<\_ACEOF
9084#define USE_ETHER_NTOHOST 1
9085_ACEOF
9086
9087 fi
9088
9089fi
9090done
9091
9092if test "$ac_cv_func_ether_ntohost" = yes -a \
9093 "$ac_cv_buggy_ether_ntohost" = "no"; then
9094 #
9095 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
9096 #
9097 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9098 #
9099 # Yes. Does it declare ether_ntohost()?
9100 #
9101 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9102echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9103if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106 cat >conftest.$ac_ext <<_ACEOF
9107#line $LINENO "configure"
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113
9114#include <sys/types.h>
9115#include <sys/socket.h>
9116#include <netinet/in.h>
9117struct mbuf;
9118struct rtentry;
9119#include <net/if.h>
9120#include <netinet/if_ether.h>
9121
9122
9123int
9124main ()
9125{
9126#ifndef ether_ntohost
9127 char *p = (char *) ether_ntohost;
9128#endif
9129
9130 ;
9131 return 0;
9132}
9133_ACEOF
9134rm -f conftest.$ac_objext
9135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_have_decl_ether_ntohost=yes
9147else
9148 echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
9151ac_cv_have_decl_ether_ntohost=no
9152fi
9153rm -f conftest.$ac_objext conftest.$ac_ext
9154fi
9155echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9156echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9157if test $ac_cv_have_decl_ether_ntohost = yes; then
9158
9159cat >>confdefs.h <<_ACEOF
9160#define HAVE_DECL_ETHER_NTOHOST 1
9161_ACEOF
9162
9163
9164
9165cat >>confdefs.h <<\_ACEOF
9166#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9167_ACEOF
9168
9169
9170else
9171 cat >>confdefs.h <<_ACEOF
9172#define HAVE_DECL_ETHER_NTOHOST 0
9173_ACEOF
9174
9175
9176fi
9177
9178
9179 fi
9180 #
9181 # Did that succeed?
9182 #
9183 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9184 #
9185 # No, how about <netinet/ether.h>, as on Linux?
9186 #
9187
9188for ac_header in netinet/ether.h
9189do
9190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9191if eval "test \"\${$as_ac_Header+set}\" = set"; then
9192 echo "$as_me:$LINENO: checking for $ac_header" >&5
9193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9194if eval "test \"\${$as_ac_Header+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196fi
9197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9199else
9200 # Is the header compilable?
9201echo "$as_me:$LINENO: checking $ac_header usability" >&5
9202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9203cat >conftest.$ac_ext <<_ACEOF
9204#line $LINENO "configure"
9205/* confdefs.h. */
9206_ACEOF
9207cat confdefs.h >>conftest.$ac_ext
9208cat >>conftest.$ac_ext <<_ACEOF
9209/* end confdefs.h. */
9210$ac_includes_default
9211#include <$ac_header>
9212_ACEOF
9213rm -f conftest.$ac_objext
9214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_header_compiler=yes
9226else
9227 echo "$as_me: failed program was:" >&5
9228sed 's/^/| /' conftest.$ac_ext >&5
9229
9230ac_header_compiler=no
9231fi
9232rm -f conftest.$ac_objext conftest.$ac_ext
9233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9234echo "${ECHO_T}$ac_header_compiler" >&6
9235
9236# Is the header present?
9237echo "$as_me:$LINENO: checking $ac_header presence" >&5
9238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9239cat >conftest.$ac_ext <<_ACEOF
9240#line $LINENO "configure"
9241/* confdefs.h. */
9242_ACEOF
9243cat confdefs.h >>conftest.$ac_ext
9244cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h. */
9246#include <$ac_header>
9247_ACEOF
9248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9250 ac_status=$?
9251 grep -v '^ *+' conftest.er1 >conftest.err
9252 rm -f conftest.er1
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } >/dev/null; then
9256 if test -s conftest.err; then
9257 ac_cpp_err=$ac_c_preproc_warn_flag
9258 else
9259 ac_cpp_err=
9260 fi
9261else
9262 ac_cpp_err=yes
9263fi
9264if test -z "$ac_cpp_err"; then
9265 ac_header_preproc=yes
9266else
9267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 ac_header_preproc=no
9271fi
9272rm -f conftest.err conftest.$ac_ext
9273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9274echo "${ECHO_T}$ac_header_preproc" >&6
9275
9276# So? What about this header?
9277case $ac_header_compiler:$ac_header_preproc in
9278 yes:no )
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9283 (
9284 cat <<\_ASBOX
9285## ------------------------------------ ##
9286## Report this to bug-autoconf@gnu.org. ##
9287## ------------------------------------ ##
9288_ASBOX
9289 ) |
9290 sed "s/^/$as_me: WARNING: /" >&2
9291 ;;
9292 no:yes )
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9299 (
9300 cat <<\_ASBOX
9301## ------------------------------------ ##
9302## Report this to bug-autoconf@gnu.org. ##
9303## ------------------------------------ ##
9304_ASBOX
9305 ) |
9306 sed "s/^/$as_me: WARNING: /" >&2
9307 ;;
9308esac
9309echo "$as_me:$LINENO: checking for $ac_header" >&5
9310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9311if eval "test \"\${$as_ac_Header+set}\" = set"; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314 eval "$as_ac_Header=$ac_header_preproc"
9315fi
9316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9318
9319fi
9320if test `eval echo '${'$as_ac_Header'}'` = yes; then
9321 cat >>confdefs.h <<_ACEOF
9322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9323_ACEOF
9324
9325fi
9326
9327done
9328
9329 if test "$ac_cv_header_netinet_ether_h" = yes; then
9330 #
9331 # We have it - does it declare ether_ntohost()?
9332 # Unset ac_cv_have_decl_ether_ntohost so we don't
9333 # treat the previous failure as a cached value and
9334 # suppress the next test.
9335 #
9336 unset ac_cv_have_decl_ether_ntohost
9337 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9338echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9339if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342 cat >conftest.$ac_ext <<_ACEOF
9343#line $LINENO "configure"
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h. */
9349
9350#include <netinet/ether.h>
9351
9352
9353int
9354main ()
9355{
9356#ifndef ether_ntohost
9357 char *p = (char *) ether_ntohost;
9358#endif
9359
9360 ;
9361 return 0;
9362}
9363_ACEOF
9364rm -f conftest.$ac_objext
9365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9366 (eval $ac_compile) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -s conftest.$ac_objext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 ac_cv_have_decl_ether_ntohost=yes
9377else
9378 echo "$as_me: failed program was:" >&5
9379sed 's/^/| /' conftest.$ac_ext >&5
9380
9381ac_cv_have_decl_ether_ntohost=no
9382fi
9383rm -f conftest.$ac_objext conftest.$ac_ext
9384fi
9385echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9386echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9387if test $ac_cv_have_decl_ether_ntohost = yes; then
9388
9389cat >>confdefs.h <<_ACEOF
9390#define HAVE_DECL_ETHER_NTOHOST 1
9391_ACEOF
9392
9393
9394
9395cat >>confdefs.h <<\_ACEOF
9396#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9397_ACEOF
9398
9399
9400else
9401 cat >>confdefs.h <<_ACEOF
9402#define HAVE_DECL_ETHER_NTOHOST 0
9403_ACEOF
9404
9405
9406fi
9407
9408
9409 fi
9410 fi
9411fi
9412
9413
8607 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8608echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
8609 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611else
8612 cat >conftest.$ac_ext <<_ACEOF
8613#line $LINENO "configure"
8614/* confdefs.h. */

--- 129 unchanged lines hidden (view full) ---

8744 cat >>confdefs.h <<_ACEOF
8745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8746_ACEOF
8747
8748fi
8749done
8750
8751if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9414 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9415echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9416 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418else
9419 cat >conftest.$ac_ext <<_ACEOF
9420#line $LINENO "configure"
9421/* confdefs.h. */

--- 129 unchanged lines hidden (view full) ---

9551 cat >>confdefs.h <<_ACEOF
9552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9553_ACEOF
9554
9555fi
9556done
9557
9558if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9559 savedcflags="$CFLAGS"
9560 CFLAGS="$CFLAGS $V_INCLS"
8752 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
8753echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
8754if test "${ac_cv_type_pcap_if_t+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756else
8757 cat >conftest.$ac_ext <<_ACEOF
8758#line $LINENO "configure"
8759/* confdefs.h. */

--- 41 unchanged lines hidden (view full) ---

8801
8802cat >>confdefs.h <<_ACEOF
8803#define HAVE_PCAP_IF_T 1
8804_ACEOF
8805
8806
8807fi
8808
9561 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9562echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9563if test "${ac_cv_type_pcap_if_t+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565else
9566 cat >conftest.$ac_ext <<_ACEOF
9567#line $LINENO "configure"
9568/* confdefs.h. */

--- 41 unchanged lines hidden (view full) ---

9610
9611cat >>confdefs.h <<_ACEOF
9612#define HAVE_PCAP_IF_T 1
9613_ACEOF
9614
9615
9616fi
9617
9618 CFLAGS="$savedcflags"
8809fi
9619fi
9620
8810if test $ac_cv_func_pcap_lib_version = "no" ; then
8811 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
8812echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8814#line $LINENO "configure"
8815/* confdefs.h. */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h. */
8820
8821int
8822main ()
8823{
8824
9621if test $ac_cv_func_pcap_lib_version = "no" ; then
9622 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9623echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9624 cat >conftest.$ac_ext <<_ACEOF
9625#line $LINENO "configure"
9626/* confdefs.h. */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h. */
9631
9632int
9633main ()
9634{
9635
8825char *
8826return_pcap_version(void)
8827{
8828 extern char pcap_version[];
8829
9636 extern char pcap_version[];
9637
8830 return pcap_version;
8831}
9638 return (int)pcap_version;
8832
8833 ;
8834 return 0;
8835}
8836_ACEOF
8837rm -f conftest.$ac_objext conftest$ac_exeext
8838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>&5

--- 35 unchanged lines hidden (view full) ---

8875cat confdefs.h >>conftest.$ac_ext
8876cat >>conftest.$ac_ext <<_ACEOF
8877/* end confdefs.h. */
8878
8879int
8880main ()
8881{
8882
9639
9640 ;
9641 return 0;
9642}
9643_ACEOF
9644rm -f conftest.$ac_objext conftest$ac_exeext
9645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>&5

--- 35 unchanged lines hidden (view full) ---

9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h. */
9685
9686int
9687main ()
9688{
9689
8883int
8884return_pcap_debug(void)
8885{
8886 extern int pcap_debug;
8887
8888 return pcap_debug;
9690 extern int pcap_debug;
9691
9692 return pcap_debug;
8889}
8890
8891 ;
8892 return 0;
8893}
8894_ACEOF
8895rm -f conftest.$ac_objext conftest$ac_exeext
8896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5

--- 36 unchanged lines hidden (view full) ---

8934cat confdefs.h >>conftest.$ac_ext
8935cat >>conftest.$ac_ext <<_ACEOF
8936/* end confdefs.h. */
8937
8938int
8939main ()
8940{
8941
9693
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext conftest$ac_exeext
9699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>&5

--- 36 unchanged lines hidden (view full) ---

9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h. */
9740
9741int
9742main ()
9743{
9744
8942 int
8943 return_yydebug(void)
8944 {
8945 extern int yydebug;
8946
8947 return yydebug;
9745 extern int yydebug;
9746
9747 return yydebug;
8948 }
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954rm -f conftest.$ac_objext conftest$ac_exeext
8955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>&5

--- 480 unchanged lines hidden (view full) ---

9437 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9438echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9439 if test $ac_cv_lbl_have_u_int32_t = no ; then
9440 cat >>confdefs.h <<\_ACEOF
9441#define u_int32_t u_int
9442_ACEOF
9443
9444 fi
9748
9749 ;
9750 return 0;
9751}
9752_ACEOF
9753rm -f conftest.$ac_objext conftest$ac_exeext
9754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>&5

--- 480 unchanged lines hidden (view full) ---

10236 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
10237echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
10238 if test $ac_cv_lbl_have_u_int32_t = no ; then
10239 cat >>confdefs.h <<\_ACEOF
10240#define u_int32_t u_int
10241_ACEOF
10242
10243 fi
10244echo "$as_me:$LINENO: checking for int64_t using $CC" >&5
10245echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
10246 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248else
10249 cat >conftest.$ac_ext <<_ACEOF
10250#line $LINENO "configure"
10251/* confdefs.h. */
10252_ACEOF
10253cat confdefs.h >>conftest.$ac_ext
10254cat >>conftest.$ac_ext <<_ACEOF
10255/* end confdefs.h. */
9445
10256
10257# include "confdefs.h"
10258# include <sys/types.h>
10259# if STDC_HEADERS
10260# include <stdlib.h>
10261# include <stddef.h>
10262# endif
10263int
10264main ()
10265{
10266int64_t i
10267 ;
10268 return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext
10272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_cv_lbl_have_int64_t=yes
10284else
10285 echo "$as_me: failed program was:" >&5
10286sed 's/^/| /' conftest.$ac_ext >&5
10287
10288ac_cv_lbl_have_int64_t=no
10289fi
10290rm -f conftest.$ac_objext conftest.$ac_ext
10291fi
10292
10293 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5
10294echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
10295 if test $ac_cv_lbl_have_int64_t = no ; then
10296 cat >>confdefs.h <<\_ACEOF
10297#define int64_t long long
10298_ACEOF
10299
10300 fi
10301echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
10302echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
10303 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306 cat >conftest.$ac_ext <<_ACEOF
10307#line $LINENO "configure"
10308/* confdefs.h. */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
10313
10314# include "confdefs.h"
10315# include <sys/types.h>
10316# if STDC_HEADERS
10317# include <stdlib.h>
10318# include <stddef.h>
10319# endif
10320int
10321main ()
10322{
10323u_int64_t i
10324 ;
10325 return 0;
10326}
10327_ACEOF
10328rm -f conftest.$ac_objext
10329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10330 (eval $ac_compile) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_lbl_have_u_int64_t=yes
10341else
10342 echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345ac_cv_lbl_have_u_int64_t=no
10346fi
10347rm -f conftest.$ac_objext conftest.$ac_ext
10348fi
10349
10350 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
10351echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
10352 if test $ac_cv_lbl_have_u_int64_t = no ; then
10353 cat >>confdefs.h <<\_ACEOF
10354#define u_int64_t unsigned long long
10355_ACEOF
10356
10357 fi
10358
10359#
10360# We can't just check for <inttypes.h> - some systems have one that
10361# doesn't define all the PRI[doxu]64 macros.
10362#
10363
10364for ac_header in inttypes.h
10365do
10366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367if eval "test \"\${$as_ac_Header+set}\" = set"; then
10368 echo "$as_me:$LINENO: checking for $ac_header" >&5
10369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10370if eval "test \"\${$as_ac_Header+set}\" = set"; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372fi
10373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10375else
10376 # Is the header compilable?
10377echo "$as_me:$LINENO: checking $ac_header usability" >&5
10378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10379cat >conftest.$ac_ext <<_ACEOF
10380#line $LINENO "configure"
10381/* confdefs.h. */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h. */
10386$ac_includes_default
10387#include <$ac_header>
10388_ACEOF
10389rm -f conftest.$ac_objext
10390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -s conftest.$ac_objext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_header_compiler=yes
10402else
10403 echo "$as_me: failed program was:" >&5
10404sed 's/^/| /' conftest.$ac_ext >&5
10405
10406ac_header_compiler=no
10407fi
10408rm -f conftest.$ac_objext conftest.$ac_ext
10409echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10410echo "${ECHO_T}$ac_header_compiler" >&6
10411
10412# Is the header present?
10413echo "$as_me:$LINENO: checking $ac_header presence" >&5
10414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10415cat >conftest.$ac_ext <<_ACEOF
10416#line $LINENO "configure"
10417/* confdefs.h. */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h. */
10422#include <$ac_header>
10423_ACEOF
10424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } >/dev/null; then
10432 if test -s conftest.err; then
10433 ac_cpp_err=$ac_c_preproc_warn_flag
10434 else
10435 ac_cpp_err=
10436 fi
10437else
10438 ac_cpp_err=yes
10439fi
10440if test -z "$ac_cpp_err"; then
10441 ac_header_preproc=yes
10442else
10443 echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446 ac_header_preproc=no
10447fi
10448rm -f conftest.err conftest.$ac_ext
10449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10450echo "${ECHO_T}$ac_header_preproc" >&6
10451
10452# So? What about this header?
10453case $ac_header_compiler:$ac_header_preproc in
10454 yes:no )
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 (
10460 cat <<\_ASBOX
10461## ------------------------------------ ##
10462## Report this to bug-autoconf@gnu.org. ##
10463## ------------------------------------ ##
10464_ASBOX
10465 ) |
10466 sed "s/^/$as_me: WARNING: /" >&2
10467 ;;
10468 no:yes )
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10475 (
10476 cat <<\_ASBOX
10477## ------------------------------------ ##
10478## Report this to bug-autoconf@gnu.org. ##
10479## ------------------------------------ ##
10480_ASBOX
10481 ) |
10482 sed "s/^/$as_me: WARNING: /" >&2
10483 ;;
10484esac
10485echo "$as_me:$LINENO: checking for $ac_header" >&5
10486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10487if eval "test \"\${$as_ac_Header+set}\" = set"; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489else
10490 eval "$as_ac_Header=$ac_header_preproc"
10491fi
10492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10494
10495fi
10496if test `eval echo '${'$as_ac_Header'}'` = yes; then
10497 cat >>confdefs.h <<_ACEOF
10498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499_ACEOF
10500
10501 #
10502 # OK, we have inttypes.h, but does it define those macros?
10503 #
10504 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10505echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10506 cat >conftest.$ac_ext <<_ACEOF
10507
10508 #line $LINENO "configure"
10509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h. */
10514
10515 #include <inttypes.h>
10516 #include <stdio.h>
10517 #include <sys/types.h>
10518
10519 main()
10520 {
10521 printf("%" PRId64 "\n", (u_int64_t)1);
10522 printf("%" PRIo64 "\n", (u_int64_t)1);
10523 printf("%" PRIx64 "\n", (u_int64_t)1);
10524 printf("%" PRIu64 "\n", (u_int64_t)1);
10525 }
10526
10527
10528_ACEOF
10529rm -f conftest.$ac_objext
10530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -s conftest.$ac_objext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541
10542 echo "$as_me:$LINENO: result: yes" >&5
10543echo "${ECHO_T}yes" >&6
10544 ac_lbl_inttypes_h_defines_formats=yes
10545
10546else
10547 echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550
10551 echo "$as_me:$LINENO: result: no" >&5
10552echo "${ECHO_T}no" >&6
10553 ac_lbl_inttypes_h_defines_formats=no
10554
10555fi
10556rm -f conftest.$ac_objext conftest.$ac_ext
10557
10558else
10559
10560 #
10561 # We don't have inttypes.h, so it obviously can't define those
10562 # macros.
10563 #
10564 ac_lbl_inttypes_h_defines_formats=no
10565
10566fi
10567
10568done
10569
10570if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
10571 cat >>confdefs.h <<\_ACEOF
10572#define INTTYPES_H_DEFINES_FORMATS 1
10573_ACEOF
10574
10575else
10576
10577 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10578echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10579 if test "$cross_compiling" = yes; then
10580 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10581See \`config.log' for more details." >&5
10582echo "$as_me: error: cannot run test program while cross compiling
10583See \`config.log' for more details." >&2;}
10584 { (exit 1); exit 1; }; }
10585else
10586 cat >conftest.$ac_ext <<_ACEOF
10587
10588 #line $LINENO "configure"
10589/* confdefs.h. */
10590_ACEOF
10591cat confdefs.h >>conftest.$ac_ext
10592cat >>conftest.$ac_ext <<_ACEOF
10593/* end confdefs.h. */
10594
10595# ifdef HAVE_INTTYPES_H
10596 #include <inttypes.h>
10597# endif
10598 #include <stdio.h>
10599 #include <sys/types.h>
10600
10601 main()
10602 {
10603 u_int64_t t = 1;
10604 char strbuf[16+1];
10605 sprintf(strbuf, "%016llx", t << 32);
10606 if (strcmp(strbuf, "0000000100000000") == 0)
10607 exit(0);
10608 else
10609 exit(1);
10610 }
10611
10612
10613_ACEOF
10614rm -f conftest$ac_exeext
10615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625
10626 cat >>confdefs.h <<\_ACEOF
10627#define PRId64 "lld"
10628_ACEOF
10629
10630 cat >>confdefs.h <<\_ACEOF
10631#define PRIo64 "llo"
10632_ACEOF
10633
10634 cat >>confdefs.h <<\_ACEOF
10635#define PRIx64 "llx"
10636_ACEOF
10637
10638 cat >>confdefs.h <<\_ACEOF
10639#define PRIu64 "llu"
10640_ACEOF
10641
10642 echo "$as_me:$LINENO: result: yes" >&5
10643echo "${ECHO_T}yes" >&6
10644
10645else
10646 echo "$as_me: program exited with status $ac_status" >&5
10647echo "$as_me: failed program was:" >&5
10648sed 's/^/| /' conftest.$ac_ext >&5
10649
10650( exit $ac_status )
10651
10652 echo "$as_me:$LINENO: result: no" >&5
10653echo "${ECHO_T}no" >&6
10654
10655
10656 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10657echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10658 if test "$cross_compiling" = yes; then
10659 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10660See \`config.log' for more details." >&5
10661echo "$as_me: error: cannot run test program while cross compiling
10662See \`config.log' for more details." >&2;}
10663 { (exit 1); exit 1; }; }
10664else
10665 cat >conftest.$ac_ext <<_ACEOF
10666
10667 #line $LINENO "configure"
10668/* confdefs.h. */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h. */
10673
10674# ifdef HAVE_INTTYPES_H
10675 #include <inttypes.h>
10676# endif
10677 #include <stdio.h>
10678 #include <sys/types.h>
10679
10680 main()
10681 {
10682 u_int64_t t = 1;
10683 char strbuf[16+1];
10684 sprintf(strbuf, "%016Lx", t << 32);
10685 if (strcmp(strbuf, "0000000100000000") == 0)
10686 exit(0);
10687 else
10688 exit(1);
10689 }
10690
10691
10692_ACEOF
10693rm -f conftest$ac_exeext
10694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704
10705 cat >>confdefs.h <<\_ACEOF
10706#define PRId64 "Ld"
10707_ACEOF
10708
10709 cat >>confdefs.h <<\_ACEOF
10710#define PRIo64 "Lo"
10711_ACEOF
10712
10713 cat >>confdefs.h <<\_ACEOF
10714#define PRIx64 "Lx"
10715_ACEOF
10716
10717 cat >>confdefs.h <<\_ACEOF
10718#define PRIu64 "Lu"
10719_ACEOF
10720
10721 echo "$as_me:$LINENO: result: yes" >&5
10722echo "${ECHO_T}yes" >&6
10723
10724else
10725 echo "$as_me: program exited with status $ac_status" >&5
10726echo "$as_me: failed program was:" >&5
10727sed 's/^/| /' conftest.$ac_ext >&5
10728
10729( exit $ac_status )
10730
10731 echo "$as_me:$LINENO: result: no" >&5
10732echo "${ECHO_T}no" >&6
10733
10734
10735 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10736echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
10737 if test "$cross_compiling" = yes; then
10738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10739See \`config.log' for more details." >&5
10740echo "$as_me: error: cannot run test program while cross compiling
10741See \`config.log' for more details." >&2;}
10742 { (exit 1); exit 1; }; }
10743else
10744 cat >conftest.$ac_ext <<_ACEOF
10745
10746 #line $LINENO "configure"
10747/* confdefs.h. */
10748_ACEOF
10749cat confdefs.h >>conftest.$ac_ext
10750cat >>conftest.$ac_ext <<_ACEOF
10751/* end confdefs.h. */
10752
10753# ifdef HAVE_INTTYPES_H
10754 #include <inttypes.h>
10755# endif
10756 #include <stdio.h>
10757 #include <sys/types.h>
10758
10759 main()
10760 {
10761 u_int64_t t = 1;
10762 char strbuf[16+1];
10763 sprintf(strbuf, "%016qx", t << 32);
10764 if (strcmp(strbuf, "0000000100000000") == 0)
10765 exit(0);
10766 else
10767 exit(1);
10768 }
10769
10770
10771_ACEOF
10772rm -f conftest$ac_exeext
10773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783
10784 cat >>confdefs.h <<\_ACEOF
10785#define PRId64 "qd"
10786_ACEOF
10787
10788 cat >>confdefs.h <<\_ACEOF
10789#define PRIo64 "qo"
10790_ACEOF
10791
10792 cat >>confdefs.h <<\_ACEOF
10793#define PRIx64 "qx"
10794_ACEOF
10795
10796 cat >>confdefs.h <<\_ACEOF
10797#define PRIu64 "qu"
10798_ACEOF
10799
10800 echo "$as_me:$LINENO: result: yes" >&5
10801echo "${ECHO_T}yes" >&6
10802
10803else
10804 echo "$as_me: program exited with status $ac_status" >&5
10805echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
10808( exit $ac_status )
10809
10810 echo "$as_me:$LINENO: result: no" >&5
10811echo "${ECHO_T}no" >&6
10812
10813 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10814echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10815 { (exit 1); exit 1; }; }
10816
10817
10818fi
10819rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10820fi
10821
10822
10823
10824fi
10825rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10826fi
10827
10828
10829
10830fi
10831rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10832fi
10833
10834fi
10835
9446rm -f os-proto.h
9447 if test "${LBL_CFLAGS+set}" = set; then
9448 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9449 fi
9450 if test -f .devel ; then
9451 if test "$GCC" = yes ; then
9452 if test "${LBL_CFLAGS+set}" != set; then
9453 if test "$ac_cv_prog_cc_g" = yes ; then

--- 241 unchanged lines hidden (view full) ---

9695 withval="$with_crypto"
9696
9697else
9698
9699echo "$as_me:$LINENO: checking for SSLeay" >&5
9700echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
9701ac_cv_ssleay_path=no
9702incdir=no
10836rm -f os-proto.h
10837 if test "${LBL_CFLAGS+set}" = set; then
10838 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10839 fi
10840 if test -f .devel ; then
10841 if test "$GCC" = yes ; then
10842 if test "${LBL_CFLAGS+set}" != set; then
10843 if test "$ac_cv_prog_cc_g" = yes ; then

--- 241 unchanged lines hidden (view full) ---

11085 withval="$with_crypto"
11086
11087else
11088
11089echo "$as_me:$LINENO: checking for SSLeay" >&5
11090echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11091ac_cv_ssleay_path=no
11092incdir=no
9703for dir in /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
11093
11094Xprefix=`eval echo $prefix`
11095
11096for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
9704 #
9705 # XXX - is there a better way to check if a given library is
9706 # in a given directory than checking each of the possible
9707 # shared library suffixes?
9708 #
9709 # Are there any other suffixes we need to look for? Do we have to
9710 # worry about ".so.{version}"?
9711 #

--- 22 unchanged lines hidden (view full) ---

9734 LDFLAGS="-L$dir/lib $LDFLAGS"
9735 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
9736 LIBS="$LIBS -lRSAglue"
9737 fi
9738 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
9739 LIBS="$LIBS -lrsaref"
9740 fi
9741
11097 #
11098 # XXX - is there a better way to check if a given library is
11099 # in a given directory than checking each of the possible
11100 # shared library suffixes?
11101 #
11102 # Are there any other suffixes we need to look for? Do we have to
11103 # worry about ".so.{version}"?
11104 #

--- 22 unchanged lines hidden (view full) ---

11127 LDFLAGS="-L$dir/lib $LDFLAGS"
11128 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11129 LIBS="$LIBS -lRSAglue"
11130 fi
11131 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11132 LIBS="$LIBS -lrsaref"
11133 fi
11134
9742echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
9743echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
9744if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
11135echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11136echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11137if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747 ac_check_lib_save_LIBS=$LIBS
9748LIBS="-lcrypto $LIBS"
9749cat >conftest.$ac_ext <<_ACEOF
9750#line $LINENO "configure"
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756
9757/* Override any gcc2 internal prototype to avoid an error. */
9758#ifdef __cplusplus
9759extern "C"
9760#endif
9761/* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139else
11140 ac_check_lib_save_LIBS=$LIBS
11141LIBS="-lcrypto $LIBS"
11142cat >conftest.$ac_ext <<_ACEOF
11143#line $LINENO "configure"
11144/* confdefs.h. */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h. */
11149
11150/* Override any gcc2 internal prototype to avoid an error. */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154/* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
9763char des_cbc_encrypt ();
11156char DES_cbc_encrypt ();
9764int
9765main ()
9766{
11157int
11158main ()
11159{
9767des_cbc_encrypt ();
11160DES_cbc_encrypt ();
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext conftest$ac_exeext
9773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
11161 ;
11162 return 0;
11163}
11164_ACEOF
11165rm -f conftest.$ac_objext conftest$ac_exeext
11166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167 (eval $ac_link) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -s conftest$ac_exeext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
9784 ac_cv_lib_crypto_des_cbc_encrypt=yes
11177 ac_cv_lib_crypto_DES_cbc_encrypt=yes
9785else
9786 echo "$as_me: failed program was:" >&5
9787sed 's/^/| /' conftest.$ac_ext >&5
9788
11178else
11179 echo "$as_me: failed program was:" >&5
11180sed 's/^/| /' conftest.$ac_ext >&5
11181
9789ac_cv_lib_crypto_des_cbc_encrypt=no
11182ac_cv_lib_crypto_DES_cbc_encrypt=no
9790fi
9791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9792LIBS=$ac_check_lib_save_LIBS
9793fi
11183fi
11184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11185LIBS=$ac_check_lib_save_LIBS
11186fi
9794echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
9795echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
9796if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
11187echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11188echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11189if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
9797 cat >>confdefs.h <<_ACEOF
9798#define HAVE_LIBCRYPTO 1
9799_ACEOF
9800
9801 LIBS="-lcrypto $LIBS"
9802
9803fi
9804

--- 140 unchanged lines hidden (view full) ---

9945fi
9946
9947done
9948
9949fi
9950
9951fi;
9952
11190 cat >>confdefs.h <<_ACEOF
11191#define HAVE_LIBCRYPTO 1
11192_ACEOF
11193
11194 LIBS="-lcrypto $LIBS"
11195
11196fi
11197

--- 140 unchanged lines hidden (view full) ---

11338fi
11339
11340done
11341
11342fi
11343
11344fi;
11345
11346if test "$missing_includes" = "yes"; then
11347 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
11348 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
11349fi
9953
9954
9955
9956
9957
9958
9959
11350
11351
11352
11353
11354
11355
11356
11357
9960# Find a good install program. We prefer a C program (faster),
9961# so one script is as good as another. But avoid the broken or
9962# incompatible versions:
9963# SysV /etc/install, /usr/sbin/install
9964# SunOS /usr/etc/install
9965# IRIX /sbin/install
9966# AIX /bin/install
9967# AmigaOS /C/install, which installs bootblocks on floppy discs

--- 1249 unchanged lines hidden ---
11358# Find a good install program. We prefer a C program (faster),
11359# so one script is as good as another. But avoid the broken or
11360# incompatible versions:
11361# SysV /etc/install, /usr/sbin/install
11362# SunOS /usr/etc/install
11363# IRIX /sbin/install
11364# AIX /bin/install
11365# AmigaOS /C/install, which installs bootblocks on floppy discs

--- 1249 unchanged lines hidden ---