New build path variable
[freeradius.git] / configure.in
index 6cf97e4..da1b57c 100644 (file)
@@ -95,7 +95,8 @@ AC_SUBST(LTDL_SUBDIRS)
 dnl use system-wide libtool, if it exists
 AC_ARG_WITH(system-libtool,
 [  --with-system-libtool   Use the libtool installed in your system (default=use our own)],
-[ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) ],
+[ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) AC_LIBTOOL_DLOPEN
+AC_PROG_LIBTOOL],
 [
   LIBTOOL="`pwd`/libtool"
   AC_SUBST(LIBTOOL)
@@ -716,6 +717,15 @@ else
        [ PCAP_LIBS=
        AC_MSG_WARN([pcap.h not found, silently disabling the RADIUS sniffer.])
        ])
+
+    AC_CHECK_LIB(pcap, pcap_fopen_offline,
+       [ AC_DEFINE(HAVE_PCAP_FOPEN_OFFLINE, 1,
+               [Define to 1 if you have the function pcap_fopen_offline.])
+       ])
+    AC_CHECK_LIB(pcap, pcap_dump_fopen,
+       [ AC_DEFINE(HAVE_PCAP_DUMP_FOPEN, 1,
+               [Define to 1 if you have the function pcap_dump_fopen.])
+       ])
 fi
 AC_SUBST(PCAP_LIBS)