summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@irssi.org>2010-04-03 16:02:41 +0000
committerahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564>2010-04-03 16:02:41 +0000
commit176e561b6851fe81edbe7d0096528ca9182119d5 (patch)
tree725922c3af96cfe5d4a2ccd1795f4e0c54e5beba
parentb7a080750585f01a88c02a6083c1a3adcc5ed732 (diff)
downloadirssi-176e561b6851fe81edbe7d0096528ca9182119d5.zip
Remove dodgy check from configure.in. Thanks to exg.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5132 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--configure.in50
1 files changed, 0 insertions, 50 deletions
diff --git a/configure.in b/configure.in
index 63f8913e..7a7ec643 100644
--- a/configure.in
+++ b/configure.in
@@ -334,50 +334,6 @@ if test "x$want_gc" = xyes; then
fi
dnl **
-dnl ** check if we can link dynamic libraries to modules
-dnl ** also checks if libraries are built to .libs dir
-dnl **
-
-AC_MSG_CHECKING([if we can link dynamic libraries with modules])
-DYNLIB_MODULES=no
-
-dnl ** compile object file
-cat > conftest.c <<EOF
-#include <math.h>
-int modfunc(){return (int)floor(1.2);}
-EOF
-
-if ! ./libtool --tag=CC --mode=compile $CC $CFLAGS -c conftest.c >/dev/null 2>&1 || \
- ! ./libtool --tag=CC --mode=link $CC $CFLAGS $LDFLAGS -rpath /usr/lib conftest.lo -lm -o libconftest.la >/dev/null 2>&1; then
- AC_MSG_RESULT([no, error compiling test module])
-else
- cat > conftest.c <<EOF
-#include <gmodule.h>
-main() {
-GModule *m; int (*modfunc)(void);
-m = g_module_open("libconftest.la", 0);
-if (!m) g_print("error loading: %s", g_module_error());
-else if (!g_module_symbol(m, "modfunc", (gpointer *) &modfunc))
- g_print("modfunc() symbol not found from module");
-else if (modfunc() == 1) g_print("ok"); else g_print("wrong result?! 1 vs %d", modfunc());
-return 0; }
-EOF
- $CC $CFLAGS $LDFLAGS conftest.c -o conftest $GLIB_CFLAGS $GLIB_LIBS 2> /dev/null > /dev/null
- if test ! -s conftest; then
- AC_MSG_RESULT([no, error compiling test program])
- else
- status="`./conftest`"
- if test "x$status" = "xok"; then
- DYNLIB_MODULES=yes
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no, error running: $status])
- fi
- fi
-fi
-rm -rf conftest conftest.* libconftest.* .libs
-
-dnl **
dnl ** curses checks
dnl **
@@ -457,12 +413,6 @@ if test "$want_perl" != "no"; then
else
PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null`
- if test "x$DYNLIB_MODULES" = "xno" -a "$want_perl" != "static"; then
- dnl * wanted perl as module, won't get it.
- want_perl=static
- perl_mod_error="Dynamic library dependencies don't work with modules"
- fi
-
dnl * remove all database stuffs
dnl * nsl is already in ldflags
dnl * libc is of course linked without needing -lc