summaryrefslogtreecommitdiff
path: root/t/suffix2.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/suffix2.sh')
-rw-r--r--t/suffix2.sh20
1 files changed, 8 insertions, 12 deletions
diff --git a/t/suffix2.sh b/t/suffix2.sh
index de953b999..4b5aa466e 100644
--- a/t/suffix2.sh
+++ b/t/suffix2.sh
@@ -14,20 +14,19 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure proper suffix rules for C compilation are produced,
+# Make sure proper pattern rules for C compilation are produced,
# and only once, even for libtool libraries.
# See also related test 'suffix.sh'.
-required=libtoolize
. test-init.sh
cat >> configure.ac << 'END'
AC_PROG_CC
AM_PROG_AR
-AC_PROG_LIBTOOL
END
cat > Makefile.am << 'END'
+LIBTOOL = who cares
lib_LTLIBRARIES = libltdl.la
libltdl_la_SOURCES = ltdl.c ltdl.h
END
@@ -41,14 +40,11 @@ END
$ACLOCAL
-$AUTOMAKE -a
-grep '^ *\.c' Makefile.in # For debugging.
-test $(grep -c '^\.c\.o:' Makefile.in) -eq 1
-test $(grep -c '^\.c\.obj:' Makefile.in) -eq 1
-
-$AUTOMAKE -i
-grep '^ *\.c' Makefile.in # For debugging.
-test $(grep -c '^\.c\.o:' Makefile.in) -eq 1
-test $(grep -c '^\.c\.obj:' Makefile.in) -eq 1
+for o in -a -i; do
+ $AUTOMAKE $o
+ grep '%\.[lco$]' Makefile.in # For debugging.
+ test $(grep -c '^%\.$(OBJEXT): %\.c$' Makefile.in) -eq 1
+ test $(grep -c '^%\.lo: %\.c$' Makefile.in) -eq 1
+done
: