CHECK_VARIABLE_EXISTS() can be used to check for C variables; use that
to check for pcap_version.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32938
f5534014-38df-0310-8fa8-
9805f1628bb7
if(ENABLE_AIRPCAP)
set(HAVE_AIRPCAP 1)
endif()
-# Assume that if HAVE_PCAP_LIB_VERSION exists, then HAVE_PCAP_VERSION exists as well
-if(HAVE_PCAP_LIB_VERSION)
- set(HAVE_PCAP_VERSION 1)
-endif()
# That's the name autofoo uses
if(HAVE_LIBZLIB)
set(HAVE_LIBZ 1)
INCLUDE(CheckFunctionExists)
SET(CMAKE_REQUIRED_INCLUDES ${PCAP_INCLUDE_DIRS})
SET(CMAKE_REQUIRED_LIBRARIES ${PCAP_LIBRARIES})
+CHECK_VARIABLE_EXISTS("pcap_version" HAVE_PCAP_VERSION)
CHECK_FUNCTION_EXISTS("pcap_open_dead" HAVE_PCAP_OPEN_DEAD)
CHECK_FUNCTION_EXISTS("pcap_freecode" HAVE_PCAP_FREECODE)
#