diff options
author | Jim Blandy <jimb@redhat.com> | 1993-03-30 20:33:58 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-03-30 20:33:58 +0000 |
commit | 6efa8edcc88c1257f03ff05538c88aba96d59e83 (patch) | |
tree | 7b7fabbc049f04162034e4693a810b56a689f26d /configure1.in | |
parent | ef9ef0690abca5754064055f4e829619493895ca (diff) | |
download | emacs-6efa8edcc88c1257f03ff05538c88aba96d59e83.tar.gz |
* configure: Extend test for working `const' keyword to handle AIX
3.2 cc.
Diffstat (limited to 'configure1.in')
-rwxr-xr-x | configure1.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure1.in b/configure1.in index ee068601bff..fcce3ada2c4 100755 --- a/configure1.in +++ b/configure1.in @@ -884,11 +884,14 @@ echo "Checking if the compiler supports \`const'." rm -f conftest* compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1' echo " -main() { exit(0); } t() { /* Ultrix mips cc rejects this. */ +main() { exit(0); } t() { +/* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset x; /* SunOS 4.1.1 cc rejects this. */ char const *const *p; char **p2; +/* AIX 3.2 cc rejects this. */ +p += p ? p-p : 0; /* HPUX 7.0 cc rejects these. */ ++p; p2 = (char const* const*) p; |