Author: cazfi
Date: Sun Jan  4 19:29:20 2015
New Revision: 27509

URL: http://svn.gna.org/viewcvs/freeciv?rev=27509&view=rev
Log:
Give sensible error message when configure does not find pkg-config instead of
failing some test where the test execution would require it.

See bug #23133

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/configure.ac?rev=27509&r1=27508&r2=27509&view=diff
==============================================================================
--- trunk/configure.ac  (original)
+++ trunk/configure.ac  Sun Jan  4 19:29:20 2015
@@ -521,6 +521,9 @@
 fi
 
 PKG_PROG_PKG_CONFIG
+if test "x$PKG_CONFIG" = "x" ; then
+  AC_MSG_ERROR([pkg-config not found])
+fi
 PKG_CHECK_MODULES([CURL], [libcurl >= 7.9.7],,
     [AC_MSG_ERROR([libcurl development files required])])
 UTILITY_CFLAGS="${UTILITY_CFLAGS} ${CURL_CFLAGS}"


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to