aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-05 06:26:10 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-05 06:26:10 +0000
commit8d63798f744cd7232b37e38939517353be111ff0 (patch)
tree3dceff52fd6d3b3b6fb64874aab4a1ac548613ea
parentc5b60004a76e74bbbe957f7c14c3cde297f2a8da (diff)
downloadlcd4linux-8d63798f744cd7232b37e38939517353be111ff0.tar.gz
only use picoLCD if libusb is available
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@763 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rwxr-xr-xconfigure14
-rw-r--r--drivers.m415
2 files changed, 18 insertions, 11 deletions
diff --git a/configure b/configure
index 8771f90..457531b 100755
--- a/configure
+++ b/configure
@@ -7643,16 +7643,20 @@ _ACEOF
fi
if test "$picoLCD" = "yes"; then
- TEXT="yes"
- GPIO="yes"
- SERIAL="yes"
- #I2C="yes"
- DRIVERS="$DRIVERS drv_picoLCD.o"
+ if test "$has_usb" = "true"; then
+ TEXT="yes"
+ GPIO="yes"
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_picoLCD.o"
cat >>confdefs.h <<\_ACEOF
#define WITH_picoLCD 1
_ACEOF
+ else
+ { echo "$as_me:$LINENO: WARNING: usb.h not found: picoLCD driver disabled" >&5
+echo "$as_me: WARNING: usb.h not found: picoLCD driver disabled" >&2;}
+ fi
fi
if test "$PNG" = "yes"; then
diff --git a/drivers.m4 b/drivers.m4
index 32a624e..756e2b7 100644
--- a/drivers.m4
+++ b/drivers.m4
@@ -392,12 +392,15 @@ if test "$NULL" = "yes"; then
fi
if test "$picoLCD" = "yes"; then
- TEXT="yes"
- GPIO="yes"
- SERIAL="yes"
- #I2C="yes"
- DRIVERS="$DRIVERS drv_picoLCD.o"
- AC_DEFINE(WITH_picoLCD,1,[picoLCD driver])
+ if test "$has_usb" = "true"; then
+ TEXT="yes"
+ GPIO="yes"
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_picoLCD.o"
+ AC_DEFINE(WITH_picoLCD,1,[picoLCD driver])
+ else
+ AC_MSG_WARN(usb.h not found: picoLCD driver disabled)
+ fi
fi
if test "$PNG" = "yes"; then