Remove Unixware and openserver support
[oweals/cde.git] / cde / lib / tt / lib / tt_options.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $TOG: tt_options.h /main/11 1998/04/03 17:09:46 mgreess $
24  *
25  * (c) Copyright 1996 Digital Equipment Corporation.
26  * (c) Copyright 1993, 1994, 1996 Hewlett-Packard Company.
27  * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
28  * (c) Copyright 1990, 1993, 1994, 1996 Sun Microsystems, Inc.
29  * (c) Copyright 1993, 1994, 1996 Novell, Inc. 
30  * (c) Copyright 1996 FUJITSU LIMITED.
31  * (c) Copyright 1996 Hitachi.
32  */
33
34 #ifndef _TT_OPTIONS_H
35 #define _TT_OPTIONS_H
36 /* 
37  * This file controls any compilation-time options. The current set of
38  * options is:
39  * 
40  * OPT_UNIX_SOCKET_RPC -- if defined then code to do rpc over unix
41  *                        sockets is enabled (speeds up intra-system rpcs). 
42  * 
43  * OPT_TLI -- if defined then rpc code is compiled for the new
44  *            transport-independent rpc
45  * 
46  * OPT_DLOPEN_X11 -- if defined then any code that would use libX11 will
47  *                   attempt to dlopen it at runtime rather than require
48  *                   the application to link with the library.
49  *
50  * OPT_DLOPEN_CE -- if defined then any code that would use libce will
51  *                   attempt to dlopen it at runtime rather than require
52  *                   the application to link with the library.
53  *
54  * OPT_ADDMSG_DIRECT -- if defined then messages are sent directly
55  *                      down a client's signalling fd rather than
56  *                      incurring an additional rpc. 
57  *
58  * OPT_SECURE_RPC -- if defined then code for implementing DES authorization
59  *                   is included.
60  *
61  * OPT_CLASSING_ENGINE -- if defined, code is included to store and
62  *                        retrieve type data in the OpenWindows Classing
63  *                        Engine.  If not defined, type data is stored
64  *                        only in XDR format files.
65  *
66  * OPT_PATCH -- if defined, build patch info into objects
67  *
68  * OPT_BUG_SUNOS_4 -- used to flag special hacks only needed because
69  *   of bugs or quirks in SunOS 4.x.
70  *
71  * OPT_BUG_SUNOS_5 -- used to flag special hacks only needed because
72  *   of bugs or quirks in SunOS 5.x.
73  * 
74  * OPT_BUG_HPUX -- used to flag special hacks only needed because
75  *   of bugs or quirks in HP-UX.
76  * 
77  * OPT_BUG_RPCINTR -- used to flag that RPC_INTR is not defined
78  *   in enum clnt_stat.
79  * 
80  * OPT_BUG_SGI -- used to flag special hacks only needed because of
81  *   bugs or quirks in SGI IRIX.
82  *
83  * OPT_XDR_LONG_TYPE -- used for (64-bit) architectures where
84  *   <rcp/xdr.h> defines x_putlong and x_getlong to not take "long*".
85  *
86  * OPT_POSIX_SIGNAL -- set to assume posix-style sigaction() call.
87  * OPT_BSD_SIGNAL -- set to assume bsd-style signal() call. 
88  *   If *neither* OPT_POSIX_SIGNAL or OPT_BSD_SIGNAL is defined, use
89  *   the old SVR2-style sigset().
90  *
91  * OPT_BSD_WAIT -- set to assume bsd-style wait() calls, which expect
92  *   a "union wait" instead of an int, and to not use waitpid().
93  *
94  * OPT_DGETTEXT -- set to use SVR4-style internationalization calls.
95  *
96  * OPT_CATGETS -- set to use XPG4-style internationalization calls.
97  *
98  * OPT_GETDTABLESIZE - use getdtablesize() instead of getrlimit to get
99  *   file descriptor limit.
100  *
101  * OPT_GETHOSTNAME - use gethostname() instead of uname() to get host name
102  *
103  * OPT_SYSINFO - use sysinfo() instead of gethostid() or uname() to get host id
104  *
105  * OPT_CPP_PATH - string, path to cpp binary so tt_type_comp can invoke it
106  *
107  * OPT_CPP_OPTIONS - string, options to pass to cpp. For example, on
108  *   some platforms -B is used so C++ comments are processed by cpp.
109  *
110  *
111  * OPT_STRERROR - set if strerror() is available, otherwise we assume
112  *   global symbol sys_errlist is defined in errno.h.
113  *
114  * OPT_SVR4_GETMNTENT - set to use new SVR4 flavor of getmntent.
115  *
116  * OPT_LOCKF_MNTTAB - set to hold a lockf lock on MNTTAB while doing
117  *      getmntents.
118  *
119  * OPT_LOCAL_MOUNT_TYPE -- mount type in mntent for local disks.
120  *
121  * OPT_DEFINE_SIG_PF - define if SIG_PF (=type of pointer to signal
122  *                      handler function) isn't defined in system includes
123  *
124  * OPT_TAR_HAS_EXCLUDE_OPTION -- set if the system tar command has the X
125  *   option for excluding files, which tttar uses to avoid extracting the
126  *   extra file it bundles into the tar file. If this option is not available,
127  *   the tttarfile file will appear after extracts, a small flaw but not a 
128  *   fatal one.
129  *
130  * OPT_HAS_REALPATH -- set if the system provides a realpath() library
131  *                     function; otherwise we'll  use our  local copy.
132  *
133  * OPT_PING_TRIES - The number of times to rpc-ping ttsession to
134  *   see if ttsession is alive.
135  *
136  * OPT_PING_SLEEP - How long to wait between each rpc-ping of ttsession.
137  *
138  * OPT_AUTOMOUNT_PATH_FIX - set for systems with autmounters that do
139  *   not treat /tmp_mnt/nfs/... the same as /nfs/... in terms of which
140  *   can tickle the automounter.  For many systems, a mount can only be
141  *   tickled into existence using /nfs/...   This is bad since calls to
142  *   say realpath() will hand back /tmp_mnt/nfs/... which is for all
143  *   practical purposes temporary.
144  *
145  * OPT_SOLARIS_THREADS - Defined if the system supports SOLARIS style threads.
146  *                      (POSIX threads were not out at time of usage)
147  *
148  * OPT_XTHREADS - Defined if the system supports the Xthreads interfaces
149  *                      defined first in X11R6
150  *
151  * OPT_SOLARIS_THREADED_TRIES - How many times to try thr_create() if
152  *                      thr_create() returns EAGAIN.
153  *
154  * OPT_MAX_GET_SESSIONS - The max. number of session id's to return
155  *                      in each call to _tt_get_all_sessions_1().
156  *
157  * OPT_HAS_CLNT_CREATE_TIMED - True if the OS has the clnt_create_timed()
158  *                      rpc function call.
159  *
160  * OPT_CLNT_CREATE_TIMEOUT - Time for clnt_create_timed() to wait
161  *                      before timing out.
162  *
163  * OPT_DO_AUTO_GARBAGE_COLLECT - Perform automatic garbage collection.
164  *                      Without this defined, garbage collection must
165  *                      be called from an rpc call. This is not should
166  *                      not be enabled until the rpc.ttdbserverd catches
167  *                      SIG{INT,TERM,...}, so that it will clean up the
168  *                      files prior to exiting.
169  *
170  * OPT_GARBAGE_IN_PARALLEL - If TRUE, enables garbage collection
171  *                      in a separate thread (or process). If FALSE
172  *                      perform garbage collection in the same
173  *                      thread (or process).
174  */
175
176 /*
177  * Defaults - #undef then #define them if a platform needs them changed.
178  */
179 #define OPT_PING_TRIES          5
180 #define OPT_PING_SLEEP          1
181 #define OPT_MAX_GET_SESSIONS    100
182 #define OPT_GARBAGE_IN_PARALLEL 0       /* used as a const */
183
184 /* Allow -DXTHREADS to be specified by the Makefile. */
185 #ifdef XTHREADS
186 # define OPT_XTHREADS           1
187 #endif
188
189 #undef  OPT_DO_AUTO_GARBAGE_COLLECT
190
191 /* 
192  * WARNING: This file isn't universally included. Adding a new option
193  * entails ensuring that this file is properly included in all the files
194  * that depend on that option. This is done to minimize re-compile time
195  * every time options are changed.
196  */
197 #if defined(__GNUG__)
198 /* g++ often cannot see an implicit cast to char */
199 # define GNU_STRCAST (char *)
200 #else
201 # define GNU_STRCAST
202 #endif
203
204 /*
205  * To avoid ugly cpp command-line options, we instead centralize
206  * in the following code all knowledge about deducing the OS version
207  * from the definitions cpp gives us.
208  */
209 #if defined(sun)
210 # if !defined(OS_VERSION)
211 #  if defined(OSMajorVersion)
212 #   define OS_VERSION           OSMajorVersion
213 #   define OS_MINOR_VERSION     OSMinorVersion
214 #  else
215 #   if !defined(_STDIO_H) && !defined(__stdio_h)
216 #    include <stdio.h>
217 #   endif
218 #   if defined(_SIZE_T)
219 #    define OS_VERSION          5
220 #   else
221 #    define OS_VERSION          4
222 #   endif
223 #  endif
224 # endif
225 #endif
226
227 #if defined(_AIX)
228 # undef  OPT_UNIX_SOCKET_RPC 
229 # undef  OPT_TLI 
230 # undef  OPT_DLOPEN_X11 
231 # undef  OPT_DLOPEN_CE 
232 # undef  OPT_ADDMSG_DIRECT
233 # define OPT_BUG_AIX
234 # undef  OPT_SECURE_RPC 
235 # undef  OPT_CLASSING_ENGINE 
236 # undef  OPT_BSD_SIGNAL
237 # define OPT_POSIX_SIGNAL
238 # undef  OPT_BSD_WAIT
239 # undef  OPT_DGETTEXT
240 # define OPT_CATGETS
241 # define OPT_GETDTABLESIZE
242 # undef  OPT_SYSINFO
243 # define OPT_CPP_PATH           "/usr/ccs/lib/cpp"
244 # define OPT_CPP_OPTIONS        ""
245 # define OPT_STRERROR
246 # undef  OPT_SVR4_GETMNTENT
247 # undef  OPT_LOCKF_MNTENT
248 # define OPT_DEFINE_SIG_PF
249 # undef  OPT_TAR_HAS_EXCLUDE_OPTION
250 # undef  OPT_HAS_REALPATH 
251 # define OPT_AUTOMOUNT_PATH_FIX
252 /* # define OPT_XTHREADS        1 */    /* Defaulted by -DXTHREADS */
253
254 #elif defined(sun) && (OS_VERSION <= 4)
255
256 # define OPT_UNIX_SOCKET_RPC 
257 # undef  OPT_TLI 
258         /* for 4.1.1 systems turning on any dlopen features on the    */
259         /* client side would break clients with ld errors unless they */
260         /* linked with -ldl. OPT_DLOPEN_CE is ok since clients don't  */
261         /* ever execute ce_* functions.                               */
262 # undef  OPT_DLOPEN_X11 
263 # undef  OPT_DLOPEN_CE 
264 # undef  OPT_ADDMSG_DIRECT 
265 # define OPT_SECURE_RPC 
266 # undef  OPT_CLASSING_ENGINE
267 # undef  OPT_PATCH
268 # define OPT_BSD_SIGNAL
269 # define OPT_BSD_WAIT
270 # define OPT_DGETTEXT
271 # undef  OPT_CATGETS
272 # undef  OPT_GETDTABLESIZE
273 # undef  OPT_SYSINFO
274 # define OPT_CPP_PATH           "/usr/lib/cpp"
275 # define OPT_CPP_OPTIONS         "-B"
276 # undef  OPT_STRERROR
277 # undef  OPT_SVR4_GETMNTENT
278 # undef  OPT_LOCKF_MNTENT
279 # define OPT_LOCAL_MOUNT_TYPE   MNTTYPE_42
280 # undef  OPT_OLD_RPC
281 # undef  OPT_DEFINE_SIG_PF
282 # define OPT_TAR_HAS_EXCLUDE_OPTION
283
284 # define OPT_BUG_SUNOS_4
285
286 # define OPT_HAS_REALPATH
287 # undef  OPT_AUTOMOUNT_PATH_FIX
288
289 #elif defined(sun) && (OS_VERSION >= 5)
290
291 # undef  OPT_UNIX_SOCKET_RPC 
292 # define OPT_TLI 
293 # undef  OPT_DLOPEN_X11
294 # undef  OPT_DLOPEN_CE
295 # undef  OPT_ADDMSG_DIRECT 
296 # define OPT_SECURE_RPC 
297 # undef  OPT_CLASSING_ENGINE
298 # undef  OPT_BSD_SIGNAL
299 # define OPT_POSIX_SIGNAL
300 # undef  OPT_BSD_WAIT
301 # undef  OPT_DGETTEXT
302 # define OPT_CATGETS
303 # undef  OPT_GETDTABLESIZE
304 # define OPT_SYSINFO
305 # define OPT_STRERROR
306 # define OPT_CPP_PATH           "/usr/ccs/lib/cpp"
307 # define OPT_CPP_OPTIONS        "-B"
308 # define OPT_SVR4_GETMNTENT
309 # define OPT_LOCKF_MNTENT
310 # define OPT_LOCAL_MOUNT_TYPE   MNTTYPE_UFS
311 # undef  OPT_DEFINE_SIG_PF
312 # define OPT_TAR_HAS_EXCLUDE_OPTION
313
314 # define OPT_HAS_REALPATH
315 # undef  OPT_AUTOMOUNT_PATH_FIX
316
317 /* Does not work on X86 */
318 # if defined(i386) && OS_MINOR_VERSION <= 4
319 #  undef OPT_GARBAGE_THREADS
320 #  undef OPT_SOLARIS_THREADED_TRIES
321 # else
322 #  define OPT_SOLARIS_THREADS           1
323 /* #  define OPT_XTHREADS               1 */    /* Defaulted by -DXTHREADS */
324 #  define OPT_GARBAGE_THREADS           1
325 #  define OPT_SOLARIS_THREADED_TRIES    10
326 # endif
327
328 /* Solaris 2.5 and above, supports clnt_create_timed(3N) */
329 # if (OS_MINOR_VERSION >= 5)
330 #  define OPT_HAS_CLNT_CREATE_TIMED     1
331 #  define OPT_CLNT_CREATE_TIMEOUT       30
332 # endif
333
334 /* TURN THESE OFF FOR NOW */
335 # undef OPT_GARBAGE_IN_PARALLEL
336 # undef OPT_GARBAGE_THREADS
337
338 /* Turn ON/OFF parallel threads for garbage collection */
339 # if defined(OPT_DO_AUTO_GARBAGE_COLLECT) && defined(OPT_SOLARIS_THREADS)
340 #  define OPT_GARBAGE_IN_PARALLEL       1
341 #  define OPT_GARBAGE_THREADS           1
342 # else
343 #  define OPT_GARBAGE_IN_PARALLEL       0       /* used as a const */
344 #  undef  OPT_GARBAGE_THREADS
345 # endif
346
347 #elif defined(sgi)
348 /* these are probably way obsolete now that irix is svr4 based */
349 # define OPT_UNIX_SOCKET_RPC 
350 # undef  OPT_TLI 
351 # undef  OPT_DLOPEN_X11 
352 # undef  OPT_DLOPEN_CE 
353 # undef  OPT_ADDMSG_DIRECT 
354 # undef  OPT_SECURE_RPC 
355 # undef  OPT_CLASSING_ENGINE 
356 # define OPT_TAR_HAS_EXCLUDE_OPTION
357
358 #elif defined(ultrix)
359
360 # undef OPT_UNIX_SOCKET_RPC
361 # undef  OPT_TLI 
362 # undef  OPT_DLOPEN_X11 
363 # undef  OPT_DLOPEN_CE 
364 # undef  OPT_ADDMSG_DIRECT 
365 # undef  OPT_SECURE_RPC 
366 # undef  OPT_CLASSING_ENGINE 
367 # undef  OPT_TAR_HAS_EXCLUDE_OPTION
368
369 #elif defined(__hpux) || defined(hpux)
370
371 # undef  OPT_UNIX_SOCKET_RPC 
372 # undef  OPT_TLI 
373 # undef  OPT_DLOPEN_X11 
374 # undef  OPT_DLOPEN_CE 
375 # undef  OPT_ADDMSG_DIRECT
376 # define OPT_BUG_HPUX
377 # undef  OPT_SECURE_RPC 
378 # undef  OPT_CLASSING_ENGINE 
379 # undef  OPT_BSD_SIGNAL
380 # define OPT_POSIX_SIGNAL
381 # undef  OPT_BSD_WAIT
382 # undef  OPT_DGETTEXT
383 # define OPT_CATGETS
384 # undef  OPT_GETDTABLESIZE
385 # undef  OPT_SYSINFO
386 # define OPT_HAS_REALPATH
387 # define OPT_AUTOMOUNT_PATH_FIX
388 /*
389  * re-define these. HP-UX does not seem to want to wake up a swapped
390  * process. The timeouts have to be increased so that HP-UX has time
391  * to swap in ttsession (if it is out).
392  */
393 # undef  OPT_PING_TRIES
394 # define OPT_PING_TRIES         10
395 # undef  OPT_PING_SLEEP
396 # define OPT_PING_SLEEP         2
397 # if OSMAJORVERSION < 10
398 #  define OPT_CPP_PATH          "/lib/cpp"
399 # else
400 #  define OPT_CPP_PATH          "/opt/langtools/lbin/cpp"
401 # endif
402 # define OPT_CPP_OPTIONS        ""
403 # define OPT_STRERROR
404 # undef  OPT_SVR4_GETMNTENT
405 # undef  OPT_LOCKF_MNTENT
406 # define OPT_LOCAL_MOUNT_TYPE   MNTTYPE_HFS
407 # define OPT_DEFINE_SIG_PF
408 # undef  OPT_TAR_HAS_EXCLUDE_OPTION
409 # define OPT_BUG_RPCINTR
410
411 #elif defined(__osf__)
412 # define OPT_UNIX_SOCKET_RPC
413 # undef  OPT_TLI
414 # undef  OPT_DLOPEN_X11
415 # undef  OPT_DLOPEN_CE
416 # undef  OPT_ADDMSG_DIRECT
417 # undef  OPT_SECURE_RPC
418 # undef  OPT_CLASSING_ENGINE
419 # undef  OPT_BSD_SIGNAL
420 # define OPT_POSIX_SIGNAL
421 # undef  OPT_BSD_WAIT
422 # undef  OPT_PATCH
423 # undef  OPT_I18N
424 # define OPT_CATGETS
425 # undef  OPT_GETDTABLESIZE
426 # undef  OPT_SYSINFO
427 # define OPT_CPP_PATH           "/usr/ccs/lib/cpp"
428 # define OPT_CPP_OPTIONS        ""
429 # define OPT_STRERROR
430 # undef  OPT_SVR4_GETMNTENT
431 # define OPT_LOCAL_MOUNT_TYPE   MNTTYPE_UFS
432 # define OPT_DEFINE_SIG_PF
433 # undef  OPT_TAR_HAS_EXCLUDE_OPTION
434 # undef  OPT_HAS_REALPATH 
435 # if defined(OSMAJORVERSION) && (OSMAJORVERSION >= 4)
436 #  define OPT_XDR_LONG_TYPE     int
437 # endif
438
439 #elif defined(linux)
440
441 # undef  OPT_UNIX_SOCKET_RPC 
442 # undef  OPT_TLI 
443 # undef  OPT_DLOPEN_X11 
444 # undef  OPT_DLOPEN_CE 
445 # undef  OPT_ADDMSG_DIRECT 
446 # undef  OPT_SECURE_RPC 
447 # undef  OPT_CLASSING_ENGINE
448 # undef  OPT_PATCH
449 # define OPT_POSIX_SIGNAL
450 # undef  OPT_BSD_WAIT
451 # undef  OPT_DGETTEXT
452 # define OPT_CATGETS
453 # undef  OPT_GETDTABLESIZE
454 # undef  OPT_SYSINFO
455 # define OPT_CPP_PATH           "/usr/bin/cpp"
456 # define OPT_CPP_OPTIONS         ""
457 # define OPT_STRERROR
458 # undef  OPT_SVR4_GETMNTENT
459 # undef  OPT_LOCKF_MNTENT
460 # define OPT_LOCAL_MOUNT_TYPE   "ext2fs"
461 # undef  OPT_OLD_RPC
462 # define OPT_DEFINE_SIG_PF
463 # define OPT_TAR_HAS_EXCLUDE_OPTION
464 # define OPT_HAS_REALPATH
465 # define OPT_AUTOMOUNT_PATH_FIX
466 # define OPT_BUG_RPCINTR
467 # undef  OPT_XTHREADS 
468 # define OPT_CONST_CORRECT
469
470 #elif defined(__OpenBSD__)
471
472 # undef  OPT_UNIX_SOCKET_RPC 
473 # undef  OPT_TLI 
474 # undef  OPT_DLOPEN_X11 
475 # undef  OPT_DLOPEN_CE 
476 # undef  OPT_ADDMSG_DIRECT 
477 # undef  OPT_SECURE_RPC 
478 # undef  OPT_CLASSING_ENGINE
479 # undef  OPT_PATCH
480 # define OPT_POSIX_SIGNAL
481 # undef  OPT_BSD_WAIT
482 # undef  OPT_DGETTEXT
483 # define OPT_CATGETS
484 # undef  OPT_GETDTABLESIZE
485 # undef  OPT_SYSINFO
486 # define OPT_CPP_PATH           "/usr/libexec/cpp"
487 # define OPT_CPP_OPTIONS        ""
488 # define OPT_STRERROR
489 # undef  OPT_SVR4_GETMNTENT
490 # undef  OPT_LOCKF_MNTENT
491 # define OPT_LOCAL_MOUNT_TYPE   MNTTYPE_UFS
492 # undef  OPT_OLD_RPC
493 # define OPT_DEFINE_SIG_PF
494 # define OPT_TAR_HAS_EXCLUDE_OPTION
495 # define OPT_HAS_REALPATH
496 # define OPT_AUTOMOUNT_PATH_FIX
497 # define OPT_BUG_RPCINTR
498 # undef  OPT_XTHREADS 
499
500 #elif defined(__FreeBSD__)
501 # undef  OPT_UNIX_SOCKET_RPC 
502 # undef  OPT_TLI 
503 # undef  OPT_DLOPEN_X11 
504 # undef  OPT_DLOPEN_CE 
505 # undef  OPT_ADDMSG_DIRECT 
506 # undef  OPT_SECURE_RPC 
507 # undef  OPT_CLASSING_ENGINE
508 # undef  OPT_PATCH
509 # define OPT_POSIX_SIGNAL
510 # undef  OPT_BSD_WAIT
511 # undef  OPT_DGETTEXT
512 # define OPT_CATGETS
513 # undef  OPT_GETDTABLESIZE
514 # undef  OPT_SYSINFO
515 # if defined(OSMAJORVERSION) && (OSMAJORVERSION >= 5)
516 #  define OPT_CPP_PATH          "/usr/bin/cpp"
517 # else
518 #  define OPT_CPP_PATH          "/usr/libexec/cpp"
519 # endif
520 # define OPT_CPP_OPTIONS        ""
521 # define OPT_STRERROR
522 # undef  OPT_SVR4_GETMNTENT
523 # undef  OPT_LOCKF_MNTENT
524 # define OPT_LOCAL_MOUNT_TYPE   MNTTYPE_UFS
525 # undef  OPT_OLD_RPC
526 # define OPT_DEFINE_SIG_PF
527 # define OPT_TAR_HAS_EXCLUDE_OPTION
528 # define OPT_HAS_REALPATH
529 # define OPT_AUTOMOUNT_PATH_FIX
530 # define OPT_BUG_RPCINTR
531 # undef  OPT_XTHREADS 
532 # define OPT_CONST_CORRECT
533
534 #elif defined(__NetBSD__)
535 # undef  OPT_UNIX_SOCKET_RPC
536 # undef  OPT_TLI
537 # undef  OPT_DLOPEN_X11
538 # undef  OPT_DLOPEN_CE
539 # undef  OPT_ADDMSG_DIRECT
540 # undef  OPT_SECURE_RPC
541 # undef  OPT_CLASSING_ENGINE
542 # undef  OPT_PATCH
543 # define OPT_POSIX_SIGNAL
544 # undef  OPT_BSD_WAIT
545 # undef  OPT_DGETTEXT
546 # define OPT_CATGETS
547 # undef  OPT_GETDTABLESIZE
548 # undef  OPT_SYSINFO
549 # define OPT_CPP_PATH           "/usr/bin/cpp"
550 # define OPT_CPP_OPTIONS        ""
551 # define OPT_STRERROR
552 # undef  OPT_SVR4_GETMNTENT
553 # undef  OPT_LOCKF_MNTENT
554 # define OPT_LOCAL_MOUNT_TYPE   MNTTYPE_UFS
555 # undef  OPT_OLD_RPC
556 # define OPT_DEFINE_SIG_PF
557 # define OPT_TAR_HAS_EXCLUDE_OPTION
558 # define OPT_HAS_REALPATH
559 # define OPT_AUTOMOUNT_PATH_FIX
560 # define OPT_BUG_RPCINTR
561 # undef  OPT_XTHREADS
562 # define OPT_CONST_CORRECT
563 # define HAS_STATVFS
564
565 #else
566 /* Unknown configuration, complain */
567 }}}} You must edit lib/tt_options.h and add a section defining the options for your configuration.
568
569 #endif
570
571 #endif                          /* _TT_OPTIONS_H */