79b38ca
From cb6511354b500d1b1bd8ff140fdf0ea106b174d4 Mon Sep 17 00:00:00 2001
79b38ca
From: David Tardon <dtardon@redhat.com>
79b38ca
Date: Wed, 3 Sep 2014 16:20:40 +0200
79b38ca
Subject: [PATCH] drop useless test for ant-apache-regexp
79b38ca
79b38ca
It has not been needed since commit
79b38ca
1de48c417404464ca1e34e5c5d1c82a9342349bb 4 years ago.
79b38ca
79b38ca
Change-Id: I53ceb5d8d6c02c7a13c86cdd884e4fc378a2c492
79b38ca
---
79b38ca
 configure.ac | 44 --------------------------------------------
79b38ca
 1 file changed, 44 deletions(-)
79b38ca
79b38ca
diff --git a/configure.ac b/configure.ac
79b38ca
index f65ab66..897cb1e 100644
79b38ca
--- a/configure.ac
79b38ca
+++ b/configure.ac
79b38ca
@@ -12311,50 +12311,6 @@ EOF
79b38ca
         AC_MSG_ERROR([no, you need at least Ant >= $ant_minver])
79b38ca
     fi
79b38ca
 
79b38ca
-    if test "$ENABLE_MEDIAWIKI" = "TRUE"; then
79b38ca
-        AC_MSG_CHECKING([whether Ant supports mapper type="regexp"])
79b38ca
-        rm -rf confdir
79b38ca
-        mkdir confdir
79b38ca
-        cat > conftest.java << EOF
79b38ca
-            public class conftest {
79b38ca
-                int testmethod(int a, int b) {
79b38ca
-                    return a + b;
79b38ca
-                }
79b38ca
-            }
79b38ca
-EOF
79b38ca
-
79b38ca
-        cat > conftest.xml << EOF
79b38ca
-            <project name="conftest" default="conftest">
79b38ca
-            <target name="conftest" depends="copytest">
79b38ca
-                <javac srcdir="." includes="conftest.java">
79b38ca
-                </javac>
79b38ca
-            </target>
79b38ca
-            <target name="copytest">
79b38ca
-                 <copy todir="confdir">
79b38ca
-                 <fileset dir="confdir" includes="**/*.abc" casesensitive="yes"/>
79b38ca
-                 <filterset/>
79b38ca
-                 <mapper type="regexp" from="^(.*[/\\])foo([/\\].*)" to="\1baa\2"/>
79b38ca
-                 </copy>
79b38ca
-            </target>
79b38ca
-            </project>
79b38ca
-EOF
79b38ca
-
79b38ca
-        if test "$JAVACISGCJ" = "yes"; then
79b38ca
-            JAVA_HOME=; export JAVA_HOME
79b38ca
-            ant_gcj="-Dbuild.compiler=gcj"
79b38ca
-        fi
79b38ca
-        AC_TRY_COMMAND("$ANT" $ant_gcj -buildfile conftest.xml 1>&2)
79b38ca
-        if test $? = 0 -a -f ./conftest.class; then
79b38ca
-            AC_MSG_RESULT([yes])
79b38ca
-            rm -rf confdir
79b38ca
-        else
79b38ca
-            echo "configure: Ant test failed" >&5
79b38ca
-            cat conftest.java >&5
79b38ca
-            cat conftest.xml >&5
79b38ca
-            rm -rf confdir
79b38ca
-            AC_MSG_ERROR([no. Did you install ant-apache-regexp?])
79b38ca
-        fi
79b38ca
-    fi
79b38ca
     rm -f conftest* core core.* *.core
79b38ca
 fi
79b38ca
 
79b38ca
-- 
79b38ca
1.9.3
79b38ca