From 8fb67c241d94b3a35292eed6eb2526d092d73021 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 5 Oct 2013 20:19:59 +0200 Subject: [PATCH] core: add detection of pkg-config (required on Cygwin) This fixes the detection of enchant lib, the macro PKG_CHECK_MODULES requires pkg-config. --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 8f891afd2..582947e48 100644 --- a/configure.ac +++ b/configure.ac @@ -168,6 +168,18 @@ AC_DEFINE_UNQUOTED(CA_FILE, "$CA_FILE") not_asked="" not_found="" +# ------------------------------------------------------------------------------ +# pkg-config +# ------------------------------------------------------------------------------ + +PKGCONFIG="" +AC_CHECK_PROGS(PKGCONFIG, pkg-config) +if test "x$PKGCONFIG" = "x"; then + AC_MSG_ERROR([ +*** "pkg-config" couldn't be found on your system. +*** Try to install it with your software package manager.]) +fi + # ------------------------------------------------------------------------------ # dynamic loader # ------------------------------------------------------------------------------