[cpp-xmltooling] 05/22: Fail configuration if dlopen() is not found

Scott Cantor cantor.2 at osu.edu
Thu Jun 21 14:57:21 EDT 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-xmltooling.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=cd1544b3d75ad251f2aa1842cd8c5adddc83fb44

commit cd1544b3d75ad251f2aa1842cd8c5adddc83fb44
Author: Ferenc Wágner <wferi at niif.hu>
AuthorDate: Mon Jul 4 18:44:08 2016 +0200

    Fail configuration if dlopen() is not found
    
    The dlopen() function is not needed under WIN32, but the Windows builds
    don't use Autotools.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 5a56c1d..037bc72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,7 @@ AC_HEADER_DIRENT
 # Checks for library functions.
 AC_CHECK_FUNCS([strchr strdup strstr timegm gmtime_r strcasecmp])
 AC_CHECK_HEADERS([dlfcn.h])
-AC_CHECK_FUNC(dlclose, , [ AC_CHECK_LIB(dl, dlopen) ])
+AC_SEARCH_LIBS([dlopen],[dl],,[AC_MSG_ERROR([cannot find dlopen() function])])
 
 # checks for pthreads
 AX_PTHREAD([enable_threads="pthread"],[enable_threads="no"])

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list