[vlc-commits] xosd: require and link against Xlib.

Alexis Ballier git at videolan.org
Fri Dec 9 20:23:57 CET 2011


vlc | branch: master | Alexis Ballier <aballier at gentoo.org> | Fri Dec  9 16:10:10 2011 -0300| [3254502d3b2995908a06387a397f14c89e76621d] | committer: Rémi Denis-Courmont

xosd: require and link against Xlib.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3254502d3b2995908a06387a397f14c89e76621d
---

 configure.ac |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index d0538e2..4f37ad2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3786,8 +3786,13 @@ if test "${enable_xosd}" = "yes"
 then
   AC_CHECK_HEADERS(xosd.h,
     AC_CHECK_LIB(xosd, xosd_set_horizontal_offset, [
-      VLC_ADD_PLUGIN([xosd])
-      VLC_ADD_LIBS([xosd],[-lxosd])
+      AS_IF([test "${no_x}" != "yes"], [
+          VLC_ADD_PLUGIN([xosd])
+          VLC_ADD_LIBS([xosd],[-lxosd ${X_LIBS} ${X_PRE_LIBS} -lX11])
+          VLC_ADD_CFLAGS([xosd],[${X_CFLAGS}])
+        ],[
+          AC_MSG_ERROR([Xlib is required with xosd.])
+        ])
     ])
   )
 fi



More information about the vlc-commits mailing list