1 # The MPE/iX linker doesn't complain about unresolved symbols, and so the only
2 # way to test for unresolved symbols in a program is by attempting to run it.
3 # But this is slow, and fraught with problems, so the better solution is to use
6 # MPE/iX lacks a fully functional native nm, so we need to use our fake nm
7 # script which will extract the symbol info from the native link editor and
8 # reformat into something nm-like.
10 # Created for 5.003 by Mark Klein, mklein@dis.com.
11 # Substantially revised for 5.004_01 by Mark Bixby, markb@cccd.edu.
12 # Revised again for 5.004_69 by Mark Bixby, markb@cccd.edu.
13 # Revised for 5.6.0 by Mark Bixby, mbixby@power.net.
16 osvers=`uname -r | sed -e 's/.[A-Z]\.\([0-9]\)\([0-9]\)\.[0-9][0-9]/\1.\2/'`
18 # Force Configure to use our wrapper mpeix/nm script
20 PATH="$PWD/mpeix:$PATH"
26 # Various directory locations.
28 # Which ones of these does Configure get wrong?
29 test -z "$prefix" && prefix='/PERL/PUB'
32 installman1dir="$prefix/man/man1"
33 installman3dir="$prefix/man/man3"
34 man1dir="$prefix/man/man1"
35 man3dir="$prefix/man/man3"
36 perlpath="$prefix/PERL"
38 startperl="#!$prefix/perl"
43 test -z "$cc" && cc='gcc'
45 ccflags="$ccflags -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_POSIX_JOB_CONTROL -DIS_SOCKET_CLIB_ITSELF"
46 locincpth="$locincpth /usr/local/include /usr/contrib/include /BIND/PUB/include"
47 test -z "$optimize" && optimize="-O2"
49 # Special compiling options for certain source files.
50 # But what if you want -g?
51 regcomp_cflags='optimize=-O'
52 toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
57 # Delete bsd and BSD from the library list. Remove other randomly ordered
58 # libraries and then re-add them in their proper order (the MPE linker is
59 # order-sensitive). Add additional MPE-specific libraries.
60 for mpe_remove in bind bsd BSD c curses m socket str svipc syslog; do
61 set `echo " $libswanted " | sed -e 's/ / /g' -e "s/ $mpe_remove //"`
64 libswanted="$libswanted bind syslog curses svipc socket str m c"
65 loclibpth="$loclibpth /usr/local/lib /usr/contrib/lib /BIND/PUB/lib /SYSLOG/PUB"
67 # External functions and data items.
69 # Q: Does Configure *really* get *all* of these wrong?
71 # A: Yes. There are two MPE problems here. The 'undef' functions exist on MPE,
72 # but are merely dummy routines that return ENOTIMPL or ESYSERR. Since they're
73 # useless, let's just tell Perl to avoid them. Also, a few data items are
74 # 'undef' because while they may exist in structures, they are uninitialized.
76 # The 'define' cases are a bit weirder. MPE has a libc.a, libc.sl, and two
77 # special kernel shared libraries, /SYS/PUB/XL and /SYS/PUB/NL. Much of what
78 # is in libc.a is duplicated within XL and NL, so when we created libc.sl, we
79 # omitted the duplicated functions. Since Configure end ups scanning libc.sl,
80 # we need to 'define' the functions that had been removed.
82 # We don't want to scan XL or NL because we would find way too many POSIX or
83 # Unix named functions that are really vanilla MPE functions that do something
84 # completely different than on POSIX or Unix.
89 d_Gconvert='gcvt((x),(n),(b))'
109 d_strerrm='strerror(e)'
122 i_termios='undef' # we have termios, but not the full set (just tcget/setattr)
126 timeincl='/usr/include/time.h'
134 bincompat5005="$undef"
135 uselargefiles="$undef"