Package: pennmush  
Severity: important
Version: 1.8.0p9-1
Tags: patch

Hi,

the current version fails to build on GNU/kFreeBSD.

It fails to really recognise whether GNU C Library is used.

Please find enclosed patch with an uptodate test added to fix that. 

It would also be nice if you can ask upstream 
to include this changes.

Thanks in advance

                        Petr

--- pennmush-1.8.0p9.orig/Configure
+++ pennmush-1.8.0p9/Configure
@@ -3148,10 +3148,27 @@
 if $cc $ccflags $ldflags -o gnulibc gnulibc.c $libs >/dev/null 2>&1 && \
   ./gnulibc | $contains '^GNU C Library' >/dev/null 2>&1; then
        val="$define"
-       echo "You are using the GNU C Library"
+       echo "You are using the GNU C Library" >&4
 else
+cat >gnulibc.c <<EOM
+#include <features.h>
+int main()
+{
+#ifdef __GLIBC__
+  return 0;
+#else
+  return 1;
+#endif
+}
+EOM
+if $cc $ccflags $ldflags -o gnulibc gnulibc.c $libs >/dev/null 2>&1 && \
+  ./gnulibc; then
+        val="$define"
+        echo "You are using the GNU C Library" >&4
+else
        val="$undef"
-       echo "You are not using the GNU C Library"
+       echo "You are not using the GNU C Library" >&4
+fi
 fi
 $rm -f gnulibc*
 set d_gnulibc




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to