Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!ucbvax!dog.ee.lbl.gov!me10.lbl.gov!milburn From: milburn@me10.lbl.gov (John Milburn) Newsgroups: comp.sys.hp Subject: Re: Porting X11R4 to the HP9000 Series 300 and 800 Message-ID: <12326@dog.ee.lbl.gov> Date: 21 Apr 91 23:20:04 GMT References: <33292@mimsy.umd.edu> Reply-To: JEMilburn@lbl.gov (John Milburn) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 104 X-Local-Date: Sun, 21 Apr 91 16:20:04 PDT Here is the hp.cf which I used for compilling R4 on a s300 machine. It is a slightly modified version of the one which come with the motif 1.1 source. The main changes from the mit distribution version are the bumped up symbol table entry, the _NO_PROTO definition, the MALLOC_0_RETURNS_NULL definition, and the optimizer level. I choose to use the R4 server which HP provides. /* * SET VERSION NUMBERS BEFORE MAKING MAKEFILES; also, you'll need to install * util/scripts/bsdinstall.sh before doing a "make install" */ SYSLIBS= -lXt -lX11 -lPW MWM_DEFINES=-DLARGECURSORS -DSHAPE -DOPAQUE YACCFLAGS = -Nm20000 #define SystemV YES #define OSName HP-UX 7.0 #define OSMajorVersion 7 #define OSMinorVersion 0 #ifdef hp9000s800 #define StandardDefines -DSYSV -D_NO_PROTO -DMALLOC_0_RETURNS_NULL #define LintOpts -ax -DSYSV #define OptimizedCDebugFlags +O1 #else #define StandardDefines -Wc,-Nd4000,-Ns5300,-Ne700,-Np200,-Nw4000 -DSYSV -D_NO_PROTO -DMALLOC_0_RETURNS_NULL #define LintOpts -ax -Nd4000 -Ns3300 -Ne700 -Np200 -Na25000 -DSYSV #endif #define LnCmd ln -s #define MvCmd mv -f #define ExecableScripts YES #define HasSockets YES #define HasVFork YES #define HasVoidSignalReturn YES #define RemoveTargetProgramByMoving YES /* This defines the server you want */ #define XhpServer Xhp #define BuildServer NO /* I use the R4 server from HP, since it has starbase support. */ /* The following added by jem */ #define InstallCmd install /* Since I'm using gnuinstall */ #define OptimizedCDebugFlags +O1 /* I still don't trust -O */ #define ManPath $(DESTDIR)/usr/local/man /* Keep these separate from hp's version */ #define ManDir $(MANSOURCEPATH)1 /**/ #define NeedBerklibInXlib YES /* snag Berklib for Xlib */ /**/# platform: $XConsortium: hp.cf,v 1.24 89/12/10 11:57:02 rws Exp $ /**/# operating system: OSName /* **************************************************************************** */ /* define this as you like for server compilation */ /* * The normal malloc in libc returns a real pointer on malloc of 0; * the malloc in libmalloc returns null on malloc of 0. */ /* #define ServerMallocLib YES *//* use -lmalloc for server */ /* take out -DMALLOC_0_RETURNS_NULL if you have ServerMallocLib NO */ #define UNCOMPRESSPATH uncompress #ifdef hp9000s300 #define HardwareDefines -Dhp9000s300 #else #define HardwareDefines #endif #if OSMajorVersion >= 7 || (OSMajorVersion == 6 && OSMinorVersion >= 2) #define OsDefines -DHAS_IFREQ #else #define OsDefines #endif #if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2) #define ConnectionFlags -DTCPCONN /* no unix sockets */ #endif #define ExtensionDefines -DSHAPE -DMULTIBUFFER -DMITSHM -DMITMISC -DXINPUT /* * Xhp-specific parameters */ #define WritableBlackWhite /* want BlackPixel and WhitePixel rw */ #define ServerDefines StandardDefines ExtensionDefines -DXDMCP -DXOS -DMERGE OsDefines HardwareDefines /*--------------End of hp.cf----------------*/ -- John Milburn milburn@me10.lbl.gov (415) 486-6969 "All Lord Julius demands is total and complete obedience and more money every time we pay him. He's being quite reasonable, really..."