changeset 32279:6de1c6d3c1cb

Simplify Windows waveout test with header_check_broken().
author diego
date Sun, 26 Sep 2010 18:24:14 +0000
parents 0eef1045262c
children 92f94dc1eaee
files configure
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Sep 26 18:23:04 2010 +0000
+++ b/configure	Sun Sep 26 18:24:14 2010 +0000
@@ -5316,13 +5316,8 @@
 
 echocheck "Windows waveout"
 if test "$_win32waveout" = auto ; then
-  cat > $TMPC << EOF
-#include <windows.h>
-#include <mmsystem.h>
-int main(void) { return 0; }
-EOF
   _win32waveout=no
-  cc_check -lwinmm && _win32waveout=yes
+  header_check_broken windows.h mmsystem.h -lwinmm && _win32waveout=yes
 fi
 if test "$_win32waveout" = yes ; then
   def_win32waveout='#define CONFIG_WIN32WAVEOUT 1'