[PATCH] Port to Darwin / Mac OS X
Wilfredo Sanchez
wsanchez at apple.com
Fri Dec 8 22:28:12 EST 2000
Pretty boring port. :) Simply update config.guess and
config.sub to the latest versions, or apply this patch.
Thanks,
-Fred
Index: config.guess
===================================================================
RCS file: /cvs/Darwin/Commands/Other/sudo/sudo/config.guess,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -u -d -b -w -r1.1.1.1 -r1.3
--- config.guess 2000/03/14 04:55:43 1.1.1.1
+++ config.guess 2000/03/14 05:27:44 1.3
@@ -390,6 +390,15 @@
*:OpenBSD:*:*)
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit 0 ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit 0 ;;
+ *:Darwin:*:* | *:"Mac OS":*:*)
+ echo `uname -p`-apple-darwin${UNAME_RELEASE}
+ exit 0 ;;
i*:CYGWIN*:*)
echo i386-pc-cygwin32
exit 0 ;;
Index: config.sub
===================================================================
RCS file: /cvs/Darwin/Commands/Other/sudo/sudo/config.sub,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -b -w -r1.1.1.1 -r1.2
--- config.sub 2000/03/14 04:55:43 1.1.1.1
+++ config.sub 2000/03/14 05:19:09 1.2
@@ -693,7 +693,7 @@
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -linux-gnu* | -uxpv*)
+ | -linux-gnu* | -uxpv* | -rhapsody* | -darwin* )
# Remember, each alternative MUST END IN *, to match a version number.
;;
-linux*)
Wilfredo Sánchez, wsanchez at apple.com
Open Source Engineering Lead
Apple Computer, Inc., Core Operating System Group
1 Infinite Loop, Cupertino, CA 94086, 408.974-5174
More information about the sudo-workers
mailing list