]> git.sesse.net Git - vlc/commitdiff
Linking to X11 is optional
authorChristophe Mutricy <xtophe@videolan.org>
Fri, 21 May 2010 22:33:05 +0000 (23:33 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 23 May 2010 21:37:02 +0000 (22:37 +0100)
But you need careful, if you compile without X and then run with an X-enabled PulseAudio, boom.

Closes: #3650
configure.ac

index 6e445f6e6715ece25c30d0842336c21746ef85fb..67a72bd7fa4d1efafae55739429d0a8438f5a423 100644 (file)
@@ -3661,8 +3661,9 @@ dnl
 dnl  Pulseaudio module
 dnl
 PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
-VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
-
+AS_IF([ test "$have_x" = yes],[
+       VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
+])
 dnl
 dnl  Portaudio module
 dnl