Mercurial > mplayer.hg
changeset 32232:42f4930d7d39
Simplify libbluray test with function_check().
author | diego |
---|---|
date | Mon, 20 Sep 2010 07:54:06 +0000 |
parents | 378ca1625bfb |
children | d19635de6765 |
files | configure |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Mon Sep 20 07:42:06 2010 +0000 +++ b/configure Mon Sep 20 07:54:06 2010 +0000 @@ -5919,12 +5919,7 @@ echocheck "Blu-ray support" if test "$_bluray" = auto ; then _bluray=no - - cat > $TMPC << EOF -#include <libbluray/bluray.h> -int main(void) { BLURAY_TITLE_INFO *i = bd_get_title_info(NULL, 0); return 0; } -EOF - compile_check $TMPC -lbluray && _bluray=yes + function_check libbluray/bluray.h 'bd_get_title_info(0, 0)' -lbluray && _bluray=yes fi if test "$_bluray" = yes ; then def_bluray='#define CONFIG_LIBBLURAY 1'