summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2012-04-29 16:43:09 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-04 20:20:07 -0700
commitf5b50af4324186962e258ffe9be78d5ee4681982 (patch)
tree9da6796603d69863dec73a57ff49fa8844943e7a
parent52e1b5cc3b6de76ccf4285b55652474a522ed9a8 (diff)
configure: check if issetugid is declared
GNU/kFreeBSD has issetugid in libc (for legacy apps?), but doesn't declare it anywhere, causing gcc to error out with -Werror=implicit-function-declaration. Use AC_CHECK_DECL in addition to AC_CHECK_FUNC so we disable this code instead of failing to build it. Debian bug#669670 <http://bugs.debian.org/669670> Signed-off-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index aaec9681..c91234f5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -223,8 +223,9 @@ 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], [XLOCALEDIR_IS_SAFE="yes"]
+ AC_DEFINE(HASSETUGID,1,[Has issetugid() function])))
AC_CHECK_FUNC([getresuid], [XLOCALEDIR_IS_SAFE="yes"]
AC_DEFINE(HASGETRESUID,1,[Has getresuid() & getresgid() functions]))
# Used in Font.c