This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
integrate cfgperl changes into mainline
[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 # 000222 - added -DPERL_EXTERNAL_GLOB to ccflags
7
8 archname='dos-djgpp'
9 archobjs='djgpp.o'
10 path_sep=\;
11 startsh="#! /bin/sh"
12
13 cc='gcc'
14 ld='gcc'
15 usrinc="$DJDIR/include"
16
17 libpth="$DJDIR/lib"
18 libc="$libpth/libc.a"
19
20 so='none'
21 usedl='n'
22
23 firstmakefile='GNUmakefile'
24 exe_ext='.exe'
25
26 randbits=31
27 lns='cp'
28
29 usenm='true'
30
31 d_link='undef'      # these are empty functions in libc.a
32 d_symlink='undef'
33 d_fork='undef'
34 d_pipe='undef'
35
36 startperl='#!perl'
37
38 case "X$optimize" in
39   X)
40         optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
41         ;;
42 esac
43 ccflags="$ccflags -DPERL_EXTERNAL_GLOB"
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 # This script UU/usethreads.cbu will get 'called-back' by Configure 
58 # after it has prompted the user for whether to use threads.
59 cat > UU/usethreads.cbu <<'EOCBU'
60 case "$usethreads" in
61 $define|true|[yY]*)
62         set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
63         shift
64         libswanted="$*"
65         ;;
66 esac
67 EOCBU