Blame SOURCES/netkit-ftp-0.17-volatile.patch

4f574c
--- netkit-ftp-0.17/configure.volatile	2004-06-14 12:08:26.000000000 -0400
4f574c
+++ netkit-ftp-0.17/configure	2004-06-14 12:52:41.000000000 -0400
4f574c
@@ -193,8 +193,8 @@
4f574c
 cat <<EOF >__conftest.c
4f574c
 #include <unistd.h>
4f574c
 #include <signal.h>
4f574c
-int count=0;
4f574c
-void handle(int foo) { count++; }
4f574c
+volatile int count=0;
4f574c
+void handle(int foo) { count++; write(1,"X",1);}
4f574c
 int main() {
4f574c
     int pid=getpid();
4f574c
     signal(SIGINT, handle);
4f574c
@@ -209,20 +209,20 @@
4f574c
 if (
4f574c
       $CC $CFLAGS  __conftest.c  -o __conftest || exit 1
4f574c
       ./__conftest || exit 1
4f574c
-   ) >/dev/null 2>&1; then
4f574c
+   ); then
4f574c
     echo 'yes'
4f574c
 else
4f574c
     if (
4f574c
           $CC $CFLAGS -D__USE_BSD_SIGNAL __conftest.c  -o __conftest || exit 1
4f574c
           ./__conftest || exit 1
4f574c
-       ) >/dev/null 2>&1; then
4f574c
+       ); then
4f574c
         echo '-D__USE_BSD_SIGNAL'
4f574c
         CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
4f574c
     else
4f574c
         echo 'no'
4f574c
-        echo 'This package needs BSD signal semantics to run.'
4f574c
-        rm -f __conftest*
4f574c
-        exit
4f574c
+        echo '***WARNING***: This package needs BSD signal semantics to run.'
4f574c
+	echo '***WARNING***: Assuming its just ia64 buildroot breakage.'
4f574c
+        CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
4f574c
     fi
4f574c
 fi
4f574c
 rm -f __conftest*