Commit 32a18c8c by H.J. Lu Committed by H.J. Lu

Check $READELF_FOR_TARGET for readelf in configure

Similar to as, ld, nm and objdump, gcc configure should check
$READELF_FOR_TARGET for readelf.

	PR bootstrap/67385
	* configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
	* configure: Regenerated.

From-SVN: r228567
parent b0ae33ba
2015-10-07 H.J. Lu <hongjiu.lu@intel.com> 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/67385
* configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
* configure: Regenerated.
2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
PR target/67850 PR target/67850
* config/i386/i386.c (ix86_maybe_switch_abi): Merged with ... * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
(ix86_set_current_function): This. (ix86_set_current_function): This.
...@@ -22271,9 +22271,11 @@ if test -f $gcc_cv_binutils_srcdir/configure.ac \ ...@@ -22271,9 +22271,11 @@ if test -f $gcc_cv_binutils_srcdir/configure.ac \
gcc_cv_readelf=../binutils/readelf$build_exeext gcc_cv_readelf=../binutils/readelf$build_exeext
elif test -x readelf$build_exeext; then elif test -x readelf$build_exeext; then
gcc_cv_readelf=./readelf$build_exeext gcc_cv_readelf=./readelf$build_exeext
elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
gcc_cv_readelf="$READELF_FOR_TARGET"
else else
# Extract the first word of "readelf", so it can be a program name with args. # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
set dummy readelf; ac_word=$2 set dummy $READELF_FOR_TARGET; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; } $as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then : if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
......
...@@ -2403,8 +2403,10 @@ if test -f $gcc_cv_binutils_srcdir/configure.ac \ ...@@ -2403,8 +2403,10 @@ if test -f $gcc_cv_binutils_srcdir/configure.ac \
gcc_cv_readelf=../binutils/readelf$build_exeext gcc_cv_readelf=../binutils/readelf$build_exeext
elif test -x readelf$build_exeext; then elif test -x readelf$build_exeext; then
gcc_cv_readelf=./readelf$build_exeext gcc_cv_readelf=./readelf$build_exeext
elif ( set dummy $READELF_FOR_TARGET; test -x $[2] ); then
gcc_cv_readelf="$READELF_FOR_TARGET"
else else
AC_PATH_PROG(gcc_cv_readelf, readelf) AC_PATH_PROG(gcc_cv_readelf, $READELF_FOR_TARGET)
fi]) fi])
AC_MSG_CHECKING(what readelf to use) AC_MSG_CHECKING(what readelf to use)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment