tcpdump does not call pfopen().
AC_DEFINE_UNQUOTED(inline, $ac_cv_lbl_inline, [Define as token for inline if inlining supported])])
dnl
-dnl Use pfopen.c if available and pfopen() not in standard libraries
dnl Require libpcap
dnl Look for libpcap in directories under ..; those are local versions.
dnl Look for an installed libpcap if there is no local version or if
dnl $1 (pcapdep set)
dnl $2 (incls appended)
dnl LIBS
-dnl LBL_LIBS
dnl
AC_DEFUN(AC_LBL_LIBPCAP,
[AC_REQUIRE([AC_LBL_LIBRARY_NET])
- dnl
- dnl save a copy before locating libpcap.a
- dnl
- LBL_LIBS="$LIBS"
- pfopen=/usr/examples/packetfilter/pfopen.c
- if test -f $pfopen ; then
- AC_CHECK_FUNCS(pfopen)
- if test $ac_cv_func_pfopen = "no" ; then
- AC_MSG_RESULT(Using $pfopen)
- LIBS="$LIBS $pfopen"
- fi
- fi
libpcap=FAIL
AC_MSG_CHECKING([whether to look for a local libpcap])
AC_ARG_ENABLE(local-libpcap,
/* Define to 1 if you have the `pcap_wsockinit' function. */
#cmakedefine HAVE_PCAP_WSOCKINIT 1
-/* Define to 1 if you have the `pfopen' function. */
-#cmakedefine HAVE_PFOPEN 1
-
/* Define to 1 if you have the <rpc/rpcent.h> header file. */
#cmakedefine HAVE_RPC_RPCENT_H 1
/* define if libpcap has pcap_version */
#undef HAVE_PCAP_VERSION
-/* Define to 1 if you have the `pfopen' function. */
-#undef HAVE_PFOPEN
-
/* Define to 1 if you have the <rpc/rpcent.h> header file. */
#undef HAVE_RPC_RPCENT_H
- LBL_LIBS="$LIBS"
- pfopen=/usr/examples/packetfilter/pfopen.c
- if test -f $pfopen ; then
- for ac_func in pfopen
-do :
- ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen"
-if test "x$ac_cv_func_pfopen" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_PFOPEN 1
-_ACEOF
-
-fi
-done
-
- if test $ac_cv_func_pfopen = "no" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5
-$as_echo "Using $pfopen" >&6; }
- LIBS="$LIBS $pfopen"
- fi
- fi
libpcap=FAIL
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for a local libpcap" >&5
$as_echo_n "checking whether to look for a local libpcap... " >&6; }
#endif
int gettimeofday(struct timeval *, struct timezone *);
int ioctl(int, int, caddr_t);
-int pfopen(char *, int);
int setlinebuf(FILE *);
int socket(int, int, int);