[Mono-list] OS/X build error for glib-2.0
Paolo Molaro
lupus@ximian.com
Fri, 7 Feb 2003 17:30:50 +0100
On 02/06/03 Steve Mentzer wrote:
> Running pkg-config yields the following results
>
> [localhost:~/dotnet/mono] stevem% pkg-config --libs glib-2.0
> -L/sw/lib -lglib-2.0 -lintl -liconv
>
> Here is a dump of the build process. Can someone help?
>
> TIA!
>
> *Warning**: I am going to run `configure' with no arguments.
> If you wish to pass any to it, please specify them on the
> `./autogen.sh' command line.
>
> Running libtoolize...
> You should add the contents of `/sw/share/aclocal/libtool.m4' to `aclocal.m4'.
[...]
> checking for pkg-config... /sw/bin/pkg-config
> ./configure: line 7995: syntax error near unexpected token `PKG_CHECK_MODULES(BASE_DEPENDENCIES,'
> ./configure: line 7995: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)'
>
pkgconfig also installs a file named pkg.m4.
aclocal needs the file to properly build a configure.in file,
if it isn't found automatically, you can specify the ACLOCAL_FLAGS
env to autogen.sh with something like:
ACLOCAL_FLAGS="-I /path/where/pkg.m4/is/located" ./autogen.sh
or just run aclocal -I /path by hand and then automake, autoconf etc.
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better