From ca6a86208915d5a6413b093f6f034eb6dcdf403f Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Thu, 14 Feb 2013 17:27:27 -0800 Subject: [PATCH] add test for pkg-config exit configure in case we can't find it. --- configure.ac | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 4829862..84614da 100644 --- a/configure.ac +++ b/configure.ac @@ -119,8 +119,12 @@ AC_TRY_COMPILE([],[], AC_MSG_RESULT(no) CFLAGS="$SAVE_CFLAGS") -dnl | check for cairo and librsvg +dnl | check for pkg-config +AC_CHECK_PROGS([PKGCONFIG], [pkg-config], pkgconfig_not_found) +AS_IF( [test "x$PKGCONFIG" = xpkgconfig_not_found], + AC_MSG_ERROR([cannot find pkg-config! Please install it.])) +dnl | check for cairo and librsvg PKG_CHECK_MODULES([CAIRO], [ cairo >= 1.2.0 librsvg-2.0 >= 2.14.0 ]) AC_SUBST(CAIRO_CFLAGS) AC_SUBST(CAIRO_LIBS) -- 1.7.0.4