1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Alexander Færøy 2010-04-03 16:02:41 +00:00 committed by ahf
parent b7a0807505
commit 176e561b68

View File

@ -333,50 +333,6 @@ if test "x$want_gc" = xyes; then
]) ])
fi 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 **
dnl ** curses checks dnl ** curses checks
dnl ** dnl **
@ -457,12 +413,6 @@ if test "$want_perl" != "no"; then
else else
PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null` 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 * remove all database stuffs
dnl * nsl is already in ldflags dnl * nsl is already in ldflags
dnl * libc is of course linked without needing -lc dnl * libc is of course linked without needing -lc