gccversion=''
ccflags=''
cppflags=''
+mab=''
ldflags=''
lkflags=''
locincpth=''
*) osvers="$3" ;;
esac
;;
- irix) osname=irix
+ irix*) osname=irix
case "$3" in
4*) osvers=4 ;;
5*) osvers=5 ;;
tmp_c="$c"
cd ..
cp $config_sh config.sh 2>/dev/null
+ chmod +w config.sh
. ./config.sh
cd UU
cp ../config.sh .
set dflt
eval $prefixup
;;
- *) version=`echo $baserev $patchlevel $subversion | \
+ *) version=`LC_ALL=C;export LC_ALL;\
+ echo $baserev $patchlevel $subversion | \
$awk '{print $1 + $2/1000.0 + $3/100000.0}'`
dflt="$privlib/$archname/$version"
;;
#endif
main() {
char buf[64];
+ /* This test must come first. <AlanBurlison@unn.unisys.com> */
+ Gconvert(0.1, 8, 0, buf);
+ if (buf[0] != '.' || buf[1] != '1' || buf[2] != '\0')
+ exit(1);
Gconvert(1.0, 8, 0, buf);
if (buf[0] != '1' || buf[1] != '\0')
exit(1);
hpux) dflt='+z' ;;
next) dflt='none' ;;
solaris|svr4*|esix*) dflt='-Kpic' ;;
+ irix*) dflt='-KPIC' ;;
sunos) dflt='-pic' ;;
*) dflt='none' ;;
esac ;;
case "$lddlflags" in
'') case "$osname" in
hpux) dflt='-b' ;;
- linux) dflt='-shared' ;;
+ linux|irix*) dflt='-shared' ;;
next) dflt='none' ;;
solaris) dflt='-G' ;;
sunos) dflt='-assert nodefinitions' ;;
}
EOM
if $cc $ccflags $cccdlflags -c dyna.c > /dev/null 2>&1 &&
- $ld $lddlflags -o dyna.$dlext dyna.o > /dev/null 2>&1 &&
+ mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
+ $ld $lddlflags -o dyna.$dlext tmp-dyna.o > /dev/null 2>&1 &&
$cc $ccflags $ldflags $cccdlflags $ccdlflags fred.c -o fred $libs > /dev/null 2>&1; then
xxx=`./fred`
case $xxx in
;;
esac
-$rm -f fred fred.? dyna.$dlext dyna.?
+$rm -f fred fred.? dyna.$dlext dyna.? tmp-dyna.?
set d_dlsymun
eval $setvar
lpr='$lpr'
ls='$ls'
lseektype='$lseektype'
+mab='$mab'
mail='$mail'
mailx='$mailx'
make='$make'