Patch to configure.in for Stratus VOS

Green, Paul Paul.Green at stratus.com
Thu Jan 30 13:14:30 GMT 2003


The following patch to samba*/source/configure.in adjusts some global
variables and sets up the compiler options for the Stratus VOS operating
system. It is parallel to similar configure.in code for other operating
systems. I have tested this patch on VOS against the samba_2_2, samba_3_0,
and samba head branches, and it applies correctly and cleanly against
yesterday's code bases, and the builds see the benefit.  This is a
VOS-specific patch and will not affect any other OS.

I respectfully request that it be applied to head and 3_0; if 2_2 is indeed
still undergoing some basic maintenance, I'd like to request that it be
applied there as well.

(It turns out that 2_2 won't fully build on VOS and the problems is that it
is still trying to build libsmbclient, despite the setting of BLDSHARED.  If
the Samba team is willing to let me correct this, I'll submit a version of
the patch I sent in the other day for 2_2 as well. That should do the
trick).


** Patch follows **

diff -urp old/samba/source/configure.in new/samba/source/configure.in
--- old/samba/source/configure.in	Tue Jan 28 18:32:43 2003
+++ new/samba/source/configure.in	Wed Jan 29 09:30:51 2003
@@ -411,6 +411,26 @@ case "$host_os" in
 		esac
 		;;
 #
+# VOS may need to have POSIX support and System V compatibility enabled.
+#
+    *vos*)
+    case "$CPPFLAGS" in
+	  *-D_POSIX_C_SOURCE*)
+		;;
+	  *)
+		CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
+		AC_DEFINE(_POSIX_C_SOURCE, 199506L, [Whether to enable POSIX
support])
+		;;
+    esac
+    case "$CPPFLAGS" in
+	  *-D_SYSV*|*-D_SVID_SOURCE*)
+		;;
+	  *)
+		CPPFLAGS="$CPPFLAGS -D_SYSV"
+		AC_DEFINE(_SYSV, 1, [Whether to enable System V
compatibility])
+    esac
+    ;;
+#
 # Tests needed for SINIX large file support.
 #
     *sysv4*)
@@ -1081,6 +1101,10 @@ case "$host_os" in
 			fi
 			LDSHFLAGS="-G"
 			AC_DEFINE(STAT_ST_BLOCKSIZE,512)
+			;;
+		*vos*) AC_DEFINE(STAT_ST_BLOCKSIZE,4096)
+			BLDSHARED="false"
+			LDSHFLAGS=""
 			;;
 		*)
 			AC_DEFINE(STAT_ST_BLOCKSIZE,512)


** End of Patch **

Thanks
PG
--
Paul Green, Senior Technical Consultant, Stratus Computer, Inc.
Voice: +1 978-461-7557; FAX: +1 978-461-3610; Video on request.


More information about the samba-technical mailing list