diff --git a/configure.ac b/configure.ac index 6917921be..dda1f4c6b 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,9 @@ HAVE_X11=0 test "x$no_x" != "xyes" && HAVE_X11=1 AC_SUBST(HAVE_X11) AM_CONDITIONAL(HAVE_X11, test "x$no_x" != "xyes") -AC_DEFINE([HAVE_X11], [], [Have X11]) +if test "x$no_x" != "xyes" ; then + AC_DEFINE([HAVE_X11], 1, [Have X11]) +fi # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST