aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-12-03 17:40:47 -0800
committerJonas Ã…dahl <jadahl@gmail.com>2015-12-04 17:46:19 +0800
commitda331647269ee9d73c4008ae901d107320bdc8d1 (patch)
tree27f0fb392e0789ebf584595902bf2b8b849f1b15 /m4
parent3543bb755c8858b0a70dfd20fd1beb74d865751d (diff)
downloadwayland-protocols-da331647269ee9d73c4008ae901d107320bdc8d1.tar.xz
configure.ac: Fix compatibility for older pkg-config versions
noarch_pkgconfigdir is not available on oldish pkg-config's. Among other things this affects Wayland's nightly auto-build Ubuntu 14.04 PPAs. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Cc: Pekka Paalanen <ppaalanen@gmail.com> Cc: Quentin Glidic <sardemff7+wayland@sardemff7.net> Cc: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'm4')
-rw-r--r--m4/compat.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/compat.m4 b/m4/compat.m4
new file mode 100644
index 0000000..290ef03
--- /dev/null
+++ b/m4/compat.m4
@@ -0,0 +1,12 @@
+dnl noarch_pkgconfigdir only available in pkg-config 0.27 and newer
+dnl http://lists.freedesktop.org/archives/pkg-config/2012-July/000875.html
+dnl Ubuntu 14.04 provides only pkg-config 0.26 so lacks this function.
+dnl
+dnl The Wayland project maintains automated builds for Ubuntu 14.04 in
+dnl a Launchpad PPA. 14.04 is a Long Term Support distro release, which
+dnl will reach EOL April 2019, however the Wayland PPA may stop targeting
+dnl it some time after the next LTS release (April 2016).
+m4_ifndef([PKG_NOARCH_INSTALLDIR], [AC_DEFUN([PKG_NOARCH_INSTALLDIR], [
+ noarch_pkgconfigdir='${datadir}'/pkgconfig
+ AC_SUBST([noarch_pkgconfigdir])
+])])