Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8860c6da
Commit
8860c6da
authored
Jan 29, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
66e1bc46
513027f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
41 deletions
+6
-41
configure.cmake
configure.cmake
+6
-41
No files found.
configure.cmake
View file @
8860c6da
...
...
@@ -149,41 +149,6 @@ IF(UNIX)
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
#
...
...
@@ -582,7 +547,7 @@ HAVE_SELECT)
# Check if timespec has ts_sec and ts_nsec fields
#
CHECK_C_SOURCE_COMPILES
_UNIX
(
"
CHECK_C_SOURCE_COMPILES
(
"
#include <pthread.h>
int main(int ac, char **av)
...
...
@@ -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_C_SOURCE_COMPILES
_UNIX
(
"
CHECK_C_SOURCE_COMPILES
(
"
#include <signal.h>
int main(int ac, char **av)
{
...
...
@@ -773,7 +738,7 @@ CHECK_C_SOURCE_COMPILES_UNIX("
HAVE_POSIX_SIGNALS
)
IF
(
NOT HAVE_POSIX_SIGNALS
)
CHECK_C_SOURCE_COMPILES
_UNIX
(
"
CHECK_C_SOURCE_COMPILES
(
"
#include <signal.h>
int main(int ac, char **av)
{
...
...
@@ -782,7 +747,7 @@ IF(NOT HAVE_POSIX_SIGNALS)
}"
HAVE_BSD_SIGNALS
)
IF
(
NOT HAVE_BSD_SIGNALS
)
CHECK_C_SOURCE_COMPILES
_UNIX
(
"
CHECK_C_SOURCE_COMPILES
(
"
#include <signal.h>
void foo() { }
int main(int ac, char **av)
...
...
@@ -816,7 +781,7 @@ IF(HAVE_ABI_CXA_DEMANGLE)
ENDIF
()
ENDIF
()
CHECK_C_SOURCE_COMPILES
_UNIX
(
"
CHECK_C_SOURCE_COMPILES
(
"
int main(int argc, char **argv)
{
extern char *__bss_start;
...
...
@@ -824,7 +789,7 @@ CHECK_C_SOURCE_COMPILES_UNIX("
}"
HAVE_BSS_START
)
CHECK_C_SOURCE_COMPILES
_UNIX
(
"
CHECK_C_SOURCE_COMPILES
(
"
int main()
{
extern void __attribute__((weak)) foo(void);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment