[PATCH 5.004_60] Fix to MM_VMS.PM
[p5sagit/p5-mst-13.2.git] / hints / dos_djgpp.sh
1 # hints file for dos/djgpp v2.xx
2 # Original by Laszlo Molnar <molnarl@cdata.tvnet.hu>
3
4 # 971015 - archname changed from 'djgpp' to 'dos-djgpp'
5 # 971210 - threads support
6
7 archname='dos-djgpp'
8 archobjs='djgpp.o'
9 path_sep=\;
10 startsh="#!sh"
11
12 cc='gcc'
13 ld='gcc'
14 usrinc="$DJDIR/include"
15
16 libpth="$DJDIR/lib"
17 libc="$libpth/libc.a"
18
19 so='none'
20 usedl='n'
21
22 firstmakefile='GNUmakefile'
23 exe_ext='.exe'
24
25 randbits=31
26
27 ln='cp'             # no REAL ln on dos
28 lns='cp'
29
30 usenm='true'
31 d_bincompat3='undef'
32
33 d_link='undef'      # these are empty functions in libc.a
34 d_symlink='undef'
35 d_fork='undef'
36 d_pipe='undef'
37
38 startperl='#!perl'
39
40 case "X$optimize" in
41   X)
42         optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
43         ;;
44 esac
45 ldflags='-s'
46 usemymalloc='n'
47 timetype='time_t'
48
49 prefix=$DJDIR
50 privlib=$prefix/lib/perl5
51 archlib=$privlib
52 sitelib=$privlib/site
53 sitearch=$sitelib
54
55 : set up the translation script tr
56
57 cat >../UU/tr <<EOSC
58 $startsh
59 case "\$1\$2" in
60 '[A-Z][a-z]') exec tr.exe '[:upper:]' '[:lower:]';;
61 '[a-z][A-Z]') exec tr.exe '[:lower:]' '[:upper:]';;
62 esac
63 exec tr.exe "\$@"
64 EOSC
65
66 if [ "X$usethreads" != "X" ]; then
67     ccflags="-DUSE_THREADS $ccflags"
68     cppflags="-DUSE_THREADS $cppflags"
69     set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
70     shift
71     libswanted="$*"
72 fi