aboutsummaryrefslogtreecommitdiffstats
path: root/drivers.m4
diff options
context:
space:
mode:
authorreinelt <>2005-05-03 11:13:24 +0000
committerreinelt <>2005-05-03 11:13:24 +0000
commit428c1c713a0f01fbc50bf33d741c9a0b432139f4 (patch)
tree699cd311625542a4d7572eaf3cab843110a209be /drivers.m4
parent3f9d0ec33a203cf19aa380fb07d26f30b6549580 (diff)
downloadlcd4linux-428c1c713a0f01fbc50bf33d741c9a0b432139f4.tar.gz
[lcd4linux @ 2005-05-03 11:13:23 by reinelt]
rearranged autoconf a bit, libX11 will be linked only if really needed (i.e. when the X11 driver has been selected) plugin_python filled with life
Diffstat (limited to '')
-rw-r--r--drivers.m411
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers.m4 b/drivers.m4
index 5b44db6..ce2a011 100644
--- a/drivers.m4
+++ b/drivers.m4
@@ -164,8 +164,8 @@ if test "$BWCT" = "yes"; then
if test "$has_usb" = "true"; then
TEXT="yes"
DRIVERS="$DRIVERS drv_BWCT.o"
- AC_DEFINE(WITH_BWCT,1,[BWCT driver])
DRVLIBS="$DRVLIBS -lusb"
+ AC_DEFINE(WITH_BWCT,1,[BWCT driver])
else
AC_MSG_WARN(usb.h not found: BWCT driver disabled)
fi
@@ -244,8 +244,8 @@ if test "$PNG" = "yes"; then
if test "$has_gd" = "true"; then
GRAPHIC="yes"
IMAGE="yes"
- AC_DEFINE(WITH_PNG,1,[ driver])
DRVLIBS="$DRVLIBS -lgd"
+ AC_DEFINE(WITH_PNG,1,[ driver])
else
AC_MSG_WARN(gd.h not found: PNG driver disabled)
fi
@@ -285,8 +285,8 @@ if test "$Trefon" = "yes"; then
if test "$has_usb" = "true"; then
TEXT="yes"
DRIVERS="$DRIVERS drv_Trefon.o"
- AC_DEFINE(WITH_TREFON,1,[TREFON driver])
DRVLIBS="$DRVLIBS -lusb"
+ AC_DEFINE(WITH_TREFON,1,[TREFON driver])
else
AC_MSG_WARN(usb.h not found: Trefon driver disabled)
fi
@@ -296,10 +296,10 @@ if test "$USBLCD" = "yes"; then
TEXT="yes"
SERIAL="yes"
DRIVERS="$DRIVERS drv_USBLCD.o"
- AC_DEFINE(WITH_USBLCD,1,[USBLCD driver])
if test "$has_usb" = "true"; then
DRVLIBS="$DRVLIBS -lusb"
fi
+ AC_DEFINE(WITH_USBLCD,1,[USBLCD driver])
fi
if test "$X11" = "yes"; then
@@ -309,6 +309,7 @@ if test "$X11" = "yes"; then
GRAPHIC="yes"
DRIVERS="$DRIVERS drv_X11.o"
DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11"
+ CPP_FLAGS="$CPPFLAGS $X_CFLAGS"
AC_DEFINE(WITH_X11, 1, [X11 driver])
fi
fi
@@ -344,8 +345,8 @@ fi
# generic i2c driver
if test "$I2C" = "yes"; then
if test "$has_i2c" = true; then
- AC_DEFINE(WITH_I2C, 1, [I2C bus driver])
DRIVERS="$DRIVERS drv_generic_i2c.o"
+ AC_DEFINE(WITH_I2C, 1, [I2C bus driver])
else
I2C="no"
AC_MSG_WARN(I2C include files not found: I2C bus driver disabled)