Package: snd / 11.7-2

99-autoconf-hurd.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
 configure |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

--- snd.orig/configure
+++ snd/configure
@@ -10818,6 +10818,32 @@ $as_echo "$alsa_ok" >&6; }
                 ;;
         esac
         ;;
+    *-*-hurd*)
+        LDSO_FLAGS="-shared"
+        LIBS="$LIBS -lm"
+        if test "$ac_cv_header_dlfcn_h" = yes ; then
+          LDFLAGS="$LDFLAGS -ldl"
+        fi
+        if test "$GCC" = yes ; then
+          SO_FLAGS="-fPIC $SO_FLAGS"
+        fi
+
+        AUDIO_SYSTEM=OSS
+
+        if test "$with_jack" = yes ; then
+               if test "$with_oss" != yes ; then
+                 AUDIO_SYSTEM=JACK
+               fi
+        fi
+
+        case $AUDIO_SYSTEM in
+            OSS)
+                $as_echo "#define HAVE_OSS 1" >>confdefs.h
+
+                AUDIO_SYSTEM=OSS
+                ;;
+        esac
+        ;;
     *-*-sunos4*)
         $as_echo "#define MUS_SUN 1" >>confdefs.h