Mercurial > mplayer.hg
comparison configure @ 32151:681716cd9232
Simplify DirectFB check using function_check().
author | diego |
---|---|
date | Tue, 14 Sep 2010 10:25:12 +0000 |
parents | 068e6ec38400 |
children | d125167b2034 |
comparison
equal
deleted
inserted
replaced
32150:068e6ec38400 | 32151:681716cd9232 |
---|---|
4337 | 4337 |
4338 | 4338 |
4339 echocheck "DirectFB" | 4339 echocheck "DirectFB" |
4340 if test "$_directfb" = auto ; then | 4340 if test "$_directfb" = auto ; then |
4341 _directfb=no | 4341 _directfb=no |
4342 cat > $TMPC <<EOF | 4342 for _inc_tmp in "" -I/usr/local/include/directfb -I/usr/include/directfb -I/usr/local/include; do |
4343 #include <directfb.h> | 4343 function_check directfb.h "DirectFBInit(0, 0)" $_inc_tmp -ldirectfb && |
4344 int main(void) { DirectFBInit(0, 0); return 0; } | 4344 _directfb=yes && extra_cflags="$extra_cflags $_inc_tmp" && break |
4345 EOF | |
4346 for _inc_tmp in "" -I/usr/local/include/directfb \ | |
4347 -I/usr/include/directfb -I/usr/local/include; do | |
4348 cc_check $_inc_tmp -ldirectfb && _directfb=yes && \ | |
4349 extra_cflags="$extra_cflags $_inc_tmp" && break | |
4350 done | 4345 done |
4351 fi | 4346 fi |
4352 | 4347 |
4353 dfb_version() { | 4348 dfb_version() { |
4354 expr $1 \* 65536 + $2 \* 256 + $3 | 4349 expr $1 \* 65536 + $2 \* 256 + $3 |