diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-09 19:37:12 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-09 19:41:33 +0200 |
commit | 32aa5e6aa0e0e976a16204b23699031192b9bb34 (patch) | |
tree | 48df0ceb12615735d1bb6d57d0560db1a802efdc /configure.in | |
parent | 30eb1d6211764da77b2b13b2f6074b40e70a6f29 (diff) |
configure: don't fail if ant home contains space
Change-Id: I70ee8a557cb0e9aee393939e886cf82d8a9fc79c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/configure.in b/configure.in index 2873cd2bc998..90d326e6aa7e 100644 --- a/configure.in +++ b/configure.in @@ -11102,17 +11102,15 @@ EOF oldJAVA_HOME=$JAVA_HOME if test "$JAVACISGCJ" = "yes"; then JAVA_HOME=; export JAVA_HOME - ant_cmd="$ANT -Dbuild.compiler=gcj -buildfile conftest.xml 1>&2" - else - ant_cmd="$ANT -buildfile conftest.xml 1>&2" + ant_gcj="-Dbuild.compiler=gcj" fi - AC_TRY_EVAL(ant_cmd) + AC_TRY_COMMAND("$ANT" $ant_gcj -buildfile conftest.xml 1>&2) if test $? = 0 -a -f ./conftest.class; then AC_MSG_RESULT([Ant works]) if test -z "$WITH_ANT_HOME"; then - ANT_HOME=`$ANT -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"` + ANT_HOME=`"$ANT" -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"` if test -z "$ANT_HOME"; then - ANT_HOME=`echo $ANT | $SED -n "s/\/bin\/ant.*\$//p"` + ANT_HOME=`echo "$ANT" | $SED -n "s/\/bin\/ant.*\$//p"` fi else ANT_HOME="$WITH_ANT_HOME" @@ -11177,7 +11175,7 @@ EOF ant_minminor1=`echo $ant_minver | cut -d"." -f2` AC_MSG_CHECKING([whether Ant is >= $ant_minver]) - ant_version=`$ANT -version | $AWK '{ print $4; }'` + ant_version=`"$ANT" -version | $AWK '{ print $4; }'` ant_version_major=`echo $ant_version | cut -d. -f1` ant_version_minor=`echo $ant_version | cut -d. -f2` echo "configure: ant_version $ant_version " >&5 @@ -11221,11 +11219,9 @@ EOF if test "$JAVACISGCJ" = "yes"; then JAVA_HOME=; export JAVA_HOME - ant_cmd="$ANT -Dbuild.compiler=gcj -buildfile conftest.xml 1>&2" - else - ant_cmd="$ANT -buildfile conftest.xml 1>&2" + ant_gcj="-Dbuild.compiler=gcj" fi - AC_TRY_EVAL(ant_cmd) + AC_TRY_COMMAND("$ANT" $ant_gcj -buildfile conftest.xml 1>&2) if test $? = 0 -a -f ./conftest.class; then AC_MSG_RESULT([yes]) rm -rf confdir |