Commit 338d3b2d authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Create a new configuration manifest constant HAVE_OSS_MIDI.

parent 6ba59140
...@@ -234,6 +234,29 @@ then ...@@ -234,6 +234,29 @@ then
AC_DEFINE(HAVE_OSS) AC_DEFINE(HAVE_OSS)
fi fi
AC_CACHE_CHECK("for Open Sound System/MIDI interface",
ac_cv_c_opensoundsystem_midi,
AC_TRY_COMPILE([
#if defined(HAVE_SYS_SOUNDCARD_H)
#include <sys/soundcard.h>
#elif defined(HAVE_MACHINE_SOUNDCARD_H)
#include <machine/soundcard.h>
#elif defined(HAVE_SOUNDCARD_H)
#include <soundcard.h>
#endif
],[
/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
#if !defined(SNDCTL_SEQ_SYNC)
#error No open sound system MIDI interface
#endif
],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no"))
if test "$ac_cv_c_opensoundsystem_midi" = "yes"
then
AC_DEFINE(HAVE_OSS_MIDI)
fi
dnl **** If ln -s doesn't work, use cp instead **** dnl **** If ln -s doesn't work, use cp instead ****
if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
/* Define if you have the Open Sound system. */ /* Define if you have the Open Sound system. */
#undef HAVE_OSS #undef HAVE_OSS
/* Define if you have the Open Sound system (MIDI interface). */
#undef HAVE_OSS_MIDI
/* Define if X libraries are not reentrant (compiled without -D_REENTRANT). */ /* Define if X libraries are not reentrant (compiled without -D_REENTRANT). */
#undef NO_REENTRANT_X11 #undef NO_REENTRANT_X11
......
...@@ -64,6 +64,9 @@ ...@@ -64,6 +64,9 @@
/* Define if you have the Open Sound system. */ /* Define if you have the Open Sound system. */
#undef HAVE_OSS #undef HAVE_OSS
/* Define if you have the Open Sound system (MIDI interface). */
#undef HAVE_OSS_MIDI
/* Define if X libraries are not reentrant (compiled without -D_REENTRANT). */ /* Define if X libraries are not reentrant (compiled without -D_REENTRANT). */
#undef NO_REENTRANT_X11 #undef NO_REENTRANT_X11
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment