From 61723dc7acfdf4823466101283397088c7e38024 Mon Sep 17 00:00:00 2001 From: Brian Ewins Date: Mon, 9 Mar 2009 12:18:09 +0000 Subject: [PATCH] Check for pkgconfig before using it. At the moment if pkgconfig is not installed, an unhelpful syntax error appears when testing for freetype. Identify the problem earlier on. --- configure.ac | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 3b919c5..d32f048 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,12 @@ AC_PROG_INSTALL AC_CHECK_FUNC(gettimeofday, AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defines if gettimeofday is available on your system])) AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, 1, [Defines if localtime_r is available on your system])) +dnl ##### Check for pkgconfig +AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) +if test "x$HAVE_PKGCONFIG" = "xno"; then + AC_MSG_ERROR("*** pkg-config not found ***") +fi + dnl Enable these unconditionally. AC_DEFINE([OPI_SUPPORT], [1], [Generate OPI comments in PS output.]) AC_DEFINE([MULTITHREADED], [1], [Enable multithreading support.]) -- 1.6.1.2