diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2004-01-23 22:43:19 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2004-01-23 22:43:19 +0000 |
commit | f060afe17cf3fe838d4c19cb1ae9534bd97a92d5 (patch) | |
tree | 920622a530ff9587773371e1f9b7d3195f545ecc /m4/depout.m4 | |
parent | 54118ee353ce11309938cda737d79357255e1a80 (diff) | |
download | automake-f060afe17cf3fe838d4c19cb1ae9534bd97a92d5.tar.gz |
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
instead of `/xx/ s///p'; the latter fails when GNU sed is run with
POSIXLY_CORRECT. Also strip superfluous -e.
Report from Miloslav Trmac.
Diffstat (limited to 'm4/depout.m4')
-rw-r--r-- | m4/depout.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/depout.m4 b/m4/depout.m4 index 27cf6abc0..baad9ea5c 100644 --- a/m4/depout.m4 +++ b/m4/depout.m4 @@ -39,18 +39,18 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue - am__include=`sed -n -e '/^am__include = / s///p' < "$mf"` + am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue - am__quote=`sed -n -e '/^am__quote = / s///p' < "$mf"` + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n -e '/^U = / s///p' < "$mf"` + U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. - for file in `sed -n -e " + for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. |