configure.ac: move AC_MSG_RESULT reporting back into the m4 macro
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Mar 2015 17:49:23 +0000 (17:49 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Mar 2015 20:49:32 +0000 (20:49 +0000)
The one who does AC_MSG_CHECKING should provide the AC_MSG_RESULT.

Fixes: ced9425327b (configure: Introduce new output variable to
ax_check_python_mako_module.m4"

Cc: "10.5" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89328
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
configure.ac
m4/ax_check_python_mako_module.m4

index 08378f570e396c46eadab3292dc6dfbfc1791081..3e5b6f5b263a176108ad309d1d8ad75f14afbe10 100644 (file)
@@ -123,9 +123,7 @@ if test "x$INDENT" != "xcat"; then
 fi
 
 AX_CHECK_PYTHON_MAKO_MODULE($PYTHON_MAKO_REQUIRED)
-if test -n "$PYTHON2" -a "x$acv_mako_found" = "xyes"; then
-    AC_MSG_RESULT(yes)
-else
+if test -n "$PYTHON2" -a "x$acv_mako_found" != "xyes"; then
     AC_MSG_ERROR([Python mako module v$PYTHON_MAKO_REQUIRED or higher not found])
 fi
 
index ee68a7cdb0513911088ce0bdea2fe1331fe0069b..7d9bb511c09e3f6364d31a081bfecd46bd1900eb 100644 (file)
@@ -54,8 +54,10 @@ else:
     " | $PYTHON2 -
 
     if test $? -ne 0 ; then
+       AC_MSG_RESULT(no)
        AC_SUBST(acv_mako_found, 'no')
     else
+       AC_MSG_RESULT(yes)
        AC_SUBST(acv_mako_found, 'yes')
     fi
 ])