diff options
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 354 |
1 files changed, 177 insertions, 177 deletions
diff --git a/configure.cmake b/configure.cmake index 8a2a1f0ad78..9a1fdfa7942 100644 --- a/configure.cmake +++ b/configure.cmake @@ -154,7 +154,7 @@ ENDIF() # on Windows. In such cases it makes sense to use these macros # as build with Visual Studio is considerably faster if irrelevant # checks are omitted. -MACRO(CHECK_INCLUDE_FILES_UNIX INCLUDES VAR) +MACRO(CHECK_INCLUDE_FILES INCLUDES VAR) IF(UNIX) CHECK_INCLUDE_FILES ("${INCLUDES}" ${VAR}) ENDIF() @@ -166,19 +166,19 @@ IF(UNIX) ENDIF() ENDMACRO() -MACRO(CHECK_CXX_SOURCE_COMPILES_UNIX SRC VAR) +MACRO(CHECK_CXX_SOURCE_COMPILES SRC VAR) IF(UNIX) CHECK_CXX_SOURCE_COMPILES("${SRC}" ${VAR}) ENDIF() ENDMACRO() -MACRO(CHECK_FUNCTION_EXISTS_UNIX FUNC VAR) +MACRO(CHECK_FUNCTION_EXISTS FUNC VAR) IF(UNIX) CHECK_FUNCTION_EXISTS("${FUNC}" ${VAR}) ENDIF() ENDMACRO() -MACRO (CHECK_SYMBOL_EXISTS_UNIX SYM HEADER VAR) +MACRO (CHECK_SYMBOL_EXISTS SYM HEADER VAR) IF(UNIX) CHECK_SYMBOL_EXISTS("${SYM}" "${HEADER}" ${VAR}) ENDIF() @@ -191,74 +191,74 @@ INCLUDE (CheckIncludeFiles) CHECK_INCLUDE_FILES ("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS) CHECK_INCLUDE_FILES (sys/types.h HAVE_SYS_TYPES_H) -CHECK_INCLUDE_FILES_UNIX (alloca.h HAVE_ALLOCA_H) -CHECK_INCLUDE_FILES_UNIX (aio.h HAVE_AIO_H) -CHECK_INCLUDE_FILES_UNIX (arpa/inet.h HAVE_ARPA_INET_H) -CHECK_INCLUDE_FILES_UNIX (crypt.h HAVE_CRYPT_H) +CHECK_INCLUDE_FILES (alloca.h HAVE_ALLOCA_H) +CHECK_INCLUDE_FILES (aio.h HAVE_AIO_H) +CHECK_INCLUDE_FILES (arpa/inet.h HAVE_ARPA_INET_H) +CHECK_INCLUDE_FILES (crypt.h HAVE_CRYPT_H) CHECK_INCLUDE_FILES (dirent.h HAVE_DIRENT_H) -CHECK_INCLUDE_FILES_UNIX (dlfcn.h HAVE_DLFCN_H) -CHECK_INCLUDE_FILES_UNIX (execinfo.h HAVE_EXECINFO_H) +CHECK_INCLUDE_FILES (dlfcn.h HAVE_DLFCN_H) +CHECK_INCLUDE_FILES (execinfo.h HAVE_EXECINFO_H) CHECK_INCLUDE_FILES (fcntl.h HAVE_FCNTL_H) CHECK_INCLUDE_FILES (fenv.h HAVE_FENV_H) CHECK_INCLUDE_FILES (float.h HAVE_FLOAT_H) -CHECK_INCLUDE_FILES_UNIX (floatingpoint.h HAVE_FLOATINGPOINT_H) -CHECK_INCLUDE_FILES_UNIX (fpu_control.h HAVE_FPU_CONTROL_H) -CHECK_INCLUDE_FILES_UNIX (grp.h HAVE_GRP_H) -CHECK_INCLUDE_FILES_UNIX (ieeefp.h HAVE_IEEEFP_H) +CHECK_INCLUDE_FILES (floatingpoint.h HAVE_FLOATINGPOINT_H) +CHECK_INCLUDE_FILES (fpu_control.h HAVE_FPU_CONTROL_H) +CHECK_INCLUDE_FILES (grp.h HAVE_GRP_H) +CHECK_INCLUDE_FILES (ieeefp.h HAVE_IEEEFP_H) CHECK_INCLUDE_FILES (inttypes.h HAVE_INTTYPES_H) -CHECK_INCLUDE_FILES_UNIX (langinfo.h HAVE_LANGINFO_H) +CHECK_INCLUDE_FILES (langinfo.h HAVE_LANGINFO_H) CHECK_INCLUDE_FILES (limits.h HAVE_LIMITS_H) CHECK_INCLUDE_FILES (locale.h HAVE_LOCALE_H) CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H) CHECK_INCLUDE_FILES (memory.h HAVE_MEMORY_H) -CHECK_INCLUDE_FILES_UNIX (netinet/in.h HAVE_NETINET_IN_H) -CHECK_INCLUDE_FILES_UNIX (paths.h HAVE_PATHS_H) -CHECK_INCLUDE_FILES_UNIX (port.h HAVE_PORT_H) -CHECK_INCLUDE_FILES_UNIX (pwd.h HAVE_PWD_H) -CHECK_INCLUDE_FILES_UNIX (sched.h HAVE_SCHED_H) -CHECK_INCLUDE_FILES_UNIX (select.h HAVE_SELECT_H) -CHECK_INCLUDE_FILES_UNIX (semaphore.h HAVE_SEMAPHORE_H) -CHECK_INCLUDE_FILES_UNIX (sys/dir.h HAVE_SYS_DIR_H) -CHECK_INCLUDE_FILES_UNIX (sys/pte.h HAVE_SYS_PTE_H) -CHECK_INCLUDE_FILES_UNIX (sys/ptem.h HAVE_SYS_PTEM_H) +CHECK_INCLUDE_FILES (netinet/in.h HAVE_NETINET_IN_H) +CHECK_INCLUDE_FILES (paths.h HAVE_PATHS_H) +CHECK_INCLUDE_FILES (port.h HAVE_PORT_H) +CHECK_INCLUDE_FILES (pwd.h HAVE_PWD_H) +CHECK_INCLUDE_FILES (sched.h HAVE_SCHED_H) +CHECK_INCLUDE_FILES (select.h HAVE_SELECT_H) +CHECK_INCLUDE_FILES (semaphore.h HAVE_SEMAPHORE_H) +CHECK_INCLUDE_FILES (sys/dir.h HAVE_SYS_DIR_H) +CHECK_INCLUDE_FILES (sys/pte.h HAVE_SYS_PTE_H) +CHECK_INCLUDE_FILES (sys/ptem.h HAVE_SYS_PTEM_H) CHECK_INCLUDE_FILES (stddef.h HAVE_STDDEF_H) CHECK_INCLUDE_FILES (stdint.h HAVE_STDINT_H) CHECK_INCLUDE_FILES (stdlib.h HAVE_STDLIB_H) CHECK_INCLUDE_FILES (strings.h HAVE_STRINGS_H) CHECK_INCLUDE_FILES (string.h HAVE_STRING_H) -CHECK_INCLUDE_FILES_UNIX (synch.h HAVE_SYNCH_H) -CHECK_INCLUDE_FILES_UNIX (sysent.h HAVE_SYSENT_H) -CHECK_INCLUDE_FILES_UNIX (sys/cdefs.h HAVE_SYS_CDEFS_H) -CHECK_INCLUDE_FILES_UNIX (sys/file.h HAVE_SYS_FILE_H) -CHECK_INCLUDE_FILES_UNIX (sys/fpu.h HAVE_SYS_FPU_H) -CHECK_INCLUDE_FILES_UNIX (sys/ioctl.h HAVE_SYS_IOCTL_H) -CHECK_INCLUDE_FILES_UNIX (sys/ipc.h HAVE_SYS_IPC_H) -CHECK_INCLUDE_FILES_UNIX (sys/malloc.h HAVE_SYS_MALLOC_H) -CHECK_INCLUDE_FILES_UNIX (sys/mman.h HAVE_SYS_MMAN_H) -CHECK_INCLUDE_FILES_UNIX (sys/prctl.h HAVE_SYS_PRCTL_H) -CHECK_INCLUDE_FILES_UNIX (sys/resource.h HAVE_SYS_RESOURCE_H) -CHECK_INCLUDE_FILES_UNIX (sys/select.h HAVE_SYS_SELECT_H) -CHECK_INCLUDE_FILES_UNIX (sys/shm.h HAVE_SYS_SHM_H) -CHECK_INCLUDE_FILES_UNIX (sys/socket.h HAVE_SYS_SOCKET_H) +CHECK_INCLUDE_FILES (synch.h HAVE_SYNCH_H) +CHECK_INCLUDE_FILES (sysent.h HAVE_SYSENT_H) +CHECK_INCLUDE_FILES (sys/cdefs.h HAVE_SYS_CDEFS_H) +CHECK_INCLUDE_FILES (sys/file.h HAVE_SYS_FILE_H) +CHECK_INCLUDE_FILES (sys/fpu.h HAVE_SYS_FPU_H) +CHECK_INCLUDE_FILES (sys/ioctl.h HAVE_SYS_IOCTL_H) +CHECK_INCLUDE_FILES (sys/ipc.h HAVE_SYS_IPC_H) +CHECK_INCLUDE_FILES (sys/malloc.h HAVE_SYS_MALLOC_H) +CHECK_INCLUDE_FILES (sys/mman.h HAVE_SYS_MMAN_H) +CHECK_INCLUDE_FILES (sys/prctl.h HAVE_SYS_PRCTL_H) +CHECK_INCLUDE_FILES (sys/resource.h HAVE_SYS_RESOURCE_H) +CHECK_INCLUDE_FILES (sys/select.h HAVE_SYS_SELECT_H) +CHECK_INCLUDE_FILES (sys/shm.h HAVE_SYS_SHM_H) +CHECK_INCLUDE_FILES (sys/socket.h HAVE_SYS_SOCKET_H) CHECK_INCLUDE_FILES (sys/stat.h HAVE_SYS_STAT_H) -CHECK_INCLUDE_FILES_UNIX (sys/stream.h HAVE_SYS_STREAM_H) -CHECK_INCLUDE_FILES_UNIX (sys/termcap.h HAVE_SYS_TERMCAP_H) +CHECK_INCLUDE_FILES (sys/stream.h HAVE_SYS_STREAM_H) +CHECK_INCLUDE_FILES (sys/termcap.h HAVE_SYS_TERMCAP_H) CHECK_INCLUDE_FILES ("time.h;sys/timeb.h" HAVE_SYS_TIMEB_H) -CHECK_INCLUDE_FILES_UNIX ("curses.h;term.h" HAVE_TERM_H) -CHECK_INCLUDE_FILES_UNIX (termios.h HAVE_TERMIOS_H) -CHECK_INCLUDE_FILES_UNIX (termio.h HAVE_TERMIO_H) -CHECK_INCLUDE_FILES_UNIX (termcap.h HAVE_TERMCAP_H) -CHECK_INCLUDE_FILES_UNIX (unistd.h HAVE_UNISTD_H) +CHECK_INCLUDE_FILES ("curses.h;term.h" HAVE_TERM_H) +CHECK_INCLUDE_FILES (termios.h HAVE_TERMIOS_H) +CHECK_INCLUDE_FILES (termio.h HAVE_TERMIO_H) +CHECK_INCLUDE_FILES (termcap.h HAVE_TERMCAP_H) +CHECK_INCLUDE_FILES (unistd.h HAVE_UNISTD_H) CHECK_INCLUDE_FILES (utime.h HAVE_UTIME_H) CHECK_INCLUDE_FILES (varargs.h HAVE_VARARGS_H) CHECK_INCLUDE_FILES (sys/time.h HAVE_SYS_TIME_H) CHECK_INCLUDE_FILES (sys/utime.h HAVE_SYS_UTIME_H) -CHECK_INCLUDE_FILES_UNIX (sys/wait.h HAVE_SYS_WAIT_H) -CHECK_INCLUDE_FILES_UNIX (sys/param.h HAVE_SYS_PARAM_H) -CHECK_INCLUDE_FILES_UNIX (sys/vadvise.h HAVE_SYS_VADVISE_H) -CHECK_INCLUDE_FILES_UNIX (fnmatch.h HAVE_FNMATCH_H) +CHECK_INCLUDE_FILES (sys/wait.h HAVE_SYS_WAIT_H) +CHECK_INCLUDE_FILES (sys/param.h HAVE_SYS_PARAM_H) +CHECK_INCLUDE_FILES (sys/vadvise.h HAVE_SYS_VADVISE_H) +CHECK_INCLUDE_FILES (fnmatch.h HAVE_FNMATCH_H) CHECK_INCLUDE_FILES (stdarg.h HAVE_STDARG_H) -CHECK_INCLUDE_FILES_UNIX("stdlib.h;sys/un.h" HAVE_SYS_UN_H) +CHECK_INCLUDE_FILES("stdlib.h;sys/un.h" HAVE_SYS_UN_H) # Figure out threading library # @@ -268,116 +268,116 @@ FIND_PACKAGE (Threads) # Tests for functions # #CHECK_FUNCTION_EXISTS (aiowait HAVE_AIOWAIT) -CHECK_FUNCTION_EXISTS_UNIX (aio_read HAVE_AIO_READ) -CHECK_FUNCTION_EXISTS_UNIX (alarm HAVE_ALARM) +CHECK_FUNCTION_EXISTS (aio_read HAVE_AIO_READ) +CHECK_FUNCTION_EXISTS (alarm HAVE_ALARM) SET(HAVE_ALLOCA 1) -CHECK_FUNCTION_EXISTS_UNIX (backtrace HAVE_BACKTRACE) -CHECK_FUNCTION_EXISTS_UNIX (backtrace_symbols HAVE_BACKTRACE_SYMBOLS) -CHECK_FUNCTION_EXISTS_UNIX (backtrace_symbols_fd HAVE_BACKTRACE_SYMBOLS_FD) -CHECK_FUNCTION_EXISTS_UNIX (printstack HAVE_PRINTSTACK) -CHECK_FUNCTION_EXISTS_UNIX (bcmp HAVE_BCMP) -CHECK_FUNCTION_EXISTS_UNIX (bfill HAVE_BFILL) -CHECK_FUNCTION_EXISTS_UNIX (bmove HAVE_BMOVE) +CHECK_FUNCTION_EXISTS (backtrace HAVE_BACKTRACE) +CHECK_FUNCTION_EXISTS (backtrace_symbols HAVE_BACKTRACE_SYMBOLS) +CHECK_FUNCTION_EXISTS (backtrace_symbols_fd HAVE_BACKTRACE_SYMBOLS_FD) +CHECK_FUNCTION_EXISTS (printstack HAVE_PRINTSTACK) +CHECK_FUNCTION_EXISTS (bcmp HAVE_BCMP) +CHECK_FUNCTION_EXISTS (bfill HAVE_BFILL) +CHECK_FUNCTION_EXISTS (bmove HAVE_BMOVE) CHECK_FUNCTION_EXISTS (bsearch HAVE_BSEARCH) CHECK_FUNCTION_EXISTS (index HAVE_INDEX) -CHECK_FUNCTION_EXISTS_UNIX (bzero HAVE_BZERO) -CHECK_FUNCTION_EXISTS_UNIX (clock_gettime HAVE_CLOCK_GETTIME) -CHECK_FUNCTION_EXISTS_UNIX (cuserid HAVE_CUSERID) -CHECK_FUNCTION_EXISTS_UNIX (directio HAVE_DIRECTIO) -CHECK_FUNCTION_EXISTS_UNIX (_doprnt HAVE_DOPRNT) -CHECK_FUNCTION_EXISTS_UNIX (flockfile HAVE_FLOCKFILE) -CHECK_FUNCTION_EXISTS_UNIX (ftruncate HAVE_FTRUNCATE) -CHECK_FUNCTION_EXISTS_UNIX (getline HAVE_GETLINE) -CHECK_FUNCTION_EXISTS_UNIX (compress HAVE_COMPRESS) -CHECK_FUNCTION_EXISTS_UNIX (crypt HAVE_CRYPT) -CHECK_FUNCTION_EXISTS_UNIX (dlerror HAVE_DLERROR) -CHECK_FUNCTION_EXISTS_UNIX (dlopen HAVE_DLOPEN) -CHECK_FUNCTION_EXISTS_UNIX (fchmod HAVE_FCHMOD) -CHECK_FUNCTION_EXISTS_UNIX (fcntl HAVE_FCNTL) -CHECK_FUNCTION_EXISTS_UNIX (fconvert HAVE_FCONVERT) -CHECK_SYMBOL_EXISTS_UNIX(fdatasync "unistd.h" HAVE_FDATASYNC) -CHECK_FUNCTION_EXISTS_UNIX (fesetround HAVE_FESETROUND) -CHECK_FUNCTION_EXISTS_UNIX (fpsetmask HAVE_FPSETMASK) -CHECK_FUNCTION_EXISTS_UNIX (fseeko HAVE_FSEEKO) -CHECK_FUNCTION_EXISTS_UNIX (fsync HAVE_FSYNC) +CHECK_FUNCTION_EXISTS (bzero HAVE_BZERO) +CHECK_FUNCTION_EXISTS (clock_gettime HAVE_CLOCK_GETTIME) +CHECK_FUNCTION_EXISTS (cuserid HAVE_CUSERID) +CHECK_FUNCTION_EXISTS (directio HAVE_DIRECTIO) +CHECK_FUNCTION_EXISTS (_doprnt HAVE_DOPRNT) +CHECK_FUNCTION_EXISTS (flockfile HAVE_FLOCKFILE) +CHECK_FUNCTION_EXISTS (ftruncate HAVE_FTRUNCATE) +CHECK_FUNCTION_EXISTS (getline HAVE_GETLINE) +CHECK_FUNCTION_EXISTS (compress HAVE_COMPRESS) +CHECK_FUNCTION_EXISTS (crypt HAVE_CRYPT) +CHECK_FUNCTION_EXISTS (dlerror HAVE_DLERROR) +CHECK_FUNCTION_EXISTS (dlopen HAVE_DLOPEN) +CHECK_FUNCTION_EXISTS (fchmod HAVE_FCHMOD) +CHECK_FUNCTION_EXISTS (fcntl HAVE_FCNTL) +CHECK_FUNCTION_EXISTS (fconvert HAVE_FCONVERT) +CHECK_SYMBOL_EXISTS(fdatasync "unistd.h" HAVE_FDATASYNC) +CHECK_FUNCTION_EXISTS (fesetround HAVE_FESETROUND) +CHECK_FUNCTION_EXISTS (fpsetmask HAVE_FPSETMASK) +CHECK_FUNCTION_EXISTS (fseeko HAVE_FSEEKO) +CHECK_FUNCTION_EXISTS (fsync HAVE_FSYNC) CHECK_FUNCTION_EXISTS (getcwd HAVE_GETCWD) -CHECK_FUNCTION_EXISTS_UNIX (gethostbyaddr_r HAVE_GETHOSTBYADDR_R) -CHECK_FUNCTION_EXISTS_UNIX (gethostbyname_r HAVE_GETHOSTBYNAME_R) -CHECK_FUNCTION_EXISTS_UNIX (gethrtime HAVE_GETHRTIME) +CHECK_FUNCTION_EXISTS (gethostbyaddr_r HAVE_GETHOSTBYADDR_R) +CHECK_FUNCTION_EXISTS (gethostbyname_r HAVE_GETHOSTBYNAME_R) +CHECK_FUNCTION_EXISTS (gethrtime HAVE_GETHRTIME) CHECK_FUNCTION_EXISTS (getnameinfo HAVE_GETNAMEINFO) -CHECK_FUNCTION_EXISTS_UNIX (getpass HAVE_GETPASS) -CHECK_FUNCTION_EXISTS_UNIX (getpassphrase HAVE_GETPASSPHRASE) -CHECK_FUNCTION_EXISTS_UNIX (getpwnam HAVE_GETPWNAM) -CHECK_FUNCTION_EXISTS_UNIX (getpwuid HAVE_GETPWUID) -CHECK_FUNCTION_EXISTS_UNIX (getrlimit HAVE_GETRLIMIT) -CHECK_FUNCTION_EXISTS_UNIX (getrusage HAVE_GETRUSAGE) -CHECK_FUNCTION_EXISTS_UNIX (getwd HAVE_GETWD) -CHECK_FUNCTION_EXISTS_UNIX (gmtime_r HAVE_GMTIME_R) -CHECK_FUNCTION_EXISTS_UNIX (initgroups HAVE_INITGROUPS) -CHECK_FUNCTION_EXISTS_UNIX (issetugid HAVE_ISSETUGID) +CHECK_FUNCTION_EXISTS (getpass HAVE_GETPASS) +CHECK_FUNCTION_EXISTS (getpassphrase HAVE_GETPASSPHRASE) +CHECK_FUNCTION_EXISTS (getpwnam HAVE_GETPWNAM) +CHECK_FUNCTION_EXISTS (getpwuid HAVE_GETPWUID) +CHECK_FUNCTION_EXISTS (getrlimit HAVE_GETRLIMIT) +CHECK_FUNCTION_EXISTS (getrusage HAVE_GETRUSAGE) +CHECK_FUNCTION_EXISTS (getwd HAVE_GETWD) +CHECK_FUNCTION_EXISTS (gmtime_r HAVE_GMTIME_R) +CHECK_FUNCTION_EXISTS (initgroups HAVE_INITGROUPS) +CHECK_FUNCTION_EXISTS (issetugid HAVE_ISSETUGID) CHECK_FUNCTION_EXISTS (ldiv HAVE_LDIV) -CHECK_FUNCTION_EXISTS_UNIX (localtime_r HAVE_LOCALTIME_R) +CHECK_FUNCTION_EXISTS (localtime_r HAVE_LOCALTIME_R) CHECK_FUNCTION_EXISTS (longjmp HAVE_LONGJMP) CHECK_FUNCTION_EXISTS (lstat HAVE_LSTAT) -CHECK_FUNCTION_EXISTS_UNIX (madvise HAVE_MADVISE) -CHECK_FUNCTION_EXISTS_UNIX (mallinfo HAVE_MALLINFO) +CHECK_FUNCTION_EXISTS (madvise HAVE_MADVISE) +CHECK_FUNCTION_EXISTS (mallinfo HAVE_MALLINFO) CHECK_FUNCTION_EXISTS (memcpy HAVE_MEMCPY) CHECK_FUNCTION_EXISTS (memmove HAVE_MEMMOVE) CHECK_FUNCTION_EXISTS (mkstemp HAVE_MKSTEMP) -CHECK_FUNCTION_EXISTS_UNIX (mlock HAVE_MLOCK) -CHECK_FUNCTION_EXISTS_UNIX (mlockall HAVE_MLOCKALL) -CHECK_FUNCTION_EXISTS_UNIX (mmap HAVE_MMAP) -CHECK_FUNCTION_EXISTS_UNIX (mmap64 HAVE_MMAP64) +CHECK_FUNCTION_EXISTS (mlock HAVE_MLOCK) +CHECK_FUNCTION_EXISTS (mlockall HAVE_MLOCKALL) +CHECK_FUNCTION_EXISTS (mmap HAVE_MMAP) +CHECK_FUNCTION_EXISTS (mmap64 HAVE_MMAP64) CHECK_FUNCTION_EXISTS (perror HAVE_PERROR) -CHECK_FUNCTION_EXISTS_UNIX (poll HAVE_POLL) -CHECK_FUNCTION_EXISTS_UNIX (port_create HAVE_PORT_CREATE) -CHECK_FUNCTION_EXISTS_UNIX (posix_fallocate HAVE_POSIX_FALLOCATE) -CHECK_FUNCTION_EXISTS_UNIX (pread HAVE_PREAD) -CHECK_FUNCTION_EXISTS_UNIX (pthread_attr_create HAVE_PTHREAD_ATTR_CREATE) -CHECK_FUNCTION_EXISTS_UNIX (pthread_attr_getstacksize HAVE_PTHREAD_ATTR_GETSTACKSIZE) -CHECK_FUNCTION_EXISTS_UNIX (pthread_attr_setscope HAVE_PTHREAD_ATTR_SETSCOPE) -CHECK_FUNCTION_EXISTS_UNIX (pthread_attr_setstacksize HAVE_PTHREAD_ATTR_SETSTACKSIZE) -CHECK_FUNCTION_EXISTS_UNIX (pthread_condattr_create HAVE_PTHREAD_CONDATTR_CREATE) -CHECK_FUNCTION_EXISTS_UNIX (pthread_condattr_setclock HAVE_PTHREAD_CONDATTR_SETCLOCK) -CHECK_FUNCTION_EXISTS_UNIX (pthread_init HAVE_PTHREAD_INIT) -CHECK_FUNCTION_EXISTS_UNIX (pthread_key_delete HAVE_PTHREAD_KEY_DELETE) -CHECK_FUNCTION_EXISTS_UNIX (pthread_rwlock_rdlock HAVE_PTHREAD_RWLOCK_RDLOCK) -CHECK_FUNCTION_EXISTS_UNIX (pthread_sigmask HAVE_PTHREAD_SIGMASK) -CHECK_FUNCTION_EXISTS_UNIX (pthread_threadmask HAVE_PTHREAD_THREADMASK) -CHECK_FUNCTION_EXISTS_UNIX (pthread_yield_np HAVE_PTHREAD_YIELD_NP) +CHECK_FUNCTION_EXISTS (poll HAVE_POLL) +CHECK_FUNCTION_EXISTS (port_create HAVE_PORT_CREATE) +CHECK_FUNCTION_EXISTS (posix_fallocate HAVE_POSIX_FALLOCATE) +CHECK_FUNCTION_EXISTS (pread HAVE_PREAD) +CHECK_FUNCTION_EXISTS (pthread_attr_create HAVE_PTHREAD_ATTR_CREATE) +CHECK_FUNCTION_EXISTS (pthread_attr_getstacksize HAVE_PTHREAD_ATTR_GETSTACKSIZE) +CHECK_FUNCTION_EXISTS (pthread_attr_setscope HAVE_PTHREAD_ATTR_SETSCOPE) +CHECK_FUNCTION_EXISTS (pthread_attr_setstacksize HAVE_PTHREAD_ATTR_SETSTACKSIZE) +CHECK_FUNCTION_EXISTS (pthread_condattr_create HAVE_PTHREAD_CONDATTR_CREATE) +CHECK_FUNCTION_EXISTS (pthread_condattr_setclock HAVE_PTHREAD_CONDATTR_SETCLOCK) +CHECK_FUNCTION_EXISTS (pthread_init HAVE_PTHREAD_INIT) +CHECK_FUNCTION_EXISTS (pthread_key_delete HAVE_PTHREAD_KEY_DELETE) +CHECK_FUNCTION_EXISTS (pthread_rwlock_rdlock HAVE_PTHREAD_RWLOCK_RDLOCK) +CHECK_FUNCTION_EXISTS (pthread_sigmask HAVE_PTHREAD_SIGMASK) +CHECK_FUNCTION_EXISTS (pthread_threadmask HAVE_PTHREAD_THREADMASK) +CHECK_FUNCTION_EXISTS (pthread_yield_np HAVE_PTHREAD_YIELD_NP) CHECK_FUNCTION_EXISTS (putenv HAVE_PUTENV) -CHECK_FUNCTION_EXISTS_UNIX (readdir_r HAVE_READDIR_R) -CHECK_FUNCTION_EXISTS_UNIX (readlink HAVE_READLINK) -CHECK_FUNCTION_EXISTS_UNIX (re_comp HAVE_RE_COMP) -CHECK_FUNCTION_EXISTS_UNIX (regcomp HAVE_REGCOMP) -CHECK_FUNCTION_EXISTS_UNIX (realpath HAVE_REALPATH) +CHECK_FUNCTION_EXISTS (readdir_r HAVE_READDIR_R) +CHECK_FUNCTION_EXISTS (readlink HAVE_READLINK) +CHECK_FUNCTION_EXISTS (re_comp HAVE_RE_COMP) +CHECK_FUNCTION_EXISTS (regcomp HAVE_REGCOMP) +CHECK_FUNCTION_EXISTS (realpath HAVE_REALPATH) CHECK_FUNCTION_EXISTS (rename HAVE_RENAME) -CHECK_FUNCTION_EXISTS_UNIX (rwlock_init HAVE_RWLOCK_INIT) -CHECK_FUNCTION_EXISTS_UNIX (sched_yield HAVE_SCHED_YIELD) -CHECK_FUNCTION_EXISTS_UNIX (setenv HAVE_SETENV) +CHECK_FUNCTION_EXISTS (rwlock_init HAVE_RWLOCK_INIT) +CHECK_FUNCTION_EXISTS (sched_yield HAVE_SCHED_YIELD) +CHECK_FUNCTION_EXISTS (setenv HAVE_SETENV) CHECK_FUNCTION_EXISTS (setlocale HAVE_SETLOCALE) -CHECK_FUNCTION_EXISTS_UNIX (setfd HAVE_SETFD) -CHECK_FUNCTION_EXISTS_UNIX (sigaction HAVE_SIGACTION) -CHECK_FUNCTION_EXISTS_UNIX (sigthreadmask HAVE_SIGTHREADMASK) -CHECK_FUNCTION_EXISTS_UNIX (sigwait HAVE_SIGWAIT) -CHECK_FUNCTION_EXISTS_UNIX (sigaddset HAVE_SIGADDSET) -CHECK_FUNCTION_EXISTS_UNIX (sigemptyset HAVE_SIGEMPTYSET) -CHECK_FUNCTION_EXISTS_UNIX (sighold HAVE_SIGHOLD) -CHECK_FUNCTION_EXISTS_UNIX (sigset HAVE_SIGSET) -CHECK_FUNCTION_EXISTS_UNIX (sleep HAVE_SLEEP) +CHECK_FUNCTION_EXISTS (setfd HAVE_SETFD) +CHECK_FUNCTION_EXISTS (sigaction HAVE_SIGACTION) +CHECK_FUNCTION_EXISTS (sigthreadmask HAVE_SIGTHREADMASK) +CHECK_FUNCTION_EXISTS (sigwait HAVE_SIGWAIT) +CHECK_FUNCTION_EXISTS (sigaddset HAVE_SIGADDSET) +CHECK_FUNCTION_EXISTS (sigemptyset HAVE_SIGEMPTYSET) +CHECK_FUNCTION_EXISTS (sighold HAVE_SIGHOLD) +CHECK_FUNCTION_EXISTS (sigset HAVE_SIGSET) +CHECK_FUNCTION_EXISTS (sleep HAVE_SLEEP) CHECK_FUNCTION_EXISTS (snprintf HAVE_SNPRINTF) -CHECK_FUNCTION_EXISTS_UNIX (stpcpy HAVE_STPCPY) +CHECK_FUNCTION_EXISTS (stpcpy HAVE_STPCPY) CHECK_FUNCTION_EXISTS (strcoll HAVE_STRCOLL) CHECK_FUNCTION_EXISTS (strerror HAVE_STRERROR) -CHECK_FUNCTION_EXISTS_UNIX (strlcpy HAVE_STRLCPY) +CHECK_FUNCTION_EXISTS (strlcpy HAVE_STRLCPY) CHECK_FUNCTION_EXISTS (strnlen HAVE_STRNLEN) -CHECK_FUNCTION_EXISTS_UNIX (strlcat HAVE_STRLCAT) -CHECK_FUNCTION_EXISTS_UNIX (strsignal HAVE_STRSIGNAL) -CHECK_FUNCTION_EXISTS_UNIX (fgetln HAVE_FGETLN) +CHECK_FUNCTION_EXISTS (strlcat HAVE_STRLCAT) +CHECK_FUNCTION_EXISTS (strsignal HAVE_STRSIGNAL) +CHECK_FUNCTION_EXISTS (fgetln HAVE_FGETLN) CHECK_FUNCTION_EXISTS (strpbrk HAVE_STRPBRK) CHECK_FUNCTION_EXISTS (strsep HAVE_STRSEP) CHECK_FUNCTION_EXISTS (strstr HAVE_STRSTR) -CHECK_FUNCTION_EXISTS_UNIX (strtok_r HAVE_STRTOK_R) +CHECK_FUNCTION_EXISTS (strtok_r HAVE_STRTOK_R) CHECK_FUNCTION_EXISTS (strtol HAVE_STRTOL) CHECK_FUNCTION_EXISTS (strtoll HAVE_STRTOLL) CHECK_FUNCTION_EXISTS (strtoul HAVE_STRTOUL) @@ -385,46 +385,46 @@ CHECK_FUNCTION_EXISTS (strtoull HAVE_STRTOULL) CHECK_FUNCTION_EXISTS (strcasecmp HAVE_STRCASECMP) CHECK_FUNCTION_EXISTS (strncasecmp HAVE_STRNCASECMP) CHECK_FUNCTION_EXISTS (strdup HAVE_STRDUP) -CHECK_FUNCTION_EXISTS_UNIX (shmat HAVE_SHMAT) -CHECK_FUNCTION_EXISTS_UNIX (shmctl HAVE_SHMCTL) -CHECK_FUNCTION_EXISTS_UNIX (shmdt HAVE_SHMDT) -CHECK_FUNCTION_EXISTS_UNIX (shmget HAVE_SHMGET) +CHECK_FUNCTION_EXISTS (shmat HAVE_SHMAT) +CHECK_FUNCTION_EXISTS (shmctl HAVE_SHMCTL) +CHECK_FUNCTION_EXISTS (shmdt HAVE_SHMDT) +CHECK_FUNCTION_EXISTS (shmget HAVE_SHMGET) CHECK_FUNCTION_EXISTS (tell HAVE_TELL) CHECK_FUNCTION_EXISTS (tempnam HAVE_TEMPNAM) -CHECK_FUNCTION_EXISTS_UNIX (thr_setconcurrency HAVE_THR_SETCONCURRENCY) -CHECK_FUNCTION_EXISTS_UNIX (thr_yield HAVE_THR_YIELD) -CHECK_FUNCTION_EXISTS_UNIX (vasprintf HAVE_VASPRINTF) +CHECK_FUNCTION_EXISTS (thr_setconcurrency HAVE_THR_SETCONCURRENCY) +CHECK_FUNCTION_EXISTS (thr_yield HAVE_THR_YIELD) +CHECK_FUNCTION_EXISTS (vasprintf HAVE_VASPRINTF) CHECK_FUNCTION_EXISTS (vsnprintf HAVE_VSNPRINTF) -CHECK_FUNCTION_EXISTS_UNIX (vprintf HAVE_VPRINTF) -CHECK_FUNCTION_EXISTS_UNIX (valloc HAVE_VALLOC) -CHECK_FUNCTION_EXISTS_UNIX (memalign HAVE_MEMALIGN) -CHECK_FUNCTION_EXISTS_UNIX (chown HAVE_CHOWN) -CHECK_FUNCTION_EXISTS_UNIX (nl_langinfo HAVE_NL_LANGINFO) +CHECK_FUNCTION_EXISTS (vprintf HAVE_VPRINTF) +CHECK_FUNCTION_EXISTS (valloc HAVE_VALLOC) +CHECK_FUNCTION_EXISTS (memalign HAVE_MEMALIGN) +CHECK_FUNCTION_EXISTS (chown HAVE_CHOWN) +CHECK_FUNCTION_EXISTS (nl_langinfo HAVE_NL_LANGINFO) #-------------------------------------------------------------------- # Support for WL#2373 (Use cycle counter for timing) #-------------------------------------------------------------------- -CHECK_INCLUDE_FILES_UNIX(time.h HAVE_TIME_H) -CHECK_INCLUDE_FILES_UNIX(sys/time.h HAVE_SYS_TIME_H) -CHECK_INCLUDE_FILES_UNIX(sys/times.h HAVE_SYS_TIMES_H) -CHECK_INCLUDE_FILES_UNIX(asm/msr.h HAVE_ASM_MSR_H) +CHECK_INCLUDE_FILES(time.h HAVE_TIME_H) +CHECK_INCLUDE_FILES(sys/time.h HAVE_SYS_TIME_H) +CHECK_INCLUDE_FILES(sys/times.h HAVE_SYS_TIMES_H) +CHECK_INCLUDE_FILES(asm/msr.h HAVE_ASM_MSR_H) #msr.h has rdtscll() -CHECK_INCLUDE_FILES_UNIX(ia64intrin.h HAVE_IA64INTRIN_H) +CHECK_INCLUDE_FILES(ia64intrin.h HAVE_IA64INTRIN_H) -CHECK_FUNCTION_EXISTS_UNIX(times HAVE_TIMES) -CHECK_FUNCTION_EXISTS_UNIX(gettimeofday HAVE_GETTIMEOFDAY) -CHECK_FUNCTION_EXISTS_UNIX(read_real_time HAVE_READ_REAL_TIME) +CHECK_FUNCTION_EXISTS(times HAVE_TIMES) +CHECK_FUNCTION_EXISTS(gettimeofday HAVE_GETTIMEOFDAY) +CHECK_FUNCTION_EXISTS(read_real_time HAVE_READ_REAL_TIME) # This should work on AIX. -CHECK_FUNCTION_EXISTS_UNIX(ftime HAVE_FTIME) +CHECK_FUNCTION_EXISTS(ftime HAVE_FTIME) # This is still a normal call for milliseconds. -CHECK_FUNCTION_EXISTS_UNIX(time HAVE_TIME) +CHECK_FUNCTION_EXISTS(time HAVE_TIME) # We can use time() on Macintosh if there is no ftime(). -CHECK_FUNCTION_EXISTS_UNIX(rdtscll HAVE_RDTSCLL) +CHECK_FUNCTION_EXISTS(rdtscll HAVE_RDTSCLL) # I doubt that we'll ever reach the check for this. @@ -432,14 +432,14 @@ CHECK_FUNCTION_EXISTS_UNIX(rdtscll HAVE_RDTSCLL) # Tests for symbols # -CHECK_SYMBOL_EXISTS_UNIX(sys_errlist "stdio.h" HAVE_SYS_ERRLIST) -CHECK_SYMBOL_EXISTS_UNIX(madvise "sys/mman.h" HAVE_DECL_MADVISE) +CHECK_SYMBOL_EXISTS(sys_errlist "stdio.h" HAVE_SYS_ERRLIST) +CHECK_SYMBOL_EXISTS(madvise "sys/mman.h" HAVE_DECL_MADVISE) CHECK_SYMBOL_EXISTS(tzname "time.h" HAVE_TZNAME) -CHECK_SYMBOL_EXISTS_UNIX(lrand48 "stdlib.h" HAVE_LRAND48) -CHECK_SYMBOL_EXISTS_UNIX(getpagesize "unistd.h" HAVE_GETPAGESIZE) -CHECK_SYMBOL_EXISTS_UNIX(TIOCGWINSZ "sys/ioctl.h" GWINSZ_IN_SYS_IOCTL) -CHECK_SYMBOL_EXISTS_UNIX(FIONREAD "sys/ioctl.h" FIONREAD_IN_SYS_IOCTL) -CHECK_SYMBOL_EXISTS_UNIX(TIOCSTAT "sys/ioctl.h" TIOCSTAT_IN_SYS_IOCTL) +CHECK_SYMBOL_EXISTS(lrand48 "stdlib.h" HAVE_LRAND48) +CHECK_SYMBOL_EXISTS(getpagesize "unistd.h" HAVE_GETPAGESIZE) +CHECK_SYMBOL_EXISTS(TIOCGWINSZ "sys/ioctl.h" GWINSZ_IN_SYS_IOCTL) +CHECK_SYMBOL_EXISTS(FIONREAD "sys/ioctl.h" FIONREAD_IN_SYS_IOCTL) +CHECK_SYMBOL_EXISTS(TIOCSTAT "sys/ioctl.h" TIOCSTAT_IN_SYS_IOCTL) CHECK_SYMBOL_EXISTS(gettimeofday "sys/time.h" HAVE_GETTIMEOFDAY) CHECK_SYMBOL_EXISTS(finite "math.h" HAVE_FINITE_IN_MATH_H) @@ -655,7 +655,7 @@ ELSE() ENDIF() ENDIF() -CHECK_CXX_SOURCE_COMPILES_UNIX(" +CHECK_CXX_SOURCE_COMPILES(" #include <pthread.h> int main() { @@ -707,8 +707,8 @@ ELSE(SIGNAL_RETURN_TYPE_IS_VOID) ENDIF(SIGNAL_RETURN_TYPE_IS_VOID) -CHECK_INCLUDE_FILES_UNIX("time.h;sys/time.h" TIME_WITH_SYS_TIME) -CHECK_SYMBOL_EXISTS_UNIX(O_NONBLOCK "unistd.h;fcntl.h" HAVE_FCNTL_NONBLOCK) +CHECK_INCLUDE_FILES("time.h;sys/time.h" TIME_WITH_SYS_TIME) +CHECK_SYMBOL_EXISTS(O_NONBLOCK "unistd.h;fcntl.h" HAVE_FCNTL_NONBLOCK) IF(NOT HAVE_FCNTL_NONBLOCK) SET(NO_FCNTL_NONBLOCK 1) ENDIF() @@ -754,8 +754,8 @@ IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC) ENDIF() ENDIF() -CHECK_SYMBOL_EXISTS_UNIX(tcgetattr "termios.h" HAVE_TCGETATTR 1) -CHECK_INCLUDE_FILES_UNIX(sys/ioctl.h HAVE_SYS_IOCTL 1) +CHECK_SYMBOL_EXISTS(tcgetattr "termios.h" HAVE_TCGETATTR 1) +CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL 1) # # Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7) @@ -844,7 +844,7 @@ CHECK_CXX_SOURCE_COMPILES(" HAVE_CXX_NEW ) -CHECK_CXX_SOURCE_COMPILES_UNIX(" +CHECK_CXX_SOURCE_COMPILES(" #undef inline #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT @@ -866,7 +866,7 @@ CHECK_CXX_SOURCE_COMPILES_UNIX(" " HAVE_SOLARIS_STYLE_GETHOST) -CHECK_CXX_SOURCE_COMPILES_UNIX(" +CHECK_CXX_SOURCE_COMPILES(" #undef inline #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT @@ -885,7 +885,7 @@ CHECK_CXX_SOURCE_COMPILES_UNIX(" }" HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) -CHECK_CXX_SOURCE_COMPILES_UNIX(" +CHECK_CXX_SOURCE_COMPILES(" #undef inline #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT |