From Alexis La Goutte via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5768 :
[obnox/wireshark/wip.git] / ConfigureChecks.cmake
index 4c17f58fbe9298d400686f650c2de3a05e8691e8..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
@@ -48,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