[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Skip the test when Autoconf is too old for ObjC++
From: |
Stefano Lattarini |
Subject: |
Re: [PATCH] Skip the test when Autoconf is too old for ObjC++ |
Date: |
Mon, 30 Apr 2012 13:15:29 +0200 |
Hi Peter. Since the test 't/objcxx-basic.sh' was indeed failing with
autoconf 2.62, I've folded in the following diff, inspired by your patch:
diff --git a/t/objcxx-basic.sh b/t/objcxx-basic.sh
index 50e1399..04a42a4 100755
--- a/t/objcxx-basic.sh
+++ b/t/objcxx-basic.sh
@@ -26,10 +26,21 @@ AUTOMAKE_fails
grep 'OBJCXX.* undefined' stderr
grep 'add .*AC_PROG_OBJCXX' stderr
-echo AC_PROG_OBJCXX >> configure.ac
-$ACLOCAL --force
-$AUTOMAKE
+cat >> configure.ac <<'END'
+dnl Support for Object C++ was introduced only in Autoconf 2.65.
+AC_PREREQ([2.65])
+AC_PROG_OBJCXX
+END
+if $ACLOCAL --force; then
+ : We have a modern enough autocon, go ahead
+elif test $? -eq 63; then
+ skip_ "Object C++ support requires Autoconf 2.65 or later"
+else
+ Exit 1 # Some other aclocal failure.
+fi
+
+$AUTOMAKE
$EGREP '^\.SUFFIXES:.* \.mm( |$)' Makefile.in
:
The test now works with Autoconf 2.65 and 2.69, and is correctly skipped
with Autoconf 2.64 and 2.62.
Regards,
Stefano