Mercurial > audlegacy-plugins
changeset 2359:b3475063c000
little help to yaz: build-time check for MAD_F_FRACBITS == __AUDACIOUS_ASSUMED_MAD_F_FRACBITS__
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Mon, 04 Feb 2008 23:12:46 +0300 |
parents | 19b670117a04 |
children | ead24454f4b7 |
files | configure.ac m4/libmad.m4 |
diffstat | 2 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Tue Feb 05 01:21:39 2008 +0900 +++ b/configure.ac Mon Feb 04 23:12:46 2008 +0300 @@ -377,6 +377,28 @@ fi if test "$enable_mp3" = "yes"; then + AC_MSG_CHECKING(mad.h suitability) + ac_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $MAD_CFLAGS $AUDACIOUS_CFLAGS" + AC_TRY_RUN( + [ + #include <mad.h> + #include <audacious/plugin.h> + int main() + { + return (MAD_F_FRACBITS == __AUDACIOUS_ASSUMED_MAD_F_FRACBITS__) ? 0 : 1; + } + ], + [AC_MSG_RESULT(yes)], + [ + AC_MSG_RESULT(no) + enable_mp3=no + ], + ) + CFLAGS="$ac_save_CFLAGS" +fi + +if test "$enable_mp3" = "yes"; then INPUT_PLUGINS="$INPUT_PLUGINS madplug" fi