From 58d7c4b388067771e0ce1cf0dffd376c6b7fb9f2 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 30 Apr 2016 17:46:14 -0700 Subject: Remove use of __environ It has apparently never worked. Fixes #2988 --- configure.ac | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 87bf46b7..0236fc8a 100644 --- a/configure.ac +++ b/configure.ac @@ -675,30 +675,6 @@ else AC_MSG_RESULT(no) fi -# Check for __environ symbol -AC_MSG_CHECKING([for __environ symbol]) -AC_TRY_LINK( - [ - #include - ], - [ - extern char **__environ; - char **tmp = __environ; - exit(tmp!=0); - ], - have___environ=yes, - have___environ=no -) -if test "$have___environ" = yes; then - AC_MSG_RESULT(yes) - AC_DEFINE( - [HAVE___ENVIRON], - [1], - [Define to 1 if the __environ symbol is exported.] - ) -else - AC_MSG_RESULT(no) -fi # Check for sys_errlist AC_MSG_CHECKING([for sys_errlist array]) -- cgit v1.2.3