Comment change.
[bpt/emacs.git] / src / s / sco4.h
CommitLineData
1c71e0ff 1/* System description file for SCO 3.2v4.
3a22ee35 2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
1c71e0ff
JB
3
4This file is part of GNU Emacs.
5
6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20/* Contributed by Ian Lance Taylor, ian@cygnus.com. */
21
22/* SCO is sort of like SVR3. */
23#include "usg5-3.h"
d5283a4c 24#define SCO_R4
1c71e0ff 25
b7e4bce2
RS
26#if 0 /* Turned off rather than make the Lisp code check for this. -- rms.
27 I am assuming that (at least most of) the tests for usg-unix-v
28 do the right thing for sco3.2v4 also. Things that *might* be wrong
29 as a result of turning off these lines include the values of
30 ange-ftp-remote-shell-file-name (now remsh)
31 dired-chown-program (now just chown)
32 lpr-command (now lp)
33 nntp-buggy-select (now t)
34 rmail-spool-directory (now /usr/mail?)
35 and the actions of the function print-region-1. */
36
1c71e0ff
JB
37/* SYSTEM_TYPE should indicate the kind of system you are using. */
38#undef SYSTEM_TYPE
39#define SYSTEM_TYPE "SCO 3.2v4"
b7e4bce2 40#endif
1c71e0ff
JB
41
42/* SCO supports job control. */
43#undef NOMULTIPLEJOBS
44
45/* SCO has termios. */
46#define HAVE_TERMIOS
47
1c71e0ff
JB
48/* SCO has ptys with unusual names. */
49#define HAVE_PTYS
50
0df1099d
RS
51#define PTY_ITERATION \
52 for (i = 0; ; i++)
1c71e0ff 53#define PTY_NAME_SPRINTF \
0df1099d 54 sprintf (pty_name, "/dev/ptyp%d", i);
1c71e0ff 55#define PTY_TTY_NAME_SPRINTF \
0df1099d 56 sprintf (pty_name, "/dev/ttyp%d", i);
1c71e0ff 57
0df1099d
RS
58/* Sockets are an option on SCO. If you have X, you have them.
59 They also exist if you have TCP, but we don't know how to test
60 for that. */
1c71e0ff
JB
61#ifdef HAVE_X_WINDOWS
62#define HAVE_SOCKETS
63#endif
64
635389e4
RS
65/* Must use 'cc' to link when build with motif toolkit. */
66#ifndef __GNUC__
67#define LINKER cc
68#endif
69
ec9d0f50
RS
70/* This is safe since we already assumed HAVE_SOCKET
71 if using X windows. */
72#undef LIBX11_SYSTEM
73#define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc_s -lsocket
74
fea0b06d
RS
75#ifdef HAVE_INET_SOCKETS /* This comes from autoconf. */
76#define HAVE_SOCKETS
77#endif
78
1c71e0ff 79#ifdef HAVE_SOCKETS
0952210a 80#define LIBS_SYSTEM -lsocket -lPW
0df1099d
RS
81
82/* SCO has gettimeofday in socket library */
5f5783ce
RS
83/* Autoconf should determine this, but for now,
84 play safe to avoid error rather than deleting this
85 and risking the wrong result. */
86#ifndef HAVE_GETTIMEOFDAY
0df1099d 87#define HAVE_GETTIMEOFDAY
1c71e0ff 88#endif
5f5783ce 89#endif
1c71e0ff 90
0952210a
RS
91/* This enables configure to tell that we have alloca. */
92#ifndef LIBS_SYSTEM
93#define LIBS_SYSTEM -lPW
94#endif
95
cd23c8db
RS
96#ifdef HAVE_X11R5
97/* configure can't get this right linking fails unless -lsocket is used. */
98#undef HAVE_XSCREENNUMBEROFSCREEN
99#define HAVE_XSCREENNUMBEROFSCREEN
100#endif
101
1c71e0ff
JB
102/* We don't have -loldX, and we don't need it. */
103#define LIB_XMENU_LIB
104
105/* SCO does have TIOCGWINSZ. */
106#undef BROKEN_TIOCGWINSZ
107#define NEED_PTEM_H
108
1c71e0ff
JB
109/* We need to link with crt1.o and crtn.o. */
110#define START_FILES pre-crt0.o /lib/crt1.o
111#define LIB_STANDARD -lc /lib/crtn.o
0df1099d
RS
112
113/* Send signals to subprocesses by "typing" signal chars at them. */
114#define SIGNALS_VIA_CHARACTERS
115
116/* Specify program for etc/fakemail to run. Define SMAIL if you are
117 using smail, don't for MMDF. */
118
119#ifdef SMAIL
120#define MAIL_PROGRAM_NAME "/bin/smail -q0"
121#else
122#define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
123#endif
63456da5
RS
124
125/* miano@acosta.enet.dec.com says these are needed. */
126#define bcopy(b1,b2,len) memmove (b2, b1, len)
127#define bzero(b,len) memset (b, 0, len)
128#define bcmp(b1,b2,len) memcmp (b1, b2, len)
882d8079
RS
129
130/* Tell process_send_signal to use VSUSP instead of VSWTCH. */
131#define PREFER_VSUSP
88f7cc60
RS
132
133/* wjs@wang.com (William Smith) says this is needed on 3.2.4.2. */
134#define POSIX_SIGNALS
bf47de8e
RS
135
136/* wjs@wiis.wang.com says SCO 3.2 v4.2 "has sockets",
137 but only for network connections.
138 It doesn't have the kind of sockets that emacsclient.c
139 and emacsserver.c would use. */
140#define NO_SOCKETS_IN_FILE_SYSTEM