2 // This configuration file is designed to work with the MacOS X operating system.
4 #ifndef ACE_CONFIG_MACOSX_LEOPARD_H
5 #define ACE_CONFIG_MACOSX_LEOPARD_H
7 #include <Availability.h>
9 #define ACE_HAS_MAC_OSX
10 #define ACE_HAS_NET_IF_DL_H
12 #define ACE_HAS_VOID_UNSETENV
14 #if ! defined (__ACE_INLINE__)
15 #define __ACE_INLINE__
16 #endif /* ! __ACE_INLINE__ */
18 #if !defined (ACE_SIZEOF_LONG_DOUBLE)
19 # if (__GNUC__ == 3 && __GNUC_MINOR__ == 3)
20 // Size of long double in GCC 3.3 is 8.
21 # define ACE_SIZEOF_LONG_DOUBLE 8
22 # else // Else, the compiler is GCC4
23 // For GCC4, the size is 16.
24 # define ACE_SIZEOF_LONG_DOUBLE 16
26 #endif // ACE_SIZEOF_LONG_DOUBLE
28 #if defined (__GNUG__)
29 # include "ace/config-g++-common.h"
32 #define ACE_ISCTYPE_EQUIVALENT __isctype
34 #define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
36 #define ACE_SIZE_T_FORMAT_SPECIFIER_ASCII "%lu"
38 #if !defined (__i386__)
39 # if defined (ACE_HAS_PENTIUM)
40 # undef ACE_HAS_PENTIUM
41 # endif /* ACE_HAS_PENTIUM */
43 # define ACE_HAS_PENTIUM
46 #if !defined (_THREAD_SAFE)
48 #endif /* _THREAD_SAFE */
51 #define ACE_HAS_POSIX_SEM
52 #define ACE_HAS_SIOCGIFCONF
54 #define ACE_HAS_SUNOS4_GETTIMEOFDAY
56 #define ACE_LACKS_STROPTS_H
58 // Platform provides <execinfo.h> header.
59 #define ACE_HAS_EXECINFO_H
63 #define ACE_SIZEOF_WCHAR 4
66 #define ACE_HAS_3_PARAM_WCSTOK
67 #define ACE_LACKS_ITOW
68 #define ACE_LACKS_WCSICMP
69 #define ACE_LACKS_WCSNICMP
70 #define ACE_LACKS_WCSDUP
72 // Mac lacks the following pthread features
73 #define ACE_LACKS_MUTEXATTR_PSHARED
74 #define ACE_LACKS_CONDATTR_PSHARED
76 // Compiler/platform defines the sig_atomic_t typedef.
77 #define ACE_HAS_SIG_ATOMIC_T
79 // Compiler/platform supports SVR4 signal typedef
80 #define ACE_HAS_SVR4_SIGNAL_T
82 //Platform/compiler has the sigwait(2) prototype
83 #define ACE_HAS_SIGWAIT
85 #define ACE_HAS_AIO_CALLS
87 #define ACE_HAS_ICMP_SUPPORT 1
89 //Platform supports sigsuspend()
90 #define ACE_HAS_SIGSUSPEND
92 #define ACE_LACKS_GETPGID
93 #define ACE_LACKS_RWLOCK_T
95 // Optimize ACE_Handle_Set for select().
96 #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
98 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
100 #define ACE_NEEDS_SCHED_H
102 #define ACE_LACKS_MALLOC_H
104 #define ACE_HAS_ALT_CUSERID
106 // Platform supports POSIX timers via struct timespec.
107 #define ACE_HAS_POSIX_TIME
108 #define ACE_HAS_UALARM
110 // Platform defines struct timespec but not timespec_t
111 #define ACE_LACKS_TIMESPEC_T
113 #define ACE_LACKS_STRRECVFD
115 #define ACE_HAS_SOCKADDR_IN_SIN_LEN
116 #define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
118 // Platform supports System V IPC (most versions of UNIX, but not Win32)
119 #define ACE_HAS_SYSV_IPC
121 // Compiler/platform contains the <sys/syscall.h> file.
122 #define ACE_HAS_SYS_SYSCALL_H
124 #define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
126 // Compiler/platform supports alloca().
127 // Although ACE does have alloca() on this compiler/platform combination, it is
128 // disabled by default since it can be dangerous. Uncomment the following line
129 // if you ACE to use it.
130 //#define ACE_HAS_ALLOCA
132 // Compiler/platform correctly calls init()/fini() for shared libraries.
133 #define ACE_HAS_AUTOMATIC_INIT_FINI
135 // platform supports POSIX O_NONBLOCK semantics
136 #define ACE_HAS_POSIX_NONBLOCK
138 // platform supports IP multicast
139 #define ACE_HAS_IP_MULTICAST
140 #define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
142 // Compiler/platform has the getrusage() system call.
143 #define ACE_HAS_GETRUSAGE
145 // Compiler supports the ssize_t typedef.
146 #define ACE_HAS_SSIZE_T
148 // Compiler/platform provides the sockio.h file.
149 #define ACE_HAS_SYS_SOCKIO_H
151 // Compiler/platform provides the socklen_t type.
152 #define ACE_HAS_SOCKLEN_T
154 // Defines the page size of the system.
155 #define ACE_HAS_GETPAGESIZE
157 // Platform provides <sys/filio.h> header.
158 #define ACE_HAS_SYS_FILIO_H
160 // Platform/compiler supports timezone * as second parameter to gettimeofday().
161 #define ACE_HAS_TIMEZONE_GETTIMEOFDAY
163 #define ACE_LACKS_SYS_MSG_H
164 #define ACE_LACKS_SYSV_MSQ_PROTOS
166 #define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
167 #define ACE_HAS_NONCONST_MSGSND
169 #if !defined (ACE_MT_SAFE)
170 # define ACE_MT_SAFE 1
174 // Yes, we do have threads.
175 # define ACE_HAS_THREADS
176 // And they're even POSIX pthreads
177 # define ACE_HAS_PTHREADS
178 # define ACE_HAS_PTHREAD_SCHEDPARAM
179 # define ACE_HAS_THREAD_SPECIFIC_STORAGE
180 #endif /* ACE_MT_SAFE == 1 */
182 #define ACE_LACKS_THREAD_PROCESS_SCOPING
184 #define ACE_HAS_DIRENT
185 #define ACE_LACKS_POLL_H
186 #define ACE_LACKS_SEARCH_H
188 #define ACE_LACKS_SETSCHED
189 //#define ACE_HAS_RECURSIVE_MUTEXES
191 // Platform has POSIX terminal interface.
192 #define ACE_HAS_TERMIOS
194 #define ACE_HAS_SEMUN
195 #define ACE_HAS_SIGINFO_T
196 #define ACE_LACKS_SIGINFO_H
197 #define ACE_HAS_UCONTEXT_T
198 #define ACE_HAS_GETIFADDRS
199 #define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES
200 #define ACE_LACKS_UNNAMED_SEMAPHORE
202 #if !defined (__DARWIN_UNIX03)
203 #define ACE_HAS_VOID_UNSETENV
206 #define ACE_LACKS_CONDATTR_SETCLOCK
208 #ifndef ACE_HAS_IPHONE
209 #if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
210 #define ACE_LACKS_CLOCKID_T
211 #define ACE_LACKS_CLOCK_MONOTONIC
212 #define ACE_LACKS_CLOCK_REALTIME
216 // dlcompat package (not part of base Darwin) is needed for dlopen().
217 // You may download directly from sourceforge and install or use fink
218 // Fink installer puts libraries in /sw/lib and headers in /sw/include
219 // In order to install dlcompat do the following:
220 // - download fink from http://fink.sf.net
222 // fink install dlcompat
223 // as of Dec 2002, if you use fink you will need to uncomment the next line
224 // #define ACE_NEEDS_DL_UNDERSCORE
225 #define ACE_HAS_SVR4_DYNAMIC_LINKING
226 #define ACE_LD_SEARCH_PATH ACE_TEXT ("DYLD_LIBRARY_PATH")
227 #define ACE_DLL_SUFFIX ACE_TEXT (".dylib")
228 //#define ACE_LACKS_DLCLOSE
230 // gperf seems to need this
231 //#define ACE_HAS_NONSTATIC_OBJECT_MANAGER
233 #define ACE_IOCTL_TYPE_ARG2 unsigned long
235 #if defined(__APPLE_CC__) && (__APPLE_CC__ < 1173)
236 #error "Compiler must be upgraded, see http://developer.apple.com"
237 #endif /* __APPLE_CC__ */
239 #endif /* ACE_CONFIG_MACOSX_LEOPARD_H */