Alex Nelson
2012-Jun-11 18:54 UTC
[Libguestfs] [hivex][PATCH v2] OS X, bootstrap: Locate pkg.m4
OS X does not include pkg-config by default. This causes ./configure to fail when invoking PKG_CHECK_MODULES for libxml2. This change autodetects the path for aclocal, c/o RWMJ noting the real problem is a deficiency in aclocal on OS X. Signed-off-by: Alex Nelson <ajnelson at cs.ucsc.edu> --- bootstrap | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bootstrap b/bootstrap index b2960c1..52c05d5 100755 --- a/bootstrap +++ b/bootstrap @@ -86,4 +86,4 @@ $gnulib_tool \ --import $modules # Disable autopoint and libtoolize, since they were already done above. -AUTOPOINT=true LIBTOOLIZE=true autoreconf --verbose --install +AUTOPOINT=true LIBTOOLIZE=true ACLOCAL_PATH=$(aclocal --print-ac-dir) autoreconf --verbose --install -- 1.7.3.1
Richard W.M. Jones
2012-Jun-12 09:35 UTC
[Libguestfs] [hivex][PATCH v2] OS X, bootstrap: Locate pkg.m4
On Mon, Jun 11, 2012 at 11:54:14AM -0700, Alex Nelson wrote:> OS X does not include pkg-config by default. This causes ./configure > to fail when invoking PKG_CHECK_MODULES for libxml2. > > This change autodetects the path for aclocal, c/o RWMJ noting the real > problem is a deficiency in aclocal on OS X. > > Signed-off-by: Alex Nelson <ajnelson at cs.ucsc.edu> > --- > bootstrap | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/bootstrap b/bootstrap > index b2960c1..52c05d5 100755 > --- a/bootstrap > +++ b/bootstrap > @@ -86,4 +86,4 @@ $gnulib_tool \ > --import $modules > > # Disable autopoint and libtoolize, since they were already done above. > -AUTOPOINT=true LIBTOOLIZE=true autoreconf --verbose --install > +AUTOPOINT=true LIBTOOLIZE=true ACLOCAL_PATH=$(aclocal --print-ac-dir) autoreconf --verbose --installI don't understand why this would be necessary. Your aclocal has the ac-dir configured to /opt/local/share/aclocal already, which means it should already be searching that directory for pkg.m4. If it's not, then it either a bug in aclocal or (more likely) a bug in the MacPorts version of aclocal. In either case, I suggest just adding ACLOCAL_PATH to your own environment, or fixing MacPorts to not be broken. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
Reasonably Related Threads
- [hivex][PATCH] OS X, bootstrap: Locate pkg.m4
- [PATCH 3/3] Mac OS X: Run glibtoolize in absence of libtoolize
- [PATCH libguestfs] avoid build-from-scratch failure due to missing daemon/configure
- [hivex] OS X: Augment pkg-config search path
- [PATCH] Remove ocaml/.depend from git