X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fam-prog-cc-stdc.sh;fp=t%2Fam-prog-cc-stdc-no-more.sh;h=e3e469c7338c16441cf1f37ab6d0ed3d404d1e4a;hb=eada7ef7dfdee457c7e773ae96f435de81c2f0ce;hp=a43e2d19aafc8c70bc4004e117eea41f3bef2773;hpb=81527ed5b4f5742bd01d69c7e556f63bf30fb6c8;p=platform%2Fupstream%2Fautomake.git diff --git a/t/am-prog-cc-stdc-no-more.sh b/t/am-prog-cc-stdc.sh similarity index 58% rename from t/am-prog-cc-stdc-no-more.sh rename to t/am-prog-cc-stdc.sh index a43e2d1..e3e469c 100755 --- a/t/am-prog-cc-stdc-no-more.sh +++ b/t/am-prog-cc-stdc.sh @@ -14,30 +14,31 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Check that any attempt to use the obsolete macro AM_CONFIG_HEADER -# elicits clear and explicit fatal errors. +# Check that the obsolete macro the obsolete macro AM_PROG_CC_STDC +# still works. +required=gcc . test-init.sh -geterr () -{ - "$@" -Wnone 2>stderr && { cat stderr >&2; exit 1; } - cat stderr >&2 - grep "^configure\.ac:4:.*'AM_PROG_CC_STDC'.*obsolete" stderr - grep "'AC_PROG_CC'.* instead" stderr -} +cat >> configure.ac <<'END' +AM_PROG_CC_STDC +AC_OUTPUT +END -$ACLOCAL -mv aclocal.m4 aclocal.sav +echo bin_PROGRAMS = foo > Makefile.am -echo AM_PROG_CC_STDC >> configure.ac +$ACLOCAL +$AUTOMAKE -geterr $ACLOCAL -test ! -f aclocal.m4 +$AUTOCONF -Wnone -Wobsolete -Werror 2>stderr && { cat stderr >&2; exit 1; } +cat stderr >&2 +grep "^configure\.ac:4:.*'AM_PROG_CC_STDC'.*obsolete" stderr +grep "'AC_PROG_CC'.* instead" stderr -cat aclocal.sav "$am_automake_acdir"/obsolete-err.m4 > aclocal.m4 +echo 'int main (void) { return 0; }' > foo.c -geterr $AUTOCONF -geterr $AUTOMAKE +./configure +$MAKE +$MAKE distcheck :