diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-12 10:55:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-12 10:55:10 -0500 |
commit | 954eeda619a59dae76144ad69967f0ed7341b564 (patch) | |
tree | 56ee86a7377fd159e3609344dcf16573fe2d818f /configure.ac | |
parent | 54069b97d39599fb54fb2fd29db44a104d7bd555 (diff) | |
download | tor-954eeda619a59dae76144ad69967f0ed7341b564.tar.gz tor-954eeda619a59dae76144ad69967f0ed7341b564.zip |
Stop checking whether environ is declared.
There seems to be pretty good evidence that it's always declared,
and that checking for it is pointless.
Closes ticket 19142.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac index bf721a9e64..afe40a407c 100644 --- a/configure.ac +++ b/configure.ac @@ -1533,17 +1533,6 @@ int main(int c, char **v) { puts(__FUNCTION__); }])], tor_cv_have_FUNCTION_macro=yes, tor_cv_have_FUNCTION_macro=no)) -AC_CACHE_CHECK([whether we have extern char **environ already declared], - tor_cv_have_environ_declared, - AC_COMPILE_IFELSE([AC_LANG_SOURCE([ -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif -#include <stdlib.h> -int main(int c, char **v) { char **t = environ; }])], - tor_cv_have_environ_declared=yes, - tor_cv_have_environ_declared=no)) - if test "$tor_cv_have_func_macro" = "yes"; then AC_DEFINE(HAVE_MACRO__func__, 1, [Defined if the compiler supports __func__]) fi @@ -1557,11 +1546,6 @@ if test "$tor_cv_have_FUNCTION_macro" = "yes"; then [Defined if the compiler supports __FUNCTION__]) fi -if test "$tor_cv_have_environ_declared" = "yes"; then - AC_DEFINE(HAVE_EXTERN_ENVIRON_DECLARED, 1, - [Defined if we have extern char **environ already declared]) -fi - # $prefix stores the value of the --prefix command line option, or # NONE if the option wasn't set. In the case that it wasn't set, make # it be the default, so that we can use it to expand directories now. |