* configure.in: Make 64-bit stuff work with "--with-targets=all".
This commit is contained in:
parent
abdd08c97c
commit
ffe2639825
2 changed files with 136 additions and 127 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Sep 9 16:57:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
|
||||
|
||||
* configure.in: Make 64-bit stuff work with "--with-targets=all".
|
||||
|
||||
Tue Sep 7 14:17:02 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||
|
||||
* libbfd-in.h: Removed swapping routines declarations.
|
||||
|
|
|
@ -88,49 +88,54 @@ case ${with_64_bit_bfd} in
|
|||
;;
|
||||
esac
|
||||
|
||||
# This processing still needs to be done if we're to decide properly whether
|
||||
# 64-bit support needs to be compiled in. Currently, it will be included if
|
||||
# the default or any other explicitly requested target requires it; it
|
||||
# will not be included on a 32-bit host if no 64-bit target is requested, and
|
||||
# no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
|
||||
# used.
|
||||
|
||||
# The default vector in the primary target.
|
||||
DEFAULT_VECTOR=`sed -n '
|
||||
s/DEFAULT_VECTOR[ ]*=[ ]*\([^ ]*\)/\1/p
|
||||
' $target_makefile_frag`
|
||||
|
||||
if [ x${all_targets} = xfalse ]; then
|
||||
allfrags="$target_makefile_frag $target_extra_frags"
|
||||
|
||||
allfrags="$target_makefile_frag $target_extra_frags"
|
||||
|
||||
# The default and selected vectors in all the configured targets.
|
||||
SELECT_VECS=`sed -n '
|
||||
s/DEFAULT_VECTOR[ ]*=[ ]*\([^ ]*\)/\1/p
|
||||
s/SELECT_VECS[ ]*=[ ]*\([^ ]*\)/\1/p
|
||||
' $allfrags`
|
||||
# uniq the list.
|
||||
f=""
|
||||
for i in $SELECT_VECS ; do
|
||||
# The default and selected vectors in all the configured targets.
|
||||
SELECT_VECS=`sed -n '
|
||||
s/DEFAULT_VECTOR[ ]*=[ ]*\([^ ]*\)/\1/p
|
||||
s/SELECT_VECS[ ]*=[ ]*\([^ ]*\)/\1/p
|
||||
' $allfrags`
|
||||
# uniq the list.
|
||||
f=""
|
||||
for i in $SELECT_VECS ; do
|
||||
case " $f " in
|
||||
*" $i "*) ;;
|
||||
*) f="$f $i" ;;
|
||||
esac
|
||||
done
|
||||
SELECT_VECS="$f"
|
||||
done
|
||||
SELECT_VECS="$f"
|
||||
|
||||
# The architectures in all the configured targets.
|
||||
SELECT_ARCHITECTURES=`sed -n '
|
||||
s/SELECT_ARCHITECTURES[ ]*=[ ]*//p
|
||||
' $allfrags`
|
||||
# uniq the list.
|
||||
f=""
|
||||
for i in $SELECT_ARCHITECTURES ; do
|
||||
# The architectures in all the configured targets.
|
||||
SELECT_ARCHITECTURES=`sed -n '
|
||||
s/SELECT_ARCHITECTURES[ ]*=[ ]*//p
|
||||
' $allfrags`
|
||||
# uniq the list.
|
||||
f=""
|
||||
for i in $SELECT_ARCHITECTURES ; do
|
||||
case " $f " in
|
||||
*" $i "*) ;;
|
||||
*) f="$f $i" ;;
|
||||
esac
|
||||
done
|
||||
SELECT_ARCHITECTURES="$f"
|
||||
done
|
||||
SELECT_ARCHITECTURES="$f"
|
||||
|
||||
# Target backend .o files.
|
||||
tb=
|
||||
# Target backend .o files.
|
||||
tb=
|
||||
|
||||
for vec in $SELECT_VECS
|
||||
do
|
||||
for vec in $SELECT_VECS
|
||||
do
|
||||
case "$vec" in
|
||||
# This list is alphabetized to make it easy to compare
|
||||
# with the two vector lists in targets.c.
|
||||
|
@ -202,42 +207,42 @@ if [ x${all_targets} = xfalse ]; then
|
|||
"") ;;
|
||||
*) echo "*** unknown target vector $vec" 1>&2; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
done
|
||||
|
||||
# Target architecture .o files.
|
||||
ta=`echo $SELECT_ARCHITECTURES | sed -e s/bfd_/cpu-/g -e s/_arch/.o/g`
|
||||
# Target architecture .o files.
|
||||
ta=`echo $SELECT_ARCHITECTURES | sed -e s/bfd_/cpu-/g -e s/_arch/.o/g`
|
||||
|
||||
# Weed out duplicate .o files.
|
||||
f=""
|
||||
for i in $tb ; do
|
||||
# Weed out duplicate .o files.
|
||||
f=""
|
||||
for i in $tb ; do
|
||||
case " $f " in
|
||||
*" $i "*) ;;
|
||||
*) f="$f $i" ;;
|
||||
esac
|
||||
done
|
||||
tb="$f"
|
||||
done
|
||||
tb="$f"
|
||||
|
||||
f=""
|
||||
for i in $ta ; do
|
||||
f=""
|
||||
for i in $ta ; do
|
||||
case " $f " in
|
||||
*" $i "*) ;;
|
||||
*) f="$f $i" ;;
|
||||
esac
|
||||
done
|
||||
ta="$f"
|
||||
done
|
||||
ta="$f"
|
||||
|
||||
bfd_backends="$tb"
|
||||
bfd_machines="$ta"
|
||||
bfd_backends="$tb"
|
||||
bfd_machines="$ta"
|
||||
|
||||
# Only set these if they will be nonempty, for the clever echo.
|
||||
test -n "$SELECT_VECS" &&
|
||||
# Only set these if they will be nonempty, for the clever echo.
|
||||
test -n "$SELECT_VECS" &&
|
||||
selvecs=`echo $SELECT_VECS | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
||||
test -n "SELECT_ARCHITECTURES" &&
|
||||
test -n "SELECT_ARCHITECTURES" &&
|
||||
selarchs=`echo $SELECT_ARCHITECTURES | sed -e 's/ \(.\)/,\1/g'`
|
||||
|
||||
else # all_targets is true
|
||||
bfd_backends='$(ALL_BACKENDS)'
|
||||
bfd_machines='$(ALL_MACHINES)'
|
||||
if [ x${all_targets} = xtrue ]; then
|
||||
bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
|
||||
bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
|
||||
fi # all_targets is true
|
||||
|
||||
case ${host64}-${target64}-${want64} in
|
||||
|
|
Loading…
Reference in a new issue