shithub: sox

Download patch

ref: 1e097282146bc0eeb0008f970689f9fdb281d141
parent: c8ec2375c074cd3258a7009bfec38835b5f594f6
author: cbagwell <cbagwell>
date: Fri Nov 27 22:36:13 EST 2009

Don't check each windows header file to prevent multiple additions
of winmm.

--- a/configure.ac
+++ b/configure.ac
@@ -449,11 +449,7 @@
 AC_OPTIONAL_FORMAT(pulseaudio, PULSEAUDIO, [AC_CHECK_HEADER(pulse/simple.h, [AC_CHECK_LIB(pulse, pa_simple_new, PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS -lpulse -lpulse-simple",using_pulseaudio=no,"-lpulse-simple")], using_pulseaudio=no)])
 
 
-AC_OPTIONAL_FORMAT(waveaudio, WAVEAUDIO, [AC_CHECK_HEADERS([windows.h mmsystem.h], [WAVEAUDIO_LIBS="$WAVEAUDIO_LIBS -lwinmm"], using_waveaudio=no, 
-		   [[#ifdef HAVE_WINDOWS_H
-		     #include <windows.h>
-		     #endif
-		     ]])])
+AC_OPTIONAL_FORMAT(waveaudio, WAVEAUDIO, [AC_CHECK_HEADER(mmsystem.h, [WAVEAUDIO_LIBS="$WAVEAUDIO_LIBS -lwinmm"], using_waveaudio=no, [[#include <windows.h>]])])
 
 
 AC_OPTIONAL_FORMAT(sndfile, SNDFILE, [SOX_PATH_SNDFILE(, using_sndfile=no)])