Commit 14d90520 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix syntax errors in configure.cmake

parent 6580cdb2
...@@ -149,41 +149,6 @@ IF(UNIX) ...@@ -149,41 +149,6 @@ IF(UNIX)
ENDIF() ENDIF()
ENDIF() ENDIF()
# System check macros that do nothing on Windows.
# Very often, it is known that some function is not available
# 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 INCLUDES VAR)
IF(UNIX)
CHECK_INCLUDE_FILES ("${INCLUDES}" ${VAR})
ENDIF()
ENDMACRO()
MACRO(CHECK_C_SOURCE_COMPILES_UNIX SRC VAR)
IF(UNIX)
CHECK_C_SOURCE_COMPILES("${SRC}" ${VAR})
ENDIF()
ENDMACRO()
MACRO(CHECK_CXX_SOURCE_COMPILES SRC VAR)
IF(UNIX)
CHECK_CXX_SOURCE_COMPILES("${SRC}" ${VAR})
ENDIF()
ENDMACRO()
MACRO(CHECK_FUNCTION_EXISTS FUNC VAR)
IF(UNIX)
CHECK_FUNCTION_EXISTS("${FUNC}" ${VAR})
ENDIF()
ENDMACRO()
MACRO (CHECK_SYMBOL_EXISTS SYM HEADER VAR)
IF(UNIX)
CHECK_SYMBOL_EXISTS("${SYM}" "${HEADER}" ${VAR})
ENDIF()
ENDMACRO()
# #
# Tests for header files # Tests for header files
# #
...@@ -582,7 +547,7 @@ HAVE_SELECT) ...@@ -582,7 +547,7 @@ HAVE_SELECT)
# Check if timespec has ts_sec and ts_nsec fields # Check if timespec has ts_sec and ts_nsec fields
# #
CHECK_C_SOURCE_COMPILES_UNIX(" CHECK_C_SOURCE_COMPILES("
#include <pthread.h> #include <pthread.h>
int main(int ac, char **av) int main(int ac, char **av)
...@@ -760,7 +725,7 @@ CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL 1) ...@@ -760,7 +725,7 @@ CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL 1)
# #
# Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7) # Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7)
# #
CHECK_C_SOURCE_COMPILES_UNIX(" CHECK_C_SOURCE_COMPILES("
#include <signal.h> #include <signal.h>
int main(int ac, char **av) int main(int ac, char **av)
{ {
...@@ -773,7 +738,7 @@ CHECK_C_SOURCE_COMPILES_UNIX(" ...@@ -773,7 +738,7 @@ CHECK_C_SOURCE_COMPILES_UNIX("
HAVE_POSIX_SIGNALS) HAVE_POSIX_SIGNALS)
IF(NOT HAVE_POSIX_SIGNALS) IF(NOT HAVE_POSIX_SIGNALS)
CHECK_C_SOURCE_COMPILES_UNIX(" CHECK_C_SOURCE_COMPILES("
#include <signal.h> #include <signal.h>
int main(int ac, char **av) int main(int ac, char **av)
{ {
...@@ -782,7 +747,7 @@ IF(NOT HAVE_POSIX_SIGNALS) ...@@ -782,7 +747,7 @@ IF(NOT HAVE_POSIX_SIGNALS)
}" }"
HAVE_BSD_SIGNALS) HAVE_BSD_SIGNALS)
IF (NOT HAVE_BSD_SIGNALS) IF (NOT HAVE_BSD_SIGNALS)
CHECK_C_SOURCE_COMPILES_UNIX(" CHECK_C_SOURCE_COMPILES("
#include <signal.h> #include <signal.h>
void foo() { } void foo() { }
int main(int ac, char **av) int main(int ac, char **av)
...@@ -816,7 +781,7 @@ IF(HAVE_ABI_CXA_DEMANGLE) ...@@ -816,7 +781,7 @@ IF(HAVE_ABI_CXA_DEMANGLE)
ENDIF() ENDIF()
ENDIF() ENDIF()
CHECK_C_SOURCE_COMPILES_UNIX(" CHECK_C_SOURCE_COMPILES("
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
extern char *__bss_start; extern char *__bss_start;
...@@ -824,7 +789,7 @@ CHECK_C_SOURCE_COMPILES_UNIX(" ...@@ -824,7 +789,7 @@ CHECK_C_SOURCE_COMPILES_UNIX("
}" }"
HAVE_BSS_START) HAVE_BSS_START)
CHECK_C_SOURCE_COMPILES_UNIX(" CHECK_C_SOURCE_COMPILES("
int main() int main()
{ {
extern void __attribute__((weak)) foo(void); extern void __attribute__((weak)) foo(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment