changeset 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 2ce49d0d99a1
children 9fc610537539
files configure
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 <esd.h>
-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