Fix perl hanging during configure (thanks to Luciano Miguel Ferreira Rocha).
authorRichard Jones <rjones@redhat.com>
Tue, 28 Apr 2009 08:59:35 +0000 (09:59 +0100)
committerRichard Jones <rjones@redhat.com>
Tue, 28 Apr 2009 08:59:35 +0000 (09:59 +0100)
configure.ac

index a898040..67f763b 100644 (file)
@@ -186,7 +186,7 @@ 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
+    if ! perl -M$pm -e1 >/dev/null 2>&1; then
         AC_MSG_RESULT([no])
         missing_perl_modules=yes
     else