"Richard W.M. Jones" <rjones@xxxxxxxxxx> wrote: > 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)' Hi Rich, So, you have this file, /opt/local/share/aclocal/pkg.m4 yet your version of aclocal doesn't find it. This should be enough to make it work: mkdir -p $(aclocal --print-ac-dir) echo /opt/local/share/aclocal >> $(aclocal --print-ac-dir)/dirlist -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list