From 53bdbb99e8a131e84ce895df58c11b5a2cdf51e9 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 30 Nov 2006 17:00:02 +0000 Subject: [PATCH] * Use PKG_CHECK_MODULES the right way. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/cacatris/trunk@1443 92316355-f0b4-4df1-b90c-862c8a59935f --- configure.ac | 2 +- src/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b00f0a3..55afcd6 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ if test "$build" != "$host" -a "${PKG_CONFIG_LIBDIR}" = ""; then fi CACA="no" -PKG_CHECK_MODULES(caca, caca >= 0.99.beta9, +PKG_CHECK_MODULES(CACA, caca >= 0.99.beta9, [CACA="yes"], [AC_MSG_RESULT(no) AC_MSG_ERROR([you need libcaca version 0.99.beta9 or later])]) diff --git a/src/Makefile.am b/src/Makefile.am index 0b18baa..e8b4cbf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,6 +2,6 @@ bin_PROGRAMS = cacatris cacatris_SOURCES = main.c -cacatris_CFLAGS = `pkg-config --cflags caca` -cacatris_LDFLAGS = `pkg-config --libs caca` +cacatris_CFLAGS = @CACA_CFLAGS@ +cacatris_LDFLAGS = @CACA_LIBS@