diff options
author | Jonathan Perkin <jonathan.perkin@oracle.com> | 2010-06-25 11:02:39 +0100 |
---|---|---|
committer | Jonathan Perkin <jonathan.perkin@oracle.com> | 2010-06-25 11:02:39 +0100 |
commit | 0c73d0c9906b2ff1b559dfd934b4ebcf8e0eca95 (patch) | |
tree | f9145456a7d38ed166ddd682fe993eb4a784fb9d /cmake/build_configurations | |
parent | 6eaa73ab774564968a4a919d66cedd2ab7b50f75 (diff) | |
download | mariadb-git-0c73d0c9906b2ff1b559dfd934b4ebcf8e0eca95.tar.gz |
Ensure aio is available on Linux.
Diffstat (limited to 'cmake/build_configurations')
-rw-r--r-- | cmake/build_configurations/mysql_release.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake index b4d3dfc1c17..f4be350d1ae 100644 --- a/cmake/build_configurations/mysql_release.cmake +++ b/cmake/build_configurations/mysql_release.cmake @@ -103,6 +103,16 @@ IF(UNIX) ENDIF() OPTION(WITH_PIC "" ON) # Why? + + # Ensure aio is available on Linux (required by InnoDB) + IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") + CHECK_INCLUDE_FILES(libaio.h HAVE_LIBAIO_H) + CHECK_LIBRARY_EXISTS(aio io_queue_init "" HAVE_LIBAIO) + IF(NOT HAVE_LIBAIO_H OR NOT HAVE_LIBAIO) + MESSAGE(FATAL_ERROR "aio is required on Linux") + ENDIF() + ENDIF() + ENDIF() |