Avoid requiring autom4te when it won't necessarily be needed.
authorBen Pfaff <blp@nicira.com>
Thu, 4 Oct 2012 22:55:43 +0000 (15:55 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 4 Oct 2012 23:28:10 +0000 (16:28 -0700)
Commit 7fd3e43db07 (tests: Allow environment specified autom4te.) added a
requirement for Autom4te without anyone noticing it in advance.  This
caused a build failure in the XenServer DDK, which doesn't have Autom4te.
Since Autom4te is only needed if the testsuite is modified, this commit
makes it optional.

(Autom4te is part of Autoconf.)

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
configure.ac

index 10b214e..9ec5548 100644 (file)
@@ -34,10 +34,7 @@ if test "$PERL" = no; then
    AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
 fi
 
-AC_PATH_PROG([AUTOM4TE], autom4te, no)
-if test "$AUTOM4TE" = no; then
-   AC_MSG_ERROR([autom4te not found in $PATH or $AUTOM4TE.])
-fi
+AM_MISSING_PROG([AUTOM4TE], [autom4te])
 
 AC_USE_SYSTEM_EXTENSIONS
 AC_C_BIGENDIAN