emacs on aix/370
Uri Blumenthal
uri at watson.ibm.com
Fri May 31 09:23:10 AEST 1991
In article <1991May24.201529.27151 at bnlux1.bnl.gov>, emc at max.bnl.gov (Edward Joseph McFadden Jr) writes:
|> I will be trying to install emacs on aix/370 next week. Looking at the Install
|> guide it points my attention to config.h and MACHINES. I only see examples
|> for the PS2, RS6000 and the RT. Who has installed emacs on the 370 and what
|> options did you select? Thanks & Cheers emc at ax1.bnl.gov
Well, since I have it up for a while - here are the config files. I don't
remember whwther I needed to edit any *.c files - so feel free to test it. (:-)
But beware - some of the bugs are copyrighted by me (:-). Anyway, it was tested
on AIX/370 1.2 and AIX/370 1.2.1 (the files "config.h", "s-aix370.h" and
"m-ibm3090.h" are for AIX/370 1.2.1 - the difference between 1.2 and 1.2.1
shouldn't affect you, I think).
====== config.h ===============cut here=============
/* GNU Emacs site configuration template file.
Copyright (C) 1988 Free Software Foundation, Inc.
Copyright (C) 1991 IBM Corp. (Uri Blunenthal)
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 1, 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, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Include here a s- file that describes the system type you are using.
See the file ../etc/MACHINES for a list of systems and
the names of the s- files to use for them.
See s-template.h for documentation on writing s- files. */
#include "s-aix370.h"
/* Include here a m- file that describes the machine and system you use.
See the file ../etc/MACHINES for a list of machines and
the names of the m- files to use for them.
See m-template.h for info on what m- files should define.
*/
#include "m-ibm3090.h"
/* Load in the conversion definitions if this system
needs them and the source file being compiled has not
said to inhibit this. There should be no need for you
to alter these lines. */
#ifdef SHORTNAMES
#ifndef NO_SHORTNAMES
#include "../shortnames/remap.h"
#endif /* not NO_SHORTNAMES */
#endif /* SHORTNAMES */
/* Define HAVE_X_WINDOWS if you want to use the X window system. */
#define HAVE_X_WINDOWS
/* Define X11 if you want to use version 11 of X windows.
Otherwise, Emacs expects to use version 10. */
#define X11
/* Define HAVE_X_MENU if you want to use the X window menu system.
This appears to work on some machines that support X
and not on others. */
#define HAVE_X_MENU
/* Define `subprocesses' should be defined if you want to
have code for asynchronous subprocesses
(as used in M-x compile and M-x shell).
These do not work for some USG systems yet;
for the ones where they work, the s-*.h file defines this flag. */
#ifndef VMS
#ifndef USG
#define subprocesses
#endif
#endif
/* Define USER_FULL_NAME to return a string
that is the user's full name.
It can assume that the variable `pw'
points to the password file entry for this user.
At some sites, the pw_gecos field contains
the user's full name. If neither this nor any other
field contains the right thing, use pw_name,
giving the user's login name, since that is better than nothing. */
#define USER_FULL_NAME pw->pw_comment
/* Define AMPERSAND_FULL_NAME if you use the convention
that & in the full name stands for the login id. */
/* #define AMPERSAND_FULL_NAME */
/* # bytes of pure Lisp code to leave space for.
Note that s-vms.h and m-sun2.h may override this default. */
#ifndef PURESIZE
#ifdef HAVE_X_WINDOWS
#define PURESIZE 122000
#else
#define PURESIZE 119000
#endif
#endif
/* Define HIGHPRI as a negative number
if you want Emacs to run at a higher than normal priority.
For this to take effect, you must install Emacs with setuid root.
Emacs will change back to the users's own uid after setting
its priority. */
/* #define HIGHPRI */
==================== s-aix370.h ==================cut here==========
/* Definitions file for GNU Emacs running on IBM AIX/370 Operating System
Copyright (C) 1985, 1986 Free Software Foundation, Inc.
Copyright (C) 1991 IBM Corp. (Uri Blumenthal)
This file is part of GNU Emacs.
GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY. No author or distributor
accepts responsibility to anyone for the consequences of using it
or for whether it serves any particular purpose or works at all,
unless he says so in writing. Refer to the GNU Emacs General Public
License for full details.
Everyone is granted permission to copy, modify and redistribute
GNU Emacs, but only under the conditions described in the
GNU Emacs General Public License. A copy of this license is
supposed to have been given to you along with GNU Emacs so you
can know your rights and responsibilities. It should be in a
file named COPYING. Among other things, the copyright notice
and this notice must be preserved on all copies. */
/*
* Define symbols to identify the version of Unix this is.
* Define all the symbols that apply correctly.
*/
#define USG /* System III, System V, etc */
#define USG5
#define AIX 1
#define AIX370 1
#define IBMAIX370 1
/* SYSTEM_TYPE should indicate the kind of system you are using.
It sets the Lisp variable system-type. */
/* #define SYSTEM_TYPE "usg-unix-v" */
#define SYSTEM_TYPE "AIX/370"
/* nomultiplejobs should be defined if your system's shell
does not have "job control" (the ability to stop a program,
run some other program, then continue the first one). */
#define NOMULTIPLEJOBS
/* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
/* #define INTERRUPT_INPUT */
/* Letter to use in finding device name of first pty,
if system supports pty's. 'p' means it is /dev/ptyp0 */
#define FIRST_PTY_LETTER 'p'
/*
* Define HAVE_TERMIO if the system provides sysV-style ioctls
* for terminal control.
*/
#define HAVE_TERMIO
/*
* Define HAVE_TIMEVAL if the system supports the BSD style clock values.
* Look in <sys/time.h> for a timeval structure.
*/
#define HAVE_TIMEVAL
/*
* Define HAVE_SELECT if the system supports the `select' system call.
*/
/* #define HAVE_SELECT
/*
* Define HAVE_PTYS if the system supports pty devices.
*/
#define HAVE_PTYS
/* #define SYSV_PTYS */
/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
#define HAVE_SOCKETS
/*
* Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
* The 4.2 opendir, etc., library functions.
*/
/* #define NONSYSTEM_DIR_LIBRARY */
/* Define this symbol if your system has the functions bcopy, etc. */
/* #define BSTRING */
/* subprocesses should be defined if you want to
have code for asynchronous subprocesses
(as used in M-x compile and M-x shell).
This is supposed to work now on system V release 2. */
#define subprocesses
/* If your system uses COFF (Common Object File Format) then define the
preprocessor symbol "COFF". */
#define COFF
/* define MAIL_USE_FLOCK if the mailer uses flock
to interlock access to /usr/spool/mail/$USER.
The alternative is that a lock file named
/usr/spool/mail/$USER.lock. */
#define MAIL_USE_FLOCK
/* Define CLASH_DETECTION if you want lock files to be written
so that Emacs can tell instantly when you try to modify
a file that someone else has modified in his Emacs. */
#define CLASH_DETECTION
/* Define SHORTNAMES if the C compiler can distinguish only
short names. It means that the stuff in ../shortnames
must be run to convert the long names to short ones. */
/* #define SHORTNAMES */
/* We use the Berkeley (and usg5.2.2) interface to nlist. */
#define NLIST_STRUCT
/* The file containing the kernel's symbol table is called /unix. */
#define KERNEL_FILE "/unix"
/* The symbol in the kernel where the load average is found
is named avenrun. */
#define LDAV_SYMBOL "avenrun"
/* Special hacks needed to make Emacs run on this system. */
/*
* Make the sigsetmask function go away. Don't know what the
* ramifications of this are, but doesn't seem possible to
* emulate it properly anyway at this point.
*/
/* #define sigsetmask(mask) /* Null expansion */
/* setjmp and longjmp can safely replace _setjmp and _longjmp,
but they will run slower. */
#define _setjmp setjmp
#define _longjmp longjmp
/* On USG systems the system calls are interruptable by signals
that the user program has elected to catch. Thus the system call
must be retried in these cases. To handle this without massive
changes in the source code, we remap the standard system call names
to names for our own functions in sysdep.c that do the system call
with retries. */
#define read sys_read
#define open sys_open
#define write sys_write
#define INTERRUPTABLE_OPEN
#define INTERRUPTABLE_IO
/* On USG systems these have different names */
#define index strchr
#define rindex strrchr
/* USG systems tend to put everything declared static
into the initialized data area, which becomes pure after dumping Emacs.
Foil this. Emacs carefully avoids static vars inside functions. */
#define static
/* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
#define ADDR_CORRECT(x) (x)
/* Prevent -lg from being used for debugging. Not implemented? */
#define LIBS_DEBUG
/* Prevent erroneous C-compiler from using -g flag (and screwing up) */
#define C_DEBUG_SWITCH
/* Use terminfo instead of termcap. */
#define TERMINFO
#define LINKER cc
#define START_FILES /lib/crt0.o
#define LIB_STANDARD
#define LIBS_DEBUG
============ m-ibm3090.h ==============cut here===================
/* m-ibm3090-aix file
Copyright (C) 1987 Free Software Foundation, Inc.
Copyright (C) 1991 IBM Corp.
This file is part of GNU Emacs.
GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY. No author or distributor
accepts responsibility to anyone for the consequences of using it
or for whether it serves any particular purpose or works at all,
unless he says so in writing. Refer to the GNU Emacs General Public
License for full details.
Everyone is granted permission to copy, modify and redistribute
GNU Emacs, but only under the conditions described in the
GNU Emacs General Public License. A copy of this license is
supposed to have been given to you along with GNU Emacs so you
can know your rights and responsibilities. It should be in a
file named COPYING. Among other things, the copyright notice
and this notice must be preserved on all copies. */
/*
Use s-aix370.h with this file.
Uri Blumenthal, 12/18/89
*/
/* The following three symbols give information on
the size of various data types. */
#define SHORTBITS 16 /* Number of bits in a short */
#define INTBITS 32 /* Number of bits in an int */
#define LONGBITS 32 /* Number of bits in a long */
/* Define BIG_ENDIAN iff lowest-numbered byte in a word
is the most significant byte. */
#define BIG_ENDIAN
/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
* group of arguments and treat it as an array of the arguments. */
#define NO_ARG_ARRAY
/* Define WORD_MACHINE if addresses and such have
* to be corrected before they can be used as byte counts. */
/* #define WORD_MACHINE /* not actually used anywhere yet! */
/* Define how to take a char and sign-extend into an int.
On machines where char is signed, this is a no-op. */
/* #define SIGN_EXTEND_CHAR(c) ((int)(((sign_extend_temp=(c)) & 0x80) \
? (sign_extend_temp | 0xFFFFFF00) \
: (sign_extend_temp)))
*/
#define SIGN_EXTEND_CHAR(c) ((((int) (c)) <<24) >> 24)
/* The usual definition of XINT, which involves shifting, does not
sign-extend properly on this machine. */
/* #define XINT(i) (((sign_extend_temp=(i)) & 0x00800000) \
? (sign_extend_temp | 0xFF000000) \
: (sign_extend_temp & 0x00FFFFFF))
*/
#define XINT(a) ((int) ((((a) & 0x00ffffff) ^ 0x00800000) - 0x00800000))
/* Now define a symbol for the cpu type, if your compiler
does not define it automatically:
vax, m68000, ns16000, pyramid, orion, tahoe and APOLLO
are the ones defined so far. */
#define aix
#define b370
#define AIX 1
#define AIX370 1
#define IBMAIX370 1
/* Use type int rather than a union, to represent Lisp_Object */
/* This is desirable for most machines. */
#define NO_UNION_TYPE
/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
the 24-bit bit field into an int. In other words, if bit fields
are always unsigned.
If you use NO_UNION_TYPE, this flag does not matter. */
#define EXPLICIT_SIGN_EXTEND
/* Data type of load average, as read out of kmem. */
/* #define DOT_GLOBAL_START */
/* #define LOAD_AVE_TYPE long*/
/* Convert that into an integer that is 100 for a load average of 1.0 */
/*#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0)*/
/* Define CANNOT_DUMP on machines where unexec does not work.
Then the function dump-emacs will not be defined
and temacs will do (load "loadup") automatically unless told otherwise. */
#define CANNOT_DUMP
/* Define VIRT_ADDR_VARIES if the virtual addresses of
pure and impure space as loaded can vary, and even their
relative order cannot be relied on.
Otherwise Emacs assumes that text space precedes data space,
numerically. */
/* #define VIRT_ADDR_VARIES*/
/* Define C_ALLOCA if this machine does not support a true alloca
and the one written in C should be used instead.
Define HAVE_ALLOCA to say that the system provides a properly
working alloca function and it should be used.
Define neither one if an assembler-language alloca
in the file alloca.s should be used. */
#define C_ALLOCA
#define HAVE_DUP2
#define HAVE_GETTIMEOFDAY
#define HAVE_SELECT
#define HAVE_TIMEVAL
/* #define HAVE_VFORK */
#define USE_UTIME
#define SYSV_SYSTEM_DIR
#define HAVE_CLOSEDIR
#undef NONSYSTEM_DIR_LIBRARY
#undef BROKEN_FIONREAD
#ifndef LIB_STANDARD
#define LIB_STANDARD -lc
#endif /* LIB_STANDARD */
/* Define NO_REMAP if memory segmentation makes it not work well
to change the boundary between the text section and data section
when Emacs is dumped. If you define this, the preloaded Lisp
code will not be sharable; but that's better than failing completely. */
#define NO_REMAP
/* #define SEGMENT_MASK 0 */
#define DATA_START 0x200000
#define TEXT_START 0x100000
#define DATA_SECTION_ALIGNMENT 0x00000fff
#define TERMINFO
#ifdef emacs /* Don't do this when making xmakefile! */
extern int sign_extend_temp;
#endif
/* The following needed to load the proper crt0.o and to get the
proper declaration of data_start in the #undef NO_REMAP case */
#ifndef NO_REMAP
#ifndef START_FILES
#define START_FILES pre-crt0.o /lib/crt0.o
#endif /* START_FILES */
#endif
/* Perhaps this means that the optimizer isn't safe to use. */
#define C_OPTIMIZE_SWITCH -O
#define C_SWITCH_MACHINE -Hxa -D_BSD
#ifndef LIBS_MACHINE
#define LIBS_MACHINE
#endif /* LIBS_MACHINE */
/* Put text and data on non-segment boundary; makes image smaller */
#ifndef LD_SWITCH_MACHINE
#define LD_SWITCH_MACHINE -xa
#endif /* LD_SWITCH_MACHINE */
/* When writing the 'xemacs' file, make text segment ro */
/* #define EXEC_MAGIC 0410 */
/* Mask for address bits within a memory segment */
/* #define SEGSIZ 0x10000 /* Should this not be defined elsewhere ? */
/* #define SEGMENT_MASK (SEGSIZ - 1) */
/* Tell alloca.c which direction stack grows. */
#define STACK_DIRECTION -1
/* Compensate for error in signal.h. */
===========================================cut here============
Enjoy!
--
Regards,
Uri Blumenthal uri at watson.ibm.com, uunet!angmar!uri
======================================================
<Disclaimer>
More information about the Comp.unix.aix
mailing list