commit 925ec0e0ea03357537f22f5e5c774d2c5aa02ecf
parent 30fa80c0fc1a1996d72b4fb3dead58cf877395f9
Author: George Kadianakis <desnacked@riseup.net>
Date: Mon, 19 Apr 2021 17:32:56 +0300
Merge remote-tracking branch 'tor-gitlab/mr/355' into maint-0.4.5
Diffstat:
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/changes/autoconf-2.70 b/changes/autoconf-2.70
@@ -0,0 +1,3 @@
+ o Minor features (compilation):
+ - Make the autoconf script build correctly with autoconf versions 2.70
+ and later. Closes part of ticket 40335.
diff --git a/configure.ac b/configure.ac
@@ -441,7 +441,11 @@ AM_CONDITIONAL(BUILD_MANPAGE, [test "x$enable_manpage" != "xno"])
AM_CONDITIONAL(BUILD_HTML_DOCS, [test "x$enable_html_manual" != "xno"])
AM_PROG_CC_C_O
-AC_PROG_CC_C99
+
+dnl Before autoconf 2.70, AC_PROG_CC_C99 is supposedly necessary for some
+dnl compilers if you wan't C99 support. Starting with 2.70, it is obsolete and
+dnl forbidden.
+m4_version_prereq([2.70], [:], [AC_PROG_CC_C99])
AC_CACHE_CHECK([for Python 3], [tor_cv_PYTHON],
[AC_PATH_PROGS_FEATURE_CHECK([PYTHON], [ \