$NetBSD: patch-aa,v 1.6 2012/01/11 20:21:54 hans Exp $

--- configure.orig	2008-04-24 19:29:25.000000000 +0200
+++ configure
@@ -20970,6 +20970,16 @@ _ACEOF
 	LIBS="$LIBS -lm"
 	AUDIO_SYSTEM=Sun
         ;;
+    *-*-solaris2.11)
+	cat >>confdefs.h <<\_ACEOF
+#define MUS_LINUX 1
+#define HAVE_OSS 1
+_ACEOF
+
+	LIBS="$LIBS -lm -ldl"
+	AUDIO_SYSTEM=OSS
+	LDSO_FLAGS="-G"
+	;;
     *-*-solaris*)
 	cat >>confdefs.h <<\_ACEOF
 #define MUS_SUN 1
@@ -24530,7 +24540,7 @@ fi
 if test "$ac_snd_have_extension_language" = no ; then
   if test "$ac_snd_have_gui" = no ; then
     if test "$ac_cv_header_dlfcn_h" = yes ; then
-      LDFLAGS="$LDFLAGS -ldl"
+      LDFLAGS="$LDFLAGS ${DL_LDFLAGS} ${DL_LIBS}"
     fi
     { $as_echo "$as_me:$LINENO: WARNING: Snd needs either an extension language (Guile or Ruby), or a graphics toolkit (Gtk or Motif), or preferably both.  All four packages are available free, normally prepackaged and ready-to-use.  As currently configured, this version of Snd is useless." >&5
 $as_echo "$as_me: WARNING: Snd needs either an extension language (Guile or Ruby), or a graphics toolkit (Gtk or Motif), or preferably both.  All four packages are available free, normally prepackaged and ready-to-use.  As currently configured, this version of Snd is useless." >&2;}
