summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2023-01-05 09:17:17 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-05 23:02:30 -0500
commitb2a2db04b24a4654261db8e0db6ad7bac1b3d7cf (patch)
tree188424c5d9a5b495d0df6b04207363d747c4960b /distrib
parent9e077999eb3d09af6f31eb92233d4d757ece75f8 (diff)
downloadhaskell-b2a2db04b24a4654261db8e0db6ad7bac1b3d7cf.tar.gz
Revert "configure: Drop uses of AC_PROG_CC_C99"
This reverts commit 7c6de18dd3151ead954c210336728e8686c91de6. Centos7 using a very old version of the toolchain (autotools-2.69) where the behaviour of these macros has not yet changed. I am reverting this without haste as it is blocking the 9.6 branch. Fixes #22704
Diffstat (limited to 'distrib')
-rw-r--r--distrib/configure.ac.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index 8b203be35d..6263db351d 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -111,6 +111,11 @@ FP_CPP_CMD_WITH_ARGS(HaskellCPPCmd, HaskellCPPArgs)
AC_SUBST([HaskellCPPCmd])
AC_SUBST([HaskellCPPArgs])
+FP_SET_CFLAGS_C99([CC],[CFLAGS],[CPPFLAGS])
+dnl FP_SET_CFLAGS_C99([CC_STAGE0],[CONF_CC_OPTS_STAGE0],[CONF_CPP_OPTS_STAGE0])
+FP_SET_CFLAGS_C99([CC],[CONF_CC_OPTS_STAGE1],[CONF_CPP_OPTS_STAGE1])
+FP_SET_CFLAGS_C99([CC],[CONF_CC_OPTS_STAGE2],[CONF_CPP_OPTS_STAGE2])
+
dnl ** Which ld to use?
dnl --------------------------------------------------------------
FIND_LD([$target],[GccUseLdOpt])