aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-03-30 20:33:58 +0000
committerJim Blandy1993-03-30 20:33:58 +0000
commit13244a040eaceb2c5342a54da419f7e469a66fb7 (patch)
treec2a4dbdc49f482be1ad6c44db2445d18d6343094
parent7872ee4d0a1d7c92470b58049ff7201eae240b56 (diff)
downloademacs-13244a040eaceb2c5342a54da419f7e469a66fb7.tar.gz
emacs-13244a040eaceb2c5342a54da419f7e469a66fb7.zip
* configure: Extend test for working `const' keyword to handle AIX
3.2 cc.
-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'."
884rm -f conftest* 884rm -f conftest*
885compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1' 885compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1'
886echo " 886echo "
887main() { exit(0); } t() { /* Ultrix mips cc rejects this. */ 887main() { exit(0); } t() {
888/* Ultrix mips cc rejects this. */
888typedef int charset[2]; const charset x; 889typedef int charset[2]; const charset x;
889/* SunOS 4.1.1 cc rejects this. */ 890/* SunOS 4.1.1 cc rejects this. */
890char const *const *p; 891char const *const *p;
891char **p2; 892char **p2;
893/* AIX 3.2 cc rejects this. */
894p += p ? p-p : 0;
892/* HPUX 7.0 cc rejects these. */ 895/* HPUX 7.0 cc rejects these. */
893++p; 896++p;
894p2 = (char const* const*) p; 897p2 = (char const* const*) p;