From: Paul Eggert Date: Thu, 22 Jun 2006 23:50:07 +0000 (+0000) Subject: * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility X-Git-Tag: AUTOCONF-2.60~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49b75d090699abb28abf536bb5aeffb10e6c92e8;p=thirdparty%2Fautoconf.git * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility when using default mode of IBM C 6 for AIX. Problem and two-line fix reported by Larry Jones. --- diff --git a/ChangeLog b/ChangeLog index d94fd92ac..444d8fa30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-22 Paul Eggert + + * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility + when using default mode of IBM C 6 for AIX. Problem and two-line + fix reported by Larry Jones. + 2006-06-22 Alexandre Julliard * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index b9e6e78ed..dead340b4 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -1043,6 +1043,11 @@ static char *f (char * (*g) (char **, int), char **p, ...) that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);};