musl-obstack
musl-obstack copied to clipboard
bootstrap.sh fails
I'm trying to build musl-obstack and I'm getting the following error when running bootstrap.sh
Makefile.am:9: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined
The error disappears If I edit Makefile.am and add something like
pkgconfigdir = $(libdir)/pkgconf
After that, boostrap.sh succeeds and I can execute configure and make without problems.
The Makefile.am is kinda correct, the problem is, that the configure.ac uses the PKG_INSTALLDIR
macro which is not provided by automake or autoconf but by pkg-config. Without any pkg.m4
provided bootstrap.sh
fails the way you describe.
This happens to me in an old distro, where pkg.m4 is installed but PKG_INSTALLDIR is not defined, so the solution provided in the first comment is the definitive fix and is exactly what pkg.m4 does when defining the missing macro in a later release