From: Tom Tromey Date: Thu, 25 Sep 1997 05:50:05 +0000 (+0000) Subject: another cc-stdc bug fix X-Git-Tag: Release-1-2b~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55918e4400991976fb2beaca2e84ad4c972c0067;p=thirdparty%2Fautomake.git another cc-stdc bug fix --- diff --git a/ChangeLog b/ChangeLog index e3bd8f053..d58342f4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 24 23:48:26 1997 Tom Tromey + + * m4/ccstdc.m4 (AM_PROG_CC_STDC): Make sure this is run before + AC_PROG_CPP. From Markus Oberhumer. + Fri Sep 12 00:04:19 1997 Paul Eggert * m4/ccstdc.m4 (AM_PROG_CC_STDC): Don't look at __STDC__; diff --git a/m4/ccstdc.m4 b/m4/ccstdc.m4 index 74e8c5e75..d8b6cd2da 100644 --- a/m4/ccstdc.m4 +++ b/m4/ccstdc.m4 @@ -24,6 +24,10 @@ AC_DEFUN(AM_PROG_CC_STDC, [AC_REQUIRE([AC_PROG_CC]) AC_BEFORE([$0], [AC_C_INLINE]) AC_BEFORE([$0], [AC_C_CONST]) +dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require +dnl a magic option to avoid problems with ANSI preprocessor commands +dnl like #elif. +AC_BEFORE([$0], [AC_PROG_CPP]) AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C) AC_CACHE_VAL(am_cv_prog_cc_stdc, [am_cv_prog_cc_stdc=no