diff options
author | Edward Hervey <edward.hervey@collabora.co.uk> | 2011-08-02 11:27:05 +0200 |
---|---|---|
committer | Edward Hervey <edward.hervey@collabora.co.uk> | 2011-08-02 11:27:05 +0200 |
commit | 50b34abb468b6572a92f6700552f6f541c655be8 (patch) | |
tree | 5466200294fb740188ccc8576fea6218655a5254 | |
parent | fcbee7af17dd721726cf19e01f67e9a325a2be69 (diff) | |
download | gstreamer-common-50b34abb468b6572a92f6700552f6f541c655be8.tar.gz |
m4: Add support for non-ported plugins
This allows defining a GST_PLUGINS_NONPORTED in the configure.ac of various
modules.
AG_GST_CHECK_PLUGIN and AG_GST_CHECK_FEATURE will properly handle non-ported
plugins and configure will report the list of non-ported plugins at the end
-rw-r--r-- | m4/gst-args.m4 | 8 | ||||
-rw-r--r-- | m4/gst-feature.m4 | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/m4/gst-args.m4 b/m4/gst-args.m4 index 030e7ac..d16fa79 100644 --- a/m4/gst-args.m4 +++ b/m4/gst-args.m4 @@ -225,9 +225,11 @@ AC_DEFUN([AG_GST_ARG_WITH_PLUGINS], GST_PLUGINS_ALL="" GST_PLUGINS_SELECTED="" + GST_PLUGINS_NONPORTED="" AC_SUBST(GST_PLUGINS_ALL) AC_SUBST(GST_PLUGINS_SELECTED) + AC_SUBST(GST_PLUGINS_NONPORTED) ]) dnl AG_GST_CHECK_PLUGIN(PLUGIN-NAME) @@ -263,12 +265,18 @@ AC_DEFUN([AG_GST_CHECK_PLUGIN], fi undefine([pname_def]) + dnl First check inclusion if [[ -z "$WITH_PLUGINS" ]] || echo " [$WITH_PLUGINS] " | tr , ' ' | grep -i " [$1] " > /dev/null; then GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED [$1]" fi + dnl Then check exclusion if echo " [$WITHOUT_PLUGINS] " | tr , ' ' | grep -i " [$1] " > /dev/null; then GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ [$1] / /'` fi + dnl Finally check if the plugin is ported or not + if echo " [$GST_PLUGINS_NONPORTED] " | tr , ' ' | grep -i " [$1] " > /dev/null; then + GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ [$1] / /'` + fi AM_CONDITIONAL([USE_PLUGIN_]translit([$1], a-z, A-Z), echo " $GST_PLUGINS_SELECTED " | grep -i " [$1] " > /dev/null) ]) diff --git a/m4/gst-feature.m4 b/m4/gst-feature.m4 index c8e5343..7f684b0 100644 --- a/m4/gst-feature.m4 +++ b/m4/gst-feature.m4 @@ -76,6 +76,12 @@ if test "x$NOUSE" = "xyes"; then fi NOUSE= +dnl *** Check if it is ported or not +if echo " [$GST_PLUGINS_NONPORTED] " | tr , ' ' | grep -i " [$1] " > /dev/null; then + USE_[$1]="no" + AC_MSG_WARN(*** $3 not ported) +fi + dnl *** If it's enabled if test x$USE_[$1] = xyes; then @@ -240,6 +246,12 @@ printf "configure: *** Plug-ins without external dependencies that will NOT be b done ) | sort printf "\n" +printf "configure: *** Plug-ins that have NOT been ported:\n" +( for i in $GST_PLUGINS_NONPORTED; do + printf '\t'$i'\n' + done ) | sort +printf "\n" + if test "x$BUILD_EXTERNAL" = "xno"; then printf "configure: *** No plug-ins with external dependencies will be built\n" else |