Mercurial > mplayer.hg
comparison configure @ 24441:ace95ae92f21
Fix ESD check: use an ESD function to actually check linking and do
not uselessly run resulting binary.
author | reimar |
---|---|
date | Fri, 14 Sep 2007 14:45:08 +0000 |
parents | 606006d9f2f1 |
children | 47ec03fe8911 |
comparison
equal
deleted
inserted
replaced
24440:2ce49d0d99a1 | 24441:ace95ae92f21 |
---|---|
5049 _esd=no | 5049 _esd=no |
5050 if ( esd-config --version ) >> "$TMPLOG" 2>&1 ; then | 5050 if ( esd-config --version ) >> "$TMPLOG" 2>&1 ; then |
5051 | 5051 |
5052 cat > $TMPC << EOF | 5052 cat > $TMPC << EOF |
5053 #include <esd.h> | 5053 #include <esd.h> |
5054 int main(void) { return 0; } | 5054 int main(void) { int fd = esd_open_sound("test"); return fd; } |
5055 EOF | 5055 EOF |
5056 cc_check `esd-config --libs` `esd-config --cflags` && tmp_run && _esd=yes | 5056 cc_check `esd-config --libs` `esd-config --cflags` && _esd=yes |
5057 | 5057 |
5058 fi | 5058 fi |
5059 fi | 5059 fi |
5060 echores "$_esd" | 5060 echores "$_esd" |
5061 | 5061 |