mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-02 13:39:43 -06:00
859a6da3af
* src/engine/gnc-commodity.c (gnc_commodity_table_remove_non_iso): new func * src/test/test-xml-commodity.c: remove duplicate string_to_integer * src/gnome/dialog-userpass.c: add missing #include * src/register/gnome/Makefile.am: add gnome & glib flags * src/engine/Makefile.am: add glib libs * src/engine/sql/Makefile.am: add glib flags * configure.in: fix includes used to check for sizes * acinclude.m4: fix guppi macro * macros/: update m4 files git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3776 57a11ea4-9604-0410-9ed3-97b8803252fd
33 lines
791 B
Plaintext
33 lines
791 B
Plaintext
dnl
|
|
dnl GNOME_XML_HOOK (script-if-xml-found, failflag)
|
|
dnl
|
|
dnl If failflag is "failure", script aborts due to lack of XML
|
|
dnl
|
|
dnl Check for availability of the libxml library
|
|
dnl the XML parser uses libz if available too
|
|
dnl
|
|
|
|
AC_DEFUN([GNOME_XML_HOOK],[
|
|
AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
|
|
if test "$GNOME_CONFIG" = no; then
|
|
if test x$2 = xfailure; then
|
|
AC_MSG_ERROR(Could not find gnome-config)
|
|
fi
|
|
fi
|
|
GNOME_XML_CFLAGS=`$GNOME_CONFIG --cflags xml`
|
|
AC_SUBST(GNOME_XML_CFLAGS)
|
|
AC_CHECK_LIB(xml, xmlNewDoc, [
|
|
$1
|
|
GNOME_XML_LIB=`$GNOME_CONFIG --libs xml`
|
|
], [
|
|
if test x$2 = xfailure; then
|
|
AC_MSG_ERROR(Could not link sample xml program)
|
|
fi
|
|
], `$GNOME_CONFIG --libs xml`)
|
|
AC_SUBST(GNOME_XML_LIB)
|
|
])
|
|
|
|
AC_DEFUN([GNOME_XML_CHECK], [
|
|
GNOME_XML_HOOK([],failure)
|
|
])
|