aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-04-26 10:28:24 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-04-26 10:28:24 +0200
commiteeff7e335b56ce14dd6bc04136b0eee223cf6363 (patch)
treec0e2c8c868bcb941cff328e1096bdaf6719f8e15
parent87def80f115a05314b2ff25b9ed53a8112a5490f (diff)
downloadgnunet-eeff7e335b56ce14dd6bc04136b0eee223cf6363.tar.gz
gnunet-eeff7e335b56ce14dd6bc04136b0eee223cf6363.zip
-towards #6851: autotools 2.70
-rw-r--r--configure.ac23
-rw-r--r--po/POTFILES.in2
-rw-r--r--src/include/platform.h8
3 files changed, 9 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac
index 4a2f148ff..b82a72fec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,9 +19,9 @@
19# Process this file with autoconf to produce a configure script. 19# Process this file with autoconf to produce a configure script.
20# 20#
21# 21#
22AC_PREREQ(2.61) 22AC_PREREQ([2.71])
23# Checks for programs. 23# Checks for programs.
24AC_INIT([gnunet], [0.14.1], [bug-gnunet@gnu.org]) 24AC_INIT([gnunet],[0.14.1],[bug-gnunet@gnu.org])
25AC_CONFIG_AUX_DIR([build-aux]) 25AC_CONFIG_AUX_DIR([build-aux])
26 26
27# check for legacy option that is no longer supported (#5627) and fail hard 27# check for legacy option that is no longer supported (#5627) and fail hard
@@ -35,14 +35,13 @@ AC_ARG_WITH(nssdir,
35 35
36AC_CANONICAL_TARGET 36AC_CANONICAL_TARGET
37AC_CANONICAL_HOST 37AC_CANONICAL_HOST
38AC_CANONICAL_SYSTEM
39AM_INIT_AUTOMAKE 38AM_INIT_AUTOMAKE
40m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], [AM_DEFAULT_VERBOSITY=1 AC_SUBST(AM_DEFAULT_VERBOSITY)]) 39m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], [AM_DEFAULT_VERBOSITY=1 AC_SUBST(AM_DEFAULT_VERBOSITY)])
41AC_CONFIG_HEADERS([gnunet_config.h]) 40AC_CONFIG_HEADERS([gnunet_config.h])
42AH_TOP([#define _GNU_SOURCE 1]) 41AH_TOP([#define _GNU_SOURCE 1])
43AC_CONFIG_MACRO_DIR([m4]) 42AC_CONFIG_MACRO_DIR([m4])
44AC_PROG_AWK 43AC_PROG_AWK
45AC_PROG_CC_C99 44AC_PROG_CC
46AC_PROG_OBJC 45AC_PROG_OBJC
47AC_PROG_INSTALL 46AC_PROG_INSTALL
48AC_PROG_LN_S 47AC_PROG_LN_S
@@ -416,16 +415,7 @@ gcrypt=0
416NEED_LIBGCRYPT_API=1 415NEED_LIBGCRYPT_API=1
417NEED_LIBGCRYPT_VERSION=1.6.0 416NEED_LIBGCRYPT_VERSION=1.6.0
418 417
419# Check if we have libgcrypt >= 1.9. Some things do not work with it 418AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION", gcrypt=1)
420gcrypt19=0
421AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_API:1.9.0",
422 [AC_MSG_WARN(["Some subsystems do not work with gcrypt >=1.9.0"])
423 gcrypt=1
424 gcrypt19=1],
425 [AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION", gcrypt=1)]
426)
427AM_CONDITIONAL(HAVE_NOLIBGCRYPT19,
428 [test "$gcrypt19" = 0])
429AC_CHECK_DECLS([gcry_mpi_set_opaque_copy], [], [], [[#include <gcrypt.h>]]) 419AC_CHECK_DECLS([gcry_mpi_set_opaque_copy], [], [], [[#include <gcrypt.h>]])
430 420
431AS_IF([test $gcrypt = 0], 421AS_IF([test $gcrypt = 0],
@@ -1323,7 +1313,6 @@ LIBS=$SAVE_LIBS
1323 1313
1324# Checks for standard header files. 1314# Checks for standard header files.
1325AC_HEADER_DIRENT 1315AC_HEADER_DIRENT
1326AC_HEADER_STDC
1327 1316
1328# Check for headers that are ALWAYS required 1317# Check for headers that are ALWAYS required
1329AC_CHECK_HEADERS([fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h string.h unistd.h stdarg.h signal.h locale.h sys/stat.h sys/types.h],,AC_MSG_ERROR([Compiling GNUnet requires standard UNIX headers files: fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h string.h unistd.h stdarg.h signal.h locale.h sys/stat.h sys/types.h])) 1318AC_CHECK_HEADERS([fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h string.h unistd.h stdarg.h signal.h locale.h sys/stat.h sys/types.h],,AC_MSG_ERROR([Compiling GNUnet requires standard UNIX headers files: fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h string.h unistd.h stdarg.h signal.h locale.h sys/stat.h sys/types.h]))
@@ -1544,7 +1533,8 @@ AM_GNU_GETTEXT_VERSION([0.18.1])
1544AC_TYPE_PID_T 1533AC_TYPE_PID_T
1545AC_TYPE_SIZE_T 1534AC_TYPE_SIZE_T
1546AC_TYPE_MODE_T 1535AC_TYPE_MODE_T
1547AC_HEADER_TIME 1536AC_CHECK_HEADERS_ONCE([sys/time.h])
1537
1548AC_HEADER_STAT 1538AC_HEADER_STAT
1549AC_HEADER_STDBOOL 1539AC_HEADER_STDBOOL
1550AC_STRUCT_TM 1540AC_STRUCT_TM
@@ -1580,7 +1570,6 @@ AC_FUNC_MEMCMP
1580AC_FUNC_SELECT_ARGTYPES 1570AC_FUNC_SELECT_ARGTYPES
1581AC_FUNC_CHOWN 1571AC_FUNC_CHOWN
1582 1572
1583AC_TYPE_SIGNAL
1584AC_FUNC_STAT 1573AC_FUNC_STAT
1585AC_FUNC_STRFTIME 1574AC_FUNC_STRFTIME
1586AC_FUNC_VPRINTF 1575AC_FUNC_VPRINTF
diff --git a/po/POTFILES.in b/po/POTFILES.in
index dd36b7411..36f5e7734 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -313,6 +313,7 @@ src/reclaim/plugin_rest_reclaim.c
313src/reclaim/reclaim_api.c 313src/reclaim/reclaim_api.c
314src/reclaim/reclaim_attribute.c 314src/reclaim/reclaim_attribute.c
315src/reclaim/reclaim_credential.c 315src/reclaim/reclaim_credential.c
316src/reclaim/test.c
316src/regex/gnunet-daemon-regexprofiler.c 317src/regex/gnunet-daemon-regexprofiler.c
317src/regex/gnunet-regex-profiler.c 318src/regex/gnunet-regex-profiler.c
318src/regex/gnunet-regex-simulation-profiler.c 319src/regex/gnunet-regex-simulation-profiler.c
@@ -497,6 +498,7 @@ src/util/bandwidth.c
497src/util/benchmark.c 498src/util/benchmark.c
498src/util/bio.c 499src/util/bio.c
499src/util/buffer.c 500src/util/buffer.c
501src/util/child_management.c
500src/util/client.c 502src/util/client.c
501src/util/common_allocation.c 503src/util/common_allocation.c
502src/util/common_endian.c 504src/util/common_endian.c
diff --git a/src/include/platform.h b/src/include/platform.h
index 355bf0051..32bb637f1 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -109,16 +109,10 @@
109#if HAVE_SYS_PARAM_H 109#if HAVE_SYS_PARAM_H
110#include <sys/param.h> 110#include <sys/param.h>
111#endif 111#endif
112#if TIME_WITH_SYS_TIME
113#include <sys/time.h>
114#include <time.h>
115#else
116#if HAVE_SYS_TIME_H 112#if HAVE_SYS_TIME_H
117#include <sys/time.h> 113#include <sys/time.h>
118#else
119#include <time.h>
120#endif
121#endif 114#endif
115#include <time.h>
122#ifdef BSD 116#ifdef BSD
123#include <net/if.h> 117#include <net/if.h>
124#endif 118#endif