Tag
Hash :
902d3423
Author :
Date :
2002-07-11T20:10:39
Fix for PR automake/337: * automake.in: Redefine the `flags' attribute of each language as a list. List CPPFLAGS in `flags' when it is used. (register_language): Set the default value of 'flags'. (handle_single_transform_list): Adjust to treat `flags' as a list. (handle_languages): Likewise. Don't bother defining the configure variable for `c', this is always done since we trace configure.ac. * automake.texi (etags): Use per-executable _CPPFLAGS. (Program and Library Variables): Mention maude_CPPFLAGS. (Program variables): Likewise. * tests/specflags8.test: Use _CPPFLAGS instead of _CFLAGS. * tests/specflags9.test: New file. * tests/Makefile.am (TESTS): Add specflag9.test.
#! /bin/sh
# Another check for per-target flag substitutions.
. $srcdir/defs || exit 1
set -e
cat >> configure.in << 'END'
AC_PROG_CC
AC_OUTPUT
END
cat > Makefile.am << 'END'
bin_PROGRAMS = zzfoo zzbar
zzfoo_SOURCES = sub/foo.c
zzbar_SOURCES = bar.c
zzbar_CPPFLAGS = -Dfoo
END
$ACLOCAL
$AUTOMAKE --add-missing
$FGREP '$(AM_CFLAGS)' Makefile.in
$FGREP '$(zzfoo_CFLAGS)' Makefile.in && exit 1
$FGREP '$(zzfoo_CPPFLAGS)' Makefile.in && exit 1
$FGREP '$(zzbar_CFLAGS)' Makefile.in && exit 1
$FGREP '$(zzbar_CPPFLAGS)' Makefile.in
: