]> granicus.if.org Git - php/commitdiff
Abort with an error message if we cannot create the DTrace header file.
authorDavid Soria Parra <dsp@php.net>
Fri, 7 May 2010 14:46:27 +0000 (14:46 +0000)
committerDavid Soria Parra <dsp@php.net>
Fri, 7 May 2010 14:46:27 +0000 (14:46 +0000)
acinclude.m4

index b6a072b8062989705234b47c4a5b91c2cab4dfa9..c6852192d3fad524c5348619ab7c4926fb8f00fc 100644 (file)
@@ -2928,7 +2928,6 @@ dnl
 dnl Generate platform specific dtrace header
 dnl
 AC_DEFUN([PHP_INIT_DTRACE], [
-  dtrace -h -C -s $abs_srcdir/$1 -o $abs_builddir/$2
-  $SED -ibak 's,PHP_,DTRACE_,g' $abs_builddir/$2
+  dtrace -h -C -s $abs_srcdir/$1 -o $abs_builddir/$2 && $SED -ibak 's,PHP_,DTRACE_,g' $abs_builddir/$2 || AC_MSG_ERROR([cannot create DTrace header file])
 ])