[ create a new paste ] login | about

Link: http://codepad.org/OFvYIEDL    [ raw code | fork ]

Plain Text, pasted on Dec 31:
From 0175a6c28b588714a92066d86ca94c7cd27e9306 Mon Sep 17 00:00:00 2001
From: Mikael Eriksson <mikael_eriksson@miffe.org>
Date: Sat, 31 Dec 2011 18:48:24 +0100
Subject: [PATCH] Fix m and ogg lib

---
 configure.ac    |    5 +++++
 src/Makefile.am |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6abf1ef..47b1b19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,6 +30,7 @@ fi;
 
 dnl Checks for programs.
 AC_PROG_CC
+AM_PROG_CC_C_O
 AC_PROG_AWK
 AC_PROG_INSTALL
 AC_PROG_LN_S
@@ -91,6 +92,10 @@ if test "$enable_vorbis" = "yes"; then
 	AC_CHECK_LIB(vorbisfile, main,,
 		[enable_vorbis=no;  disable_vorbis_reason="(missing vorbisfile library)"])
 fi;
+if test "$enable_vorbis" = "yes"; then
+	AC_CHECK_LIB(ogg, main,,
+		[enable_vorbis=no;  disable_vorbis_reason="(missing ogg library)"])
+fi;
 
 AM_CONDITIONAL(ENABLE_MP3,    test "$enable_mp3" = "yes")
 AM_CONDITIONAL(ENABLE_VORBIS, test "$enable_vorbis" = "yes")
diff --git a/src/Makefile.am b/src/Makefile.am
index ffabec4..22dc4fc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -39,7 +39,7 @@ tagtool_CFLAGS = -Wall -Wno-pointer-sign $(GTK_CFLAGS) ${mp3_cflags} 	\
 	${vorbis_cflags} -DDATADIR='"$(datadir)/${PACKAGE_NAME}"'
 
 tagtool_LDFLAGS = -export-dynamic
-tagtool_LDADD = $(GTK_LIBS)
+tagtool_LDADD = $(GTK_LIBS) -lm
 
 tagtool_SOURCES = file_list.c file_list.h file_util.c file_util.h	\
 	edit_tab.c edit_tab.h elist.c elist.h main.c math_util.c	\
-- 
1.7.8.1




Create a new paste based on this one


Comments: