mirror of
https://github.com/LMMS/lmms.git
synced 2026-02-18 23:26:23 -05:00
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@23 0778d3d1-df1d-0410-868b-ea421aaaa00d
638 lines
21 KiB
Plaintext
638 lines
21 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.50)
|
|
AC_INIT(lmms, 0.1.1-cvs20051106, tobydox/at/users.sourceforge.net)
|
|
AM_INIT_AUTOMAKE(lmms, 0.1.1-cvs20051106)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CXX
|
|
AC_PROG_CC
|
|
AC_PROG_LN_S
|
|
AC_PROG_GCC_TRADITIONAL
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
AC_PATH_XTRA
|
|
gw_CHECK_QT
|
|
|
|
|
|
# checks for header files.
|
|
AC_HEADER_STDC
|
|
AC_HEADER_SYS_WAIT
|
|
AC_CHECK_HEADERS([fcntl.h memory.h string.h sys/ioctl.h unistd.h stdlib.h dlfcn.h ladspa.h])
|
|
|
|
# checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
AC_TYPE_SIZE_T
|
|
AC_HEADER_TIME
|
|
AC_STRUCT_TM
|
|
AC_C_VOLATILE
|
|
AC_C_BIGENDIAN
|
|
|
|
# checks for library functions.
|
|
AC_FUNC_ALLOCA
|
|
AC_FUNC_MALLOC
|
|
AC_FUNC_MEMCMP
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_CHECK_FUNCS([usleep])
|
|
|
|
|
|
# search for include-path of SDL (just for supporting the FreeBSD-guys.... ;-)
|
|
for i in SDL SDL10 SDL11 SDL12 ; do
|
|
FOUND=""
|
|
AC_CHECK_HEADER($i/SDL.h, FOUND="true")
|
|
if test "$FOUND" = "true" ; then
|
|
SDL_INC_PATH="$i"
|
|
break
|
|
fi
|
|
done
|
|
|
|
|
|
AH_TEMPLATE(SDL_SDL_H, [Define to location of SDL.h])
|
|
AH_TEMPLATE(SDL_SDL_AUDIO_H, [Define to location of SDL_audio.h])
|
|
AH_TEMPLATE(SDL_SDL_SOUND_H, [Define to location of SDL_sound.h])
|
|
|
|
OLD_LIBS="$LIBS"
|
|
LIBS="$LIBS -lpthread"
|
|
|
|
# check for SDL-lib
|
|
AC_ARG_WITH(sdl,
|
|
AS_HELP_STRING([--without-sdl],
|
|
[disable support for SDL-audio-output]), ,
|
|
[ with_sdlaudio=yes ])
|
|
AH_TEMPLATE(HAVE_SDL_SDL_AUDIO_H, [Define to 1 if you have the <$SDL_INC_PATH/SDL_audio.h> header file.])
|
|
if test "x$with_sdlaudio" = "xyes" -a ! -z "$SDL_INC_PATH"; then
|
|
AC_CHECK_HEADER($SDL_INC_PATH/SDL_audio.h, HAVE_SDL_SDL_AUDIO_H="true")
|
|
AC_CHECK_LIB([SDL], [SDL_OpenAudio], HAVE_LIBSDL="true", HAVE_SDL_SDL_AUDIO_H="")
|
|
fi
|
|
if test ! -z "$HAVE_SDL_SDL_AUDIO_H" ; then
|
|
AC_DEFINE_UNQUOTED(SDL_SDL_H, <$SDL_INC_PATH/SDL.h>)
|
|
AC_DEFINE_UNQUOTED(SDL_SDL_AUDIO_H, <$SDL_INC_PATH/SDL_audio.h>)
|
|
AC_DEFINE(HAVE_SDL_SDL_AUDIO_H)
|
|
fi
|
|
AM_CONDITIONAL(HAVE_LIBSDL, test ! -z "$HAVE_SDL_SDL_AUDIO_H")
|
|
|
|
|
|
# check for SDL_sound-lib
|
|
AC_ARG_WITH(sdlsound,
|
|
AS_HELP_STRING([--without-sdlsound],
|
|
[disable support for reading samples via SDL_sound]), ,
|
|
[ with_sdlsound=yes ])
|
|
AH_TEMPLATE(HAVE_SDL_SDL_SOUND_H, [Define to 1 if you have the <$SDL_INCL_PATH/SDL_sound.h> header file.])
|
|
if test "x$with_sdlsound" = "xyes" -a ! -z "$SDL_INC_PATH"; then
|
|
AC_CHECK_HEADER($SDL_INC_PATH/SDL_sound.h, HAVE_SDL_SDL_SOUND_H="true")
|
|
AC_CHECK_LIB([SDL_sound], [Sound_Init], HAVE_LIBSDL_SOUND="true", HAVE_SDL_SDL_SOUND_H="")
|
|
fi
|
|
if test ! -z "$HAVE_SDL_SDL_SOUND_H" ; then
|
|
AC_DEFINE_UNQUOTED(SDL_SDL_SOUND_H, <$SDL_INC_PATH/SDL_sound.h>)
|
|
AC_DEFINE(HAVE_SDL_SDL_SOUND_H)
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_LIBSDL_SOUND, test ! -z "$HAVE_LIBSDL_SOUND")
|
|
|
|
LIBS="$OLD_LIBS"
|
|
|
|
|
|
# check for ALSA-lib
|
|
AC_ARG_WITH(asound,
|
|
AS_HELP_STRING([--without-asound],
|
|
[disable support for ALSA-sound-output]), ,
|
|
[ with_asound=yes ])
|
|
AH_TEMPLATE(HAVE_ALSA_ASOUNDLIB_H, [Define to 1 if you have the <alsa/asoundlib.h> header file.])
|
|
if test "x$with_asound" = "xyes" ; then
|
|
AC_CHECK_HEADER(alsa/asoundlib.h, HAVE_ALSA_ASOUNDLIB_H="true")
|
|
AC_CHECK_LIB([asound], [snd_pcm_open], HAVE_LIBASOUND="true", HAVE_ALSA_ASOUNDLIB_H="")
|
|
fi
|
|
if test ! -z "$HAVE_ALSA_ASOUNDLIB_H" ; then
|
|
AC_DEFINE(HAVE_ALSA_ASOUNDLIB_H)
|
|
fi
|
|
AM_CONDITIONAL(HAVE_LIBASOUND, test ! -z "$HAVE_ALSA_ASOUNDLIB_H")
|
|
|
|
|
|
# check for OSS
|
|
AC_ARG_WITH(oss,
|
|
AS_HELP_STRING([--without-oss],
|
|
[disable support for OSS-sound-output]), ,
|
|
[ with_oss=yes ])
|
|
AH_TEMPLATE(HAVE_SYS_SOUNDCARD_H, [Define to 1 if you have the <sys/soundcard.h> header file.])
|
|
AH_TEMPLATE(HAVE_SOUNDCARD_H, [Define to 1 if you have the <soundcard.h> header file.])
|
|
if test "x$with_oss" = "xyes" ; then
|
|
AC_CHECK_HEADER(sys/soundcard.h, HAVE_SYS_SOUNDCARD_H="true")
|
|
AC_CHECK_HEADER(soundcard.h, HAVE_SOUNDCARD_H="true")
|
|
fi
|
|
if test ! -z "$HAVE_SYS_SOUNDCARD_H" ; then
|
|
AC_DEFINE(HAVE_SYS_SOUNDCARD_H)
|
|
fi
|
|
if test ! -z "$HAVE_SOUNDCARD_H" ; then
|
|
AC_DEFINE(HAVE_SOUNDCARD_H)
|
|
fi
|
|
|
|
|
|
# check for JACK
|
|
AC_ARG_WITH(jack,
|
|
AS_HELP_STRING([--without-jack],
|
|
[disable support for JACK-transport]), ,
|
|
[ with_jack=yes ])
|
|
AH_TEMPLATE(HAVE_JACK_JACK_H, [Define to 1 if you have the <jack/jack.h> header file.])
|
|
AH_TEMPLATE(OLD_JACK, [Define to 1 if your JACK-version doesnt know about jack_client_open() etc.])
|
|
if test "x$with_jack" = "xyes" ; then
|
|
AC_CHECK_HEADER(jack/jack.h, HAVE_JACK_JACK_H="true")
|
|
AC_CHECK_LIB([jack], [jack_client_new], HAVE_LIBJACK="true", HAVE_JACK_JACK_H="")
|
|
AC_CHECK_LIB([jack], [jack_client_open], JACK_CLIENT_OPEN="true")
|
|
if test -z "$JACK_CLIENT_OPEN" ; then
|
|
AC_DEFINE(OLD_JACK)
|
|
fi
|
|
fi
|
|
if test ! -z "$HAVE_JACK_JACK_H" ; then
|
|
AC_DEFINE(HAVE_JACK_JACK_H)
|
|
fi
|
|
AM_CONDITIONAL(HAVE_LIBJACK, test ! -z "$HAVE_JACK_JACK_H")
|
|
|
|
|
|
# check for VST-backends (currently only libfst is supported)
|
|
AC_ARG_WITH(vst,
|
|
AS_HELP_STRING([--without-vst],
|
|
[disable support for VST-plugin-hosting]), ,
|
|
[ with_vst=yes ])
|
|
AH_TEMPLATE(HAVE_VST_AEFFECTX_H, [Define to 1 if you have the <vst/aeffectx.h> header file.])
|
|
AH_TEMPLATE(HAVE_FST_H, [Define to 1 if you have the <fst.h> header file.])
|
|
if test "x$with_vst" = "xyes" ; then
|
|
AC_CHECK_HEADER(vst/aeffectx.h, HAVE_VST_AEFFECTX_H="true")
|
|
AC_CHECK_HEADER(fst.h, HAVE_FST_H="true")
|
|
AC_CHECK_LIB([fst], [fst_init], HAVE_LIBFST="true", HAVE_FST_H="")
|
|
fi
|
|
if test ! -z "$HAVE_VST_AEFFECTX_H" ; then
|
|
AC_DEFINE(HAVE_VST_AEFFECTX_H)
|
|
if test ! -z "$HAVE_FST_H" ; then
|
|
AC_DEFINE(HAVE_FST_H)
|
|
FST_OK_BUT_VST_HEADERS_MISSING=""
|
|
else
|
|
FST_OK_BUT_VST_HEADERS_MISSING="true"
|
|
fi
|
|
else
|
|
HAVE_FST_H=""
|
|
fi
|
|
AM_CONDITIONAL(HAVE_LIBFST, test ! -z "$HAVE_FST_H")
|
|
|
|
|
|
# check for vorbis-lib
|
|
AC_ARG_WITH(vorbis,
|
|
AS_HELP_STRING([--without-vorbis],
|
|
[disable support for exporting song to OGG-files]), ,
|
|
[ with_vorbis=yes ])
|
|
AH_TEMPLATE(HAVE_VORBIS_CODEC_H, [Define to 1 if you have the <vorbis/codec.h> header file.])
|
|
AH_TEMPLATE(HAVE_VORBIS_VORBISENC_H, [Define to 1 if you have the <vorbis/vorbisenc.h> header file.])
|
|
AH_TEMPLATE(HAVE_VORBIS_VORBISFILE_H, [Define to 1 if you have the <vorbis/vorbisfile.h> header file.])
|
|
if test "x$with_vorbis" = "xyes" ; then
|
|
OGG_SUPPORT="true"
|
|
AC_CHECK_HEADER(vorbis/codec.h, HAVE_VORBIS_CODEC_H="true",OGG_SUPPORT="")
|
|
AC_CHECK_HEADER(vorbis/vorbisenc.h, HAVE_VORBIS_VORBISENC_H="true",OGG_SUPPORT="")
|
|
AC_CHECK_HEADER(vorbis/vorbisfile.h, HAVE_VORBIS_VORBISFILE_H="true",OGG_SUPPORT="")
|
|
AC_CHECK_LIB([vorbis], [vorbis_analysis], HAVE_LIBVORBIS="true", OGG_SUPPORT="")
|
|
fi
|
|
if test ! -z "$OGG_SUPPORT" ; then
|
|
AC_DEFINE(HAVE_VORBIS_CODEC_H)
|
|
AC_DEFINE(HAVE_VORBIS_VORBISENC_H)
|
|
AC_DEFINE(HAVE_VORBIS_VORBISFILE_H)
|
|
fi
|
|
AM_CONDITIONAL(HAVE_LIBVORBIS, test ! -z "$OGG_SUPPORT")
|
|
|
|
|
|
# check for libsamplerate
|
|
AC_ARG_WITH(src,
|
|
AS_HELP_STRING([--without-libsrc],
|
|
[disable support for resampling via libsamplerate]), ,
|
|
[ with_libsrc=yes ])
|
|
AH_TEMPLATE(HAVE_SAMPLERATE_H, [Define to 1 if you have the <samplerate.h> header file.])
|
|
if test "x$with_libsrc" = "xyes" ; then
|
|
AC_CHECK_HEADER(samplerate.h, HAVE_SAMPLERATE_H="true")
|
|
AC_CHECK_LIB([samplerate], [src_simple], HAVE_LIBSRC="true", HAVE_SAMPLERATE_H="")
|
|
fi
|
|
if test ! -z "$HAVE_SAMPLERATE_H" ; then
|
|
AC_DEFINE(HAVE_SAMPLERATE_H)
|
|
fi
|
|
AM_CONDITIONAL(HAVE_LIBSRC, test ! -z "$HAVE_SAMPLERATE_H")
|
|
|
|
|
|
# libsndfile-stuff
|
|
AC_ARG_WITH(src,
|
|
AS_HELP_STRING([--without-libsf],
|
|
[disable support for importing files via libsndfile]), ,
|
|
[ with_libsf=yes ])
|
|
AH_TEMPLATE(HAVE_SNDFILE_H, [Define to 1 if you have the <sndfile.h> header file.])
|
|
if test "x$with_libsf" = "xyes" ; then
|
|
AC_CHECK_HEADER(sndfile.h, HAVE_SNDFILE_H="true")
|
|
AC_CHECK_LIB([sndfile], [sf_command], HAVE_LIBSF="true", HAVE_SNDFILE_H="")
|
|
AC_MSG_CHECKING([version of libsndfile])
|
|
AH_TEMPLATE(OLD_SNDFILE, [Define to 1 if libsndfile < 1.0.11])
|
|
OLD_LIBS="$LIBS"
|
|
LIBS="$LIBS -lsndfile"
|
|
AC_RUN_IFELSE([ #include <sndfile.h>
|
|
int main( void )
|
|
{
|
|
SF_INFO si;
|
|
( void )sf_open( "", SFM_READ, &si );
|
|
return 0;
|
|
}],
|
|
AC_MSG_RESULT([>= 1.0.11]),
|
|
AC_MSG_RESULT([< 1.0.11])
|
|
AC_DEFINE(OLD_SNDFILE)
|
|
)
|
|
LIBS="$OLD_LIBS"
|
|
fi
|
|
if test ! -z "$HAVE_SNDFILE_H" ; then
|
|
AC_DEFINE(HAVE_SNDFILE_H)
|
|
fi
|
|
AM_CONDITIONAL(HAVE_LIBSF, test ! -z "$HAVE_SNDFILE_H")
|
|
|
|
AC_ARG_WITH(nosmpdecs,
|
|
AS_HELP_STRING([--without-sample-decoders],
|
|
[force compiling LMMS even if libraries for sample-decoding were found]),
|
|
[ with_smpdecs=yes ])
|
|
|
|
if test -z "$HAVE_SND_FILE" -a -z "$HAVE_SDL_SDL_SOUND_H" -a -z "$OGG_SUPPORT" -a ! -z "$with_smpdecs"; then
|
|
AC_MSG_ERROR([*** neither libsndfile nor SDL_sound nor libvorbis (or according devel-files) were found which would make LMMS unable to load any samples, so please install at least one of the packages and try again! Use --without-sample-decoders to force compiling LMMS.])
|
|
fi
|
|
|
|
|
|
|
|
# check whether to disable surround-support
|
|
AC_MSG_CHECKING([whether to disable surround-support])
|
|
AH_TEMPLATE(DISABLE_SURROUND, [Define if you want to disable surround-support in LMMS.])
|
|
AC_ARG_ENABLE([surround],
|
|
AS_HELP_STRING([--disable-surround],
|
|
[compile LMMS without surround-support]),
|
|
DISABLE_SURROUND="yes")
|
|
if test "x$DISABLE_SURROUND" = "xyes" ; then
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(DISABLE_SURROUND)
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
fi
|
|
|
|
|
|
# check whether to enable high-quality sinc-resampling
|
|
AC_MSG_CHECKING([whether to enable high quality sinc-resampling])
|
|
AH_TEMPLATE(HQ_SINC, [Define if you want to enable high quality sinc-resampling.])
|
|
AC_ARG_ENABLE([hqsinc],
|
|
AS_HELP_STRING([--enable-hqsinc],
|
|
[enable high quality sinc-resampling]), HQ_SINC="yes")
|
|
if test "x$HQ_SINC" = "xyes" ; then
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HQ_SINC)
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
fi
|
|
|
|
|
|
# check whether compiler of current platform supports attribute regparm(x)
|
|
AC_MSG_CHECKING([whether we can use function-attribute regparm(x) on current platform])
|
|
AH_TEMPLATE(FASTCALL, [Define to any attribute, speeding up function-calls])
|
|
AC_RUN_IFELSE([ int __attribute__((regparm(3))) foo( int a, int b, int c )
|
|
{ return( a=b=c ); }
|
|
int __attribute__((regparm(3))) main( void )
|
|
{ return( foo(2,1,0) ); }],
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(FASTCALL, [__attribute__((regparm(3)))]),
|
|
AC_MSG_RESULT(no)
|
|
AC_DEFINE_UNQUOTED(FASTCALL,[])
|
|
)
|
|
|
|
|
|
AC_MSG_CHECKING([whether floorf is known by compiler])
|
|
AH_TEMPLATE(floorf, [Define to floor if floorf is not known])
|
|
AC_TRY_LINK([#include <math.h>], [ floorf ],
|
|
AC_MSG_RESULT(yes),
|
|
AC_MSG_RESULT([no - will use floor instead])
|
|
AC_DEFINE(floorf, floor)
|
|
)
|
|
|
|
AC_MSG_CHECKING([whether powf is known by compiler])
|
|
AH_TEMPLATE(powf, [Define to pow if powf is not known])
|
|
AC_TRY_LINK([#include <math.h>], [ powf ],
|
|
AC_MSG_RESULT(yes),
|
|
AC_MSG_RESULT([no - will use pow instead])
|
|
AC_DEFINE(powf, pow)
|
|
)
|
|
|
|
AC_MSG_CHECKING([whether fabsf is known by compiler])
|
|
AH_TEMPLATE(fabsf, [Define to pow if fabsf is not known])
|
|
AC_TRY_LINK([#include <math.h>], [ fabsf ],
|
|
AC_MSG_RESULT(yes),
|
|
AC_MSG_RESULT([no - will use fabs instead])
|
|
AC_DEFINE(fabsf, fabs)
|
|
)
|
|
|
|
AC_MSG_CHECKING([whether logf is known by compiler])
|
|
AH_TEMPLATE(logf, [Define to lof if logf is not known])
|
|
AC_TRY_LINK([#include <math.h>], [ logf ],
|
|
AC_MSG_RESULT(yes),
|
|
AC_MSG_RESULT([no - will use log instead])
|
|
AC_DEFINE(logf, log)
|
|
)
|
|
|
|
|
|
# check whether to enable debugging-code
|
|
AC_MSG_CHECKING([whether to enable debugging-code])
|
|
AH_TEMPLATE(LMMS_DEBUG, [Define if you want to disable debbuging-code in LMMS.])
|
|
AC_ARG_ENABLE([debug],
|
|
AS_HELP_STRING([--enable-debug],
|
|
[compile LMMS with additional debugging support]), DEBUG="yes")
|
|
if test "x$DEBUG" = "xyes" ; then
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(LMMS_DEBUG)
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
fi
|
|
|
|
|
|
# check for rpm SOURCES path
|
|
echo -n "checking for rpm sources path... "
|
|
RPMSOURCEDIR="NOT-FOUND"
|
|
for directory in packages OpenLinux redhat RedHat rpm RPM "" ; do
|
|
if test -d /usr/src/${directory}/SOURCES ; then
|
|
RPMSOURCEDIR="/usr/src/${directory}/SOURCES/"
|
|
fi
|
|
done
|
|
echo "$RPMSOURCEDIR"
|
|
AM_CONDITIONAL(HAVE_RPM, test "$RPMSOURCEDIR" != "NOT-FOUND")
|
|
AC_SUBST(RPMSOURCEDIR)
|
|
|
|
lmmsdatadir="$datadir/$PACKAGE"
|
|
AC_SUBST(lmmsdatadir)
|
|
|
|
|
|
CXXFLAGS="$CXXFLAGS -g0"
|
|
if test $CXX == "g++" ; then
|
|
CXXFLAGS="$CXXFLAGS -ansi -Wall -fno-exceptions"
|
|
fi
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
artwork/Makefile
|
|
buildtools/Makefile
|
|
locale/Makefile
|
|
midi-maps/Makefile
|
|
plugins/Makefile
|
|
plugins/audio_file_processor/Makefile
|
|
plugins/ladspa_sine_1063/Makefile
|
|
plugins/midi_out/Makefile
|
|
plugins/plucked_string_synth/Makefile
|
|
plugins/triple_oscillator/Makefile
|
|
plugins/vestige/Makefile
|
|
presets/Makefile
|
|
presets/AudioFileProcessor/Makefile
|
|
presets/MIDI-Out/Makefile
|
|
presets/PluckedStringSynth/Makefile
|
|
presets/Sine1063Oscillator/Makefile
|
|
presets/TripleOscillator/Makefile
|
|
presets/VeSTige/Makefile
|
|
projects/Makefile
|
|
projects/cool_songs/Makefile
|
|
projects/covers/Makefile
|
|
projects/demos/Makefile
|
|
projects/misc/Makefile
|
|
projects/recorded_loops/Makefile
|
|
projects/templates/Makefile
|
|
projects/tutorials/Makefile
|
|
samples/Makefile
|
|
samples/basses/Makefile
|
|
samples/bassloopes/Makefile
|
|
samples/beats/Makefile
|
|
samples/drums/Makefile
|
|
samples/effects/Makefile
|
|
samples/instruments/Makefile
|
|
samples/latin/Makefile
|
|
samples/misc/Makefile
|
|
samples/shapes/Makefile
|
|
samples/stringsnpads/Makefile
|
|
lmms.spec])
|
|
AC_OUTPUT
|
|
|
|
with_warnings="false"
|
|
|
|
echo
|
|
echo
|
|
|
|
PLUGINS_TO_BUILD=""
|
|
|
|
|
|
if test -z "$HAVE_ALSA_ASOUNDLIB_H" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have ALSA-library installed and/or ALSA-lib-development-"
|
|
echo " = package is missing. This will disable support for sound-output via ALSA!"
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* ALSA for audio- and MIDI-input/output"
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$HAVE_JACK_JACK_H" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have JACK-library installed and/or JACK-lib-development-"
|
|
echo " = package is missing. This will disable support for JACK-transport."
|
|
echo " = This is no problem but you'll miss the great possibilities of interacting"
|
|
echo " = with other sound-applications in realtime!"
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* JACK for audio-input/output"
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test -z "$HAVE_SOUNDCARD_H" -a -z "$HAVE_SYS_SOUNDCARD_H" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have soundcard.h which is neccessary for outputting "
|
|
echo " = sound via OSS under Linux/BSD/Solaris."
|
|
echo " = This will also disable support for MIDI using OSS."
|
|
echo " = If you're building for a different platform or do not need OSS-support, you"
|
|
echo " = can ignore this warning."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* OSS for audio- and MIDI-input/output"
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test -z "$HAVE_SDL_SDL_AUDIO_H" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have SDL-library installed and/or SDL-lib-development-"
|
|
echo " = package is missing. This will disable support for sound-output via SDL, "
|
|
echo " = which is important, if you're using sound-daemons (arts, ESD etc.)"
|
|
echo " = When compiling without SDL, you'll always have to kill your sound-daemon"
|
|
echo " = before using LMMS...!"
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* SDL for audio-output"
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$OGG_SUPPORT" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have libvorbis installed and/or libvorbis-development-"
|
|
echo " = package is missing. This will disable support for exporting songs to"
|
|
echo " = OGG-files! If SDL_sound is missing too, you'll not be able to use the "
|
|
echo " = samples coming with LMMS since libsndfile currently has no OGG-support!"
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* libvorbis for encoding/decoding OGG-files"
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$HAVE_SDL_SDL_SOUND_H" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have SDL_sound-library installed and/or SDL_sound-"
|
|
echo " = development-package is missing. This means that you can only load samples"
|
|
echo " = within LMMS if you have libsndfile and libvorbis installed!"
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* SDL_sound for sample-decoding"
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test -z "$HAVE_SNDFILE_H" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have libsndfile installed and/or libsndfile-development-"
|
|
echo " = package is missing. This is not that fatal as long as you have SDL_sound"
|
|
echo " = installed. Otherwise it's strongly recommended to install libsndfile and"
|
|
echo " = libvorbis for being able to use samples within LMMS."
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* libsndfile for sample-decoding"
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test -z "$HAVE_SAMPLERATE_H" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have libsamplerate installed and/or libsamplerate-"
|
|
echo " = development-package is missing. This will disable resampling with"
|
|
echo " = libsamplerate and results in worse quality! Currently LMMS will also"
|
|
echo " = crash more often, because internal sample-rate-converter has some bugs..."
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* libsamplerate for internal samplerate-conversion"
|
|
fi
|
|
|
|
|
|
|
|
if test ! -z "$FST_OK_BUT_VST_HEADERS_MISSING" ; then
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You seem to have a proper libfst-installation, but the header-files"
|
|
echo " = (AEffect.h and aeffectx.h) from Steinberg-SDK are missing or not present"
|
|
echo " = in /usr/include/vst. We cannot distribute them as they're licensed under"
|
|
echo " = a non-GPL-compatible license, so you'll have to download them at"
|
|
echo " ="
|
|
echo " = ftp://ext2asio:sdk1ext@ftp.pinnaclesys.com/SDK"
|
|
echo " ="
|
|
echo " = and put the mentioned files into /usr/include."
|
|
echo " = Otherwise (now!) configure will disable LMMS's support for built-in VST-"
|
|
echo " = plugin-usage. If you do not intend to use VST-plugins with LMMS you can "
|
|
echo " = ignore this warning."
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
else
|
|
if test ! -z "$HAVE_FST_H" ; then
|
|
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* libfst for hosting VST-plugins"
|
|
else
|
|
echo " ========================"
|
|
echo " === LMMS - WARNING ======================================================="
|
|
echo " ========================"
|
|
echo " ="
|
|
echo " = You don't seem to have installed libfst, which is neccessary for building"
|
|
echo " = LMMS with support for built-in VST-plugin. Furthermore LMMS needs"
|
|
echo " = header-files (AEffect.h and aeffectx.h) from Steinberg-SDK, which are"
|
|
echo " = likely to be installed by libfst, so after having coped with libfst-"
|
|
echo " = installation (which is a mess... ;-), everything should be alright."
|
|
echo " = If you do not intend to use VST-plugins with LMMS you can ignore this "
|
|
echo " = warning."
|
|
echo " = Consider installing the missing packages for using the full power of LMMS."
|
|
echo " ="
|
|
with_warnings="true"
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
echo
|
|
echo
|
|
echo "LMMS will be able to use $PLUGINS_TO_BUILD" | sed -e "s/\\\n/\n/g" | sed -e "s/\\\t/\t/g" | sed -e "s/\\\\\*/\*/g"
|
|
echo
|
|
echo
|
|
echo " ============================"
|
|
echo " === LMMS - INFORMATION ==================================================="
|
|
echo " ============================"
|
|
echo " ="
|
|
if test "$with_warnings" = "false" ; then
|
|
echo " = LMMS has been configured successfully. Now you can build it by typing 'make'."
|
|
echo " = After the compilation-process has finished, you can install LMMS by"
|
|
echo " = typing 'make install'."
|
|
else
|
|
echo " = LMMS has been configured, but there were one or more warnings you should"
|
|
echo " = not ignore. First try to solve the mentioned problems before"
|
|
echo " = proceeding. Otherwise don't complain, if LMMS doesn't run the way"
|
|
echo " = you might expect..."
|
|
fi
|
|
echo " ="
|
|
echo " = If there're problems while compiling LMMS, please send a mail to "
|
|
echo " = tobydox [at] users.sourceforge.net!"
|
|
echo " ="
|
|
echo
|
|
|