From 6cd8ff8f7101091559fa60535cb26d7c30b23fdf Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Fri, 11 Mar 2016 09:17:17 +0100 Subject: Add support for libdl to configure.ac Signed-off-by: Olliver Schinagl --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 1876d8f..e8b8193 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,10 @@ AC_CHECK_HEADERS([libintl.h]) AC_C_INLINE AC_FUNC_MALLOC +# FreeBSD doesn't have libdl, dlopen is provided by libc +AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB([dl], [dlopen], LIBDL="-ldl")]) +AC_SUBST(LIBDL) + AC_CONFIG_FILES([ Makefile data/Makefile -- cgit v0.12