2010-08-19 06:01:43 +00:00
|
|
|
AC_ARG_ENABLE(flac,
|
|
|
|
[ --disable-flac disable flac support],
|
|
|
|
)
|
|
|
|
HAVE_FLAC=no
|
|
|
|
if test "x$enable_flac" != "xno"; then
|
2011-07-08 18:35:04 +00:00
|
|
|
if test "x$PKG_CONFIG" != "x"; then
|
2011-07-09 19:59:49 +00:00
|
|
|
PKG_CHECK_MODULES([FLAC], [flac], HAVE_FLAC=yes, HAVE_FLAC=no)
|
2011-07-08 18:35:04 +00:00
|
|
|
else
|
|
|
|
AM_PATH_LIBFLAC(HAVE_FLAC=yes, HAVE_FLAC=no)
|
2011-07-09 19:59:49 +00:00
|
|
|
fi
|
|
|
|
if test "x$HAVE_FLAC" = xyes; then
|
|
|
|
AC_DEFINE(HAVE_FLAC, 1, [define this if you have flac libs])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_FLAC, test "x$HAVE_FLAC" = "xyes")
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(wildmidi,
|
|
|
|
[ --disable-wildmidi disable libWildMidi support],
|
|
|
|
)
|
|
|
|
HAVE_WILDMIDI=no
|
|
|
|
WM_LIBS=
|
|
|
|
if test "x$enable_wildmidi" != "xno"; then
|
|
|
|
AC_CHECK_LIB(WildMidi, WildMidi_GetString, HAVE_WILDMIDI=yes, HAVE_WILDMIDI=no)
|
|
|
|
if test "x$HAVE_WILDMIDI" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(wildmidi_lib.h, HAVE_WILDMIDI=yes, HAVE_WILDMIDI=no)
|
|
|
|
if test "x$HAVE_WILDMIDI" = "xyes"; then
|
|
|
|
WM_LIBS="-lWildMidi"
|
|
|
|
AC_DEFINE(HAVE_WILDMIDI, 1, [Define if you have WildMidi])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(WM_LIBS)
|
|
|
|
AM_CONDITIONAL(HAVE_MIDI, test "x$HAVE_WILDMIDI" = "xyes")
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(vorbis,
|
|
|
|
[ --disable-vorbis disable ogg vorbis support],
|
|
|
|
)
|
|
|
|
HAVE_VORBIS=no
|
|
|
|
if test "x$enable_vorbis" != "xno"; then
|
|
|
|
XIPH_PATH_OGG(HAVE_OGG=yes, HAVE_OGG=no)
|
|
|
|
if test "x$HAVE_OGG" = xyes; then
|
|
|
|
XIPH_PATH_VORBIS(HAVE_VORBIS=yes, HAVE_VORBIS=no)
|
|
|
|
if test "x$HAVE_VORBIS" = xyes; then
|
|
|
|
AC_DEFINE(HAVE_VORBIS, 1, [define this if you have ogg/vorbis libs])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_VORBIS, test "x$HAVE_VORBIS" = "xyes")
|
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(zlib, [ --disable-zlib disable zlib support])
|
|
|
|
HAVE_ZLIB=no
|
|
|
|
Z_LIBS=""
|
|
|
|
if test "x$enable_zlib" != "xno"; then
|
|
|
|
dnl Check for working -lz
|
|
|
|
dnl Note - must have gztell *and* gzgets in -lz *and* zlib.h
|
|
|
|
AC_CHECK_LIB(z, gztell, HAVE_ZLIB=yes, HAVE_ZLIB=no, [$LIBS])
|
|
|
|
if test "x$HAVE_ZLIB" = "xyes"; then
|
|
|
|
AC_CHECK_LIB(z, gzgets, HAVE_ZLIB=yes, HAVE_ZLIB=no, [$LIBS])
|
|
|
|
if test "x$HAVE_ZLIB" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(zlib.h, HAVE_ZLIB=yes, HAVE_ZLIB=no)
|
|
|
|
if test "x$HAVE_ZLIB" = "xyes"; then
|
|
|
|
Z_LIBS="-lz"
|
2011-07-29 07:51:52 +00:00
|
|
|
AC_DEFINE(HAVE_ZLIB, 1, [Define if you have zlib])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(Z_LIBS)
|
|
|
|
AM_CONDITIONAL(HAVE_ZLIB, test "$HAVE_ZLIB" = "yes")
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(png,
|
|
|
|
[ --disable-png disable png support],
|
|
|
|
)
|
|
|
|
HAVE_PNG=no
|
|
|
|
PNG_LIBS=""
|
|
|
|
if test "x$enable_png" != "xno"; then
|
|
|
|
if test "x$PKG_CONFIG" != "x"; then
|
|
|
|
PKG_CHECK_MODULES([PNG], [libpng], HAVE_PNG=yes, HAVE_PNG=no)
|
|
|
|
else
|
|
|
|
AC_CHECK_LIB(png, png_set_read_fn, HAVE_PNG=yes, HAVE_PNG=no, [$LIBS])
|
|
|
|
if test "x$HAVE_PNG" = "xyes"; then
|
2011-08-25 14:04:02 +00:00
|
|
|
AC_CHECK_HEADER(png.h, HAVE_PNG=yes PNG_LIBS="-lpng", HAVE_PNG=no)
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(PNG_LIBS)
|
2010-12-20 12:31:41 +00:00
|
|
|
if test "x$HAVE_PNG" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_PNG, 1, [Define if you have libpng])
|
|
|
|
fi
|