configure: we can actually safely imply -ldl is only needed on linux

This commit is contained in:
Daniel Kolesa 2015-08-05 12:27:34 +01:00
parent cfb1e05360
commit 56881a8df4
1 changed files with 4 additions and 10 deletions

View File

@ -337,16 +337,7 @@ dnl managed by evil
have_dlopen="yes"
requirement_elm_libs="-ldl ${requirement_elm_libs}"
;;
*solaris*)
have_dlopen="yes"
;;
darwin*)
have_dlopen="yes"
;;
freebsd*|openbsd*|netbsd*|dragonfly*)
have_dlopen="yes"
;;
*)
linux*)
AC_CHECK_LIB([dl], [dlopen], [res=yes], [res=no])
if test "x$res" = "xyes"; then
AC_CHECK_LIB([dl], [dladdr], AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if you have the `dladdr' function.]))
@ -354,6 +345,9 @@ dnl managed by evil
have_dlopen="yes"
fi
;;
*)
have_dlopen="yes"
;;
esac
AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"])