changeset 2102:42a16b5e5151 audacious-plugins-1.4.0-beta3

try to fill in MAD_CFLAGS/MAD_LIBS with sensible defaults. enforce AC_SUBST().
author William Pitcock <nenolod@atheme.org>
date Fri, 19 Oct 2007 05:44:42 -0500
parents 8d66e004f016
children 90f2dcd39e85
files configure.ac
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Fri Oct 19 03:14:47 2007 -0500
+++ b/configure.ac	Fri Oct 19 05:44:42 2007 -0500
@@ -368,8 +368,13 @@
 
 if test "$enable_mp3" = "yes"; then
         AC_CHECK_LIB(mad, mad_timer_add,
-		[INPUT_PLUGINS="$INPUT_PLUGINS madplug"],
-		[enable_mp3="no"])
+		[INPUT_PLUGINS="$INPUT_PLUGINS madplug"
+		 MAD_CFLAGS=""
+		 MAD_LIBS="-lmad -lm"],
+		[PKG_CHECK_MODULES(MAD, [libmad],
+		 [INPUT_PLUGINS="$INPUT_PLUGINS madplug"],
+		 [enable_mp3="no"])
+		])
 fi
 # XXX rtsp support
 #        PKG_CHECK_MODULES(LIBNMS,[libnms >= 0.6.0],
@@ -381,6 +386,9 @@
 #        AC_SUBST(LIBNMS_SRC)
 # fi
 
+AC_SUBST(MAD_CFLAGS)
+AC_SUBST(MAD_LIBS)
+
 dnl *** Rocklight
 
 AC_ARG_ENABLE(rocklight,