1/* -*- C -*- */
2/*******************************************************************************
3 *
4 * Copyright (c) 2006 Rémi Turboult <r3mi@users.sourceforge.net>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:
9 *
10 * * Redistributions of source code must retain the above copyright notice,
11 * this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above copyright notice,
13 * this list of conditions and the following disclaimer in the documentation
14 * and/or other materials provided with the distribution.
15 * * Neither name of Intel Corporation nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 ******************************************************************************/
32
33#ifndef UPNP_CONFIG_H
34#define UPNP_CONFIG_H
35
36/***************************************************************************
37 * Library version
38 ***************************************************************************/
39
40/** The library version (string) e.g. "1.3.0" */
41#undef UPNP_VERSION_STRING
42
43/** Major version of the library */
44#undef UPNP_VERSION_MAJOR
45
46/** Minor version of the library */
47#undef UPNP_VERSION_MINOR
48
49/** Patch version of the library */
50#undef UPNP_VERSION_PATCH
51
52/** The library version (numeric) e.g. 10300 means version 1.3.0 */
53#define UPNP_VERSION \
54	((UPNP_VERSION_MAJOR * 100 + UPNP_VERSION_MINOR) * 100 + \
55		UPNP_VERSION_PATCH)
56
57/***************************************************************************
58 * Large file support
59 ***************************************************************************/
60
61#undef UPNP_LARGEFILE_SENSITIVE
62
63/***************************************************************************
64 * Library optional features
65 ***************************************************************************/
66
67/*
68 * The following defines can be tested in order to know which
69 * optional features have been included in the installed library.
70 */
71
72/** Defined to 1 if the library has been compiled with client API enabled
73 *  (i.e. configure --enable-client) */
74#undef UPNP_HAVE_CLIENT
75
76/** Defined to 1 if the library has been compiled with device API enabled
77 *  (i.e. configure --enable-device) */
78#undef UPNP_HAVE_DEVICE
79
80/** Defined to 1 if the library has been compiled with integrated web server
81 *  (i.e. configure --enable-webserver --enable-device) */
82#undef UPNP_HAVE_WEBSERVER
83
84/** Defined to 1 if the library has been compiled with the SSDP part enabled
85 *  (i.e. configure --enable-ssdp) */
86#undef UPNP_HAVE_SSDP
87
88/** Defined to 1 if the library has been compiled with optional SSDP headers
89 *  support (i.e. configure --enable-optssdp) */
90#undef UPNP_HAVE_OPTSSDP
91
92/** Defined to 1 if the library has been compiled with the SOAP part enabled
93 *  (i.e. configure --enable-soap) */
94#undef UPNP_HAVE_SOAP
95
96/** Defined to 1 if the library has been compiled with the GENA part enabled
97 *  (i.e. configure --enable-gena) */
98#undef UPNP_HAVE_GENA
99
100/** Defined to 1 if the library has been compiled with helper API
101 *  (i.e. configure --enable-tools) : <upnp/upnptools.h> file is available */
102#undef UPNP_HAVE_TOOLS
103
104/** Defined to 1 if the library has been compiled with ipv6 support
105 *  (i.e. configure --enable-ipv6) */
106#undef UPNP_ENABLE_IPV6
107
108/** Defined to 1 if the library has been compiled with unspecified SERVER
109 * header (i.e. configure --enable-unspecified_server) */
110#undef UPNP_ENABLE_UNSPECIFIED_SERVER
111
112/** Defined to 1 if the library has been compiled with OpenSSL support
113 *  (i.e. configure --enable-open_ssl) */
114#undef UPNP_ENABLE_OPEN_SSL
115
116/** Defined to 1 if the library has been compiled to use blocking TCP socket
117 * calls (i.e. configure --enable_blocking_tcp_connections) */
118#undef UPNP_ENABLE_BLOCKING_TCP_CONNECTIONS
119
120/** Defined to 1 if the library has been compiled to support filesystem writes
121 * on POST (i.e. configure --enable-postwrite) */
122#undef UPNP_ENABLE_POST_WRITE
123
124/** Defined to 1 if the library has been compiled bind the miniserver socket
125 * with SO_REUSEADDR (i.e. configure --enable_reuseaddr) */
126#undef UPNP_MINISERVER_REUSEADDR
127
128#endif /* UPNP_CONFIG_H */
129