configure.ac: add option --enable-solaris-output

Allow enabling the plugin explicitly without running Solaris, to test
the build.
This commit is contained in:
Max Kellermann
2011-09-19 07:39:27 +02:00
parent df1152ee0f
commit 1d8840412f
3 changed files with 34 additions and 4 deletions

View File

@@ -23,7 +23,6 @@
#include <glib.h>
#include <sys/audio.h>
#include <sys/stropts.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -31,6 +30,25 @@
#include <fcntl.h>
#include <errno.h>
#ifdef __sun
#include <sys/audio.h>
#else
/* some fake declarations that allow build this plugin on systems
other than Solaris, just to see if it compiles */
#define AUDIO_GETINFO 0
#define AUDIO_SETINFO 0
#define AUDIO_ENCODING_LINEAR 0
struct audio_info {
struct {
unsigned sample_rate, channels, precision, encoding;
} play;
};
#endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "solaris_output"