32 lines
880 B
Diff
32 lines
880 B
Diff
Taken from https://github.com/neagix/idesk/commit/7ed7fae76d2896e02c115448b569d964dab895ee
|
|
use pkg-config to find imlib2
|
|
|
|
diff --git a/configure.in b/configure.in
|
|
index 805585d..b7a1032 100644
|
|
--- a/configure.in
|
|
+++ b/configure.in
|
|
@@ -94,19 +94,10 @@ LIBS="$LIBS $Xext_lib"
|
|
|
|
dnl Imlib2 detection
|
|
|
|
-AC_PATH_GENERIC(imlib2, , [
|
|
- AC_SUBST(IMLIB_LIBS)
|
|
- AC_SUBST(IMLIB_CXXFLAGS) ],
|
|
- AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in the path?
|
|
- You need Imlib2 to build Idesk. Verify that you have Imlib2-dev))
|
|
-
|
|
-dnl the above doesn't work for some reason :/
|
|
-IMLIB_LIBS=`imlib2-config --libs`
|
|
-IMLIB_CFLAGS=`imlib2-config --cflags`
|
|
-AC_SUBST(IMLIB_LIBS)
|
|
-AC_SUBST(IMLIB_CXXFLAGS)
|
|
-
|
|
-CXXFLAGS="$CXXFLAGS $IMLIB_CXXFLAGS"
|
|
+PKG_PROG_PKG_CONFIG
|
|
+PKG_CHECK_MODULES([IMLIB], [imlib2 > 1.0])
|
|
+
|
|
+CXXFLAGS="$CXXFLAGS $IMLIB_CFLAGS"
|
|
LIBS="$LIBS $IMLIB_LIBS"
|
|
|
|
|