diff options
author | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2012-02-22 03:11:31 +0000 |
---|---|---|
committer | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2012-02-22 03:11:31 +0000 |
commit | eafd9557e50a4916f528cfce6f3755d8aa9e3ddf (patch) | |
tree | 39ba96390d907007f3cdece6cc93b7d7abf85861 /configure | |
parent | c5fc726e3be16f316da9c0e2dae97ae633d33c61 (diff) | |
download | lcd4linux-eafd9557e50a4916f528cfce6f3755d8aa9e3ddf.tar.gz |
driver for Samsung SPF by Sascha Plazar
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1177 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rwxr-xr-x | configure | 47 | ||||
-rw-r--r-- | configure.in | 3 |
2 files changed, 49 insertions, 1 deletions
@@ -1448,7 +1448,7 @@ Optional Packages: LW_ABP, M50530, MatrixOrbital, MatrixOrbitalGX, MilfordInstruments, MDM166A, Newhaven, Noritake, NULL, Pertelian, PHAnderson, PICGraphic, picoLCD, picoLCDGraphic, PNG, PPM, RouterBoard, - Sample, serdisplib, ShuttleVFD, SimpleLCD, st2205, T6963, + Sample, SamsungSPF, serdisplib, ShuttleVFD, SimpleLCD, st2205, T6963, TeakLCM, Trefon, ULA200, USBHUB, USBLCD, VNC, WincorNixdorf, X11 --with-plugins=<list> choose which plugins to compile. type --with-plugins=list for a list @@ -5596,6 +5596,22 @@ fi done +# check for jpeglib.h +for ac_header in jpeglib.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" +if test "x$ac_cv_header_jpeglib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_JPEGLIB_H 1 +_ACEOF + has_jpeglib="true" +else + has_jpeglib="false" +fi + +done + + # check for sys/io.h (RouterBoard driver) for ac_header in sys/io.h do : @@ -6313,6 +6329,7 @@ for driver in $drivers; do PPM="yes" ROUTERBOARD="yes" SAMPLE="yes" + SAMSUNGSPF="yes" ST2205="yes" SERDISPLIB="yes" SHUTTLEVFD="yes" @@ -6450,6 +6467,9 @@ for driver in $drivers; do Sample) SAMPLE=$val ;; + SamsungSPF) + SAMSUNGSPF=$val + ;; serdisplib) SERDISPLIB=$val; ;; @@ -7035,6 +7055,26 @@ $as_echo "$as_me: WARNING: asm/io.h or {linux/parport.h and linux/ppdev.h} not f fi fi +if test "$SAMSUNGSPF" = "yes"; then + if test "$has_usb" = "true"; then + if test "$has_usb" = "true"; then + GRAPHIC="yes" + DRIVERS="$DRIVERS drv_SamsungSPF.o" + LIBUSB="yes" + LIBJPEG="yes" + +$as_echo "#define WITH_SAMSUNGSPF 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: jpeglib.h not found: SamsungSPF driver disabled" >&5 +$as_echo "$as_me: WARNING: jpeglib.h not found: SamsungSPF driver disabled" >&2;} + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: usb.h not found: SamsungSPF driver disabled" >&5 +$as_echo "$as_me: WARNING: usb.h not found: SamsungSPF driver disabled" >&2;} + fi +fi + if test "$SERDISPLIB" = "yes"; then if test "$has_serdisplib" = "true"; then GRAPHIC="yes" @@ -7278,6 +7318,11 @@ if test "$KEYPAD" = "yes"; then DRIVERS="$DRIVERS drv_generic_keypad.o" fi +# libjpeg +if test "$LIBJPEG" = "yes"; then + DRVLIBS="$DRVLIBS -ljpeg" +fi + # libusb if test "$LIBUSB" = "yes"; then DRVLIBS="$DRVLIBS -lusb" diff --git a/configure.in b/configure.in index 23aff72..e6fb646 100644 --- a/configure.in +++ b/configure.in @@ -66,6 +66,9 @@ fi # check for gd.h AC_CHECK_HEADERS(gd/gd.h gd.h, [has_gd="true"; break], [has_gd="false"]) +# check for jpeglib.h +AC_CHECK_HEADERS(jpeglib.h, [has_jpeglib="true"], [has_jpeglib="false"]) + # check for sys/io.h (RouterBoard driver) AC_CHECK_HEADERS(sys/io.h, [has_io_h="true"], [has_io_h="false"]) |