summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-03-02 15:58:10 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-03-02 15:58:10 +0000
commit312ad619aee1cf9c918e43a154c836b09d0d7bc6 (patch)
tree7683f61790a8eeb34c5c5f2b42c6d930e81bbee4
parentScript plugins now load scripts in WeeChat system share directory (diff)
downloadweechat-312ad619aee1cf9c918e43a154c836b09d0d7bc6.tar.xz
weechat-312ad619aee1cf9c918e43a154c836b09d0d7bc6.zip
Fixed bug with dl library detection (for FreeBSD and maybe other systems)
-rw-r--r--configure.in27
-rw-r--r--weechat/configure.in27
2 files changed, 26 insertions, 28 deletions
diff --git a/configure.in b/configure.in
index 9c48e0653..51334ac06 100644
--- a/configure.in
+++ b/configure.in
@@ -423,23 +423,22 @@ fi
if test "x$enable_plugins" = "xyes" ; then
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)
- if test "$LIBDL_FOUND" = "yes"; then
- PLUGINS_LIBS="-ldl"
- AC_DEFINE(PLUGINS)
- AC_SUBST(PLUGINS_LIBS)
- else
- AC_MSG_WARN([
+ AC_CHECK_LIB(dl, dlopen, [LIBDL_FOUND=yes; PLUGINS_LIBS=-ldl], LIBDL_FOUND=no)
+ fi
+ if test "$LIBDL_FOUND" = "yes"; then
+ AC_DEFINE(PLUGINS)
+ AC_SUBST(PLUGINS_LIBS)
+ else
+ AC_MSG_WARN([
*** "dl" library (dynamic library loader) couldn't be found in your system.
*** Try to install it with your software package manager or disable plugins.
*** WeeChat will be built without any plugin.])
- enable_plugins="no"
- enable_perl="no"
- enable_python="no"
- enable_ruby="no"
- enable_lua="no"
- not_found="$not_found plugins"
- fi
+ enable_plugins="no"
+ enable_perl="no"
+ enable_python="no"
+ enable_ruby="no"
+ enable_lua="no"
+ not_found="$not_found plugins"
fi
fi
diff --git a/weechat/configure.in b/weechat/configure.in
index 9c48e0653..51334ac06 100644
--- a/weechat/configure.in
+++ b/weechat/configure.in
@@ -423,23 +423,22 @@ fi
if test "x$enable_plugins" = "xyes" ; then
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)
- if test "$LIBDL_FOUND" = "yes"; then
- PLUGINS_LIBS="-ldl"
- AC_DEFINE(PLUGINS)
- AC_SUBST(PLUGINS_LIBS)
- else
- AC_MSG_WARN([
+ AC_CHECK_LIB(dl, dlopen, [LIBDL_FOUND=yes; PLUGINS_LIBS=-ldl], LIBDL_FOUND=no)
+ fi
+ if test "$LIBDL_FOUND" = "yes"; then
+ AC_DEFINE(PLUGINS)
+ AC_SUBST(PLUGINS_LIBS)
+ else
+ AC_MSG_WARN([
*** "dl" library (dynamic library loader) couldn't be found in your system.
*** Try to install it with your software package manager or disable plugins.
*** WeeChat will be built without any plugin.])
- enable_plugins="no"
- enable_perl="no"
- enable_python="no"
- enable_ruby="no"
- enable_lua="no"
- not_found="$not_found plugins"
- fi
+ enable_plugins="no"
+ enable_perl="no"
+ enable_python="no"
+ enable_ruby="no"
+ enable_lua="no"
+ not_found="$not_found plugins"
fi
fi