From 680d301d9a5d865a824f39255330e84183690028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20G=2E=20Aragoneses?= Date: Sun, 22 Mar 2015 03:38:26 +0100 Subject: [configure] Move the full check for pkg-config Checking for pkg-config was being done twice, and the first time that was done was incomplete. --- main/configure.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'main/configure.in') diff --git a/main/configure.in b/main/configure.in index 34fcd46dba..bfef42f8c8 100644 --- a/main/configure.in +++ b/main/configure.in @@ -27,7 +27,11 @@ if test "x$MCS" = "x" ; then AC_MSG_ERROR([Can't find "mcs" in your PATH]) fi +dnl Find pkg-config AC_PATH_PROG(PKG_CONFIG, pkg-config, no) +if test "x$PKG_CONFIG" = "xno"; then + AC_MSG_ERROR([You need to install pkg-config]) +fi MONO_REQUIRED_VERSION=3.0.4 @@ -80,12 +84,6 @@ if test "x$enable_update_desktopdb" = "xyes"; then fi AC_SUBST(UPDATE_DESKTOP_DB) -dnl Find pkg-config -AC_PATH_PROG(PKG_CONFIG, pkg-config, no) -if test "x$PKG_CONFIG" = "xno"; then - AC_MSG_ERROR([You need to install pkg-config]) -fi - dnl Find msgfmt for translations # Find msgfmt and msgmerge for translations AC_PATH_PROG(MSGFMT, msgfmt, no) -- cgit v1.2.3