summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-09 08:17:32 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-09 08:17:32 +0000
commit599a3eac965bb61703364d221010bb615be00647 (patch)
treead5cba7a7ccbcec086b8878b6a20cc98c4c8e81f /config
parent0ff33cdeea68decf95d5ac73f9ed35bb5d1fff9b (diff)
downloadgcc-599a3eac965bb61703364d221010bb615be00647.tar.gz
2004-06-09 Paolo Bonzini <bonzini@gnu.org>
* Makefile.tpl (touch-stage[+id+]): New. (restage[+prev+]): Depend on touch-stage[+id+]. * Makefile.tpl (RECURSE_FLAGS_TO_PASS): New. Use it throughout. * Makefile.def: Add profile and feedback bootstrap stages. Remove next field from bootstrap stages. * Makefile.tpl (LN, LN_S): Substitute. (stageN-start, stageN-end): Use double-colon rules, to provide a hook for additional setup commands. (distclean-stageN-gcc, restageN): Create dependencies from [+prev+], not from [+next+]. (stageN-bubble): Add commands for successive stages from [+prev+], using double-colon rules. (all-stageN-gcc): Fix typo. (stagefeedback-start, profiledbootstrap): New. * Makefile.in: Regenerate. * configure.in: Call ACX_PROG_LN. * configure: Regenerate. config/ChangeLog: 2004-06-09 Paolo Bonzini <bonzini@gnu.org> * acx.m4 (ACX_PROG_LN): From gcc, modified to accept a parameter. gcc/ChangeLog: 2004-06-09 Paolo Bonzini <bonzini@gnu.org> * aclocal.m4 (gcc_AC_PROG_LN): Remove. (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate config.in entries. * configure.ac: Call ACX_PROG_LN, falling back to $LN_S if hard links are not available. * configure: Regenerate. * config.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82816 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog5
-rw-r--r--config/acx.m424
2 files changed, 29 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 5f4adecc62e..6711da5bdbf 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-09 Paolo Bonzini <bonzini@gnu.org>
+
+ * acx.m4 (ACX_PROG_LN): From gcc, modified to
+ accept a parameter.
+
2004-05-23 Paolo Bonzini <bonzini@gnu.org>
* acx.m4 (ACX_HEADER_STDBOOL, ACX_HEADER_STRING):
diff --git a/config/acx.m4 b/config/acx.m4
index b96d688bde3..09bac1c6c64 100644
--- a/config/acx.m4
+++ b/config/acx.m4
@@ -258,3 +258,27 @@ if test $gcc_cv_c__bool = yes; then
fi
])
+dnl See if hard links work and if not, try to substitute $1 or simple copy.
+AC_DEFUN([ACX_PROG_LN],
+[AC_MSG_CHECKING(whether ln works)
+AC_CACHE_VAL(acx_cv_prog_LN,
+[rm -f conftestdata_t
+echo >conftestdata_f
+if ln conftestdata_f conftestdata_t 2>/dev/null
+then
+ acx_cv_prog_LN=ln
+else
+ acx_cv_prog_LN=no
+fi
+rm -f conftestdata_f conftestdata_t
+])dnl
+if test $acx_cv_prog_LN = no; then
+ LN="ifelse([$1],,cp,[$1])"
+ AC_MSG_RESULT([no, using $LN])
+else
+ LN="$acx_cv_prog_LN"
+ AC_MSG_RESULT(yes)
+fi
+AC_SUBST(LN)dnl
+])
+