isl_local_space_substitute_equalities: improve error message
[platform/upstream/isl.git] / m4 / ax_submodule.m4
index 637b4a9..7cf8995 100644 (file)
@@ -22,13 +22,13 @@ if test "x$with_$1_prefix" != "x" -a "x$with_$1_exec_prefix" = "x"; then
        with_$1_exec_prefix=$with_$1_prefix
 fi
 if test "x$with_$1_prefix" != "x" -o "x$with_$1_exec_prefix" != "x"; then
-       if test "x$with_$1" != "x" -a "x$with_$1" != "xsystem"; then
+       if test "x$with_$1" != "x" -a "x$with_$1" != "xyes" -a "x$with_$1" != "xsystem"; then
                AC_MSG_ERROR([Setting $with_$1_prefix implies use of system $1])
        fi
        with_$1="system"
 fi
 if test "x$with_$1_builddir" != "x"; then
-       if test "x$with_$1" != "x" -a "x$with_$1" != "xbuild"; then
+       if test "x$with_$1" != "x" -a "x$with_$1" != "xyes" -a "x$with_$1" != "xbuild"; then
                AC_MSG_ERROR([Setting $with_$1_builddir implies use of build $1])
        fi
        with_$1="build"