summaryrefslogtreecommitdiffstats
path: root/distro/pkg/el-7/01-revert-AC_PROG_CC.patch
blob: fb49c003d4bb28859365676f337e42b8b128b291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Daniel Salzman <daniel.salzman@nic.cz>
Date: Sun, 20 Feb 2022 20:38:35 +0100
Subject: [PATCH] Revert "configure: upgrade from AC_PROG_CC_C99 to AC_PROG_CC"

diff --git a/configure.ac b/configure.ac
index 6506197ed..c7df7f815 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,8 @@ release_date=$($SED -n 's/^Knot DNS .* (\(.*\))/\1/p;q;' ${srcdir}/NEWS)
 AC_SUBST([RELEASE_DATE], $release_date)
 
 # Set compiler compatibility flags
-AC_PROG_CC
+AC_PROG_CC_C99 # AC_PROG_CC not supported by CentOS 7
+AM_PROG_CC_C_O # Needed by CentOS 7
 AC_PROG_CPP_WERROR
 
 # Set default CFLAGS