This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
dos-djgpp update
[perl5.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
32 d_link='undef'      # these are empty functions in libc.a
33 d_symlink='undef'
34 d_fork='undef'
35 d_pipe='undef'
36
37 startperl='#!perl'
38
39 case "X$optimize" in
40   X)
41         optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
42         ;;
43 esac
44 ldflags='-s'
45 usemymalloc='n'
46 timetype='time_t'
47
48 prefix=$DJDIR
49 privlib=$prefix/lib/perl5
50 archlib=$privlib
51 sitelib=$privlib/site
52 sitearch=$sitelib
53
54 eagain='EAGAIN'
55 rd_nodata='-1'
56
57 : set up the translation script tr
58
59 cat > UU/tr <<EOSC
60 $startsh
61 case "\$1\$2" in
62 '[A-Z][a-z]') exec tr.exe '[:upper:]' '[:lower:]';;
63 '[a-z][A-Z]') exec tr.exe '[:lower:]' '[:upper:]';;
64 esac
65 exec tr.exe "\$@"
66 EOSC
67
68 if [ "X$usethreads" = "X$define" ]; then
69     set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
70     shift
71     libswanted="$*"
72 fi