Switch license to GPLv3 or later.
[bpt/emacs.git] / src / s / aix3-2.h
CommitLineData
57d5f594
GM
1/* s- file for building Emacs on AIX 3.2.
2
3 Copyright (C) 1999, 2001, 2002, 2003, 2004,
4 2005, 2006, 2007 Free Software Foundation, Inc.
5
6This file is part of GNU Emacs.
7
8GNU Emacs is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
4a9f99bd 10the Free Software Foundation; either version 3, or (at your option)
57d5f594
GM
11any later version.
12
13GNU Emacs is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GNU Emacs; see the file COPYING. If not, write to
20the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21Boston, MA 02110-1301, USA. */
22
35a37ee7
JB
23
24#include "aix3-1.h"
25
02689640
RS
26#define AIX3_2
27
35a37ee7
JB
28/* No need to define this--the header files indicate X11R4,
29 and that's supposedly what 3.2 will come with. */
30#undef SPECIFY_X11R4
31
7ad15529 32#ifndef __GNUC__
bbf21925
KH
33/* Some programs in src produce warnings saying certain subprograms
34 are to comples and need a MAXMEM value greater than 2000 for
35 additional optimization. --nils@exp-math.uni-essen.de */
36#define C_SWITCH_SYSTEM -ma -qmaxmem=4000
7ad15529 37#endif
293ea14e 38
0e1bbfb1 39/* Adrian Colley <Adrian.Colley@three.serpentine.com> says this is needed. */
293ea14e 40#ifndef NOT_C_CODE
f47ad16c 41#ifndef AIX4
293ea14e
RS
42 #pragma alloca
43#endif
f47ad16c 44#endif
293ea14e 45
35a37ee7
JB
46#undef rindex
47#undef index
6e23c83e 48
9ffaad2e
JB
49/* With this defined, a gcc-compiled Emacs crashed in realloc under AIX
50 3.2, and a cc-compiled Emacs works with this undefined.
51 --karl@cs.umb.edu. */
52#undef SYSTEM_MALLOC
f2ac12d5
KH
53
54/* For AIX, it turns out compiling emacs under AIX 3.2.4 REQUIRES "cc -g"
55 because "cc -O" crashes. Under AIX 3.2.5, "cc -O" is required because
56 "cc -g" crashes. Go figure. --floppy@merlin.mit.edu */
1a7c1bba 57/* See comments about this in aix3-2-5.h. -- fx */
f2ac12d5 58#ifndef __GNUC__
1a7c1bba 59#define C_DEBUG_SWITCH -g -O
f2ac12d5 60#endif
cb1d4a53
RS
61
62/* The character-composition stuff is broken in X11R5.
63 Even with XIMStatusNothing aliased to XIMStatusNone,
64 tranle@intellicorp.com (Minh Tran-Le) reports that enabling
65 the internationalization code causes the modifier keys C, M and Shift
66 to beep after a mouse click. */
67#define X11R5_INHIBIT_I18N
341989be
RS
68
69/* string.h defines rindex as a macro, at least with native cc, so we
70 lose declaring char * rindex without this.
71 It is just a guess which versions of AIX need this definition. */
72#undef HAVE_STRING_H
ab5796a9
MB
73
74/* arch-tag: 0935754d-67e1-4697-978a-3e9976da05c3
75 (do not change this comment) */