Mercurial > mplayer.hg
changeset 16660:338f5c64434b
Use pkg-config to detect theora dependencies.
patch by j -- at -- thing -- dot -- net
author | diego |
---|---|
date | Tue, 04 Oct 2005 17:58:11 +0000 |
parents | f734c20de10a |
children | adb581352e63 |
files | configure |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Tue Oct 04 16:47:38 2005 +0000 +++ b/configure Tue Oct 04 17:58:11 2005 +0000 @@ -5286,10 +5286,11 @@ fi echores "$_vorbis" -echocheck "OggTheora support (only the CVS version!)" +echocheck "OggTheora support" if test "$_theora" = auto ; then _theora=no - cat > $TMPC << EOF + if ( pkg-config --exists 'theora' ) >> "$TMPLOG" 2>&1 ; then + cat > $TMPC << EOF #include <theora/theora.h> #include <string.h> int main(void) @@ -5323,12 +5324,13 @@ return 0; } EOF - cc_check -ltheora -logg $_ld_lm && _theora=yes + cc_check `pkg-config --libs --cflags theora` && _theora=yes + fi fi if test "$_theora" = yes ; then _def_theora='#define HAVE_OGGTHEORA 1' _codecmodules="libtheora $_codecmodules" - _ld_theora="-ltheora -logg" + _ld_theora=`pkg-config --libs --cflags theora` else _def_theora='#undef HAVE_OGGTHEORA' _nocodecmodules="libtheora $_nocodecmodules"