/* include/ptbuildopts.h. Generated from ptbuildopts.h.in by configure. */ /* * buildopts.h * * Build options generated by the configure script. * * Portable Windows Library * * Copyright (c) 2003 Equivalence Pty. Ltd. * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See * the License for the specific language governing rights and limitations * under the License. * * The Original Code is Portable Windows Library. * * The Initial Developer of the Original Code is Equivalence Pty. Ltd. * * Contributor(s): ______________________________________. * * $Log: ptbuildopts.h.in,v $ * Revision 1.47.2.2 2006/02/23 00:31:03 csoutheren * Backport from head * * Revision 1.47.2.1 2006/02/22 11:53:29 csoutheren * Backports from HEAD * * Revision 1.51 2006/02/23 00:27:19 csoutheren * Fixed incorrectly applied patch * * Revision 1.50 2006/02/22 11:22:34 csoutheren * Applied patch #1408645 * Endianess patch for MacOSX * * Revision 1.47 2005/11/25 00:06:12 csoutheren * Applied patch #1364593 from Hannes Friederich * Also changed so PTimesMutex is no longer descended from PSemaphore on * non-Windows platforms * * Revision 1.46 2005/10/17 01:25:05 csoutheren * Added check for ssl with const argumetns * * Revision 1.45 2005/09/25 10:51:23 dominance * almost complete the mingw support. We'll be there soon. ;) * * Revision 1.44 2005/09/23 15:30:46 dominance * more progress to make mingw compile nicely. Thanks goes to Julien Puydt for pointing out to me how to do it properly. ;) * * Revision 1.43 2005/08/25 00:35:04 dereksmithies * Add linux test to check for the presence of openssl/aes.h which sets P_SSL_AES * * Revision 1.42 2005/08/24 12:48:39 rjongbloed * Added configuration define for AEC encryption * * Revision 1.41 2005/08/04 19:46:51 csoutheren * Applied patch #1240770 * Fixed problem with compilation under Solaris 10 * Thanks to Boris Pavacic * * Revision 1.40 2005/04/27 12:08:11 csoutheren * Added support for res_minit for thread-safe resolver access * Added mutex when res_minit not available * * Revision 1.39 2005/01/26 05:37:39 csoutheren * Added ability to remove config file support * * Revision 1.38 2005/01/03 12:48:41 csoutheren * Added new configure options and ability to disable/enable modules * * Revision 1.37 2004/11/17 12:50:44 csoutheren * Win32 DCOM support, thanks to Simon Horne * * Revision 1.36 2004/11/16 00:24:38 csoutheren * Added Cygwin support * * Revision 1.35 2004/08/24 07:08:13 csoutheren * Added use of recvmsg to determine which interface UDP packets arrive on * * Revision 1.34 2004/06/01 07:42:19 csoutheren * Restored memory allocation checking * Added configure flag to enable, thanks to Derek Smithies * * Revision 1.33 2004/04/28 11:26:42 csoutheren * Hopefully fixed SASL and SASL2 problems * * Revision 1.32 2004/04/21 11:22:48 csoutheren * Modified to work with gcc 3.4.0 * * Revision 1.31 2004/04/18 12:06:06 csoutheren * Added classes for SASL authentication * Thanks to Federico Pinna and Reitek S.p.A. * * Revision 1.30 2004/04/11 07:58:07 csoutheren * Added configure.in check for recursive mutexes, and changed implementation * without recursive mutexes to use PCriticalSection or atomic word structs * * Revision 1.29 2004/04/11 06:15:27 csoutheren * Modified to use Atomic_word if available * * Revision 1.28 2004/04/09 11:54:46 csoutheren * Added configure.in check for STL streams, and tested with gcc 2.95.3, * gcc 3.3.1, and gcc 3.3.3 * * Revision 1.27 2004/04/03 23:53:08 csoutheren * Added various changes to improce compatibility with the Sun Forte compiler * Thanks to Brian Cameron * Added detection of readdir_r version * * Revision 1.26 2004/03/23 04:56:23 csoutheren * Added patches to use XPG6 threading under Linux if available * Thanks to Matthew Hodgson * * Revision 1.25 2004/02/04 02:34:38 csoutheren * Added many new flags to configure to allow disabling of various features * Fixed "swab" detection * Improved detection of long double type * * Revision 1.24 2004/01/30 00:52:58 csoutheren * Moved P_USE_PRAGMA back to the compiler flags as this cannot be * put into a include file due to the way gcc implements vtable closure * * Revision 1.23 2004/01/29 13:43:59 csoutheren * Moved some preprocessor symbols from the command line to include files * Modified to set P_HAS_SEMAPHORES to 0 for Linux kernels >= 2.6 * Applied patches for Solaris thanks to Michal Zygmuntowicz * * Revision 1.22 2004/01/27 10:50:29 csoutheren * Added versio information to ptbuildopts.h * * Revision 1.21 2003/12/02 08:34:44 rogerhardiman * Tidy some comments * * Revision 1.20 2003/11/12 03:29:51 csoutheren * Initial version of plugin code from Snark of GnomeMeeting with changes * by Craig Southeren of Post Increment * * Revision 1.19 2003/11/06 09:13:20 rjongbloed * Improved the Windows configure system to allow multiple defines based on file existence. Needed for SDL support of two different distros. * * Revision 1.18 2003/10/30 11:23:53 rjongbloed * Added direcetory name for Speech API under Windows. * Added automatic inclusion of Winsock2 library. * * Revision 1.17 2003/10/27 03:42:15 csoutheren * Added support for QoS detection * * Revision 1.16 2003/10/23 20:43:38 dereksmithies * Add fix for SDL video on Visual C. Thanks to Walter Whitlock. * * Revision 1.15 2003/10/20 23:13:26 csoutheren * Restored after deletion by Damien * * Revision 1.13 2003/09/17 09:00:59 csoutheren * Moved PSmartPointer and PNotifier into seperate files * Added detection for system regex libraries on all platforms * * Revision 1.12 2003/07/29 11:25:23 csoutheren * Added support for system swab function * * Revision 1.11 2003/06/23 15:17:20 ykiryanov * Modified for WinCE compatibility - Undef'd P_HAS_IPV6 in case of WinCE build * * Revision 1.10 2003/05/22 12:20:16 dsandras * * Define or not TRY_1394AVC/TRY_1394DC after execution of the configure script. * * Revision 1.9 2003/05/17 03:22:47 rjongbloed * Removed need to do strange things with main() function. * * Revision 1.8 2003/05/05 06:25:33 robertj * Corrections to external libraries * * Revision 1.7 2003/04/28 08:32:01 craigs * Added Linux SDL detection * * Revision 1.6 2003/04/28 07:27:38 craigs * Added SDL libs * * Revision 1.5 2003/04/28 07:04:45 craigs * Added SDL detection * * Revision 1.4 2003/04/17 06:14:31 robertj * Changed link of openssl to be static. * * Revision 1.3 2003/04/17 01:22:29 craigs * Fixed problem with OpenLDAP and OpenSSL-0.9.7 * * Revision 1.2 2003/04/16 08:00:19 robertj * Windoes psuedo autoconf support * * Revision 1.1 2003/04/16 07:15:59 craigs * Initial version * */ #ifndef _PT_BUILDOPTS_H #define _PT_BUILDOPTS_H ///////////////////////////////////////////////// // // host type // /* #undef P_LINUX */ /* #undef P_FREEBSD */ /* #undef P_OPENBSD */ /* #undef P_NETBSD */ /* #undef P_SOLARIS */ /* #undef P_MACOSX */ /* #undef P_CYGWIN */ /* #undef P_MINGW */ #define P_UNKNOWN_OS "gnu_8.0.1" ///////////////////////////////////////////////// // // sizeof(int) // #define SIZEOF_INT 4 ///////////////////////////////////////////////// // // Processor endianess // #if !defined(P_MACOSX) #define PBYTE_ORDER PLITTLE_ENDIAN #else #if defined(__BIG_ENDIAN__) #define PBYTE_ORDER PLITTLE_ENDIAN #else #define PBYTE_ORDER PLITTLE_ENDIAN #endif #endif ///////////////////////////////////////////////// // // IP v6 Support // #ifndef _WIN32_WCE /* #undef P_HAS_IPV6 */ #endif // _WIN32_WCE #if defined(_MSC_VER) && P_HAS_IPV6 #pragma include_alias(, <@IPV6_DIR@/winsock2.h>) #pragma include_alias(, <@IPV6_DIR@/ws2tcpip.h>) #define P_WINSOCK2_LIBRARY "ws2_32.lib" #endif ///////////////////////////////////////////////// // // QoS Support // // #ifndef _WIN32_WCE #define P_HAS_QOS 1 #endif // _WIN32_WCE #if defined(_MSC_VER) && P_HAS_QOS #pragma include_alias(, <@QOS_DIR@/qossp.h>) #define P_WINSOCK2_LIBRARY "ws2_32.lib" #endif ///////////////////////////////////////////////// // // OpenSSL library for secure sockets layer // #define P_SSL 1 #define P_SSL_AES 1 /* #undef P_SSL_USE_CONST */ #if defined(_MSC_VER) && P_SSL #pragma include_alias(, <@SSL_DIR@/inc32/openssl/ssl.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/safestack.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/stack.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/crypto.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/opensslv.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/lhash.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/buffer.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/bio.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/pem.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/evp.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/md2.h>) #pragma include_alias(,<@SSL_DIR@/inc32/openssl/opensslconf.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/md5.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/sha.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/ripemd.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/des.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/e_os2.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/rc4.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/rc2.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/rc5.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/blowfish.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/cast.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/idea.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/mdc2.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/rsa.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/bn.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/dsa.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/dh.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/objects.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/asn1.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/x509.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/x509_vfy.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/pkcs7.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/pem2.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/ssl2.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/ssl3.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/tls1.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/ssl23.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/err.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/rand.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/symhacks.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/comp.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/ossl_typ.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/md4.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/des_old.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/ui_compat.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/ui.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/aes.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/obj_mac.h>) #pragma include_alias(, <@SSL_DIR@/inc32/openssl/kssl.h>) #if defined(_MSC_VER) && P_SSL_AES #pragma include_alias(, <@SSL_DIR@/inc32/openssl/aes.h>) #endif #ifdef _DEBUG #define P_SSL_LIBDIR "out32.dbg" #else #define P_SSL_LIBDIR "out32" #endif #define P_SSL_LIB1 "@SSL_DIR@/" P_SSL_LIBDIR "/ssleay32.lib" #define P_SSL_LIB2 "@SSL_DIR@/" P_SSL_LIBDIR "/libeay32.lib" #endif ///////////////////////////////////////////////// // // EXPAT library for XML parsing // #define P_EXPAT 1 #if defined(_MSC_VER) && P_EXPAT #pragma include_alias(, <@EXPAT_DIR@/lib/expat.h>) #ifdef _DEBUG #define P_EXPAT_LIBDIR "Debug" #else #define P_EXPAT_LIBDIR "Release" #endif #define P_EXPAT_LIBRARY "@EXPAT_DIR@/" P_EXPAT_LIBDIR "/expat.lib" #endif ///////////////////////////////////////////////// // // OpenLDAP // #define P_LDAP 1 #if defined(_MSC_VER) && P_LDAP #pragma include_alias(, <@LDAP_DIR@/include/ldap.h>) #pragma include_alias(, <@LDAP_DIR@/include/lber.h>) #pragma include_alias(, <@LDAP_DIR@/include/lber_types.h>) #pragma include_alias(, <@LDAP_DIR@/include/ldap_features.h>) #pragma include_alias(, <@LDAP_DIR@/include/ldap_cdefs.h>) #ifdef _DEBUG #define P_LDAP_LIBRARY "@LDAP_DIR@/DLLDebug/openldapd.lib" #else #define P_LDAP_LIBRARY "@LDAP_DIR@/DLLRelease/openldap.lib" #endif #endif ///////////////////////////////////////////////// // // DNS resolver // #define P_DNS 1 #define P_HAS_RES_NINIT 1 #if defined(_MSC_VER) && P_DNS #pragma include_alias(, <@DNS_DIR@/Include/windns.h>) #define P_DNS_LIBRARY "@DNS_DIR@/Lib/DnsAPI.Lib" #endif ///////////////////////////////////////////////// // // SAPI speech API (Windows only) // /* #undef P_SAPI */ #if defined(_MSC_VER) && P_SAPI #pragma include_alias(, <@SAPI_DIR@/include/sphelper.h>) #pragma include_alias(, <@SAPI_DIR@/include/sapi.h>) #pragma include_alias(, <@SAPI_DIR@/include/sapiddk.h>) #pragma include_alias(, <@SAPI_DIR@/include/SPError.h>) #pragma include_alias(, <@SAPI_DIR@/include/SPDebug.h>) #define P_SAPI_LIBRARY "@SAPI_DIR@/Lib/i386/sapi.lib" #endif ///////////////////////////////////////////////// // // Cyrus SASL // /* #undef P_SASL */ #define P_SASL2 1 /* #undef P_HAS_SASL_SASL_H */ #if defined(_MSC_VER) && (defined(P_SASL) || defined(P_SASL2)) #pragma include_alias(, <@SASL_DIR@/include/sasl.h>) #define P_SASL_LIBRARY "@SASL_DIR@/lib/libsasl.lib" #define P_HAS_SASL_SASL_H 1 #endif ///////////////////////////////////////////////// // // SDL toolkit // #define P_SDL 1 #if defined(_MSC_VER) && P_SDL #pragma include_alias(, <@SDL_DIR@/include/SDL.h>) /* #undef P_SDL_LIBDIR */ #ifndef P_SDL_LIBDIR #ifdef _DEBUG #define P_SDL_LIBDIR "VisualC/SDL/Debug" #else #define P_SDL_LIBDIR "VisualC/SDL/Release" #endif #endif #define P_SDL_LIBRARY "@SDL_DIR@/" P_SDL_LIBDIR "/SDL.lib" #endif ///////////////////////////////////////////////// // // Runtime dynamic link libraries // /* #undef P_DYNALINK */ #define P_HAS_PLUGINS 1 #define P_DEFAULT_PLUGIN_DIR "/lib/pwlib" ///////////////////////////////////////////////// // // Regex library // #define P_REGEX 1 ///////////////////////////////////////////////// // // various non-core functions // #define P_TTS 1 #define P_ASN 1 #define P_STUN 1 #define P_PIPECHAN 1 #define P_DTMF 1 #define P_WAVFILE 1 #define P_SOCKS 1 #define P_FTP 1 #define P_SNMP 1 #define P_TELNET 1 /* #undef P_REMCONN */ #define P_SERIAL 1 #define P_POP3SMTP 1 #define P_AUDIO 1 /* #undef P_ALSA */ #define P_VIDEO 1 /* #undef NO_VIDEO_CAPTURE */ #define P_VXML 1 #define P_JABBER 1 #define P_XMLRPC 1 #define P_SOAP 1 #define P_HTTPSVC 1 #define P_HTTP 1 #define P_CONFIG_FILE 1 ///////////////////////////////////////////////// // // PThreads and related vars // #define P_PTHREADS 1 /* #undef P_HAS_SEMAPHORES */ /* #undef P_HAS_NAMED_SEMAPHORES */ /* #undef P_PTHREADS_XPG6 */ /* #undef P_HAS_SEMAPHORES_XPG6 */ ///////////////////////////////////////////////// // // DCOM Support (Windows only) // #if defined(_MSC_VER) #define _WIN32_DCOM 1 #define _OLE_LIB "ole32.lib" #endif ///////////////////////////////////////////////// // // various functions // #define USE_SYSTEM_SWAB #define PWLIB_MAJOR 1 #define PWLIB_MINOR 10 #define PWLIB_BUILD 3 #define PWLIB_VERSION "1.10.3" /* #undef P_64BIT */ #define PHAS_TEMPLATES 1 #define PNO_LONG_DOUBLE #define P_HAS_POSIX_READDIR_R 0 #define P_HAS_STL_STREAMS 0 #define P_HAS_ATOMIC_INT 0 #define P_HAS_RECURSIVE_MUTEX 0 #define P_NEEDS_GNU_CXX_NAMESPACE 0 /* #undef PMEMORY_CHECK */ /* #undef P_HAS_RECVMSG */ /* #undef P_HAS_UPAD128_T */ #endif // _PT_BUILDOPTS_H // End Of File ///////////////////////////////////////////////////////////////