X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=d21c165892c06a5efeb801377cbbc0681822f15e;hb=b3021495a92b0d5bd2a91f922be42f28b0b321c8;hp=bc46cabef230d038bf52886c62d834232bd4ef74;hpb=35dc2f5706a957fe9a17d4bc29ad433c541d2fa0;p=libguestfs.git diff --git a/configure.ac b/configure.ac index bc46cab..d21c165 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.9]) +AC_INIT([libguestfs],[1.0.12]) AM_INIT_AUTOMAKE AC_CONFIG_MACRO_DIR([m4]) @@ -35,6 +35,9 @@ AM_PROG_CC_C_O dnl Check support for 64 bit file offsets. AC_SYS_LARGEFILE +dnl Check sizeof long. +AC_CHECK_SIZEOF([long]) + dnl Headers. AC_CHECK_HEADERS([errno.h sys/types.h sys/un.h sys/wait.h sys/socket.h]) @@ -147,9 +150,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])