Do not raise an error if we fail to locate 'find' or 'xargs'

Whilst not being able to delete all of the test output is messy it is
however not fatal, so do not abort configuration simply because we
cannot find either program.
This commit is contained in:
Chris Wilson 2007-04-12 03:01:31 +01:00
parent a8974223dc
commit 284edb8648
2 changed files with 11 additions and 10 deletions

View file

@ -50,10 +50,8 @@ AC_SUBST(CAIRO_VERSION_MICRO)
dnl ===========================================================================
AC_PATH_PROG(FIND, find,
AC_MSG_ERROR([Cairo requires a POSIX compatible 'find'.]))
AC_PATH_PROG(XARGS, xargs,
AC_MSG_ERROR([Cairo requires 'xargs'.]))
AC_PATH_PROG(FIND, find)
AC_PATH_PROG(XARGS, xargs)
dnl ===========================================================================

View file

@ -523,14 +523,17 @@ CLEANFILES = \
$(EXTRA_LTLIBRARIES) \
$(EXTRA_PROGRAMS)
# most systems cannot handle all of our clean files together
# This used to be a simple 'echo ${RM} *.ps *.pdf *.svg *.etc', but
# most systems cannot handle all of our clean files together.
# Then it became a fancy find using many GNU extensions, but then the ugly
# reality of portability was raised and it became....
clean-local:
-${FIND} . -name '*.ps' -print | ${XARGS} ${RM}
-${FIND} . -name '*.pdf' -print | ${XARGS} ${RM}
-${FIND} . -name '*.svg' -print | ${XARGS} ${RM}
-${FIND} . -name '*-out.png' -print | ${XARGS} ${RM}
-${FIND} . -name '*.ps' -print | ${XARGS} ${RM}
-${FIND} . -name '*.pdf' -print | ${XARGS} ${RM}
-${FIND} . -name '*.svg' -print | ${XARGS} ${RM}
-${FIND} . -name '*-out.png' -print | ${XARGS} ${RM}
-${FIND} . -name '*-diff.png' -print | ${XARGS} ${RM}
-${FIND} . -name '*.log' -print | ${XARGS} ${RM}
-${FIND} . -name '*.log' -print | ${XARGS} ${RM}
# Check tests under valgrind
# Saves log to valgrind-log