summaryrefslogtreecommitdiff
path: root/media-sound/vsound/files/vsound-0.6-fix-build-system.patch
blob: 7e653b6197cad435de23f3e2ba5593a14a89b76a (plain)
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
--- a/configure.in
+++ b/configure.in
@@ -3,7 +3,9 @@
 AC_CANONICAL_SYSTEM
 
 AM_INIT_AUTOMAKE(vsound, 0.5)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
+
+AC_CONFIG_MACRO_DIR([.])
 
 AC_PROG_CC
 AC_PROG_CPP
@@ -45,12 +47,12 @@
 fi
 
 if test "$ac_cv_prog_gcc" = yes ; then
-	CFLAGS="-g -O2 -Wall -Wstrict-prototypes -pipe"
+	CFLAGS+=" -Wall -Wstrict-prototypes"
 fi
 
 if test "$ac_arg_debug" = yes; then
 	echo "enabling debug"
-	CFLAGS="$CFLAGS -DENABLE_DEBUG "
+	CPPFLAGS+=" -DENABLE_DEBUG"
 fi
 
 AC_OUTPUT(Makefile vsound)