You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Fred Sanchez <ws...@apple.com> on 1997/09/10 22:09:07 UTC
[PATCH] Configure: Add Rhapsody
This is a patch to GuessOS and Configure so that they recognize Rhapsody.
The OS name returned is either i386-apple-rhapsody5.0 or
powerpc-apple-rhapsody5.0 which is consistent with the changes to GNU
autoconf we're using at Apple.
Note that there is a known bug in the current build of Rhapsody
which causes the filesystem to hang if you create a shell command
with several pipes, such as the sed command in Configure. This will
cause Configure, when run, to hang your machine. Since that might not
get fixed by the time we ship Developer (sorry), you will need to
break up the sed command to write to a temp file between calls. I
didn't include that here since it's silly to do on other OS's.
-Fred
Apple Rhapsody Core OS
wsanchez@apple.com
Index: ThirdParty/apache/src/Configure
diff -c ThirdParty/apache/src/Configure:1.1.1.1
ThirdParty/apache/src/Configure:1.3
*** ThirdParty/apache/src/Configure:1.1.1.1 Thu Aug 14 11:08:04 1997
--- ThirdParty/apache/src/Configure Wed Sep 3 20:23:07 1997
***************
*** 339,344 ****
--- 345,355 ----
DEF_WANTHSREGEX=yes
RANLIB="sleep 5; /bin/ranlib"
# ranlib on most NeXTs sets the time wrong. 5 secs wait does
much good
+ ;;
+ *-apple-rhapsody*)
+ OS='Rhapsody'
+ CFLAGS="$CFLAGS -DRHAPSODY"
+ DEF_WANTHSREGEX=yes
;;
*-dec-osf*)
OS='DEC OSF/1'
Index: ThirdParty/apache/src/helpers/GuessOS
diff -c ThirdParty/apache/src/helpers/GuessOS:1.1.1.1
ThirdParty/apache/src/helpers/GuessOS:1.2
*** ThirdParty/apache/src/helpers/GuessOS:1.1.1.1 Thu Aug 14
11:08:12 1997
--- ThirdParty/apache/src/helpers/GuessOS Mon Aug 25 15:31:53 1997
***************
*** 204,209 ****
--- 204,217 ----
echo "${MACHINE}-tandem-sysv4"; exit 0;
;;
+ Rhapsody:*:*:*)
+ case "${MACHINE}" in
+ "Power Macintosh")
+ MACHINE=powerpc ;;
+ esac
+ echo "powerpc-apple-rhapsody${RELEASE}"; exit 0
+ ;;
+
esac
#
Re: [PATCH] Configure: Add Rhapsody
Posted by Alexei Kosut <ak...@organic.com>.
On Wed, 10 Sep 1997, Fred Sanchez wrote:
> This is a patch to GuessOS and Configure so that they recognize Rhapsody.
>
> The OS name returned is either i386-apple-rhapsody5.0 or
> powerpc-apple-rhapsody5.0 which is consistent with the changes to GNU
> autoconf we're using at Apple.
I don't see how the patch you included can return i386-apple-rhapsody. Or
am I missing something? (not having used the OS myself, of course)
[...]
> + Rhapsody:*:*:*)
> + case "${MACHINE}" in
> + "Power Macintosh")
> + MACHINE=powerpc ;;
> + esac
> + echo "powerpc-apple-rhapsody${RELEASE}"; exit 0
> + ;;
> +
-- Alexei Kosut <ak...@organic.com>