From 43020e1ac923fb3a7ef792722bcf9d30874f5bfe Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 14 Oct 2010 15:49:50 +0200 Subject: kdrive: Fix tslib check fallback to set TSLIB_LIBS. #30599 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If pkg-config is unable to find tslib but the fallback check does find it, the compilation continues with tslib support enabled though TSLIB_LIBS are unset. Thus, the compilation fails with a linking error on tslib functions. This patch sets TSLIB_LIBS to '-lts' whenever the tslib fallback check succeeds. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=30599 Signed-off-by: Michał Górny Reviewed-by: Daniel Stone Signed-off-by: Keith Packard (cherry picked from commit c7e436e9987a6fb0876c63e96f59ff4c20b4bef0) --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 77cad5463..babc908d5 100644 --- a/configure.ac +++ b/configure.ac @@ -2037,7 +2037,10 @@ if test "$KDRIVE" = yes; then PKG_CHECK_MODULES([TSLIB], [tslib-0.0], [HAVE_TSLIB="yes"], [HAVE_TSLIB="no"]) if test "x$HAVE_TSLIB" = xno; then - AC_CHECK_LIB(ts, ts_open, [HAVE_TSLIB="yes"]) + AC_CHECK_LIB(ts, ts_open, [ + HAVE_TSLIB="yes" + TSLIB_LIBS="-lts" + ]) fi if test "xTSLIB" = xauto; then -- cgit v1.2.3