4 * Build options generated by the configure script.
6 * Portable Windows Library
8 * Copyright (c) 2003 Equivalence Pty. Ltd.
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17 * the License for the specific language governing rights and limitations
20 * The Original Code is Portable Windows Library.
22 * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24 * Contributor(s): ______________________________________.
27 * Revision 1.33 2004/04/28 11:26:42 csoutheren
28 * Hopefully fixed SASL and SASL2 problems
30 * Revision 1.32 2004/04/21 11:22:48 csoutheren
31 * Modified to work with gcc 3.4.0
33 * Revision 1.31 2004/04/18 12:06:06 csoutheren
34 * Added classes for SASL authentication
35 * Thanks to Federico Pinna and Reitek S.p.A.
37 * Revision 1.30 2004/04/11 07:58:07 csoutheren
38 * Added configure.in check for recursive mutexes, and changed implementation
39 * without recursive mutexes to use PCriticalSection or atomic word structs
41 * Revision 1.29 2004/04/11 06:15:27 csoutheren
42 * Modified to use Atomic_word if available
44 * Revision 1.28 2004/04/09 11:54:46 csoutheren
45 * Added configure.in check for STL streams, and tested with gcc 2.95.3,
46 * gcc 3.3.1, and gcc 3.3.3
48 * Revision 1.27 2004/04/03 23:53:08 csoutheren
49 * Added various changes to improce compatibility with the Sun Forte compiler
50 * Thanks to Brian Cameron
51 * Added detection of readdir_r version
53 * Revision 1.26 2004/03/23 04:56:23 csoutheren
54 * Added patches to use XPG6 threading under Linux if available
55 * Thanks to Matthew Hodgson
57 * Revision 1.25 2004/02/04 02:34:38 csoutheren
58 * Added many new flags to configure to allow disabling of various features
59 * Fixed "swab" detection
60 * Improved detection of long double type
62 * Revision 1.24 2004/01/30 00:52:58 csoutheren
63 * Moved P_USE_PRAGMA back to the compiler flags as this cannot be
64 * put into a include file due to the way gcc implements vtable closure
66 * Revision 1.23 2004/01/29 13:43:59 csoutheren
67 * Moved some preprocessor symbols from the command line to include files
68 * Modified to set P_HAS_SEMAPHORES to 0 for Linux kernels >= 2.6
69 * Applied patches for Solaris thanks to Michal Zygmuntowicz
71 * Revision 1.22 2004/01/27 10:50:29 csoutheren
72 * Added versio information to ptbuildopts.h
74 * Revision 1.21 2003/12/02 08:34:44 rogerhardiman
77 * Revision 1.20 2003/11/12 03:29:51 csoutheren
78 * Initial version of plugin code from Snark of GnomeMeeting with changes
79 * by Craig Southeren of Post Increment
81 * Revision 1.19 2003/11/06 09:13:20 rjongbloed
82 * Improved the Windows configure system to allow multiple defines based on file existence. Needed for SDL support of two different distros.
84 * Revision 1.18 2003/10/30 11:23:53 rjongbloed
85 * Added direcetory name for Speech API under Windows.
86 * Added automatic inclusion of Winsock2 library.
88 * Revision 1.17 2003/10/27 03:42:15 csoutheren
89 * Added support for QoS detection
91 * Revision 1.16 2003/10/23 20:43:38 dereksmithies
92 * Add fix for SDL video on Visual C. Thanks to Walter Whitlock.
94 * Revision 1.15 2003/10/20 23:13:26 csoutheren
95 * Restored after deletion by Damien
97 * Revision 1.13 2003/09/17 09:00:59 csoutheren
98 * Moved PSmartPointer and PNotifier into seperate files
99 * Added detection for system regex libraries on all platforms
101 * Revision 1.12 2003/07/29 11:25:23 csoutheren
102 * Added support for system swab function
104 * Revision 1.11 2003/06/23 15:17:20 ykiryanov
105 * Modified for WinCE compatibility - Undef'd P_HAS_IPV6 in case of WinCE build
107 * Revision 1.10 2003/05/22 12:20:16 dsandras
109 * Define or not TRY_1394AVC/TRY_1394DC after execution of the configure script.
111 * Revision 1.9 2003/05/17 03:22:47 rjongbloed
112 * Removed need to do strange things with main() function.
114 * Revision 1.8 2003/05/05 06:25:33 robertj
115 * Corrections to external libraries
117 * Revision 1.7 2003/04/28 08:32:01 craigs
118 * Added Linux SDL detection
120 * Revision 1.6 2003/04/28 07:27:38 craigs
123 * Revision 1.5 2003/04/28 07:04:45 craigs
124 * Added SDL detection
126 * Revision 1.4 2003/04/17 06:14:31 robertj
127 * Changed link of openssl to be static.
129 * Revision 1.3 2003/04/17 01:22:29 craigs
130 * Fixed problem with OpenLDAP and OpenSSL-0.9.7
132 * Revision 1.2 2003/04/16 08:00:19 robertj
133 * Windoes psuedo autoconf support
135 * Revision 1.1 2003/04/16 07:15:59 craigs
140 #ifndef _PT_BUILDOPTS_H
141 #define _PT_BUILDOPTS_H
144 /////////////////////////////////////////////////
157 /////////////////////////////////////////////////
159 // Processor endianess
165 /////////////////////////////////////////////////
174 #if defined(_MSC_VER) && P_HAS_IPV6
176 #pragma include_alias(<winsock2.h>, <@IPV6_DIR@/winsock2.h>)
177 #pragma include_alias(<ws2tcpip.h>, <@IPV6_DIR@/ws2tcpip.h>)
179 #define P_WINSOCK2_LIBRARY "ws2_32.lib"
184 /////////////////////////////////////////////////
194 #if defined(_MSC_VER) && P_HAS_QOS
196 #pragma include_alias(<qossp.h>, <@QOS_DIR@/qossp.h>)
198 #define P_WINSOCK2_LIBRARY "ws2_32.lib"
203 /////////////////////////////////////////////////
205 // OpenSSL library for secure sockets layer
210 #if defined(_MSC_VER) && P_SSL
212 #pragma include_alias(<openssl/ssl.h>, <@SSL_DIR@/inc32/openssl/ssl.h>)
213 #pragma include_alias(<openssl/safestack.h>, <@SSL_DIR@/inc32/openssl/safestack.h>)
214 #pragma include_alias(<openssl/stack.h>, <@SSL_DIR@/inc32/openssl/stack.h>)
215 #pragma include_alias(<openssl/crypto.h>, <@SSL_DIR@/inc32/openssl/crypto.h>)
216 #pragma include_alias(<openssl/opensslv.h>, <@SSL_DIR@/inc32/openssl/opensslv.h>)
217 #pragma include_alias(<openssl/lhash.h>, <@SSL_DIR@/inc32/openssl/lhash.h>)
218 #pragma include_alias(<openssl/buffer.h>, <@SSL_DIR@/inc32/openssl/buffer.h>)
219 #pragma include_alias(<openssl/bio.h>, <@SSL_DIR@/inc32/openssl/bio.h>)
220 #pragma include_alias(<openssl/pem.h>, <@SSL_DIR@/inc32/openssl/pem.h>)
221 #pragma include_alias(<openssl/evp.h>, <@SSL_DIR@/inc32/openssl/evp.h>)
222 #pragma include_alias(<openssl/md2.h>, <@SSL_DIR@/inc32/openssl/md2.h>)
223 #pragma include_alias(<openssl/opensslconf.h>,<@SSL_DIR@/inc32/openssl/opensslconf.h>)
224 #pragma include_alias(<openssl/md5.h>, <@SSL_DIR@/inc32/openssl/md5.h>)
225 #pragma include_alias(<openssl/sha.h>, <@SSL_DIR@/inc32/openssl/sha.h>)
226 #pragma include_alias(<openssl/ripemd.h>, <@SSL_DIR@/inc32/openssl/ripemd.h>)
227 #pragma include_alias(<openssl/des.h>, <@SSL_DIR@/inc32/openssl/des.h>)
228 #pragma include_alias(<openssl/e_os2.h>, <@SSL_DIR@/inc32/openssl/e_os2.h>)
229 #pragma include_alias(<openssl/rc4.h>, <@SSL_DIR@/inc32/openssl/rc4.h>)
230 #pragma include_alias(<openssl/rc2.h>, <@SSL_DIR@/inc32/openssl/rc2.h>)
231 #pragma include_alias(<openssl/rc5.h>, <@SSL_DIR@/inc32/openssl/rc5.h>)
232 #pragma include_alias(<openssl/blowfish.h>, <@SSL_DIR@/inc32/openssl/blowfish.h>)
233 #pragma include_alias(<openssl/cast.h>, <@SSL_DIR@/inc32/openssl/cast.h>)
234 #pragma include_alias(<openssl/idea.h>, <@SSL_DIR@/inc32/openssl/idea.h>)
235 #pragma include_alias(<openssl/mdc2.h>, <@SSL_DIR@/inc32/openssl/mdc2.h>)
236 #pragma include_alias(<openssl/rsa.h>, <@SSL_DIR@/inc32/openssl/rsa.h>)
237 #pragma include_alias(<openssl/bn.h>, <@SSL_DIR@/inc32/openssl/bn.h>)
238 #pragma include_alias(<openssl/dsa.h>, <@SSL_DIR@/inc32/openssl/dsa.h>)
239 #pragma include_alias(<openssl/dh.h>, <@SSL_DIR@/inc32/openssl/dh.h>)
240 #pragma include_alias(<openssl/objects.h>, <@SSL_DIR@/inc32/openssl/objects.h>)
241 #pragma include_alias(<openssl/asn1.h>, <@SSL_DIR@/inc32/openssl/asn1.h>)
242 #pragma include_alias(<openssl/x509.h>, <@SSL_DIR@/inc32/openssl/x509.h>)
243 #pragma include_alias(<openssl/x509_vfy.h>, <@SSL_DIR@/inc32/openssl/x509_vfy.h>)
244 #pragma include_alias(<openssl/pkcs7.h>, <@SSL_DIR@/inc32/openssl/pkcs7.h>)
245 #pragma include_alias(<openssl/pem2.h>, <@SSL_DIR@/inc32/openssl/pem2.h>)
246 #pragma include_alias(<openssl/ssl2.h>, <@SSL_DIR@/inc32/openssl/ssl2.h>)
247 #pragma include_alias(<openssl/ssl3.h>, <@SSL_DIR@/inc32/openssl/ssl3.h>)
248 #pragma include_alias(<openssl/tls1.h>, <@SSL_DIR@/inc32/openssl/tls1.h>)
249 #pragma include_alias(<openssl/ssl23.h>, <@SSL_DIR@/inc32/openssl/ssl23.h>)
250 #pragma include_alias(<openssl/err.h>, <@SSL_DIR@/inc32/openssl/err.h>)
251 #pragma include_alias(<openssl/rand.h>, <@SSL_DIR@/inc32/openssl/rand.h>)
252 #pragma include_alias(<openssl/symhacks.h>, <@SSL_DIR@/inc32/openssl/symhacks.h>)
253 #pragma include_alias(<openssl/comp.h>, <@SSL_DIR@/inc32/openssl/comp.h>)
254 #pragma include_alias(<openssl/ossl_typ.h>, <@SSL_DIR@/inc32/openssl/ossl_typ.h>)
255 #pragma include_alias(<openssl/md4.h>, <@SSL_DIR@/inc32/openssl/md4.h>)
256 #pragma include_alias(<openssl/des_old.h>, <@SSL_DIR@/inc32/openssl/des_old.h>)
257 #pragma include_alias(<openssl/ui_compat.h>, <@SSL_DIR@/inc32/openssl/ui_compat.h>)
258 #pragma include_alias(<openssl/ui.h>, <@SSL_DIR@/inc32/openssl/ui.h>)
259 #pragma include_alias(<openssl/aes.h>, <@SSL_DIR@/inc32/openssl/aes.h>)
260 #pragma include_alias(<openssl/obj_mac.h>, <@SSL_DIR@/inc32/openssl/obj_mac.h>)
261 #pragma include_alias(<openssl/kssl.h>, <@SSL_DIR@/inc32/openssl/kssl.h>)
264 #define P_SSL_LIBDIR "out32.dbg"
266 #define P_SSL_LIBDIR "out32"
269 #define P_SSL_LIB1 "@SSL_DIR@/" P_SSL_LIBDIR "/ssleay32.lib"
270 #define P_SSL_LIB2 "@SSL_DIR@/" P_SSL_LIBDIR "/libeay32.lib"
275 /////////////////////////////////////////////////
277 // EXPAT library for XML parsing
282 #if defined(_MSC_VER) && P_EXPAT
284 #pragma include_alias(<expat.h>, <@EXPAT_DIR@/lib/expat.h>)
287 #define P_EXPAT_LIBDIR "Debug"
289 #define P_EXPAT_LIBDIR "Release"
292 #define P_EXPAT_LIBRARY "@EXPAT_DIR@/" P_EXPAT_LIBDIR "/expat.lib"
297 /////////////////////////////////////////////////
304 #if defined(_MSC_VER) && P_LDAP
306 #pragma include_alias(<ldap.h>, <@LDAP_DIR@/include/ldap.h>)
307 #pragma include_alias(<lber.h>, <@LDAP_DIR@/include/lber.h>)
308 #pragma include_alias(<lber_types.h>, <@LDAP_DIR@/include/lber_types.h>)
309 #pragma include_alias(<ldap_features.h>, <@LDAP_DIR@/include/ldap_features.h>)
310 #pragma include_alias(<ldap_cdefs.h>, <@LDAP_DIR@/include/ldap_cdefs.h>)
313 #define P_LDAP_LIBRARY "@LDAP_DIR@/DLLDebug/openldapd.lib"
315 #define P_LDAP_LIBRARY "@LDAP_DIR@/DLLRelease/openldap.lib"
321 /////////////////////////////////////////////////
328 #if defined(_MSC_VER) && P_DNS
330 #pragma include_alias(<windns.h>, <@DNS_DIR@/Include/windns.h>)
332 #define P_DNS_LIBRARY "@DNS_DIR@/Lib/DnsAPI.Lib"
338 /////////////////////////////////////////////////
340 // SAPI speech API (Windows only)
345 #if defined(_MSC_VER) && P_SAPI
347 #pragma include_alias(<sphelper.h>, <@SAPI_DIR@/include/sphelper.h>)
348 #pragma include_alias(<sapi.h>, <@SAPI_DIR@/include/sapi.h>)
349 #pragma include_alias(<sapiddk.h>, <@SAPI_DIR@/include/sapiddk.h>)
350 #pragma include_alias(<SPError.h>, <@SAPI_DIR@/include/SPError.h>)
351 #pragma include_alias(<SPDebug.h>, <@SAPI_DIR@/include/SPDebug.h>)
353 #define P_SAPI_LIBRARY "@SAPI_DIR@/Lib/i386/sapi.lib"
359 /////////////////////////////////////////////////
366 #undef P_HAS_SASL_SASL_H
368 #if defined(_MSC_VER) && (defined(P_SASL) || defined(P_SASL2))
370 #pragma include_alias(<sasl/sasl.h>, <@SASL_DIR@/include/sasl.h>)
372 #define P_SASL_LIBRARY "@SASL_DIR@/lib/libsasl.lib"
373 #define P_HAS_SASL_SASL_H 1
379 /////////////////////////////////////////////////
386 #if defined(_MSC_VER) && P_SDL
387 #pragma include_alias(<SDL/SDL.h>, <@SDL_DIR@/include/SDL.h>)
393 #define P_SDL_LIBDIR "VisualC/SDL/Debug"
395 #define P_SDL_LIBDIR "VisualC/SDL/Release"
399 #define P_SDL_LIBRARY "@SDL_DIR@/" P_SDL_LIBDIR "/SDL.lib"
404 /////////////////////////////////////////////////
406 // Runtime dynamic link libraries
411 #undef P_DEFAULT_PLUGIN_DIR
413 /////////////////////////////////////////////////
420 /////////////////////////////////////////////////
422 // Video capture (Linux and xBSD)
425 #undef NO_VIDEO_CAPTURE
428 /////////////////////////////////////////////////
430 // Firewire (Linux only)
437 /////////////////////////////////////////////////
439 // PThreads and related vars
443 #undef P_HAS_SEMAPHORES
444 #undef P_PTHREADS_XPG6
445 #undef P_HAS_SEMAPHORES_XPG6
447 /////////////////////////////////////////////////
451 #undef USE_SYSTEM_SWAB
459 #undef PHAS_TEMPLATES
460 #undef PNO_LONG_DOUBLE
461 #undef P_HAS_POSIX_READDIR_R
462 #undef P_HAS_STL_STREAMS
463 #undef P_HAS_ATOMIC_INT
464 #undef P_HAS_RECURSIVE_MUTEX
465 #undef P_NEEDS_GNU_CXX_NAMESPACE
467 #endif // _PT_BUILDOPTS_H
470 // End Of File ///////////////////////////////////////////////////////////////