dnl -*-autoconf-*- dnl --- *@-mdw_DECL_ENVIRON-@* --- dnl dnl Author: Mark Wooding dnl dnl Synopsis: mdw_DECL_ENVIRON dnl dnl Arguments: --- dnl dnl Use: Searches for a declaration of the global `environ' variable. dnl If one is found in one of the `usual' places, DECL_ENVIRON dnl is defined as a preprocessor symbol. AC_DEFUN([mdw_DECL_ENVIRON], [AC_CACHE_CHECK([for declaration of \`environ'], mdw_cv_environ, [AC_EGREP_CPP([\], [#include #if HAVE_UNISTD_H #include #endif #if STDC_HEADERS #include #include #endif], [mdw_cv_environ=yes], [mdw_cv_environ=no])]) if test $mdw_cv_environ = yes; then AC_DEFINE([DECL_ENVIRON], [1], [Define if you have the `environ' vector of environment variables.]) fi])