diff options
author | davilla <davilla@4pi.com> | 2014-01-01 14:09:17 -0500 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2014-01-01 14:09:51 -0500 |
commit | 22979099545b511e8764c8b73f8e17bf188d97c3 (patch) | |
tree | f8bccf7fb807e8c94916f5076caafc772f2ecce8 /configure.in | |
parent | b269e8c1191361f7f4e7b8e105452207a749a1ae (diff) |
droid: fixed, check for ALL enabled codecs
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/configure.in b/configure.in index 2cd2c8efa4..2fe5f93045 100644 --- a/configure.in +++ b/configure.in @@ -37,7 +37,7 @@ AC_DEFUN([XB_ADD_PLAYER], AC_DEFUN([XB_ADD_CODEC], [ AC_MSG_CHECKING([for $2]) - case $add_codecs in + case $3 in *$2*) use_codec_$2="yes" AC_SUBST([USE_$1], 1) @@ -1968,16 +1968,19 @@ case $add_players in esac # additional internal codecs -case $add_codecs in - *amcodec*) - AC_CHECK_HEADER([amcodec/codec_error.h],, AC_MSG_ERROR($missing_headers)) - XB_ADD_CODEC([LIBAMCODEC], [amcodec]) - ;; - *libstagefright*) - XB_ADD_CODEC([LIBSTAGEFRIGHT], [libstagefright]) - ;; - *) -esac +# remember to convert commas to spaces +for codecs in `echo $add_codecs | sed 's/,/ /g'`; do + case $codecs in + *amcodec*) + AC_CHECK_HEADER([amcodec/codec_error.h],, AC_MSG_ERROR($missing_headers)) + XB_ADD_CODEC([LIBAMCODEC], [amcodec], [$codecs]) + ;; + *libstagefright*) + XB_ADD_CODEC([LIBSTAGEFRIGHT], [libstagefright], [$codecs]) + ;; + *) + esac +done # platform specific bin utilities if test "$build_vendor" != "apple" ; then |