Add ConfigureChecks.cmake
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 27 Aug 2009 15:35:33 +0000 (15:35 +0000)
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 27 Aug 2009 15:35:33 +0000 (15:35 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29586 f5534014-38df-0310-8fa8-9805f1628bb7

ConfigureChecks.cmake [new file with mode: 0644]

diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644 (file)
index 0000000..3d269f8
--- /dev/null
@@ -0,0 +1,47 @@
+#check system for includes\r
+include(CheckIncludeFile)\r
+check_include_file("arpa/inet.h"         HAVE_ARPA_INET_H)\r
+check_include_file("arpa/nameser.h"      HAVE_ARPA_NAMESER_H)\r
+check_include_file("direct.h"            HAVE_DIRECT_H)\r
+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("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
+check_include_file("inttypes.h"          HAVE_INTTYPES_H)\r
+check_include_file("lauxlib.h"           HAVE_LAUXLIB_H)\r
+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
+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
+check_include_file("stddef.h"            HAVE_STDDEF_H)\r
+check_include_file("stdint.h"            HAVE_STDINT_H)\r
+check_include_file("stdlib.h"            HAVE_STDLIB_H)\r
+check_include_file("strerror.h"          NEED_STRERROR_H)\r
+check_include_file("strings.h"           HAVE_STRINGS_H)\r
+check_include_file("string.h"            HAVE_STRING_H)\r
+check_include_file("sys/ioctl.h"         HAVE_SYS_IOCTL_H)\r
+check_include_file("sys/param.h"         HAVE_SYS_PARAM_H)\r
+check_include_file("sys/socket.h"        HAVE_SYS_SOCKET_H)\r
+check_include_file("sys/sockio.h"        HAVE_SYS_SOCKIO_H)\r
+check_include_file("sys/stat.h"          HAVE_SYS_STAT_H)\r
+check_include_file("sys/time.h"          HAVE_SYS_TIME_H)\r
+check_include_file("sys/types.h"         HAVE_SYS_TYPES_H)\r
+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
+\r
+#Functions\r
+include(CheckFunctionExists)\r
+check_function_exists("chown"            HAVE_CHOWN)\r
+check_function_exists("gethostbyname2"   HAVE_GETHOSTBYNAME2)\r
+check_function_exists("getprotobynumber" HAVE_GETPROTOBYNUMBER)\r
+check_function_exists("inet_ntop"        HAVE_INET_NTOP_PROTO)\r
+check_function_exists("issetugid"        HAVE_ISSETUGID)\r
+check_function_exists("mmap"             HAVE_MMAP)\r
+check_function_exists("mprotect"         HAVE_MPROTECT)\r
+check_function_exists("sysconf"          HAVE_SYSCONF)\r