3 # hints file for BSD/OS (adapted from bsd386.sh)
4 # Original by Neil Bowers <neilb@khoros.unm.edu>; Tue Oct 4 12:01:34 EDT 1994
5 # Updated by Tony Sanders <sanders@bsdi.com>; Sat Aug 23 12:47:45 MDT 1997
6 # Added 3.1 with ELF dynamic libraries (NOT in 3.1 yet.
7 # Estimated for 4.0) SYSV IPC tested Ok so I re-enabled.
9 # Updated to work in post-4.0 by Todd C. Miller <millert@openbsd.org>
11 # Updated for threads by "Timur I. Bakeyev" <bsdi@listserv.bat.ru>
13 # To override the compiler on the command line:
14 # ./Configure -Dcc=gcc2
16 # The BSD/OS distribution is built with:
17 # ./Configure -des -Dbsdos_distribution=defined
24 # setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions.
25 # See <A HREF="http://www.bsdi.com/bsdi-man?setuid">http://www.bsdi.com/bsdi-man?setuid</A>(2)
31 # we don't want to use -lnm, since exp() is busted (in 1.1 anyway)
32 set `echo X "$libswanted "| sed -e 's/ nm / /'`
36 # X libraries are in their own tree
37 glibpth="$glibpth /usr/X11/lib"
38 ldflags="$ldflags -L/usr/X11/lib"
44 case "$bsdos_distribution" in
50 perlpath='/usr/bin/perl5'
51 startperl='#!/usr/bin/perl5'
52 scriptdir='/usr/contrib/bin'
53 privlib='/usr/libdata/perl5'
54 man1dir='/usr/contrib/man/man1'
55 man3dir='/usr/contrib/man/man3'
56 # phlib added by BSDI -- we share the *.ph include dir with perl4
57 phlib="/usr/libdata/perl5/site_perl/$(arch)-$osname/include"
58 phlibexp="/usr/libdata/perl5/site_perl/$(arch)-$osname/include"
64 # Avoid problems with HUGE_VAL in POSIX in 1.0's cc.
65 POSIX_cflags='ccflags="$ccflags -UHUGE_VAL"'
76 # default to GCC 2.X w/shared libraries
79 cccdlflags=' ' ;; # Avoid the dreaded -fpic
82 # default ld to shared library linker
85 lddlflags='-r' ;; # this one is necessary
88 # Must preload the static shared libraries.
89 libswanted="Xpm Xaw Xmu Xt SM ICE Xext X11 $libswanted"
90 libswanted="rpc curses termcap $libswanted"
93 # ELF dynamic link libraries starting in 4.0
99 '') cc='cc' # cc is gcc2 in 4.0
106 lddlflags="-shared -x $lddlflags" ;;
108 # Due usage of static pointer from crt.o
109 libswanted="util $libswanted" ;;
112 # This script UU/usethreads.cbu will get 'called-back' by Configure
113 # after it has prompted the user for whether to use threads.
114 cat > UU/usethreads.cbu <<'EOCBU'
115 case "$usethreads" in
118 3.*|4.*) ccflags="-D_REENTRANT $ccflags"
121 I did not know that BSD/OS $osvers supports POSIX threads.
123 Feel free to tell perlbug@perl.org otherwise.