1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

When dlopen function is found without dl lib, do not link with -ldl (now ok

under FreeBSD)
This commit is contained in:
Sebastien Helleu
2005-10-17 10:36:09 +00:00
parent fa54807ef6
commit 9eb142036e
2 changed files with 14 additions and 12 deletions
+7 -6
View File
@@ -254,18 +254,19 @@ if test "x$enable_ruby" = "xyes" ; then
fi
if test "x$enable_plugins" = "xyes" ; then
PLUGINS_LIBS="../../plugins/lib_weechat_plugins.a"
AC_CHECK_FUNCS(dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no)
if test "$LIBDL_FOUND" != "yes"; then
AC_CHECK_LIB(dl, dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no)
fi
if test "$LIBDL_FOUND" = "yes"; then
PLUGINS_LIBS="../../plugins/lib_weechat_plugins.a -ldl"
AC_DEFINE(PLUGINS)
else
AC_MSG_ERROR([
if test "$LIBDL_FOUND" = "yes"; then
PLUGINS_LIBS="$PLUGINS_LIBS -ldl"
else
AC_MSG_ERROR([
*** "dl" library (dynamic library loader) couldn't be found in your system.
*** Try to install it with your software package manager or disable plugins.])
fi
fi
AC_DEFINE(PLUGINS)
fi
AC_SUBST(PLUGINS_LIBS)
+7 -6
View File
@@ -254,18 +254,19 @@ if test "x$enable_ruby" = "xyes" ; then
fi
if test "x$enable_plugins" = "xyes" ; then
PLUGINS_LIBS="../../plugins/lib_weechat_plugins.a"
AC_CHECK_FUNCS(dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no)
if test "$LIBDL_FOUND" != "yes"; then
AC_CHECK_LIB(dl, dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no)
fi
if test "$LIBDL_FOUND" = "yes"; then
PLUGINS_LIBS="../../plugins/lib_weechat_plugins.a -ldl"
AC_DEFINE(PLUGINS)
else
AC_MSG_ERROR([
if test "$LIBDL_FOUND" = "yes"; then
PLUGINS_LIBS="$PLUGINS_LIBS -ldl"
else
AC_MSG_ERROR([
*** "dl" library (dynamic library loader) couldn't be found in your system.
*** Try to install it with your software package manager or disable plugins.])
fi
fi
AC_DEFINE(PLUGINS)
fi
AC_SUBST(PLUGINS_LIBS)