?? configure.ac
字號:
fi if test "$speex" = "detect"; then speex=$lib fifiAC_MSG_CHECKING(for MPEG audio support)AC_ARG_WITH( mpeg, [ --with-mpeg=yes,no compile with MPEG Audio support (default: yes)], mpeg="$withval", mpeg="detect")if test "$mpeg" = "no"; then AC_MSG_RESULT(no)else AC_CHECK_LIB(mad, mad_decoder_init, [lib=yes], [lib=no]) if test "$lib" = "yes"; then mad_LIBS="-lmad" AC_DEFINE([HAVE_MPEG], [1], [Defined if compile with MPEG Audio support]) fi if test "$lib" = "no" -a "$mpeg" = "yes"; then AC_MSG_ERROR(You do not appear to have the MAD library installed. Grab it from http://www.underbit.com/products/mad/) fi if test "$mpeg" = "detect"; then mpeg=$lib fi if test "$mpeg" = "yes"; then AC_MSG_CHECKING(whether to compile with statistical MPEG frame recognition) AC_ARG_WITH( mpegstatrec, [ --with-mpegstatrec=yes,no compile with statistical MPEG frame recognition (default: no)], mpegstatrec="$withval", mpegstatrec="detect") if test "$mpegstatrec" = "yes"; then AC_MSG_RESULT(yes) AC_DEFINE([MPEG_STATREC], [1], [Defined if compile with statistical MPEG frame recognition]) else AC_MSG_RESULT(no) fi fifiAC_MSG_CHECKING(for MOD audio support)AC_ARG_WITH( mod, [ --with-mod=yes,no compile with MOD Audio support (default: yes)], mod="$withval", mod="detect")if test "$mod" = "no"; then AC_MSG_RESULT(no)else AC_CHECK_LIB(modplug, ModPlug_Load, [lib=yes], [lib=no], [-lstdc++ -lm]) if test "$lib" = "yes"; then mod_LIBS=`pkg-config --libs libmodplug` AC_DEFINE([HAVE_MOD], [1], [Defined if compile with MOD Audio support]) fi if test "$lib" = "no" -a "$mod" = "yes"; then AC_MSG_ERROR(You do not appear to have the libmodplug library installed. Grab it from http://modplug-xmms.sourceforge.net/) fi if test "$mod" = "detect"; then mod=$lib fi if test "$mod" = "yes"; then AC_MSG_CHECKING(for Module info) AC_MSG_CHECKING(whether libmodplug version >= 0.8) if pkg-config --exists 'libmodplug >= 0.8'; then AC_MSG_RESULT(yes) AC_DEFINE([HAVE_MOD_INFO], [1], [Defined if version(libmodplug) >= 0.8]) else AC_MSG_RESULT(no) fi fifiAC_MSG_CHECKING(for Musepack support)AC_ARG_WITH( mpc, [ --with-mpc=yes,no compile with Musepack support (default: yes)], mpc="$withval", mpc="detect")if test "$mpc" = "no"; then AC_MSG_RESULT(no)else AC_CHECK_LIB(mpcdec, mpc_streaminfo_init, [lib=yes], [lib=no], [-lstdc++]) if test "$lib" = "yes"; then mpc_LIBS="-lmpcdec -lstdc++" AC_DEFINE([HAVE_MPC], [1], [Defined if compile with Musepack support]) fi if test "$lib" = "no" -a "$mpc" = "yes"; then AC_MSG_ERROR(You do not appear to have the Musepack decoder library (libmpcdec) installed. Grab it from http://www.musepack.net) fi if test "$mpc" = "detect"; then mpc=$lib fifiAC_MSG_CHECKING(for Monkey's Audio Codec support)AC_ARG_WITH( mac, [ --with-mac=yes,no compile with Monkey's Audio Codec support (default: yes)], mac="$withval", mac="detect")if test "$mac" = "no"; then AC_MSG_RESULT(no) mac_LIBS="-lstdc++"else AC_CHECK_LIB(mac, CreateIAPEDecompress, [lib=yes], [lib=no], [-lstdc++]) if test "$lib" = "yes"; then mac_LIBS="-lmac -lstdc++" AC_DEFINE([HAVE_MAC], [1], [Defined if compile with Monkey's Audio Codec support]) else mac_LIBS="-lstdc++" fi if test "$lib" = "no" -a "$mac" = "yes"; then AC_MSG_ERROR(You do not appear to have the Monkey's Audio Codec decoder library installed. Grab it from http://sourceforge.net/projects/mac-port/) fi if test "$mac" = "detect"; then mac=$lib fifiAC_MSG_CHECKING(for metadata support)AC_ARG_WITH( metadata, [ --with-metadata=yes,no compile with metadata support (default: yes)], metadata="$withval", metadata="detect")if test "$metadata" = "no"; then AC_MSG_RESULT(no)else AC_MSG_CHECKING(whether taglib >= 1.4 is present) if `pkg-config --exists 'taglib >= 1.4'`; then lib="yes" else lib="no" AC_MSG_RESULT(no) fi if test "$lib" = "yes"; then taglib_CFLAGS=`pkg-config --cflags taglib` taglib_LIBS=`pkg-config --libs taglib` AC_DEFINE([HAVE_TAGLIB], [1], [Defined if compile with metadata support]) AC_MSG_RESULT(yes) fi if test "$lib" = "no" -a "$metadata" = "yes"; then AC_MSG_ERROR(You do not appear to have the taglib library installed or it is too old. Grab it from http://developer.kde.org/~wheeler/taglib) fi if test "$metadata" = "detect"; then metadata=$lib fi if test "$metadata" = "yes"; then AC_MSG_CHECKING(for metadata edit support) AC_ARG_WITH( metaedit, [ --with-metaedit=yes,no compile with metadata edit support (default: no)], metaedit="$withval", metaedit="detect") if test "$metaedit" = "yes"; then AC_DEFINE([HAVE_METAEDIT], [1], [Defined if compile with metadata edit support]) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi fifiAC_MSG_CHECKING(for LADSPA plugin support)AC_ARG_WITH( ladspa, [ --with-ladspa=yes,no compile with LADSPA plugin support (default: yes)], ladspa="$withval", ladspa="detect")if test "$ladspa" = "no"; then AC_MSG_RESULT(no)else AC_CHECK_LIB(lrdf, lrdf_init, [lib=yes], [lib=no]) if test "$lib" = "yes"; then AC_MSG_CHECKING(whether liblrdf version >= 0.4.0) if `pkg-config --exists 'lrdf >= 0.4.0'`; then AC_MSG_RESULT(yes) lrdf_LIBS=`pkg-config --libs lrdf` AC_DEFINE([HAVE_LADSPA], [1], [Defined if compile with LADSPA plugin support]) else AC_MSG_RESULT(no) lib="no" fi fi if test "$lib" = "no" -a "$ladspa" = "yes"; then AC_MSG_ERROR(You do not appear to have the LRDF library installed (needed for LADSPA support). Grab it from http://sourceforge.net/projects/lrdf/) fi if test "$ladspa" = "detect"; then ladspa=$lib fifiAC_MSG_CHECKING(for CDDB support)AC_ARG_WITH( cddb, [ --with-cddb=yes,no compile with CDDB support (default: yes)], cddb="$withval", cddb="detect")if test "$cddb" = "no"; then AC_MSG_RESULT(no)else AC_CHECK_LIB(cddb, cddb_new, [lib=yes], [lib=no]) if test "$lib" = "yes"; then AC_MSG_CHECKING(whether libcddb version >= 1.2.1) if `pkg-config --exists 'libcddb >= 1.2.1'`; then AC_MSG_RESULT(yes) cddb_LIBS=`pkg-config --libs libcddb` AC_DEFINE([HAVE_CDDB], [1], [Defined if compile with CDDB support]) else AC_MSG_RESULT(no) lib="no" fi fi if test "$lib" = "no" -a "$cddb" = "yes"; then AC_MSG_ERROR(CDDB library not found or too old (version < 1.2.1). Grab it from http://libcddb.sf.net/) fi if test "$cddb" = "detect"; then cddb=$lib fifiAC_MSG_CHECKING(for iRiver iFP support)AC_ARG_WITH( ifp, [ --with-ifp=yes,no compile with iRiver iFP driver support (default: yes)], ifp="$withval", ifp="detect")if test "$ifp" = "no"; then AC_MSG_RESULT(no)else AC_CHECK_LIB(usb, usb_init, [lib=yes], [lib=no]) if test "$lib" = "yes"; then AC_CHECK_LIB(ifp, ifp_find_device, [lib=yes], [lib=no]) if test "$lib" = "yes"; then ifp_LIBS="-lifp -lusb" AC_DEFINE([HAVE_IFP], [1], [Defined if compile with iRiver iFP driver support]) fi if test "$lib" = "no" -a "$ifp" = "yes"; then AC_MSG_ERROR(You do not appear to have the iFP driver library installed. Grab it from http://ifp-driver.sourceforge.net/) fi fi if test "$ifp" = "detect"; then ifp=$lib fifiAC_MSG_CHECKING(for Systray support)AC_ARG_WITH( systray, [ --with-systray=yes,no compile with Systray support (default: yes)], systray="$withval", systray="detect")if test "$systray" = "no"; then AC_MSG_RESULT(no)else AC_MSG_CHECKING(whether GTK+ version >= 2.10) if pkg-config --exists 'gtk+-2.0 >= 2.10'; then AC_MSG_RESULT(yes) AC_DEFINE([HAVE_SYSTRAY], [1], [Defined if version(GTK+-2.0) >= 2.10]) lib="yes" else AC_MSG_RESULT(no) lib="no" fi if test "$lib" = "no" -a "$systray" = "yes"; then AC_MSG_ERROR(You need GTK+ version 2.10 or higher for systray support.) fi if test "$systray" = "detect"; then systray=$lib fifi# Compiler and linker variablesAQUALUNG_SKINDIR="-DAQUALUNG_SKINDIR=\\\"$datadir/aqualung/skin\\\""AQUALUNG_LOCALEDIR="-DAQUALUNG_LOCALEDIR=\\\"$datadir/locale\\\""AQUALUNG_DATADIR="-DAQUALUNG_DATADIR=\\\"$datadir/aqualung\\\""CFLAGS="$BUILD_CFLAGS -Wall $PLATFORM_CFLAGS $AQUALUNG_SKINDIR $AQUALUNG_LOCALEDIR $AQUALUNG_DATADIR -D_GNU_SOURCE"CXXFLAGS="$CFLAGS"CPPFLAGS="$gtk_CFLAGS $glib_CFLAGS $xml_CFLAGS $alsa_CFLAGS $jack_CFLAGS $taglib_CFLAGS"LIBS="decoder/libdecoder.a $gtk_LIBS $glib_LIBS $xml_LIBS $jack_LIBS $lrdf_LIBS $src_LIBS $alsa_LIBS $sndfile_LIBS $flac_LIBS $ogg_LIBS $speex_LIBS $mad_LIBS $taglib_LIBS $mod_LIBS $mpc_LIBS $mac_LIBS $cddb_LIBS $ifp_LIBS $PLATFORM_LIBS $z_LIBS $bz2_LIBS"AC_OUTPUT([Makefile \ doc/Makefile \ skin/Makefile \ skin/dark/Makefile \ skin/default/Makefile \ skin/metal/Makefile \ skin/ocean/Makefile \ skin/plain/Makefile \ skin/woody/Makefile \ src/Makefile \ src/decoder/Makefile \ src/img/Makefile \ src/po/Makefile])echo "----------------------------------------------------------------------"echo " Configuration summary"echo " ====================="echoecho " Build type / target platform : $buildtype / $platform"echoecho " File format support:"echo " sndfile (WAV, AIFF, etc.) : $sndfile"echo " Free Lossless Audio Codec (FLAC) : $flac"echo " Ogg Vorbis : $ogg"echo " Ogg Speex : $speex"echo " MPEG Audio (MPEG 1-2.5 Layer I-III) : $mpeg"echo " MOD Audio (MOD, S3M, XM, IT, etc.) : $mod"echo " Musepack : $mpc"echo " Monkey's Audio Codec : $mac"echo " Metadata (ID3, APE, Ogg comments) : $metadata"echoecho " Output driver support:"echo " OSS Audio : $oss"echo " ALSA Audio : $alsa"echo " JACK Audio Server : $jack"echo " Win32 Sound API : $win32"echoecho " Internal Sample Rate Converter support : $src"echo " LADSPA plugin support : $ladspa"echo " CDDB support : $cddb"echo " iRiver iFP driver support : $ifp"echo " Systray support : $systray"echo "----------------------------------------------------------------------"if test "$metaedit" = "yes"; thenechoecho " WARNING: compiling with metadata edit support is currently DANGEROUS"echo " because of serious bugs in the underlying TagLib library. Using this"echo " feature may result in DAMAGED or CORRUPT files. Compile with metadata"echo " edit support only if you intend to debug this feature."echofi
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -