You need to use the cc3 and ld3 scripts to build Emacs for Nextstep under Openstep 4.0. I have installed the 3.3 Developer System under /3.3Dev on my 4.0 System. If you need to install it in another place, you have to modify the scripts accordingly. You have to link the ld3 script into the 3.3Dev tree, once for each architecture as /3.3Dev/lib/{arch}/ld, ie. delight:/3.3Dev/lib> find . -name ld -ls 181357 0 lrwxrwxrwx 1 root wheel 13 Nov 14 17:54 ./m68k/ld -> ../../bin/ld3 182509 0 lrwxrwxrwx 1 root wheel 13 Nov 14 17:54 ./i386/ld -> ../../bin/ld3 186684 0 lrwxrwxrwx 1 root wheel 13 Nov 14 17:54 ./hppa/ld -> ../../bin/ld3 190769 0 lrwxrwxrwx 1 root wheel 13 Nov 14 17:54 ./sparc/ld -> ../../bin/ld3 These are the relevant switches and options I give to configure to compile under OS4.0 and the above setup: CC="/usr/local/bin/cc3 -pipe" ./configure --without-gcc --without-gcc is necessary as otherwise configure will not honor CC. With this setup, beta6 compiles and runs, upon startup you get a warning in the console about an unparsable color list. This is because there is a new color list format which the old NXColorList doesn't support (btw, you get this warning with any application when you open the color panel) cc3 is a script Tom Hageman <tom@basil.icce.rug.nl> posted to some next newsgroup some time ago. You can get a copy of cc3 and ld3 from ftp://nice.ethz.ch/pub/emacs-for-ns/Contrib/
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.