# 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(virt-p2v,0.9.7)
+AC_INIT(virt-p2v,0.9.8)
AC_PROG_INSTALL
dnl Check for basic OCaml script interpreter.
AC_PROG_OCAML
+AC_PROG_FINDLIB
dnl Check for required OCaml modules.
AC_CHECK_OCAML_MODULE(unix,pkg_unix,Unix,[.])
AC_MSG_ERROR([Cannot find required OCaml package 'ocaml-libvirt'])
fi
+AC_CHECK_OCAML_MODULE(gettext,pkg_gettext,Gettext,[+gettext])
+if test "x$pkg_gettext" = "xno"; then
+ AC_MSG_ERROR([Cannot find required OCaml package 'ocaml-gettext'])
+fi
+
dnl Check for recommended livecd-creator (for building ISOs).
AC_CHECK_PROG(HAVE_LIVECD_CREATOR,livecd-creator,livecd-creator)
AC_CHECK_PROG(HAVE_QEMU,qemu,qemu)
AC_CHECK_PROG(HAVE_QEMU_KVM,qemu-kvm,qemu-kvm)
+dnl Check for recommended ocaml-gettext tool.
+AC_CHECK_PROG(OCAML_GETTEXT,ocaml-gettext,ocaml-gettext)
+
dnl Summary.
echo "------------------------------------------------------------"
echo "Thanks for downloading" $PACKAGE_STRING
echo "------------------------------------------------------------"
dnl Produce output files.
-AC_CONFIG_FILES([Makefile p2v.ks])
+AC_CONFIG_FILES([Makefile po/Makefile p2v.ks virt-p2v.spec])
AC_OUTPUT