pkgsrc/graphics/s10sh/patches/patch-aa

56 lines
1.3 KiB
Text

$NetBSD: patch-aa,v 1.1.1.1 2001/03/28 16:52:42 drochner Exp $
--- configure.orig Wed Mar 28 17:53:14 2001
+++ configure Wed Mar 28 18:03:03 2001
@@ -4,35 +4,7 @@
echo
READLINE_DEFAULT="n"
-USB_DEFAULT="n"
-
-if test -f /usr/include/readline/readline.h; then
- READLINE_DEFAULT="y"
-fi
-
-if test -f /usr/local/include/readline/readline.h; then
- READLINE_DEFAULT="y"
-fi
-
-echo Do you want readline support? \(y/n default $READLINE_DEFAULT\)
-read TMP
-if [ "$TMP" != "" ]; then
- READLINE_DEFAULT=$TMP
-fi
-
-echo Do you want USB support? \(y/n default $USB_DEFAULT\)
-read TMP
-if [ "$TMP" != "" ]; then
- USB_DEFAULT=$TMP
-fi
-
-if [ "$READLINE_DEFAULT" != "y" ]; then
- READLINE_DEFAULT="n"
-fi
-
-if [ "$USB_DEFAULT" != "y" ]; then
- USB_DEFAULT="n"
-fi
+USB_DEFAULT="y"
echo
echo READLINE support: $READLINE_DEFAULT
@@ -52,12 +24,8 @@
HAVE_USB_SUPPORT="-DHAVE_USB_SUPPORT"
version=""
- if test -f /usr/bin/libusb-config; then
- lusbconf="/usr/bin/libusb-config"
- version=`$lusbconf --version 2> /dev/null`
- fi
- if test -f /usr/local/bin/libusb-config; then
- lusbconf="/usr/local/bin/libusb-config"
+ if test -f ${LOCALBASE}/bin/libusb-config; then
+ lusbconf="${LOCALBASE}/bin/libusb-config"
version=`$lusbconf --version 2> /dev/null`
fi