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:
reimar 2007-09-14 14:45:08 +00:00
parent 8351949b6f
commit 744d42b129
1 changed files with 2 additions and 2 deletions

4
configure vendored
View File

@ -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