Return to BSD News archive
Xref: sserve comp.os.386bsd.apps:443 gnu.emacs.help:12184
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!bloom-beacon.mit.edu!ai-lab!life.ai.mit.edu!mycroft
From: mycroft@duality.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.os.386bsd.apps,gnu.emacs.help
Subject: Re: Porting emacs to NetBSD 0.9
Date: 14 Sep 1993 21:02:52 GMT
Organization: MIT Artificial Intelligence Lab
Lines: 264
Message-ID: <MYCROFT.93Sep14170252@duality.gnu.ai.mit.edu>
References: <1993Sep14.132045.22947@hal.depaul.edu>
NNTP-Posting-Host: duality.gnu.ai.mit.edu
In-reply-to: acsdcn@falcon.depaul.edu's message of Tue, 14 Sep 1993 13:20:45 GMT
A more complete set of diffs for Emacs 19.17 follows. I have not
updated my Emacs since then.
-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----
*** ./config.guess.~1~ Sun Jul 18 04:29:04 1993
--- ./config.guess Wed Aug 18 21:34:39 1993
***************
*** 118,123 ****
--- 118,129 ----
CRAY-2:UNICOS:*:*)
echo cray2-cray-unicos
exit 0 ;;
+ hp3[0-9][05]:NetBSD:*:*)
+ echo m68k-hp-netbsd${UNAME_RELEASE}
+ exit 0 ;;
+ i[34]86:NetBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-netbsd${UNAME_RELEASE}
+ exit 0 ;;
i[34]86:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux
exit 0 ;;
*** ./configure.in.~1~ Sun Jul 18 02:02:46 1993
--- ./configure.in Wed Aug 18 23:14:08 1993
***************
*** 560,565 ****
--- 560,568 ----
m68*-hp-bsd* )
machine=hp9000s300 opsys=bsd4-3
;;
+ m68*-hp-netbsd* )
+ machine=hp9000s300 opsys=netbsd
+ ;;
## HP/UX 7, 8 and 9 are supported on these machines.
m68*-hp-hpux* )
case "`uname -r`" in
***************
*** 880,885 ****
--- 883,889 ----
*-sco3.2v4* ) opsys=sco4 ;;
*-bsd386* ) opsys=bsd386 ;;
*-386bsd ) opsys=386bsd ;;
+ *-netbsd* ) opsys=netbsd ;;
## Otherwise, we'll fall through to the generic opsys code at the bottom.
esac
;;
***************
*** 1000,1006 ****
### If the user hasn't specified where we should find X, try
### letting autoconf figure that out.
! if [ "0${x_includes}" == 0 ] && [ "0${x_libraries}" == 0 ]; then
]
AC_FIND_X
[
--- 1004,1010 ----
### If the user hasn't specified where we should find X, try
### letting autoconf figure that out.
! if [ "0${x_includes}" = 0 ] && [ "0${x_libraries}" = 0 ]; then
]
AC_FIND_X
[
***************
*** 1145,1152 ****
CFLAGS="$CFLAGS_save"
LIBS="$LIBS_save"
! case "${window_system}:${LIBS}" in
! x11:*-lXbsd* )
if [ -d /usr/X386/include ]; then
HAVE_XFREE386=yes
if [ "${C_SWITCH_X_SITE}" = "" ]; then
--- 1149,1156 ----
CFLAGS="$CFLAGS_save"
LIBS="$LIBS_save"
! case "${window_system}:${LIBS}:${opsys}" in
! x11:*-lXbsd*:* | x11:*:386bsd | x11:*:netbsd* )
if [ -d /usr/X386/include ]; then
HAVE_XFREE386=yes
if [ "${C_SWITCH_X_SITE}" = "" ]; then
*** ./config.sub.~1~ Sun Jul 18 04:29:03 1993
--- ./config.sub Sat Jul 31 14:05:50 1993
***************
*** 515,521 ****
| -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
| -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
| -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
! | -386bsd*)
;;
-sunos5*)
os=`echo $os | sed -e 's|sunos5|solaris2|'`
--- 515,521 ----
| -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
| -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
| -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
! | -386bsd* | -netbsd*)
;;
-sunos5*)
os=`echo $os | sed -e 's|sunos5|solaris2|'`
*** ./src/ymakefile.~1~ Sun Jul 18 02:08:49 1993
--- ./src/ymakefile Sat Jul 31 13:49:27 1993
***************
*** 483,489 ****
Note that SunOS needs -lm to come before -lc; otherwise, you get
duplicated symbols. */
LIBES = $(LIBX) LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
! LIBS_DEBUG $(GNULIB_VAR) LIB_MATH LIB_STANDARD
/* Enable recompilation of certain other files depending on system type. */
--- 483,489 ----
Note that SunOS needs -lm to come before -lc; otherwise, you get
duplicated symbols. */
LIBES = $(LIBX) LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
! LIBS_DEBUG $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
/* Enable recompilation of certain other files depending on system type. */
*** ./src/s/netbsd.h.~1~ Sat Jul 31 14:04:08 1993
--- ./src/s/netbsd.h Wed Aug 4 11:56:58 1993
***************
*** 0 ****
--- 1,30 ----
+ /* s/ file for netbsd system. */
+
+ /* Get most of the stuff from bsd4.3 */
+ #include "bsd4-3.h"
+
+ #undef SYSTEM_TYPE
+ #define SYSTEM_TYPE "netbsd"
+
+ #undef KERNEL_FILE
+ #define KERNEL_FILE "/netbsd"
+
+ #undef LDAV_SYMBOL
+ #define LDAV_SYMBOL "_averunnable"
+
+ #define SIGNALS_VIA_CHARACTERS
+
+ #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
+
+ #define A_TEXT_OFFSET(x) (sizeof (struct exec))
+ #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
+
+ #define HAVE_SETSID
+
+ #define LIBS_DEBUG
+ #define LIBS_SYSTEM -lutil
+
+ #define HAVE_GETLOADAVG
+
+ /* For mem-limits.h. */
+ #define BSD4_2
*** ./lisp/paths.el.~1~ Sat May 29 12:05:37 1993
--- ./lisp/paths.el Wed Aug 4 15:16:31 1993
***************
*** 100,118 ****
Will use `gnus-startup-file'-SERVER instead if exists.")
(defconst rmail-spool-directory
! (if (memq system-type '(dgux-unix hpux usg-unix-v unisoft-unix rtu
! irix silicon-graphics-unix))
! "/usr/mail/"
! "/usr/spool/mail/")
"Name of directory used by system mailer for delivering new mail.
Its name should end with a slash.")
(defconst sendmail-program
! (if (file-exists-p "/usr/lib/sendmail")
! "/usr/lib/sendmail"
! (if (file-exists-p "/usr/ucblib/sendmail")
! "/usr/ucblib/sendmail"
! "fakemail")) ;In ../etc, to interface to /bin/mail.
"Program used to send messages.")
(defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/")
--- 100,122 ----
Will use `gnus-startup-file'-SERVER instead if exists.")
(defconst rmail-spool-directory
! (cond
! ((memq system-type '(dgux-unix hpux usg-unix-v unisoft-unix rtu
! irix silicon-graphics-unix))
! "/usr/mail/")
! ((memq system-type '(netbsd))
! "/var/mail/")
! (t
! "/usr/spool/mail/"))
"Name of directory used by system mailer for delivering new mail.
Its name should end with a slash.")
(defconst sendmail-program
! (cond
! ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
! ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
! ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
! (t "fakemail")) ;In ../etc, to interface to /bin/mail.
"Program used to send messages.")
(defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/")
*** ./configure.~1~ Sat Jul 31 13:25:30 1993
--- ./configure Wed Aug 18 21:32:06 1993
***************
*** 552,557 ****
--- 552,560 ----
m68*-hp-bsd* )
machine=hp9000s300 opsys=bsd4-3
;;
+ m68*-hp-netbsd* )
+ machine=hp9000s300 opsys=netbsd
+ ;;
## HP/UX 7, 8 and 9 are supported on these machines.
m68*-hp-hpux* )
case "`uname -r`" in
***************
*** 872,877 ****
--- 875,881 ----
*-sco3.2v4* ) opsys=sco4 ;;
*-bsd386* ) opsys=bsd386 ;;
*-386bsd ) opsys=386bsd ;;
+ *-netbsd* ) opsys=netbsd ;;
## Otherwise, we'll fall through to the generic opsys code at the bottom.
esac
;;
***************
*** 1721,1727 ****
### If the user hasn't specified where we should find X, try
### letting autoconf figure that out.
! if [ "0${x_includes}" == 0 ] && [ "0${x_libraries}" == 0 ]; then
# If we find X, set shell vars x_includes and x_libraries to the paths.
echo checking for X include and library files with xmkmf
--- 1725,1731 ----
### If the user hasn't specified where we should find X, try
### letting autoconf figure that out.
! if [ "0${x_includes}" = 0 ] && [ "0${x_libraries}" = 0 ]; then
# If we find X, set shell vars x_includes and x_libraries to the paths.
echo checking for X include and library files with xmkmf
***************
*** 1941,1948 ****
CFLAGS="$CFLAGS_save"
LIBS="$LIBS_save"
! case "${window_system}:${LIBS}" in
! x11:*-lXbsd* )
if [ -d /usr/X386/include ]; then
HAVE_XFREE386=yes
if [ "${C_SWITCH_X_SITE}" = "" ]; then
--- 1945,1952 ----
CFLAGS="$CFLAGS_save"
LIBS="$LIBS_save"
! case "${window_system}:${LIBS}:${opsys}" in
! x11:*-lXbsd*:* | x11:*:386bsd | x11:*:netbsd*)
if [ -d /usr/X386/include ]; then
HAVE_XFREE386=yes
if [ "${C_SWITCH_X_SITE}" = "" ]; then
-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----