# HG changeset patch # User reimar # Date 1189781108 0 # Node ID ace95ae92f2167f6eb50ddd2ba8f361a282ef296 # Parent 2ce49d0d99a147fd02bea6aab5aad071ca6410b9 Fix ESD check: use an ESD function to actually check linking and do not uselessly run resulting binary. diff -r 2ce49d0d99a1 -r ace95ae92f21 configure --- a/configure Fri Sep 14 14:19:22 2007 +0000 +++ b/configure Fri Sep 14 14:45:08 2007 +0000 @@ -5051,9 +5051,9 @@ cat > $TMPC << EOF #include -int main(void) { return 0; } -EOF -cc_check `esd-config --libs` `esd-config --cflags` && tmp_run && _esd=yes +int main(void) { int fd = esd_open_sound("test"); return fd; } +EOF +cc_check `esd-config --libs` `esd-config --cflags` && _esd=yes fi fi