summaryrefslogtreecommitdiff
path: root/libraries/base/configure.ac
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2022-04-01 13:28:22 -0400
committerBen Gamari <ben@smart-cactus.org>2022-04-07 09:42:42 -0400
commitfcef9a175f810e7bfccbae9bf9e79b2b95da17ab (patch)
treef6abbd79400d296cd03a3022e133c2b48dc9e951 /libraries/base/configure.ac
parent9eeaeca4e95d58f362737bceead0ae2e16bcbbbb (diff)
downloadhaskell-fcef9a175f810e7bfccbae9bf9e79b2b95da17ab.tar.gz
configure: Make environ decl check more robust
Some platforms (e.g. Windows/clang64) declare `environ` in `<stdlib.h>`, not `<unistd.h>`
Diffstat (limited to 'libraries/base/configure.ac')
-rw-r--r--libraries/base/configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/base/configure.ac b/libraries/base/configure.ac
index e034549476..6fc96d92f4 100644
--- a/libraries/base/configure.ac
+++ b/libraries/base/configure.ac
@@ -189,6 +189,8 @@ FP_CHECK_CONSTS([SIGINT], [
dnl ** can we open files in binary mode?
FP_CHECK_CONST([O_BINARY], [#include <fcntl.h>], [0])
+FP_CHECK_ENVIRON
+
# We don't use iconv or libcharset on Windows, but if configure finds
# them then it can cause problems. So we don't even try looking if
# we are on Windows.