configure: Fix build with automake < 1.11
authorLauri Kasanen <cand@gmx.com>
Fri, 22 Feb 2013 20:25:58 +0000 (22:25 +0200)
committerMatt Turner <mattst88@gmail.com>
Fri, 22 Feb 2013 21:15:14 +0000 (13:15 -0800)
Commit 86d30dea3c13d29ef8d39bc18db63a0441051975 broke building with older
automake versions with this error:

Makefile:769: *** Recursive variable am__v_YACC_ references itself (eventually).  Stop.

This patch fixes it. Fix stolen from xorg-macros.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
configure.ac

index 1e11b4ea94ef61d1f7c27a590af23c2592521636..3efef04aead213bc8548a168d4629c6b28fef6cd 100644 (file)
@@ -20,7 +20,8 @@ echo \#buildapi-variable-no-builddir >/dev/null
 # Support silent build rules, requires at least automake-1.11. Disable
 # by either passing --disable-silent-rules to configure or passing V=1
 # to make
-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
+    [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
 
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])