From 045d7546fc317deefc2d84d524a211ce6ab4869b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 3 Jun 2019 11:28:58 +0200 Subject: common: Make issetugid check simpler --- configure.ac | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 318db2b..492288a 100644 --- a/configure.ac +++ b/configure.ac @@ -115,21 +115,7 @@ if test "$os_unix" = "yes"; then AC_CHECK_FUNCS([setenv]) AC_CHECK_FUNCS([getpeereid]) AC_CHECK_FUNCS([getpeerucred]) - - # Check if issetugid() is available and has compatible behavior with OpenBSD - AC_CHECK_FUNCS([issetugid], [ - AC_CACHE_CHECK([whether issetugid() can detect setuid/setgid], - [ac_cv_issetugid_openbsd], - [ac_cv_issetugid_openbsd=no - AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[return issetugid ();]])], - [chmod 02777 ./conftest$EXEEXT; ./conftest$EXEEXT || ac_cv_issetugid_openbsd=yes], - [ac_cv_issetugid_openbsd=no], - [ac_cv_issetugid_openbsd="guessing no"])]) - if test "$ac_cv_issetugid_openbsd" = yes; then - AC_DEFINE([HAVE_ISSETUGID_OPENBSD], [1], [Whether issetugid() has compatible behavior with OpenBSD]) - fi - ]) + AC_CHECK_FUNCS([issetugid]) AC_CACHE_CHECK([for thread-local storage class], [ac_cv_tls_keyword], -- cgit v1.1