source: vendor/perl/5.8.8/hints/mpeix.sh

Last change on this file was 3181, checked in by bird, 18 years ago

perl 5.8.8

File size: 3.9 KB
Line 
1# Created for 5.003 by Mark Klein, mklein@dis.com.
2# Substantially revised for 5.004_01 by Mark Bixby, markb@cccd.edu.
3# Revised again for 5.004_69 by Mark Bixby, markb@cccd.edu.
4# Revised for 5.6.0 by Mark Bixby, mbixby@power.net.
5# Revised for 5.7.3 by Mark Bixby, mark@bixby.org.
6# Revised for 5.8.0 by Mark Bixby, mark@bixby.org.
7# Revised for 5.8.8/5.9.3 by Ken Hirsch, kenhirsch@ftml.net
8#
9osname='mpeix'
10osvers=`uname -r | sed -e 's/.[A-Z]\.\([0-9]\)\([0-9]\)\.[0-9][0-9]/\1.\2/'`
11
12#
13# Don't use nm. Instead, we'll use the MPEAUTOCONF environment variable
14# to force error for unresolved externals.
15# This is slower than nm (about 70 minutes instead of 35 minutes),
16# but much more reliable.
17
18usenm='false'
19export AUTOCONF=1 MPEAUTOCONF=1
20
21# Work around the broken inline cat bug that corrupts here docs
22#
23alias -x cat=/bin/cat
24#
25# Various directory locations.
26#
27# Which ones of these does Configure get wrong?
28test -z "$prefix" && prefix="/$HPACCOUNT/$HPGROUP"
29archname='PA-RISC1.1'
30bin="$prefix"
31installman1dir="$prefix/man/man1"
32installman3dir="$prefix/man/man3"
33man1dir="$prefix/man/man1"
34man3dir="$prefix/man/man3"
35perlpath="$prefix/PERL"
36scriptdir="$prefix"
37startperl="#!$prefix/perl"
38startsh='#!/bin/sh'
39
40#
41# Compiling.
42#
43test -z "$cc" && cc='gcc'
44cccdlflags='none'
45ccdlflags='-Xlinker -WL,xl=/usr/lib/libcurses.sl,/lib/libsvipc.sl,/usr/lib/libsocket.sl,/usr/lib/libstr.sl,/lib/libm.sl,/lib/libc.sl'
46ccflags="$ccflags -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_POSIX_JOB_CONTROL"
47locincpth="$locincpth /usr/local/include /usr/contrib/include /BIND/CURRENT/include /SYSLOG/PUB"
48test -z "$optimize" && optimize="-O2"
49ranlib='/bin/true'
50# Special compiling options for certain source files.
51# But what if you want -g?
52regcomp_cflags='optimize=-O'
53toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
54
55#
56# Linking.
57#
58# Build a fixed sigsetjmp that can be used in dynamic libraries
59# This needs to be compiled with -O2, so I do it here, rather
60# than with make
61gcc -c -O2 mpeix/mpeix_setjmp.c
62lddlflags="-b $PWD/mpeix_setjmp.o"
63
64# Delete bsd and BSD from the library list. Remove other randomly ordered
65# libraries and then re-add them in their proper order (the MPE linker is
66# order-sensitive). Add additional MPE-specific libraries.
67for mpe_remove in bind bsd BSD c curses m socket str svipc syslog; do
68 set `echo " $libswanted " | sed -e 's/ / /g' -e "s/ $mpe_remove //"`
69 libswanted="$*"
70done
71libswanted="$libswanted bind syslog curses svipc socket str m c"
72loclibpth="$loclibpth /usr/local/lib /usr/contrib/lib /BIND/CURRENT/lib /SYSLOG/PUB"
73#
74# External functions and data items.
75#
76# Q: Does Configure *really* get *all* of these wrong?
77#
78# A: Yes. There are two MPE problems here. The 'undef' functions exist on MPE,
79# but are merely dummy routines that return ENOTIMPL or ESYSERR. Since they're
80# useless, let's just tell Perl to avoid them. Also, a few data items are
81# 'undef' because while they may exist in structures, they are uninitialized.
82
83d_Gconvert='gcvt((x),(n),(b))'
84
85d_inetaton='undef'
86
87# these fields exist, but are uninitialized
88d_pwage='undef'
89d_pwcomment='undef'
90d_pwgecos='undef'
91d_pwpasswd='undef'
92d_statblks='undef'
93
94# These functions exist,
95# but either return ENOSYS/ESYSERR/ENOSYS or work so differently
96# that it is not helpful to include them
97
98d_lchown='undef'
99d_link='undef'
100d_setegid='undef'
101d_seteuid='undef'
102d_setitimer='undef'
103d_setpgid='undef'
104d_setsid='undef'
105
106
107# These are defined in mpeix/mpeix.c
108d_gettimeod='define'
109d_truncate='define'
110
111# Include files.
112#
113#??i_gdbm='undef' # the port is currently incomplete
114
115i_termios='undef' # we have termios, but not the full set (just tcget/setattr)
116
117i_time='define'
118i_systime='undef'
119i_systimek='undef'
120timeincl='/usr/include/time.h'
121#
122# Data types.
123#
124timetype='time_t'
125
126# Functionality.
127#
128uselargefiles="$undef"
129
130# Expected functionality provided in mpeix.c.
131#
132
133# Help gmake find mpeix.c
134test -h mpeix.c || ln -s mpeix/mpeix.c mpeix.c
135
136archobjs='mpeix.o mpeix_setjmp.o'
Note: See TracBrowser for help on using the repository browser.