# DP: Fix PR67590, setting objdump macro. Index: b/src/libcc1/configure.ac =================================================================== --- a/src/libcc1/configure.ac +++ b/src/libcc1/configure.ac @@ -64,6 +64,31 @@ if test "$GXX" = yes; then fi AC_SUBST(libsuffix) +# Figure out what objdump we will be using. +AS_VAR_SET_IF(gcc_cv_objdump,, [ +if test -f $gcc_cv_binutils_srcdir/configure.ac \ + && test -f ../binutils/Makefile \ + && test x$build = x$host; then + # Single tree build which includes binutils. + gcc_cv_objdump=../binutils/objdump$build_exeext +elif test -x objdump$build_exeext; then + gcc_cv_objdump=./objdump$build_exeext +elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then + gcc_cv_objdump="$OBJDUMP_FOR_TARGET" +else + AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET) +fi]) + +AC_MSG_CHECKING(what objdump to use) +if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then + # Single tree build which includes binutils. + AC_MSG_RESULT(newly built objdump) +elif test x$gcc_cv_objdump = x; then + AC_MSG_RESULT(not found) +else + AC_MSG_RESULT($gcc_cv_objdump) +fi + dnl Test for -lsocket and -lnsl. Copied from libgo/configure.ac. AC_CACHE_CHECK([for socket libraries], libcc1_cv_lib_sockets, [libcc1_cv_lib_sockets=