[PATCH 3/4] configure.ac: MinGW doesn't have setuid binaries either.

Jon TURNEY jon.turney at dronecode.org.uk
Wed Apr 25 05:11:33 PDT 2012


From: Ryan Pavlik <rpavlik at iastate.edu>

If the target platform isn't in a list of platforms we know don't use a
setuid binary, we try to test if we can chown something to root.

This test possibly won't give the right answer if we are cross-compiling,
which is common for the MinGW target.  This patch adds MinGW to the list
of platforms we know don't use a setuid binary.

Reviewed-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index c784819..4cb01f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -657,6 +657,7 @@ AC_MSG_CHECKING([to see if we can install the Xorg server as root])
 if test "x$SETUID" = "xauto" ; then
 	case $host_os in
 	    cygwin*)		SETUID="no"  ;;
+	    mingw*)		SETUID="no"  ;;
 	    darwin*)		SETUID="no"  ;;
 	    *)
 	   	case $host_cpu in
-- 
1.7.9



More information about the xorg-devel mailing list