Merge remote-tracking branch 'origin/master' into for-steve
[sxemacs] / src / s / sco4.h
1 /* System description file for SCO 3.2v4.
2    Copyright (C) 1993, 1994 Free Software Foundation, Inc.
3
4 This file is part of SXEmacs
5
6 SXEmacs 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 3 of the License, or
9 (at your option) any later version.
10
11 SXEmacs 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 this program.  If not, see <http://www.gnu.org/licenses/>. */
18
19
20 /* Synched up with: FSF 19.31. */
21
22 /* Contributed by Ian Lance Taylor, ian@cygnus.com.  */
23
24 /* SCO is sort of like SVR3.  */
25 #include "usg5-3.h"
26 #define SC0_R4
27
28 #if 0                           /* Turned off rather than make the Lisp code check for this. -- rms.
29                                    I am assuming that (at least most of) the tests for usg-unix-v
30                                    do the right thing for sco3.2v4 also.  Things that *might* be wrong
31                                    as a result of turning off these lines include the values of
32                                    ange-ftp-remote-shell-file-name (now remsh)
33                                    dired-chown-program (now just chown)
34                                    lpr-command (now lp)
35                                    nntp-buggy-select (now t)
36                                    rmail-spool-directory (now /usr/mail?)
37                                    and the actions of the function print-region-1.  */
38
39 /* SYSTEM_TYPE should indicate the kind of system you are using.  */
40 #undef SYSTEM_TYPE
41 #define SYSTEM_TYPE "SCO 3.2v4"
42 #endif
43
44 /* SCO has ptys with unusual names.  */
45 #define HAVE_PTYS
46
47 #define PTY_ITERATION \
48    for (i = 0; ; i++)
49 #define PTY_NAME_SPRINTF                                       \
50         do {                                                   \
51                 int sz = snprintf (pty_name, sizeof(pty_name), \
52                                    "/dev/ptyp%d", i);          \
53                 assert(sz>=0 && sz<sizeof(pty_name));          \
54         } while(0)
55
56 #define PTY_TTY_NAME_SPRINTF                                    \
57         do {                                                    \
58                 int sz = snprintf (pty_name, sizeof(pty_name),  \
59                                    "/dev/ttyp%d", i);           \
60                 assert(sz>=0 && sz<sizeof(pty_name));           \
61         } while(0)
62
63 /* Must use 'cc' to link when build with motif toolkit. */
64 #ifndef __GNUC__
65 #define LINKER "cc"
66 #endif
67
68 #ifdef HAVE_SOCKETS
69 #define LIBS_SYSTEM "-lsocket -lPW"
70
71 /* SCO has gettimeofday in socket library */
72 /* Autoconf should determine this, but for now,
73    play safe to avoid error rather than deleting this
74    and risking the wrong result.  */
75 #ifndef HAVE_GETTIMEOFDAY
76 #define HAVE_GETTIMEOFDAY
77 #endif
78 #endif
79
80 /* This enables configure to tell that we have alloca.  */
81 #ifndef LIBS_SYSTEM
82 #define LIBS_SYSTEM "-lPW"
83 #endif
84
85 #ifdef HAVE_X11R5
86 /* configure can't get this right linking fails unless -lsocket is used.  */
87 #undef HAVE_XSCREENNUMBEROFSCREEN
88 #define HAVE_XSCREENNUMBEROFSCREEN
89 #endif
90
91 /* We don't have -loldX, and we don't need it.  */
92 #define LIB_XMENU_LIB
93
94 /* SCO does have TIOCGWINSZ.  */
95 #undef BROKEN_TIOCGWINSZ
96 #define NEED_PTEM_H
97
98 /* We need to link with crt1.o and crtn.o.  */
99 #define START_FILES "pre-crt0.o /lib/crt1.o"
100 #define LIB_STANDARD "-lc /lib/crtn.o"
101
102 /* Specify program for etc/fakemail to run.  Define SMAIL if you are
103    using smail, don't for MMDF.  */
104
105 #ifdef SMAIL
106 #define MAIL_PROGRAM_NAME "/bin/smail -q0"
107 #else
108 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
109 #endif
110
111 /* Tell process_send_signal to use VSUSP instead of VSWTCH.  */
112 #define PREFER_VSUSP
113
114 /* wjs@wiis.wang.com says SCO 3.2 v4.2 "has sockets",
115    but only for network connections.
116    It doesn't have the kind of sockets that emacsclient.c
117    and emacsserver.c would use.  */
118 #define NO_SOCKETS_IN_FILE_SYSTEM