configure.in
changeset 1201 718d00094f82
parent 1200 8f418dce02b2
child 1203 a67c8b2ae356
     1.1 --- a/configure.in	Mon Dec 12 09:22:36 2005 +0000
     1.2 +++ b/configure.in	Mon Dec 12 09:26:32 2005 +0000
     1.3 @@ -1233,6 +1233,29 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl See if we can use the Touchscreen input library
     1.8 +CheckTslib()
     1.9 +{
    1.10 +    AC_ARG_ENABLE(input-tslib,
    1.11 +[  --enable-input-tslib    use the Touchscreen library for input [default=yes]],
    1.12 +                  , enable_input_tslib=yes)
    1.13 +    if test x$enable_input_tslib = xyes; then
    1.14 +        AC_MSG_CHECKING(for Touchscreen library support)
    1.15 +        enable_input_tslib=no
    1.16 +        AC_TRY_COMPILE([
    1.17 +          #include "tslib.h"
    1.18 +        ],[
    1.19 +        ],[
    1.20 +        enable_input_tslib=yes
    1.21 +        ])
    1.22 +        AC_MSG_RESULT($enable_input_tslib)
    1.23 +        if test x$enable_input_tslib = xyes; then
    1.24 +            CFLAGS="$CFLAGS -DHAVE_TSLIB"
    1.25 +            SYSTEM_LIBS="$SYSTEM_LIBS -lts"
    1.26 +        fi
    1.27 +    fi
    1.28 +}
    1.29 +
    1.30  dnl See if we can use GNU pth library for threads
    1.31  CheckPTH()
    1.32  {
    1.33 @@ -2078,6 +2101,7 @@
    1.34          CheckPicoGUI
    1.35          CheckOpenGLX11
    1.36          CheckInputEvents
    1.37 +        CheckTslib
    1.38          CheckPTHREAD
    1.39          CheckSIGACTION
    1.40          CheckAltivec