This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
DOS djgpp updates:
[perl5.git] / hints / dos_djgpp.sh
CommitLineData
39e571d4
LM
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'
9731c6ca 5# 971210 - threads support
39e571d4
LM
6
7archname='dos-djgpp'
8archobjs='djgpp.o'
9path_sep=\;
10startsh="#!sh"
11
12cc='gcc'
13ld='gcc'
14usrinc="$DJDIR/include"
15
16libpth="$DJDIR/lib"
17libc="$libpth/libc.a"
18
19so='none'
20usedl='n'
21
22firstmakefile='GNUmakefile'
23exe_ext='.exe'
24
25randbits=31
26
27ln='cp' # no REAL ln on dos
28lns='cp'
29
30usenm='true'
31d_bincompat3='undef'
32
33d_link='undef' # these are empty functions in libc.a
34d_symlink='undef'
35d_fork='undef'
36d_pipe='undef'
37
38startperl='#!perl'
39
40case "X$optimize" in
41 X)
9731c6ca 42 optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
39e571d4
LM
43 ;;
44esac
45ldflags='-s'
46usemymalloc='n'
47timetype='time_t'
48
49prefix=$DJDIR
50privlib=$prefix/lib/perl5
51archlib=$privlib
52sitelib=$privlib/site
53sitearch=$sitelib
54
9e48b294
LM
55eagain='EAGAIN'
56rd_nodata='-1'
57
39e571d4
LM
58: set up the translation script tr
59
9e48b294 60cat > UU/tr <<EOSC
39e571d4
LM
61$startsh
62case "\$1\$2" in
63'[A-Z][a-z]') exec tr.exe '[:upper:]' '[:lower:]';;
64'[a-z][A-Z]') exec tr.exe '[:lower:]' '[:upper:]';;
65esac
66exec tr.exe "\$@"
67EOSC
9731c6ca
LM
68
69if [ "X$usethreads" != "X" ]; then
9731c6ca
LM
70 set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
71 shift
72 libswanted="$*"
73fi