1/* R2 AIX machine/system dependent defines 2 Copyright (C) 1988, 2001, 2002, 2003, 2004, 2005, 3 2006, 2007 Free Software Foundation, Inc. 4 5This file is part of GNU Emacs. 6 7GNU Emacs is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2, or (at your option) 10any later version. 11 12GNU Emacs is distributed in the hope that it will be useful, 13but WITHOUT ANY WARRANTY; without even the implied warranty of 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15GNU General Public License for more details. 16 17You should have received a copy of the GNU General Public License 18along with GNU Emacs; see the file COPYING. If not, write to 19the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20Boston, MA 02110-1301, USA. */ 21 22 23/* The following line tells the configuration script what sort of 24 operating system this machine is likely to run. 25 USUAL-OPSYS="aix3-1" */ 26 27/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word 28 is the most significant byte. */ 29 30#ifdef USG5_4 31#undef WORDS_BIG_ENDIAN 32#else 33#define WORDS_BIG_ENDIAN 34#endif 35 36/* Define NO_ARG_ARRAY if you cannot take the address of the first of a 37 * group of arguments and treat it as an array of the arguments. */ 38 39#define NO_ARG_ARRAY 40 41/* Now define a symbol for the cpu type, if your compiler 42 does not define it automatically. */ 43 44#define IBMR2AIX 45 46/* Use type int rather than a union, to represent Lisp_Object */ 47/* This is desirable for most machines. */ 48 49#define NO_UNION_TYPE 50 51/* Define CANNOT_DUMP on machines where unexec does not work. 52 Then the function dump-emacs will not be defined 53 and temacs will do (load "loadup") automatically unless told otherwise. */ 54#ifdef USG5_4 55#define CANNOT_DUMP 56#endif 57 58#ifndef UNEXEC 59#define UNEXEC unexaix.o 60#endif 61 62/* Define addresses, macros, change some setup for dump */ 63 64#define NO_REMAP 65 66#ifndef USG5_4 67#define TEXT_START 0x10000000 68#define TEXT_END 0 69#define DATA_START 0x20000000 70#define DATA_END 0 71#endif 72 73/* The data segment in this machine always starts at address 0x20000000. 74 An address of data cannot be stored correctly in a Lisp object; 75 we always lose the high bits. We must tell XPNTR to add them back. */ 76 77#ifndef USG5_4 78#define DATA_SEG_BITS 0x20000000 79#else 80#define DATA_SEG_BITS 0 81#endif 82 83#ifdef CANNOT_DUMP 84/* Define shared memory segment symbols */ 85 86#define PURE_SEG_BITS 0x30000000 87 88/* Use shared memory. */ 89/* This is turned off because it does not always work. See etc/AIX.DUMP. */ 90/* #define HAVE_SHM */ 91#define SHMKEY 5305035 /* used for shared memory code segments */ 92#endif /* CANNOT_DUMP */ 93 94#define N_BADMAG(x) BADMAG(x) 95#define N_TXTOFF(x) A_TEXTPOS(x) 96#define N_SYMOFF(x) A_SYMPOS(x) 97#define A_TEXT_OFFSET(HDR) sizeof(HDR) 98/* #define ADJUST_EXEC_HEADER \ 99 unexec_text_start += sizeof(hdr); \ 100 unexec_data_start = ohdr.a_dbase 101*/ 102#undef ADDR_CORRECT 103#define ADDR_CORRECT(x) ((int)(x)) 104 105/* Specify the font for X to use. 106 This used to be Rom14.500; that's nice on the X server shipped with 107 the RS/6000, but it's not available on other servers. */ 108#define X_DEFAULT_FONT "fixed" 109 110/* Here override various assumptions in ymakefile */ 111 112#ifdef AIXHFT 113#define OBJECTS_MACHINE hftctl.o 114#endif 115 116#ifndef USG5 117#define C_SWITCH_MACHINE -D_BSD 118#endif 119 120#ifdef AIX3_2 121/* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless 122 on older versions of X where it happens to exist. */ 123#ifdef HAVE_LIBPTHREADS 124#define LIBS_MACHINE -lrts -lIM -liconv -lpthreads 125#else 126/* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2. */ 127#define LIBS_MACHINE -lrts -lIM -liconv 128#endif 129#else 130#ifdef USG5_4 131#define LIBS_MACHINE 132#else 133#define LIBS_MACHINE -lIM 134#endif 135#endif 136 137#define START_FILES 138#define HAVE_SYSVIPC 139/*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/ 140#define BROKEN_FIONREAD 141/* As we define BROKEN_FIONREAD, SIGIO will be undefined in systty.h. 142 But, on AIX, SIGAIO, SIGPTY, and SIGPOLL are defined as SIGIO, 143 which causes compilation error at init_signals in sysdep.c. So, we 144 define these macros so that syssignal.h detects them and undefine 145 SIGAIO, SIGPTY and SIGPOLL. */ 146#define BROKEN_SIGAIO 147#define BROKEN_SIGPTY 148#define BROKEN_SIGPOLL 149 150/* Don't try to include sioctl.h or ptem.h. */ 151#undef NEED_SIOCTL 152#undef NEED_PTEM_H 153 154#define ORDINARY_LINK 155 156#ifndef USG5_4 157/* sfreed@unm.edu says add -bI:/usr/lpp/X11/bin/smt.exp for AIX 3.2.4. */ 158/* marc@sti.com (Marc Pawliger) says ibmrs6000.inp is needed to avoid 159 linker error for updated X11R5 libraries, which references pthread library 160 which most machines don't have. We use the name .inp instead of .imp 161 because .inp is a better convention to use in make-dist for naming 162 random input files. */ 163#ifdef THIS_IS_MAKEFILE /* Don't use this in configure. */ 164#ifdef AIX4 165#define LD_SWITCH_MACHINE -Wl,-bnodelcsect 166#else /* not AIX4 */ 167#ifdef HAVE_AIX_SMT_EXP 168#define LD_SWITCH_MACHINE -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp,-bI:/usr/lpp/X11/bin/smt.exp 169#else 170#define LD_SWITCH_MACHINE -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp 171#endif 172#endif /* not AIX4 */ 173#endif /* THIS_IS_MAKEFILE */ 174 175/* Avoid gcc 2.7.x collect2 bug by using /bin/ld instead. */ 176#if __GNUC__ == 2 && __GNUC_MINOR__ == 7 177#define LD_SWITCH_SITE -B/bin/ 178#endif 179 180#ifndef NLIST_STRUCT 181/* AIX supposedly doesn't use this interface, but on the RS/6000 182 it apparently does. */ 183#define NLIST_STRUCT 184#endif 185#endif /* USG5_4 */ 186 187/* arch-tag: 028318ee-a7ae-4a08-804d-cc1e6588d003 188 (do not change this comment) */ 189