5424
{ echo "$as_me:$LINENO: Using DLPI link layer implementation." >&5
5425
echo "$as_me: Using DLPI link layer implementation." >&6;};
5435
for ac_header in sys/dlpi.h sys/dlpihdr.h sys/stat.h fcntl.h stropts.h sys/ioctl.h sys/sockio.h net/if.h sys/bufmod.h
5437
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5438
echo "$as_me:$LINENO: checking for $ac_header" >&5
5439
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5440
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5441
echo $ECHO_N "(cached) $ECHO_C" >&6
5443
cat >conftest.$ac_ext <<_ACEOF
5446
cat confdefs.h >>conftest.$ac_ext
5447
cat >>conftest.$ac_ext <<_ACEOF
5448
/* end confdefs.h. */
5450
#include <sys/types.h>
5451
#ifdef HAVE_SYS_SOCKET_H
5452
#include <sys/socket.h>
5456
#include <$ac_header>
5458
rm -f conftest.$ac_objext
5459
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460
(eval $ac_compile) 2>conftest.er1
5462
grep -v '^ *+' conftest.er1 >conftest.err
5464
cat conftest.err >&5
5465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466
(exit $ac_status); } &&
5467
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472
(exit $ac_status); }; } &&
5473
{ ac_try='test -s conftest.$ac_objext'
5474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478
(exit $ac_status); }; }; then
5479
eval "$as_ac_Header=yes"
5481
echo "$as_me: failed program was:" >&5
5482
sed 's/^/| /' conftest.$ac_ext >&5
5484
eval "$as_ac_Header=no"
5486
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5489
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5490
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5491
cat >>confdefs.h <<_ACEOF
5492
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500
cat >>confdefs.h <<\_ACEOF
5501
#define ARP_PCAP_DLPI 1
5505
"link-dlpi.$ac_objext" | \
5506
*" link-dlpi.$ac_objext" | \
5507
"link-dlpi.$ac_objext "* | \
5508
*" link-dlpi.$ac_objext "* ) ;;
5509
*) LIBOBJS="$LIBOBJS link-dlpi.$ac_objext" ;;
5420
5514
{ { echo "$as_me:$LINENO: error: Host operating system $host_os is not supported" >&5
5421
5515
echo "$as_me: error: Host operating system $host_os is not supported" >&2;}
5735
echo "$as_me:$LINENO: checking for strlcat" >&5
5736
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
5737
if test "${ac_cv_func_strlcat+set}" = set; then
5738
echo $ECHO_N "(cached) $ECHO_C" >&6
5740
cat >conftest.$ac_ext <<_ACEOF
5743
cat confdefs.h >>conftest.$ac_ext
5744
cat >>conftest.$ac_ext <<_ACEOF
5745
/* end confdefs.h. */
5746
/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
5747
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5748
#define strlcat innocuous_strlcat
5750
/* System header to define __stub macros and hopefully few prototypes,
5751
which can conflict with char strlcat (); below.
5752
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5753
<limits.h> exists even on freestanding compilers. */
5756
# include <limits.h>
5758
# include <assert.h>
5763
/* Override any gcc2 internal prototype to avoid an error. */
5768
/* We use char because int might match the return type of a gcc2
5769
builtin and then its argument prototype would still apply. */
5771
/* The GNU C library defines this for functions which it implements
5772
to always fail with ENOSYS. Some functions are actually named
5773
something starting with __ and the normal name is an alias. */
5774
#if defined (__stub_strlcat) || defined (__stub___strlcat)
5777
char (*f) () = strlcat;
5786
return f != strlcat;
5791
rm -f conftest.$ac_objext conftest$ac_exeext
5792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793
(eval $ac_link) 2>conftest.er1
5795
grep -v '^ *+' conftest.er1 >conftest.err
5797
cat conftest.err >&5
5798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799
(exit $ac_status); } &&
5800
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805
(exit $ac_status); }; } &&
5806
{ ac_try='test -s conftest$ac_exeext'
5807
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811
(exit $ac_status); }; }; then
5812
ac_cv_func_strlcat=yes
5814
echo "$as_me: failed program was:" >&5
5815
sed 's/^/| /' conftest.$ac_ext >&5
5817
ac_cv_func_strlcat=no
5819
rm -f conftest.err conftest.$ac_objext \
5820
conftest$ac_exeext conftest.$ac_ext
5822
echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
5823
echo "${ECHO_T}$ac_cv_func_strlcat" >&6
5824
if test $ac_cv_func_strlcat = yes; then
5826
cat >>confdefs.h <<\_ACEOF
5827
#define HAVE_STRLCAT 1
5832
"strlcat.$ac_objext" | \
5833
*" strlcat.$ac_objext" | \
5834
"strlcat.$ac_objext "* | \
5835
*" strlcat.$ac_objext "* ) ;;
5836
*) LIBOBJS="$LIBOBJS strlcat.$ac_objext" ;;
5841
echo "$as_me:$LINENO: checking for strlcpy" >&5
5842
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
5843
if test "${ac_cv_func_strlcpy+set}" = set; then
5844
echo $ECHO_N "(cached) $ECHO_C" >&6
5846
cat >conftest.$ac_ext <<_ACEOF
5849
cat confdefs.h >>conftest.$ac_ext
5850
cat >>conftest.$ac_ext <<_ACEOF
5851
/* end confdefs.h. */
5852
/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
5853
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5854
#define strlcpy innocuous_strlcpy
5856
/* System header to define __stub macros and hopefully few prototypes,
5857
which can conflict with char strlcpy (); below.
5858
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5859
<limits.h> exists even on freestanding compilers. */
5862
# include <limits.h>
5864
# include <assert.h>
5869
/* Override any gcc2 internal prototype to avoid an error. */
5874
/* We use char because int might match the return type of a gcc2
5875
builtin and then its argument prototype would still apply. */
5877
/* The GNU C library defines this for functions which it implements
5878
to always fail with ENOSYS. Some functions are actually named
5879
something starting with __ and the normal name is an alias. */
5880
#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
5883
char (*f) () = strlcpy;
5892
return f != strlcpy;
5897
rm -f conftest.$ac_objext conftest$ac_exeext
5898
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5899
(eval $ac_link) 2>conftest.er1
5901
grep -v '^ *+' conftest.er1 >conftest.err
5903
cat conftest.err >&5
5904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905
(exit $ac_status); } &&
5906
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5907
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911
(exit $ac_status); }; } &&
5912
{ ac_try='test -s conftest$ac_exeext'
5913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917
(exit $ac_status); }; }; then
5918
ac_cv_func_strlcpy=yes
5920
echo "$as_me: failed program was:" >&5
5921
sed 's/^/| /' conftest.$ac_ext >&5
5923
ac_cv_func_strlcpy=no
5925
rm -f conftest.err conftest.$ac_objext \
5926
conftest$ac_exeext conftest.$ac_ext
5928
echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
5929
echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
5930
if test $ac_cv_func_strlcpy = yes; then
5932
cat >>confdefs.h <<\_ACEOF
5933
#define HAVE_STRLCPY 1
5938
"strlcpy.$ac_objext" | \
5939
*" strlcpy.$ac_objext" | \
5940
"strlcpy.$ac_objext "* | \
5941
*" strlcpy.$ac_objext "* ) ;;
5942
*) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" ;;
5641
5948
ac_config_files="$ac_config_files Makefile"
5643
5950
cat >confcache <<\_ACEOF