patches/xpilot-ng-01-freealut.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 610 f9420916cc03
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
610
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     1
--- xpilot-ng-4.7.2.orig/configure.ac	Thu Sep 15 19:35:33 2005
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     2
+++ xpilot-ng-4.7.2/configure.ac	Sat Oct 27 21:14:25 2007
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     3
@@ -314,21 +314,31 @@
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     4
 dnl OpenAL client sound support.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     5
 if test x$enable_sound = xyes; then
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     6
 	have_openal=no
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     7
+	have_alut=no
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     8
+	have_sound=no
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     9
 	AC_CHECK_LIB(
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    10
 		openal, 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    11
-		alutInit, 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    12
+		main, 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    13
 		[have_openal=yes],
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    14
 		[])
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    15
+	AC_CHECK_LIB(
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    16
+		alut, 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    17
+		main, 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    18
+		[have_alut=yes],
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    19
+		[])
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    20
 	if test x$have_openal = xyes; then
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    21
-		SOUND_LIBS=-lopenal
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    22
-		AC_DEFINE([SOUND], 1, [Define to 1 if you want OpenAL sound.])
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    23
-	else
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    24
-		echo "*** Client sound disabled. Check that you have OpenAL installed."
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    25
+		if test x$have_alut = xyes; then
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    26
+			have_sound=yes
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    27
+			SOUND_LIBS="-lopenal -lalut"
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    28
+			AC_DEFINE([SOUND], 1, [Define to 1 if you want OpenAL sound.])
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    29
+		else
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    30
+			echo "*** Client sound disabled. Check that you have OpenAL installed."
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    31
+		fi
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    32
 	fi
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    33
 	AC_SUBST(SOUND_LIBS)
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    34
 fi
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    35
 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    36
-AM_CONDITIONAL([COND_SOUND], [test x$have_openal = xyes])
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    37
+AM_CONDITIONAL([COND_SOUND], [test x$have_sound = xyes])
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    38
 
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    39
 dnl  Checks for header files.
f9420916cc03 2007-10-31 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    40
 dnl AC_HEADER_STDC