Drop the generated libvirt_c.c from the sources
[ocaml-libvirt.git] / configure.ac
index b7544b4..66f0cf2 100644 (file)
@@ -1,5 +1,5 @@
 # ocaml-libvirt
-# Copyright (C) 2007-2008 Red Hat Inc., Richard W.M. Jones
+# Copyright (C) 2007-2015 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
@@ -47,6 +47,12 @@ AC_SUBST(WARNINGS)
 AC_SUBST(CFLAGS_FPIC)
 AC_SUBST(WIN32)
 
+dnl Check for perl (required).
+AC_CHECK_PROG([PERL],[perl],[perl],[no])
+if test "x$PERL" = "xno"; then
+    AC_MSG_ERROR([Perl must be installed to build])
+fi
+
 dnl Check for libvirt development environment.
 AC_ARG_WITH(libvirt,
        AC_HELP_STRING([--with-libvirt=PATH],[Set path to installed libvirt]),