Commit 762686af authored by Rafaël Carré's avatar Rafaël Carré Committed by Felix Paul Kühne
Browse files

configure: fixed compilation for darwin

parent 5e98d6da
...@@ -691,21 +691,24 @@ AC_CHECK_LIB(m,lrintf, [ ...@@ -691,21 +691,24 @@ AC_CHECK_LIB(m,lrintf, [
]) ])
dnl Check for dynamic plugins dnl Check for dynamic plugins
LIBDL="no" LIBDL=""
have_dynamic_objects="no"
LIBS_save="$LIBS" LIBS_save="$LIBS"
AC_SEARCH_LIBS(dlopen, [dl svld], [ AC_SEARCH_LIBS(dlopen, [dl svld], [
AS_IF([test "$ac_cv_search_dlopen" != "none required"], [ AS_IF([test "$ac_cv_search_dlopen" != "none required"], [
LIBDL="$ac_cv_search_dlopen" LIBDL="$ac_cv_search_dlopen"
]) ])
have_dynamic_objects="yes"
]) ])
LIBS="$LIBS_save" LIBS="$LIBS_save"
# Windows # Windows
AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"], [ AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"], [
LIBDL="" LIBDL=""
have_dynamic_objects="yes" #assume we can use shared objects
]) ])
AS_IF([test "$LIBDL" != "no"], [ AS_IF([test "$have_dynamic_objects" != "no"], [
AC_DEFINE(HAVE_DYNAMIC_PLUGINS, 1, AC_DEFINE(HAVE_DYNAMIC_PLUGINS, 1,
[Define to 1 if dynamic plugins are supported.]) [Define to 1 if dynamic plugins are supported.])
], [ ], [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment