aboutsummaryrefslogtreecommitdiffstats
path: root/drivers.m4
diff options
context:
space:
mode:
Diffstat (limited to 'drivers.m4')
-rw-r--r--drivers.m4424
1 files changed, 350 insertions, 74 deletions
diff --git a/drivers.m4 b/drivers.m4
index a8284c9..7ee94ce 100644
--- a/drivers.m4
+++ b/drivers.m4
@@ -1,10 +1,10 @@
-dnl $Id: drivers.m4 792 2007-04-30 05:02:57Z michael $
-dnl $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/drivers.m4 $
+dnl $Id: drivers.m4 1137 2011-01-02 00:39:10Z michael $
+dnl $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drivers.m4 $
dnl LCD4Linux Drivers conf part
dnl
-dnl Copyright (C) 1999, 2000, 2001, 2002, 2003 Michael Reinelt <reinelt@eunet.at>
+dnl Copyright (C) 1999, 2000, 2001, 2002, 2003 Michael Reinelt <michael@reinelt.co.at>
dnl Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
dnl
dnl This file is part of LCD4Linux.
@@ -25,20 +25,22 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
AC_MSG_CHECKING([which drivers to compile])
AC_ARG_WITH(
- drivers,
+ drivers,
[ --with-drivers=<list> compile driver for displays in <list>,]
- [ drivers may be separated with commas,]
- [ 'all' (default) compiles all available drivers,]
- [ drivers may be excluded with 'all,!<driver>',]
- [ (try 'all,\!<driver>' if your shell complains...)]
- [ possible drivers are:]
- [ BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux,]
- [ G15, HD44780, LCD2USB LCDLinux, LCDTerm, LPH7508,]
- [ LUIse, M50530, MatrixOrbital, MilfordInstruments,]
- [ Noritake, NULL, PNG, PPM, picoLCD, RouterBoard, Sample,]
- [ serdisplib, SimpleLCD, T6963, Trefon, USBLCD,]
- [ USBHUB, WincorNixdorf, X11],
- drivers=$withval,
+ [ drivers may be separated with commas,]
+ [ 'all' (default) compiles all available drivers,]
+ [ drivers may be excluded with 'all,!<driver>',]
+ [ (try 'all,\!<driver>' if your shell complains...)]
+ [ possible drivers are:]
+ [ ASTUSB, BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux, D4D,]
+ [ EA232Graphic, EFN, FW8888, G15, GLCD2USB, HD44780, HD44780-I2C,]
+ [ IRLCD, LCD2USB, LCDLinux, LEDMatrix, LCDTerm, LPH7508, LUIse,]
+ [ LW_ABP, M50530, MatrixOrbital, MatrixOrbitalGX,]
+ [ MilfordInstruments, Noritake, NULL, Pertelian, PHAnderson,]
+ [ PICGraphic, picoLCD, picoLCDGraphic, PNG, PPM, RouterBoard,]
+ [ Sample, serdisplib, ShuttleVFD, SimpleLCD, st2205, T6963,]
+ [ Trefon, ULA200, USBHUB, USBLCD, VNC, WincorNixdorf, X11],
+ drivers=$withval,
drivers=all
)
@@ -46,51 +48,71 @@ drivers=`echo $drivers|sed 's/,/ /g'`
for driver in $drivers; do
- case $driver in
- !*)
+ case $driver in
+ !*)
val="no"
driver=`echo $driver|cut -c 2-`
;;
- *)
+ *)
val="yes"
;;
esac
-
+
case "$driver" in
all)
+ ASTUSB="yes"
BECKMANNEGLE="yes"
BWCT="yes"
CRYSTALFONTZ="yes"
CURSES="yes"
CWLINUX="yes"
+ D4D="yes"
EA232graphic="yes"
+ EFN="yes"
+ FW8888="yes"
G15="yes"
+ GLCD2USB="yes"
HD44780="yes"
+ HD44780_I2C="yes"
+ IRLCD="yes"
LCD2USB="yes"
LCDLINUX="yes"
LCDTERM="yes"
LEDMATRIX="yes"
LPH7508="yes"
LUISE="yes"
+ LW_ABP="yes"
M50530="yes"
MATRIXORBITAL="yes"
+ MATRIXORBITALGX="yes"
MILINST="yes"
- NORITAKE="yes"
- NULL="yes"
- picoLCD="yes"
+ NORITAKE="yes"
+ NULL="yes"
+ PERTELIAN="yes"
+ PHANDERSON="yes"
+ PICGRAPHIC="yes"
+ PICOLCD="yes"
+ PICOLCDGRAPHIC="yes"
PNG="yes"
PPM="yes"
ROUTERBOARD="yes"
SAMPLE="yes"
+ ST2205="yes"
SERDISPLIB="yes"
+ SHUTTLEVFD="yes"
SIMPLELCD="yes"
T6963="yes"
Trefon="yes"
+ ULA200="yes"
USBHUB="yes"
USBLCD="yes"
+ VNC="yes"
WINCORNIXDORF="yes"
X11="yes"
;;
+ ASTUSB)
+ ASTUSB=$val
+ ;;
BeckmannEgle)
BECKMANNEGLE=$val
;;
@@ -106,18 +128,33 @@ for driver in $drivers; do
Cwlinux)
CWLINUX=$val
;;
+ D4D)
+ D4D=$val
+ ;;
EA232graphic)
EA232graphic=$val
;;
+ EFN)
+ EFN=$val
+ ;;
+ FW8888)
+ FW8888=$val
+ ;;
G15)
G15=$val
;;
+ GLCD2USB)
+ GLCD2USB=$val
+ ;;
HD44780)
HD44780=$val
;;
HD44780-I2C)
HD44780_I2C=$val
;;
+ IRLCD)
+ IRLCD=$val
+ ;;
LCD2USB)
LCD2USB=$val
;;
@@ -136,12 +173,18 @@ for driver in $drivers; do
LUIse)
LUISE=$val
;;
+ LW_ABP)
+ LW_ABP=$val
+ ;;
M50530)
M50530=$val
;;
MatrixOrbital)
MATRIXORBITAL=$val
;;
+ MatrixOrbitalGX)
+ MATRIXORBITALGX=$val
+ ;;
MilfordInstruments)
MILINST=$val
;;
@@ -151,9 +194,21 @@ for driver in $drivers; do
NULL)
NULL=$val;
;;
+ Pertelian)
+ PERTELIAN=$val
+ ;;
+ PHAnderson)
+ PHANDERSON=$val
+ ;;
+ PICGraphic)
+ PICGRAPHIC=$val
+ ;;
picoLCD)
- picoLCD=$val
- ;;
+ PICOLCD=$val
+ ;;
+ picoLCDGraphic)
+ PICOLCDGRAPHIC=$val
+ ;;
PNG)
PNG=$val
;;
@@ -169,28 +224,40 @@ for driver in $drivers; do
serdisplib)
SERDISPLIB=$val;
;;
+ ShuttleVFD)
+ SHUTTLEVFD=$val
+ ;;
SimpleLCD)
SIMPLELCD=$val
;;
+ st2205)
+ ST2205=$val
+ ;;
T6963)
T6963=$val
;;
Trefon)
Trefon=$val
;;
+ ULA200)
+ ULA200=$val
+ ;;
USBHUB)
USBHUB=$val
;;
USBLCD)
USBLCD=$val
;;
+ VNC)
+ VNC=$val
+ ;;
WincorNixdorf)
WINCORNIXDORF=$val
;;
X11)
X11=$val
;;
- *)
+ *)
AC_MSG_ERROR([Unknown driver '$driver'])
;;
esac
@@ -213,6 +280,19 @@ KEYPAD="no"
# generic libraries
LIBUSB="no"
+LIBFTDI="no"
+
+if test "$ASTUSB" = "yes"; then
+ if test "$has_usb" = "true"; then
+ TEXT="yes"
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_ASTUSB.o"
+ LIBUSB="yes"
+ AC_DEFINE(WITH_ASTUSB,1,[ASTUSB driver])
+ else
+ AC_MSG_WARN(usb.h not found: ASTUSB driver disabled)
+ fi
+fi
if test "$BECKMANNEGLE" = "yes"; then
TEXT="yes"
@@ -252,7 +332,7 @@ if test "$CURSES" = "yes"; then
AC_DEFINE(WITH_CURSES,1,[Curses driver])
else
AC_MSG_WARN(curses not found: Curses driver disabled)
- fi
+ fi
fi
if test "$CWLINUX" = "yes"; then
@@ -264,6 +344,14 @@ if test "$CWLINUX" = "yes"; then
AC_DEFINE(WITH_CWLINUX,1,[CwLinux driver])
fi
+if test "$D4D" = "yes"; then
+ TEXT="yes"
+ GRAPHIC="yes"
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_D4D.o"
+ AC_DEFINE(WITH_D4D,1,[D4D driver])
+fi
+
if test "$EA232graphic" = "yes"; then
GRAPHIC="yes"
SERIAL="yes"
@@ -272,6 +360,20 @@ if test "$EA232graphic" = "yes"; then
AC_DEFINE(WITH_EA232graphic,1,[Electronic Assembly RS232 graphic driver])
fi
+if test "$EFN" = "yes"; then
+ TEXT="yes"
+ DRIVERS="$DRIVERS drv_EFN.o"
+ AC_DEFINE(WITH_EFN,1,[Driver for EFN LED modules and EUG 100 ethernet to serial converter])
+fi
+
+
+if test "$FW8888" = "yes"; then
+ TEXT="yes"
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_FW8888.o"
+ AC_DEFINE(WITH_FW8888,1,[Allnet FW8888 driver])
+fi
+
if test "$G15" = "yes"; then
if test "$has_usb" = "true"; then
GRAPHIC="yes"
@@ -283,13 +385,16 @@ if test "$G15" = "yes"; then
fi
fi
-if test "$HD44780" = "yes"; then
- TEXT="yes"
- PARPORT="yes"
- I2C="yes"
- GPIO="yes"
- DRIVERS="$DRIVERS drv_HD44780.o"
- AC_DEFINE(WITH_HD44780,1,[HD44780 driver])
+if test "$GLCD2USB" = "yes"; then
+ if test "$has_usb" = "true"; then
+ GRAPHIC="yes"
+ KEYPAD="yes"
+ DRIVERS="$DRIVERS drv_GLCD2USB.o"
+ LIBUSB="yes"
+ AC_DEFINE(WITH_GLCD2USB,1,[GLCD2USB driver])
+ else
+ AC_MSG_WARN(usb.h not found: GLCD2USB driver disabled)
+ fi
fi
if test "$HD44780_I2C" = "yes"; then
@@ -300,6 +405,37 @@ if test "$HD44780_I2C" = "yes"; then
AC_DEFINE(WITH_HD44780,1,[HD44780 driver])
fi
+if test "$HD44780" = "yes"; then
+ if test "$HD44780_I2C" != "yes"; then
+ if test "$has_parport" = "true"; then
+ TEXT="yes"
+ PARPORT="yes"
+ I2C="yes"
+ GPIO="yes"
+ KEYPAD="yes"
+ DRIVERS="$DRIVERS drv_HD44780.o"
+ AC_DEFINE(WITH_HD44780,1,[HD44780 driver])
+ else
+ AC_MSG_WARN(asm/io.h or {linux/parport.h and linux/ppdev.h} not found: HD44780 driver disabled)
+ fi
+ else
+ HD44780="no"
+ AC_MSG_WARN(HD44780-i2c enabled disabling HD44780)
+ fi
+fi
+
+if test "$IRLCD" = "yes"; then
+ if test "$has_usb" = "true"; then
+ TEXT="yes"
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_IRLCD.o"
+ LIBUSB="yes"
+ AC_DEFINE(WITH_IRLCD,1,[IRLCD driver])
+ else
+ AC_MSG_WARN(usb.h not found: IRLCD driver disabled)
+ fi
+fi
+
if test "$LCD2USB" = "yes"; then
if test "$has_usb" = "true"; then
TEXT="yes"
@@ -320,7 +456,7 @@ if test "$LCDLINUX" = "yes"; then
AC_DEFINE(WITH_LCDLINUX,1,[LCD-Linux driver])
else
AC_MSG_WARN(linux/lcd-linux.h or linux/hd44780.h not found: LCD-Linux driver disabled)
- fi
+ fi
fi
if test "$LCDTERM" = "yes"; then
@@ -337,11 +473,15 @@ if test "$LEDMATRIX" = "yes"; then
fi
if test "$LPH7508" = "yes"; then
- GRAPHIC="yes"
- GPIO="yes"
- PARPORT="yes"
- DRIVERS="$DRIVERS drv_LPH7508.o"
- AC_DEFINE(WITH_LPH7508,1,[LPH7508 driver])
+ if test "$has_parport" = "true"; then
+ GRAPHIC="yes"
+ GPIO="yes"
+ PARPORT="yes"
+ DRIVERS="$DRIVERS drv_LPH7508.o"
+ AC_DEFINE(WITH_LPH7508,1,[LPH7508 driver])
+ else
+ AC_MSG_WARN(asm/io.h or {linux/parport.h and linux/ppdev.h} not found: LPH7508 driver disabled)
+ fi
fi
if test "$LUISE" = "yes"; then
@@ -355,12 +495,24 @@ if test "$LUISE" = "yes"; then
fi
fi
-if test "$M50530" = "yes"; then
+if test "$LW_ABP" = "yes"; then
TEXT="yes"
- GPIO="yes"
- PARPORT="yes"
- DRIVERS="$DRIVERS drv_M50530.o"
- AC_DEFINE(WITH_M50530,1,[M50530 driver])
+ SERIAL="yes"
+ KEYPAD="yes"
+ DRIVERS="$DRIVERS drv_LW_ABP.o"
+ AC_DEFINE(WITH_LW_ABP,1,[LW ABP driver])
+fi
+
+if test "$M50530" = "yes"; then
+ if test "$has_parport" = "true"; then
+ TEXT="yes"
+ GPIO="yes"
+ PARPORT="yes"
+ DRIVERS="$DRIVERS drv_M50530.o"
+ AC_DEFINE(WITH_M50530,1,[M50530 driver])
+ else
+ AC_MSG_WARN(asm/io.h or {linux/parport.h and linux/ppdev.h} not found: M50530 driver disabled)
+ fi
fi
if test "$MATRIXORBITAL" = "yes"; then
@@ -371,6 +523,18 @@ if test "$MATRIXORBITAL" = "yes"; then
AC_DEFINE(WITH_MATRIXORBITAL,1,[MatrixOrbital driver])
fi
+if test "$MATRIXORBITALGX" = "yes"; then
+ if test "$has_usb" = "true"; then
+ GRAPHIC="yes"
+ SERIAL="yes"
+ LIBUSB="yes"
+ DRIVERS="$DRIVERS drv_MatrixOrbitalGX.o"
+ AC_DEFINE(WITH_MATRIXORBITALGX,1,[MatrixOrbitalGX driver])
+ else
+ AC_MSG_WARN(usb.h not found: MatrixOrbitalGX driver disabled)
+ fi
+fi
+
if test "$MILINST" = "yes"; then
TEXT="yes"
SERIAL="yes"
@@ -379,11 +543,15 @@ if test "$MILINST" = "yes"; then
fi
if test "$NORITAKE" = "yes"; then
- TEXT="yes"
- GRAPHIC="yes"
- PARPORT="yes"
- DRIVERS="$DRIVERS drv_Noritake.o"
- AC_DEFINE(WITH_NORITAKE,1,[Noritake driver])
+ if test "$has_parport" = "true"; then
+ TEXT="yes"
+ GRAPHIC="yes"
+ PARPORT="yes"
+ DRIVERS="$DRIVERS drv_Noritake.o"
+ AC_DEFINE(WITH_NORITAKE,1,[Noritake driver])
+ else
+ AC_MSG_WARN(asm/io.h or {linux/parport.h and linux/ppdev.h} not found: NORITAKE driver disabled)
+ fi
fi
if test "$NULL" = "yes"; then
@@ -392,19 +560,57 @@ if test "$NULL" = "yes"; then
AC_DEFINE(WITH_NULL,1,[NULL driver])
fi
-if test "$picoLCD" = "yes"; then
+if test "$PERTELIAN" = "yes"; then
+ # select either text or graphics mode
+ TEXT="yes"
+ # select bus: serial (including USB), parallel or i2c
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_Pertelian.o"
+ AC_DEFINE(WITH_PERTELIAN,1,[Pertelian driver])
+fi
+
+if test "$PHANDERSON" = "yes"; then
+ TEXT="yes"
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_PHAnderson.o"
+ AC_DEFINE(WITH_PHANDERSON,1,[PHAnderson driver])
+fi
+
+if test "$PICGRAPHIC" = "yes"; then
+ GRAPHIC="yes"
+ GPIO="yes"
+ SERIAL="yes"
+ DRIVERS="$DRIVERS drv_PICGraphic.o"
+ AC_DEFINE(WITH_PICGRAPHIC,1,[PICGraphic driver])
+fi
+
+if test "$PICOLCD" = "yes"; then
if test "$has_usb" = "true"; then
TEXT="yes"
GPIO="yes"
SERIAL="yes"
LIBUSB="yes"
DRIVERS="$DRIVERS drv_picoLCD.o"
- AC_DEFINE(WITH_picoLCD,1,[picoLCD driver])
+ AC_DEFINE(WITH_PICOLCD,1,[picoLCD driver])
else
AC_MSG_WARN(usb.h not found: picoLCD driver disabled)
fi
fi
+if test "$PICOLCDGRAPHIC" = "yes"; then
+ if test "$has_usb" = "true"; then
+ TEXT="yes"
+ GRAPHIC="yes"
+ GPIO="yes"
+ SERIAL="yes"
+ LIBUSB="yes"
+ DRIVERS="$DRIVERS drv_picoLCDGraphic.o"
+ AC_DEFINE(WITH_PICOLCDGRAPHIC,1,[picoLCDGraphic driver])
+ else
+ AC_MSG_WARN(usb.h not found: picoLCDGraphic driver disabled)
+ fi
+fi
+
if test "$PNG" = "yes"; then
if test "$has_gd" = "true"; then
IMAGE="yes"
@@ -420,24 +626,32 @@ if test "$PPM" = "yes"; then
fi
if test "$ROUTERBOARD" = "yes"; then
- TEXT="yes"
- GPIO="yes"
- DRIVERS="$DRIVERS drv_RouterBoard.o"
- AC_DEFINE(WITH_ROUTERBOARD,1,[RouterBoard driver])
+ if test "$has_io_h" = "true"; then
+ TEXT="yes"
+ GPIO="yes"
+ DRIVERS="$DRIVERS drv_RouterBoard.o"
+ AC_DEFINE(WITH_ROUTERBOARD,1,[RouterBoard driver])
+ else
+ AC_MSG_WARN(sys/io.h not found: RouterBoard driver disabled)
+ fi
fi
if test "$SAMPLE" = "yes"; then
- # select either text or graphics mode
- TEXT="yes"
- GRAPHIC="yes"
- # support for GPIO's
- GPIO="yes"
- # select bus: serial (including USB), parallel or i2c
- SERIAL="yes"
- PARPORT="yes"
- #I2C="yes"
- DRIVERS="$DRIVERS drv_Sample.o"
- AC_DEFINE(WITH_SAMPLE,1,[Sample driver])
+ if test "$has_parport" = "true"; then
+ # select either text or graphics mode
+ TEXT="yes"
+ GRAPHIC="yes"
+ # support for GPIO's
+ GPIO="yes"
+ # select bus: serial (including USB), parallel or i2c
+ SERIAL="yes"
+ PARPORT="yes"
+ #I2C="yes"
+ DRIVERS="$DRIVERS drv_Sample.o"
+ AC_DEFINE(WITH_SAMPLE,1,[Sample driver])
+ else
+ AC_MSG_WARN(asm/io.h or {linux/parport.h and linux/ppdev.h} not found: SAMPLE driver disabled)
+ fi
fi
if test "$SERDISPLIB" = "yes"; then
@@ -454,6 +668,18 @@ if test "$SERDISPLIB" = "yes"; then
fi
fi
+if test "$SHUTTLEVFD" = "yes"; then
+ if test "$has_usb" = "true"; then
+ TEXT="yes"
+ GPIO="yes"
+ DRIVERS="$DRIVERS drv_ShuttleVFD.o"
+ LIBUSB="yes"
+ AC_DEFINE(WITH_SHUTTLEVFD,1,[ShuttleVFD driver])
+ else
+ AC_MSG_WARN(usb.h not found: ShuttleVFD driver disabled)
+ fi
+fi
+
if test "$SIMPLELCD" = "yes"; then
TEXT="yes"
SERIAL="yes"
@@ -461,11 +687,26 @@ if test "$SIMPLELCD" = "yes"; then
AC_DEFINE(WITH_SIMPLELCD,1,[SimpleLCD driver])
fi
+if test "$ST2205" = "yes"; then
+ if test "$has_st2205" = "true"; then
+ GRAPHIC="yes"
+ DRIVERS="$DRIVERS drv_st2205.o"
+ DRVLIBS="$DRVLIBS -L/usr/local/lib -lst2205"
+ AC_DEFINE(WITH_ST2205,1,[st2205 driver])
+ else
+ AC_MSG_WARN(st2205.h not found: st2205 driver disabled)
+ fi
+fi
+
if test "$T6963" = "yes"; then
- GRAPHIC="yes"
- PARPORT="yes"
- DRIVERS="$DRIVERS drv_T6963.o"
- AC_DEFINE(WITH_T6963,1,[T6963 driver])
+ if test "$has_parport" = "true"; then
+ GRAPHIC="yes"
+ PARPORT="yes"
+ DRIVERS="$DRIVERS drv_T6963.o"
+ AC_DEFINE(WITH_T6963,1,[T6963 driver])
+ else
+ AC_MSG_WARN(asm/io.h or {linux/parport.h and linux/ppdev.h} not found: T6963 driver disabled)
+ fi
fi
if test "$Trefon" = "yes"; then
@@ -479,6 +720,18 @@ if test "$Trefon" = "yes"; then
fi
fi
+if test "$ULA200" = "yes"; then
+ 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
if test "$has_usb" = "true"; then
GPIO="yes"
@@ -500,6 +753,18 @@ if test "$USBLCD" = "yes"; then
AC_DEFINE(WITH_USBLCD,1,[USBLCD driver])
fi
+if test "$VNC" = "yes"; then
+ if test "$has_vncserverlib" = "true"; then
+ GRAPHIC="yes"
+ KEYPAD="yes"
+ DRIVERS="$DRIVERS drv_vnc.o"
+ DRVLIBS="$DRVLIBS -L/usr/local/lib -lvncserver -lz"
+ AC_DEFINE(WITH_VNC,1,[vnc driver])
+ else
+ AC_MSG_WARN(libvncserver not found: vnc driver disabled)
+ fi
+fi
+
if test "$WINCORNIXDORF" = "yes"; then
TEXT="yes"
SERIAL="yes"
@@ -512,13 +777,14 @@ if test "$X11" = "yes"; then
AC_MSG_WARN(X11 headers or libraries not available: X11 driver disabled)
else
GRAPHIC="yes"
+ KEYPAD="yes"
DRIVERS="$DRIVERS drv_X11.o"
if test "x$ac_x_libraries" = "x"; then
DRVLIBS="$DRVLIBS -lX11"
else
DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11"
fi
- CPP_FLAGS="$CPPFLAGS $X_CFLAGS"
+ CPP_FLAGS="$CPPFLAGS $X_CFLAGS"
AC_DEFINE(WITH_X11, 1, [X11 driver])
fi
fi
@@ -533,7 +799,7 @@ fi
if test "$DRIVERS" = ""; then
AC_MSG_ERROR([You should activate at least one driver...])
fi
-
+
# generic text driver
if test "$TEXT" = "yes"; then
DRIVERS="$DRIVERS drv_generic_text.o"
@@ -545,8 +811,9 @@ if test "$GRAPHIC" = "yes"; then
if test "$has_gd" = "true"; then
DRIVERS="$DRIVERS widget_image.o"
DRVLIBS="$DRVLIBS -lgd"
+ AC_DEFINE(WITH_GD, 1, [GD library])
AC_DEFINE(WITH_IMAGE, 1, [image widget])
- fi
+ fi
fi
# generic GPIO driver
@@ -582,5 +849,14 @@ if test "$LIBUSB" = "yes"; then
DRVLIBS="$DRVLIBS -lusb"
fi
+# libftdi
+if test "$LIBFTDI" = "yes"; then
+ DRVLIBS="$DRVLIBS -lftdi"
+fi
+
+if test "$DRIVERS" = ""; then
+ AC_MSG_ERROR([You should include at least one driver...])
+fi
+
AC_SUBST(DRIVERS)
AC_SUBST(DRVLIBS)