diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-24 04:04:35 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-24 04:04:35 +0000 |
commit | 3b2f4b4980071371055afe55509a50c7711bb196 (patch) | |
tree | 67fa4377dc3c643e5a89fdcfef81b88993ea67f0 /configure.ac | |
parent | f32cc27ddec1b04a5b43d25488b94e8c24617fec (diff) | |
download | mpd-3b2f4b4980071371055afe55509a50c7711bb196.tar.gz mpd-3b2f4b4980071371055afe55509a50c7711bb196.tar.xz mpd-3b2f4b4980071371055afe55509a50c7711bb196.zip |
check for mad and id3tag headers
git-svn-id: https://svn.musicpd.org/mpd/trunk@448 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index cf1ca5a85..9c695a254 100644 --- a/configure.ac +++ b/configure.ac @@ -177,10 +177,15 @@ if test x$enable_id3 = xyes; then CFLAGS="$CFLAGS $MPD_CFLAGS $ID3TAG_CFLAGS" LIBS="$LIBS $MPD_LIBS $ID3TAG_LIBS" CPPFLAGS=$CFLAGS - AC_CHECK_LIB(id3tag,id3_file_open,[ID3_LIB="$ID3TAG_LIBS"; - MPD_CFLAGS="$MPD_CFLAGS $ID3TAG_CFLAGS"; - use_libid3tag=yes], + AC_CHECK_HEADERS(id3tag.h,use_libid3tag=yes, [use_libid3tag=no;use_mpd_id3tag=yes]) + if test x$use_libid3tag = xyes; then + AC_CHECK_LIB(id3tag,id3_file_open, + [ID3_LIB="$ID3TAG_LIBS"; + MPD_CFLAGS="$MPD_CFLAGS $ID3TAG_CFLAGS"; + use_libid3tag=yes], + [use_libid3tag=no;use_mpd_id3tag=yes]) + fi CFLAGS=$oldcflags LIBS=$oldlibs CPPFLAGS=$oldcppflags @@ -224,9 +229,13 @@ if test x$enable_mp3 = xyes; then CFLAGS="$CFLAGS $MPD_CFLAGS $MAD_CFLAGS" LIBS="$LIBS $MPD_LIBS $MAD_LIBS" CPPFLAGS=$CFLAGS - AC_CHECK_LIB(mad,mad_stream_init,[MAD_LIB="$MAD_LIBS"; - MPD_CFLAGS="$MPD_CFLAGS $MAD_CFLAGS";use_libmad=yes], - [use_libmad=no;use_mpd_mad=yes]) + AC_CHECK_HEADERS(mad.h,use_libmad=yes, + [use_libmad=no;use_mpd_mad=yes]) + if test x$use_libmad = xyes; then + AC_CHECK_LIB(mad,mad_stream_init,[MAD_LIB="$MAD_LIBS"; + MPD_CFLAGS="$MPD_CFLAGS $MAD_CFLAGS"; + use_libmad=yes],[use_libmad=no;use_mpd_mad=yes]) + fi CFLAGS=$oldcflags LIBS=$oldlibs CPPFLAGS=$oldcppflags |