diff options
| author | Jim Blandy | 1993-06-10 06:05:05 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-10 06:05:05 +0000 |
| commit | d1ae7d261b893e5685e4b30f3e8aa19572f19286 (patch) | |
| tree | c817cf7c3782faa8e641777a4fd4b93674570358 /src | |
| parent | b86d694ea0ecc3b5e6c1f58bd5daf82e3e925aef (diff) | |
| download | emacs-d1ae7d261b893e5685e4b30f3e8aa19572f19286.tar.gz emacs-d1ae7d261b893e5685e4b30f3e8aa19572f19286.zip | |
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
(BSD4_4, SVR4, HAVE_SETSID, HAVE_UNIX_DOMAIN): #define these.
(FIRST_PTY_LETTER): This is 'r', not 'p'.
(HAVE_TERMIO, SIGNALS_VIA_CHARACTERS): Don't #define these.
(HAVE_TERMIOS): #define these instead.
(XREBINDKEYSYM): Don't #define.
Test THIS_IS_YMAKEFILE instead of MAKING_MAKEFILE.
(sigmask, sigpause): #undef these after #including <signal.h>.
(LD_SWITCH_SYSTEM, START_FILES, LIBS_SYSTEM, LIB_GCC): #define
these to avoid problems with /lib/crt0.o.
(C_DEBUG_SWITCH, C_OPTIMIZE_SWITCH): #define these.
Diffstat (limited to 'src')
| -rw-r--r-- | src/s/dgux.h | 61 |
1 files changed, 35 insertions, 26 deletions
diff --git a/src/s/dgux.h b/src/s/dgux.h index 2e6ac7a08a0..9f4e759f7ae 100644 --- a/src/s/dgux.h +++ b/src/s/dgux.h | |||
| @@ -32,13 +32,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 32 | /* #define BSD4_1 */ | 32 | /* #define BSD4_1 */ |
| 33 | #define BSD4_2 | 33 | #define BSD4_2 |
| 34 | #define BSD4_3 | 34 | #define BSD4_3 |
| 35 | #define BSD4_4 | ||
| 35 | #define BSD | 36 | #define BSD |
| 36 | /* #define VMS */ | 37 | #define SVR4 |
| 37 | 38 | ||
| 38 | /* SYSTEM_TYPE should indicate the kind of system you are using. | 39 | /* SYSTEM_TYPE should indicate the kind of system you are using. |
| 39 | It sets the Lisp variable system-type. */ | 40 | It sets the Lisp variable system-type. */ |
| 40 | 41 | ||
| 41 | #define SYSTEM_TYPE "berkeley-unix" | 42 | #define SYSTEM_TYPE "dgc-unix" |
| 42 | 43 | ||
| 43 | /* NOMULTIPLEJOBS should be defined if your system's shell | 44 | /* NOMULTIPLEJOBS should be defined if your system's shell |
| 44 | does not have "job control" (the ability to stop a program, | 45 | does not have "job control" (the ability to stop a program, |
| @@ -69,7 +70,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 69 | /* Letter to use in finding device name of first pty, | 70 | /* Letter to use in finding device name of first pty, |
| 70 | if system supports pty's. 'a' means it is /dev/ptya0 */ | 71 | if system supports pty's. 'a' means it is /dev/ptya0 */ |
| 71 | 72 | ||
| 72 | #define FIRST_PTY_LETTER 'r' | 73 | #define FIRST_PTY_LETTER 'p' |
| 73 | 74 | ||
| 74 | /* | 75 | /* |
| 75 | * Define HAVE_TIMEVAL if the system supports the BSD style clock values. | 76 | * Define HAVE_TIMEVAL if the system supports the BSD style clock values. |
| @@ -85,12 +86,22 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 85 | #define HAVE_SELECT | 86 | #define HAVE_SELECT |
| 86 | 87 | ||
| 87 | /* | 88 | /* |
| 89 | * Define HAVE_SETSID if the system supports POSIX disassociate | ||
| 90 | * terminal. | ||
| 91 | */ | ||
| 92 | #define HAVE_SETSID | ||
| 93 | /* | ||
| 88 | * Define HAVE_SOCKETS if the system supports sockets. | 94 | * Define HAVE_SOCKETS if the system supports sockets. |
| 89 | */ | 95 | */ |
| 90 | 96 | ||
| 91 | #define HAVE_SOCKETS | 97 | #define HAVE_SOCKETS |
| 92 | 98 | ||
| 93 | /* | 99 | /* |
| 100 | * Define HAVE_UNIX_DOMAIN if the system supports Unix | ||
| 101 | * domain sockets. | ||
| 102 | */ | ||
| 103 | #define HAVE_UNIX_DOMAIN | ||
| 104 | /* | ||
| 94 | * Define HAVE_PTYS if the system supports pty devices. | 105 | * Define HAVE_PTYS if the system supports pty devices. |
| 95 | */ | 106 | */ |
| 96 | 107 | ||
| @@ -216,24 +227,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 216 | #define TERMINFO | 227 | #define TERMINFO |
| 217 | 228 | ||
| 218 | /* | 229 | /* |
| 219 | * Define HAVE_TERMIO if the system provides sysV-style ioctls | 230 | * Define HAVE_TERMIOS since this is POSIX, |
| 220 | * for terminal control. | 231 | * for terminal control. |
| 221 | * DG/UX has both BSD and AT&T style ioctl's. Bsd ioctl's don't | ||
| 222 | * seem to wait for the output to drain properly, so use System V. | ||
| 223 | */ | ||
| 224 | |||
| 225 | #define HAVE_TERMIO | ||
| 226 | #define SIGNALS_VIA_CHARACTERS | ||
| 227 | |||
| 228 | /* | ||
| 229 | * DG/UX 4.10 needs the following to turn on berkeley ioctl's. | ||
| 230 | */ | 232 | */ |
| 231 | 233 | ||
| 232 | #ifndef HAVE_TERMIO | 234 | #define HAVE_TERMIOS |
| 233 | #ifndef _BSD_TTY_FLAVOR /* Already defined, in dgux 4.30. */ | ||
| 234 | #define _BSD_TTY_FLAVOR | ||
| 235 | #endif | ||
| 236 | #endif | ||
| 237 | 235 | ||
| 238 | /* | 236 | /* |
| 239 | * Use a Berkeley style sys/wait.h. | 237 | * Use a Berkeley style sys/wait.h. |
| @@ -242,11 +240,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 242 | 240 | ||
| 243 | #define _BSD_WAIT_FLAVOR | 241 | #define _BSD_WAIT_FLAVOR |
| 244 | 242 | ||
| 245 | /* Enable the x-rebind keysym function. Do not try to map function | ||
| 246 | keys internally. */ | ||
| 247 | |||
| 248 | #define XREBINDKEYSYM | ||
| 249 | |||
| 250 | /* | 243 | /* |
| 251 | * Use BSD and POSIX-style signals. This is crucial! | 244 | * Use BSD and POSIX-style signals. This is crucial! |
| 252 | */ | 245 | */ |
| @@ -255,13 +248,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 255 | #define SYSTEM_MALLOC | 248 | #define SYSTEM_MALLOC |
| 256 | 249 | ||
| 257 | /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */ | 250 | /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */ |
| 258 | #ifndef MAKING_MAKEFILE | 251 | #ifndef THIS_IS_YMAKEFILE |
| 259 | 252 | ||
| 260 | /* Make sure signal.h is included so macros below don't mess with it. */ | 253 | /* Make sure signal.h is included so macros below don't mess with it. */ |
| 261 | /* DG/UX include files prevent multiple inclusion. */ | 254 | /* DG/UX include files prevent multiple inclusion. */ |
| 262 | 255 | ||
| 263 | #include <signal.h> | 256 | #include <signal.h> |
| 264 | 257 | ||
| 258 | /* but undefine the sigmask and sigpause macros since they will get | ||
| 259 | #define'd later. */ | ||
| 260 | #undef sigmask | ||
| 261 | #undef sigpause | ||
| 262 | |||
| 265 | #define POSIX_SIGNALS | 263 | #define POSIX_SIGNALS |
| 266 | 264 | ||
| 267 | /* Define this if you use System 5 Release 4 Streams */ | 265 | /* Define this if you use System 5 Release 4 Streams */ |
| @@ -277,12 +275,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 277 | #define INTERRUPTIBLE_IO | 275 | #define INTERRUPTIBLE_IO |
| 278 | 276 | ||
| 279 | /* Can't use sys_signal because then etc/server.c would need sysdep.o. */ | 277 | /* Can't use sys_signal because then etc/server.c would need sysdep.o. */ |
| 278 | extern struct sigaction act, oact; | ||
| 280 | #define signal(SIG,FUNC) berk_signal(SIG,FUNC) | 279 | #define signal(SIG,FUNC) berk_signal(SIG,FUNC) |
| 281 | 280 | ||
| 282 | #else /* MAKING_MAKEFILE */ | 281 | #else /* THIS_IS_YMAKEFILE */ |
| 283 | /* force gcc to be used */ | 282 | /* force gcc to be used */ |
| 284 | CC=gcc | 283 | CC=gcc |
| 285 | #endif /* not MAKING_MAKEFILE */ | 284 | #endif /* not THIS_IS_YMAKEFILE */ |
| 285 | |||
| 286 | #define LD_SWITCH_SYSTEM | ||
| 287 | /* Cannot depend on /lib/crt0.o because make does not understand an elink(1) */ | ||
| 288 | #define START_FILES pre-crt0.o | ||
| 289 | #define LIBS_SYSTEM -ldgc /lib/crt0.o | ||
| 290 | #define LIB_GCC /usr/lib/gcc/libgcc.a | ||
| 286 | 291 | ||
| 287 | #ifdef _M88KBCS_TARGET | 292 | #ifdef _M88KBCS_TARGET |
| 288 | /* Karl Berry says: the environment | 293 | /* Karl Berry says: the environment |
| @@ -303,6 +308,7 @@ CC=gcc | |||
| 303 | #define MAKE_COMMAND \ | 308 | #define MAKE_COMMAND \ |
| 304 | TARGET_BINARY_INTERFACE=m88kdguxcoff make | 309 | TARGET_BINARY_INTERFACE=m88kdguxcoff make |
| 305 | 310 | ||
| 311 | #define C_DEBUG_SWITCH | ||
| 306 | #else /* not COFF */ | 312 | #else /* not COFF */ |
| 307 | 313 | ||
| 308 | #define C_COMPILER \ | 314 | #define C_COMPILER \ |
| @@ -314,4 +320,7 @@ CC=gcc | |||
| 314 | #define MAKE_COMMAND \ | 320 | #define MAKE_COMMAND \ |
| 315 | TARGET_BINARY_INTERFACE=m88kdguxelf make | 321 | TARGET_BINARY_INTERFACE=m88kdguxelf make |
| 316 | 322 | ||
| 323 | #define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard | ||
| 317 | #endif /* COFF */ | 324 | #endif /* COFF */ |
| 325 | /* Define switches affecting x/ymakefile */ | ||
| 326 | #define C_OPTIMIZE_SWITCH | ||