$OpenBSD: patch-platforms_unix_vm-sound-sndio_acinclude_m4,v 1.1 2020/01/14 22:20:29 sthen Exp $

Index: platforms/unix/vm-sound-sndio/acinclude.m4
--- platforms/unix/vm-sound-sndio/acinclude.m4.orig
+++ platforms/unix/vm-sound-sndio/acinclude.m4
@@ -0,0 +1,21 @@
+dnl Copyright (c) 2019 Mark Hesselink <mhesseli@sbcglobal.net>
+dnl
+dnl Permission to use, copy, modify, and/or distribute this software for any
+dnl purpose with or without fee is hereby granted, provided that the above
+dnl copyright notice and this permission notice appear in all copies.
+dnl
+dnl THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+dnl WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+dnl MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+dnl SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+dnl OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+dnl CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+AC_MSG_CHECKING([for OpenBSD sndio sound support])
+AC_TRY_COMPILE([#include <sndio.h>],[(void)sio_open;],[
+  AC_MSG_RESULT([yes])
+],[
+  AC_MSG_RESULT([no])
+  AC_PLUGIN_DISABLE
+])
