Thanks, I pushed the following slightly-different patch (I found a couple more instances of the problem):
>From e14f3fe48c2b206d3ec4e0afaa4c7b2c99349b4a Mon Sep 17 00:00:00 2001 From: Paul Eggert <egg...@cs.ucla.edu> Date: Fri, 8 Mar 2013 08:56:18 -0800 Subject: [PATCH] AC_PROG_CC etc: avoid warnings when removing conftest* on OS X Reported by Nobuyoshi Nakada in: http://lists.gnu.org/archive/html/autoconf-patches/2013-03/msg00003.html * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CC_C_O, AC_PROG_CXX_C_O): * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Use rm -rf, not just rm -f, when removing conftest*. --- lib/autoconf/c.m4 | 6 +++--- lib/autoconf/fortran.m4 | 2 +- lib/autoconf/functions.m4 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 6fe00fb..a810a09 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -513,7 +513,7 @@ else AC_MSG_RESULT([no]) eval ac_cv_prog_cc_${ac_cc}_c_o=no fi -rm -f core conftest* +rm -rf core conftest* ])])dnl AC_LANG_POP(C)dnl ])# AC_PROG_CC @@ -626,7 +626,7 @@ then else eval ac_cv_prog_cc_${ac_cc}_c_o=no fi -rm -f core conftest* +rm -rf core conftest* ])dnl if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then AC_MSG_RESULT([yes]) @@ -823,7 +823,7 @@ if _AC_DO_VAR(ac_try) && else ac_cv_prog_cxx_c_o=no fi -rm -f conftest*]) +rm -rf conftest*]) if test $ac_cv_prog_cxx_c_o = no; then AC_DEFINE(CXX_NO_MINUS_C_MINUS_O, 1, [Define to 1 if your C++ compiler doesn't accept diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 3293657..f20b029 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -451,7 +451,7 @@ if _AC_DO_VAR(ac_try) && else ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o=no fi -rm -f conftest*]) +rm -rf conftest*]) if test $ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o = no; then AC_DEFINE([]_AC_FC[]_NO_MINUS_C_MINUS_O, 1, [Define to 1 if your Fortran compiler doesn't accept diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index 1b56641..f994a4a 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -1510,7 +1510,7 @@ AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG234, ($[2]), [Define to the type of args 2, 3 and 4 for `select'.]) AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG5, ($[3]), [Define to the type of arg 5 for `select'.]) -rm -f conftest* +rm -rf conftest* ])# AC_FUNC_SELECT_ARGTYPES -- 1.7.11.7