[vlc-devel] [PATCH] Configure: enable the access_shm module only when the correct headers are present
Jean-Baptiste Kempf
jb at videolan.org
Sat Jun 11 14:46:07 CEST 2011
---
configure.ac | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index f7eeb3c..077e283 100644
--- a/configure.ac
+++ b/configure.ac
@@ -815,7 +815,8 @@ AC_CHECK_HEADERS([sys/mount.h], [], [],
])
if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- AC_CHECK_HEADERS(machine/param.h sys/shm.h)
+ AC_CHECK_HEADERS(machine/param.h)
+ AC_CHECK_HEADERS(sys/shm.h, VLC_ADD_PLUGIN([access_shm]))
AC_CHECK_HEADERS([linux/version.h linux/dccp.h scsi/scsi.h linux/magic.h])
AC_CHECK_HEADERS(syslog.h)
fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
@@ -1262,7 +1263,7 @@ dnl
dnl Some plugins aren't useful on some platforms
dnl
if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- VLC_ADD_PLUGIN([dynamicoverlay access_shm])
+ VLC_ADD_PLUGIN([dynamicoverlay])
elif test "${SYS}" != "mingwce"; then
VLC_ADD_PLUGIN([access_smb dmo globalhotkeys])
VLC_ADD_LIBS([dmo],[-lole32 -luuid])
--
1.7.5.4
More information about the vlc-devel
mailing list