Commit | Line | Data |
---|---|---|
d8875586 MBT |
1 | ?RCS: $Id: ipc.U 1 2006-08-24 12:32:52Z rmanfredi $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi | |
4 | ?RCS: | |
5 | ?RCS: You may redistribute only under the terms of the Artistic Licence, | |
6 | ?RCS: as specified in the README file that comes with the distribution. | |
7 | ?RCS: You may reuse parts of this distribution only within the terms of | |
8 | ?RCS: that same Artistic Licence; a copy of which may be found at the root | |
9 | ?RCS: of the source tree for dist 4.0. | |
10 | ?RCS: | |
11 | ?RCS: $Log: ipc.U,v $ | |
12 | ?RCS: Revision 3.0 1993/08/18 12:08:53 ram | |
13 | ?RCS: Baseline for dist 3.0 netwide release. | |
14 | ?RCS: | |
15 | ?MAKE:ipc serve_shm serve_msg serve_inet_udp serve_inet_tcp serve_unix_udp \ | |
16 | serve_unix_tcp: test Myread Oldconfig d_socket d_msg d_shm d_sem | |
17 | ?MAKE: -pick add $@ %< | |
18 | ?LINT:use d_msg d_sem | |
19 | ?S:ipc: | |
20 | ?S: This variable holds the type of IPC service we'll be using. Values | |
21 | ?S: include "ip", "shm", "msg", "cms" and "os9". We don't worry about | |
22 | ?S: cms or os9 here, because Configure doesn't run in those places--HMS. | |
23 | ?S:. | |
24 | ?S:serve_shm: | |
25 | ?S: This variable controls the definition of SERVE_SHM, which tells the | |
26 | ?S: C program to use USG shared memory for IPC. | |
27 | ?S:. | |
28 | ?S:serve_msg: | |
29 | ?S: This variable controls the definition of SERVE_MSG, which tells the | |
30 | ?S: C program to use USG message queues for IPC. | |
31 | ?S:. | |
32 | ?S:serve_inet_udp: | |
33 | ?S: This variable controls the definition of SERVE_INET_UDP, which tells | |
34 | ?S: the C program to enable InterNet-domain UDP support for IPC. | |
35 | ?S:. | |
36 | ?S:serve_inet_tcp: | |
37 | ?S: This variable controls the definition of SERVE_INET_TCP, which tells | |
38 | ?S: the C program to enable InterNet-domain TCP support for IPC. | |
39 | ?S:. | |
40 | ?S:serve_unix_udp: | |
41 | ?S: This variable controls the definition of SERVE_UNIX_UDP, which tells | |
42 | ?S: the C program to enable Unix-domain UDP support for IPC. | |
43 | ?S:. | |
44 | ?S:serve_unix_tcp: | |
45 | ?S: This variable controls the definition of SERVE_UNIX_TCP, which tells | |
46 | ?S: the C program to enable Unix-domain TCP support for IPC. | |
47 | ?S:. | |
48 | ?C:SERVE_SHM: | |
49 | ?C: If defined, tells the C program to use USG shared memory for IPC. | |
50 | ?C:. | |
51 | ?C:SERVE_MSG: | |
52 | ?C: If defined, tells the C program to use USG message queues for IPC. | |
53 | ?C:. | |
54 | ?C:SERVE_INET_UDP: | |
55 | ?C: If defined, tells the C program to enable InterNet-domain UDP | |
56 | ?C: support for IPC. | |
57 | ?C:. | |
58 | ?C:SERVE_INET_TCP: | |
59 | ?C: If defined, tells the C program to enable InterNet-domain TCP | |
60 | ?C: support for IPC. | |
61 | ?C:. | |
62 | ?C:SERVE_UNIX_UDP: | |
63 | ?C: If defined, tells the C program to enable Unix-domain UDP | |
64 | ?C: support for IPC. | |
65 | ?C:. | |
66 | ?C:SERVE_UNIX_TCP: | |
67 | ?C: If defined, tells the C program to enable Unix-domain TCP | |
68 | ?C: support for IPC. | |
69 | ?C:. | |
70 | ?H:#$serve_shm SERVE_SHM /**/ | |
71 | ?H:#$serve_msg SERVE_MSG /**/ | |
72 | ?H:#$serve_inet_udp SERVE_INET_UDP /**/ | |
73 | ?H:#$serve_inet_tcp SERVE_INET_TCP /**/ | |
74 | ?H:#$serve_unix_udp SERVE_UNIX_UDP /**/ | |
75 | ?H:#$serve_unix_tcp SERVE_UNIX_TCP /**/ | |
76 | ?H:. | |
77 | ?X: FIXME -- RAM | |
78 | ?INIT:serve_shm='' | |
79 | ?INIT:serve_msg="$undef" | |
80 | ?INIT:serve_inet_udp='' | |
81 | ?INIT:serve_inet_tcp='' | |
82 | ?INIT:serve_unix_udp='' | |
83 | ?INIT:serve_unix_tcp='' | |
84 | : get IPC mechanism | |
85 | echo " " | |
86 | ipc='' | |
87 | while $test -z "$ipc" | |
88 | do | |
89 | if $test "$ipc" != "shm" -a "$d_socket" = "$define"; then | |
90 | ipc='' | |
91 | if $test "$serve_inet_udp" = "$undef"; then | |
92 | dflt=n | |
93 | else | |
94 | dflt=y | |
95 | fi | |
96 | rp='Provide InterNet-domain UDP service?' | |
97 | . ./myread | |
98 | dflt='' | |
99 | case "$ans" in | |
100 | n*) serve_inet_udp="$undef";; | |
101 | *) | |
102 | serve_inet_udp="$define" | |
103 | ipc='ip' | |
104 | ;; | |
105 | esac | |
106 | ||
107 | if $test "$serve_inet_tcp" = "$define"; then | |
108 | dflt=y | |
109 | else | |
110 | dflt=n | |
111 | fi | |
112 | rp='Provide InterNet-domain TCP service?' | |
113 | . ./myread | |
114 | dflt='' | |
115 | case "$ans" in | |
116 | n*) serve_inet_tcp="$undef";; | |
117 | *) | |
118 | serve_inet_tcp="$define" | |
119 | ipc='ip' | |
120 | ;; | |
121 | esac | |
122 | ||
123 | if $test "$serve_unix_udp" = "$define"; then | |
124 | dflt=y | |
125 | else | |
126 | dflt=n | |
127 | fi | |
128 | rp='Provide Unix-domain UDP service?' | |
129 | . ./myread | |
130 | dflt='' | |
131 | case "$ans" in | |
132 | n*) serve_unix_udp="$undef";; | |
133 | *) | |
134 | serve_unix_udp="$define" | |
135 | ipc='ip' | |
136 | ;; | |
137 | esac | |
138 | ||
139 | if $test "$serve_unix_tcp" = "$define"; then | |
140 | dflt=y | |
141 | else | |
142 | dflt=n | |
143 | fi | |
144 | rp='Provide Unix-domain TCP service?' | |
145 | . ./myread | |
146 | dflt='' | |
147 | case "$ans" in | |
148 | n*) serve_unix_tcp="$undef";; | |
149 | *) | |
150 | serve_unix_tcp="$define" | |
151 | ipc='ip' | |
152 | ;; | |
153 | esac | |
154 | else | |
155 | serve_inet_udp="$undef" | |
156 | serve_inet_tcp="$undef" | |
157 | serve_unix_udp="$undef" | |
158 | serve_unix_tcp="$undef" | |
159 | fi | |
160 | if $test "$ipc" != "ip" -a "$d_shm" = "$define"; then | |
161 | echo "Providing USG shared memory IPC support." >&4 | |
162 | serve_shm="$define" | |
163 | ipc='shm' | |
164 | else | |
165 | serve_shm="$undef" | |
166 | fi | |
167 | if $test -z "$ipc"; then | |
168 | echo "You must select an IPC mechanism." >&4 | |
169 | fi | |
170 | done | |
171 |