diff --git a/configure.ac b/configure.ac index 9372052098..fb3c363a3c 100644 --- a/configure.ac +++ b/configure.ac @@ -961,7 +961,7 @@ AC_CHECK_LIB(pcap, pcap_activate,, LPCAPVTEST="no") if test "$LPCAPVTEST" != "no"; then AC_PATH_PROG(HAVE_PCAP_CONFIG, pcap-config, "no") - if test "$HAVE_PCAP_CONFIG" = "no"; then + if test "$HAVE_PCAP_CONFIG" = "no" -o "$cross_compiling" = "yes"; then CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=1" else CFLAGS="${CFLAGS} `pcap-config --defines` `pcap-config --cflags` -DLIBPCAP_VERSION_MAJOR=1"