Fix libdl detection on FreeBSD.

Refs #4977
This commit is contained in:
Gunnar Beutner 2013-10-30 12:29:21 +01:00
parent 9ddd14e0fe
commit ef55412855
4 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,7 @@ pkglib_LTLIBRARIES = \
BUILT_SOURCES = \
demo.th
nodist_libdemo_SOURCES = $(BUILT_SOURCES)
nodist_libdemo_la_SOURCES = $(BUILT_SOURCES)
CLEANFILES = \
demo-type.cpp

View File

@ -112,6 +112,9 @@ AC_CHECK_LIB(ws2_32, getsockname)
AC_CHECK_LIB(shlwapi, PathRemoveFileSpecA)
AC_CHECK_FUNCS([backtrace_symbols execvpe pipe2 pthread_set_name_np pthread_setname_np])
AC_CHECK_LIB(c, dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
AC_SUBST([LIBDL])
AC_TRY_LINK([#include <openssl/evp.h>
#include <openssl/bio.h>
#include <openssl/comp.h>], [BIO_f_zlib();], ac_cv_lib_biozlib="yes")

View File

@ -142,7 +142,7 @@ libbase_la_LDFLAGS = \
@VERSION_INFO@
libbase_la_LIBADD = \
-ldl \
$(LIBDL) \
$(OPENSSL_LIBS) \
$(BOOST_SIGNALS_LIB) \
$(BOOST_THREAD_LIB) \

View File

@ -20,7 +20,7 @@ BUILT_SOURCES = \
user.th \
usergroup.th
nodist_libicinga_SOURCES = $(BUILT_SOURCES)
nodist_libicinga_la_SOURCES = $(BUILT_SOURCES)
CLEANFILES = \
icinga-type.cpp