httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <grega...@raleigh.ibm.com>
Subject [PATCH] Enable dso on OS/390
Date Thu, 17 Aug 2000 14:39:23 GMT
This patch turns on dso support on OS/390.  It uses a new directory -
src/lib/apr/dso/os390/ to keep the OS unique dlopen stuff out of
unix/dso.[ch] in the interest of keeping them cleaner.

I originally used an autoconf test for dll.h (rather than the OS test)
to set $tempdso (which in turn sets APR_HAS_DSO).  Jeff convinced me
that this is a bad idea because if some other OS happened to have dll.h,
we could end up with APR thinking it had DSO support but no functions to
back it up since we put the OS/390 code in its own directory.

Greg

Index: configure.in
===================================================================
RCS file: /cvs/apache/apache-2.0/src/configure.in,v
retrieving revision 1.73
diff -u -d -b -r1.73 configure.in
--- configure.in        2000/07/23 12:32:17     1.73
+++ configure.in        2000/08/15 21:32:36
@@ -147,6 +147,11 @@

 if test "$apache_need_shared" = "yes"; then
   $SHELL $srcdir/ltconfig --output=shlibtool --disable-static
--srcdir=$srcdir --cache-file=./config.cache $srcdir/ltmain.sh
+  case $PLATFORM in
+    *os390)
+      CFLAGS="$CFLAGS -Wc,DLL,EXPORTALL"
+      ;;
+  esac
 fi

 AC_ARG_WITH(program-name,
Index: lib/apr/configure.in
===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/apr/configure.in,v
retrieving revision 1.143
diff -u -d -b -r1.143 configure.in
--- configure.in        2000/08/02 05:51:39     1.143
+++ configure.in        2000/08/15 21:32:37
@@ -105,6 +105,12 @@
        AC_CHECK_DEFINE(BONE_VERSION, sys/socket.h)
        eolstr="\\n"
        ;;
+   *os390)
+       OSDIR="os390"
+       config_subdirs="shmem/unix/mm"
+       USE_MM=yes
+       eolstr="\\n"
+       ;;
    *)
        OSDIR="unix"
        config_subdirs="shmem/unix/mm"
@@ -436,6 +442,13 @@
     fi
      if test "$tempdso" = "no"; then
         AC_CHECK_LIB(root, load_image, tempdso="yes", tempdso="no")
+    fi
+    if test "$tempdso" = "no"; then
+        case $OS in
+            *os390)
+                tempdso="yes"
+                ;;
+        esac
     fi
  ] )

Mime
View raw message