[PATCH xorg-gtest] aclocal: fill AS_IF with noop statements

Peter Hutterer peter.hutterer at who-t.net
Sun Jul 29 18:05:57 PDT 2012


Expanding this macro fails on some machines (RHEL6). It expands to
if test <condition>; then

fi

Empty statements are invalid.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 aclocal/xorg-gtest.m4 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aclocal/xorg-gtest.m4 b/aclocal/xorg-gtest.m4
index 6efff08..0f6aa85 100644
--- a/aclocal/xorg-gtest.m4
+++ b/aclocal/xorg-gtest.m4
@@ -47,7 +47,7 @@ AC_DEFUN([_CHECK_GTEST],
 
   AS_IF([test "x$have_gtest" = xyes],
         [AC_SUBST(GTEST_CPPFLAGS)]
-        [AC_SUBST(GTEST_SOURCE)])
+        [AC_SUBST(GTEST_SOURCE)] [:])
 ]) # _CHECK_GTEST
 
 # CHECK_XORG_GTEST([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-- 
1.7.10.4



More information about the xorg-devel mailing list