254 |
fi |
fi |
255 |
|
|
256 |
if test "x$enable_plugins" = "xyes" ; then |
if test "x$enable_plugins" = "xyes" ; then |
257 |
|
PLUGINS_LIBS="../../plugins/lib_weechat_plugins.a" |
258 |
AC_CHECK_FUNCS(dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no) |
AC_CHECK_FUNCS(dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no) |
259 |
if test "$LIBDL_FOUND" != "yes"; then |
if test "$LIBDL_FOUND" != "yes"; then |
260 |
AC_CHECK_LIB(dl, dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no) |
AC_CHECK_LIB(dl, dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no) |
261 |
fi |
if test "$LIBDL_FOUND" = "yes"; then |
262 |
if test "$LIBDL_FOUND" = "yes"; then |
PLUGINS_LIBS="$PLUGINS_LIBS -ldl" |
263 |
PLUGINS_LIBS="../../plugins/lib_weechat_plugins.a -ldl" |
else |
264 |
AC_DEFINE(PLUGINS) |
AC_MSG_ERROR([ |
|
else |
|
|
AC_MSG_ERROR([ |
|
265 |
*** "dl" library (dynamic library loader) couldn't be found in your system. |
*** "dl" library (dynamic library loader) couldn't be found in your system. |
266 |
*** Try to install it with your software package manager or disable plugins.]) |
*** Try to install it with your software package manager or disable plugins.]) |
267 |
|
fi |
268 |
fi |
fi |
269 |
|
AC_DEFINE(PLUGINS) |
270 |
fi |
fi |
271 |
|
|
272 |
AC_SUBST(PLUGINS_LIBS) |
AC_SUBST(PLUGINS_LIBS) |