From 584d21d8533ee6141d5b53f48a455cdeafee7c8f Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sun, 29 Feb 2004 21:26:45 +0000 Subject: [PATCH] * 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. --- ChangeLog | 5 +++++ THANKS | 1 + m4/depend.m4 | 6 ++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8386e5a60..f181b0ceb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2004-02-29 Alexandre Duret-Lutz + * 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 diff --git a/THANKS b/THANKS index ebfa490f6..7e10ef8d0 100644 --- a/THANKS +++ b/THANKS @@ -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 -- 2.47.2