This way the build will reliably fail if it happened to include the
header from some other build (e.g. libpcap). See GitHub bug report
#1313.
autogen.sh: Allow to configure Autoconf warnings.
autogen.sh: Delete all trailing blank lines at end of configure.
Reimplement the tests similarly to libpcap.
+ Require config.h to be from the tcpdump build.
Documentation:
man: Clarify the "any" pseudo-interface further.
/* cmakeconfig.h.in */
+#ifndef TCPDUMP_CONFIG_H_
+#define TCPDUMP_CONFIG_H_
+
/* Define to 1 if arpa/inet.h declares `ether_ntohost' */
#cmakedefine ARPA_INET_H_DECLARES_ETHER_NTOHOST 1
/* Define to `uint8_t' if u_int8_t not defined. */
#cmakedefine u_int8_t 1
+
+#endif // TCPDUMP_CONFIG_H_
AC_PROG_INSTALL
AC_CONFIG_HEADERS([config.h])
+AH_TOP([
+#ifndef TCPDUMP_CONFIG_H_
+#define TCPDUMP_CONFIG_H_
+])
+AH_BOTTOM([
+#endif // TCPDUMP_CONFIG_H_
+])
AC_CONFIG_COMMANDS([.devel],[[if test -f .devel; then
echo timestamp > stamp-h
*/
#include <config.h>
+#ifndef TCPDUMP_CONFIG_H_
+#error "The included config.h header is not from the tcpdump build."
+#endif
#include "netdissect-stdinc.h"