$NetBSD: patch-aa,v 1.2 2001/03/20 09:57:37 wiz Exp $

--- configure.in.orig	Sat Feb 24 02:31:45 2001
+++ configure.in
@@ -112,7 +112,7 @@
 
 dnl Check for ESD
 
-AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)
+AM_PATH_ESD(0.2.8, have_esd=no, have_esd=no)
 AM_CONDITIONAL(HAVE_ESD,test "x$have_esd" = xyes)
 
 dnl Check for OSS
@@ -133,6 +133,11 @@
 fi
 AC_SUBST(ALSA_LIBS)
 
+dnl Check for Sun audio
+
+AC_CHECK_HEADERS(sys/audioio.h)
+AM_CONDITIONAL(HAVE_SUN_AUDIO,test "${ac_cv_header_sys_audioio_h}" = yes)
+
 dnl Check for aRts
 
 AC_PATH_PROG(ARTSC_CONFIG, artsc-config)
@@ -160,4 +165,4 @@
 
 CFLAGS="$CFLAGS -DAO_PLUGIN_PATH=\\\"$plugindir\\\""
 
-AC_OUTPUT(Makefile src/Makefile doc/Makefile include/Makefile include/ao/Makefile include/ao/os_types.h src/plugins/Makefile src/plugins/esd/Makefile src/plugins/oss/Makefile src/plugins/alsa/Makefile src/plugins/arts/Makefile debian/Makefile)
+AC_OUTPUT(Makefile src/Makefile doc/Makefile include/Makefile include/ao/Makefile include/ao/os_types.h src/plugins/Makefile src/plugins/esd/Makefile src/plugins/oss/Makefile src/plugins/alsa/Makefile src/plugins/sun/Makefile src/plugins/arts/Makefile debian/Makefile)
