mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
13 lines
355 B
CMake
13 lines
355 B
CMake
INCLUDE (CheckIncludeFiles)
|
|
INCLUDE (CheckFunctionExists)
|
|
|
|
CHECK_INCLUDE_FILES (security/pam_appl.h HAVE_PAM_APPL_H)
|
|
CHECK_FUNCTION_EXISTS (strndup HAVE_STRNDUP)
|
|
|
|
IF(HAVE_PAM_APPL_H)
|
|
IF(HAVE_STRNDUP)
|
|
ADD_DEFINITIONS(-DHAVE_STRNDUP)
|
|
ENDIF(HAVE_STRNDUP)
|
|
MYSQL_ADD_PLUGIN(auth_pam auth_pam.c LINK_LIBRARIES pam MODULE_ONLY)
|
|
ENDIF(HAVE_PAM_APPL_H)
|
|
|