[Mesa-stable] [PATCH] configure.ac: ensure RM is set

Jonathan Gray jsg at jsg.id.au
Fri Oct 9 07:08:10 PDT 2015


GNU make predefines RM to rm -f but this is not required by POSIX
so ensure that RM is set.  This fixes "make clean" on OpenBSD.

Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
CC: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index e032d77..9ba25a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -106,6 +106,9 @@ AC_SYS_LARGEFILE
 LT_PREREQ([2.2])
 LT_INIT([disable-static])
 
+RM?=rm -f
+AC_SUBST([RM])
+
 AX_PROG_BISON([],
               AS_IF([test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.c"],
                     [AC_MSG_ERROR([bison not found - unable to compile glcpp-parse.y])]))
-- 
2.5.3



More information about the mesa-stable mailing list