Restructure how we look for Read files slightly.
[fvwm.git] / vms / config.h
blob14733825896536befc9c1e64034320dc8caa5b1a
1 /*----------------------------------------------------------------------------------------------------------------------------------
2 File : config.h for Fvwm
3 Author : Fabien Villard (Villard_F@Decus.Fr)
4 Date : 20-JAN-1999
5 Descrip : adapted for VMS from the config.h.in generated automatically from configure.in by autoheader.
6 Compatibility stuff for Fvwm.
7 Tested with Dec 5.7 on Alpha.
8 Note : this file can be edited to change some options.
9 Modifs :
10 25-JAN-1999 Fab Version 2.1.10 de Fvwm. Autoconfig gives args types for select().
11 11-MAR-1999 Steve Add new symbols for systems that can't use autoconf.
12 ----------------------------------------------------------------------------------------------------------------------------------*/
13 /* --- Those defines were intialy in makefiles and command lines --- */
14 #define FVWMRC "FvwmRc.Dat"
15 #define FVWM_MODULEDIR "Fvwm$BaseDir:[Modules.Bin]"
16 #define FVWM_DATADIR "/Sys$Login"
18 #include "libs/vms.h"
20 /* - Replacement functions - */
21 #define fork vfork
22 #define execvp execv
23 #define execl VMS_ExecL
24 #define fvwm_msg VMS_msg
25 #define select VMS_select_pipes
27 #define CoerceEnterNotifyOnCurrentWindow \
28 CoerceEnterNotifyOnCurrentWind /* - Nname too long, exceeds 31 characters. - */
30 #define __attribute__(toto)
32 #undef DEBUG_EVENTS /* --- Define to trace My_XNextEvent and DispatchEvent in events.c --- */
33 #define DEBUG_MODULES /* --- Define to trace modules launching --- */
35 #define PACKAGE "VMS port (25-JAN-1999)"
36 #define VERSION "2.3.0"
38 /* Where to search for the fvwm icons. */
39 #define FVWM_IMAGEPATH "Sys$Login:"
41 /* Define if Xpm library is used. */
42 #define XPM
44 /* Define if rplay library is used. */
45 #undef HAVE_RPLAY
47 /* Define if readline is available. */
48 #undef HAVE_READLINE
50 /* Define if you want the Shaped window extensions.
51 * Shaped window extensions seem to increase the window managers RSS by about 60 Kbytes. They provide for leaving a title-bar
52 * on the window without a border. If you don't use shaped window extension, you can either make your shaped windows undecorated,
53 * or live with a border and backdrop around all your shaped windows (oclock, xeyes)
55 * If you normally use a shaped window (xeyes or oclock), you might as well compile this extension in, since the memory cost is
56 * minimal in this case (The shaped window shared libs will be loaded anyway). If you don't normally use a shaped window, you have
57 * to decide for yourself.
59 * Note: if it is compiled in, run time detection is used to make sure that the currently running X server supports it. */
60 #undef SHAPE
62 /* Enables the "MiniIcon" Style option to specify a small pixmap which can be used as one of the title-bar buttons, shown in
63 * window list, utilized by modules, etc. Requires PIXMAP_BUTTONS to be defined (see below). */
64 /* NOTE: hard coded to 1 */
65 #if 1
66 #define FMiniIconsSupported 1
67 #else
68 #define FMiniIconsSupported 0
69 #endif
71 /* Enables tagged general decoration styles which can be assigned to windows using the UseDecor Style option, or dynamically
72 * updated with ChangeDecor. To create and destroy "decor" definitions, see the man page entries for AddToDecor and DestroyDecor.
73 * There is a slight memory penalty for each additionally defined decor. */
74 /* NOTE: hard coded to 1
75 #define USEDECOR 1
77 /* Enables session management functionality. */
78 #undef SESSION
80 /* Specify a type for sig_atomic_t if it's not available. */
81 #undef sig_atomic_t
85 ** if you would like to see lots of debug messages from fvwm, for debugging
86 ** purposes, uncomment the next line
88 #undef FVWM_DEBUG_MSGS
90 #ifdef FVWM_DEBUG_MSGS
91 # define DBUG(x,y) fvwm_msg(DBG,x,y)
92 #else
93 # define DBUG(x,y) /* no messages */
94 #endif
96 /**
97 * The next few defines are options that are only changed from their values
98 * shown here on systems that _don't_ use the configure script.
99 **/
101 /* Enable tests for missing too many XEvents. Usually you want this. */
102 #undef WORRY_ABOUT_MISSED_XEVENTS
104 /* Define if the X11 ConnectionNumber is actually a file descriptor. */
105 #undef HAVE_X11_FD
107 /* Define if fork() has unix semantics. On VMS, no child process is created
108 until after a successful exec(). */
109 #undef FORK_CREATES_CHILD
111 /* Suffix for executable filenames; NULL if no extension needed. */
112 #define EXECUTABLE_EXTENSION ".exe"
114 /* Define to remove the extension from executable pathnames before calling
115 exec(). */
116 #define REMOVE_EXECUTABLE_EXTENSION 1
119 /* Define to empty if the keyword does not work. */
120 #undef const
122 /* Define if you have the strftime function. */
123 #define HAVE_STRFTIME 1
125 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
126 #define HAVE_SYS_WAIT_H 1
128 /* ### Define as __inline if that's what the C compiler calls it. */
130 #define inline __inline
132 #define inline
134 /* Define if on MINIX. */
135 #undef _MINIX
137 /* Define to `long' if <sys/types.h> doesn't define. */
138 #undef off_t
140 /* Define to `int' if <sys/types.h> doesn't define. */
141 #undef pid_t
143 /* ### Define if the system does not provide POSIX.1 features except with this defined. */
144 #undef _POSIX_1_SOURCE
146 /* ### Define if you need to in order for stat and other things to work. */
147 #undef _POSIX_SOURCE
149 /* Define as the return type of signal handlers (int or void). */
150 #define RETSIGTYPE void
152 /* Define to the type of arg1 for select(). */
153 #define SELECT_TYPE_ARG1 int
155 /* Define to the type of args 2, 3 and 4 for select(). */
156 #define SELECT_TYPE_ARG234 (fd_set *)
158 /* Define to the type of arg5 for select(). */
159 #define SELECT_TYPE_ARG5 (struct timeval *)
161 /* Define if the setvbuf function takes the buffering type as its second argument and the buffer pointer as the third, as on
162 * System V before release 3. */
163 #undef SETVBUF_REVERSED
165 /* Define to `unsigned' if <sys/types.h> doesn't define. */
166 #undef size_t
168 /* Define if you have the ANSI C header files. */
169 #define STDC_HEADERS
171 /* Define if the X Window System is missing or not being used. */
172 #undef X_DISPLAY_MISSING
174 /* Define if lex declares yytext as a char * by default, not a char[]. */
175 #undef YYTEXT_POINTER
177 /* Define if you have the atexit function. */
178 #undef HAVE_ATEXIT
180 /* Define if you have the div function. */
181 #define HAVE_DIV 1
183 /* Define if you have the gethostname function. */
184 #define HAVE_GETHOSTNAME 1
186 /* Define if you have the gettimeofday function. */
187 /* Fab 8-DEC-1998, VMS : from time.h :
188 ** Note that gettimeofday() is UTC based, so it is not visible if
189 ** compiling in a local time based compatibility mode.
191 #define HAVE_GETTIMEOFDAY 1
193 /* Define if you have the memcpy function. */
194 #define HAVE_MEMCPY 1
196 /* Define if you have the memmove function. */
197 #define HAVE_MEMMOVE 1
199 /* Define if you have the mkfifo function. */
200 #undef HAVE_MKFIFO
202 /* Define if you have the on_exit function. */
203 #undef HAVE_ON_EXIT
205 /* Define if you have the putenv function. */
206 #define HAVE_PUTENV 1
208 /* Define if you have the select function. */
209 #define HAVE_SELECT 1
211 /* Define if you have the setvbuf function. */
212 #define HAVE_SETVBUF 1
214 /* Define if you have the sigaction function. */
215 #undef HAVE_SIGACTION
217 /* Define if you have the siginterrupt function. */
218 #undef HAVE_SIGINTERRUPT
220 /* Define if you have the socket function. */
221 #define HAVE_SOCKET 1
223 /* Define if you have the strcasecmp function. */
224 #define HAVE_STRCASECMP 1
226 /* Define if you have the strchr function. */
227 #define HAVE_STRCHR 1
229 /* Define if you have the strdup function. */
230 #define HAVE_STRDUP 1
232 /* Define if you have the strerror function. */
233 #define HAVE_STRERROR 1
235 /* Define if you have the strncasecmp function. */
236 #define HAVE_STRNCASECMP 1
238 /* Define if you have the strstr function. */
239 #define HAVE_STRSTR 1
241 /* Define if you have the strtol function. */
242 #define HAVE_STRTOL 1
244 /* Define if you have the sysconf function. */
245 #undef HAVE_SYSCONF
247 /* Define if you have the uname function. */
248 #define HAVE_UNAME 1
250 /* Define if you have the usleep function. */
251 #define HAVE_USLEEP 1
253 /* Define if you have the vfprintf function. */
254 #define HAVE_VFPRINTF 1
256 /* Define if you have the wait3 function. */
257 #define HAVE_WAIT3 1
259 /* Define if you have the wait4 function. */
260 #define HAVE_WAIT4 1
262 /* Define if you have the waitpid function. */
263 #define HAVE_WAITPID 1
265 /* Define if you have the <fcntl.h> header file. */
266 #define HAVE_FCNTL_H 1
268 /* Define if you have the <getopt.h> header file. */
269 #undef HAVE_GETOPT_H
271 /* Define if you have the <limits.h> header file. */
272 #define HAVE_LIMITS_H 1
274 /* Define if you have the <malloc.h> header file. */
275 #define HAVE_MALLOC_H 1
277 /* Define if you have the <memory.h> header file. */
278 #define HAVE_MEMORY_H 1
280 /* Define if you have the <stdarg.h> header file. */
281 #define HAVE_STDARG_H 1
283 /* Define if you have the <stdlib.h> header file. */
284 #define HAVE_STDLIB_H 1
286 /* Define if you have the <string.h> header file. */
287 #define HAVE_STRING_H 1
289 /* Define if you have the <sys/select.h> header file. */
290 #undef HAVE_SYS_SELECT_H
292 /* Define if you have the <sys/socket.h> header file. */
293 #undef HAVE_SYS_SOCKET_H
295 /* Define if you have the <sys/systeminfo.h> header file. */
296 #undef HAVE_SYS_SYSTEMINFO_H
298 /* Define if you have the <sys/time.h> header file. */
299 #undef HAVE_SYS_TIME_H
301 /* Define if you have the <sys/types.h> header file. */
302 #undef HAVE_SYS_TYPES_H
304 /* Define if you have the <unistd.h> header file. */
305 #define HAVE_UNISTD_H 1
307 #ifdef STDC_HEADERS
308 # include <stdlib.h>
309 # include <string.h>
310 #else
311 # ifdef HAVE_STRING_H
312 # include <string.h>
313 # else
314 # include <strings.h>
315 # endif
316 # ifdef HAVE_MEMORY_H
317 # include <memory.h>
318 # endif
319 # ifdef HAVE_STDLIB_H
320 # include <stdlib.h>
321 # endif
322 # ifdef HAVE_MALLOC_H
323 # include <malloc.h>
324 # endif
325 # ifndef HAVE_STRCHR
326 # define strchr(_s,_c) index((_s),(_c))
327 # define strrchr(_s,_c) rindex((_s),(_c))
328 # endif
329 #endif
331 #ifndef HAVE_MEMCPY
332 # define memcpy(_d,_s,_l) bcopy((_s),(_d),(_l))
333 #endif
334 #ifndef HAVE_MEMMOVE
335 # define memmove(_d,_s,_l) bcopy((_s),(_d),(_l))
336 #endif
338 #if HAVE_SYS_TYPES_H
339 # include <sys/types.h>
340 #endif
342 #if HAVE_UNISTD_H
343 # include <unistd.h>
344 #endif
346 #ifndef min
347 # define min(a,b) (((a)<(b)) ? (a) : (b))
348 #endif
349 #ifndef max
350 # define max(a,b) (((a)>(b)) ? (a) : (b))
351 #endif
352 #ifndef abs
353 # define abs(a) (((a)>=0)?(a):-(a))
354 #endif
356 #include "libs/defaults.h"