+AC_CHECK_OCAML_MODULE(newt,pkg_newt,Newt,[+newt])
+if test "x$pkg_newt" = "xno"; then
+ AC_MSG_ERROR([Cannot find required OCaml package 'ocaml-newt'])
+fi
+
+AC_CHECK_OCAML_MODULE(pcre,pkg_pcre,Pcre,[+pcre])
+if test "x$pkg_pcre" = "xno"; then
+ AC_MSG_ERROR([Cannot find required OCaml package 'ocaml-pcre'])
+fi
+
+AC_CHECK_OCAML_MODULE(libvirt,pkg_libvirt,Libvirt_version,[+libvirt])
+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
+