summaryrefslogtreecommitdiff
path: root/audio/xmms-imms/files/patch-configure.ac
blob: 5300a499f6ec0d3b743d2dae34a5080a049e3057 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
--- configure.ac.orig	Wed Aug 18 01:56:28 2004
+++ configure.ac	Tue Aug 31 16:19:40 2004
@@ -31,8 +31,8 @@
 AC_ARG_ENABLE(debug,
             AC_HELP_STRING([--enable-debug],
                            [Extra debug output]),
-            [enable_debug='yes' XCPPFLAGS="-ggdb -O0 -DDEBUG"],
-            [enable_debug='no' XCPPFLAGS="-O3"])
+            [enable_debug='yes' XCPPFLAGS="-g -DDEBUG"],
+            [enable_debug='no' XCPPFLAGS=""])
 
 AC_PROG_CXX
 AC_PROG_CC
@@ -119,6 +119,7 @@
 
     saved_libs="$LIBS"
     LIBS="$LIBS-ltag"
+    saved_cppflags="$CPPFLAGS"
     CPPFLAGS=`taglib-config --cflags`
 
     AC_TRY_LINK([#include <tag.h>
@@ -127,6 +128,7 @@
         [XCPPFLAGS="$XCPPFLAGS `taglib-config --cflags`" 
                                             AC_MSG_RESULT(yes)],
         [LIBS=$saved_libs AC_MSG_RESULT(no)])
+    CPPFLAGS="$saved_cppflags"
 fi
 
 if test "$with_taglib" = "yes"; then
@@ -165,7 +167,7 @@
 
 
 if test "$with_screensaver" != "no"; then
-    LDFLAGS="-shared -L/usr/X11R6/lib"
+    LDFLAGS="-L/usr/X11R6/lib"
     AC_CHECK_LIB(Xext, XextFindDisplay,, [with_screensaver=no])
     AC_CHECK_LIB(Xss, XScreenSaverQueryInfo,, [with_screensaver=no])
     AC_CHECK_HEADERS(X11/extensions/scrnsaver.h,,