mirror of
https://github.com/moparisthebest/curl
synced 2025-01-09 04:58:00 -05:00
libtoolize 1.4.3 brought these
This commit is contained in:
parent
eb0cc34951
commit
46a593d968
352
config.guess
vendored
352
config.guess
vendored
@ -1,9 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Attempt to guess a canonical system name.
|
# Attempt to guess a canonical system name.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
# Free Software Foundation, Inc.
|
# 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2001-09-04'
|
timestamp='2002-10-21'
|
||||||
|
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
@ -24,8 +24,9 @@ timestamp='2001-09-04'
|
|||||||
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
# Written by Per Bothner <bothner@cygnus.com>.
|
# Originally written by Per Bothner <per@bothner.com>.
|
||||||
# Please send patches to <config-patches@gnu.org>.
|
# Please send patches to <config-patches@gnu.org>. Submit a context
|
||||||
|
# diff and a properly formatted ChangeLog entry.
|
||||||
#
|
#
|
||||||
# This script attempts to guess a canonical system name similar to
|
# This script attempts to guess a canonical system name similar to
|
||||||
# config.sub. If it succeeds, it prints the system name on stdout, and
|
# config.sub. If it succeeds, it prints the system name on stdout, and
|
||||||
@ -87,30 +88,40 @@ if test $# != 0; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
trap 'exit 1' 1 2 15
|
||||||
|
|
||||||
dummy=dummy-$$
|
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
|
||||||
trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
|
# compiler to aid in system detection is discouraged as it requires
|
||||||
|
# temporary files to be created and, as you can see below, it is a
|
||||||
|
# headache to deal with in a portable fashion.
|
||||||
|
|
||||||
# CC_FOR_BUILD -- compiler used by this script.
|
|
||||||
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
|
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
|
||||||
# use `HOST_CC' if defined, but it is deprecated.
|
# use `HOST_CC' if defined, but it is deprecated.
|
||||||
|
|
||||||
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
|
# This shell variable is my proudest work .. or something. --bje
|
||||||
,,) echo "int dummy(){}" > $dummy.c ;
|
|
||||||
for c in cc gcc c89 ; do
|
set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
|
||||||
($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
|
(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
|
||||||
if test $? = 0 ; then
|
|| (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
|
||||||
|
dummy=$tmpdir/dummy ;
|
||||||
|
files="$dummy.c $dummy.o $dummy.rel $dummy" ;
|
||||||
|
trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
|
||||||
|
case $CC_FOR_BUILD,$HOST_CC,$CC in
|
||||||
|
,,) echo "int x;" > $dummy.c ;
|
||||||
|
for c in cc gcc c89 c99 ; do
|
||||||
|
if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
|
||||||
CC_FOR_BUILD="$c"; break ;
|
CC_FOR_BUILD="$c"; break ;
|
||||||
fi ;
|
fi ;
|
||||||
done ;
|
done ;
|
||||||
rm -f $dummy.c $dummy.o $dummy.rel ;
|
rm -f $files ;
|
||||||
if test x"$CC_FOR_BUILD" = x ; then
|
if test x"$CC_FOR_BUILD" = x ; then
|
||||||
CC_FOR_BUILD=no_compiler_found ;
|
CC_FOR_BUILD=no_compiler_found ;
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
,,*) CC_FOR_BUILD=$CC ;;
|
,,*) CC_FOR_BUILD=$CC ;;
|
||||||
,*,*) CC_FOR_BUILD=$HOST_CC ;;
|
,*,*) CC_FOR_BUILD=$HOST_CC ;;
|
||||||
esac'
|
esac ;
|
||||||
|
unset files'
|
||||||
|
|
||||||
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
||||||
# (ghazi@noc.rutgers.edu 1994-08-24)
|
# (ghazi@noc.rutgers.edu 1994-08-24)
|
||||||
@ -127,29 +138,30 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
|||||||
|
|
||||||
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
*:NetBSD:*:*)
|
*:NetBSD:*:*)
|
||||||
# Netbsd (nbsd) targets should (where applicable) match one or
|
# NetBSD (nbsd) targets should (where applicable) match one or
|
||||||
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
||||||
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
||||||
# switched to ELF, *-*-netbsd* would select the old
|
# switched to ELF, *-*-netbsd* would select the old
|
||||||
# object file format. This provides both forward
|
# object file format. This provides both forward
|
||||||
# compatibility and a consistent mechanism for selecting the
|
# compatibility and a consistent mechanism for selecting the
|
||||||
# object file format.
|
# object file format.
|
||||||
# Determine the machine/vendor (is the vendor relevant).
|
#
|
||||||
case "${UNAME_MACHINE}" in
|
# Note: NetBSD doesn't particularly care about the vendor
|
||||||
amiga) machine=m68k-unknown ;;
|
# portion of the name. We always set it to "unknown".
|
||||||
arm32) machine=arm-unknown ;;
|
sysctl="sysctl -n hw.machine_arch"
|
||||||
atari*) machine=m68k-atari ;;
|
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
|
||||||
sun3*) machine=m68k-sun ;;
|
/usr/sbin/$sysctl 2>/dev/null || echo unknown)`
|
||||||
mac68k) machine=m68k-apple ;;
|
case "${UNAME_MACHINE_ARCH}" in
|
||||||
macppc) machine=powerpc-apple ;;
|
armeb) machine=armeb-unknown ;;
|
||||||
hp3[0-9][05]) machine=m68k-hp ;;
|
arm*) machine=arm-unknown ;;
|
||||||
ibmrt|romp-ibm) machine=romp-ibm ;;
|
sh3el) machine=shl-unknown ;;
|
||||||
*) machine=${UNAME_MACHINE}-unknown ;;
|
sh3eb) machine=sh-unknown ;;
|
||||||
|
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
||||||
esac
|
esac
|
||||||
# The Operating System including object format, if it has switched
|
# The Operating System including object format, if it has switched
|
||||||
# to ELF recently, or will in the future.
|
# to ELF recently, or will in the future.
|
||||||
case "${UNAME_MACHINE}" in
|
case "${UNAME_MACHINE_ARCH}" in
|
||||||
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
|
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
||||||
eval $set_cc_for_build
|
eval $set_cc_for_build
|
||||||
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||||
| grep __ELF__ >/dev/null
|
| grep __ELF__ >/dev/null
|
||||||
@ -172,6 +184,45 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|||||||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
||||||
echo "${machine}-${os}${release}"
|
echo "${machine}-${os}${release}"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
amiga:OpenBSD:*:*)
|
||||||
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
arc:OpenBSD:*:*)
|
||||||
|
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
hp300:OpenBSD:*:*)
|
||||||
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
mac68k:OpenBSD:*:*)
|
||||||
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
macppc:OpenBSD:*:*)
|
||||||
|
echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
mvme68k:OpenBSD:*:*)
|
||||||
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
mvme88k:OpenBSD:*:*)
|
||||||
|
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
mvmeppc:OpenBSD:*:*)
|
||||||
|
echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
pmax:OpenBSD:*:*)
|
||||||
|
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
sgi:OpenBSD:*:*)
|
||||||
|
echo mipseb-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
sun3:OpenBSD:*:*)
|
||||||
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
wgrisc:OpenBSD:*:*)
|
||||||
|
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
*:OpenBSD:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
alpha:OSF1:*:*)
|
alpha:OSF1:*:*)
|
||||||
if test $UNAME_RELEASE = "V4.0"; then
|
if test $UNAME_RELEASE = "V4.0"; then
|
||||||
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
||||||
@ -180,6 +231,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|||||||
# A Tn.n version is a released field test version.
|
# A Tn.n version is a released field test version.
|
||||||
# A Xn.n version is an unreleased experimental baselevel.
|
# A Xn.n version is an unreleased experimental baselevel.
|
||||||
# 1.2 uses "1.2" for uname -r.
|
# 1.2 uses "1.2" for uname -r.
|
||||||
|
eval $set_cc_for_build
|
||||||
cat <<EOF >$dummy.s
|
cat <<EOF >$dummy.s
|
||||||
.data
|
.data
|
||||||
\$Lformat:
|
\$Lformat:
|
||||||
@ -205,10 +257,9 @@ main:
|
|||||||
jsr \$26,exit
|
jsr \$26,exit
|
||||||
.end main
|
.end main
|
||||||
EOF
|
EOF
|
||||||
eval $set_cc_for_build
|
$CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
|
||||||
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
|
|
||||||
if test "$?" = 0 ; then
|
if test "$?" = 0 ; then
|
||||||
case `./$dummy` in
|
case `$dummy` in
|
||||||
0-0)
|
0-0)
|
||||||
UNAME_MACHINE="alpha"
|
UNAME_MACHINE="alpha"
|
||||||
;;
|
;;
|
||||||
@ -230,9 +281,12 @@ EOF
|
|||||||
2-1307)
|
2-1307)
|
||||||
UNAME_MACHINE="alphaev68"
|
UNAME_MACHINE="alphaev68"
|
||||||
;;
|
;;
|
||||||
|
3-1307)
|
||||||
|
UNAME_MACHINE="alphaev7"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
rm -f $dummy.s $dummy
|
rm -f $dummy.s $dummy && rmdir $tmpdir
|
||||||
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
Alpha\ *:Windows_NT*:*)
|
Alpha\ *:Windows_NT*:*)
|
||||||
@ -247,29 +301,11 @@ EOF
|
|||||||
Amiga*:UNIX_System_V:4.0:*)
|
Amiga*:UNIX_System_V:4.0:*)
|
||||||
echo m68k-unknown-sysv4
|
echo m68k-unknown-sysv4
|
||||||
exit 0;;
|
exit 0;;
|
||||||
amiga:OpenBSD:*:*)
|
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
*:[Aa]miga[Oo][Ss]:*:*)
|
*:[Aa]miga[Oo][Ss]:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-amigaos
|
echo ${UNAME_MACHINE}-unknown-amigaos
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
arc64:OpenBSD:*:*)
|
*:[Mm]orph[Oo][Ss]:*:*)
|
||||||
echo mips64el-unknown-openbsd${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-unknown-morphos
|
||||||
exit 0 ;;
|
|
||||||
arc:OpenBSD:*:*)
|
|
||||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
hkmips:OpenBSD:*:*)
|
|
||||||
echo mips-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
pmax:OpenBSD:*:*)
|
|
||||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
sgi:OpenBSD:*:*)
|
|
||||||
echo mips-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
wgrisc:OpenBSD:*:*)
|
|
||||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:OS/390:*:*)
|
*:OS/390:*:*)
|
||||||
echo i370-ibm-openedition
|
echo i370-ibm-openedition
|
||||||
@ -291,6 +327,10 @@ EOF
|
|||||||
NILE*:*:*:dcosx)
|
NILE*:*:*:dcosx)
|
||||||
echo pyramid-pyramid-svr4
|
echo pyramid-pyramid-svr4
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
DRS?6000:UNIX_SV:4.2*:7*)
|
||||||
|
case `/usr/bin/uname -p` in
|
||||||
|
sparc) echo sparc-icl-nx7 && exit 0 ;;
|
||||||
|
esac ;;
|
||||||
sun4H:SunOS:5.*:*)
|
sun4H:SunOS:5.*:*)
|
||||||
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -319,7 +359,7 @@ EOF
|
|||||||
echo m68k-sun-sunos${UNAME_RELEASE}
|
echo m68k-sun-sunos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
sun*:*:4.2BSD:*)
|
sun*:*:4.2BSD:*)
|
||||||
UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
||||||
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
|
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
|
||||||
case "`/bin/arch`" in
|
case "`/bin/arch`" in
|
||||||
sun3)
|
sun3)
|
||||||
@ -333,12 +373,6 @@ EOF
|
|||||||
aushp:SunOS:*:*)
|
aushp:SunOS:*:*)
|
||||||
echo sparc-auspex-sunos${UNAME_RELEASE}
|
echo sparc-auspex-sunos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
sparc*:NetBSD:*)
|
|
||||||
echo `uname -p`-unknown-netbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
atari*:OpenBSD:*:*)
|
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
# The situation for MiNT is a little confusing. The machine name
|
# The situation for MiNT is a little confusing. The machine name
|
||||||
# can be virtually everything (everything which is not
|
# can be virtually everything (everything which is not
|
||||||
# "atarist" or "atariste" at least should have a processor
|
# "atarist" or "atariste" at least should have a processor
|
||||||
@ -365,18 +399,6 @@ EOF
|
|||||||
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
||||||
echo m68k-unknown-mint${UNAME_RELEASE}
|
echo m68k-unknown-mint${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
sun3*:OpenBSD:*:*)
|
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
mac68k:OpenBSD:*:*)
|
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
mvme68k:OpenBSD:*:*)
|
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
mvme88k:OpenBSD:*:*)
|
|
||||||
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
powerpc:machten:*:*)
|
powerpc:machten:*:*)
|
||||||
echo powerpc-apple-machten${UNAME_RELEASE}
|
echo powerpc-apple-machten${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -415,15 +437,21 @@ EOF
|
|||||||
exit (-1);
|
exit (-1);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy \
|
$CC_FOR_BUILD -o $dummy $dummy.c \
|
||||||
&& ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
&& $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
||||||
&& rm -f $dummy.c $dummy && exit 0
|
&& rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy && rmdir $tmpdir
|
||||||
echo mips-mips-riscos${UNAME_RELEASE}
|
echo mips-mips-riscos${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
Motorola:PowerMAX_OS:*:*)
|
Motorola:PowerMAX_OS:*:*)
|
||||||
echo powerpc-motorola-powermax
|
echo powerpc-motorola-powermax
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
Motorola:*:4.3:PL8-*)
|
||||||
|
echo powerpc-harris-powermax
|
||||||
|
exit 0 ;;
|
||||||
|
Night_Hawk:*:*:PowerMAX_OS)
|
||||||
|
echo powerpc-harris-powermax
|
||||||
|
exit 0 ;;
|
||||||
Night_Hawk:Power_UNIX:*:*)
|
Night_Hawk:Power_UNIX:*:*)
|
||||||
echo powerpc-harris-powerunix
|
echo powerpc-harris-powerunix
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -496,8 +524,8 @@ EOF
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy && rmdir $tmpdir
|
||||||
echo rs6000-ibm-aix3.2.5
|
echo rs6000-ibm-aix3.2.5
|
||||||
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||||
echo rs6000-ibm-aix3.2.4
|
echo rs6000-ibm-aix3.2.4
|
||||||
@ -506,7 +534,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:AIX:*:[45])
|
*:AIX:*:[45])
|
||||||
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
||||||
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
||||||
IBM_ARCH=rs6000
|
IBM_ARCH=rs6000
|
||||||
else
|
else
|
||||||
@ -546,10 +574,8 @@ EOF
|
|||||||
9000/31? ) HP_ARCH=m68000 ;;
|
9000/31? ) HP_ARCH=m68000 ;;
|
||||||
9000/[34]?? ) HP_ARCH=m68k ;;
|
9000/[34]?? ) HP_ARCH=m68k ;;
|
||||||
9000/[678][0-9][0-9])
|
9000/[678][0-9][0-9])
|
||||||
case "${HPUX_REV}" in
|
if [ -x /usr/bin/getconf ]; then
|
||||||
11.[0-9][0-9])
|
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
||||||
if [ -x /usr/bin/getconf ]; then
|
|
||||||
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
|
||||||
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
||||||
case "${sc_cpu_version}" in
|
case "${sc_cpu_version}" in
|
||||||
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
||||||
@ -558,13 +584,13 @@ EOF
|
|||||||
case "${sc_kernel_bits}" in
|
case "${sc_kernel_bits}" in
|
||||||
32) HP_ARCH="hppa2.0n" ;;
|
32) HP_ARCH="hppa2.0n" ;;
|
||||||
64) HP_ARCH="hppa2.0w" ;;
|
64) HP_ARCH="hppa2.0w" ;;
|
||||||
|
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
||||||
esac ;;
|
esac ;;
|
||||||
esac
|
esac
|
||||||
fi ;;
|
fi
|
||||||
esac
|
if [ "${HP_ARCH}" = "" ]; then
|
||||||
if [ "${HP_ARCH}" = "" ]; then
|
eval $set_cc_for_build
|
||||||
eval $set_cc_for_build
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
sed 's/^ //' << EOF >$dummy.c
|
|
||||||
|
|
||||||
#define _HPUX_SOURCE
|
#define _HPUX_SOURCE
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -597,10 +623,10 @@ EOF
|
|||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
|
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
||||||
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
|
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy && rmdir $tmpdir
|
||||||
fi ;;
|
fi ;;
|
||||||
esac
|
esac
|
||||||
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -635,8 +661,8 @@ EOF
|
|||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy && rmdir $tmpdir
|
||||||
echo unknown-hitachi-hiuxwe2
|
echo unknown-hitachi-hiuxwe2
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
||||||
@ -664,9 +690,6 @@ EOF
|
|||||||
parisc*:Lites*:*:*)
|
parisc*:Lites*:*:*)
|
||||||
echo hppa1.1-hp-lites
|
echo hppa1.1-hp-lites
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
hppa*:OpenBSD:*:*)
|
|
||||||
echo hppa-unknown-openbsd
|
|
||||||
exit 0 ;;
|
|
||||||
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||||
echo c1-convex-bsd
|
echo c1-convex-bsd
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -685,9 +708,6 @@ EOF
|
|||||||
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
||||||
echo c4-convex-bsd
|
echo c4-convex-bsd
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
CRAY*X-MP:*:*:*)
|
|
||||||
echo xmp-cray-unicos
|
|
||||||
exit 0 ;;
|
|
||||||
CRAY*Y-MP:*:*:*)
|
CRAY*Y-MP:*:*:*)
|
||||||
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -709,18 +729,12 @@ EOF
|
|||||||
CRAY*SV1:*:*:*)
|
CRAY*SV1:*:*:*)
|
||||||
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
CRAY-2:*:*:*)
|
|
||||||
echo cray2-cray-unicos
|
|
||||||
exit 0 ;;
|
|
||||||
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
||||||
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||||
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
||||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
||||||
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
hp300:OpenBSD:*:*)
|
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -731,10 +745,19 @@ EOF
|
|||||||
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:FreeBSD:*:*)
|
*:FreeBSD:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
# Determine whether the default compiler uses glibc.
|
||||||
exit 0 ;;
|
eval $set_cc_for_build
|
||||||
*:OpenBSD:*:*)
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
#include <features.h>
|
||||||
|
#if __GLIBC__ >= 2
|
||||||
|
LIBC=gnu
|
||||||
|
#else
|
||||||
|
LIBC=
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
||||||
|
rm -f $dummy.c && rmdir $tmpdir
|
||||||
|
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i*:CYGWIN*:*)
|
i*:CYGWIN*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-cygwin
|
echo ${UNAME_MACHINE}-pc-cygwin
|
||||||
@ -745,6 +768,9 @@ EOF
|
|||||||
i*:PW*:*)
|
i*:PW*:*)
|
||||||
echo ${UNAME_MACHINE}-pc-pw32
|
echo ${UNAME_MACHINE}-pc-pw32
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
x86:Interix*:3*)
|
||||||
|
echo i386-pc-interix3
|
||||||
|
exit 0 ;;
|
||||||
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
||||||
# How do we know it's Interix rather than the generic POSIX subsystem?
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
||||||
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
||||||
@ -770,16 +796,30 @@ EOF
|
|||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
ia64:Linux:*:*)
|
ia64:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
m68*:Linux:*:*)
|
m68*:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
mips:Linux:*:*)
|
mips:Linux:*:*)
|
||||||
case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
|
eval $set_cc_for_build
|
||||||
big) echo mips-unknown-linux-gnu && exit 0 ;;
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
little) echo mipsel-unknown-linux-gnu && exit 0 ;;
|
#undef CPU
|
||||||
esac
|
#undef mips
|
||||||
|
#undef mipsel
|
||||||
|
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
||||||
|
CPU=mipsel
|
||||||
|
#else
|
||||||
|
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
||||||
|
CPU=mips
|
||||||
|
#else
|
||||||
|
CPU=
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
||||||
|
rm -f $dummy.c && rmdir $tmpdir
|
||||||
|
test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
|
||||||
;;
|
;;
|
||||||
ppc:Linux:*:*)
|
ppc:Linux:*:*)
|
||||||
echo powerpc-unknown-linux-gnu
|
echo powerpc-unknown-linux-gnu
|
||||||
@ -828,7 +868,8 @@ EOF
|
|||||||
# The BFD linker knows what the default object file format is, so
|
# The BFD linker knows what the default object file format is, so
|
||||||
# first see if it will tell us. cd to the root directory to prevent
|
# first see if it will tell us. cd to the root directory to prevent
|
||||||
# problems with other programs or directories called `ld' in the path.
|
# problems with other programs or directories called `ld' in the path.
|
||||||
ld_supported_targets=`cd /; ld --help 2>&1 \
|
# Set LC_ALL=C to ensure ld outputs messages in English.
|
||||||
|
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
||||||
| sed -ne '/supported targets:/!d
|
| sed -ne '/supported targets:/!d
|
||||||
s/[ ][ ]*/ /g
|
s/[ ][ ]*/ /g
|
||||||
s/.*supported targets: *//
|
s/.*supported targets: *//
|
||||||
@ -840,7 +881,7 @@ EOF
|
|||||||
;;
|
;;
|
||||||
a.out-i386-linux)
|
a.out-i386-linux)
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
coff-i386)
|
coff-i386)
|
||||||
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -852,32 +893,29 @@ EOF
|
|||||||
esac
|
esac
|
||||||
# Determine whether the default compiler is a.out or elf
|
# Determine whether the default compiler is a.out or elf
|
||||||
eval $set_cc_for_build
|
eval $set_cc_for_build
|
||||||
cat >$dummy.c <<EOF
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#ifdef __cplusplus
|
#ifdef __ELF__
|
||||||
#include <stdio.h> /* for printf() prototype */
|
# ifdef __GLIBC__
|
||||||
int main (int argc, char *argv[]) {
|
# if __GLIBC__ >= 2
|
||||||
#else
|
LIBC=gnu
|
||||||
int main (argc, argv) int argc; char *argv[]; {
|
# else
|
||||||
#endif
|
LIBC=gnulibc1
|
||||||
#ifdef __ELF__
|
# endif
|
||||||
# ifdef __GLIBC__
|
# else
|
||||||
# if __GLIBC__ >= 2
|
LIBC=gnulibc1
|
||||||
printf ("%s-pc-linux-gnu\n", argv[1]);
|
# endif
|
||||||
# else
|
#else
|
||||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
#ifdef __INTEL_COMPILER
|
||||||
# endif
|
LIBC=gnu
|
||||||
# else
|
#else
|
||||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
LIBC=gnuaout
|
||||||
# endif
|
#endif
|
||||||
#else
|
#endif
|
||||||
printf ("%s-pc-linux-gnuaout\n", argv[1]);
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c && rmdir $tmpdir
|
||||||
|
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
|
||||||
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
||||||
;;
|
;;
|
||||||
i*86:DYNIX/ptx:4*:*)
|
i*86:DYNIX/ptx:4*:*)
|
||||||
@ -915,13 +953,13 @@ EOF
|
|||||||
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
||||||
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
|
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
|
||||||
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
||||||
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
|
||||||
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
|
||||||
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
|
(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
|
||||||
&& UNAME_MACHINE=i586
|
&& UNAME_MACHINE=i586
|
||||||
(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
|
(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
|
||||||
&& UNAME_MACHINE=i686
|
&& UNAME_MACHINE=i686
|
||||||
(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
|
(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
|
||||||
&& UNAME_MACHINE=i686
|
&& UNAME_MACHINE=i686
|
||||||
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
|
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
|
||||||
else
|
else
|
||||||
@ -954,9 +992,12 @@ EOF
|
|||||||
# "miniframe"
|
# "miniframe"
|
||||||
echo m68010-convergent-sysv
|
echo m68010-convergent-sysv
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
mc68k:UNIX:SYSTEM5:3.51m)
|
||||||
|
echo m68k-convergent-sysv
|
||||||
|
exit 0 ;;
|
||||||
M68*:*:R3V[567]*:*)
|
M68*:*:R3V[567]*:*)
|
||||||
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
||||||
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
|
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
|
||||||
OS_REL=''
|
OS_REL=''
|
||||||
test -r /etc/.relid \
|
test -r /etc/.relid \
|
||||||
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
||||||
@ -1047,6 +1088,9 @@ EOF
|
|||||||
SX-5:SUPER-UX:*:*)
|
SX-5:SUPER-UX:*:*)
|
||||||
echo sx5-nec-superux${UNAME_RELEASE}
|
echo sx5-nec-superux${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
SX-6:SUPER-UX:*:*)
|
||||||
|
echo sx6-nec-superux${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
Power*:Rhapsody:*:*)
|
Power*:Rhapsody:*:*)
|
||||||
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -1057,15 +1101,17 @@ EOF
|
|||||||
echo `uname -p`-apple-darwin${UNAME_RELEASE}
|
echo `uname -p`-apple-darwin${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
||||||
if test "${UNAME_MACHINE}" = "x86pc"; then
|
UNAME_PROCESSOR=`uname -p`
|
||||||
|
if test "$UNAME_PROCESSOR" = "x86"; then
|
||||||
|
UNAME_PROCESSOR=i386
|
||||||
UNAME_MACHINE=pc
|
UNAME_MACHINE=pc
|
||||||
fi
|
fi
|
||||||
echo `uname -p`-${UNAME_MACHINE}-nto-qnx
|
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:QNX:*:4*)
|
*:QNX:*:4*)
|
||||||
echo i386-pc-qnx
|
echo i386-pc-qnx
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
NSR-[KW]:NONSTOP_KERNEL:*:*)
|
NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
|
||||||
echo nsr-tandem-nsk${UNAME_RELEASE}
|
echo nsr-tandem-nsk${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:NonStop-UX:*:*)
|
*:NonStop-UX:*:*)
|
||||||
@ -1237,8 +1283,8 @@ main ()
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c $dummy && rmdir $tmpdir
|
||||||
|
|
||||||
# Apollos put the system type in the environment.
|
# Apollos put the system type in the environment.
|
||||||
|
|
||||||
|
253
config.sub
vendored
253
config.sub
vendored
@ -1,9 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Configuration validation subroutine script.
|
# Configuration validation subroutine script.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
# Free Software Foundation, Inc.
|
# 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2001-09-07'
|
timestamp='2002-09-05'
|
||||||
|
|
||||||
# This file is (in principle) common to ALL GNU software.
|
# This file is (in principle) common to ALL GNU software.
|
||||||
# The presence of a machine in this file suggests that SOME GNU software
|
# The presence of a machine in this file suggests that SOME GNU software
|
||||||
@ -29,7 +29,8 @@ timestamp='2001-09-07'
|
|||||||
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
# Please send patches to <config-patches@gnu.org>.
|
# Please send patches to <config-patches@gnu.org>. Submit a context
|
||||||
|
# diff and a properly formatted ChangeLog entry.
|
||||||
#
|
#
|
||||||
# Configuration subroutine to validate and canonicalize a configuration type.
|
# Configuration subroutine to validate and canonicalize a configuration type.
|
||||||
# Supply the specified configuration type as an argument.
|
# Supply the specified configuration type as an argument.
|
||||||
@ -117,7 +118,7 @@ esac
|
|||||||
# Here we must recognize all the valid KERNEL-OS combinations.
|
# Here we must recognize all the valid KERNEL-OS combinations.
|
||||||
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
||||||
case $maybe_os in
|
case $maybe_os in
|
||||||
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
|
nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
|
||||||
os=-$maybe_os
|
os=-$maybe_os
|
||||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||||
;;
|
;;
|
||||||
@ -226,32 +227,42 @@ case $basic_machine in
|
|||||||
1750a | 580 \
|
1750a | 580 \
|
||||||
| a29k \
|
| a29k \
|
||||||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||||
|
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
||||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
||||||
| c4x | clipper \
|
| clipper \
|
||||||
| d10v | d30v | dsp16xx \
|
| d10v | d30v | dlx | dsp16xx \
|
||||||
| fr30 \
|
| fr30 | frv \
|
||||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||||
| i370 | i860 | i960 | ia64 \
|
| i370 | i860 | i960 | ia64 \
|
||||||
|
| ip2k \
|
||||||
| m32r | m68000 | m68k | m88k | mcore \
|
| m32r | m68000 | m68k | m88k | mcore \
|
||||||
| mips16 | mips64 | mips64el | mips64orion | mips64orionel \
|
| mips | mipsbe | mipseb | mipsel | mipsle \
|
||||||
| mips64vr4100 | mips64vr4100el | mips64vr4300 \
|
| mips16 \
|
||||||
| mips64vr4300el | mips64vr5000 | mips64vr5000el \
|
| mips64 | mips64el \
|
||||||
| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
|
| mips64vr | mips64vrel \
|
||||||
| mipsisa32 \
|
| mips64orion | mips64orionel \
|
||||||
|
| mips64vr4100 | mips64vr4100el \
|
||||||
|
| mips64vr4300 | mips64vr4300el \
|
||||||
|
| mips64vr5000 | mips64vr5000el \
|
||||||
|
| mipsisa32 | mipsisa32el \
|
||||||
|
| mipsisa64 | mipsisa64el \
|
||||||
|
| mipsisa64sb1 | mipsisa64sb1el \
|
||||||
|
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||||
|
| mipstx39 | mipstx39el \
|
||||||
| mn10200 | mn10300 \
|
| mn10200 | mn10300 \
|
||||||
| ns16k | ns32k \
|
| ns16k | ns32k \
|
||||||
| openrisc \
|
| openrisc | or32 \
|
||||||
| pdp10 | pdp11 | pj | pjl \
|
| pdp10 | pdp11 | pj | pjl \
|
||||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
||||||
| pyramid \
|
| pyramid \
|
||||||
| s390 | s390x \
|
| sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
|
||||||
| sh | sh[34] | sh[34]eb | shbe | shle \
|
| sh64 | sh64le \
|
||||||
| sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
|
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
|
||||||
| stormy16 | strongarm \
|
| strongarm \
|
||||||
| tahoe | thumb | tic80 | tron \
|
| tahoe | thumb | tic80 | tron \
|
||||||
| v850 \
|
| v850 | v850e \
|
||||||
| we32k \
|
| we32k \
|
||||||
| x86 | xscale \
|
| x86 | xscale | xstormy16 | xtensa \
|
||||||
| z8k)
|
| z8k)
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
;;
|
;;
|
||||||
@ -278,38 +289,51 @@ case $basic_machine in
|
|||||||
580-* \
|
580-* \
|
||||||
| a29k-* \
|
| a29k-* \
|
||||||
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
||||||
| alphapca5[67]-* | arc-* \
|
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
||||||
| arm-* | armbe-* | armle-* | armv*-* \
|
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
||||||
|
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
||||||
|
| avr-* \
|
||||||
| bs2000-* \
|
| bs2000-* \
|
||||||
| c[123]* | c30-* | [cjt]90-* | c54x-* \
|
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
|
||||||
| clipper-* | cray2-* | cydra-* \
|
| clipper-* | cydra-* \
|
||||||
| d10v-* | d30v-* \
|
| d10v-* | d30v-* | dlx-* \
|
||||||
| elxsi-* \
|
| elxsi-* \
|
||||||
| f30[01]-* | f700-* | fr30-* | fx80-* \
|
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
|
||||||
| h8300-* | h8500-* \
|
| h8300-* | h8500-* \
|
||||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||||
| i*86-* | i860-* | i960-* | ia64-* \
|
| i*86-* | i860-* | i960-* | ia64-* \
|
||||||
|
| ip2k-* \
|
||||||
| m32r-* \
|
| m32r-* \
|
||||||
| m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
||||||
| m88110-* | m88k-* | mcore-* \
|
| m88110-* | m88k-* | mcore-* \
|
||||||
| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
|
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
||||||
| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
|
| mips16-* \
|
||||||
| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
|
| mips64-* | mips64el-* \
|
||||||
| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
|
| mips64vr-* | mips64vrel-* \
|
||||||
|
| mips64orion-* | mips64orionel-* \
|
||||||
|
| mips64vr4100-* | mips64vr4100el-* \
|
||||||
|
| mips64vr4300-* | mips64vr4300el-* \
|
||||||
|
| mips64vr5000-* | mips64vr5000el-* \
|
||||||
|
| mipsisa32-* | mipsisa32el-* \
|
||||||
|
| mipsisa64-* | mipsisa64el-* \
|
||||||
|
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
||||||
|
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
||||||
|
| mipstx39 | mipstx39el \
|
||||||
| none-* | np1-* | ns16k-* | ns32k-* \
|
| none-* | np1-* | ns16k-* | ns32k-* \
|
||||||
| orion-* \
|
| orion-* \
|
||||||
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
||||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
||||||
| pyramid-* \
|
| pyramid-* \
|
||||||
| romp-* | rs6000-* \
|
| romp-* | rs6000-* \
|
||||||
| s390-* | s390x-* \
|
| sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
|
||||||
| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
||||||
| sparc-* | sparc64-* | sparc86x-* | sparclite-* \
|
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
|
||||||
| sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
|
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
|
||||||
| t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
|
| tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
|
||||||
| v850-* | vax-* \
|
| v850-* | v850e-* | vax-* \
|
||||||
| we32k-* \
|
| we32k-* \
|
||||||
| x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
|
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
|
||||||
|
| xtensa-* \
|
||||||
| ymp-* \
|
| ymp-* \
|
||||||
| z8k-*)
|
| z8k-*)
|
||||||
;;
|
;;
|
||||||
@ -374,6 +398,10 @@ case $basic_machine in
|
|||||||
basic_machine=ns32k-sequent
|
basic_machine=ns32k-sequent
|
||||||
os=-dynix
|
os=-dynix
|
||||||
;;
|
;;
|
||||||
|
c90)
|
||||||
|
basic_machine=c90-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
convex-c1)
|
convex-c1)
|
||||||
basic_machine=c1-convex
|
basic_machine=c1-convex
|
||||||
os=-bsd
|
os=-bsd
|
||||||
@ -394,16 +422,8 @@ case $basic_machine in
|
|||||||
basic_machine=c38-convex
|
basic_machine=c38-convex
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
cray | ymp)
|
cray | j90)
|
||||||
basic_machine=ymp-cray
|
basic_machine=j90-cray
|
||||||
os=-unicos
|
|
||||||
;;
|
|
||||||
cray2)
|
|
||||||
basic_machine=cray2-cray
|
|
||||||
os=-unicos
|
|
||||||
;;
|
|
||||||
[cjt]90)
|
|
||||||
basic_machine=${basic_machine}-cray
|
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
crds | unos)
|
crds | unos)
|
||||||
@ -418,6 +438,14 @@ case $basic_machine in
|
|||||||
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
||||||
basic_machine=mips-dec
|
basic_machine=mips-dec
|
||||||
;;
|
;;
|
||||||
|
decsystem10* | dec10*)
|
||||||
|
basic_machine=pdp10-dec
|
||||||
|
os=-tops10
|
||||||
|
;;
|
||||||
|
decsystem20* | dec20*)
|
||||||
|
basic_machine=pdp10-dec
|
||||||
|
os=-tops20
|
||||||
|
;;
|
||||||
delta | 3300 | motorola-3300 | motorola-delta \
|
delta | 3300 | motorola-3300 | motorola-delta \
|
||||||
| 3300-motorola | delta-motorola)
|
| 3300-motorola | delta-motorola)
|
||||||
basic_machine=m68k-motorola
|
basic_machine=m68k-motorola
|
||||||
@ -598,14 +626,6 @@ case $basic_machine in
|
|||||||
basic_machine=m68k-atari
|
basic_machine=m68k-atari
|
||||||
os=-mint
|
os=-mint
|
||||||
;;
|
;;
|
||||||
mipsel*-linux*)
|
|
||||||
basic_machine=mipsel-unknown
|
|
||||||
os=-linux-gnu
|
|
||||||
;;
|
|
||||||
mips*-linux*)
|
|
||||||
basic_machine=mips-unknown
|
|
||||||
os=-linux-gnu
|
|
||||||
;;
|
|
||||||
mips3*-*)
|
mips3*-*)
|
||||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
||||||
;;
|
;;
|
||||||
@ -620,6 +640,10 @@ case $basic_machine in
|
|||||||
basic_machine=m68k-rom68k
|
basic_machine=m68k-rom68k
|
||||||
os=-coff
|
os=-coff
|
||||||
;;
|
;;
|
||||||
|
morphos)
|
||||||
|
basic_machine=powerpc-unknown
|
||||||
|
os=-morphos
|
||||||
|
;;
|
||||||
msdos)
|
msdos)
|
||||||
basic_machine=i386-pc
|
basic_machine=i386-pc
|
||||||
os=-msdos
|
os=-msdos
|
||||||
@ -699,6 +723,10 @@ case $basic_machine in
|
|||||||
basic_machine=hppa1.1-oki
|
basic_machine=hppa1.1-oki
|
||||||
os=-proelf
|
os=-proelf
|
||||||
;;
|
;;
|
||||||
|
or32 | or32-*)
|
||||||
|
basic_machine=or32-unknown
|
||||||
|
os=-coff
|
||||||
|
;;
|
||||||
OSE68000 | ose68000)
|
OSE68000 | ose68000)
|
||||||
basic_machine=m68000-ericsson
|
basic_machine=m68000-ericsson
|
||||||
os=-ose
|
os=-ose
|
||||||
@ -721,19 +749,19 @@ case $basic_machine in
|
|||||||
pbb)
|
pbb)
|
||||||
basic_machine=m68k-tti
|
basic_machine=m68k-tti
|
||||||
;;
|
;;
|
||||||
pc532 | pc532-*)
|
pc532 | pc532-*)
|
||||||
basic_machine=ns32k-pc532
|
basic_machine=ns32k-pc532
|
||||||
;;
|
;;
|
||||||
pentium | p5 | k5 | k6 | nexgen)
|
pentium | p5 | k5 | k6 | nexgen | viac3)
|
||||||
basic_machine=i586-pc
|
basic_machine=i586-pc
|
||||||
;;
|
;;
|
||||||
pentiumpro | p6 | 6x86 | athlon)
|
pentiumpro | p6 | 6x86 | athlon | athlon_*)
|
||||||
basic_machine=i686-pc
|
basic_machine=i686-pc
|
||||||
;;
|
;;
|
||||||
pentiumii | pentium2)
|
pentiumii | pentium2)
|
||||||
basic_machine=i686-pc
|
basic_machine=i686-pc
|
||||||
;;
|
;;
|
||||||
pentium-* | p5-* | k5-* | k6-* | nexgen-*)
|
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
|
||||||
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
pentiumpro-* | p6-* | 6x86-* | athlon-*)
|
pentiumpro-* | p6-* | 6x86-* | athlon-*)
|
||||||
@ -748,22 +776,22 @@ case $basic_machine in
|
|||||||
power) basic_machine=power-ibm
|
power) basic_machine=power-ibm
|
||||||
;;
|
;;
|
||||||
ppc) basic_machine=powerpc-unknown
|
ppc) basic_machine=powerpc-unknown
|
||||||
;;
|
;;
|
||||||
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
ppcle | powerpclittle | ppc-le | powerpc-little)
|
ppcle | powerpclittle | ppc-le | powerpc-little)
|
||||||
basic_machine=powerpcle-unknown
|
basic_machine=powerpcle-unknown
|
||||||
;;
|
;;
|
||||||
ppcle-* | powerpclittle-*)
|
ppcle-* | powerpclittle-*)
|
||||||
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
ppc64) basic_machine=powerpc64-unknown
|
ppc64) basic_machine=powerpc64-unknown
|
||||||
;;
|
;;
|
||||||
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
|
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
|
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
|
||||||
basic_machine=powerpc64le-unknown
|
basic_machine=powerpc64le-unknown
|
||||||
;;
|
;;
|
||||||
ppc64le-* | powerpc64little-*)
|
ppc64le-* | powerpc64little-*)
|
||||||
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
|
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
;;
|
;;
|
||||||
@ -784,10 +812,22 @@ case $basic_machine in
|
|||||||
rtpc | rtpc-*)
|
rtpc | rtpc-*)
|
||||||
basic_machine=romp-ibm
|
basic_machine=romp-ibm
|
||||||
;;
|
;;
|
||||||
|
s390 | s390-*)
|
||||||
|
basic_machine=s390-ibm
|
||||||
|
;;
|
||||||
|
s390x | s390x-*)
|
||||||
|
basic_machine=s390x-ibm
|
||||||
|
;;
|
||||||
sa29200)
|
sa29200)
|
||||||
basic_machine=a29k-amd
|
basic_machine=a29k-amd
|
||||||
os=-udi
|
os=-udi
|
||||||
;;
|
;;
|
||||||
|
sb1)
|
||||||
|
basic_machine=mipsisa64sb1-unknown
|
||||||
|
;;
|
||||||
|
sb1el)
|
||||||
|
basic_machine=mipsisa64sb1el-unknown
|
||||||
|
;;
|
||||||
sequent)
|
sequent)
|
||||||
basic_machine=i386-sequent
|
basic_machine=i386-sequent
|
||||||
;;
|
;;
|
||||||
@ -795,7 +835,7 @@ case $basic_machine in
|
|||||||
basic_machine=sh-hitachi
|
basic_machine=sh-hitachi
|
||||||
os=-hms
|
os=-hms
|
||||||
;;
|
;;
|
||||||
sparclite-wrs)
|
sparclite-wrs | simso-wrs)
|
||||||
basic_machine=sparclite-wrs
|
basic_machine=sparclite-wrs
|
||||||
os=-vxworks
|
os=-vxworks
|
||||||
;;
|
;;
|
||||||
@ -861,10 +901,22 @@ case $basic_machine in
|
|||||||
basic_machine=i386-sequent
|
basic_machine=i386-sequent
|
||||||
os=-dynix
|
os=-dynix
|
||||||
;;
|
;;
|
||||||
t3e)
|
t3d)
|
||||||
basic_machine=t3e-cray
|
basic_machine=alpha-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
|
t3e)
|
||||||
|
basic_machine=alphaev5-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
|
t90)
|
||||||
|
basic_machine=t90-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
|
tic4x | c4x*)
|
||||||
|
basic_machine=tic4x-unknown
|
||||||
|
os=-coff
|
||||||
|
;;
|
||||||
tic54x | c54x*)
|
tic54x | c54x*)
|
||||||
basic_machine=tic54x-unknown
|
basic_machine=tic54x-unknown
|
||||||
os=-coff
|
os=-coff
|
||||||
@ -875,6 +927,10 @@ case $basic_machine in
|
|||||||
tx39el)
|
tx39el)
|
||||||
basic_machine=mipstx39el-unknown
|
basic_machine=mipstx39el-unknown
|
||||||
;;
|
;;
|
||||||
|
toad1)
|
||||||
|
basic_machine=pdp10-xkl
|
||||||
|
os=-tops20
|
||||||
|
;;
|
||||||
tower | tower-32)
|
tower | tower-32)
|
||||||
basic_machine=m68k-ncr
|
basic_machine=m68k-ncr
|
||||||
;;
|
;;
|
||||||
@ -899,8 +955,8 @@ case $basic_machine in
|
|||||||
os=-vms
|
os=-vms
|
||||||
;;
|
;;
|
||||||
vpp*|vx|vx-*)
|
vpp*|vx|vx-*)
|
||||||
basic_machine=f301-fujitsu
|
basic_machine=f301-fujitsu
|
||||||
;;
|
;;
|
||||||
vxworks960)
|
vxworks960)
|
||||||
basic_machine=i960-wrs
|
basic_machine=i960-wrs
|
||||||
os=-vxworks
|
os=-vxworks
|
||||||
@ -925,13 +981,13 @@ case $basic_machine in
|
|||||||
basic_machine=i386-pc
|
basic_machine=i386-pc
|
||||||
os=-windows32-msvcrt
|
os=-windows32-msvcrt
|
||||||
;;
|
;;
|
||||||
xmp)
|
xps | xps100)
|
||||||
basic_machine=xmp-cray
|
|
||||||
os=-unicos
|
|
||||||
;;
|
|
||||||
xps | xps100)
|
|
||||||
basic_machine=xps100-honeywell
|
basic_machine=xps100-honeywell
|
||||||
;;
|
;;
|
||||||
|
ymp)
|
||||||
|
basic_machine=ymp-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
z8k-*-coff)
|
z8k-*-coff)
|
||||||
basic_machine=z8k-unknown
|
basic_machine=z8k-unknown
|
||||||
os=-sim
|
os=-sim
|
||||||
@ -952,13 +1008,6 @@ case $basic_machine in
|
|||||||
op60c)
|
op60c)
|
||||||
basic_machine=hppa1.1-oki
|
basic_machine=hppa1.1-oki
|
||||||
;;
|
;;
|
||||||
mips)
|
|
||||||
if [ x$os = x-linux-gnu ]; then
|
|
||||||
basic_machine=mips-unknown
|
|
||||||
else
|
|
||||||
basic_machine=mips-mips
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
romp)
|
romp)
|
||||||
basic_machine=romp-ibm
|
basic_machine=romp-ibm
|
||||||
;;
|
;;
|
||||||
@ -978,13 +1027,16 @@ case $basic_machine in
|
|||||||
we32k)
|
we32k)
|
||||||
basic_machine=we32k-att
|
basic_machine=we32k-att
|
||||||
;;
|
;;
|
||||||
sh3 | sh4 | sh3eb | sh4eb)
|
sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
|
||||||
basic_machine=sh-unknown
|
basic_machine=sh-unknown
|
||||||
;;
|
;;
|
||||||
|
sh64)
|
||||||
|
basic_machine=sh64-unknown
|
||||||
|
;;
|
||||||
sparc | sparcv9 | sparcv9b)
|
sparc | sparcv9 | sparcv9b)
|
||||||
basic_machine=sparc-sun
|
basic_machine=sparc-sun
|
||||||
;;
|
;;
|
||||||
cydra)
|
cydra)
|
||||||
basic_machine=cydra-cydrome
|
basic_machine=cydra-cydrome
|
||||||
;;
|
;;
|
||||||
orion)
|
orion)
|
||||||
@ -999,10 +1051,6 @@ case $basic_machine in
|
|||||||
pmac | pmac-mpw)
|
pmac | pmac-mpw)
|
||||||
basic_machine=powerpc-apple
|
basic_machine=powerpc-apple
|
||||||
;;
|
;;
|
||||||
c4x*)
|
|
||||||
basic_machine=c4x-none
|
|
||||||
os=-coff
|
|
||||||
;;
|
|
||||||
*-unknown)
|
*-unknown)
|
||||||
# Make sure to match an already-canonicalized machine name.
|
# Make sure to match an already-canonicalized machine name.
|
||||||
;;
|
;;
|
||||||
@ -1068,7 +1116,8 @@ case $os in
|
|||||||
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
|
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
|
||||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
||||||
| -os2* | -vos*)
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||||
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
|
||||||
# Remember, each alternative MUST END IN *, to match a version number.
|
# Remember, each alternative MUST END IN *, to match a version number.
|
||||||
;;
|
;;
|
||||||
-qnx*)
|
-qnx*)
|
||||||
@ -1120,14 +1169,20 @@ case $os in
|
|||||||
-acis*)
|
-acis*)
|
||||||
os=-aos
|
os=-aos
|
||||||
;;
|
;;
|
||||||
|
-atheos*)
|
||||||
|
os=-atheos
|
||||||
|
;;
|
||||||
-386bsd)
|
-386bsd)
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
-ctix* | -uts*)
|
-ctix* | -uts*)
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
|
-nova*)
|
||||||
|
os=-rtmk-nova
|
||||||
|
;;
|
||||||
-ns2 )
|
-ns2 )
|
||||||
os=-nextstep2
|
os=-nextstep2
|
||||||
;;
|
;;
|
||||||
-nsk*)
|
-nsk*)
|
||||||
os=-nsk
|
os=-nsk
|
||||||
@ -1166,8 +1221,8 @@ case $os in
|
|||||||
-xenix)
|
-xenix)
|
||||||
os=-xenix
|
os=-xenix
|
||||||
;;
|
;;
|
||||||
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
||||||
os=-mint
|
os=-mint
|
||||||
;;
|
;;
|
||||||
-none)
|
-none)
|
||||||
;;
|
;;
|
||||||
@ -1200,10 +1255,11 @@ case $basic_machine in
|
|||||||
arm*-semi)
|
arm*-semi)
|
||||||
os=-aout
|
os=-aout
|
||||||
;;
|
;;
|
||||||
|
# This must come before the *-dec entry.
|
||||||
pdp10-*)
|
pdp10-*)
|
||||||
os=-tops20
|
os=-tops20
|
||||||
;;
|
;;
|
||||||
pdp11-*)
|
pdp11-*)
|
||||||
os=-none
|
os=-none
|
||||||
;;
|
;;
|
||||||
*-dec | vax-*)
|
*-dec | vax-*)
|
||||||
@ -1230,6 +1286,9 @@ case $basic_machine in
|
|||||||
mips*-*)
|
mips*-*)
|
||||||
os=-elf
|
os=-elf
|
||||||
;;
|
;;
|
||||||
|
or32-*)
|
||||||
|
os=-coff
|
||||||
|
;;
|
||||||
*-tti) # must be before sparc entry or we get the wrong os.
|
*-tti) # must be before sparc entry or we get the wrong os.
|
||||||
os=-sysv3
|
os=-sysv3
|
||||||
;;
|
;;
|
||||||
@ -1293,19 +1352,19 @@ case $basic_machine in
|
|||||||
*-next)
|
*-next)
|
||||||
os=-nextstep3
|
os=-nextstep3
|
||||||
;;
|
;;
|
||||||
*-gould)
|
*-gould)
|
||||||
os=-sysv
|
os=-sysv
|
||||||
;;
|
;;
|
||||||
*-highlevel)
|
*-highlevel)
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
*-encore)
|
*-encore)
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
*-sgi)
|
*-sgi)
|
||||||
os=-irix
|
os=-irix
|
||||||
;;
|
;;
|
||||||
*-siemens)
|
*-siemens)
|
||||||
os=-sysv4
|
os=-sysv4
|
||||||
;;
|
;;
|
||||||
*-masscomp)
|
*-masscomp)
|
||||||
@ -1377,7 +1436,7 @@ case $basic_machine in
|
|||||||
-ptx*)
|
-ptx*)
|
||||||
vendor=sequent
|
vendor=sequent
|
||||||
;;
|
;;
|
||||||
-vxsim* | -vxworks*)
|
-vxsim* | -vxworks* | -windiss*)
|
||||||
vendor=wrs
|
vendor=wrs
|
||||||
;;
|
;;
|
||||||
-aux*)
|
-aux*)
|
||||||
|
230
ltmain.sh
230
ltmain.sh
@ -49,14 +49,14 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# The name of this program.
|
# The name of this program.
|
||||||
progname=`$echo "$0" | sed 's%^.*/%%'`
|
progname=`$echo "$0" | ${SED} 's%^.*/%%'`
|
||||||
modename="$progname"
|
modename="$progname"
|
||||||
|
|
||||||
# Constants.
|
# Constants.
|
||||||
PROGRAM=ltmain.sh
|
PROGRAM=ltmain.sh
|
||||||
PACKAGE=libtool
|
PACKAGE=libtool
|
||||||
VERSION=1.4.2
|
VERSION=1.4.3
|
||||||
TIMESTAMP=" (1.922.2.54 2001/09/11 03:33:37)"
|
TIMESTAMP=" (1.922.2.110 2002/10/23 01:39:54)"
|
||||||
|
|
||||||
default_mode=
|
default_mode=
|
||||||
help="Try \`$progname --help' for more information."
|
help="Try \`$progname --help' for more information."
|
||||||
@ -67,10 +67,19 @@ rm="rm -f"
|
|||||||
|
|
||||||
# Sed substitution that helps us do robust quoting. It backslashifies
|
# Sed substitution that helps us do robust quoting. It backslashifies
|
||||||
# metacharacters that are still active within double-quoted strings.
|
# metacharacters that are still active within double-quoted strings.
|
||||||
Xsed='sed -e 1s/^X//'
|
Xsed="${SED}"' -e 1s/^X//'
|
||||||
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
|
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
|
||||||
SP2NL='tr \040 \012'
|
# test EBCDIC or ASCII
|
||||||
NL2SP='tr \015\012 \040\040'
|
case `echo A|od -x` in
|
||||||
|
*[Cc]1*) # EBCDIC based system
|
||||||
|
SP2NL="tr '\100' '\n'"
|
||||||
|
NL2SP="tr '\r\n' '\100\100'"
|
||||||
|
;;
|
||||||
|
*) # Assume ASCII based system
|
||||||
|
SP2NL="tr '\040' '\012'"
|
||||||
|
NL2SP="tr '\015\012' '\040\040'"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# NLS nuisances.
|
# NLS nuisances.
|
||||||
# Only set LANG and LC_ALL to C if already set.
|
# Only set LANG and LC_ALL to C if already set.
|
||||||
@ -144,7 +153,7 @@ do
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
--config)
|
--config)
|
||||||
sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
|
${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -177,6 +186,8 @@ do
|
|||||||
--mode) prevopt="--mode" prev=mode ;;
|
--mode) prevopt="--mode" prev=mode ;;
|
||||||
--mode=*) mode="$optarg" ;;
|
--mode=*) mode="$optarg" ;;
|
||||||
|
|
||||||
|
--preserve-dup-deps) duplicate_deps="yes" ;;
|
||||||
|
|
||||||
--quiet | --silent)
|
--quiet | --silent)
|
||||||
show=:
|
show=:
|
||||||
;;
|
;;
|
||||||
@ -215,7 +226,7 @@ if test -z "$show_help"; then
|
|||||||
# Infer the operation mode.
|
# Infer the operation mode.
|
||||||
if test -z "$mode"; then
|
if test -z "$mode"; then
|
||||||
case $nonopt in
|
case $nonopt in
|
||||||
*cc | *++ | gcc* | *-gcc*)
|
*cc | *++ | gcc* | *-gcc* | xlc*)
|
||||||
mode=link
|
mode=link
|
||||||
for arg
|
for arg
|
||||||
do
|
do
|
||||||
@ -467,7 +478,7 @@ if test -z "$show_help"; then
|
|||||||
pic_mode=default
|
pic_mode=default
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test $pic_mode = no && test "$deplibs_check_method" != pass_all; then
|
if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
|
||||||
# non-PIC code in shared libraries is not supported
|
# non-PIC code in shared libraries is not supported
|
||||||
pic_mode=default
|
pic_mode=default
|
||||||
fi
|
fi
|
||||||
@ -992,7 +1003,7 @@ compiler."
|
|||||||
# so, if we see these flags be careful not to treat them like -L
|
# so, if we see these flags be careful not to treat them like -L
|
||||||
-L[A-Z][A-Z]*:*)
|
-L[A-Z][A-Z]*:*)
|
||||||
case $with_gcc/$host in
|
case $with_gcc/$host in
|
||||||
no/*-*-irix*)
|
no/*-*-irix* | no/*-*-nonstopux*)
|
||||||
compile_command="$compile_command $arg"
|
compile_command="$compile_command $arg"
|
||||||
finalize_command="$finalize_command $arg"
|
finalize_command="$finalize_command $arg"
|
||||||
;;
|
;;
|
||||||
@ -1050,7 +1061,7 @@ compiler."
|
|||||||
esac
|
esac
|
||||||
elif test "X$arg" = "X-lc_r"; then
|
elif test "X$arg" = "X-lc_r"; then
|
||||||
case $host in
|
case $host in
|
||||||
*-*-openbsd* | *-*-freebsd*)
|
*-*-openbsd* | *-*-freebsd*)
|
||||||
# Do not include libc_r directly, use -pthread flag.
|
# Do not include libc_r directly, use -pthread flag.
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
@ -1330,9 +1341,11 @@ compiler."
|
|||||||
# Find all interdependent deplibs by searching for libraries
|
# Find all interdependent deplibs by searching for libraries
|
||||||
# that are linked more than once (e.g. -la -lb -la)
|
# that are linked more than once (e.g. -la -lb -la)
|
||||||
for deplib in $deplibs; do
|
for deplib in $deplibs; do
|
||||||
case "$libs " in
|
if test "X$duplicate_deps" = "Xyes" ; then
|
||||||
*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
case "$libs " in
|
||||||
esac
|
*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
libs="$libs $deplib"
|
libs="$libs $deplib"
|
||||||
done
|
done
|
||||||
deplibs=
|
deplibs=
|
||||||
@ -1461,10 +1474,12 @@ compiler."
|
|||||||
lib)
|
lib)
|
||||||
if test "$deplibs_check_method" != pass_all; then
|
if test "$deplibs_check_method" != pass_all; then
|
||||||
echo
|
echo
|
||||||
echo "*** Warning: This library needs some functionality provided by $deplib."
|
echo "*** Warning: Trying to link with static lib archive $deplib."
|
||||||
echo "*** I have the capability to make that library automatically link in when"
|
echo "*** I have the capability to make that library automatically link in when"
|
||||||
echo "*** you link to this library. But I can only do this if you have a"
|
echo "*** you link to this library. But I can only do this if you have a"
|
||||||
echo "*** shared version of the library, which you do not appear to have."
|
echo "*** shared version of the library, which you do not appear to have"
|
||||||
|
echo "*** because the file extensions .$libext of this argument makes me believe"
|
||||||
|
echo "*** that it is just a static archive that I should not used here."
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
echo "*** Warning: Linking the shared library $output against the"
|
echo "*** Warning: Linking the shared library $output against the"
|
||||||
@ -1508,7 +1523,7 @@ compiler."
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check to see that this really is a libtool archive.
|
# Check to see that this really is a libtool archive.
|
||||||
if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
|
if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
|
||||||
else
|
else
|
||||||
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
|
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -1555,9 +1570,11 @@ compiler."
|
|||||||
tmp_libs=
|
tmp_libs=
|
||||||
for deplib in $dependency_libs; do
|
for deplib in $dependency_libs; do
|
||||||
deplibs="$deplib $deplibs"
|
deplibs="$deplib $deplibs"
|
||||||
case "$tmp_libs " in
|
if test "X$duplicate_deps" = "Xyes" ; then
|
||||||
*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
case "$tmp_libs " in
|
||||||
esac
|
*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
tmp_libs="$tmp_libs $deplib"
|
tmp_libs="$tmp_libs $deplib"
|
||||||
done
|
done
|
||||||
elif test $linkmode != prog && test $linkmode != lib; then
|
elif test $linkmode != prog && test $linkmode != lib; then
|
||||||
@ -1680,9 +1697,11 @@ compiler."
|
|||||||
# or/and link against static libraries
|
# or/and link against static libraries
|
||||||
newdependency_libs="$deplib $newdependency_libs"
|
newdependency_libs="$deplib $newdependency_libs"
|
||||||
fi
|
fi
|
||||||
case "$tmp_libs " in
|
if test "X$duplicate_deps" = "Xyes" ; then
|
||||||
*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
case "$tmp_libs " in
|
||||||
esac
|
*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
tmp_libs="$tmp_libs $deplib"
|
tmp_libs="$tmp_libs $deplib"
|
||||||
done # for deplib
|
done # for deplib
|
||||||
continue
|
continue
|
||||||
@ -1766,8 +1785,8 @@ compiler."
|
|||||||
|
|
||||||
# Make a new name for the extract_expsyms_cmds to use
|
# Make a new name for the extract_expsyms_cmds to use
|
||||||
soroot="$soname"
|
soroot="$soname"
|
||||||
soname=`echo $soroot | sed -e 's/^.*\///'`
|
soname=`echo $soroot | ${SED} -e 's/^.*\///'`
|
||||||
newlib="libimp-`echo $soname | sed 's/^lib//;s/\.dll$//'`.a"
|
newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
|
||||||
|
|
||||||
# If the library has no export list, then create one now
|
# If the library has no export list, then create one now
|
||||||
if test -f "$output_objdir/$soname-def"; then :
|
if test -f "$output_objdir/$soname-def"; then :
|
||||||
@ -1926,13 +1945,14 @@ compiler."
|
|||||||
# Just print a warning and add the library to dependency_libs so
|
# Just print a warning and add the library to dependency_libs so
|
||||||
# that the program can be linked against the static library.
|
# that the program can be linked against the static library.
|
||||||
echo
|
echo
|
||||||
echo "*** Warning: This library needs some functionality provided by $lib."
|
echo "*** Warning: This system can not link to static lib archive $lib."
|
||||||
echo "*** I have the capability to make that library automatically link in when"
|
echo "*** I have the capability to make that library automatically link in when"
|
||||||
echo "*** you link to this library. But I can only do this if you have a"
|
echo "*** you link to this library. But I can only do this if you have a"
|
||||||
echo "*** shared version of the library, which you do not appear to have."
|
echo "*** shared version of the library, which you do not appear to have."
|
||||||
if test "$module" = yes; then
|
if test "$module" = yes; then
|
||||||
echo "*** Therefore, libtool will create a static module, that should work "
|
echo "*** But as you try to build a module library, libtool will still create "
|
||||||
echo "*** as long as the dlopening application is linked with the -dlopen flag."
|
echo "*** a static module, that should work as long as the dlopening application"
|
||||||
|
echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
|
||||||
if test -z "$global_symbol_pipe"; then
|
if test -z "$global_symbol_pipe"; then
|
||||||
echo
|
echo
|
||||||
echo "*** However, this would only work if libtool was able to extract symbol"
|
echo "*** However, this would only work if libtool was able to extract symbol"
|
||||||
@ -1981,9 +2001,11 @@ compiler."
|
|||||||
tmp_libs=
|
tmp_libs=
|
||||||
for deplib in $dependency_libs; do
|
for deplib in $dependency_libs; do
|
||||||
newdependency_libs="$deplib $newdependency_libs"
|
newdependency_libs="$deplib $newdependency_libs"
|
||||||
case "$tmp_libs " in
|
if test "X$duplicate_deps" = "Xyes" ; then
|
||||||
*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
case "$tmp_libs " in
|
||||||
esac
|
*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
tmp_libs="$tmp_libs $deplib"
|
tmp_libs="$tmp_libs $deplib"
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -2009,7 +2031,7 @@ compiler."
|
|||||||
if grep "^installed=no" $deplib > /dev/null; then
|
if grep "^installed=no" $deplib > /dev/null; then
|
||||||
path="-L$absdir/$objdir"
|
path="-L$absdir/$objdir"
|
||||||
else
|
else
|
||||||
eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
||||||
if test -z "$libdir"; then
|
if test -z "$libdir"; then
|
||||||
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
|
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -2273,16 +2295,21 @@ compiler."
|
|||||||
versuffix=".$current";
|
versuffix=".$current";
|
||||||
;;
|
;;
|
||||||
|
|
||||||
irix)
|
irix | nonstopux)
|
||||||
major=`expr $current - $age + 1`
|
major=`expr $current - $age + 1`
|
||||||
verstring="sgi$major.$revision"
|
|
||||||
|
case $version_type in
|
||||||
|
nonstopux) verstring_prefix=nonstopux ;;
|
||||||
|
*) verstring_prefix=sgi ;;
|
||||||
|
esac
|
||||||
|
verstring="$verstring_prefix$major.$revision"
|
||||||
|
|
||||||
# Add in all the interfaces that we are compatible with.
|
# Add in all the interfaces that we are compatible with.
|
||||||
loop=$revision
|
loop=$revision
|
||||||
while test $loop != 0; do
|
while test $loop != 0; do
|
||||||
iface=`expr $revision - $loop`
|
iface=`expr $revision - $loop`
|
||||||
loop=`expr $loop - 1`
|
loop=`expr $loop - 1`
|
||||||
verstring="sgi$major.$iface:$verstring"
|
verstring="$verstring_prefix$major.$iface:$verstring"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Before this point, $major must not contain `.'.
|
# Before this point, $major must not contain `.'.
|
||||||
@ -2296,7 +2323,7 @@ compiler."
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
osf)
|
osf)
|
||||||
major=`expr $current - $age`
|
major=.`expr $current - $age`
|
||||||
versuffix=".$current.$age.$revision"
|
versuffix=".$current.$age.$revision"
|
||||||
verstring="$current.$age.$revision"
|
verstring="$current.$age.$revision"
|
||||||
|
|
||||||
@ -2388,9 +2415,9 @@ compiler."
|
|||||||
|
|
||||||
# Eliminate all temporary directories.
|
# Eliminate all temporary directories.
|
||||||
for path in $notinst_path; do
|
for path in $notinst_path; do
|
||||||
lib_search_path=`echo "$lib_search_path " | sed -e 's% $path % %g'`
|
lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
|
||||||
deplibs=`echo "$deplibs " | sed -e 's% -L$path % %g'`
|
deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
|
||||||
dependency_libs=`echo "$dependency_libs " | sed -e 's% -L$path % %g'`
|
dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -n "$xrpath"; then
|
if test -n "$xrpath"; then
|
||||||
@ -2502,18 +2529,20 @@ EOF
|
|||||||
else
|
else
|
||||||
droppeddeps=yes
|
droppeddeps=yes
|
||||||
echo
|
echo
|
||||||
echo "*** Warning: This library needs some functionality provided by $i."
|
echo "*** Warning: dynamic linker does not accept needed library $i."
|
||||||
echo "*** I have the capability to make that library automatically link in when"
|
echo "*** I have the capability to make that library automatically link in when"
|
||||||
echo "*** you link to this library. But I can only do this if you have a"
|
echo "*** you link to this library. But I can only do this if you have a"
|
||||||
echo "*** shared version of the library, which you do not appear to have."
|
echo "*** shared version of the library, which I believe you do not have"
|
||||||
|
echo "*** because a test_compile did reveal that the linker did not use it for"
|
||||||
|
echo "*** its dynamic dependency list that programs get resolved with at runtime."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
newdeplibs="$newdeplibs $i"
|
newdeplibs="$newdeplibs $i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
# Error occured in the first compile. Let's try to salvage the situation:
|
# Error occured in the first compile. Let's try to salvage
|
||||||
# Compile a seperate program for each library.
|
# the situation: Compile a separate program for each library.
|
||||||
for i in $deplibs; do
|
for i in $deplibs; do
|
||||||
name="`expr $i : '-l\(.*\)'`"
|
name="`expr $i : '-l\(.*\)'`"
|
||||||
# If $name is empty we are operating on a -L argument.
|
# If $name is empty we are operating on a -L argument.
|
||||||
@ -2532,10 +2561,12 @@ EOF
|
|||||||
else
|
else
|
||||||
droppeddeps=yes
|
droppeddeps=yes
|
||||||
echo
|
echo
|
||||||
echo "*** Warning: This library needs some functionality provided by $i."
|
echo "*** Warning: dynamic linker does not accept needed library $i."
|
||||||
echo "*** I have the capability to make that library automatically link in when"
|
echo "*** I have the capability to make that library automatically link in when"
|
||||||
echo "*** you link to this library. But I can only do this if you have a"
|
echo "*** you link to this library. But I can only do this if you have a"
|
||||||
echo "*** shared version of the library, which you do not appear to have."
|
echo "*** shared version of the library, which you do not appear to have"
|
||||||
|
echo "*** because a test_compile did reveal that the linker did not use this one"
|
||||||
|
echo "*** as a dynamic dependency that programs can get resolved with at runtime."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
droppeddeps=yes
|
droppeddeps=yes
|
||||||
@ -2574,14 +2605,14 @@ EOF
|
|||||||
# but so what?
|
# but so what?
|
||||||
potlib="$potent_lib"
|
potlib="$potent_lib"
|
||||||
while test -h "$potlib" 2>/dev/null; do
|
while test -h "$potlib" 2>/dev/null; do
|
||||||
potliblink=`ls -ld $potlib | sed 's/.* -> //'`
|
potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
|
||||||
case $potliblink in
|
case $potliblink in
|
||||||
[\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
|
[\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
|
||||||
*) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
|
*) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
|
if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
|
||||||
| sed 10q \
|
| ${SED} 10q \
|
||||||
| egrep "$file_magic_regex" > /dev/null; then
|
| egrep "$file_magic_regex" > /dev/null; then
|
||||||
newdeplibs="$newdeplibs $a_deplib"
|
newdeplibs="$newdeplibs $a_deplib"
|
||||||
a_deplib=""
|
a_deplib=""
|
||||||
@ -2592,10 +2623,17 @@ EOF
|
|||||||
if test -n "$a_deplib" ; then
|
if test -n "$a_deplib" ; then
|
||||||
droppeddeps=yes
|
droppeddeps=yes
|
||||||
echo
|
echo
|
||||||
echo "*** Warning: This library needs some functionality provided by $a_deplib."
|
echo "*** Warning: linker path does not have real file for library $a_deplib."
|
||||||
echo "*** I have the capability to make that library automatically link in when"
|
echo "*** I have the capability to make that library automatically link in when"
|
||||||
echo "*** you link to this library. But I can only do this if you have a"
|
echo "*** you link to this library. But I can only do this if you have a"
|
||||||
echo "*** shared version of the library, which you do not appear to have."
|
echo "*** shared version of the library, which you do not appear to have"
|
||||||
|
echo "*** because I did check the linker path looking for a file starting"
|
||||||
|
if test -z "$potlib" ; then
|
||||||
|
echo "*** with $libname but no candidates were found. (...for file magic test)"
|
||||||
|
else
|
||||||
|
echo "*** with $libname and none of the candidates passed a file format test"
|
||||||
|
echo "*** using a file magic. Last file checked: $potlib"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Add a -L argument.
|
# Add a -L argument.
|
||||||
@ -2614,8 +2652,9 @@ EOF
|
|||||||
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
|
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
|
||||||
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
|
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
|
||||||
for potent_lib in $potential_libs; do
|
for potent_lib in $potential_libs; do
|
||||||
|
potlib="$potent_lib" # see symlink-check below in file_magic test
|
||||||
if eval echo \"$potent_lib\" 2>/dev/null \
|
if eval echo \"$potent_lib\" 2>/dev/null \
|
||||||
| sed 10q \
|
| ${SED} 10q \
|
||||||
| egrep "$match_pattern_regex" > /dev/null; then
|
| egrep "$match_pattern_regex" > /dev/null; then
|
||||||
newdeplibs="$newdeplibs $a_deplib"
|
newdeplibs="$newdeplibs $a_deplib"
|
||||||
a_deplib=""
|
a_deplib=""
|
||||||
@ -2626,10 +2665,17 @@ EOF
|
|||||||
if test -n "$a_deplib" ; then
|
if test -n "$a_deplib" ; then
|
||||||
droppeddeps=yes
|
droppeddeps=yes
|
||||||
echo
|
echo
|
||||||
echo "*** Warning: This library needs some functionality provided by $a_deplib."
|
echo "*** Warning: linker path does not have real file for library $a_deplib."
|
||||||
echo "*** I have the capability to make that library automatically link in when"
|
echo "*** I have the capability to make that library automatically link in when"
|
||||||
echo "*** you link to this library. But I can only do this if you have a"
|
echo "*** you link to this library. But I can only do this if you have a"
|
||||||
echo "*** shared version of the library, which you do not appear to have."
|
echo "*** shared version of the library, which you do not appear to have"
|
||||||
|
echo "*** because I did check the linker path looking for a file starting"
|
||||||
|
if test -z "$potlib" ; then
|
||||||
|
echo "*** with $libname but no candidates were found. (...for regex pattern test)"
|
||||||
|
else
|
||||||
|
echo "*** with $libname and none of the candidates passed a file format test"
|
||||||
|
echo "*** using a regex pattern. Last file checked: $potlib"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Add a -L argument.
|
# Add a -L argument.
|
||||||
@ -2894,7 +2940,18 @@ EOF
|
|||||||
if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
|
if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
|
||||||
eval cmds=\"$archive_expsym_cmds\"
|
eval cmds=\"$archive_expsym_cmds\"
|
||||||
else
|
else
|
||||||
|
save_deplibs="$deplibs"
|
||||||
|
for conv in $convenience; do
|
||||||
|
tmp_deplibs=
|
||||||
|
for test_deplib in $deplibs; do
|
||||||
|
if test "$test_deplib" != "$conv"; then
|
||||||
|
tmp_deplibs="$tmp_deplibs $test_deplib"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
deplibs="$tmp_deplibs"
|
||||||
|
done
|
||||||
eval cmds=\"$archive_cmds\"
|
eval cmds=\"$archive_cmds\"
|
||||||
|
deplibs="$save_deplibs"
|
||||||
fi
|
fi
|
||||||
save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
@ -3093,7 +3150,7 @@ EOF
|
|||||||
|
|
||||||
prog)
|
prog)
|
||||||
case $host in
|
case $host in
|
||||||
*cygwin*) output=`echo $output | sed -e 's,.exe$,,;s,$,.exe,'` ;;
|
*cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
|
||||||
esac
|
esac
|
||||||
if test -n "$vinfo"; then
|
if test -n "$vinfo"; then
|
||||||
$echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
|
$echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
|
||||||
@ -3115,6 +3172,13 @@ EOF
|
|||||||
# On Rhapsody replace the C library is the System framework
|
# On Rhapsody replace the C library is the System framework
|
||||||
compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
|
compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
|
||||||
finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
|
finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
|
||||||
|
case $host in
|
||||||
|
*darwin*)
|
||||||
|
# Don't allow lazy linking, it breaks C++ global constructors
|
||||||
|
compile_command="$compile_command ${wl}-bind_at_load"
|
||||||
|
finalize_command="$finalize_command ${wl}-bind_at_load"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -3281,9 +3345,9 @@ extern \"C\" {
|
|||||||
if test -z "$export_symbols"; then
|
if test -z "$export_symbols"; then
|
||||||
export_symbols="$output_objdir/$output.exp"
|
export_symbols="$output_objdir/$output.exp"
|
||||||
$run $rm $export_symbols
|
$run $rm $export_symbols
|
||||||
$run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
|
$run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
|
||||||
else
|
else
|
||||||
$run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
|
$run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
|
||||||
$run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
|
$run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
|
||||||
$run eval 'mv "$nlist"T "$nlist"'
|
$run eval 'mv "$nlist"T "$nlist"'
|
||||||
fi
|
fi
|
||||||
@ -3291,7 +3355,7 @@ extern \"C\" {
|
|||||||
|
|
||||||
for arg in $dlprefiles; do
|
for arg in $dlprefiles; do
|
||||||
$show "extracting global C symbols from \`$arg'"
|
$show "extracting global C symbols from \`$arg'"
|
||||||
name=`echo "$arg" | sed -e 's%^.*/%%'`
|
name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
|
||||||
$run eval 'echo ": $name " >> "$nlist"'
|
$run eval 'echo ": $name " >> "$nlist"'
|
||||||
$run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
|
$run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
|
||||||
done
|
done
|
||||||
@ -3306,7 +3370,13 @@ extern \"C\" {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Try sorting and uniquifying the output.
|
# Try sorting and uniquifying the output.
|
||||||
if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
|
if grep -v "^: " < "$nlist" |
|
||||||
|
if sort -k 3 </dev/null >/dev/null 2>&1; then
|
||||||
|
sort -k 3
|
||||||
|
else
|
||||||
|
sort +2
|
||||||
|
fi |
|
||||||
|
uniq > "$nlist"S; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
grep -v "^: " < "$nlist" > "$nlist"S
|
grep -v "^: " < "$nlist" > "$nlist"S
|
||||||
@ -3528,7 +3598,7 @@ static const void *lt_preloaded_setup() {
|
|||||||
relink_command="$var=\"$var_value\"; export $var; $relink_command"
|
relink_command="$var=\"$var_value\"; export $var; $relink_command"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
relink_command="cd `pwd`; $relink_command"
|
relink_command="(cd `pwd`; $relink_command)"
|
||||||
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
|
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -3548,7 +3618,7 @@ static const void *lt_preloaded_setup() {
|
|||||||
# win32 will think the script is a binary if it has
|
# win32 will think the script is a binary if it has
|
||||||
# a .exe suffix, so we strip it off here.
|
# a .exe suffix, so we strip it off here.
|
||||||
case $output in
|
case $output in
|
||||||
*.exe) output=`echo $output|sed 's,.exe$,,'` ;;
|
*.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
|
||||||
esac
|
esac
|
||||||
# test for cygwin because mv fails w/o .exe extensions
|
# test for cygwin because mv fails w/o .exe extensions
|
||||||
case $host in
|
case $host in
|
||||||
@ -3572,7 +3642,7 @@ static const void *lt_preloaded_setup() {
|
|||||||
|
|
||||||
# Sed substitution that helps us do robust quoting. It backslashifies
|
# Sed substitution that helps us do robust quoting. It backslashifies
|
||||||
# metacharacters that are still active within double-quoted strings.
|
# metacharacters that are still active within double-quoted strings.
|
||||||
Xsed='sed -e 1s/^X//'
|
Xsed="${SED}"' -e 1s/^X//'
|
||||||
sed_quote_subst='$sed_quote_subst'
|
sed_quote_subst='$sed_quote_subst'
|
||||||
|
|
||||||
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
||||||
@ -3610,7 +3680,7 @@ else
|
|||||||
test \"x\$thisdir\" = \"x\$file\" && thisdir=.
|
test \"x\$thisdir\" = \"x\$file\" && thisdir=.
|
||||||
|
|
||||||
# Follow symbolic links until we get to the real thisdir.
|
# Follow symbolic links until we get to the real thisdir.
|
||||||
file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
|
file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
|
||||||
while test -n \"\$file\"; do
|
while test -n \"\$file\"; do
|
||||||
destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
|
destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
|
||||||
|
|
||||||
@ -3623,7 +3693,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
|
file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
|
||||||
file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
|
file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
|
||||||
done
|
done
|
||||||
|
|
||||||
# Try to get the absolute directory name.
|
# Try to get the absolute directory name.
|
||||||
@ -3637,7 +3707,7 @@ else
|
|||||||
progdir=\"\$thisdir/$objdir\"
|
progdir=\"\$thisdir/$objdir\"
|
||||||
|
|
||||||
if test ! -f \"\$progdir/\$program\" || \\
|
if test ! -f \"\$progdir/\$program\" || \\
|
||||||
{ file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
|
{ file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
|
||||||
test \"X\$file\" != \"X\$progdir/\$program\"; }; then
|
test \"X\$file\" != \"X\$progdir/\$program\"; }; then
|
||||||
|
|
||||||
file=\"\$\$-\$program\"
|
file=\"\$\$-\$program\"
|
||||||
@ -3683,7 +3753,7 @@ else
|
|||||||
$shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
|
$shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
|
||||||
|
|
||||||
# Some systems cannot cope with colon-terminated $shlibpath_var
|
# Some systems cannot cope with colon-terminated $shlibpath_var
|
||||||
# The second colon is a workaround for a bug in BeOS R4 sed
|
# The second colon is a workaround for a bug in BeOS R4 ${SED}
|
||||||
$shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
|
$shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
|
||||||
|
|
||||||
export $shlibpath_var
|
export $shlibpath_var
|
||||||
@ -3858,7 +3928,7 @@ fi\
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# Quote the link command for shipping.
|
# Quote the link command for shipping.
|
||||||
relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args"
|
relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args)"
|
||||||
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
|
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
|
||||||
|
|
||||||
# Only create the output if not a dry run.
|
# Only create the output if not a dry run.
|
||||||
@ -3875,7 +3945,7 @@ fi\
|
|||||||
case $deplib in
|
case $deplib in
|
||||||
*.la)
|
*.la)
|
||||||
name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
|
name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
|
||||||
eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
||||||
if test -z "$libdir"; then
|
if test -z "$libdir"; then
|
||||||
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
|
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -3889,7 +3959,7 @@ fi\
|
|||||||
newdlfiles=
|
newdlfiles=
|
||||||
for lib in $dlfiles; do
|
for lib in $dlfiles; do
|
||||||
name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
|
name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
|
||||||
eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
|
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
|
||||||
if test -z "$libdir"; then
|
if test -z "$libdir"; then
|
||||||
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
|
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -3900,7 +3970,7 @@ fi\
|
|||||||
newdlprefiles=
|
newdlprefiles=
|
||||||
for lib in $dlprefiles; do
|
for lib in $dlprefiles; do
|
||||||
name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
|
name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
|
||||||
eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
|
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
|
||||||
if test -z "$libdir"; then
|
if test -z "$libdir"; then
|
||||||
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
|
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -4124,7 +4194,7 @@ relink_command=\"$relink_command\""
|
|||||||
|
|
||||||
*.la)
|
*.la)
|
||||||
# Check to see that this really is a libtool archive.
|
# Check to see that this really is a libtool archive.
|
||||||
if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
|
if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
|
||||||
else
|
else
|
||||||
$echo "$modename: \`$file' is not a valid libtool archive" 1>&2
|
$echo "$modename: \`$file' is not a valid libtool archive" 1>&2
|
||||||
$echo "$help" 1>&2
|
$echo "$help" 1>&2
|
||||||
@ -4273,24 +4343,20 @@ relink_command=\"$relink_command\""
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Do a test to see if this is really a libtool program.
|
# Do a test to see if this is really a libtool program.
|
||||||
#if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
|
|
||||||
case $host in
|
case $host in
|
||||||
*cygwin*|*mingw*)
|
*cygwin*|*mingw*)
|
||||||
wrapper=`echo $file | sed -e 's,.exe$,,'`
|
wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
wrapper=$file
|
wrapper=$file
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if (sed -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
|
if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
|
||||||
|
|
||||||
notinst_deplibs=
|
notinst_deplibs=
|
||||||
relink_command=
|
relink_command=
|
||||||
|
|
||||||
# If there is no directory component, then add one.
|
# If there is no directory component, then add one.
|
||||||
case $file in
|
case $file in
|
||||||
#*/* | *\\*) . $file ;;
|
|
||||||
#*) . ./$file ;;
|
|
||||||
*/* | *\\*) . $wrapper ;;
|
*/* | *\\*) . $wrapper ;;
|
||||||
*) . ./$wrapper ;;
|
*) . ./$wrapper ;;
|
||||||
esac
|
esac
|
||||||
@ -4322,8 +4388,6 @@ relink_command=\"$relink_command\""
|
|||||||
relink_command=
|
relink_command=
|
||||||
# If there is no directory component, then add one.
|
# If there is no directory component, then add one.
|
||||||
case $file in
|
case $file in
|
||||||
#*/* | *\\*) . $file ;;
|
|
||||||
#*) . ./$file ;;
|
|
||||||
*/* | *\\*) . $wrapper ;;
|
*/* | *\\*) . $wrapper ;;
|
||||||
*) . ./$wrapper ;;
|
*) . ./$wrapper ;;
|
||||||
esac
|
esac
|
||||||
@ -4373,7 +4437,7 @@ relink_command=\"$relink_command\""
|
|||||||
destfile=$destfile.exe
|
destfile=$destfile.exe
|
||||||
;;
|
;;
|
||||||
*:*.exe)
|
*:*.exe)
|
||||||
destfile=`echo $destfile | sed -e 's,.exe$,,'`
|
destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
@ -4521,7 +4585,7 @@ relink_command=\"$relink_command\""
|
|||||||
case $file in
|
case $file in
|
||||||
*.la)
|
*.la)
|
||||||
# Check to see that this really is a libtool archive.
|
# Check to see that this really is a libtool archive.
|
||||||
if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
|
if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
|
||||||
else
|
else
|
||||||
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
|
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
|
||||||
$echo "$help" 1>&2
|
$echo "$help" 1>&2
|
||||||
@ -4592,7 +4656,7 @@ relink_command=\"$relink_command\""
|
|||||||
-*) ;;
|
-*) ;;
|
||||||
*)
|
*)
|
||||||
# Do a test to see if this is really a libtool program.
|
# Do a test to see if this is really a libtool program.
|
||||||
if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
|
if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
|
||||||
# If there is no directory component, then add one.
|
# If there is no directory component, then add one.
|
||||||
case $file in
|
case $file in
|
||||||
*/* | *\\*) . $file ;;
|
*/* | *\\*) . $file ;;
|
||||||
@ -4624,7 +4688,7 @@ relink_command=\"$relink_command\""
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Now prepare to actually exec the command.
|
# Now prepare to actually exec the command.
|
||||||
exec_cmd='"$cmd"$args'
|
exec_cmd="\$cmd$args"
|
||||||
else
|
else
|
||||||
# Display what would be done.
|
# Display what would be done.
|
||||||
if test -n "$shlibpath_var"; then
|
if test -n "$shlibpath_var"; then
|
||||||
@ -4701,7 +4765,7 @@ relink_command=\"$relink_command\""
|
|||||||
case $name in
|
case $name in
|
||||||
*.la)
|
*.la)
|
||||||
# Possibly a libtool archive, so verify it.
|
# Possibly a libtool archive, so verify it.
|
||||||
if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
|
if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
|
||||||
. $dir/$name
|
. $dir/$name
|
||||||
|
|
||||||
# Delete the libtool libraries and symlinks.
|
# Delete the libtool libraries and symlinks.
|
||||||
@ -4756,7 +4820,7 @@ relink_command=\"$relink_command\""
|
|||||||
*)
|
*)
|
||||||
# Do a test to see if this is a libtool program.
|
# Do a test to see if this is a libtool program.
|
||||||
if test $mode = clean &&
|
if test $mode = clean &&
|
||||||
(sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
|
(${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
|
||||||
relink_command=
|
relink_command=
|
||||||
. $dir/$file
|
. $dir/$file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user