OPAL  Version 3.10.10
buildopts.h
Go to the documentation of this file.
1 /* include/opal/buildopts.h. Generated from buildopts.h.in by configure. */
2 /*
3  * buildopts.h
4  *
5  * Build options generated by the configure script.
6  *
7  * Portable Windows Library
8  *
9  * Copyright (c) 2003 Equivalence Pty. Ltd.
10  *
11  * The contents of this file are subject to the Mozilla Public License
12  * Version 1.0 (the "License"); you may not use this file except in
13  * compliance with the License. You may obtain a copy of the License at
14  * http://www.mozilla.org/MPL/
15  *
16  * Software distributed under the License is distributed on an "AS IS"
17  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
18  * the License for the specific language governing rights and limitations
19  * under the License.
20  *
21  * The Original Code is Portable Windows Library.
22  *
23  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24  *
25  * Contributor(s): ______________________________________.
26  *
27  * $Revision: 28259 $
28  * $Author: rjongbloed $
29  * $Date: 2012-08-28 00:01:10 -0500 (Tue, 28 Aug 2012) $
30  */
31 
32 #ifndef OPAL_BUILDOPTS_H
33 #define OPAL_BUILDOPTS_H
34 
35 #include <ptbuildopts.h>
36 
38 //
39 // OPAL Version
40 //
41 
42 #define OPAL_MAJOR 3
43 #define OPAL_MINOR 10
44 #define OPAL_BUILD 10
45 #define OPAL_VERSION "3.10.10"
46 
47 #define OPAL_CHECK_VERSION(major,minor,build) \
48  (PTLIB_VERSION_INT(OPAL_MAJOR,OPAL_MINOR,OPAL_BUILD) >= PTLIB_VERSION_INT(major,minor,build))
49 
50 #define OPAL_PTLIB_SSL 1
51 #define OPAL_PTLIB_SSL_AES 1
52 #define OPAL_PTLIB_ASN 1
53 #define OPAL_PTLIB_EXPAT 1
54 #define OPAL_PTLIB_AUDIO 1
55 #define OPAL_PTLIB_VIDEO 1
56 #define OPAL_PTLIB_WAVFILE 1
57 #define OPAL_PTLIB_DTMF 1
58 /* #undef OPAL_PTLIB_IPV6 */
59 #ifndef _WIN32_WCE
60 #define OPAL_PTLIB_DNS 1
61 #endif
62 #ifndef P_IPHONEOS
63 /* #undef OPAL_PTLIB_LDAP */
64 #endif
65 #define OPAL_PTLIB_VXML 1
66 #define OPAL_PTLIB_CONFIG_FILE 1
67 #define OPAL_AEC 1
68 
69 
70 // If a "configure" did not set these variables above then they get set from PTlib variables
71 
72 #if defined(P_SSL) && !defined(OPAL_PTLIB_SSL)
73  #define OPAL_PTLIB_SSL 1
74 #endif
75 #if defined(P_SSL_AES) && !defined(OPAL_PTLIB_SSL_AES)
76  #define OPAL_PTLIB_SSL_AES 1
77 #endif
78 #if defined(P_ASN) && !defined(OPAL_PTLIB_ASN)
79  #define OPAL_PTLIB_ASN 1
80 #endif
81 #if defined(P_EXPAT) && !defined(OPAL_PTLIB_EXPAT)
82  #define OPAL_PTLIB_EXPAT 1
83 #endif
84 #if defined(P_AUDIO) && !defined(OPAL_PTLIB_AUDIO)
85  #define OPAL_PTLIB_AUDIO 1
86 #endif
87 #if defined(P_VIDEO) && !defined(OPAL_PTLIB_VIDEO)
88  #define OPAL_PTLIB_VIDEO 1
89 #endif
90 #if defined(P_WAVFILE) && !defined(OPAL_PTLIB_WAVFILE)
91  #define OPAL_PTLIB_WAVFILE 1
92 #endif
93 #if defined(P_DTMF) && !defined(OPAL_PTLIB_DTMF)
94  #define OPAL_PTLIB_DTMF 1
95 #endif
96 #if defined(P_HAS_IPV6) && !defined(OPAL_PTLIB_IPV6)
97  #define OPAL_PTLIB_IPV6 P_HAS_IPV6
98 #endif
99 #if defined(P_DNS) && !defined(OPAL_PTLIB_DNS)
100  #define OPAL_PTLIB_DNS 1
101 #endif
102 #if defined(P_LDAP) && !defined(OPAL_PTLIB_LDAP)
103  #define OPAL_PTLIB_LDAP P_LDAP
104 #endif
105 #if defined(P_VXML) && !defined(OPAL_PTLIB_VXML)
106  #define OPAL_PTLIB_VXML 1
107 #endif
108 #if defined(P_CONFIG_FILE) && !defined(OPAL_PTLIB_CONFIG_FILE)
109  #define OPAL_PTLIB_CONFIG_FILE 1
110 #endif
111 
112 #define OPAL_PLUGIN_DIR "/usr/lib/opal-3.10.10"
113 
114 // Video
115 #if P_VIDEO
116  #define OPAL_VIDEO 1
117 #endif
118 
119 
121 //
122 // Protocol support
123 //
124 
125 #define OPAL_IAX2 1
126 #define OPAL_SIP 1
127 #define OPAL_H323 1
128 #define OPAL_LID 1
129 #define OPAL_CAPI 1
130 /* #undef OPAL_T120DATA */
131 
132 #if OPAL_PTLIB_VXML
133  #define OPAL_IVR 1
134 #endif
135 
136 #if OPAL_H323
137  #if OPAL_VIDEO
138  #define OPAL_H239 1
139  #endif
140  #define OPAL_H501 1
141 
142  #define OPAL_H450 1
143  #if OPAL_H450
144  #define H323_H450 OPAL_H450
145  #endif
146 
147  #define OPAL_H460 1
148  #if OPAL_H460
149  #define H323_H460 OPAL_H460
150  #endif
151 #else // OPAL_H323
152  #define H323_DISABLE_H225 1
153  #define H323_DISABLE_H235 1
154  #define H323_DISABLE_H245 1
155 #endif // OPAL_H323
156 
157 
158 #if !OPAL_H450
159  #define H323_DISABLE_X880 1
160  #define H323_DISABLE_H4501 1
161  #define H323_DISABLE_H4502 1
162  #define H323_DISABLE_H4503 1
163  #define H323_DISABLE_H4504 1
164  #define H323_DISABLE_H4505 1
165  #define H323_DISABLE_H4506 1
166  #define H323_DISABLE_H4507 1
167  #define H323_DISABLE_H4508 1
168  #define H323_DISABLE_H4509 1
169  #define H323_DISABLE_H45010 1
170  #define H323_DISABLE_H45011 1
171 #endif
172 
173 
174 #if !OPAL_T120DATA
175  #define H323_DISABLE_GCC 1
176  #define H323_DISABLE_MCS 1
177 #endif // OPAL_T120DATA
178 
179 
180 #if !OPAL_H501
181  #define H323_DISABLE_H501 1
182 #endif
183 
184 
186 //
187 // Various options
188 //
189 
190 #define OPAL_STATISTICS 1
191 #define OPAL_RTCP_XR 1
192 /* #undef GCC_HAS_CLZ */
193 
194 #define OPAL_HAS_MIXER 1
195 #if OPAL_PTLIB_AUDIO
196  #define OPAL_HAS_PCSS 1
197 #endif
198 
199 
201 //
202 // Media support
203 //
204 
205 // G.711 Packet Loss Concealment
206 #define OPAL_G711PLC 1
207 
208 #if OPAL_VIDEO
209  // Uncompressed video over RTP
210  #define OPAL_RFC4175 1
211 
212  // JPEG over RTP
213 /* #undef OPAL_RFC2435 */
214 
215  #if OPAL_RFC2435
216  #if defined(_MSC_VER)
217  #define JPEGLIB_LIBRARY "@JPEGLIB_DIR@/../lib/jpeg.lib"
218  #pragma include_alias(<jpeglib.h>, <@JPEGLIB_DIR@/jpeglib.h>)
219  #endif
220  #endif
221 #endif
222 
223 
224 // T.38 Fax
225 #define OPAL_T38_CAPABILITY 1
226 
227 #if OPAL_T38_CAPABILITY
228  #if OPAL_PTLIB_ASN
229  #define OPAL_FAX 1
230  #endif
231 #endif
232 
233 #if !OPAL_FAX
234  #define H323_DISABLE_T38 1
235 #endif
236 
237 
238 // Instant Messaging
239 #define OPAL_HAS_MSRP 1
240 #if OPAL_SIP
241  #define OPAL_HAS_SIPIM 1
242 #endif
243 #define OPAL_HAS_RFC4103 1
244 
245 #define OPAL_HAS_IM (OPAL_HAS_SIPIM || OPAL_HAS_MSRP || OPAL_HAS_RFC4103)
246 
247 
248 // Far end camera control
249 #define OPAL_HAS_H224 1
250 #define OPAL_HAS_H281 1
251 
252 
253 // Use system Speex audio codec
254 /* #undef OPAL_SYSTEM_SPEEX */
255 /* #undef OPAL_HAVE_SPEEX_SPEEX_H */
256 /* #undef OPAL_SPEEX_FLOAT_NOISE */
257 
258 
260 //
261 // VoiceTronic VPB Line Interface Devide support
262 //
263 
264 #if OPAL_LID
265 /* #undef HAS_VPB */
266 
267  #if HAS_VPB
268  #if defined(_MSC_VER)
269  #pragma include_alias(<vpbapi.h>, <@VPB_DIR@/src/vpbapi.h>)
270  #define VPB_LIBRARY "@VPB_DIR@/win32/libvpb/Debug/libvpb.lib"
271  #endif
272  #endif
273 #endif
274 
275 
277 //
278 // libSRTP support
279 //
280 
281 /* Temporarily disabled as is currently broken, doesn't work,
282  probably doesn't even compile, need to sort out API to enable/disable,
283  add SDP and H.245 handling, and link into libsrtp
284 */
285 //#undef HAS_LIBSRTP
286 
287 #if HAS_LIBSRTP && !OPAL_ZRTP && !defined(_WIN32_WCE)
288 
289  #define OPAL_SRTP 1
290 
291  #if defined(_MSC_VER)
292 
293  #pragma include_alias("srtp/srtp.h", "@LIBSRTP_DIR@/include/srtp.h")
294  #pragma include_alias(<srtp/include/srtp.h>, <@LIBSRTP_DIR@/include/srtp.h>)
295  #pragma include_alias("crypto_kernel.h", "@LIBSRTP_DIR@/crypto/include/crypto_kernel.h")
296  #pragma include_alias("rdbx.h", "@LIBSRTP_DIR@/crypto/include/rdbx.h")
297  #pragma include_alias("rdb.h", "@LIBSRTP_DIR@/crypto/include/rdb.h")
298  #pragma include_alias("integers.h", "@LIBSRTP_DIR@/crypto/include/integers.h")
299 
300  #ifdef _DEBUG
301  #define LIBSRTP_LIBRARY "@LIBSRTP_DIR@/Debug/libsrtp.lib"
302  #else
303  #define LIBSRTP_LIBRARY "@LIBSRTP_DIR@/Release/libsrtp.lib"
304  #endif
305  #endif
306 #endif
307 
308 
310 //
311 // libZRTP support
312 //
313 
314 /* Temporarily disabled as is currently broken, doesn't work,
315  probably doesn't even compile, need to sort out API to enable/disable as
316  well as getting the pass code back to user, and link into libzrtp
317 */
318 //#undef HAS_LIBZRTP
319 
320 #if defined(OPAL_SRTP) && defined(HAS_LIBZRTP) && !defined(_WIN32_WCE)
321 
322  #define OPAL_ZRTP 1
323 
324  #if defined(_MSC_VER)
325 
326  #ifdef _DEBUG
327  #define LIBZRTP_LIBRARY "@LIBZRTP_DIR@/Debug/libzrtp.lib"
328  #else
329  #define LIBZRTP_LIBRARY "@LIBZRTP_DIR@/Release/libzrtp.lib"
330  #endif
331 
332  #pragma comment(lib, LIBZRTP_LIBRARY)
333 
334  #pragma include_alias("WINCONFIG/config.h", "@LIBZRTP_DIR@/srtp_win32k/WINCONFIG/config.h")
335  #pragma include_alias("WINCONFIG\config.h", "@LIBZRTP_DIR@/srtp_win32k/WINCONFIG/config.h")
336 
337  #pragma include_alias(<zrtp.h>, <@LIBZRTP_DIR@/include/zrtp.h>)
338  #pragma include_alias(<zrtp_log.h>, <@LIBZRTP_DIR@/include/zrtp_log.h>)
339  #pragma include_alias(<zrtp_types.h>, <@LIBZRTP_DIR@/include/zrtp_types.h>)
340  #pragma include_alias(<zrtp_crypto.h>, <@LIBZRTP_DIR@/include/zrtp_crypto.h>)
341  #pragma include_alias(<zrtp_protocol.h>, <@LIBZRTP_DIR@/include/zrtp_protocol.h>)
342  #pragma include_alias(<zrtp_string.h>, <@LIBZRTP_DIR@/include/zrtp_string.h>)
343  #pragma include_alias(<zrtp_iface.h>, <@LIBZRTP_DIR@/include/zrtp_iface.h>)
344  #pragma include_alias(<zrtp_error.h>, <@LIBZRTP_DIR@/include/zrtp_error.h>)
345  #pragma include_alias(<zrtp_net.h>, <@LIBZRTP_DIR@/include/zrtp_net.h>)
346  #pragma include_alias(<zrtp_system.h>, <@LIBZRTP_DIR@/include/zrtp_system.h>)
347  #pragma include_alias("bn.h", "@LIBZRTP_DIR@/bnlib/bn.h")
348  #pragma include_alias(<bn.h>, <@LIBZRTP_DIR@/bnlib/bn.h>)
349  #pragma include_alias("bnsize00.h", "@LIBZRTP_DIR@/bnlib/bnsize00.h")
350  #pragma include_alias(<bnsize00.h>, <@LIBZRTP_DIR@/bnlib/bnsize00.h>)
351 
352  #pragma include_alias("aes.h", "@LIBZRTP_DIR@/bgaes/aes.h")
353  #pragma include_alias("sha2.h", "@LIBZRTP_DIR@/bgaes/sha2.h")
354 
355  #pragma include_alias("zrtp_win_config.h", "@LIBZRTP_DIR@/config/zrtp_win_config.h")
356 
357 
358  // ZRTP includes SRTP, so include SRTP headers
359 
360  #pragma include_alias("srtp.h", "@LIBZRTP_DIR@/srtp_win32k/include/srtp.h")
361  #pragma include_alias(<srtp.h>, <@LIBZRTP_DIR@/srtp_win32k/include/srtp.h>)
362  #pragma include_alias("srtp/srtp.h", "@LIBZRTP_DIR@/srtp_win32k/include/srtp.h")
363  #pragma include_alias(<srtp/include/srtp.h>, <@LIBZRTP_DIR@/srtp_win32k/include/srtp.h>)
364  #pragma include_alias("crypto_kernel.h", "@LIBZRTP_DIR@/srtp_win32k/crypto/include/crypto_kernel.h")
365  #pragma include_alias("rdbx.h", "@LIBZRTP_DIR@/srtp_win32k/crypto/include/rdbx.h")
366  #pragma include_alias("rdb.h", "@LIBZRTP_DIR@/srtp_win32k/crypto/include/rdb.h")
367  #pragma include_alias("integers.h", "@LIBZRTP_DIR@/srtp_win32k/crypto/include/integers.h")
368 
369  // end of SRTP headers
370 
371  #endif
372 #endif
373 
374 
376 //
377 // Java JNI support
378 //
379 
380 /* #undef OPAL_JAVA */
381 
382 #if OPAL_JAVA
383  #if defined(_MSC_VER)
384  #pragma include_alias(<jni.h>, <@JAVA_DIR@/include/jni.h>)
385  #pragma include_alias("jni_md.h", "@JAVA_DIR@/include/win32/jni_md.h")
386  #endif
387 #endif
388 
389 
391 //
392 // Ruby support
393 //
394 
395 #if !defined(_WIN32_WCE)
396 /* #undef OPAL_RUBY */
397 #endif
398 
399 #if OPAL_RUBY
400 
401  #if defined(_MSC_VER)
402  #define RUBY_MSC_VER 1200
403 
404  #pragma include_alias(<ruby.h>, <@RUBY_DIR@/ruby.h>)
405  #pragma include_alias("ruby/config.h", "@RUBY_DIR@/i386-mswin32/ruby/config.h")
406  #pragma include_alias("ruby/io.h", "@RUBY_DIR@/ruby/io.h")
407  #pragma include_alias("ruby/encoding.h", "@RUBY_DIR@/ruby/encoding.h")
408  #pragma include_alias("ruby/oniguruma.h", "@RUBY_DIR@/ruby/oniguruma.h")
409 
410  #define RUBY_LIBRARY "@RUBY_DIR@/../../lib/msvcrt-ruby191.lib"
411  #endif
412 
413 #endif
414 
415 
416 #endif // OPAL_BUILDOPTS_H
417 
418 
419 // End Of File ///////////////////////////////////////////////////////////////