X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=67272ef69f6287058eeea16a34a3e92ee22c221b;hb=refs%2Ftags%2F0.1.3;hp=8f45e7502297b2f11c8dd207c0f9a4fa55e1707f;hpb=b07102fda0034da5840a9f33bd6d404a195b8cc9;p=guestfs-browser.git diff --git a/configure.ac b/configure.ac index 8f45e75..67272ef 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ dnl You should have received a copy of the GNU General Public License along dnl with this program; if not, write to the Free Software Foundation, Inc., dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -AC_INIT([guestfs-browser],[0.0.1]) +AC_INIT([guestfs-browser],[0.1.3]) AM_INIT_AUTOMAKE([foreign]) AC_CONFIG_MACRO_DIR([m4]) @@ -28,6 +28,8 @@ test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant]) AM_PROG_CC_C_O AC_SYS_LARGEFILE +AC_PROG_SED + dnl Check for OCaml compiler. AC_PROG_OCAML if test "$OCAMLOPT" = "no"; then @@ -56,11 +58,26 @@ if test "$OCAML_PKG_guestfs" = "no"; then AC_MSG_ERROR([Please install OCaml module 'guestfs'.]) fi +AC_CHECK_OCAML_PKG([hivex]) +if test "$OCAML_PKG_hivex" = "no"; then + AC_MSG_ERROR([Please install OCaml module 'hivex'.]) +fi + AC_CHECK_OCAML_PKG([xml-light]) if test "$OCAML_PKG_xml_light" = "no"; then AC_MSG_ERROR([Please install OCaml module 'xml-light'.]) fi +AC_CHECK_OCAML_PKG([camomile]) +if test "$OCAML_PKG_camomile" = "no"; then + AC_MSG_ERROR([Please install OCaml module 'camomile' (including the data module if that is separate).]) +fi + +AC_CHECK_OCAML_PKG([bitstring]) +if test "$OCAML_PKG_bitstring" = "no"; then + AC_MSG_ERROR([Please install OCaml module 'bitstring'.]) +fi + AC_CHECK_OCAML_PKG([extlib]) if test "$OCAML_PKG_extlib" = "no"; then AC_MSG_ERROR([Please install OCaml module 'extlib'.]) @@ -69,6 +86,13 @@ fi dnl Check for gdk_pixbuf_mlsource program. AC_PATH_PROGS([GDK_PIXBUF_MLSOURCE], [gdk_pixbuf_mlsource]) +dnl Optional programs. +AC_CHECK_PROG(PERLDOC,[perldoc],[perldoc],[no]) +if test "x$PERLDOC" = "xno" ; then + AC_MSG_WARN([perldoc not found - install perl to make man pages]) +fi +AM_CONDITIONAL(HAVE_PERLDOC,[test "$perldoc" != "no"]) + AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile config.ml]) +AC_CONFIG_FILES([Makefile config.ml guestfs-browser.spec]) AC_OUTPUT