aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2005-12-05 15:16:05 +0000
committerPaolo Bonzini <bonzini@gnu.org>2005-12-05 15:16:05 +0000
commitbe01d3433fd2df8c6d834ac63414aa40c05e64a1 (patch)
treea7c543f852952231fa4585bd0221674c12de431c /config
parentcf2bf87e2161ad7fb1a4fe4abc3e3b70bcaae4b5 (diff)
downloadgdb-be01d3433fd2df8c6d834ac63414aa40c05e64a1.zip
gdb-be01d3433fd2df8c6d834ac63414aa40c05e64a1.tar.gz
gdb-be01d3433fd2df8c6d834ac63414aa40c05e64a1.tar.bz2
toplevel:
2005-12-05 Paolo Bonzini <bonzini@gnu.org> Sync with gcc: 2005-12-05 Paolo Bonzini <bonzini@gnu.org> * configure.in (CONFIGURED_BISON, CONFIGURED_YACC, CONFIGURED_M4, CONFIGURED_FLEX, CONFIGURED_LEX, CONFIGURED_MAKEINFO): Remove "CONFIGURED_" from the AC_CHECK_PROGS invocation. Move below. Find in-tree tools if available. (EXPECT, RUNTEST, LIPO, STRIP): Find them and substitute them. (CONFIGURED_*_FOR_TARGET): Don't set nor substitute. (*_FOR_TARGET): Set them with GCC_TARGET_TOOL. (COMPILER_*_FOR_TARGET): New. * Makefile.tpl (HOST_EXPORTS): Add *_FOR_TARGET symbols that gcc needs. (BASE_TARGET_EXPORTS): Use COMPILER_*_FOR_TARGET symbols. (CONFIGURED_*, USUAL_*): Remove. (BISON, YACC, FLEX, LEX, M4, MAKEINFO, EXPECT, RUNTEST, LIPO, STRIP): Use autoconf substitutions. (COMPILER_AS_FOR_TARGET, COMPILER_LD_FOR_TARGET, COMPILER_NM_FOR_TARGET): New. (EXTRA_HOST_FLAGS): Pass LIPO and STRIP. (all): Make all-host and all-target in parallel. (do-[+make_target+], do-check, install, [+compare-target+]): Ensure that $$r and $$s are set before invoking a recursive make. (stage[+id+]-bubble): Likewise, and invoke the comparison at the end. ([+bootstrap-target+]): Inline most of the `all' target. 2005-11-29 Ben Elliston <bje@au.ibm.com> * Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc from the gcc build directory. * Makefile.in: Regenerate. 2005-11-29 Ben Elliston <bje@au.ibm.com> * Makefile.def: Add new libdecnumber host_module. Make all-gcc depend on all-libdecnumber. * configure.in (host_libs): Include libdecnumber. * Makefile.in: Regenerate. * configure: Likewise. 2005-11-21 Kean Johnston <jkj@sco.com> * config.sub, config.guess: Sync from upstream sources. config: 2005-12-05 Paolo Bonzini <bonzini@gnu.org> * acx.m4 (GCC_TARGET_TOOL): New.
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog4
-rw-r--r--config/acx.m431
2 files changed, 35 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 800698c..e98b57d 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-05 Paolo Bonzini <bonzini@gnu.org>
+
+ * acx.m4 (GCC_TARGET_TOOL): New.
+
2005-09-23 Tom Tromey <tromey@redhat.com>
* enable.m4: New file.
diff --git a/config/acx.m4 b/config/acx.m4
index 94e3216..c71f39b 100644
--- a/config/acx.m4
+++ b/config/acx.m4
@@ -296,3 +296,34 @@ fi
AC_SUBST(LN)dnl
])
+dnl GCC_TARGET_TOOL(PROGRAM, TARGET-VAR, HOST-VAR, IN-TREE-TOOL, LANGUAGE)
+AC_DEFUN([GCC_TARGET_TOOL],
+[AC_MSG_CHECKING(where to find the target $1)
+if test "x${build}" != "x${host}" ; then
+ # Canadian cross, just use what we found
+ AC_MSG_RESULT(pre-installed)
+else
+ ifelse([$4],,,
+ [ok=yes
+ case " ${configdirs} " in
+ *" patsubst([$4], [/.*], []) "*) ;;
+ *) ok=no ;;
+ esac
+ ifelse([$5],,,
+ [case ,${enable_languages}, in
+ *,$5,*) ;;
+ *) ok=no ;;
+ esac])
+ if test $ok = yes; then
+ # An in-tree tool is available and we can use it
+ $2='$$r/$(HOST_SUBDIR)/$4'
+ AC_MSG_RESULT(just compiled)
+ el])if test "x$target" = "x$host"; then
+ # We can use an host tool
+ $2='$($3)'
+ AC_MSG_RESULT(host tool)
+ else
+ # We need a cross tool
+ AC_MSG_RESULT(pre-installed)
+ fi
+fi])