1 # Posix support has been removed from NextStep
5 libpth='/lib /usr/lib /usr/local/lib'
7 libc='/NextLibrary/Frameworks/System.framework/System'
9 ldflags="$ldflags -dynamic -prebind"
10 lddlflags="$lddlflags -dynamic -bundle -undefined suppress"
11 ccflags="$ccflags -dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK"
16 ######################################################################
18 ######################################################################
19 # By default we will build for all architectures your development
20 # environment supports. If you only want to build for the platform
21 # you are on, simply comment or remove the line below.
23 # If you want to build for specific architectures, change the line
24 # below to something like
29 # On m68k machines, toke.c cannot be compiled at all for i386 and it can
30 # only be compiled for m68k itself without optimization (this is under
33 if [ `hostinfo | grep 'NeXT Mach.*:' | sed 's/.*RELEASE_//'` = M68K ]
35 echo "Cross compilation is impossible on m68k hardware under OS 4"
36 echo "Forcing architecture to m68k only"
37 toke_cflags='optimize=""'
40 archs=`/bin/lipo -info /usr/lib/libm.a | sed -n 's/^[^:]*:[^:]*: //p'`
44 # leave the following part alone
46 archcount=`echo $archs |wc -w`
47 if [ $archcount -gt 1 ]
51 mabflags="$mabflags -arch $d"
53 ccflags="$ccflags $mabflags"
54 ldflags="$ldflags $mabflags"
55 lddlflags="$lddlflags $mabflags"
57 ######################################################################
59 ######################################################################
66 # The default prefix would be '/usr/local'. But since many people are
67 # likely to have still 3.3 machines on their network, we do not want
68 # to overwrite possibly existing 3.3 binaries.
69 # You can use Configure -Dprefix=/foo/bar to override this, or simply
70 # remove the lines below.
73 '') prefix='/usr/local/OPENSTEP' ;;
76 archname='OPENSTEP-Mach'
79 # At least on m68k there are situations when memcmp doesn't behave
80 # as expected. So we'll use perl's memcmp.
88 direntrytype='struct direct'
94 # On some NeXT machines, the timestamp put by ranlib is not correct, and
95 # this may cause useless recompiles. Fix that by adding a sleep before
96 # running ranlib. The '5' is an empirical number that's "long enough."
97 # (Thanks to Andreas Koenig <k@franz.ww.tu-berlin.de>)
98 ranlib='sleep 5; /bin/ranlib'
100 case "$ldlibpthname" in
101 '') ldlibpthname=DYLD_LIBRARY_PATH ;;