From 176e561b6851fe81edbe7d0096528ca9182119d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= Date: Sat, 3 Apr 2010 16:02:41 +0000 Subject: [PATCH] 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 --- configure.in | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) diff --git a/configure.in b/configure.in index 63f8913e..7a7ec643 100644 --- a/configure.in +++ b/configure.in @@ -333,50 +333,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 < -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 < -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