From 4320569c3151d039151a3ea8f37fcee77d67d96a Mon Sep 17 00:00:00 2001 From: harbaum Date: Thu, 26 Jan 2006 19:26:27 +0000 Subject: [lcd4linux @ 2006-01-26 19:26:26 by harbaum] Added LCD2USB support git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@624 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drivers.m4 | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'drivers.m4') diff --git a/drivers.m4 b/drivers.m4 index 10993ec..4b5789e 100644 --- a/drivers.m4 +++ b/drivers.m4 @@ -29,10 +29,11 @@ AC_ARG_WITH( [ (try 'all,\!' if your shell complains...)] [ possible drivers are:] [ BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux,] - [ G15, HD44780, LCDLinux, LCDTerm, LPH7508, LUIse,] - [ M50530, MatrixOrbital, MilfordInstruments, Noritake,] - [ NULL, PNG, PPM, RouterBoard, Sample, serdisplib,] - [ SimpleLCD, T6963, Trefon, USBLCD, WincorNixdorf, X11], + [ G15, HD44780, LCD2USB LCDLinux, LCDTerm, LPH7508,] + [ LUIse, M50530, MatrixOrbital, MilfordInstruments,] + [ Noritake, NULL, PNG, PPM, RouterBoard, Sample,] + [ serdisplib, SimpleLCD, T6963, Trefon, USBLCD,] + [ WincorNixdorf, X11], drivers=$withval, drivers=all ) @@ -60,6 +61,7 @@ for driver in $drivers; do CWLINUX="yes" G15="yes" HD44780="yes" + LCD2USB="yes" LCDLINUX="yes" LCDTERM="yes" LPH7508="yes" @@ -102,6 +104,9 @@ for driver in $drivers; do HD44780) HD44780=$val ;; + LCD2USB) + LCD2USB=$val + ;; LCDLINUX) LCDLINUX=$val ;; @@ -250,6 +255,18 @@ if test "$HD44780" = "yes"; then AC_DEFINE(WITH_HD44780,1,[HD44780 driver]) fi +if test "$LCD2USB" = "yes"; then + if test "$has_usb" = "true"; then + TEXT="yes" + SERIAL="yes" + DRIVERS="$DRIVERS drv_LCD2USB.o" + DRVLIBS="$DRVLIBS -lusb" + AC_DEFINE(WITH_LCD2USB,1,[LCD2USB driver]) + else + AC_MSG_WARN(usb.h not found: LCD2USB driver disabled) + fi +fi + if test "$LCDLINUX" = "yes"; then if test "$has_lcd_linux" = true; then TEXT="yes" -- cgit v1.2.3