X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=configure.ac;h=46aac9419206e386fe128c96e16af6c6c4698c3b;hp=38418434a8f0a5367f1d6507ddd2243b2eb987b6;hb=8f9f02d483b87c787d089cf9329f5f1b81d3a77e;hpb=4bcb05e92f090f872fb823ffdadd241486a13107 diff --git a/configure.ac b/configure.ac index 3841843..46aac94 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -AC_INIT([libguestfs],[1.0.6]) +AC_INIT([libguestfs],[1.0.11]) AM_INIT_AUTOMAKE AC_CONFIG_MACRO_DIR([m4]) @@ -147,9 +147,27 @@ AC_PROG_FINDLIB AM_CONDITIONAL([HAVE_OCAML],[test "x$OCAMLC" != "xno" -a "x$OCAMLFIND" != "xno"]) dnl Check for Perl (optional, for Perl bindings). -dnl XXX This isn't quite right, we should check for devel libraries. +dnl XXX This isn't quite right, we should check for Perl devel library. AC_CHECK_PROG([PERL],[perl],[perl],[no]) -AM_CONDITIONAL([HAVE_PERL],[test "x$PERL" != "xno"]) + +dnl Check for Perl modules that must be present to compile and +dnl test the Perl bindings. +missing_perl_modules=no +for pm in Test::More Test::Pod Test::Pod::Coverage ExtUtils::MakeMaker; do + AC_MSG_CHECKING([for $pm]) + if ! perl -M$pm >/dev/null 2>&1; then + AC_MSG_RESULT([no]) + missing_perl_modules=yes + else + AC_MSG_RESULT([yes]) + fi +done +if test "x$missing_perl_modules" = "xyes"; then + AC_MSG_WARN([some Perl modules required to compile or test the Perl bindings are missing]) +fi + +AM_CONDITIONAL([HAVE_PERL], + [test "x$PERL" != "xno" -a "x$missing_perl_modules" != "xyes"]) dnl Check for Python (optional, for Python bindings). AC_CHECK_PROG([PYTHON],[python],[python],[no]) @@ -340,7 +358,7 @@ AC_CONFIG_FILES([Makefile src/Makefile fish/Makefile examples/Makefile ruby/Makefile ruby/Rakefile java/Makefile make-initramfs.sh update-initramfs.sh - libguestfs.spec + libguestfs.spec libguestfs.pc ocaml/META perl/Makefile.PL]) AC_OUTPUT