--- configure.in +++ configure.in @@ -60,6 +60,15 @@ GNOME_CFLAGS="$GNOME_CFLAGS -DHAVE_GNOME=1" fi +dnl Check for libgmodule-2.0 flags to prevent underlinking +dnl Required due to Gentoo bug #497192 +PKG_CHECK_MODULES([GMODULE], [gmodule-2.0]) +GNOME_CFLAGS="$GNOME_CFLAGS $GMODULE_CFLAGS" +GNOME_LIBS="$GNOME_LIBS $GMODULE_LIBS" + +dnl Check for libm, also due to underlinking +AC_CHECK_LIB([m], [cos], [LIBS="$LIBS -lm"]) + AC_SUBST(GNOME_CFLAGS) AC_SUBST(GNOME_LIBS)