changeset 1043:f65aa5417221 trunk

[svn] I will murder someone if I have to fix the buildsystem again.
author kiyoshi
date Fri, 18 May 2007 10:42:29 -0700
parents 77dbd83ea6e4
children b1128efde471
files ChangeLog configure.ac mk/rules.mk.in src/filewriter/Makefile
diffstat 4 files changed, 38 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 18 03:41:05 2007 -0700
+++ b/ChangeLog	Fri May 18 10:42:29 2007 -0700
@@ -1,3 +1,13 @@
+2007-05-18 10:41:05 +0000  Tony Vroon <chainsaw@gentoo.org>
+  revision [2250]
+  Use proper integer types in the code, patch by Pavel Vymetalek <pvymetalek@seznam.cz>.
+  trunk/src/vtx/ay8912.c        |    8 ++++----
+  trunk/src/vtx/ayemu_8912.h    |    3 ++-
+  trunk/src/vtx/ayemu_vtxfile.h |    3 ++-
+  trunk/src/vtx/vtxfile.c       |   10 ++++++++--
+  4 files changed, 16 insertions(+), 8 deletions(-)
+
+
 2007-05-16 20:00:14 +0000  Ralf Ertzinger <ralf@skytale.net>
   revision [2248]
   
--- a/configure.ac	Fri May 18 03:41:05 2007 -0700
+++ b/configure.ac	Fri May 18 10:42:29 2007 -0700
@@ -1208,43 +1208,56 @@
 
 AC_ARG_ENABLE(filewriter_mp3,
     [  --disable-filewriter_mp3    disable FileWriter MP3 output part (default=enabled) ],
-    [enable_filewriter_mp3=$enableval],
-    [enable_filewriter_mp3=yes]
+    [enable_filewriter_mp3=$enableval], [enable_filewriter_mp3=yes]
 )
 
 if test "$enable_filewriter_mp3" = "yes"; then
    AC_CHECK_LIB(mp3lame -lm, lame_init, [have_lame=yes], [have_lame=no])
    if test "$have_lame" = yes; then
       AC_DEFINE(FILEWRITER_MP3, 1, [Define if Vorbis output part should be built])
+	  FILEWRITER_LIBS+=" -lmp3lame"
    fi
 fi
 
 
 AC_ARG_ENABLE(filewriter_vorbis,
     [  --disable-filewriter_vorbis disable FileWriter Vorbis output part (default=enabled) ],
-    [enable_filewriter_vorbis=$enableval],
-    [enable_filewriter_vorbis=yes]
+    [enable_filewriter_vorbis=$enableval], [enable_filewriter_vorbis=yes]
 )
 
 if test "$enable_filewriter_vorbis" = "yes"; then
    PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0],
-   [AC_DEFINE(FILEWRITER_VORBIS, 1, [Define if Vorbis output part should be built] )],
-   [enable_filewriter_vorbis="no"])
+   [have_vorbisenc=yes], [have_vorbisenc=no])
+   if test "$have_vorbisenc" = yes; then
+      AC_DEFINE(FILEWRITER_VORBIS, 1, [Define if Vorbis output part should be built])
+      FILEWRITER_LIBS+=" -lvorbisenc"
+   fi
 fi
 
 
 AC_ARG_ENABLE(filewriter_flac,
     [  --disable-filewriter_flac   disable FileWriter FLAC output part (default=enabled) ],
-    [enable_filewriter_flac=$enableval],
-    [enable_filewriter_flac=yes]
+    [enable_filewriter_flac=$enableval], [enable_filewriter_flac=yes]
 )
 
 if test "$enable_filewriter_flac" = "yes"; then
    PKG_CHECK_MODULES(FLAC, [flac >= 1.1.2],
-   [AC_DEFINE(FILEWRITER_FLAC, 1, [Define if FLAC output part should be built] )],
-   [enable_filewriter_flac="no"])
+      [have_writer_flac=yes], [have_writer_flac=no]
+   )
+   if test "$have_writer_flac" = yes; then
+      AC_DEFINE(FILEWRITER_FLAC, 1, [Define if FLAC output part should be built])
+	  FILEWRITER_LIBS+=" -lFLAC"
+   fi
 fi
 
+if test "$enable_filewriter" != yes; then
+   have_lame=no
+   have_vorbisenc=no
+   have_writer_flac=no
+   FILEWRITER_LIBS=""
+fi
+AC_SUBST(FILEWRITER_LIBS)
+
 dnl *** End of all plugin checks ***
 
 AC_SUBST(ARCH_DEFINES)
@@ -1332,9 +1345,9 @@
 echo "  PulseAudio sound server (pulse_audio):  $have_pulse"
 echo "  Mac OS X sound support (CoreAudio):     $have_coreaudio"
 echo "  FileWriter:                             $enable_filewriter"
-echo "    -> FileWriter MP3 output part:        $enable_filewriter_mp3"
-echo "    -> FileWriter Vorbis output part:     $enable_filewriter_vorbis"
-echo "    -> FileWriter FLAC output part:       $enable_filewriter_flac"
+echo "    -> FileWriter MP3 output part:        $have_lame"
+echo "    -> FileWriter Vorbis output part:     $have_vorbisenc"
+echo "    -> FileWriter FLAC output part:       $have_writer_flac"
 echo "  Null Audio output (null):               yes"
 echo
 echo "  Input Plugins"
--- a/mk/rules.mk.in	Fri May 18 03:41:05 2007 -0700
+++ b/mk/rules.mk.in	Fri May 18 10:42:29 2007 -0700
@@ -360,4 +360,4 @@
 IMLIB2_CFLAGS ?= @IMLIB2_CFLAGS@
 IMLIB2_LIBS ?= @IMLIB2_LIBS@
 SIMD_CFLAGS ?= @SIMD_CFLAGS@
-
+FILEWRITER_LIBS ?= @FILEWRITER_LIBS@
--- a/src/filewriter/Makefile	Fri May 18 03:41:05 2007 -0700
+++ b/src/filewriter/Makefile	Fri May 18 10:42:29 2007 -0700
@@ -5,7 +5,7 @@
 
 LIBDIR = $(plugindir)/$(OUTPUT_PLUGIN_DIR)
 
-LIBADD = $(GTK_LIBS) -lmp3lame -lvorbisenc -lFLAC
+LIBADD = $(GTK_LIBS) ${FILEWRITER_LIBS}
 SOURCES = filewriter.c wav.c mp3.c vorbis.c flac.c
 
 OBJECTS = ${SOURCES:.c=.o}