as per leif's patch - make the clearenv check nicer.

SVN revision: 76213
This commit is contained in:
Carsten Haitzler 2012-09-06 02:45:34 +00:00
parent 5b2d6ee087
commit baacb828c0
1 changed files with 1 additions and 8 deletions

View File

@ -201,6 +201,7 @@ if test "x$want_quicklaunch" != "xno"; then
have_fork="yes"
AC_DEFINE(HAVE_FORK)
])
AC_CHECK_FUNCS([clearenv])
fi
AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes" && test "x$have_dlopen" = "xyes"])
@ -732,14 +733,6 @@ extern char **environ;
AC_DEFINE(HAVE_ENVIRON, 1, [extern environ exists])
])
AC_TRY_COMPILE([
#include <stdlib.h>
], [
clearenv();
], [
AC_DEFINE(HAVE_CLEARENV, 1, [extern environ exists])
])
AC_OUTPUT([
Makefile
elementary.spec