]> git.draconx.ca Git - rrace.git/blobdiff - configure.ac
Allow compilation without X11.
[rrace.git] / configure.ac
index 88c9db9a2a11f83fada79fce250dcca40e6528e4..946fb53f639daea7b5211585f147b61d2f6a2d5a 100644 (file)
@@ -41,7 +41,9 @@ AS_IF([test x"$with_x" = x"yes" && test "$dx_cv_have_motif" != x"yes"],
 AC_SUBST([MOTIF_CFLAGS], [@&t@])
 AC_SUBST([MOTIF_LIBS], [@&t@])
 AS_IF([test x"$dx_cv_have_motif" = x"yes"],
-  [MOTIF_CFLAGS=$dx_cv_motif_cflags MOTIF_LIBS=$dx_cv_motif_libs])
+  [MOTIF_CFLAGS=$dx_cv_motif_cflags MOTIF_LIBS=$dx_cv_motif_libs],
+  [AC_DEFINE([X_DISPLAY_MISSING])])
+AM_CONDITIONAL([HAVE_MOTIF], [test x"$dx_cv_have_motif" = x"yes"])
 
 AC_CONFIG_TESTDIR([.], [t:.])
 DX_PROG_AUTOTEST