diff options
author | François Andriot <[email protected]> | 2014-10-12 18:24:29 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-10-12 18:50:07 +0200 |
commit | bfbcf19a2fbfa301b8796f19b71fdee3e8c4fce6 (patch) | |
tree | 2e35f9ade51f07e6ef009bf7b3fdfcce106e99de /ConfigureChecks.cmake | |
parent | 56c4daef68fee06d34ac5021b64a0d8bd454b106 (diff) | |
download | tdebase-bfbcf19a2fbfa301b8796f19b71fdee3e8c4fce6.tar.gz tdebase-bfbcf19a2fbfa301b8796f19b71fdee3e8c4fce6.zip |
Fix hardcoded link flag to "dl" library
Fix "dlopen" function detection
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 6e35ca7db..21ec42001 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -14,6 +14,20 @@ tde_setup_architecture_flags( ) + +##### check for libdl ########################### + +set( DL_LIBRARIES dl ) +check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL ) +if( NOT HAVE_LIBDL ) + unset( DL_LIBRARIES ) + check_function_exists( dlopen HAVE_DLOPEN ) + if( HAVE_DLOPEN ) + set( HAVE_LIBDL 1 ) + endif( HAVE_DLOPEN ) +endif( NOT HAVE_LIBDL ) + + # termios.h (tdm, tdeioslave) if( BUILD_TDM OR BUILD_TDEIOSLAVES ) check_include_file( termios.h HAVE_TERMIOS_H ) |