changeset 2116:76df2de3dd55

* s/usg5-4.h: Changes from Eric Raymond: If we're doing ordinary linking, define LIB_STANDARD appropriately. Give LIBS_DEBUG a null definition; usg5-4 has no -lg. #define LIBS_STANDARD as "-lc"; usg5-4 has no -lPW. #define NSIG, if it's not already defined. #define HAVE_TERMIOS instead of HAVE_TCATTR. Provide our own definition of LIB_X11_LIB.
author Jim Blandy <jimb@redhat.com>
date Thu, 11 Mar 1993 07:11:06 +0000
parents 9b403531a607
children cb164a9e44ba
files src/s/usg5-4.h
diffstat 1 files changed, 23 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/usg5-4.h	Thu Mar 11 07:10:34 1993 +0000
+++ b/src/s/usg5-4.h	Thu Mar 11 07:11:06 1993 +0000
@@ -18,7 +18,8 @@
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* This file written by James Van Artsdalen of Dell Computer Corporation.
- * james@bigtex.cactus.org.
+ * james@bigtex.cactus.org.  Subsequently improved for Dell 2.2 by Eric
+ * S. Raymond <esr@snark.thyrsus.com>.
  */
 
 /* Use the SysVr3 file for at least base configuration. */
@@ -34,11 +35,18 @@
 #define LIBS_SYSTEM -lsocket -lnsl -lelf
 #define ORDINARY_LINK
 
-#if 0 /* These should be unnecessary now because of ORDINARY_LINK.  */
+#ifdef ORDINARY_LINK
+#define LIB_STANDARD -lc /usr/ucblib/libucb.a
+#else
 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o
 #define LIB_STANDARD -lc /usr/ucblib/libucb.a /usr/ccs/lib/crtn.o
 #endif
 
+/* there are no -lg libraries on this system, and no libPW */
+
+#define LIBS_DEBUG
+#define LIBS_STANDARD -lc
+
 /* No <sioctl.h> */
 
 #define NO_SIOCTL_H
@@ -66,6 +74,15 @@
 #undef SIGIO
 #endif
 
+/* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;
+ * instead, there's a system variable _sys_nsig.  Unfortunately, we need the
+ * constant to dimension an array.  So wire in the appropriate value here.
+ */
+
+#ifndef NSIG
+#define NSIG	32
+#endif
+
 /* libc has this stuff, but not utimes. */
 
 #define HAVE_RENAME
@@ -93,7 +110,7 @@
 
 #define HAVE_PTYS
 #define HAVE_SETSID
-#define HAVE_TCATTR
+#define HAVE_TERMIOS
 
 /* It is possible to receive SIGCHLD when there are no children
    waiting, because a previous waitsys(2) cleaned up the carcass of child
@@ -153,6 +170,9 @@
   if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
     fatal ("ioctl I_PUSH ttcompat", errno);
 
+/* Undo the SVr3 X11 library definition */
+#undef LIB_X11_LIB -lX11
+
 /* The definition of this in s-usg5-3.h is not needed in 5.4.  */
 /* liblnsl_s should never be used.  The _s suffix implies a shared
    library, as opposed to a DLL.  Share libraries were used in SVR3, and are