New file.
2000-11-22 Martin Baulig <martin@home-of-linux.org> * lib/glibtop-server.c: New file. * lib/test-backends.c: New file. * lib/Makefile.am: Build test-backends test program. * lib/init-backends.c: Port this to libxml 2. * configure.in: Make this really work. * acinclude.m4: Removed the xml stuff. * Makefile.am (SUBDIRS): Put lib in front of sysdeps and backends.
This commit is contained in:
committed by
Martin Baulig
parent
81b009733e
commit
cee38c53bc
38
acinclude.m4
38
acinclude.m4
@@ -520,41 +520,3 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
||||
AM_CONDITIONAL(HAVE_SYSDEPS, test x$libgtop_have_sysdeps = xyes)
|
||||
AM_CONDITIONAL(LIBGTOP_USE_GMODULE, test x$libgtop_use_gmodule = xyes)
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl LIBGTOP_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([LIBGTOP_XML_HOOK],[
|
||||
LIBGTOP_XML_LIB=
|
||||
AC_PATH_PROG(XML_CONFIG,xml-config,no)
|
||||
if test "$XML_CONFIG" = no; then
|
||||
if test x$2 = xfailure; then
|
||||
AC_MSG_ERROR(Could not find xml-config)
|
||||
else
|
||||
AC_MSG_WARN(Could not find xml-config)
|
||||
fi
|
||||
else
|
||||
AC_CHECK_LIB(xml, xmlDocGetRootElement, [
|
||||
$1
|
||||
LIBGTOP_XML_LIB=`$XML_CONFIG --libs`
|
||||
AC_DEFINE(HAVE_LIBXML)
|
||||
], [
|
||||
if test x$2 = xfailure; then
|
||||
AC_MSG_ERROR(Could not link sample xml program)
|
||||
else
|
||||
AC_MSG_WARN(Could not link sample xml program)
|
||||
fi
|
||||
], `$XML_CONFIG --libs`)
|
||||
fi
|
||||
AC_SUBST(LIBGTOP_XML_LIB)
|
||||
])
|
||||
|
||||
AC_DEFUN([LIBGTOP_XML_CHECK], [
|
||||
LIBGTOP_XML_HOOK([],failure)
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user