)
AC_CHECK_LIB(pcap, pcap_open_offline,, [
- AC_MSG_ERROR([Can't find pcap library (needed for dpa)])
+ AC_MSG_WARN([Can't find pcap library (needed for ldns-dpa, will not build dpa now.)])
]
)
#include <netinet/ip6.h>
#include <errno.h>
+#ifdef HAVE_LIBPCAP
+
int verbosity = 1;
#define ETHER_HEADER_LENGTH 14
return status;
}
+#else
+int main() {
+ fprintf(stderr, "ldns-dpa was not built because there is no pcap library on this system, or i couldn't find it. Please install pcap and rebuild.\n");
+ return 1;
+}
+#endif