summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-13 07:04:39 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-13 07:04:39 +0000
commitbdbe7091b67032caf0df0768188f8ec1f73a51f2 (patch)
tree9ce1167dc3f4f37b9f0bbb1d6420b7ddde088386 /gcc/configure
parent1df44f25f0fcd9a81bd1011af17c1c3a005dcea3 (diff)
downloadgcc-bdbe7091b67032caf0df0768188f8ec1f73a51f2.tar.gz
2007-04-12 Paolo Bonzini <bonzini@gnu.org>
Charles Wilson <libtool@cwilson.fastmail.fm> * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove. (libgcc.mvars): Don't depend on them. * configure.ac (as, collect-ld, nm): Create from exec-tool.in. * exec-tool.in: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index ae168324de9..ed56355a52a 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -13349,6 +13349,11 @@ fi
ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
+case "$ORIGINAL_AS_FOR_TARGET" in
+ ./as | ./as$build_exeext) ;;
+ *) ac_config_files="$ac_config_files as:exec-tool.in"
+ ;;
+esac
echo "$as_me:$LINENO: checking what assembler to use" >&5
echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
@@ -13465,6 +13470,11 @@ fi
ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
+case "$ORIGINAL_LD_FOR_TARGET" in
+ ./collect-ld | ./collect-ld$build_exeext) ;;
+ *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
+ ;;
+esac
echo "$as_me:$LINENO: checking what linker to use" >&5
echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
@@ -13569,6 +13579,12 @@ fi
ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
+case "$ORIGINAL_NM_FOR_TARGET" in
+ ./nm | ./nm$build_exeext) ;;
+ *) ac_config_files="$ac_config_files nm:exec-tool.in"
+ ;;
+esac
+
# Figure out what objdump we will be using.
if test "${gcc_cv_objdump+set}" = set; then
@@ -17526,6 +17542,9 @@ for ac_config_target in $ac_config_targets
do
case "$ac_config_target" in
# Handling of arguments.
+ "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
+ "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
+ "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
"$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
"auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
@@ -18020,6 +18039,12 @@ s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
rm -f $tmp/out
fi
+ # Run the commands associated with the file.
+ case $ac_file in
+ as ) chmod +x as ;;
+ collect-ld ) chmod +x collect-ld ;;
+ nm ) chmod +x nm ;;
+ esac
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF