aboutsummaryrefslogtreecommitdiff
path: root/sim/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-17 14:45:25 -0500
committerMike Frysinger <vapier@gentoo.org>2021-04-02 23:31:14 -0400
commitc2783492b62faa62bc501ffdd18fa0b6aa8d64b6 (patch)
treeda47b05f876d4c9955dbcee8c91a91624807a1a9 /sim/configure.ac
parentca698bee0a391bcde5cb5e29fde5df86ba28a04a (diff)
downloadfsf-binutils-gdb-c2783492b62faa62bc501ffdd18fa0b6aa8d64b6.zip
fsf-binutils-gdb-c2783492b62faa62bc501ffdd18fa0b6aa8d64b6.tar.gz
fsf-binutils-gdb-c2783492b62faa62bc501ffdd18fa0b6aa8d64b6.tar.bz2
sim: unify toolchain settings
The toplevel, common, and igen dirs all have their own code for setting up toolchain settings. Unify all of that in a new macro.
Diffstat (limited to 'sim/configure.ac')
-rw-r--r--sim/configure.ac27
1 files changed, 1 insertions, 26 deletions
diff --git a/sim/configure.ac b/sim/configure.ac
index 709bd3e..e233f9c 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -5,36 +5,11 @@ AC_INIT([sim], [0],
[https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim],
[], [https://sourceware.org/gdb/wiki/Sim/])
-AC_CANONICAL_SYSTEM
+SIM_AC_TOOLCHAIN
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE
-AC_PROG_CC
-AC_PROG_INSTALL
-AC_CHECK_TOOL(AR, ar)
-AC_CHECK_TOOL(RANLIB, ranlib, :)
-
-AC_ARG_PROGRAM
-AC_PROG_CC
-AC_PROG_CPP
-AC_SUBST(CFLAGS)
-AR=${AR-ar}
-AC_SUBST(AR)
-AC_PROG_RANLIB
-
-# Put a plausible default for CC_FOR_BUILD in Makefile.
-if test -z "$CC_FOR_BUILD"; then
- if test "x$cross_compiling" = "xno"; then
- CC_FOR_BUILD='$(CC)'
- else
- CC_FOR_BUILD=gcc
- fi
-fi
-AC_SUBST(CC_FOR_BUILD)
-CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
-AC_SUBST(CFLAGS_FOR_BUILD)
-
# If a cpu ever has more than one simulator to choose from, use
# --enable-sim=... to choose.
AC_ARG_ENABLE(sim,