configure.ac: check for ExtUtils::MakeMaker
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 09:13:13 +0000 (11:13 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 09:13:13 +0000 (11:13 +0200)
The perl bindings need this module so perl can generate Makefile.pl.

Fixes #1886

configure.ac

index 8dda710..2d4c681 100644 (file)
@@ -6314,6 +6314,18 @@ AC_ARG_WITH(perl-bindings, [AS_HELP_STRING([--with-perl-bindings@<:@=OPTIONS@:>@
                with_perl_bindings="no (no perl interpreter found)"
        fi
 ])
+
+if test "x$with_perl_bindings" = "xyes"
+then
+       AC_MSG_CHECKING([for the ExtUtils::MakeMaker module])
+       if $PERL -MExtUtils::MakeMaker -e '' 2>/dev/null; then
+               AC_MSG_RESULT([yes])
+       else
+               AC_MSG_RESULT([no])
+               with_perl_bindings="no (ExtUtils::MakeMaker not found)"
+       fi
+fi
+
 if test "x$with_perl_bindings" = "xyes"
 then
        PERL_BINDINGS="perl"