paulo@0: ############################################################################### paulo@0: ## $Id: libxml.m4,v 1.1 2003/09/17 23:25:51 hipnod Exp $ paulo@0: ############################################################################### paulo@0: paulo@0: AC_DEFUN([GIFT_GNUTELLA_CHECK_LIBXML],[ paulo@0: # paulo@0: # Check on the user's PATH if no path was specified in OPT_LIBXML, paulo@0: # when the user has passed --with-libxml without a directory, paulo@0: # or check the directory if one was supplied. paulo@0: # paulo@0: if test x"$OPT_LIBXML" = xyes; then paulo@0: AC_PATH_PROG(XML2_CONFIG, xml2-config, [no]) paulo@0: else paulo@0: XMLPATH="$OPT_LIBXML/bin" paulo@0: AC_PATH_PROG(XML2_CONFIG, xml2-config, [no], [$XMLPATH]) paulo@0: fi paulo@0: paulo@0: if test x"$XML2_CONFIG" != xno; then paulo@0: LIBXML2_CFLAGS=`$XML2_CONFIG --cflags` paulo@0: LIBXML2_LIBS=`$XML2_CONFIG --libs` paulo@0: paulo@0: AC_SUBST(LIBXML2_CFLAGS) paulo@0: AC_SUBST(LIBXML2_LIBS) paulo@0: AC_DEFINE(USE_LIBXML2) paulo@0: else paulo@0: AC_MSG_ERROR([ paulo@0: Couldn't run ${OPT_LIBXML}/bin/xml2-config paulo@0: paulo@0: ]) paulo@0: fi paulo@0: ])