configure: Change the way we work around missing $(AM_V_P).
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 27 Sep 2014 16:23:54 +0000 (09:23 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 27 Sep 2014 16:23:54 +0000 (09:23 -0700)
The existing approach didn't work because AM_V_P was introduced after
AM_SILENT_RULES.

Makefile.am
configure.ac

index aea415d15e2276b37c70b7b36e6480e693011341..3fc689fc6cba6d8c348e584d818768359c3a695a 100644 (file)
@@ -11,6 +11,8 @@ AM_CPPFLAGS = \
        -I$(top_builddir)/gl \
        -DINSTALLDIR=\"$(bindir)\"
 
+AM_V_P ?= :
+
 AM_CFLAGS=
 
 if cc_is_gcc
index dcdf02b20413f8a1662406356c880a74c4e912bb..032b6f505c3dee9410327b94bbb1cc14673e945c 100644 (file)
@@ -336,11 +336,7 @@ PSPP_CHECK_PREREQS
 AC_CONFIG_FILES(
   [Makefile gl/Makefile po/Makefile tests/atlocal perl-module/lib/PSPP.pm])
 
-m4_ifdef(
-  [AM_SILENT_RULES],
-  [AM_SILENT_RULES],
-  [AM_V_P=:
-   AC_SUBST([AM_V_P])])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
 
 AC_OUTPUT
 echo "PSPP configured successfully."