define HAVE_DLOPEN also on Windows

SVN revision: 62863
This commit is contained in:
Vincent Torri 2011-08-26 16:01:28 +00:00
parent 6379fe2264
commit 56f0311cd3
1 changed files with 3 additions and 2 deletions

View File

@ -458,17 +458,18 @@ case "$host_os" in
mingw*)
# managed by evil
AC_DEFINE(HAVE_DLADDR)
AC_DEFINE(HAVE_DLOPEN)
;;
*)
AC_CHECK_FUNCS([dlopen], [res="yes"], [res="no"])
if test "x${res}" = "xyes" ; then
AC_CHECK_FUNCS([dladdr], [AC_DEFINE(HAVE_DLADDR)])
AC_DEFINE(HAVE_DLOPEN)
AC_DEFINE(HAVE_DLOPEN)
else
AC_CHECK_LIB([dl], [dlopen], [res="yes"], [res="no"])
if test "x${res}" = "xyes" ; then
AC_CHECK_LIB([dl], [dladdr], [AC_DEFINE(HAVE_DLADDR)])
AC_DEFINE(HAVE_DLOPEN)
AC_DEFINE(HAVE_DLOPEN)
dlopen_libs="-ldl"
fi
fi