From 0c9798c9429cabcded458ba127972ea096e69978 Mon Sep 17 00:00:00 2001 From: michux Date: Sun, 23 Nov 2008 00:20:58 +0000 Subject: fix automake - check for libftdi git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@902 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drivers.m4 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'drivers.m4') diff --git a/drivers.m4 b/drivers.m4 index deab189..4f5a392 100644 --- a/drivers.m4 +++ b/drivers.m4 @@ -567,11 +567,15 @@ if test "$Trefon" = "yes"; then fi if test "$ULA200" = "yes"; then - TEXT="yes" - LIBUSB="yes" - LIBFTDI="yes" - DRIVERS="$DRIVERS drv_ula200.o" - AC_DEFINE(WITH_ULA200,1,[ULA200 driver]) + if test "$has_ftdi" = "true"; then + TEXT="yes" + LIBUSB="yes" + LIBFTDI="yes" + DRIVERS="$DRIVERS drv_ula200.o" + AC_DEFINE(WITH_ULA200,1,[ULA200 driver]) + else + AC_MSG_WARN(ftdi.h not found: ULA200 driver disabled) + fi fi if test "$USBHUB" = "yes"; then -- cgit v1.2.3