[vlc-commits] xosd: require and link against Xlib.
Alexis Ballier
git at videolan.org
Fri Dec 9 20:24:27 CET 2011
vlc/vlc-1.1 | branch: master | Alexis Ballier <aballier at gentoo.org> | Fri Dec 9 16:10:10 2011 -0300| [5125f8d5297be3e9dbb248ca345b642a33947a24] | committer: Rémi Denis-Courmont
xosd: require and link against Xlib.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 3254502d3b2995908a06387a397f14c89e76621d)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=5125f8d5297be3e9dbb248ca345b642a33947a24
---
configure.ac | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index f216fa4..7970a80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4160,8 +4160,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