PKG_CHECK_EXISTS (was: Re: [Libvir] libvirt on OS X Leopard 10.5.1)

Richard W.M. Jones rjones at redhat.com
Tue Jan 22 12:41:16 UTC 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080122/7e596bac/attachment-0001.bin>


More information about the libvir-list mailing list