Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!uunet!noc.near.net!analog.com!analog.com!nwd2sun2.analog.com!Mike.Long From: Mike.Long@analog.com (Michael W. Long) Subject: Re: [NetBSD 0.9] - gnu-emacs compile? HELP! In-Reply-To: mycroft@duality.gnu.ai.mit.edu's message of 30 Oct 1993 16:47:58 -0500 Message-ID: <MIKE.LONG.93Nov3103135@cthulhu.analog.com> Lines: 166 Sender: usenet@analog.com Reply-To: Mike Long <Mike.Long@Analog.com> Organization: Analog Devices Inc, Norwood MA, USA References: <Added.wgnOLbG00Udb8QbU5N@andrew.cmu.edu> <1993Oct28.133022.21291@cs.cornell.edu> <2app3r$8go@orion.cc.andrews.edu> <MYCROFT.93Oct30174759@duality.gnu.ai.mit.edu> Date: Wed, 3 Nov 1993 15:31:35 GMT I would have put these up yesterday, but I had forgotten to include the patches for src/ymakefile. Everything is included here. These are Charles Hannum's Emacs patches modified to work with GNU Emacs 19.19. The only significant changes I've made were to move the paths.el changes to site-init.el, because the comments there say not to modify paths.el, and I prefer to go along with that. I don't know enough about how patch(1) works to know whether the site-init.el patch will trash an existing site-init.el, so look it over after applying this patch. I think the GNU people modified the configuration scripts so that the patch for them to find XFree86 isn't needed any more, but I don't run X, so I don't know for sure. Here are the necessary patches for 19.19: *** config.guess.orig Sun Aug 15 01:09:04 1993 --- config.guess Thu Oct 28 00:34:52 1993 *************** *** 121,126 **** --- 121,132 ---- 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 ;; *** config.sub.orig Sun Aug 15 01:09:03 1993 --- config.sub Thu Oct 28 00:37:42 1993 *************** *** 518,524 **** | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ ! | -386bsd* | -lynxos*) ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` --- 518,524 ---- | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ ! | -386bsd* | -netbsd* | -lynxos*) ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` *** configure.orig Sun Aug 15 01:17:44 1993 --- configure Thu Oct 28 00:44:11 1993 *************** *** 555,560 **** --- 555,563 ---- 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 *************** *** 892,897 **** --- 895,901 ---- *-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 ;; *** configure.in.orig Sat Aug 14 01:31:52 1993 --- configure.in Thu Oct 28 00:39:52 1993 *************** *** 563,568 **** --- 563,571 ---- 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 *************** *** 900,905 **** --- 903,909 ---- *-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 ;; *** lisp/site-init.el.orig Sun Oct 31 22:01:33 1993 --- lisp/site-init.el Thu Oct 28 01:58:29 1993 *************** *** 0 **** --- 1,2 ---- + (setq rmail-spool-directory "/var/mail") + (setq sendmail-program "/usr/sbin/sendmail") *** src/ymakefile.orig Sat Aug 14 05:40:55 1993 --- src/ymakefile Thu Oct 28 00:34:54 1993 *************** *** 489,495 **** 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. */ --- 489,495 ---- 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.orig Wed Nov 3 02:43:13 1993 --- src/s/netbsd.h Thu Oct 28 00:34:54 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 -- Mike Long Mike.Long@Analog.com VLSI Design Engineer voice: (617)461-4030 Analog Devices, SPD Div. FAX: (617)461-3010 Norwood, MA 02062 *this = !opinion(Analog);