0
|
1 /* Synched up with: FSF 19.31. */
|
|
2
|
74
|
3 #define __EXTENSIONS__
|
0
|
4 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */
|
|
5
|
|
6 #define SOLARIS2
|
|
7
|
|
8 /* SIGIO seems to be working under Solaris and it makes ^G work better... */
|
|
9 #undef BROKEN_SIGIO
|
|
10
|
|
11 /* eggert@twinsun.com said these work in Solaris.
|
|
12 Perhaps they work in all kinds of SVR4, but this is more conservative. */
|
|
13 #undef BROKEN_TIOCGETC
|
|
14 #undef BROKEN_TIOCGWINSZ
|
|
15
|
|
16 /* This triggers a conditional in xfaces.c. */
|
|
17 #define XOS_NEEDS_TIME_H
|
|
18
|
|
19 #define POSIX
|
|
20
|
|
21 /* FSF uses LD_SWITCH_X_SITE_AUX in the following definitions to deal with
|
|
22 the -R flags. While the intention is good, it doesn't seem to work that
|
|
23 well -- Solaris is just too damn screwy. So we go ahead and let
|
|
24 configure have special checks for Solaris. */
|
|
25
|
|
26 /* Here is how to find X Windows. The -R option says where
|
|
27 to find X windows at run time. */
|
24
|
28 #define LD_SWITCH_SYSTEM_RPATH -R/usr/dt/lib:/opt/SUNWdt/lib:/usr/openwin/lib
|
0
|
29 #ifdef __GNUC__
|
24
|
30 #define LD_SWITCH_SYSTEM -Xlinker LD_SWITCH_SYSTEM_RPATH
|
|
31 #else
|
|
32 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_RPATH
|
0
|
33 #endif
|
|
34
|
|
35 /* XEmacs change -- Sun CC needs this to default to ANSI */
|
|
36 #ifdef __SUNPRO_C
|
|
37 #define C_SWITCH_SYSTEM -Xa
|
|
38 #endif /* __SUNPRO_C */
|
|
39
|
|
40 #ifndef NOT_C_CODE
|
|
41 /* The standard Solaris library nsl has this function in it which is
|
|
42 supposed to only be in the BSD compat stuff. Yuck. Of course,
|
|
43 there isn't a prototype for it other than in /usr/ucbinclude. */
|
98
|
44 int gethostname (char *, size_t);
|
24
|
45
|
74
|
46 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
|
|
47 Sun has promised to fix setjmp.h */
|
|
48 #if __STDC__ == 1
|
|
49 #ifndef __GNUC__
|
|
50 #define _POSIX_C_SOURCE 1
|
|
51 #include <setjmp.h>
|
|
52 #undef _POSIX_C_SOURCE
|
|
53 #endif /* __GNUC__ */
|
|
54 #endif /* __STDC__ */
|
|
55
|
0
|
56 /* XEmacs: Solaris include files miss this. */
|
|
57 struct timeval;
|
|
58 int utimes (char *file, struct timeval *tvp);
|
|
59
|
|
60 /* XEmacs addition: to this to avoid having problems when we later
|
|
61 define INT_MAX etc. */
|
|
62 #include <limits.h>
|
74
|
63 #endif /* C_CODE */
|
0
|
64
|
|
65 /* XEmacs change -- removed flags to force K & R compilation */
|
|
66
|
|
67 /*
|
|
68 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp
|
|
69 */
|
|
70
|
|
71 #undef LIBS_SYSTEM
|
|
72 #define LIBS_SYSTEM -lsocket -lnsl -lkvm -lelf -lgen -ldl
|
|
73
|
|
74 /* XEmacs change -- Mark Borges says this is needed. */
|
|
75 #define LIBS_TERMCAP -ltermlib
|
|
76
|
|
77 /* #### XEmacs change: until we've gotten the Energize builds converted
|
|
78 over to use configure instead of ymakefile, we still need this.
|
|
79 */
|
|
80 #if defined (NOT_C_CODE) && defined (ENERGIZE)
|
|
81
|
|
82 # define LIB_INTL -L/usr/openwin/lib -lintl -lw
|
|
83 # define LIBS_DEBUG
|
|
84 # undef LIBS_SYSTEM
|
|
85 # define LIBS_SYSTEM -lsocket -lnsl -lintl -lelf -lkvm -lgen -ldl
|
|
86 # define START_FILES
|
|
87 # define LD_CMD $(CC)
|
|
88
|
|
89 #endif
|
|
90
|
|
91 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does
|
|
92 not work with a static definition of malloc(). */
|
|
93 /* We want to be able to test out ralloc.c. */
|
|
94 /* #define SYSTEM_MALLOC */
|
|
95
|
|
96 /* XEmacs: there used to be a special definition of
|
|
97 PTY_TTY_NAME_SPRINTF here that was identical to the
|
|
98 other SYSV R4 definitions except that it didn't
|
|
99 block SIGCHLD around the call to grantpt(). This
|
|
100 is *not* in 19.29 and is almost certainly incorrect.
|
|
101 */
|
|
102
|
|
103 /* XEmacs change from Georg.Nikodym@Canada.Sun.COM. */
|
|
104 #ifdef UNEXEC
|
|
105 #undef UNEXEC
|
|
106 #endif
|
|
107 #define UNEXEC unexsol2.o
|
|
108
|
|
109 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at
|
|
110 least under 2.4 */
|
|
111 #undef _setjmp
|
|
112 #define _setjmp setjmp
|