From 7c73823e9f1619e471779c8f203b2774ca04fefd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 28 Jun 2015 21:12:02 +0200 Subject: Fix hardcoded link to dl library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 357bffb17e661ff3e293d38055b10c914e1316d9) --- ConfigureChecks.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 92dc5052..98279eb6 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -27,3 +27,16 @@ endif( ) find_package( TQt ) find_package( TQtQUI ) find_package( TDE ) + + +##### 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 ) -- cgit v1.2.1