diff options
author | foobar <sniper@php.net> | 2007-03-25 10:21:02 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2007-03-25 10:21:02 +0000 |
commit | f5d9f9cd27bc9d25a35a7f54f9f9b0d04281a0b6 (patch) | |
tree | 33e8c4f0cced8279b0573f7863a5e163eb2a1457 /acinclude.m4 | |
parent | 82023f9aac05ecc01131037617691aa1e45878e8 (diff) | |
download | php-git-f5d9f9cd27bc9d25a35a7f54f9f9b0d04281a0b6.tar.gz |
- Check if Makefile.frag actually exists before running sed on it.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 11dcad5917..24dec1a430 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -177,7 +177,7 @@ AC_DEFUN([PHP_ADD_MAKEFILE_FRAGMENT],[ ifelse($1,,src=$ext_srcdir/Makefile.frag,src=$1) ifelse($2,,ac_srcdir=$ext_srcdir,ac_srcdir=$2) ifelse($3,,ac_builddir=$ext_builddir,ac_builddir=$3) - $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments ]) dnl |