[dx_cv_have_motif=yes], [dx_cv_have_motif=no])
CFLAGS=$save_CFLAGS LIBS=$save_LIBS])])
-AS_IF([test x"$with_x" = x"yes" && test "$dx_cv_have_motif" != x"yes"],
+AS_IF([test x"$with_x" = x"yes" && test x"$dx_cv_have_motif" != x"yes"],
[AC_MSG_FAILURE([--with-x requested but Motif was not found])])
AC_SUBST([MOTIF_CFLAGS], [@&t@])