summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-07-18 12:21:29 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-07-18 12:21:29 +0100
commit2ba8c17e722f0307c31b955963b472f7aff825de (patch)
treecad3e3c634b0ec6702202e23468f24da3ff293f0 /configure.in
parent07a841bc1acde95229ece2a0da4e2a70be5df624 (diff)
tweak euid check to use a simpler check instead
Diffstat (limited to 'configure.in')
-rwxr-xr-xconfigure.in5
1 files changed, 1 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index a714107cc515..88f09bbddc1e 100755
--- a/configure.in
+++ b/configure.in
@@ -1309,10 +1309,7 @@ dnl check for required programs (grep, awk, sed, bash)
dnl ===================================================================
cat /dev/null > warn
-# $EUID is a bash-ism, so we can't assume its existence. Unfortunately, some
-# shells (e.g. FreeBSD sh) will _always_ evaluate both sides of "test X -a Y",
-# so we use "test X && test Y" to avoid on-screen spewage about a "bad number".
-if test "z`uname -o 2>/dev/null`" = "zCygwin" && test "$EUID" -eq 0; then
+if test "z$EUID" = "z0" -a "z`uname -o 2>/dev/null`" = "zCygwin"; then
AC_MSG_ERROR([You must build LibreOffice as a normal user - not using an administrative account])
fi