Author: arielch Date: Fri Aug 24 20:11:23 2012 New Revision: 1377080 URL: http://svn.apache.org/viewvc?rev=1377080&view=rev Log: Test for unset variable
Modified: incubator/ooo/trunk/main/configure.in Modified: incubator/ooo/trunk/main/configure.in URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/configure.in?rev=1377080&r1=1377079&r2=1377080&view=diff ============================================================================== --- incubator/ooo/trunk/main/configure.in (original) +++ incubator/ooo/trunk/main/configure.in Fri Aug 24 20:11:23 2012 @@ -7088,7 +7088,9 @@ dnl Test whether rat scan was requested dnl =================================================================== RAT_JAR= AC_MSG_CHECKING([whether to trigger rat scan]) -if test "$with_rat_scan" != "no"; then +if test -z "$with_rat_scan" -o "$with_rat_scan" == "no"; then + AC_MSG_RESULT([no]) +else if test "$WITH_JAVA" == "no"; then AC_MSG_ERROR([no, java disabled, enable with --with-java]) elif test "$enable_saxon" == "no"; then @@ -7106,8 +7108,6 @@ if test "$with_rat_scan" != "no"; then AC_MSG_ERROR([$with_rat_scan is not a directory]) fi fi -else - AC_MSG_RESULT([no]) fi AC_SUBST(RAT_JAR_HOME)