Richard W.M. Jones wrote:
* PKG_CHECK_EXISTS macro doesn't exist and has to be commented
out
everywhere. This is despite the fact that I have pkg-config from
Macports installed.
Looking into this in a bit more detail -- Macports installs everything
under /opt/local and there is a pkg.m4 file under there which contains
PKG_CHECK_EXISTS macro:
$ grep PKG_CHECK_EXISTS /opt/local/share/aclocal/pkg.m4
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
# PKG_CHECK_EXISTS manually
AC_DEFUN([PKG_CHECK_EXISTS],
PKG_CHECK_EXISTS([$3],
What do I need to do to make autoconf use this macro? At the moment
autoconf leaves the macro unexpanded, and as a result ./configure fails.
checking for iptables... /sbin/iptables
./configure: line 35741: syntax error near unexpected token
`libxml-2.0,LIBXML_FOUND=yes'
./configure: line 35741: ` PKG_CHECK_EXISTS(libxml-2.0,LIBXML_FOUND=yes)'
Rich.
--
Emerging Technologies, Red Hat -
http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903