+# 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
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
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
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
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