diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2004-02-29 21:27:01 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2004-02-29 21:27:01 +0000 |
commit | 195665e4a4ecd53071426f242d0bafd108defb47 (patch) | |
tree | 7ded5bab82a041c169eb51385790dfe397327d8b | |
parent | ba3a87d8e59914b8c3f938b7e5100cad03be5c76 (diff) | |
download | automake-195665e4a4ecd53071426f242d0bafd108defb47.tar.gz |
* m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
to create numbered dependencies. This fixes a portability issue
when CONFIG_SHELL is forced to /bin/sh on Solaris 8.
Reported by Mark Phillips.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | m4/depend.m4 | 6 |
4 files changed, 14 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2004-02-29 Alexandre Duret-Lutz <adl@gnu.org> + * m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >' + to create numbered dependencies. This fixes a portability issue + when CONFIG_SHELL is forced to /bin/sh on Solaris 8. + Reported by Mark Phillips. + * automake.in (lang_yacc_target_hook): Use Automake::Rule::define so that rules for the same headers are not output twice. * lib/Automake/Variable.pm (value_as_list_recursive): Do not @@ -36,6 +36,10 @@ Bug fixed in 1.8.2a: - Do not generate two build rules for `parser.h' when the parser appears in two different conditionals. + - Work around a Solaris 8 /bin/sh bug in the test for dependency + checking. Usually ./configure will not pick this shell; so this + fix only helps cases where the shell is forced to /bin/sh. + * Bugs introduced by 1.8: - In some situations (hand-written `m4_include's), aclocal would @@ -142,6 +142,7 @@ Mark Eichin eichin@cygnus.com Mark Elbrecht snowball3@bigfoot.com Mark Galassi rosalia@nis.lanl.gov Mark Mitchell mark@codesourcery.com +Mark Phillips msp@nortelnetworks.com Markku Rossi mtr@ngs.fi Markus F.X.J. Oberhumer k3040e4@wildsau.idv-edu.uni-linz.ac.at Martin Frydl martin@idoox.com diff --git a/m4/depend.m4 b/m4/depend.m4 index f695a3843..fe5fee449 100644 --- a/m4/depend.m4 +++ b/m4/depend.m4 @@ -1,4 +1,4 @@ -# serial 6 -*- Autoconf -*- +# serial 7 -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 # Free Software Foundation, Inc. @@ -85,7 +85,9 @@ AC_CACHE_CHECK([dependency style of $depcc], : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c - : > sub/conftst$i.h + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |