From: Perl 5 Porters Date: Tue, 18 Jun 1996 08:17:45 +0000 (+0000) Subject: perl 5.003_01: hints/os2.sh X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf8a192df3df82f50274b83f7996aab39275728a;p=p5sagit%2Fp5-mst-13.2.git perl 5.003_01: hints/os2.sh Insure execution by shell Locate shell binary for BIN_SH cpp macro Include a.out support Account for home-grown process priority functions --- diff --git a/hints/os2.sh b/hints/os2.sh index 43b4b8e..1652cb7 100644 --- a/hints/os2.sh +++ b/hints/os2.sh @@ -1,3 +1,4 @@ +#! /bin/sh # hints/os2.sh # This file reflects the tireless work of # Ilya Zakharevich @@ -5,7 +6,7 @@ # Trimmed and comments added by # Andy Dougherty # Exactly what is required beyond a standard OS/2 installation? -# There are notes about "patched pdksh" I don't understand. +# There are notes about "patched pdksh" I do not understand. # Note that symbol extraction code gives wrong answers (sometimes?) on # gethostent and setsid. @@ -13,6 +14,9 @@ # Note that during the .obj compile you need to move the perl.dll file # to LIBPATH :-( +bin_sh=`../UU/loc sh.exe /bin c:/bin d:/bin e:/bin f:/bin g:/bin h:/bin /bin` +echo "####### Shell found at $bin_sh #############" >&4 + #osname="OS/2" 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` cc='gcc' @@ -30,17 +34,39 @@ so='dll' firstmakefile='GNUmakefile' exe_ext='.exe' +# We provide it +i_dlfcn='define' + +aout_d_shrplib='undef' +aout_obj_ext='.o' +aout_lib_ext='.a' +aout_ar='ar' +aout_plibext='.a' +aout_d_fork='define' +aout_lddlflags='-Zdll' +aout_ldflags='-Zexe' +aout_ccflags='-DDOSISH -DPERL_IS_AOUT -DOS2=2 -DEMBED -I. -DPACK_MALLOC -DDEBUGGING_MSTATS' +aout_cppflags='-DDOSISH -DPERL_IS_AOUT -DOS2=2 -DEMBED -I. -DPACK_MALLOC =DDEBUGGING_MSTATS' +aout_use_clib='c' +aout_usedl='undef' +aout_archobjs="os2.o dl_os2.o" + +# variable which have different values for aout compile +used_aout='d_shrplib plibext lib_ext obj_ext ar plibext d_fork lddlflags ldflags ccflags use_clib usedl archobjs cppflags' + if [ "$emxaout" != "" ]; then - d_shrplib='undef' - obj_ext='.o' - lib_ext='.a' - ar='ar' - plibext='.a' - d_fork='define' - lddlflags='-Zdll' - ldflags='-Zexe' - ccflags='-DDOSISH -DNO_SYS_ALLOC -DOS2=2 -DEMBED -I. -DPACK_MALLOC' - use_clib='c' + d_shrplib="$aout_d_shrplib" + obj_ext="$aout_obj_ext" + lib_ext="$aout_lib_ext" + ar="$aout_ar" + plibext="$aout_plibext" + d_fork="$aout_d_fork" + lddlflags="$aout_lddlflags" + ldflags="$aout_ldflags" + ccflags="$aout_ccflags" + cppflags="$aout_cppflags" + use_clib="$aout_use_clib" + usedl="$aout_usedl" else d_shrplib='define' obj_ext='.obj' @@ -51,8 +77,9 @@ else lddlflags='-Zdll -Zomf -Zcrtdll' # Recursive regmatch may eat 2.5M of stack alone. ldflags='-Zexe -Zomf -Zcrtdll -Zstack 32000' - ccflags='-Zomf -DDOSISH -DOS2=2 -DEMBED -I. -DPACK_MALLOC' + ccflags='-Zomf -DDOSISH -DOS2=2 -DEMBED -I. -DPACK_MALLOC -DDEBUGGING_MSTATS' use_clib='c_import' + usedl='define' fi # To get into config.sh (should start at the beginning of line) @@ -70,18 +97,17 @@ fi # [Maybe we should just remove c from $libswanted ?] libs='-lsocket -lm' -archobjs="os2$obj_ext" +archobjs="os2$obj_ext dl_os2$obj_ext" # Run files without extension with sh - feature of patched ksh # [???] -NOHASHBANG=sh +# NOHASHBANG=sh # Same with newer ksh EXECSHELL=sh cccdlflags='-Zdll' -dlsrc='dl_os2.xs' +dlsrc='dl_dlopen.xs' ld='gcc' -usedl='define' #cppflags='-DDOSISH -DOS2=2 -DEMBED -I.' @@ -123,13 +149,12 @@ lns='cp' nm_opt='-p' -####### All the rest is commented +####### We define these functions ourselves -# 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' +d_getprior='define' +d_setprior='define' + +####### All the rest is commented # The next two are commented. pdksh handles #! # sharpbang='extproc '