Use PKG_INSTALLDIR to determine pkg-config file install location

The PKG_INSTALLDIR macro also enables --with-pkgconfigdir for easy
overrides.

PKG_INSTALLDIR is relatively new, it appeared in pkg-config 0.27. To
ensure we have a recent pkg.m4 copy, copy pkg.m4 to the m4 directory.
This commit is contained in:
Pavel Roskin
2016-11-20 21:58:31 -08:00
parent 7cc1dd2ba8
commit 3ffdcfe02d
2 changed files with 276 additions and 2 deletions
+1 -2
View File
@@ -255,8 +255,7 @@ sysconfdir="/etc";
localstatedir="/var";
fi
pkgconfigdir=${libdir}/pkgconfig
AC_SUBST(pkgconfigdir)
PKG_INSTALLDIR
AC_CONFIG_FILES([
common/Makefile