From: Paul Eggert Date: Sun, 19 Jan 2025 04:01:16 +0000 (-0800) Subject: Port to AIX 7.3 ‘find’ X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7144b9eedb13f0d1cddea35546827e91667dd2b2;p=emacs.git Port to AIX 7.3 ‘find’ * configure.ac (FIND_DELETE): Port to AIX 7.3 ‘find’, which exits with nonzero status if ‘-exec rm -f {} +’ is never invoked. (cherry picked from commit d65f727ab401a8dfe11de7837ecee6661a113fea) --- diff --git a/configure.ac b/configure.ac index 995179541cb..c0263629999 100644 --- a/configure.ac +++ b/configure.ac @@ -2078,8 +2078,10 @@ AC_CACHE_CHECK([for 'find' args to delete a file], [emacs_cv_find_delete], [if touch conftest.tmp && find conftest.tmp -delete 2>/dev/null && test ! -f conftest.tmp - then emacs_cv_find_delete="-delete" - else emacs_cv_find_delete="-exec rm -f {} +" + then emacs_cv_find_delete="-delete" # GNU 'find' + elif find . -prune -name x -exec echo {} + 2>/dev/null + then emacs_cv_find_delete="-exec rm -f {} +" # POSIX 'find' + else emacs_cv_find_delete="-exec rm -f {} + -o -exec true {} +" # AIX 7.3 fi]) FIND_DELETE=$emacs_cv_find_delete AC_SUBST([FIND_DELETE])