]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: add --with-pkgconfigdir
authorKarel Zak <kzak@redhat.com>
Tue, 14 May 2019 11:50:59 +0000 (13:50 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 May 2019 11:50:59 +0000 (13:50 +0200)
It seems we need a way how to override the default pkg-config install directory.

default:
$ ./configure
$ grep 'pkgconfigdir ='  Makefile
pkgconfigdir = ${usrlib_execdir}/pkgconfig

user-defined:
$ ./configure --with-pkgconfigdir=/usr/share/pkgconfig
$ grep 'pkgconfigdir ='  Makefile
$ pkgconfigdir = /usr/share/pkgconfig

Addresses: https://github.com/karelzak/util-linux/issues/793
Signed-off-by: Karel Zak <kzak@redhat.com>
Makefile.am
configure.ac

index adf87804b699ea1b13f320fb3ace5bb35e395e0b..51c6499097b58d78ad8fc5e3b3e902206dced5e0 100644 (file)
@@ -28,8 +28,6 @@ ul_libfdisk_incdir  = $(top_builddir)/libfdisk/src
 
 ul_libuuid_incdir  = $(top_srcdir)/libuuid/src
 
-pkgconfigdir = $(usrlib_execdir)/pkgconfig
-
 bashcompletiondir = @bashcompletiondir@
 
 dist_noinst_HEADERS =
index c314edd650fafea93cc71d8c73ffb21bb30ab848..7f462f910db45ea4ab59900344e61092f0a822fe 100644 (file)
@@ -172,6 +172,7 @@ m4_ifndef([PKG_PROG_PKG_CONFIG],
     environment variable AL_OPTS="-I/other/macro/dir" before running
     ./autogen.sh or autoreconf again. Make sure pkg-config is installed.])])
 PKG_PROG_PKG_CONFIG
+PKG_INSTALLDIR(['${usrlib_execdir}/pkgconfig'])
 
 GTK_DOC_CHECK([1.10])
 AC_PATH_PROG([XSLTPROC], [xsltproc])