home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / ibmrs6000.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-04  |  4.5 KB  |  140 lines

  1. /* R2 AIX machine/system dependent defines
  2.    Copyright (C) 1988 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /* The following line tells the configuration script what sort of 
  23.    operating system this machine is likely to run.
  24.    USUAL-OPSYS="aix3-1"  */
  25.  
  26. /* Now define a symbol for the cpu type, if your compiler
  27.    does not define it automatically.  */
  28.  
  29. #define IBMR2AIX
  30.  
  31. /* Use type int rather than a union, to represent Lisp_Object */
  32. /* This is desirable for most machines.     */
  33.  
  34. #define NO_UNION_TYPE
  35.  
  36. /* Define CANNOT_DUMP on machines where unexec does not work.
  37.    Then the function dump-emacs will not be defined
  38.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  39. /* #define CANNOT_DUMP */
  40.  
  41. #define UNEXEC unexaix.o
  42.  
  43. /* Define addresses, macros, change some setup for dump */
  44.  
  45. #define NO_REMAP
  46.  
  47. #define TEXT_START 0x10000000
  48. #define TEXT_END 0
  49. #define DATA_START 0x20000000
  50. #define DATA_END 0
  51.  
  52. /* The data segment in this machine always starts at address 0x20000000.
  53.    An address of data cannot be stored correctly in a Lisp object;
  54.    we always lose the high bits.  We must tell XPNTR to add them back.    */
  55.  
  56. #define DATA_SEG_BITS 0x20000000
  57.  
  58. #ifdef CANNOT_DUMP
  59. /* Define shared memory segment symbols */
  60.  
  61. #define PURE_SEG_BITS 0x30000000
  62.  
  63. /* Use shared memory.  */
  64. /* This is turned off because it does not always work.    See etc/AIX.DUMP.  */
  65. /* #define HAVE_SHM */
  66. #define SHMKEY 5305035        /* used for shared memory code segments */
  67. #endif /* CANNOT_DUMP */
  68.  
  69. #define N_BADMAG(x) BADMAG(x)
  70. #define N_TXTOFF(x) A_TEXTPOS(x)
  71. #define N_SYMOFF(x) A_SYMPOS(x)
  72. #define A_TEXT_OFFSET(HDR) sizeof(HDR)
  73. /* #define ADJUST_EXEC_HEADER \
  74.     unexec_text_start += sizeof(hdr); \
  75.     unexec_data_start = ohdr.a_dbase
  76. */
  77. #undef ADDR_CORRECT
  78. #define ADDR_CORRECT(x) ((int)(x))
  79.  
  80. /* Define C_ALLOCA if this machine does not support a true alloca
  81.    and the one written in C should be used instead.
  82.    Define HAVE_ALLOCA to say that the system provides a properly
  83.    working alloca function and it should be used.
  84.    Define neither one if an assembler-language alloca
  85.    in the file alloca.s should be used.     */
  86.  
  87. /* Note: aix3-2.h defines HAVE_ALLOCA; aix3-1.h doesn't.  */
  88. #ifndef HAVE_ALLOCA
  89. #define C_ALLOCA
  90. #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */
  91. #endif
  92.  
  93. /* Specify the font for X to use.
  94.    This used to be Rom14.500; that's nice on the X server shipped with
  95.    the RS/6000, but it's not available on other servers.  */
  96. #define X_DEFAULT_FONT "fixed"
  97.  
  98. /* Here override various assumptions in ymakefile */
  99.  
  100. #ifdef AIXHFT
  101. #define OBJECTS_MACHINE hftctl.o
  102. #endif
  103.  
  104. /* XEmacs change -- commented out: dkeller@vnet.ibm.com */
  105. /* #define C_SWITCH_MACHINE -D_BSD */
  106.  
  107. #ifdef AIX3_2
  108. /* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless
  109.    on older versions of X where it happens to exist.  */
  110. #ifdef HAVE_LIBPTHREADS
  111. #define LIBS_MACHINE -lrts -lIM -liconv -lpthreads
  112. #else
  113. /* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2.  */
  114. #define LIBS_MACHINE -lrts -lIM -liconv
  115. #endif
  116. #else
  117. #define LIBS_MACHINE -lIM
  118. #endif
  119.  
  120. #define START_FILES
  121.  
  122. /* Don't try to include sioctl.h or ptem.h.  */
  123. #undef NEED_SIOCTL
  124. #undef NEED_PTEM_H
  125.  
  126. #define ORDINARY_LINK
  127.  
  128. /* XEmacs change -- automatically add the correct path for smt.exp if
  129.    it exists. */
  130. /* marc@sti.com (Marc Pawliger) says ibmrs6000.inp is needed to avoid
  131.    linker error for updated X11R5 libraries, which references pthread library
  132.    which most machines don't have.  We use the name .inp instead of .imp
  133.    because .inp is a better convention to use in make-dist for naming
  134.    random input files.  */
  135. #ifdef AIX_SMT_EXP
  136. #define LD_SWITCH_MACHINE -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp,-bI:AIX_SMT_EXP
  137. #else
  138. #define LD_SWITCH_MACHINE -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp
  139. #endif
  140.