Add a case for generic GNU-based systems, enabling POSIX flags, and
pthreads too.
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index e78bf27..bc222c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,6 +77,13 @@ AS_CASE(["${host}"],
          PLATFORM_CFLAGS="-DWEBRTC_WIN -D_WIN32 -U__STRICT_ANSI__"
          HAVE_WIN=1
         ],
+    [*-gnu*],
+        [
+         OS_CFLAGS=""  # no extra CFLAGS on other GNU systems
+         PLATFORM_CFLAGS="-DWEBRTC_POSIX"
+         OS_LDFLAGS="-lrt -lpthread"
+         HAVE_POSIX=1
+        ],
     [AC_MSG_ERROR([Unsupported host $host])]
 )
 AC_SUBST(PLATFORM_CFLAGS)
-- 
2.13.2

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to