]> sjero.net Git - wget/blob - src/build_info.c
Automated merge.
[wget] / src / build_info.c
1 /* This stores global variables that are initialized with 
2    preprocessor declarations for output with the --version flag.
3
4    Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
5    2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6
7 This file is part of GNU Wget.
8
9 GNU Wget is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
13
14 GNU Wget is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with Wget.  If not, see <http://www.gnu.org/licenses/>.
21
22 Additional permission under GNU GPL version 3 section 7
23
24 If you modify this program, or any covered work, by linking or
25 combining it with the OpenSSL project's OpenSSL library (or a
26 modified version of that library), containing parts covered by the
27 terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
28 grants you additional permission to convey the resulting work.
29 Corresponding Source for a non-source form of such a combination
30 shall include the source code for the parts of OpenSSL used as well
31 as that of the covered work.  */
32
33 #include "wget.h"
34 #include <stdio.h>
35
36 const char* (compiled_features[]) =
37 {
38
39 #ifdef ENABLE_DIGEST
40   "+digest",
41 #else
42   "-digest",
43 #endif
44
45 #ifdef ENABLE_IPV6
46   "+ipv6",
47 #else
48   "-ipv6",
49 #endif
50
51 #ifdef ENABLE_NLS
52   "+nls",
53 #else
54   "-nls",
55 #endif
56
57 #ifdef ENABLE_NTLM
58   "+ntlm",
59 #else
60   "-ntlm",
61 #endif
62
63 #ifdef ENABLE_OPIE
64   "+opie",
65 #else
66   "-opie",
67 #endif
68
69 #ifdef HAVE_MD5
70 #ifdef HAVE_BUILTIN_MD5
71   "+md5/builtin", 
72 #elif HAVE_OPENSSL_MD5
73   "+md5/openssl",
74 #elif HAVE_SOLARIS_MD5
75   "+md5/solaris",
76 #else
77 #error "md5 set, but no library found!",
78 #endif
79 #else
80   "-md5",
81 #endif
82
83 #ifdef HAVE_SSL
84   "+https",
85 #else
86   "-https",
87 #endif
88
89 #ifdef HAVE_LIBGNUTLS
90   "+gnutls",
91 #else
92   "-gnutls",
93 #endif
94
95 #ifdef HAVE_LIBSSL
96   "+openssl",
97 #else
98   "-openssl",
99 #endif
100
101 #ifdef HAVE_GETTEXT
102   "+gettext",
103 #else
104   "-gettext",
105 #endif
106
107 #ifdef ENABLE_IRI
108   "+iri",
109 #else
110   "-iri",
111 #endif
112
113   /* sentinel value */
114   NULL
115 };
116
117