[vlc-devel] [PATCH 3/3] configure: Show enabled plugins.
Georgi Chorbadzhiyski
gf at unixsol.org
Thu Dec 1 17:58:36 CET 2011
Around 12/01/2011 06:47 PM, Alexey Sokolov scribbled:
> 01.12.2011 23:43, Georgi Chorbadzhiyski ?????:
>> --- configure.ac | 3 ++- 1 files changed, 2 insertions(+), 1
>> deletions(-)
>>
>> diff --git a/configure.ac b/configure.ac index a44f447..5ea8e5e
>> 100644 --- a/configure.ac +++ b/configure.ac @@ -4297,7 +4297,8 @@
>> libvlc configuration version : ${VERSION} system
>> : ${SYS} architecture : ${ARCH} -optimizations :
>> ${enable_optimizations}" +optimizations :
>> ${enable_optimizations} +plugins : ${PLUGINS}" if
>> test "${enable_vlc}" != "no"; then echo "vlc aliases
>> :${ALIASES}" else
> Need to show both enabled and disabled plugins, so that user can see
> what capabilities he will miss in his future VLC if he types "make".
Something like the attached on top of previous patches.
--
Georgi Chorbadzhiyski
http://georgi.unixsol.org/
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 5ea8e5e..de52cbf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4298,7 +4298,8 @@ version : ${VERSION}
system : ${SYS}
architecture : ${ARCH}
optimizations : ${enable_optimizations}
-plugins : ${PLUGINS}"
+disabled plugins :${PLUGINS_DISABLED}
+enabled plugins : ${PLUGINS}"
if test "${enable_vlc}" != "no"; then
echo "vlc aliases :${ALIASES}"
else
diff --git a/m4/with_pkg.m4 b/m4/with_pkg.m4
index 5369d1c..292ad4a 100644
--- a/m4/with_pkg.m4
+++ b/m4/with_pkg.m4
@@ -39,8 +39,10 @@ AC_DEFUN([VLC_ARG_ENABLE],
AS_IF(
[test x"${disable_all}" = "xyes" -a x"${xvar}" != "xyes" ],
[eval ${var}=no
- AC_MSG_NOTICE([$1 disabled. Enable it with --enable-$1])],
- [AC_ARG_ENABLE([$1], [$2], [$3])]
+ PLUGINS_DISABLED="$PLUGINS_DISABLED $1"
+ AC_MSG_NOTICE([$1 disabled. Enable it with --enable-$1])
+ ],
+ [AC_ARG_ENABLE([$1],[$2],[$3])]
)
])
More information about the vlc-devel
mailing list