summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-07-15 21:55:00 +0200
committerraveit65 <[email protected]>2016-07-15 21:55:00 +0200
commitbcf4ce7a3b0b0dd2c70ec09dc7a35a9e83068d76 (patch)
tree107c9cc6bfa0d4a7a9e8e56b3abb642727a553a1
parent0786eb6cfb910395e72c9fc3ea8d696888593df5 (diff)
downloadmate-sensors-applet-bcf4ce7a3b0b0dd2c70ec09dc7a35a9e83068d76.tar.bz2
mate-sensors-applet-bcf4ce7a3b0b0dd2c70ec09dc7a35a9e83068d76.tar.xz
distcheck: explicitly use currently selected GTK+ version
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac2
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 3776231..e60dd16 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,6 +49,9 @@ DISTCLEANFILES = intltool-extract \
intltool-merge \
intltool-update
+DISTCHECK_CONFIGURE_FLAGS = \
+ --with-gtk=$(GTK_API_VERSION)
+
# Build ChangeLog from GIT history
ChangeLog:
$(AM_V_GEN) if test -d $(top_srcdir)/.git; then \
diff --git a/configure.ac b/configure.ac
index 81b7041..82ae929 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,8 @@ case "$with_gtk" in
;;
esac
+AC_SUBST(GTK_API_VERSION)
+
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gio-2.0)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)