# 971015 - archname changed from 'djgpp' to 'dos-djgpp'
# 971210 - threads support
+# 000222 - added -DPERL_EXTERNAL_GLOB to ccflags
archname='dos-djgpp'
archobjs='djgpp.o'
usenm='true'
+# this reportedly causes compile errors in system includes
+i_ieeefp='undef'
+
d_link='undef' # these are empty functions in libc.a
d_symlink='undef'
d_fork='undef'
case "X$optimize" in
X)
optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
+ ldflags='-s'
+ ;;
+ X*)
+ ldflags=' '
;;
esac
-ldflags='-s'
+ccflags="$ccflags -DPERL_EXTERNAL_GLOB"
usemymalloc='n'
timetype='time_t'
eagain='EAGAIN'
rd_nodata='-1'
-if [ "X$usethreads" = "X$define" ]; then
- set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
- shift
- libswanted="$*"
-fi
+# This script UU/usethreads.cbu will get 'called-back' by Configure
+# after it has prompted the user for whether to use threads.
+cat > UU/usethreads.cbu <<'EOCBU'
+case "$usethreads" in
+$define|true|[yY]*)
+ set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
+ shift
+ libswanted="$*"
+ ;;
+esac
+EOCBU