summaryrefslogtreecommitdiff
path: root/hints/os2.sh
blob: 55766f7482ddb2e7cf41000f0481e2b6cc105734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# Problems:
# a) warning from fcntl: Third argument is int in emx - patched
# b) gr_password is not a structure in struct group - patched
# c) (gone)
# d) Makefile needs sh before ./makedir
# e) (gone)
# f) (gone)
# g) (gone)
# h) (gone)
# i) (gone)
# j) the rule true in Makefile should become sh -c true
# k) Cwd does not work. ===> the extensions cannot be compiled - patched
# l) TEST expects to get -e 'perl' - patched
# m) (gone)

# Tests failing with .o compile (this is probably obsolete, but now it is .obj):

# comp/cpp (because of sed above)
# io/fs.t : (patched) 2..5 7..11 18 (why 11?)
# io/inplace.t ???? (ak works)
# io/tell.t 10 ????
# op/exec.t 1 ???? 4 ????
# op/glob.t 1 (bug in sh)
# op/magic.t 4 1/2 (????) adding sleep 5 does not help
# op/readdir.t 3 (same bug in ksh)
# op/stat.t 3 4 9 10 20 >34

# Newer results with .obj without i/o optimization, fail:

# io/fs.t	: 2+
# io/pipe.t	: 1+
# io/tell.t	: 8, 10
# op/exec.t	: 4, 6 (ok 1 comes as "ok \1")
# op/fork.t	: 1+
# op/misc.t	: 9
# op/pack.t	: 8
# op/stat.t	: 3 4 9 10 20 >34
# lib/sdbm.t	: sdbm store returned -1, errno 0, key "21" at lib/sdbm.t line 112.
# lib/posix.t	: coredump on 3

# If compiled with i/o optimization, then 15% speedup on input, and
# io/tell.t	: 11 only
# no coredump in posix.t


# Note that during the .obj compile you need to move the perl.dll file
# to LIBPATH :-(

#osname="OS/2"
sysman=`../UU/loc . /man/man1 /usr/man/man1 c:/man/man1 c:/usr/man/man1`
cc='gcc'
usrinc='/emx/include'
libpth='/emx/lib/st /emx/lib'

so='dll'

# Additional definitions:

d_shrplib='define'
firstmakefile='GNUmakefile'
obj_ext='.obj'
obj_ext_regexp='\.obj'
lib_ext='.lib'
ar='emxomfar'
plibext='.lib'
exe_ext='.exe'
archobjs="os2$obj_ext"
cldlibs=''

libc="/emx/lib/st/c_import$lib_ext"

# otherwise puts -lc ???

libs='-lsocket -lm'

# Run files without extension with sh - feature of patched ksh
NOHASHBANG=sh

cccdlflags='-Zdll'
dlsrc='dl_os2.xs'
lddlflags='-Zdll -Zomf -Zcrtdll'
ldflags='-Zexe -Zomf -Zcrtdll'
ld='gcc'
usedl='define'
ccflags='-Zomf -DDOSISH -DOS2=2 -DEMBED -I.'
cppflags='-DDOSISH -DOS2=2 -DEMBED -I.'

# This variables taken from recommended config.sh
alignbytes='8'

d_fork='undef'

# for speedup: (some patches to ungetc are also needed):
# Note that without this guy tests 8 and 10 of io/tell.t fail, with it 11 fails

d_stdstdio='define'
d_stdiobase='define'
d_stdio_ptr_lval='define'
d_stdio_cnt_lval='define'
stdio_ptr='((fp)->ptr)'
stdio_cnt='((fp)->rcount)'
stdio_base='((fp)->buffer)'
stdio_bufsiz='((fp)->rcount + (fp)->ptr - (fp)->buffer)'


# I do not have these:
#dynamic_ext='Fcntl GDBM_File SDBM_File POSIX Socket UPM REXXCALL'
dynamic_ext='Fcntl POSIX Socket SDBM_File Devel/DProf'
#extensions='Fcntl GDBM_File SDBM_File POSIX Socket UPM REXXCALL'
extensions='Fcntl SDBM_File POSIX Socket Devel/DProf'

# To have manpages installed
echo nroff is "'$nroff'"
nroff='nroff.cmd'
_nroff='nroff.cmd'
echo nroff is "'$nroff'"

# Unknown reasons for:
#cpio='cpio'
#csh=''
#date=''
#byacc=''
#d_charsprf='undef'
#d_drem='undef'
#d_fmod='define'
#d_linuxstd='undef'
#d_socket='define'
#gcc='gcc'
#gidtype='gid_t'
#glibpth='c:/usr/lib/emx h:/emx/lib /emx/lib'
#groupstype='gid_t'
#h_fcntl='true'
#i_time='define'
#line=''
#lseektype='off_t'
#man1ext='1'
#man3ext='3'
#modetype='mode_t'
#more='more'
#mv='mv'
#sleep='sleep'
#socketlib='-lsocket'
#ssizetype='ssize_t'
#tar='tar'
#timetype='time_t'
#uidtype='uid_t'
#uname=''
#uniq=''
#xlibpth=''
#yacc='yacc'
#yaccflags=''
#zcat='zcat'
#orderlib='false'
#pg='pg'
#pr='pr'
#ranlib=':'

# Misfound by configure:

#gcc='gcc'
#more='more'
#mv='mv'
#pr='pr'
#sleep='sleep'
#tar='tar'

xlibpth=''

# I cannot stand it, but did not test with:
# d_dirnamlen='undef'

# I try to do without these:

#d_pwage='undef'
#d_pwcomment='undef'

ln='cp'
lns='cp'

# ????
#mallocobj=''
#mallocsrc=''
#usemymalloc='false'

nm_opt='-p'

# The next two are commented. pdksh handles #!
# sharpbang='extproc '
# shsharp='false'

# Commented:
#startsh='extproc ksh\\n#! sh'