aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-12-04 15:01:11 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-12-04 15:01:11 +0900
commitcbe225ddce5627c59902cfdb9524dead675d19d0 (patch)
tree4587edeca96cc30598d054cf57b1ce2388140a40 /src
parent124480c8af13a9cb82d64f9103c55ae64f36ceda (diff)
downloadgnunet-cbe225ddce5627c59902cfdb9524dead675d19d0.tar.gz
gnunet-cbe225ddce5627c59902cfdb9524dead675d19d0.zip
BUILD: Move gnunet_config.h to gnunet_private_config.h and add new, partially generated gnunet_config.h
Diffstat (limited to 'src')
-rw-r--r--src/gns/nss/nss_gns.c2
-rw-r--r--src/include/.gitignore1
-rw-r--r--src/include/Makefile.am1
-rw-r--r--src/include/gnunet_config.h.in51
-rw-r--r--src/include/platform.h2
-rw-r--r--src/nat/gnunet-helper-nat-client.c2
-rw-r--r--src/nat/gnunet-helper-nat-server.c2
-rw-r--r--src/transport/gnunet-helper-transport-bluetooth.c2
-rw-r--r--src/transport/gnunet-helper-transport-wlan.c2
9 files changed, 59 insertions, 6 deletions
diff --git a/src/gns/nss/nss_gns.c b/src/gns/nss/nss_gns.c
index ff34cedd5..b05cfff55 100644
--- a/src/gns/nss/nss_gns.c
+++ b/src/gns/nss/nss_gns.c
@@ -19,7 +19,7 @@
19 USA. 19 USA.
20 ***/ 20 ***/
21 21
22#include <gnunet_config.h> 22#include <gnunet_private_config.h>
23#include <unistd.h> 23#include <unistd.h>
24#include <errno.h> 24#include <errno.h>
25#include <string.h> 25#include <string.h>
diff --git a/src/include/.gitignore b/src/include/.gitignore
index 9da6d8eea..9529b45c3 100644
--- a/src/include/.gitignore
+++ b/src/include/.gitignore
@@ -2,3 +2,4 @@ gnunet_error_codes.h
2gnu_name_system_record_flags.h 2gnu_name_system_record_flags.h
3gnu_name_system_record_types.h 3gnu_name_system_record_types.h
4gnunet_signatures.h 4gnunet_signatures.h
5!gnunet_config.h.in
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
index 19450968c..fa964f672 100644
--- a/src/include/Makefile.am
+++ b/src/include/Makefile.am
@@ -11,6 +11,7 @@ EXTRA_DIST = \
11 11
12gnunetinclude_HEADERS = \ 12gnunetinclude_HEADERS = \
13 platform.h \ 13 platform.h \
14 gnunet_config.h \
14 gnunet_platform.h \ 15 gnunet_platform.h \
15 gettext.h \ 16 gettext.h \
16 compat.h \ 17 compat.h \
diff --git a/src/include/gnunet_config.h.in b/src/include/gnunet_config.h.in
new file mode 100644
index 000000000..4eb00388f
--- /dev/null
+++ b/src/include/gnunet_config.h.in
@@ -0,0 +1,51 @@
1/*
2 This file is part of GNUnet
3 Copyright (C) 2022 GNUnet e.V.
4
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20
21#ifndef GNUNET_CONFIG_H
22#define GNUNET_CONFIG_H
23
24/**
25 * @author Martin Schanzenbach
26 *
27 * @file
28 * Convenience header including public (!) information on the
29 * installed GNUnet configuration.
30 *
31 */
32
33/* The version of GNUnet */
34#define GNUNET_VERSION "@gnunet_version@"
35
36/* Major version */
37#define GNUNET_MAJOR_VERSION 0
38
39/* Micro version */
40#define GNUNET_MINOR_VERSION 18
41
42/* Mico version */
43#define GNUNET_MICRO_VERSION 2
44
45/* Set to 1 is this is an experimental build */
46#define GNUNET_EXPERIMENTAL @enable_experimental@
47
48/* Define to 1 if GnuTLS has DANE support */
49#define GNUNET_CURL_GNUTLS @curl_gnutls@
50
51#endif
diff --git a/src/include/platform.h b/src/include/platform.h
index e44f9f51a..deca323d1 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -34,7 +34,7 @@
34#ifndef HAVE_USED_CONFIG_H 34#ifndef HAVE_USED_CONFIG_H
35#define HAVE_USED_CONFIG_H 35#define HAVE_USED_CONFIG_H
36#if HAVE_CONFIG_H 36#if HAVE_CONFIG_H
37#include "gnunet_config.h" 37#include "gnunet_private_config.h"
38#endif 38#endif
39#endif 39#endif
40 40
diff --git a/src/nat/gnunet-helper-nat-client.c b/src/nat/gnunet-helper-nat-client.c
index 0271d6e0f..b86ab591c 100644
--- a/src/nat/gnunet-helper-nat-client.c
+++ b/src/nat/gnunet-helper-nat-client.c
@@ -43,7 +43,7 @@
43 */ 43 */
44#if HAVE_CONFIG_H 44#if HAVE_CONFIG_H
45/* Just needed for HAVE_SOCKADDR_IN_SIN_LEN test macro! */ 45/* Just needed for HAVE_SOCKADDR_IN_SIN_LEN test macro! */
46#include "gnunet_config.h" 46#include "gnunet_private_config.h"
47#else 47#else
48#define _GNU_SOURCE 48#define _GNU_SOURCE
49#endif 49#endif
diff --git a/src/nat/gnunet-helper-nat-server.c b/src/nat/gnunet-helper-nat-server.c
index 38d7d22c8..0ea68d46b 100644
--- a/src/nat/gnunet-helper-nat-server.c
+++ b/src/nat/gnunet-helper-nat-server.c
@@ -44,7 +44,7 @@
44 */ 44 */
45#if HAVE_CONFIG_H 45#if HAVE_CONFIG_H
46/* Just needed for HAVE_SOCKADDR_IN_SIN_LEN test macro! */ 46/* Just needed for HAVE_SOCKADDR_IN_SIN_LEN test macro! */
47#include "gnunet_config.h" 47#include "gnunet_private_config.h"
48#else 48#else
49#define _GNU_SOURCE 49#define _GNU_SOURCE
50#endif 50#endif
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c
index 9706f57ab..2fc61cd91 100644
--- a/src/transport/gnunet-helper-transport-bluetooth.c
+++ b/src/transport/gnunet-helper-transport-bluetooth.c
@@ -19,7 +19,7 @@
19 19
20 SPDX-License-Identifier: AGPL3.0-or-later 20 SPDX-License-Identifier: AGPL3.0-or-later
21 */ 21 */
22#include "gnunet_config.h" 22#include "gnunet_private_config.h"
23#include "gnunet_platform.h" 23#include "gnunet_platform.h"
24 24
25#include <bluetooth/bluetooth.h> 25#include <bluetooth/bluetooth.h>
diff --git a/src/transport/gnunet-helper-transport-wlan.c b/src/transport/gnunet-helper-transport-wlan.c
index 0f93ca918..e2b133c06 100644
--- a/src/transport/gnunet-helper-transport-wlan.c
+++ b/src/transport/gnunet-helper-transport-wlan.c
@@ -109,7 +109,7 @@
109/* 109/*
110 * parts taken from aircrack-ng, parts changend. 110 * parts taken from aircrack-ng, parts changend.
111 */ 111 */
112#include "gnunet_config.h" 112#include "gnunet_private_config.h"
113#include "gnunet_platform.h" 113#include "gnunet_platform.h"
114#include <netpacket/packet.h> 114#include <netpacket/packet.h>
115#include <linux/if_ether.h> 115#include <linux/if_ether.h>