summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-11-27 12:01:35 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-11-27 12:01:35 (GMT)
commit93a1175bacd415061ac61107e58f24fe9ced82ff (patch)
tree5737c3ed9555248fad1a25d2cdc3d581af6af3c8 /configure.in
parent710671a72277b0196611cdfbb11b3cd0c49a93de (diff)
downloadcpython-93a1175bacd415061ac61107e58f24fe9ced82ff.zip
cpython-93a1175bacd415061ac61107e58f24fe9ced82ff.tar.gz
cpython-93a1175bacd415061ac61107e58f24fe9ced82ff.tar.bz2
Issue #13415: Test in configure if unsetenv() has a return value or not.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 9d7bfa6..454e468 100644
--- a/configure.in
+++ b/configure.in
@@ -2831,6 +2831,15 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
[AC_MSG_RESULT(no)
])
+AC_MSG_CHECKING(for broken unsetenv)
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include <stdlib.h>
+]], [[int res = unsetenv("DUMMY")]])],
+ [AC_MSG_RESULT(no)],
+ [AC_DEFINE(HAVE_BROKEN_UNSETENV, 1, Define if `unsetenv` does not return an int.)
+ AC_MSG_RESULT(yes)
+])
+
dnl check for true
AC_CHECK_PROGS(TRUE, true, /bin/true)