Skip to content

Commit e060872

Browse files
Dominic DunlopGurusamy Sarathy
Dominic Dunlop
authored and
Gurusamy Sarathy
committed
[Patch perl5.005_02-TRIAL2] Update hints, Configure for MachTen 4.1.1
Message-Id: <v03110702b1ef5274635a@[195.95.102.104]> p4raw-id: //depot/maint-5.005/perl@1748
1 parent 6e19ff9 commit e060872

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ EOM
19561956
$test -d /usr/apollo/bin && osname=apollo
19571957
$test -f /etc/saf/_sactab && osname=svr4
19581958
$test -d /usr/include/minix && osname=minix
1959-
if $test -d /MachTen; then
1959+
if $test -d /MachTen -o -d /MachTen_Folder; then
19601960
osname=machten
19611961
if $test -x /sbin/version; then
19621962
osvers=`/sbin/version | $awk '{print $2}' |

hints/machten.sh

+13-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
# Martijn Koster <[email protected]>
1414
# Richard Yeh <[email protected]>
1515
#
16+
# For now, explicitly disable dynamic loading -- MT 4.1.1 has it,
17+
# but these hints do not yet support it.
18+
# Define NOTEDEF_MACHTEN to undo gratuitous Tenon hack to signal.h.
19+
# -- Dominic Dunlop <[email protected]> 9800802
1620
# Completely disable SysV IPC pending more complete support from Tenon
1721
# -- Dominic Dunlop <[email protected]> 980712
1822
# Use vfork and perl's malloc by default
@@ -32,8 +36,16 @@
3236
#
3337
# Comments, questions, and improvements welcome!
3438
#
35-
# MachTen 4.X does support dynamic loading, but perl doesn't
39+
# MachTen 4.1.1 does support dynamic loading, but perl doesn't
3640
# know how to use it yet.
41+
usedl=${usedl:-undef}
42+
43+
# MachTen 4.1.1 may have an unhelpful hack in /usr/include/signal.h.
44+
# Undo it if so.
45+
if grep NOTDEF_MACHTEN /usr/include/signal.h > /dev/null
46+
then
47+
ccflags="$ccflags -DNOTDEF_MACHTEN"
48+
fi
3749

3850
# Power MachTen is a real memory system and its standard malloc
3951
# has been optimized for this. Using this malloc instead of Perl's

0 commit comments

Comments
 (0)