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#cmakedefine UPNP_VERSION_STRING "${PUPNP_VERSION_STRING}"
42
43/** Major version of the library */
44#cmakedefine UPNP_VERSION_MAJOR ${PUPNP_VERSION_MAJOR}
45
46/** Minor version of the library */
47#cmakedefine UPNP_VERSION_MINOR ${PUPNP_VERSION_MINOR}
48#ifndef UPNP_VERSION_MINOR
49#	define UPNP_VERSION_MINOR 0
50#endif
51
52/** Patch version of the library */
53#cmakedefine UPNP_VERSION_PATCH ${PUPNP_VERSION_PATCH}
54#ifndef UPNP_VERSION_PATCH
55#	define UPNP_VERSION_PATCH 0
56#endif
57
58/** The library version (numeric) e.g. 10300 means version 1.3.0 */
59#define UPNP_VERSION \
60	((UPNP_VERSION_MAJOR * 100 + UPNP_VERSION_MINOR) * 100 + \
61		UPNP_VERSION_PATCH)
62
63/***************************************************************************
64 * Large file support
65 ***************************************************************************/
66
67#cmakedefine UPNP_LARGEFILE_SENSITIVE
68
69/***************************************************************************
70 * Library optional features
71 ***************************************************************************/
72
73/*
74 * The following defines can be tested in order to know which
75 * optional features have been included in the installed library.
76 */
77
78/** Defined to 1 if the library has been compiled with client API enabled
79 *  (i.e. configure --enable-client) */
80#cmakedefine UPNP_HAVE_CLIENT 1
81
82/** Defined to 1 if the library has been compiled with device API enabled
83 *  (i.e. configure --enable-device) */
84#cmakedefine UPNP_HAVE_DEVICE 1
85
86/** Defined to 1 if the library has been compiled with integrated web server
87 *  (i.e. configure --enable-webserver --enable-device) */
88#cmakedefine UPNP_HAVE_WEBSERVER 1
89
90/** Defined to 1 if the library has been compiled with the SSDP part enabled
91 *  (i.e. configure --enable-ssdp) */
92#cmakedefine UPNP_HAVE_SSDP 1
93
94/** Defined to 1 if the library has been compiled with optional SSDP headers
95 *  support (i.e. configure --enable-optssdp) */
96#cmakedefine UPNP_HAVE_OPTSSDP 1
97
98/** Defined to 1 if the library has been compiled with the SOAP part enabled
99 *  (i.e. configure --enable-soap) */
100#cmakedefine UPNP_HAVE_SOAP 1
101
102/** Defined to 1 if the library has been compiled with the GENA part enabled
103 *  (i.e. configure --enable-gena) */
104#cmakedefine UPNP_HAVE_GENA 1
105
106/** Defined to 1 if the library has been compiled with helper API
107 *  (i.e. configure --enable-tools) : <upnp/upnptools.h> file is available */
108#cmakedefine UPNP_HAVE_TOOLS 1
109
110/** Defined to 1 if the library has been compiled with ipv6 support
111 *  (i.e. configure --enable-ipv6) */
112#cmakedefine UPNP_ENABLE_IPV6 1
113
114/** Defined to 1 if the library has been compiled with unspecified SERVER
115 * header (i.e. configure --enable-unspecified_server) */
116#cmakedefine UPNP_ENABLE_UNSPECIFIED_SERVER 1
117
118/** Defined to 1 if the library has been compiled with OpenSSL support
119 *  (i.e. configure --enable-open_ssl) */
120#cmakedefine UPNP_ENABLE_OPEN_SSL 1
121
122/** Defined to 1 if the library has been compiled to use blocking TCP socket
123 * calls (i.e. configure --enable_blocking_tcp_connections) */
124#cmakedefine UPNP_ENABLE_BLOCKING_TCP_CONNECTIONS 1
125
126/** Defined to 1 if the library has been compiled to support filesystem writes
127 * on POST (i.e. configure --enable-postwrite) */
128#cmakedefine UPNP_ENABLE_POST_WRITE 1
129
130/** Defined to 1 if the library has been compiled bind the miniserver socket
131 * with SO_REUSEADDR (i.e. configure --enable_reuseaddr) */
132#cmakedefine UPNP_MINISERVER_REUSEADDR 1
133
134#endif /* UPNP_CONFIG_H */
135