-dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.65 1999-10-30 05:11:06 itojun Exp $ (LBL)
+dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.66 1999-10-30 07:36:35 itojun Exp $ (LBL)
dnl
dnl Copyright (c) 1995, 1996, 1997, 1998
dnl The Regents of the University of California. All rights reserved.
$1="-O"
$2=""
if test "${srcdir}" != "." ; then
- $2="-I\$\(srcdir\)"
+ $2="-I\$(srcdir)"
fi
if test "${CFLAGS+set}" = set; then
LBL_CFLAGS="$CFLAGS"
continue;
fi
lastdir=$dir
- if test -r $dir/pcap.c ; then
+ if test -r $dir/libpcap.a ; then
libpcap=$dir/libpcap.a
d=$dir
dnl continue and select the last one that exists
fi
else
$1=$libpcap
+ if test -r $d/pcap.h; then
$2="-I$d $$2"
+ elif test -r $srcdir/../libpcap/pcap.h; then
+ $2="-I$d -I$srcdir/../libpcap $$2"
+ else
+ AC_MSG_ERROR(cannot find pcap.h, see INSTALL)
+ fi
AC_MSG_RESULT($libpcap)
fi
LIBS="$libpcap $LIBS"
AC_MSG_CHECKING(for AAAA)
AC_CACHE_VAL($1,
AC_TRY_COMPILE([
+# include <sys/types.h>
# include <arpa/nameser.h>],
[int a = T_AAAA],
$1=yes,