sascha 00/01/11 09:28:29
Modified: src/os config.m4
Log:
Make OS selection work for non-UNIX cases
Revision Changes Path
1.3 +12 -5 apache-2.0/src/os/config.m4
Index: config.m4
===================================================================
RCS file: /home/cvs/apache-2.0/src/os/config.m4,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- config.m4 2000/01/11 13:11:12 1.2
+++ config.m4 2000/01/11 17:28:28 1.3
@@ -1,8 +1,15 @@
-AC_MSG_CHECKING(which OS this is)
+AC_MSG_CHECKING(for target platform)
-dnl ## XXX - I'm not sure, but this might not handle the non-Unix case yet
-OS=unix
+PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`
+
+case "$PLATFORM" in
+*beos*)
+ OS="beos";;
+*)
+ OS="unix";;
+esac
+
OS_DIR=os/$OS
-AC_MSG_RESULT([$OS])
-APACHE_FAST_OUTPUT(os/$OS/Makefile)
+AC_MSG_RESULT($OS)
+APACHE_FAST_OUTPUT($OS_DIR/Makefile)