+AM_INIT_AUTOMAKE([foreign])
+
+# For releases, enable silent rules, unless the user explicitly
+# disables them.
+# For the devel tree, do build with verbose output, unless user
+# explicitly enables silent rules
+AS_IF(
+ [test "$(${srcdir}/scripts/version.sh --internal)" = "git"],
+ [AM_SILENT_RULES],
+ [AM_SILENT_RULES([yes])])
+
+AS_IF(
+ [test $AM_DEFAULT_VERBOSITY -eq 0],
+ [SILENT_MAKEFLAGS="--no-print-directory -s"],
+ [SILENT_MAKEFLAGS=""])
+AC_SUBST([SILENT_MAKEFLAGS])