| 1 | # machten.sh
|
|---|
| 2 | # This file has been put together by Mark Pease <[email protected]>
|
|---|
| 3 | # Comments, questions, and improvements welcome!
|
|---|
| 4 | #
|
|---|
| 5 | # MachTen does not support dynamic loading. If you wish to, you
|
|---|
| 6 | # can fetch, compile, and install the dld package.
|
|---|
| 7 | # This ought to work with the ext/DynaLoader/dl_dld.xs in the
|
|---|
| 8 | # perl5 package. Have fun!
|
|---|
| 9 | # Some possible locations for dld:
|
|---|
| 10 | # ftp-swiss.ai.mit.edu:pub/scm/dld-3.2.7.tar.gz
|
|---|
| 11 | # prep.ai.mit.edu:/pub/gnu/jacal/dld-3.2.7.tar.gz
|
|---|
| 12 | # ftp.cs.indiana.edu:/pub/scheme-repository/imp/SCM-support/dld-3.2.7.tar.gz
|
|---|
| 13 | # tsx-11.mit.edu:/pub/linux/sources/libs/dld-3.2.7.tar.gz
|
|---|
| 14 | #
|
|---|
| 15 | # Original version was for MachTen 2.1.1.
|
|---|
| 16 | # Last modified by Andy Dougherty <[email protected]>
|
|---|
| 17 | # Tue Aug 13 12:31:01 EDT 1996
|
|---|
| 18 | #
|
|---|
| 19 | # Warning about tests which no longer fail
|
|---|
| 20 | # fixed by Tom Phoenix <[email protected]>
|
|---|
| 21 | # March 5, 1997
|
|---|
| 22 | #
|
|---|
| 23 | # Locale, optimization, and malloc changes by Tom Phoenix Mar 15, 1997
|
|---|
| 24 | #
|
|---|
| 25 | # groupstype change and note about t/lib/findbin.t by Tom, Mar 24, 1997
|
|---|
| 26 |
|
|---|
| 27 | # MachTen's ability to have valid filepaths beginning with "//" may
|
|---|
| 28 | # be causing lib/FindBin.pm to fail. I don't know how to fix it, but
|
|---|
| 29 | # the reader is encouraged to do so! :-) -- Tom
|
|---|
| 30 |
|
|---|
| 31 | # There seem to be some hard-to-diagnose problems under MachTen's
|
|---|
| 32 | # malloc, so we'll use Perl's. If you have problems which Perl's
|
|---|
| 33 | # malloc's diagnostics can't help you with, you may wish to use
|
|---|
| 34 | # MachTen's malloc after all.
|
|---|
| 35 | case "$usemymalloc" in
|
|---|
| 36 | '') usemymalloc='y' ;;
|
|---|
| 37 | esac
|
|---|
| 38 |
|
|---|
| 39 | # I (Tom Phoenix) don't know how to test for locales on MachTen. (If
|
|---|
| 40 | # you do, please fix this hints file!) But since mine didn't come
|
|---|
| 41 | # with locales working out of the box, I'll assume that's the case
|
|---|
| 42 | # for most folks.
|
|---|
| 43 | case "$d_setlocale" in
|
|---|
| 44 | '') d_setlocale=undef
|
|---|
| 45 | esac
|
|---|
| 46 |
|
|---|
| 47 | # MachTen doesn't have secure setid scripts
|
|---|
| 48 | d_suidsafe='undef'
|
|---|
| 49 |
|
|---|
| 50 | # groupstype should be gid_t, as near as I can tell, but it only
|
|---|
| 51 | # seems to work right when it's int.
|
|---|
| 52 | groupstype='int'
|
|---|
| 53 |
|
|---|
| 54 | case "$optimize" in
|
|---|
| 55 | '') optimize='-O2' ;;
|
|---|
| 56 | esac
|
|---|
| 57 |
|
|---|
| 58 | so='none'
|
|---|
| 59 | # These are useful only if you have DLD, but harmless otherwise.
|
|---|
| 60 | # Make sure gcc doesn't use -fpic.
|
|---|
| 61 | cccdlflags=' ' # That's an empty space.
|
|---|
| 62 | lddlflags='-r'
|
|---|
| 63 | dlext='o'
|
|---|
| 64 |
|
|---|
| 65 | # MachTen does not support POSIX enough to compile the POSIX module.
|
|---|
| 66 | useposix=false
|
|---|
| 67 |
|
|---|
| 68 | #MachTen might have an incomplete Berkeley DB implementation.
|
|---|
| 69 | i_db=$undef
|
|---|
| 70 |
|
|---|
| 71 | #MachTen versions 2.X have no hard links. This variable is used
|
|---|
| 72 | # by File::Find.
|
|---|
| 73 | # This will generate a harmless message:
|
|---|
| 74 | # Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
|
|---|
| 75 | # Propagating recommended variable dont_use_nlink
|
|---|
| 76 | # Without this, tests io/fs #4 and op/stat #3 will fail.
|
|---|
| 77 | dont_use_nlink=define
|
|---|
| 78 |
|
|---|
| 79 | cat <<'EOM' >&4
|
|---|
| 80 |
|
|---|
| 81 | During Configure, you may get two "WHOA THERE" messages, for $d_setlocale
|
|---|
| 82 | and $i_db being 'undef'. You may keep the undef value.
|
|---|
| 83 |
|
|---|
| 84 | At the end of Configure, you will see a harmless message
|
|---|
| 85 |
|
|---|
| 86 | Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
|
|---|
| 87 | Propagating recommended variable dont_use_nlink
|
|---|
| 88 |
|
|---|
| 89 | Read the File::Find documentation for more information.
|
|---|
| 90 |
|
|---|
| 91 | It's possible that test t/lib/findbin.t will fail on some configurations
|
|---|
| 92 | of MachTen.
|
|---|
| 93 |
|
|---|
| 94 | EOM
|
|---|