Set TA control element expert info based on improved understanding of spec.
[obnox/wireshark/wip.git] / ConfigureChecks.cmake
1 # todo: result for NEED_... is wrong (inverted)\r
2 \r
3 #check system for includes\r
4 include(CheckIncludeFile)\r
5 check_include_file("arpa/inet.h"         HAVE_ARPA_INET_H)\r
6 check_include_file("arpa/nameser.h"      HAVE_ARPA_NAMESER_H)\r
7 check_include_file("direct.h"            HAVE_DIRECT_H)\r
8 check_include_file("dirent.h"            HAVE_DIRENT_H)\r
9 check_include_file("dlfcn.h"             HAVE_DLFCN_H)\r
10 check_include_file("fcntl.h"             HAVE_FCNTL_H)\r
11 check_include_file("getopt.h"            HAVE_GETOPT_H)\r
12 check_include_file("grp.h"               HAVE_GRP_H)\r
13 check_include_file("g_ascii_strtoull.h"  NEED_G_ASCII_STRTOULL_H)\r
14 check_include_file("inet/aton.h"         NEED_INET_ATON_H)\r
15 check_include_file("inttypes.h"          HAVE_INTTYPES_H)\r
16 check_include_file("lauxlib.h"           HAVE_LAUXLIB_H)\r
17 check_include_file("memory.h"            HAVE_MEMORY_H)\r
18 check_include_file("netinet/in.h"        HAVE_NETINET_IN_H)\r
19 check_include_file("netdb.h"             HAVE_NETDB_H)\r
20 # XXX: We need to set the path to Wpdpack in order to find Ntddndis.h\r
21 check_include_file("Ntddndis.h"          HAVE_NTDDNDIS_H)\r
22 check_include_file("portaudio.h"         HAVE_PORTAUDIO_H)\r
23 check_include_file("pwd.h"               HAVE_PWD_H)\r
24 check_include_file("stdarg.h"            HAVE_STDARG_H)\r
25 check_include_file("stddef.h"            HAVE_STDDEF_H)\r
26 check_include_file("stdint.h"            HAVE_STDINT_H)\r
27 check_include_file("stdlib.h"            HAVE_STDLIB_H)\r
28 check_include_file("strerror.h"          NEED_STRERROR_H)\r
29 check_include_file("strings.h"           HAVE_STRINGS_H)\r
30 check_include_file("string.h"            HAVE_STRING_H)\r
31 check_include_file("sys/ioctl.h"         HAVE_SYS_IOCTL_H)\r
32 check_include_file("sys/param.h"         HAVE_SYS_PARAM_H)\r
33 check_include_file("sys/socket.h"        HAVE_SYS_SOCKET_H)\r
34 check_include_file("sys/sockio.h"        HAVE_SYS_SOCKIO_H)\r
35 check_include_file("sys/stat.h"          HAVE_SYS_STAT_H)\r
36 check_include_file("sys/time.h"          HAVE_SYS_TIME_H)\r
37 check_include_file("sys/types.h"         HAVE_SYS_TYPES_H)\r
38 check_include_file("sys/utsname.h"       HAVE_SYS_UTSNAME_H)\r
39 check_include_file("sys/wait.h"          HAVE_SYS_WAIT_H)\r
40 check_include_file("unistd.h"            HAVE_UNISTD_H)\r
41 check_include_file("windows.h"           HAVE_WINDOWS_H)\r
42 check_include_file("winsock2.h"          HAVE_WINSOCK2_H)\r
43 \r
44 #Functions\r
45 include(CheckFunctionExists)\r
46 check_function_exists("chown"            HAVE_CHOWN)\r
47 check_function_exists("gethostbyname2"   HAVE_GETHOSTBYNAME2)\r
48 check_function_exists("getprotobynumber" HAVE_GETPROTOBYNUMBER)\r
49 check_function_exists("inet_ntop"        HAVE_INET_NTOP_PROTO)\r
50 check_function_exists("issetugid"        HAVE_ISSETUGID)\r
51 check_function_exists("mmap"             HAVE_MMAP)\r
52 check_function_exists("mprotect"         HAVE_MPROTECT)\r
53 check_function_exists("mkdtemp"          HAVE_MKDTEMP)\r
54 check_function_exists("mkstemp"          HAVE_MKSTEMP)\r
55 check_function_exists("sysconf"          HAVE_SYSCONF)\r