On Mac OS X 10.8 sed, the | operator isn't available in basic REs, only in extended ones. The null string also has to be expressed with ().
Another Mac OS X-compatible version of the RE is 's/.c(xx){0,1}//'.
Both of these versions have been tested for compatibility with GNU sed.
A third alternative is to omit generating these dummy deps altogether, and prefixing the include statements in the Makefiles with a '-', which haves make ignore any failures in including those files. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac index 998ed55..1114c71 100644 --- a/configure.ac +++ b/configure.ac @@ -122,7 +122,7 @@ if test x$enable_dependency_tracking = xyes ; then
AC_CONFIG_COMMANDS([dummy-dep-files], [(cd "$srcdir" && find . '(' -name '*.c' -o -name '*.cxx' ')' -print) \ - | sed 's/.c(xx|)$//' | (while read f; do echo > "$f.o.d"; echo > "$f.po.d"; done) + | sed -E 's/.c(xx|())$//' | (while read f; do echo > "$f.o.d"; echo > "$f.po.d"; done) ]) fi