/* System description file for SCO 3.2v4.
- Copyright (C) 1993 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994 Free Software Foundation, Inc.
This file is part of GNU Emacs.
#define PTY_TTY_NAME_SPRINTF \
sprintf (pty_name, "/dev/ttyp%d", i);
-/* SCO perhaps has bcopy, et. al. */
-#ifdef HAVE_BCOPY
-#define BSTRING
-#endif
-
/* Sockets are an option on SCO. If you have X, you have them.
They also exist if you have TCP, but we don't know how to test
for that. */
#define HAVE_SOCKETS
#endif
+/* This is safe since we already assumed HAVE_SOCKET
+ if using X windows. */
+#undef LIBX11_SYSTEM
+#define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc_s -lsocket
+
#ifdef HAVE_INET_SOCKETS /* This comes from autoconf. */
#define HAVE_SOCKETS
#endif
#ifdef HAVE_SOCKETS
-#define LIBS_SYSTEM -lsocket
-
-/* configure can't get this right since it comes from -lsocket
- and configure doesn't know to look there. */
-#undef HAVE_XSCREENNUMBEROFSCREEN
-#define HAVE_XSCREENNUMBEROFSCREEN
-#endif
+#define LIBS_SYSTEM -lsocket -lPW
/* SCO has gettimeofday in socket library */
/* Autoconf should determine this, but for now,
#endif
#endif
+/* This enables configure to tell that we have alloca. */
+#ifndef LIBS_SYSTEM
+#define LIBS_SYSTEM -lPW
+#endif
+
+#ifdef HAVE_X11R5
+/* configure can't get this right linking fails unless -lsocket is used. */
+#undef HAVE_XSCREENNUMBEROFSCREEN
+#define HAVE_XSCREENNUMBEROFSCREEN
+#endif
+
/* We don't have -loldX, and we don't need it. */
#define LIB_XMENU_LIB
#else
#define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
#endif
+
+/* miano@acosta.enet.dec.com says these are needed. */
+#define bcopy(b1,b2,len) memmove (b2, b1, len)
+#define bzero(b,len) memset (b, 0, len)
+#define bcmp(b1,b2,len) memcmp (b1, b2, len)