aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2018-12-05 21:57:00 +0000
committerIain Sandoe <iains@gcc.gnu.org>2018-12-05 21:57:00 +0000
commite4a9a572770b48375561c7ca424eb94eb45a9fcb (patch)
tree5fcb51fb4479259bf04ee549f9747cc0978d4a4e /gcc/configure.ac
parentddaa5da9d2e9ecb75fb45d7547d7d92e4b8e6ff7 (diff)
downloadgcc-e4a9a572770b48375561c7ca424eb94eb45a9fcb.zip
gcc-e4a9a572770b48375561c7ca424eb94eb45a9fcb.tar.gz
gcc-e4a9a572770b48375561c7ca424eb94eb45a9fcb.tar.bz2
darwin - add configuration support for 'otool'
2018-12-05 Iain Sandoe <iain@sandoe.co.uk> * configure.ac (NCN_STRICT_CHECK_TOOLS): Check otool. (ACX_CHECK_INSTALLED_TARGET_TOOL): Likewise (GCC_TARGET_TOOL): Likewise. * Makefile.tpl (HOST_EXPORTS): Add OTOOL, OTOOL_FOR_TARGET. (BASE_TARGET_EXPORTS): OTOOL, export OTOOL_FOR_TARGET. OTOOL, OTOOL_FOR_TARGET: New substitutions. (EXTRA_HOST_FLAGS, EXTRA_TARGET_FLAGS): Add OTOOL. * configure: Regenerate. * Makefile.in: Likewise. gcc/ * configure.ac (gcc_cv_otool): Set. * configure: Regenerate. From-SVN: r266831
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 2673f80..7fce52a 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2514,6 +2514,23 @@ else
AC_MSG_RESULT($gcc_cv_readelf)
fi
+# Figure out what otool we will be using.
+AS_VAR_SET_IF(gcc_cv_otool,, [
+if test -x otool$build_exeext; then
+ gcc_cv_otool=./otool$build_exeext
+elif ( set dummy $OTOOL_FOR_TARGET; test -x $[2] ); then
+ gcc_cv_otool="$OTOOL_FOR_TARGET"
+else
+ AC_PATH_PROG(gcc_cv_otool, $OTOOL_FOR_TARGET)
+fi])
+
+AC_MSG_CHECKING(what otool to use)
+if test x$gcc_cv_otool = x; then
+ AC_MSG_RESULT(not found)
+else
+ AC_MSG_RESULT($gcc_cv_otool)
+fi
+
# Figure out what assembler alignment features are present.
gcc_GAS_CHECK_FEATURE([.balign and .p2align], gcc_cv_as_balign_and_p2align,
[2,6,0],,