From e84cdbab22495ef11cae16c4199d5b29ed883960 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 9 May 2016 17:35:45 +0000
Subject: applying patch lame-3.99.5.patch


diff --git a/configure.in b/configure.in
index 2f8fa66..c1d8c8c 100644
--- a/configure.in
+++ b/configure.in
@@ -349,6 +349,9 @@ if test $ac_cv_func_socket = no; then
 		*solaris*)
 			LIBS="$LIBS -lnsl"
 			;;
+		*haiku*)
+			LIBS="$LIBS -lnetwork"
+			;;
 		esac
 	fi
 fi
-- 
2.2.2


From 11cadc735d46907efa4b15e8295e56c5c449d49f Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 9 May 2016 17:51:14 +0000
Subject: gcc5 patch from FreeBSD ports.


diff --git a/configure.in b/configure.in
index c1d8c8c..bed1271 100644
--- a/configure.in
+++ b/configure.in
@@ -96,9 +96,19 @@ AC_CHECK_HEADERS( \
 		 sys/soundcard.h \
 		 sys/time.h \
 		 unistd.h \
-		 xmmintrin.h \
 		 linux/soundcard.h)
 
+dnl Checks for actually working SSE intrinsics
+AC_MSG_CHECKING(working SSE intrinsics)
+AC_COMPILE_IFELSE(
+    [AC_LANG_PROGRAM(
+	[[#include <xmmintrin.h>]],
+	[[_mm_sfence();]])],
+    [AC_DEFINE([HAVE_XMMINTRIN_H], [1], [Define if SSE intrinsics work.])
+     ac_cv_header_xmmintrin_h=yes],
+   [ac_cv_header_xmmintrin_h=no])
+AC_MSG_RESULT(${ac_cv_header_xmmintrin_h})
+
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_C_INLINE
-- 
2.2.2

