Switch license to GPLv3 or later.
[bpt/emacs.git] / src / s / aix3-2.h
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
6 This file is part of GNU Emacs.
7
8 GNU Emacs is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
12
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
22
23
24 #include "aix3-1.h"
25
26 #define AIX3_2
27
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
32 #ifndef __GNUC__
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
37 #endif
38
39 /* Adrian Colley <Adrian.Colley@three.serpentine.com> says this is needed. */
40 #ifndef NOT_C_CODE
41 #ifndef AIX4
42 #pragma alloca
43 #endif
44 #endif
45
46 #undef rindex
47 #undef index
48
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
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 */
57 /* See comments about this in aix3-2-5.h. -- fx */
58 #ifndef __GNUC__
59 #define C_DEBUG_SWITCH -g -O
60 #endif
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
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
73
74 /* arch-tag: 0935754d-67e1-4697-978a-3e9976da05c3
75 (do not change this comment) */