[neard][PATCH] build: fix missing pkglibdir substitute in neard.pc

Krzysztof Kozlowski <[email protected]>
Newsgroups dev.linux.lists.oe-linux-nfc,org.01.lists.linux-nfc
Message-ID <[email protected]>
The pkglibdir is used by neard.pc.in (so by autoconf) however the
automake defines it, not autoconf.  Add early definition of pkglibdir so
substitute in neard.pc.in will work correctly.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index c1fdc44ae02d..ffe453049939 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,6 +15,10 @@ if (test "${libdir}" = '${exec_prefix}/lib'); then
 	libdir='${prefix}/lib'
 fi
 
+# pkglibdir is defined by automake but autoconf parses the neard.pc.in
+# which uses pkglibdir, therefore define it manually in autoconf.
+AC_SUBST([pkglibdir], ["\${libdir}/${PACKAGE_NAME}"])
+
 plugindir='${pkglibdir}/plugins'
 se_plugindir='${pkglibdir}/plugins-se'
 AC_SUBST(plugindir)
-- 
2.30.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.