aclocal: When checking for `environ', don't find `__environ'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 18 Feb 2006 18:36:06 +0000 (18:36 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 18 Feb 2006 18:36:06 +0000 (18:36 +0000)
We need to check for word boundaries on either side.

aclocal.glob

index a2ab1f6..bce4c97 100644 (file)
@@ -102,7 +102,7 @@ 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(environ
+[AC_EGREP_CPP([\<environ\>]
 [#include <sys/types.h>
 #if HAVE_UNISTD_H
 #include <unistd.h>