Jan Stary <h...@stare.cz> writes: >> > -AC_OPTIONAL_FORMAT(oss, OSS, [AC_CHECK_HEADERS(sys/soundcard.h,, >> > - [AC_CHECK_HEADERS(machine/soundcard.h, >> > - [AC_CHECK_LIB(ossaudio, _oss_ioctl, OSS_LIBS="$OSS_LIBS -lossaudio")], >> > - using_oss=no)])]) >> > +AC_OPTIONAL_FORMAT(oss, OSS, [AC_CHECK_HEADERS(sys/soundcard.h,, >> > uing_oss=no)]) >> >> Apparently, the presence of <sys/soundcard.h> is not >> a correct test of ossaudio being available in the system. > > Maybe I am confused by the Subject: > "remove check for machine/soundcard.h and libossaudio"
The checks for those things have been removed. It now only checks for sys/soundcard.h since that better reflects what we actually want. > It seems this diff does not remove, but change the way > ossaudio is detected; namely, if sys/soundcard.h is present, > we have oss (which is wrong, at least on OpenBSD); Did you fix that typo (a git pull will do it)? If not, it would definitely "detect" it as present on any system. > also, even with oss detected, we no longer set -libossaudio, > which also seems wrong (anywhere we want to use it). -lossaudio is _only_ for the emulation on *BSD. No library is required on systems with real OSS drivers. We shouldn't be using the emulation, so there is no need to link with the library either. -- Måns Rullgård _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel