From: Roman Bogorodskiy Date: Thu, 28 Jul 2011 13:35:00 +0000 (+0400) Subject: Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for dlopen() to fix on *BSD. X-Git-Tag: 0.3~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f4923bcaa66809aa247859b48f2d67d8950097e;p=p11-kit Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for dlopen() to fix on *BSD. https://bugs.freedesktop.org/show_bug.cgi?id=39622 --- diff --git a/configure.ac b/configure.ac index 26e86fe..45330f4 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,7 @@ AM_PROG_CC_C_O dnl Checks for libraries. AC_CHECK_LIB(pthread, pthread_mutex_lock,, [AC_MSG_ERROR([could not find pthread_mutex_lock])]) -AC_CHECK_LIB(dl, dlopen,, +AC_SEARCH_LIBS([dlopen], [dl dld], [], [AC_MSG_ERROR([could not find dlopen])])