fix conditional X11 compilation
authorLennart Poettering <lennart@poettering.net>
Sat, 18 Dec 2004 20:45:46 +0000 (20:45 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 18 Dec 2004 20:45:46 +0000 (20:45 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@328 fefdeb5f-60dc-0310-8127-8f9354f1896f

configure.ac

index 6917921..dda1f4c 100644 (file)
@@ -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