automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [FYI] tests: amopts-variable-expansion.sh: fix post-merge


From: Stefano Lattarini
Subject: [Automake-NG] [FYI] tests: amopts-variable-expansion.sh: fix post-merge spurious failure
Date: Sat, 12 Jan 2013 15:12:51 +0100

* t/amopts-variable-expansion.sh:: Adjust to reflect the fact that subdir
sources no longer require AM_PROG_CC_C_O in 'configure.ac'.  Instead, use
the fact that 'AM_PROG_AR' is required to be in 'configure.ac' when a
library is to be built and warnings in the 'extra-portability' category
are enabled.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 t/amopts-variable-expansion.sh | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/t/amopts-variable-expansion.sh b/t/amopts-variable-expansion.sh
index 64a40a1..9ffa8d1 100755
--- a/t/amopts-variable-expansion.sh
+++ b/t/amopts-variable-expansion.sh
@@ -27,6 +27,9 @@ AC_INIT([$me], [1.0])
 AM_INIT_AUTOMAKE([-Wall -Werror gnu])
 AC_CONFIG_FILES([Makefile])
 AC_PROG_CC
+AC_PROG_RANLIB
+# The absence of AM_PROG_AR will give a warning with
+# '-Wextra-portability', which we want to elicit.
 END
 
 cat > Makefile.am <<'END'
@@ -39,10 +42,8 @@ foo1 = ${foo2}
 foo2 = no-dist -Wnone
 foo2 += $(foo3)
 foo3 = -Wno-error
-bar = -Wportability
-noinst_PROGRAMS = foo
-# This will give a warning with '-Wportability'.
-foo_SOURCES = sub/foo.c
+bar = -Wextra-portability
+noinst_LIBRARIES = libfoo.a
 # This would give a warning with '-Woverride'.
 install:
 END
@@ -54,8 +55,8 @@ END
 
 $ACLOCAL
 AUTOMAKE_run
-grep '^Makefile\.am:.*sub/foo\.c.*requires.*AM_PROG_CC_C_O' stderr
-grep README stderr && exit 1
+$FGREP 'AM_PROG_AR' stderr
+$FGREP 'README' stderr && exit 1
 $EGREP '(install|override)' stderr && exit 1
 $EGREP 'distdir|\.tar[ .]' Makefile.in && exit 1
 
-- 
1.8.1.rc3.192.g2d0029e




reply via email to

[Prev in Thread] Current Thread [Next in Thread]