# 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
-sh="$bin_sh"
-startsh="#!$bin_sh"
+path_sep=\;
+
+if test -f $sh.exe; then sh=$sh.exe; fi
+
+startsh="#!$sh"
-#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'
usrinc='/emx/include'
i_dlfcn='define'
aout_d_shrplib='undef'
+aout_useshrplib='false'
aout_obj_ext='.o'
aout_lib_ext='.a'
aout_ar='ar'
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'
+used_aout='d_shrplib useshrplib plibext lib_ext obj_ext ar plibext d_fork lddlflags ldflags ccflags use_clib usedl archobjs cppflags'
if [ "$emxaout" != "" ]; then
d_shrplib="$aout_d_shrplib"
+ useshrplib="$aout_useshrplib"
obj_ext="$aout_obj_ext"
lib_ext="$aout_lib_ext"
ar="$aout_ar"
usedl="$aout_usedl"
else
d_shrplib='define'
+ useshrplib='true'
obj_ext='.obj'
lib_ext='.lib'
ar='emxomfar'
# To get into config.sh (should start at the beginning of line)
# or you can put it into config.over.
plibext="$plibext"
+# plibext is not needed anymore. Just directly set $libperl.
+libperl="libperl${plibext}"
#libc="/emx/lib/st/c_import$lib_ext"
libc="$libemx/st/$use_clib$lib_ext"
libs='-lsocket -lm'
archobjs="os2$obj_ext dl_os2$obj_ext"
-# Run files without extension with sh - feature of patched ksh
-# [???]
-# NOHASHBANG=sh
-# Same with newer ksh
+# Run files without extension with sh:
EXECSHELL=sh
cccdlflags='-Zdll'
# above will be overwritten otherwise, indented to avoid config.sh
_nroff='nroff.cmd'
+# should be handled automatically by Configure now.
ln='cp'
# Will be rewritten otherwise, indented to not put in config.sh
_ln='cp'