Separate RPM for virt-p2v. Use gettext for i18n.
[virt-p2v.git] / configure.ac
index fb8ae7c..6dd5fa7 100644 (file)
@@ -16,7 +16,7 @@
 # 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
 
@@ -80,6 +80,7 @@ AC_SUBST(LOCALREPO)
 
 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,[.])
@@ -112,6 +113,11 @@ if test "x$pkg_libvirt" = "xno"; then
     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)
 
@@ -125,11 +131,14 @@ dnl Check for optional qemu or qemu-kvm (for test-booting).
 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