[poppler] configure.ac
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon Mar 9 14:56:22 PDT 2009
configure.ac | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 7a5d1e57b2757c986da17f7238415b927e73127f
Author: Brian Ewins <Brian.Ewins at gmail.com>
Date: Mon Mar 9 22:54:58 2009 +0100
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
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.])
More information about the poppler
mailing list