Commit | Line | Data |
---|---|---|
a704a684 RS |
1 | /* Handle Solaris 2.4. */ |
2 | ||
da6aae60 RS |
3 | #include "sol2-3.h" |
4 | ||
5 | #define SOLARIS2_4 | |
6 | ||
7 | /* Get rid of -traditional and let const really do its thing. */ | |
8 | ||
a704a684 | 9 | #ifdef __GNUC__ |
da6aae60 RS |
10 | #undef C_SWITCH_SYSTEM |
11 | #undef const | |
a704a684 | 12 | #endif /* __GNUC__ */ |
1832d109 KH |
13 | |
14 | #undef LD_SWITCH_SYSTEM | |
4916b529 | 15 | |
9d0ebf98 PE |
16 | /* `#ifdef USE_MOTIF' won't work here, since USE_MOTIF isn't defined yet. |
17 | Instead, dynamically check whether USE_MOTIF expands to something. */ | |
18 | #define NOT_USING_MOTIF { set x USE_MOTIF; test "$$2" = "USE_MOTIF"; } | |
19 | ||
1832d109 | 20 | #ifndef __GNUC__ |
9d0ebf98 PE |
21 | #define LD_SWITCH_SYSTEM_TEMACS -L/usr/ccs/lib LD_SWITCH_X_SITE_AUX \ |
22 | `NOT_USING_MOTIF || echo ' -R/usr/dt/lib'` | |
1832d109 KH |
23 | #else /* GCC */ |
24 | /* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX | |
25 | has anything in it. It can be empty. | |
4916b529 RS |
26 | This works ok in temacs. */ |
27 | #define LD_SWITCH_SYSTEM_TEMACS -L/usr/ccs/lib \ | |
9d0ebf98 PE |
28 | `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX` \ |
29 | `NOT_USING_MOTIF || echo ' -R/usr/dt/lib -L/usr/dt/lib'` | |
1832d109 | 30 | #endif /* GCC */ |
860ef324 RS |
31 | |
32 | /* Gregory Neil Shapiro <gshapiro@hhmi.org> reports the Motif header files | |
33 | are in this directory on Solaris 2.4. */ | |
34 | #define C_SWITCH_X_SYSTEM -I/usr/dt/include | |
35 | ||
ab5796a9 MB |
36 | /* arch-tag: 6f0de37b-cfda-427a-a5ae-b83ed54aaae7 |
37 | (do not change this comment) */ |