summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-03-30 20:33:58 +0000
committerJim Blandy <jimb@redhat.com>1993-03-30 20:33:58 +0000
commit6efa8edcc88c1257f03ff05538c88aba96d59e83 (patch)
tree7b7fabbc049f04162034e4693a810b56a689f26d /configure1.in
parentef9ef0690abca5754064055f4e829619493895ca (diff)
downloademacs-6efa8edcc88c1257f03ff05538c88aba96d59e83.tar.gz
* configure: Extend test for working `const' keyword to handle AIX
3.2 cc.
Diffstat (limited to 'configure1.in')
-rwxr-xr-xconfigure1.in5
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;