From: Sébastien Noel <sebastien@twolife.be>
Forwarded: TODO
Description: If Minix and Haiku are not "weird", GNU/Hurd isn't either
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -637,6 +637,9 @@ AC_DEFUN([EGG_CHECK_MODULE_SUPPORT],
     Minix)
       WEIRD_OS="no"
     ;;
+    GNU)
+      WEIRD_OS="no"
+    ;;
     *)
       if test -r /mach; then
         # At this point, we're guessing this is NeXT Step. We support rld, so
@@ -807,6 +810,10 @@ AC_DEFUN([EGG_CHECK_OS],
       SHLIB_LD="ld -bundle -undefined error"
       AC_DEFINE(BIND_8_COMPAT, 1, [Define if running on Mac OS X with dns.mod.])
     ;;
+    GNU)
+      SHLIB_CC="$CC -fPIC"
+      SHLIB_LD="$CC -shared -nostartfiles $LDFLAGS"
+    ;;
     *)
       if test -r /mach; then
         # At this point, we're guessing this is NeXT Step.
