From cd0f780a679c7dbbb027cb3445da077982bfcdb5 Mon Sep 17 00:00:00 2001
From: Ingo Weinhold <ingo_weinhold@gmx.de>
Date: Tue, 11 Jun 2013 17:54:49 +0200
Subject: applying patch libvorbis-1.3.2.patch


diff --git a/configure.ac b/configure.ac
index 28b0a14..ee245e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -120,6 +120,10 @@ if test -z "$GCC"; then
 		DEBUG="-v -g"
 		CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
 		PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
+	*-*-haiku*)
+		DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
+		CFLAGS="-O20 -Wall -D__NO_MATH_INLINES -fsigned-char"
+		PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
 	*)
 		DEBUG="-g"
 		CFLAGS="-O"
-- 
1.8.3.4


From d74109227b4c79aaef02ee35f59610da0e7d6c2f Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 14 Mar 2015 10:50:31 +0000
Subject: Haiku gcc2 hasn't Wextra


diff --git a/configure.ac b/configure.ac
index ee245e6..1ab1c25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -214,6 +214,11 @@ else
 		DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
 		CFLAGS="-O3 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
 		PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char";;
+	*-*-haiku*)
+		# Use -W instead of -Wextra because gcc on OS/2 is an old version.
+		DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
+		CFLAGS="-O3 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
+		PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char";;
  	*)
 		DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
 		CFLAGS="-O3 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
-- 
1.8.3.4

