[MPlayer-dev-eng] [PATCH] Add additional check for libmng with libjpeg support

Xidorn Quan quanxunzhen at gmail.com
Sat Dec 22 06:34:11 CET 2012


On Sat, Dec 22, 2012 at 1:25 PM, Josh <joshf87 at live.com> wrote:
>
> Index: configure
> ===================================================================
> --- configure	(revision 35702)
> +++ configure	(working copy)
> @@ -5000,12 +5000,14 @@
>  echocheck "MNG support"
>  if test "$_mng" = auto ; then
>    _mng=no
> -  return_statement_check libmng.h 'const char * p_ver = mng_version_text()' '!p_ver || p_ver[0] == 0' -lmng -lz && _mng=yes
> +  for mnglibs in '-lmng -lz' '-lmng -ljpeg -lz' ; do
> +    return_statement_check libmng.h 'const char * p_ver = mng_version_text()' '!p_ver || p_ver[0] == 0' $mnglibs && _mng=yes
> +  done
>  fi
>  echores "$_mng"
>  if test "$_mng" = yes ; then
>    def_mng='#define CONFIG_MNG 1'
> -  extra_ldflags="$extra_ldflags -lmng -lz"
> +  extra_ldflags="$extra_ldflags $mnglibs"

Here $mnglibs could be undefined if $_mng != auto at beginning.

>    vomodules="mng $vomodules"
>  else
>    def_mng='#undef CONFIG_MNG'

--
Xidorn Quan
GnuPG fingerprint: 6F1E DF9A D250 7505 63E2  345E 7570 8D3F 7C9A 1209


More information about the MPlayer-dev-eng mailing list