The overall issues seemed to be related to requiring the following packages (either installed or updated):
libtool -- libtool (Possibly named as
glibtoolize for OS X but it may be unnecessary.) Note: I did actually get this updated "okay" AFAICT.
I ran into an issue where the directory used by the source install of
/usr/local/share/aclocal) didn't seem to get picked up even when I edited the test in the
autogen.sh file. So instead I manually removed the
g-prefix from the tool name and hard-coded the directory name:
@@ -24,7 +24,8 @@ LIBTOOLIZE=libtoolize
if [ "x$OS" = "xDarwin" ]; then
+ ACLOCAL_DIR="-I /usr/local/share/aclocal" ##
I also needed to add
configure.ac for the repository source:
@@ -38,6 +38,7 @@ AC_PROG_CPP
autogen.sh (for the repo source) I next got the following message:
libtoolize: You should add the contents of `m4/libtool.m4' to `aclocal.m4'.
Apparently this is a "normal" message which you should actually just follow by doing this and re-running
cat m4/*.m4 >> aclocal.m4
The following issues (I think) occurred whether using the modifications above or the tarball source.
glib -- Apparently these errors (possibly?) means you need to install
glib which brings with it a bunch of other requirements:
warning: macro `AM_PATH_GLIB_2_0' not found in library
error: possibly undefined macro: AM_PATH_GLIB_2_0
These pages made some suggestions:
I got as far as:
## compile pkgconfig
tar xzvf pkg-config-0.26.tar.gz
./configure && make
# Generates error:
# configure: error: pkg-config and glib-2.0 not found, please set GLIB_CFLAGS and GLIB_LIBS to the correct values
## compile gettext
# gettext apparently a prerequisite for glib
tar xzvf gettext-0.18.1.1.tar.gz
./configure && make
# Seems successful
# compile glib
tar xjvf glib-2.29.12.tar.bz2
# Need the defines before hand because OS X doesn't include libffi package info or something?
LIBFFI_CFLAGS="-I/usr/include/ffi" LIBFFI_LIBS="-L/usr/lib" ./configure
# Fails with:
In file included from gclosure.c:29:
/usr/include/ffi/ffi.h:68:2: error: #error "Unsupported OS type"
In file included from /usr/include/ffi/ffi.h:74,
/usr/include/ffi/fficonfig.h:10:2: error: #error "This file is only supported on Mac OS X"
I thought I needed to use
brew to install
libffi and tried it but apparently I didn't need to do so--and it apparently has the potential to make things worse.
But I reached my limit when I started getting the following error message on inclusion of
#error Unsupported OS type
Looking at what generates the error it seems
MACOSX is not being defined somewhere it should be.
At this point I gave up. :)