Version 0.4.0.0 for release.
[virt-top.git] / configure.ac
index f1dc5c8..8e4c9c9 100644 (file)
@@ -1,6 +1,23 @@
+# ocaml-libvirt
+# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+
 dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT(ocaml-libvirt,0.3.2.7)
+AC_INIT(ocaml-libvirt,0.4.0.0)
 
 dnl Check for basic C environment.
 AC_PROG_CC
@@ -35,7 +52,12 @@ AC_CHECK_FUNC(virConnectGetCapabilities,
 
 dnl Check for optional libvirt functions added since 0.2.1.
 dnl See: http://libvirt.org/hvsupport.html
-AC_CHECK_FUNCS([virConnectGetHostname virConnectGetURI virDomainBlockStats virDomainGetSchedulerParameters virDomainGetSchedulerType virDomainInterfaceStats virDomainMigrate virDomainSetSchedulerParameters])
+AC_CHECK_FUNCS([virConnectGetHostname virConnectGetURI virDomainBlockStats virDomainGetSchedulerParameters virDomainGetSchedulerType virDomainInterfaceStats virDomainMigrate virDomainSetSchedulerParameters virNodeGetFreeMemory virNodeGetCellsFreeMemory])
+
+dnl We also use <libvirt/virterror.h>
+AC_CHECK_HEADER([libvirt/virterror.h],
+       [],
+       AC_MSG_ERROR([You must install libvirt development package]))
 
 dnl Check for optional ncurses.
 AC_CHECK_LIB(ncurses,initscr)
@@ -60,12 +82,14 @@ AC_CHECK_OCAML_PKG(curses)
 AC_CHECK_OCAML_PKG(gettext)
 AC_CHECK_OCAML_PKG(xml-light)
 AC_CHECK_OCAML_PKG(csv)
+AC_CHECK_OCAML_PKG(calendar)
 
 AC_SUBST(pkg_lablgtk2)
 AC_SUBST(pkg_curses)
 AC_SUBST(pkg_gettext)
 AC_SUBST(pkg_xml_light)
 AC_SUBST(pkg_csv)
+AC_SUBST(pkg_calendar)
 
 dnl Check for optional perldoc (for building manual pages).
 AC_CHECK_PROG(HAVE_PERLDOC,perldoc,perldoc)
@@ -88,6 +112,12 @@ if test "x$pkg_curses" = "xyes"; then
 else
    echo "no (needs optional ocaml-curses)"
 fi
+echo -n "  virt-df      . . . . . . . "
+if test "x$pkg_xml_light" = "xyes"; then
+   echo "yes"
+else
+   echo "no (needs optional xml-light)"
+fi
 echo "------------------------------------------------------------"
 
 dnl Produce output files.
@@ -100,5 +130,6 @@ AC_CONFIG_FILES([META
        mlvirsh/Makefile
        mlvirtmanager/Makefile
        virt-top/Makefile
+       virt-df/Makefile
        ])
 AC_OUTPUT