mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 13:58:05 +00:00
isc and riscos changes
This commit is contained in:
parent
849adcde27
commit
2fada0f81b
12
aclocal.m4
vendored
12
aclocal.m4
vendored
@ -153,11 +153,23 @@ if test -n "$UNAMEPROG"; then
|
|||||||
echo "checking OS based on uname(1)"
|
echo "checking OS based on uname(1)"
|
||||||
OS="unknown"
|
OS="unknown"
|
||||||
OS=`$UNAMEPROG -s`
|
OS=`$UNAMEPROG -s`
|
||||||
|
# some OS's set -s the same as -n (BROKEN!!!)
|
||||||
|
if test "$OS" = `$UNAMEPROG -n`; then
|
||||||
|
# evil hack for ISC unix (svr4)
|
||||||
|
if test "`$UNAMEPROG -m`" = "i386"; then
|
||||||
|
OS="isc"
|
||||||
|
else
|
||||||
|
OS=`$UNAMEPROG -v`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# this is yucky but we want to make sure $OSREV is an int...
|
# this is yucky but we want to make sure $OSREV is an int...
|
||||||
OSREV=`$UNAMEPROG -r | $SEDPROG -e 's/^[[ \.0A-z]]*//' -e 's/\..*//'`
|
OSREV=`$UNAMEPROG -r | $SEDPROG -e 's/^[[ \.0A-z]]*//' -e 's/\..*//'`
|
||||||
|
|
||||||
if test "$OS" = "SunOS" -a "$OSREV" -ge 5 ; then
|
if test "$OS" = "SunOS" -a "$OSREV" -ge 5 ; then
|
||||||
OS="solaris"
|
OS="solaris"
|
||||||
|
elif test "$OS" = "UMIPS"
|
||||||
|
OS="riscos"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if test -z "$OS"; then
|
if test -z "$OS"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user