| 1 | # Posix support has been removed from NextStep
|
|---|
| 2 | #
|
|---|
| 3 | useposix='undef'
|
|---|
| 4 |
|
|---|
| 5 | libpth='/lib /usr/lib /usr/local/lib'
|
|---|
| 6 | libswanted=' '
|
|---|
| 7 | libc='/NextLibrary/Frameworks/System.framework/System'
|
|---|
| 8 |
|
|---|
| 9 | ldflags="$ldflags -dynamic -prebind"
|
|---|
| 10 | lddlflags="$lddlflags -dynamic -bundle -undefined suppress"
|
|---|
| 11 | ccflags="$ccflags -dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK"
|
|---|
| 12 | cccdlflags='none'
|
|---|
| 13 | ld='cc'
|
|---|
| 14 | #optimize='-g -O'
|
|---|
| 15 |
|
|---|
| 16 | ######################################################################
|
|---|
| 17 | # MAB support
|
|---|
| 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.
|
|---|
| 22 | #
|
|---|
| 23 | # If you want to build for specific architectures, change the line
|
|---|
| 24 | # below to something like
|
|---|
| 25 | #
|
|---|
| 26 | # archs='m68k i386'
|
|---|
| 27 | #
|
|---|
| 28 |
|
|---|
| 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
|
|---|
| 31 | # OPENSTEP 4.2).
|
|---|
| 32 | #
|
|---|
| 33 | if [ `hostinfo | grep 'NeXT Mach.*:' | sed 's/.*RELEASE_//'` = M68K ]
|
|---|
| 34 | then
|
|---|
| 35 | echo "Cross compilation is impossible on m68k hardware under OS 4"
|
|---|
| 36 | echo "Forcing architecture to m68k only"
|
|---|
| 37 | toke_cflags='optimize=""'
|
|---|
| 38 | archs='m68k'
|
|---|
| 39 | else
|
|---|
| 40 | archs=`/bin/lipo -info /usr/lib/libm.a | sed -n 's/^[^:]*:[^:]*: //p'`
|
|---|
| 41 | fi
|
|---|
| 42 |
|
|---|
| 43 | #
|
|---|
| 44 | # leave the following part alone
|
|---|
| 45 | #
|
|---|
| 46 | archcount=`echo $archs |wc -w`
|
|---|
| 47 | if [ $archcount -gt 1 ]
|
|---|
| 48 | then
|
|---|
| 49 | for d in $archs
|
|---|
| 50 | do
|
|---|
| 51 | mabflags="$mabflags -arch $d"
|
|---|
| 52 | done
|
|---|
| 53 | ccflags="$ccflags $mabflags"
|
|---|
| 54 | ldflags="$ldflags $mabflags"
|
|---|
| 55 | lddlflags="$lddlflags $mabflags"
|
|---|
| 56 | fi
|
|---|
| 57 | ######################################################################
|
|---|
| 58 | # END MAB support
|
|---|
| 59 | ######################################################################
|
|---|
| 60 |
|
|---|
| 61 | useshprlib='true'
|
|---|
| 62 | dlext='bundle'
|
|---|
| 63 | so='dylib'
|
|---|
| 64 |
|
|---|
| 65 | #
|
|---|
| 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.
|
|---|
| 71 | #
|
|---|
| 72 | case "$prefix" in
|
|---|
| 73 | '') prefix='/usr/local/OPENSTEP' ;;
|
|---|
| 74 | esac
|
|---|
| 75 |
|
|---|
| 76 | archname='OPENSTEP-Mach'
|
|---|
| 77 |
|
|---|
| 78 | #
|
|---|
| 79 | # At least on m68k there are situations when memcmp doesn't behave
|
|---|
| 80 | # as expected. So we'll use perl's memcmp.
|
|---|
| 81 | #
|
|---|
| 82 | d_sanemcmp='undef'
|
|---|
| 83 |
|
|---|
| 84 | d_strcoll='undef'
|
|---|
| 85 | i_dbm='define'
|
|---|
| 86 | i_utime='undef'
|
|---|
| 87 | groupstype='int'
|
|---|
| 88 | direntrytype='struct direct'
|
|---|
| 89 |
|
|---|
| 90 | usemymalloc='y'
|
|---|
| 91 | clocktype='int'
|
|---|
| 92 |
|
|---|
| 93 | #
|
|---|
| 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 <[email protected]>)
|
|---|
| 98 | ranlib='sleep 5; /bin/ranlib'
|
|---|
| 99 |
|
|---|
| 100 | case "$ldlibpthname" in
|
|---|
| 101 | '') ldlibpthname=DYLD_LIBRARY_PATH ;;
|
|---|
| 102 | esac
|
|---|