[win32] protect sortcop from C<sort { sort { ... } ... } ...>
[p5sagit/p5-mst-13.2.git] / hints / dos_djgpp.sh
CommitLineData
39e571d4 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 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'
39e571d4 31
32d_link='undef' # these are empty functions in libc.a
33d_symlink='undef'
34d_fork='undef'
35d_pipe='undef'
36
37startperl='#!perl'
38
39case "X$optimize" in
40 X)
9731c6ca 41 optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
39e571d4 42 ;;
43esac
44ldflags='-s'
45usemymalloc='n'
46timetype='time_t'
47
48prefix=$DJDIR
49privlib=$prefix/lib/perl5
50archlib=$privlib
51sitelib=$privlib/site
52sitearch=$sitelib
53
9e48b294 54eagain='EAGAIN'
55rd_nodata='-1'
56
39e571d4 57: set up the translation script tr
58
9e48b294 59cat > UU/tr <<EOSC
39e571d4 60$startsh
61case "\$1\$2" in
62'[A-Z][a-z]') exec tr.exe '[:upper:]' '[:lower:]';;
63'[a-z][A-Z]') exec tr.exe '[:lower:]' '[:upper:]';;
64esac
65exec tr.exe "\$@"
66EOSC
9731c6ca 67
e5c9fcd0 68if [ "X$usethreads" = "X$define" ]; then
9731c6ca 69 set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
70 shift
71 libswanted="$*"
72fi