mirror of https://github.com/mpv-player/mpv
Fix ESD check: use an ESD function to actually check linking and do
not uselessly run resulting binary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24461 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8351949b6f
commit
744d42b129
|
@ -5051,9 +5051,9 @@ if test "$_esd" = auto ; then
|
|||
|
||||
cat > $TMPC << EOF
|
||||
#include <esd.h>
|
||||
int main(void) { return 0; }
|
||||
int main(void) { int fd = esd_open_sound("test"); return fd; }
|
||||
EOF
|
||||
cc_check `esd-config --libs` `esd-config --cflags` && tmp_run && _esd=yes
|
||||
cc_check `esd-config --libs` `esd-config --cflags` && _esd=yes
|
||||
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue