3 # This file reflects the tireless work of
4 # Ilya Zakharevich <ilya@math.ohio-state.edu>
6 # Trimmed and comments added by
7 # Andy Dougherty <doughera@lafcol.lafayette.edu>
8 # Exactly what is required beyond a standard OS/2 installation?
9 # There are notes about "patched pdksh" I do not understand.
11 # Note that symbol extraction code gives wrong answers (sometimes?) on
12 # gethostent and setsid.
14 # Note that during the .obj compile you need to move the perl.dll file
17 # Should be done automatically by Configure now:
18 bin_sh=`../UU/loc sh.exe /bin c:/bin d:/bin e:/bin f:/bin g:/bin h:/bin /bin`
19 echo "####### Shell found at $bin_sh #############" >&4
24 sysman=`../UU/loc . /man/man1 c:/man/man1 c:/usr/man/man1 d:/man/man1 d:/usr/man/man1 e:/man/man1 e:/usr/man/man1 f:/man/man1 f:/usr/man/man1 g:/man/man1 g:/usr/man/man1 /usr/man/man1`
27 libemx="`../UU/loc . X c:/emx/lib d:/emx/lib e:/emx/lib f:/emx/lib g:/emx/lib h:/emx/lib /emx/lib`"
29 if test "$libemx" = "X"; then echo "Cannot find C library!"; fi
31 libpth="$libemx/st $libemx"
35 # Additional definitions:
37 firstmakefile='GNUmakefile'
43 aout_d_shrplib='undef'
44 aout_useshrplib='false'
50 aout_lddlflags='-Zdll'
52 aout_ccflags='-DDOSISH -DPERL_IS_AOUT -DOS2=2 -DEMBED -I. -DPACK_MALLOC -DDEBUGGING_MSTATS'
53 aout_cppflags='-DDOSISH -DPERL_IS_AOUT -DOS2=2 -DEMBED -I. -DPACK_MALLOC =DDEBUGGING_MSTATS'
56 aout_archobjs="os2.o dl_os2.o"
58 # variable which have different values for aout compile
59 used_aout='d_shrplib useshrplib plibext lib_ext obj_ext ar plibext d_fork lddlflags ldflags ccflags use_clib usedl archobjs cppflags'
61 if [ "$emxaout" != "" ]; then
62 d_shrplib="$aout_d_shrplib"
63 useshrplib="$aout_useshrplib"
64 obj_ext="$aout_obj_ext"
65 lib_ext="$aout_lib_ext"
67 plibext="$aout_plibext"
69 lddlflags="$aout_lddlflags"
70 ldflags="$aout_ldflags"
71 ccflags="$aout_ccflags"
72 cppflags="$aout_cppflags"
73 use_clib="$aout_use_clib"
83 lddlflags='-Zdll -Zomf -Zmt -Zcrtdll'
84 # Recursive regmatch may eat 2.5M of stack alone.
85 ldflags='-Zexe -Zomf -Zmt -Zcrtdll -Zstack 32000'
86 ccflags='-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -DPACK_MALLOC -DDEBUGGING_MSTATS'
91 # To get into config.sh (should start at the beginning of line)
92 # or you can put it into config.over.
94 # plibext is not needed anymore. Just directly set $libperl.
95 libperl="libperl${plibext}"
97 #libc="/emx/lib/st/c_import$lib_ext"
98 libc="$libemx/st/$use_clib$lib_ext"
100 if test -r "$libemx/c_alias$lib_ext"; then
101 libnames="$libemx/c_alias$lib_ext"
103 # otherwise puts -lc ???
105 # [Maybe we should just remove c from $libswanted ?]
108 archobjs="os2$obj_ext dl_os2$obj_ext"
110 # Run files without extension with sh - feature of patched ksh
113 # Same with newer ksh
120 #cppflags='-DDOSISH -DOS2=2 -DEMBED -I.'
122 # for speedup: (some patches to ungetc are also needed):
123 # Note that without this guy tests 8 and 10 of io/tell.t fail, with it 11 fails
125 stdstdunder=`echo "#include <stdio.h>" | cpp | egrep -c "char +\* +_ptr"`
128 d_stdio_ptr_lval='define'
129 d_stdio_cnt_lval='define'
131 if test "$stdstdunder" = 0; then
132 stdio_ptr='((fp)->ptr)'
133 stdio_cnt='((fp)->rcount)'
134 stdio_base='((fp)->buffer)'
135 stdio_bufsiz='((fp)->rcount + (fp)->ptr - (fp)->buffer)'
136 ccflags="$ccflags -DMYTTYNAME"
139 stdio_ptr='((fp)->_ptr)'
140 stdio_cnt='((fp)->_rcount)'
141 stdio_base='((fp)->_buffer)'
142 stdio_bufsiz='((fp)->_rcount + (fp)->_ptr - (fp)->_buffer)'
145 # to put into config.sh
146 myttyname="$myttyname"
148 # To have manpages installed
150 # above will be overwritten otherwise, indented to avoid config.sh
153 # should be handled automatically by Configure now.
155 # Will be rewritten otherwise, indented to not put in config.sh
161 ####### We define these functions ourselves
166 ####### All the rest is commented
168 # The next two are commented. pdksh handles #!
169 # sharpbang='extproc '
173 #startsh='extproc ksh\\n#! sh'
175 # Now install the external modules. We are in the ./hints directory.
179 if ! test -d ../../ext/OS2 ; then
183 cp -rfu * ../../ext/OS2/
188 if $test -d $xxx/t; then
189 cp -uf $xxx/t/*.t ../../t/lib
191 if $test -d $xxx; then
194 if $test -d $yyy/t; then
195 cp -uf $yyy/t/*.t ../../t/lib