[vlc-devel] commit: skins2: fix linking in OpenBSD ( the X11 os factory must be use for linux and OpenBSD at least). ( Rémi Duraffort )

git version control git at videolan.org
Mon Nov 23 19:22:14 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 23 17:08:29 2009 +0100| [e35669e5b9fc6c0efd5d169ab970a753075a8835] | committer: Rémi Duraffort 

skins2: fix linking in OpenBSD (the X11 os factory must be use for linux and OpenBSD at least).

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

 configure.ac                  |    1 +
 modules/gui/skins2/Modules.am |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index c1a0683..279ac0b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -412,6 +412,7 @@ AM_CONDITIONAL(HAVE_LINUX, [test "${SYS}" = "linux"])
 AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
 AM_CONDITIONAL(HAVE_WINCE, test "${SYS}" = "mingwce")
 AM_CONDITIONAL(USE_PEFLAGS, [test "${enable_peflags}" = "yes"])
+AM_CONDITIONAL(USE_X11_FOR_SKINS2, [case "${SYS}" in linux*|openbsd*) true;; *) false;; esac])
 
 dnl
 dnl Sadly autoconf doesn't think about testing foo.exe when ask to test
diff --git a/modules/gui/skins2/Modules.am b/modules/gui/skins2/Modules.am
index 4569077..2142fdd 100644
--- a/modules/gui/skins2/Modules.am
+++ b/modules/gui/skins2/Modules.am
@@ -211,7 +211,7 @@ SOURCES_skins2 += \
     $(NULL)
 endif
 
-if HAVE_LINUX
+if USE_X11_FOR_SKINS2
 SOURCES_skins2 += \
 	x11/x11_display.cpp \
 	x11/x11_display.hpp \




More information about the vlc-devel mailing list