[mednaffe] 08/22: Check for pkg-config
Stephen Kitt
skitt at moszumanska.debian.org
Tue Nov 22 22:42:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
skitt pushed a commit to branch master
in repository mednaffe.
commit d0c2f41db7a33cbb0dc0d857e5370ff8d76aea79
Author: AmatCoder <AmatCoder at users.noreply.github.com>
Date: Fri Nov 18 22:25:52 2016 +0000
Check for pkg-config
---
configure.ac | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 5b00555..8b5715f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,13 @@ CFLAGS="-s -O2 -std=c99 -Wall -Wl,-export-dynamic"
# Checks for libraries.
AC_ARG_ENABLE(gtk3, [AC_HELP_STRING([--enable-gtk3], [Compile against GTK 3.x explicitly])], [enable_gtk3=$enableval], [enable_gtk3="no"])
-PKG_PROG_PKG_CONFIG
+
+AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)
+if test "x$have_pkg_config" = xno; then
+ AC_MSG_ERROR(pkg-config is required to compile Mednaffe)
+else
+ PKG_PROG_PKG_CONFIG
+fi
if test "x$enable_gtk3" = xyes; then
PKG_CHECK_MODULES([GTK],[gtk+-3.0 glib-2.0 gthread-2.0], AC_MSG_NOTICE([GTK 3.x selected explicitly]), AC_MSG_ERROR(Mednaffe needs GTK+ >= 3.4))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mednaffe.git
More information about the Pkg-games-commits
mailing list