aboutsummaryrefslogtreecommitdiff
path: root/libX11/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/configure.ac')
-rw-r--r--libX11/configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/libX11/configure.ac b/libX11/configure.ac
index aaec96810..af0f34e78 100644
--- a/libX11/configure.ac
+++ b/libX11/configure.ac
@@ -223,8 +223,12 @@ AC_CHECK_HEADERS([sys/select.h])
AC_CHECK_FUNCS([strtol seteuid])
# Used in lcFile.c (see also --enable-xlocaledir settings below)
XLOCALEDIR_IS_SAFE="no"
-AC_CHECK_FUNC([issetugid], [XLOCALEDIR_IS_SAFE="yes"]
- AC_DEFINE(HASSETUGID,1,[Has issetugid() function]))
+AC_CHECK_DECL([issetugid])
+AC_CHECK_FUNC([issetugid])
+if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
+ XLOCALEDIR_IS_SAFE="yes"
+ AC_DEFINE(HASSETUGID,1,[Has issetugid() function])
+fi
AC_CHECK_FUNC([getresuid], [XLOCALEDIR_IS_SAFE="yes"]
AC_DEFINE(HASGETRESUID,1,[Has getresuid() & getresgid() functions]))
# Used in Font.c