]> granicus.if.org Git - apache/commitdiff
Get OS/2 working with new configure system. Yay! :)
authorBrian Havard <bjh@apache.org>
Wed, 26 Jan 2000 07:51:45 +0000 (07:51 +0000)
committerBrian Havard <bjh@apache.org>
Wed, 26 Jan 2000 07:51:45 +0000 (07:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84522 13f79535-47bb-0310-9956-ffa450edef68

os/config.m4
os/os2/Makefile.in [new file with mode: 0644]
os/os2/config.m4 [new file with mode: 0644]
os/os2/os.h
os/os2/util_os2.c
server/mpm/spmt_os2/Makefile.in [new file with mode: 0644]
server/mpm/spmt_os2/config.m4 [new file with mode: 0644]
server/mpm/spmt_os2/spmt_os2.c

index 4bd86a3dd68aee6484d21ab833e41add7cde4822..0c2486c7b4072fd858a5d03f2e178cee8486bacd 100644 (file)
@@ -5,6 +5,8 @@ PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`
 case "$PLATFORM" in
 *beos*)
   OS="beos";;
+*pc-os2_emx*)
+  OS="os2";;
 *)
   OS="unix";;
 esac
diff --git a/os/os2/Makefile.in b/os/os2/Makefile.in
new file mode 100644 (file)
index 0000000..c03ac3f
--- /dev/null
@@ -0,0 +1,10 @@
+
+DEPTH     = ../..
+topsrcdir = @topsrcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
+
+LTLIBRARY_NAME    = libos.la
+LTLIBRARY_SOURCES = os.c os-inline.c util_os2.c iol_socket.c
+
+include $(topsrcdir)/build/ltlib.mk
diff --git a/os/os2/config.m4 b/os/os2/config.m4
new file mode 100644 (file)
index 0000000..d6bab02
--- /dev/null
@@ -0,0 +1,4 @@
+if test "$OS" = "os2" ; then
+  CFLAGS="$CFLAGS -DOS2 -O2"
+  LDFLAGS="$LDFLAGS -Zexe"
+fi
index 22355ab4cfc23964babb2a9109b4c55633a4577e..20ebcec9f432f4789c57385d786ac8f9f0371a52 100644 (file)
@@ -5,6 +5,8 @@
 #define HAVE_CANONICAL_FILENAME
 #define HAVE_DRIVE_LETTERS
 
+#include <apr_general.h>
+
 /*
  * This file in included in all Apache source code. It contains definitions
  * of facilities available on _this_ operating system (HAVE_* macros),
@@ -29,7 +31,7 @@ INLINE int ap_os_is_path_absolute(const char *file);
 extern int ap_os_is_path_absolute(const char *file);
 #endif
 
-API_EXPORT(char *) ap_os_canonical_filename(ap_context_t *p, const char *file);
+char *ap_os_canonical_filename(ap_context_t *p, const char *file);
 #define ap_os_case_canonical_filename(p,f) ap_os_canonical_filename(p,f)
 #define ap_os_systemcase_filename(p,f) ap_os_canonical_filename(p,f)
 /* FIXME: the following should be implemented on this platform */
index a49d3929755eced177e5caf58afbf579cbc34a1e..536c40946dd5a0274a0ef5c53da29d7b08b4582c 100644 (file)
@@ -3,6 +3,11 @@
 #include <os2.h>
 #include "httpd.h"
 #include "http_log.h"
+#include "os.h"
+#include <sys/time.h>
+#include <sys/signal.h>
+#include <ctype.h>
+#include <string.h>
 
 
 API_EXPORT(char *)ap_os_canonical_filename(ap_context_t *pPool, const char *szFile)
diff --git a/server/mpm/spmt_os2/Makefile.in b/server/mpm/spmt_os2/Makefile.in
new file mode 100644 (file)
index 0000000..081a91b
--- /dev/null
@@ -0,0 +1,10 @@
+
+DEPTH     = ../../..
+topsrcdir = @topsrcdir@
+srcdir    = @srcdir@
+VPATH     = @srcdir@
+
+LTLIBRARY_NAME    = libspmt_os2.la
+LTLIBRARY_SOURCES = spmt_os2.c
+
+include $(topsrcdir)/build/ltlib.mk
diff --git a/server/mpm/spmt_os2/config.m4 b/server/mpm/spmt_os2/config.m4
new file mode 100644 (file)
index 0000000..73b1b16
--- /dev/null
@@ -0,0 +1,6 @@
+if test "$MPM_NAME" = "spmt_os2" ; then
+    AC_CACHE_SAVE
+    APACHE_FAST_OUTPUT(modules/mpm/$MPM_NAME/Makefile)
+    CFLAGS="$CFLAGS -Zmt"
+    LDFLAGS="$LDFLAGS -Zmt"
+fi
index 907c5a76b499ddde13b9c8952d487ff3c309dd74..a60b96e09750ffe5ef3b8fa1c1a70ed7634c6849 100644 (file)
@@ -62,6 +62,7 @@
 #define INCL_DOSERRORS
 
 #include "httpd.h"
+#include "ap_config.h"
 #include "mpm_default.h"
 #include "http_main.h"
 #include "http_log.h"
@@ -76,6 +77,7 @@
 
 #include <os2.h>
 #include <stdlib.h>
+#include <sys/signal.h>
 
 /* config globals */
 
@@ -175,7 +177,6 @@ static void clean_child_exit(int code)
 }
 
 
-#if defined(USE_OS2SEM_SERIALIZED_ACCEPT)
 
 static HMTX lock_sem = -1;
 
@@ -242,7 +243,6 @@ static void accept_mutex_off(void)
     }
 }
 
-#endif
 
 
 /* On some architectures it's safe to do unserialized accept()s in the single