On Tue, 1 May 2012, Stefano Lattarini wrote:

From: Peter Breitenlohner <p...@mppmu.mpg.de>

* t/objcxx-basic.sh: New test.

Hi Stefano,

I have just build the automake git experimental/objc++ branch
(from a freshly checked out tree) and found three FAILs:
  t/objc-basic.sh
  t/objcxx-basic.sh
  t/suffix.sh

In all three cases the reason seems to be that the sequence
  $ACLOCAL
  $AUTOMAKE
  echo <some thing> >> configure.ac
  $ACLOCAL --force
doesn't work as expected.  When autom4te.cache is removed after modifying
configure.ac all three test succeed.

========================
diff --git a/t/objc-basic.sh b/t/objc-basic.sh
index ed30c69..6dddb0e 100755
--- a/t/objc-basic.sh
+++ b/t/objc-basic.sh
@@ -29,6 +29,8 @@ grep "add .*'AC_PROG_OBJC'" stderr

 echo AC_PROG_OBJC >> configure.ac

+rm -rf autom4te.cache
+
 $ACLOCAL --force
 $AUTOMAKE
 $EGREP '^\.SUFFIXES:.* \.m( |$)' Makefile.in
diff --git a/t/objcxx-basic.sh b/t/objcxx-basic.sh
index aa3c418..562add9 100755
--- a/t/objcxx-basic.sh
+++ b/t/objcxx-basic.sh
@@ -33,6 +33,8 @@ AC_PREREQ([2.65])
 AC_PROG_OBJCXX
 END

+rm -rf autom4te.cache
+
 if $ACLOCAL --force; then
   : We have a modern enough autoconf, go ahead.
 elif test $? -eq 63; then
diff --git a/t/suffix.sh b/t/suffix.sh
index f9944cb..2c3e5e8 100755
--- a/t/suffix.sh
+++ b/t/suffix.sh
@@ -36,6 +36,7 @@ for use_arlib in false :; do
     am_warns=
     echo AM_PROG_AR >> configure.ac
     : > ar-lib
+    rm -rf autom4te.cache
   else
     am_warns=-Wno-extra-portability
   fi
========================

Regards
Peter Breitenlohner <p...@mppmu.mpg.de>

Reply via email to