diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-03 18:23:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-03 18:23:51 +0000 |
commit | db2e4d67e775a2f96ae3e122885a3495da7c9c25 (patch) | |
tree | bcc25f62b342d59fe9bae1adc82615fdd1767f0a /sim/common/acinclude.m4 | |
parent | 1d41d75cb6f1e78eedf871801a351e8be761daff (diff) | |
download | gdb-db2e4d67e775a2f96ae3e122885a3495da7c9c25.zip gdb-db2e4d67e775a2f96ae3e122885a3495da7c9c25.tar.gz gdb-db2e4d67e775a2f96ae3e122885a3495da7c9c25.tar.bz2 |
sim: generate build dependencies on the fly
Lift the code that GDB is using to generate dependencies on the fly and
port it over to the sim. Now people shouldn't have to manually maintain
these in their Makefile's.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/acinclude.m4')
-rw-r--r-- | sim/common/acinclude.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4 index 9979746..efb1a29 100644 --- a/sim/common/acinclude.m4 +++ b/sim/common/acinclude.m4 @@ -21,6 +21,7 @@ # Include global overrides and fixes for Autoconf. m4_include(../../config/override.m4) sinclude([../../config/zlib.m4]) +sinclude([../../config/depstand.m4]) AC_DEFUN([SIM_AC_COMMON], [ @@ -45,6 +46,20 @@ AR=${AR-ar} AC_SUBST(AR) AC_PROG_RANLIB +# Dependency checking. +ZW_CREATE_DEPDIR +ZW_PROG_COMPILER_DEPENDENCIES([CC]) + +# Check for the 'make' the user wants to use. +AC_CHECK_PROGS(MAKE, make) +MAKE_IS_GNU= +case "`$MAKE --version 2>&1 | sed 1q`" in + *GNU*) + MAKE_IS_GNU=yes + ;; +esac +AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes) + dnl We don't use gettext, but bfd does. So we do the appropriate checks dnl to see if there are intl libraries we should link against. ALL_LINGUAS= |