From: Alexandre Duret-Lutz Date: Tue, 5 Mar 2002 15:20:10 +0000 (+0000) Subject: regen X-Git-Tag: Release-1-6~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86d3ad36b07933e8bbdf760d5a6a6cc939e644eb;p=thirdparty%2Fautomake.git regen --- diff --git a/aclocal.m4 b/aclocal.m4 index 02da7f756..09b92c9da 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -570,7 +570,7 @@ AC_SUBST([AMDEPBACKSLASH]) # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright 1999, 2000, 2001 Free Software Foundation, Inc. +# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -595,10 +595,10 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` - if (head -1 $mf | fgrep 'generated by automake') > /dev/null 2>&1; then + if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else - dirpart= + dirpart=. fi grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue # Extract the definition of DEP_FILES from the Makefile without