summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac3
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e9b251..00589b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
The 'pakt' chunk header should now be written correctly.
Closes: https://github.com/erikd/libsndfile/issues/24
+ * configure.ac Makefile.am
+ Use PKG_INSTALLDIR when it exists. Suggestion from Christoph Thompson.
+ Closes: https://github.com/erikd/libsndfile/pull/28
+
2013-02-03 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/common.h src/caf.c
diff --git a/Makefile.am b/Makefile.am
index a16bcd1..e14d1fb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,7 +15,6 @@ EXTRA_DIST = libsndfile.spec.in sndfile.pc.in
CLEANFILES = *~
-pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = sndfile.pc
m4datadir = $(datadir)/aclocal
diff --git a/configure.ac b/configure.ac
index 388d369..8212645 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-# Copyright (C) 1999-2012 Erik de Castro Lopo <erikd@mega-nerd.com>.
+# Copyright (C) 1999-2013 Erik de Castro Lopo <erikd@mega-nerd.com>.
dnl Require autoconf version
AC_PREREQ(2.57)
@@ -301,6 +301,7 @@ EXTERNAL_LIBS=""
# Check for pkg-config outside the if statement.
PKG_PROG_PKG_CONFIG
+m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], AC_SUBST([pkgconfigdir], ${libdir}/pkgconfig))
if test -n "$PKG_CONFIG" ; then
if test x$enable_external_libs = xno ; then