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@