Source: spim
Version: 8.0+dfsg-6.2
Tags: patch upstream
Control: block 798955 by -1

The Configure scripts hard code the location of termios.h. This is going
to fail with non-glibc libcs as well as a glibc that fixes #798955. spim
will fail to build from source. The attached removes the broken
assumption. Please consider applying it.

Helmut
--- spim-8.0+dfsg.orig/spim/Configure
+++ spim-8.0+dfsg/spim/Configure
@@ -182,7 +182,7 @@
 
 echo
 echo Checking for /usr/include/termios.h
-if [ -f /usr/include/termios.h ]; then
+if echo '#include <termios.h>' | $CC -E - >/dev/null 2>&1; then
   echo "-DUSE_TERMIOS" >> ./configuration
   echo "Yes, it is there"
 else
--- spim-8.0+dfsg.orig/xspim/Configure
+++ spim-8.0+dfsg/xspim/Configure
@@ -171,7 +171,7 @@
 
 echo
 echo Checking for /usr/include/termios.h
-if [ -f /usr/include/termios.h ]; then
+if echo '#include <termios.h>' | $CC -E - >/dev/null 2>&1; then
   echo "-DUSE_TERMIOS" >> ./configuration
   echo "Yes, it is there"
 else

Reply via email to