aix3-2.h 2.51 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/* s- file for building Emacs on AIX 3.2.

   Copyright (C) 1999, 2001, 2002, 2003, 2004,
                 2005, 2006, 2007  Free Software Foundation, Inc.

This file is part of GNU Emacs.

GNU Emacs is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Emacs; see the file COPYING.  If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.  */

Jim Blandy's avatar
Jim Blandy committed
23 24 25

#include "aix3-1.h"

Richard M. Stallman's avatar
Richard M. Stallman committed
26 27
#define AIX3_2

Jim Blandy's avatar
Jim Blandy committed
28 29 30 31
/* No need to define this--the header files indicate X11R4,
   and that's supposedly what 3.2 will come with.  */
#undef SPECIFY_X11R4

32
#ifndef __GNUC__
33 34 35 36
/* Some programs in src produce warnings saying certain subprograms
   are to comples and need a MAXMEM value greater than 2000 for
   additional optimization.  --nils@exp-math.uni-essen.de */
#define C_SWITCH_SYSTEM -ma -qmaxmem=4000
37
#endif
Richard M. Stallman's avatar
Richard M. Stallman committed
38

Richard M. Stallman's avatar
Richard M. Stallman committed
39
/* Adrian Colley <Adrian.Colley@three.serpentine.com> says this is needed.  */
Richard M. Stallman's avatar
Richard M. Stallman committed
40
#ifndef NOT_C_CODE
41
#ifndef AIX4
Richard M. Stallman's avatar
Richard M. Stallman committed
42 43
 #pragma alloca
#endif
44
#endif
Richard M. Stallman's avatar
Richard M. Stallman committed
45

Jim Blandy's avatar
Jim Blandy committed
46 47
#undef rindex
#undef index
48

49 50 51 52
/* With this defined, a gcc-compiled Emacs crashed in realloc under AIX
   3.2, and a cc-compiled Emacs works with this undefined.
   --karl@cs.umb.edu.  */
#undef SYSTEM_MALLOC
Karl Heuer's avatar
Karl Heuer committed
53 54 55 56

/* For AIX, it turns out compiling emacs under AIX 3.2.4 REQUIRES "cc -g"
   because "cc -O" crashes. Under AIX 3.2.5, "cc -O" is required because
   "cc -g" crashes. Go figure.  --floppy@merlin.mit.edu */
Dave Love's avatar
Dave Love committed
57
/* See comments about this in aix3-2-5.h.  -- fx */
Karl Heuer's avatar
Karl Heuer committed
58
#ifndef __GNUC__
Dave Love's avatar
Dave Love committed
59
#define C_DEBUG_SWITCH -g -O
Karl Heuer's avatar
Karl Heuer committed
60
#endif
61 62 63 64 65 66 67

/* The character-composition stuff is broken in X11R5.
   Even with XIMStatusNothing aliased to XIMStatusNone,
   tranle@intellicorp.com (Minh Tran-Le) reports that enabling
   the internationalization code causes the modifier keys C, M and Shift
   to beep after a mouse click.  */
#define X11R5_INHIBIT_I18N
68 69 70 71 72

/* string.h defines rindex as a macro, at least with native cc, so we
   lose declaring char * rindex without this.
   It is just a guess which versions of AIX need this definition.  */
#undef HAVE_STRING_H
Miles Bader's avatar
Miles Bader committed
73 74 75

/* arch-tag: 0935754d-67e1-4697-978a-3e9976da05c3
   (do not change this comment) */