diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index dcef0a2fffe..ce7618dbb12 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
 
+	* config.bfd (targ64_selvecs): New.
+	<powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
+
 	* bfd-in.h (BFD_VERSION): Remove wrong comment.
 	(BFD_DEFAULT_TARGET_SIZE): New.
 	(BFD_ARCH_SIZE): Comment.
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 33dc81d399a..dce8bb3b0b4 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -5,6 +5,8 @@
 # Sets the following shell variables:
 #  targ_defvec		Default vector for this target
 #  targ_selvecs		Vectors to build for this target
+#  targ64_selvecs	Vectors to build if --enable-64-bit-bfd is given
+#			or if host is 64 bit.
 #  targ_archs		Architectures for this target
 #  targ_cflags		$(CFLAGS) for this target (FIXME: pretty bogus)
 #  targ_underscore	Whether underscores are used: yes or no
@@ -23,6 +25,7 @@
 
 targ_defvec=
 targ_selvecs=
+targ64_selvecs=
 targ_cflags=
 targ_underscore=no
 
@@ -724,9 +727,7 @@ case "${targ}" in
 
   powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
     targ_defvec=rs6000coff_vec
-#ifdef BFD64
-    targ_selvecs="rs6000coff64_vec"
-#endif
+    targ64_selvecs="rs6000coff64_vec"
     ;;
 #ifdef BFD64
   powerpc64-*-aix*)
@@ -950,6 +951,12 @@ case "${targ}" in
     ;;
 esac
 
+case "${host64}${want64}" in
+  *true*)
+    targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
+    ;;
+esac
+
 # If we support any ELF target, then automatically add support for the
 # generic ELF targets.  This permits an objdump with some ELF support
 # to be used on an arbitrary ELF file for anything other than