Debian Codegraph @

debian/external_deps/fetk/maloc/src/config/maloccf.h.in

raw
1 /*
2 * ***************************************************************************
3 * MALOC = < Minimal Abstraction Layer for Object-oriented C >
4 * Copyright (C) 1994--2000 Michael Holst
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * rcsid="$Id: configure.ac,v 1.94 2006/07/14 06:23:15 mholst Exp $"
21 * ***************************************************************************
22 */
23
24 /*
25 * ***************************************************************************
26 * File: acconfig.h
27 *
28 * Purpose: Generates the main configuration header "maloccf.h" for MALOC.
29 *
30 * Notes: See the comments at the top of the file "configure.ac" for
31 * an outline of the sequence of steps that turns acconfig.h
32 * into <src/aaa_inc/maloccf.h.in> and then eventually into
33 * <src/aaa_inc/maloccf.h> when you are using GNU autoconf.
34 *
35 * This file can also form the basis for a manually-produced
36 * maloccf.h file. In fact, a correct Win32 maloccf.h file can be
37 * generated simply by removing the two lines containing the
38 * GNU autoconf tags "TOP" and "BOTTOM".
39 *
40 * The final autoconf (or manually) generated "maloccf.h" attempts
41 * to produce a correct header file layout for various UNIX-like
42 * and Win32 machines, giving access to several things beyond ISO
43 * C/C++, including BSD Signals, UNIX Domain sockets, INET TCP/IP
44 * sockets, and the WINSOCK implementation of INET TCP/IP sockets.
45 *
46 * The MALOC library then provides a portable abstract interface
47 * to UNIX domain sockets, INET sockets, pipes, signals, and other
48 * system-dependent things that one usually wants to get to in a
49 * fairly standard C or C++ scientific software package. Once
50 * MALOC is built, "maloccf.h" is no longer needed (it is not
51 * included in the set of API headers that are copied into the
52 * specified header install directory. In other words, none of
53 * the MALOC headers forming the API include the config file
54 * "maloccf.h"; it is only included by the source files.
55 *
56 * Author: Michael Holst
57 * ***************************************************************************
58 */
59
60 #ifndef _MALOCCF_H_
61 #define _MALOCCF_H_
62
63
64 /* Does accept() use unsigned int? */
65 #cmakedefine ACCEPT_USES_UINT
66
67 /* Does accept() use unsigned long? */
68 #cmakedefine ACCEPT_USES_ULONG
69
70 /* Define if you have the <arpa/inet.h> header file. */
71 #cmakedefine HAVE_ARPA_INET_H
72
73 /* Do I compile as a debug version? */
74 #cmakedefine HAVE_DEBUG
75
76 /* Define if you have the <dlfcn.h> header file. */
77 #cmakedefine HAVE_DLFCN_H
78
79 /* Does EMBED macro for embedding rcsid symbols into binaries work? */
80 #cmakedefine HAVE_EMBED
81
82 /* Define if you have the <fcntl.h> header file. */
83 #cmakedefine HAVE_FCNTL_H
84
85 /* Do I have the getcwd routine? */
86 #cmakedefine HAVE_GETCWD
87
88 /* Define if you have the <inttypes.h> header file. */
89 #cmakedefine HAVE_INTTYPES_H
90
91 /* Define if you have the <memory.h> header file. */
92 #cmakedefine HAVE_MEMORY_H
93
94 /* Do I have MPI header? */
95 #cmakedefine HAVE_MPI_H
96
97 /* Define if you have the <netdb.h> header file. */
98 #cmakedefine HAVE_NETDB_H
99
100 /* Do I have the O_NONBLOCK macro? */
101 #cmakedefine HAVE_O_NONBLOCK
102
103 /* Do I have history.h header? */
104 #cmakedefine HAVE_READLINE_HISTORY_H
105
106 /* Do I have readline.h header? */
107 #cmakedefine HAVE_READLINE_READLINE_H
108
109 /* Define if you have the <rpc/rpc.h> header file. */
110 #cmakedefine HAVE_RPC_RPC_H
111
112 /* Define if you have the <rpc.h> header file. */
113 #cmakedefine HAVE_RPC_H
114
115 /* Define if you have the <netinet/in.h> header file. */
116 #cmakedefine HAVE_NETINET_IN_H
117
118 /* Define if you have the <stdint.h> header file. */
119 #cmakedefine HAVE_STDINT_H
120
121 /* Define if you have the <stdlib.h> header file. */
122 #cmakedefine HAVE_STDLIB_H
123
124 /* Define if you have the <strings.h> header file. */
125 #cmakedefine HAVE_STRINGS_H
126
127 /* Define if you have the <string.h> header file. */
128 #cmakedefine HAVE_STRING_H
129
130 /* Define if you have the <sys/socket.h> header file. */
131 #cmakedefine HAVE_SYS_SOCKET_H
132
133 /* Define if you have the <sys/stat.h> header file. */
134 #cmakedefine HAVE_SYS_STAT_H
135
136 /* Define if you have the <sys/times.h> header file. */
137 #cmakedefine HAVE_SYS_TIMES_H
138
139 /* Define if you have the <sys/time.h> header file. */
140 #cmakedefine HAVE_SYS_TIME_H
141
142 /* Define if you have the <sys/types.h> header file. */
143 #cmakedefine HAVE_SYS_TYPES_H
144
145 /* Define if you have the <sys/un.h> header file. */
146 #cmakedefine HAVE_SYS_UN_H
147
148 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
149 #cmakedefine HAVE_SYS_WAIT_H
150
151 /* Define if you have the <unistd.h> header file. */
152 #cmakedefine HAVE_UNISTD_H
153
154 /* Do I have the XDR datastructure in the RPC package? */
155 #cmakedefine HAVE_XDR
156
157 /* Define to the full name of this package. */
158 #cmakedefine PACKAGE_NAME @PACKAGE_NAME@
159
160 /* Define to the full name and version of this package. */
161 #cmakedefine PACKAGE_STRING @PACKAGE_STRING@
162
163 /* Define to the one symbol short name of this package. */
164 #cmakedefine PACKAGE_TARNAME @PACKAGE_TARNAME@
165
166 /* Define to the version of this package. */
167 #cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@
168
169 /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
170 #cmakedefine STAT_MACROS_BROKEN
171
172 /* Define if you have the ANSI C header files. */
173 #cmakedefine STDC_HEADERS
174
175 /* Define to `int' if <sys/types.h> does not define. */
176 #cmakedefine mode_t @mode_t@
177
178 /* Define to `int' if <sys/types.h> does not define. */
179 #cmakedefine pid_t @pid_t@
180
181 /* Define to `unsigned int' if <sys/types.h> does not define. */
182 #cmakedefine size_t @size_t@
183
184
185 /*
186 * ***************************************************************************
187 * Handle some additional things manually (Win32, NeXT, etc)
188 * ***************************************************************************
189 */
190
191 /* Win32 configuration (non-CygWin) */
192 #if !defined(HAVE_CYGWIN)
193 # if defined(WIN32) || defined(__WATCOMC__)
194
195 /* Set the main key for specifying WIN32 code */
196 # define HAVE_WIN32
197
198 /* Deal with some basic problems with UNIX/WIN32 compatibility */
199 # define HAVE_O_NONBLOCK
200 # define HAVE_MODE_T
201
202 /* WATCOM does STAT macros right; Microsoft does not */
203 # if !defined(__WATCOMC__)
204 # define STAT_MACROS_BROKEN
205 # endif
206
207 /* Required headers that exist only in WIN32 (non-CygWin) */
208 # define HAVE_DIRECT_H
209 # define HAVE_PROCESS_H
210 # define HAVE_WINSOCK_H
211 # define HAVE_IO_H
212
213 # endif
214 #endif
215
216 #if defined(NeXT) || defined(__NeXT__)
217 # define HAVE_NEXT
218 #endif
219
220 /*
221 * ***************************************************************************
222 * Deal with macros we need that are sometimes missing
223 * ***************************************************************************
224 */
225
226 /* Deal with broken stat macros on some platforms */
227 #if !defined(STAT_MACROS_BROKEN)
228 # define VS_ISREG(a) (((a) & S_IFMT) == S_IFREG)
229 #else
230 # define VS_ISREG(a) (0)
231 #endif
232
233 /* Deal a missing macro on some unix platforms (NeXT, etc) */
234 #if !defined(HAVE_O_NONBLOCK)
235 # define VO_NONBLOCK 00004
236 #else
237 # define VO_NONBLOCK O_NONBLOCK
238 #endif
239
240 /*
241 * ***************************************************************************
242 * Define some RCS tag embedding and debug I/O macros
243 * ***************************************************************************
244 */
245
246 /* Embedded RCS tags ("ident filename" prints module versions in filename) */
247 #if defined(HAVE_EMBED)
248 # define VEMBED(rctag) \
249 VPRIVATE const char* rctag; \
250 static void* use_rcsid=(0 ? &use_rcsid : (void*)&rcsid);
251 #else
252 # define VEMBED(rctag)
253 #endif
254
255 /* Produce additional debugging I/O */
256 #if defined(HAVE_DEBUG)
257 # define VDEBUGIO(str) fprintf(stderr,str)
258 #else
259 # define VDEBUGIO(str)
260 #endif
261
262 #endif /* _MALOCCF_H_ */
263