As suggested by Anders: back out 37112.
[obnox/wireshark/wip.git] / ConfigureChecks.cmake
index 3d269f8ffc7df4b494a14445579e053329cab7e8..d1056affa6bf3819c5bd90fa6e85113821ef9587 100644 (file)
@@ -1,3 +1,5 @@
+# todo: result for NEED_... is wrong (inverted)\r
+\r
 #check system for includes\r
 include(CheckIncludeFile)\r
 check_include_file("arpa/inet.h"         HAVE_ARPA_INET_H)\r
@@ -6,7 +8,7 @@ check_include_file("direct.h"            HAVE_DIRECT_H)
 check_include_file("dirent.h"            HAVE_DIRENT_H)\r
 check_include_file("dlfcn.h"             HAVE_DLFCN_H)\r
 check_include_file("fcntl.h"             HAVE_FCNTL_H)\r
-check_include_file("getopt.h"            NEED_GETOPT_H)\r
+check_include_file("getopt.h"            HAVE_GETOPT_H)\r
 check_include_file("grp.h"               HAVE_GRP_H)\r
 check_include_file("g_ascii_strtoull.h"  NEED_G_ASCII_STRTOULL_H)\r
 check_include_file("inet/aton.h"         NEED_INET_ATON_H)\r
@@ -15,6 +17,8 @@ check_include_file("lauxlib.h"           HAVE_LAUXLIB_H)
 check_include_file("memory.h"            HAVE_MEMORY_H)\r
 check_include_file("netinet/in.h"        HAVE_NETINET_IN_H)\r
 check_include_file("netdb.h"             HAVE_NETDB_H)\r
+# XXX: We need to set the path to Wpdpack in order to find Ntddndis.h\r
+check_include_file("Ntddndis.h"          HAVE_NTDDNDIS_H)\r
 check_include_file("portaudio.h"         HAVE_PORTAUDIO_H)\r
 check_include_file("pwd.h"               HAVE_PWD_H)\r
 check_include_file("stdarg.h"            HAVE_STDARG_H)\r
@@ -34,6 +38,8 @@ check_include_file("sys/types.h"         HAVE_SYS_TYPES_H)
 check_include_file("sys/utsname.h"       HAVE_SYS_UTSNAME_H)\r
 check_include_file("sys/wait.h"          HAVE_SYS_WAIT_H)\r
 check_include_file("unistd.h"            HAVE_UNISTD_H)\r
+check_include_file("windows.h"           HAVE_WINDOWS_H)\r
+check_include_file("winsock2.h"          HAVE_WINSOCK2_H)\r
 \r
 #Functions\r
 include(CheckFunctionExists)\r
@@ -44,4 +50,6 @@ check_function_exists("inet_ntop"        HAVE_INET_NTOP_PROTO)
 check_function_exists("issetugid"        HAVE_ISSETUGID)\r
 check_function_exists("mmap"             HAVE_MMAP)\r
 check_function_exists("mprotect"         HAVE_MPROTECT)\r
+check_function_exists("mkdtemp"          HAVE_MKDTEMP)\r
+check_function_exists("mkstemp"          HAVE_MKSTEMP)\r
 check_function_exists("sysconf"          HAVE_SYSCONF)\r