MakeMaker 3.8
[p5sagit/p5-mst-13.2.git] / hints / svr4.sh
CommitLineData
a0d0e21e 1# svr4 hints, System V Release 4.x
2# Use Configure -Dcc=gcc to use gcc.
3case "$cc" in
4'') cc='/bin/cc'
5 test -f $cc || cc='/usr/ccs/bin/cc'
6 cccdlflags='-Kpic' # Probably needed for dynamic loading
7 ;;
8esac
9test -d /usr/local/man || mansrc='none'
10# We include support for using libraries in /usr/ucblib, but the setting
11# of libswanted excludes some libraries found there. You may want to
12# prevent "ucb" from being removed from libswanted and see if perl will
13# build on your system.
14ldflags='-L/usr/ccs/lib -L/usr/ucblib'
d48672a2 15ccflags='-I/usr/include -I/usr/ucbinclude'
a0d0e21e 16libswanted=`echo $libswanted | tr ' ' '\012' | egrep -v '^(malloc|ucb)$'`
17# -lucb: Defines setreuid() and other routines Perl wants but they don't
18# add any/much functionality and often won't ld properly.
19# -lmalloc: Anyone know what problems this caused?
20if [ "" = "$i_ndbm" -a ! -f /usr/ucblib/libndbm.a ]; then
21# UnixWare 1.1 may install /usr/ucbinclude/ndbm.h w/o /usr/ucblib/libndbm.a
22 i_ndbm="$undef" # so Configure tries to build ext/NDBM_File and ld
23fi # can't find dbm_open()! "./Configure -D i_ndbm=define" overrides.
24d_index='undef'
25d_suidsafe=define # "./Configure -d" can't figure this out
26lddlflags="-G $ldflags" # Probably needed for dynamic loading
27usevfork='false'
28# dlopen routines exist but they don't work with perl.
29# The case statement allows experimenters to override hint with
30# Configure -D usedl
31case "$usedl" in
32'') usedl="$undef" ;;
33esac