mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 16:43:33 +02:00
Use Automake for Audacity.
This commit is contained in:
@@ -2,7 +2,7 @@ dnl Todo: Add Audacity / FFmpeg license
|
||||
dnl
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_ffmpeg.m4 serial 1
|
||||
# audacity_checklib_ffmpeg.m4 serial 2
|
||||
dnl Check for a copy of ffmpeg, whoose headers we will use for the importer
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_FFMPEG], [
|
||||
AC_ARG_WITH(ffmpeg,
|
||||
@@ -11,11 +11,6 @@ AC_DEFUN([AUDACITY_CHECKLIB_FFMPEG], [
|
||||
FFMPEG_ARGUMENT=$withval,
|
||||
FFMPEG_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_FFMPEG, 1,
|
||||
[Define if ffmpeg (multi-format import and export) support should be enabled])
|
||||
fi
|
||||
|
||||
dnl Check for a system copy of ffmpeg to use. For now I'm insiting on a
|
||||
dnl current version to make maintenance easier. We need both avcodec and
|
||||
dnl avformat, so I'm going to check for both
|
||||
@@ -30,28 +25,16 @@ AC_DEFUN([AUDACITY_CHECKLIB_FFMPEG], [
|
||||
libavutil_available_system="yes",
|
||||
libavutil_available_system="no")
|
||||
|
||||
FFMPEG_SYSTEM_AVAILABLE="no"
|
||||
if test "$avcodec_available_system" = "yes" -a "$avformat_available_system" = "yes" -a "$libavutil_available_system" = "yes"; then
|
||||
FFMPEG_SYSTEM_AVAILABLE="yes"
|
||||
FFMPEG_SYSTEM_CXXFLAGS="$AVCODEC_CFLAGS $AVFORMAT_CFLAGS $AVUTIL_CFLAGS"
|
||||
FFMPEG_SYSTEM_CPPSYMBOLS="USE_FFMPEG"
|
||||
if test "x$dynamic_loading" = "xno"; then
|
||||
FFMPEG_SYSTEM_LIBS="$AVCODEC_LIBS $AVFORMAT_LIBS $AVUTIL_LIBS"
|
||||
AC_DEFINE(DISABLE_DYNAMIC_LOADING_FFMPEG, 1, [Use system FFmpeg library and disable dynamic loading of it.])
|
||||
fi
|
||||
dnl build the extra object files needed to use FFmpeg. Paths inside
|
||||
dnl the audacity src/ dir, as this is subsitiuted into src/Makefile.in
|
||||
FFMPEG_SYSTEM_OPTOBJS="import/ImportFFmpeg.o export/ExportFFmpeg.o \
|
||||
export/ExportFFmpegDialogs.o"
|
||||
AC_MSG_NOTICE([FFmpeg library available as system library])
|
||||
fi
|
||||
if test "x$FFMPEG_SYSTEM_AVAILABLE" = "xno" ; then
|
||||
else
|
||||
FFMPEG_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([FFmpeg library NOT available as system library])
|
||||
fi
|
||||
|
||||
dnl see if ffmpeg is available locally, or rather that we have some headers
|
||||
dnl in lib-src/ffmpeg/ we can use.
|
||||
FFMPEG_LOCAL_AVAILABLE="no"
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/ffmpeg/libavcodec/avcodec.h,
|
||||
avcodec_h_found="yes",
|
||||
avcodec_h_found="no")
|
||||
@@ -60,22 +43,41 @@ AC_DEFUN([AUDACITY_CHECKLIB_FFMPEG], [
|
||||
avformat_h_found="yes",
|
||||
avformat_h_found="no")
|
||||
|
||||
if test "x$avcodec_h_found" = "xyes" ; then
|
||||
if test "x$avformat_h_found" = "xyes" ; then
|
||||
FFMPEG_LOCAL_AVAILABLE="yes"
|
||||
FFMPEG_LOCAL_LIBS=""
|
||||
FFMPEG_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/ffmpeg'
|
||||
FFMPEG_LOCAL_CPPSYMBOLS="USE_FFMPEG"
|
||||
dnl build the extra object files needed to use FFmpeg. Paths inside
|
||||
dnl the audacity src/ dir, as this is subsitiuted into src/Makefile.in
|
||||
FFMPEG_LOCAL_OPTOBJS="import/ImportFFmpeg.o export/ExportFFmpeg.o \
|
||||
export/ExportFFmpegDialogs.o"
|
||||
AC_MSG_NOTICE([FFmpeg headers are available in the local tree])
|
||||
fi
|
||||
fi
|
||||
if test "x$FFMPEG_LOCAL_AVAILABLE" = "xno" ; then
|
||||
if test "$avcodec_h_found" = "yes" -a "$avformat_h_found" = "yes"; then
|
||||
FFMPEG_LOCAL_AVAILABLE="yes"
|
||||
AC_MSG_NOTICE([FFmpeg headers are available in the local tree])
|
||||
else
|
||||
FFMPEG_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([ffmpeg library is NOT available in the local tree])
|
||||
fi
|
||||
|
||||
FFMPEG_MIMETYPES="audio/aac;audio/ac3;audio/mp4;audio/x-ms-wma;video/mpeg;"
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_FFMPEG], [
|
||||
if test "$FFMPEG_USE_LOCAL" = yes; then
|
||||
FFMPEG_CFLAGS='-I$(top_srcdir)/lib-src/ffmpeg'
|
||||
FFMPEG_LIBS=""
|
||||
fi
|
||||
if test "$FFMPEG_USE_SYSTEM" = yes; then
|
||||
FFMPEG_CFLAGS="$AVCODEC_CFLAGS $AVFORMAT_CFLAGS $AVUTIL_CFLAGS"
|
||||
if test "$dynamic_loading" = "no"; then
|
||||
FFMPEG_LIBS="$AVCODEC_LIBS $AVFORMAT_LIBS $AVUTIL_LIBS"
|
||||
AC_DEFINE(DISABLE_DYNAMIC_LOADING_FFMPEG, 1,
|
||||
[Use system FFmpeg library and disable dynamic loading of it.])
|
||||
else
|
||||
FFMPEG_LIBS=""
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([FFMPEG_CFLAGS])
|
||||
AC_SUBST([FFMPEG_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_FFMPEG], [test "$FFMPEG_USE_LOCAL" = yes -o "$FFMPEG_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_FFMPEG], [test "$FFMPEG_USE_LOCAL" = yes])
|
||||
|
||||
if test "$FFMPEG_USE_LOCAL" = yes -o "$FFMPEG_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_FFMPEG, 1,
|
||||
[Define if ffmpeg (multi-format import and export) support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -2,7 +2,7 @@ dnl Todo: Add Audacity / LAME license
|
||||
dnl
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_lame.m4 serial 1
|
||||
# audacity_checklib_lame.m4 serial 2
|
||||
|
||||
dnl Check for a copy of lame, whoose headers we will use for the importer
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LAME], [
|
||||
@@ -12,13 +12,6 @@ AC_DEFUN([AUDACITY_CHECKLIB_LAME], [
|
||||
LAME_ARGUMENT=$withval,
|
||||
LAME_ARGUMENT="unspecified")
|
||||
|
||||
dnl These four lines are never executed, but they document the DISABLE_DYNAMIC_LOADING_LAME
|
||||
dnl pre-processor directive (for configunix.h etc)
|
||||
if false ; then
|
||||
AC_DEFINE(DISABLE_DYNAMIC_LOADING_LAME, 1,
|
||||
[Define if LAME should be linked at compile time])
|
||||
fi
|
||||
|
||||
dnl See if LAME is installed in the system
|
||||
|
||||
AC_CHECK_LIB(mp3lame,
|
||||
@@ -30,13 +23,9 @@ AC_DEFUN([AUDACITY_CHECKLIB_LAME], [
|
||||
header_found="yes",
|
||||
header_found="no")
|
||||
|
||||
if test "x$lib_found" = "xyes" && test "x$header_found" = "xyes" ; then
|
||||
if test "$lib_found" = "yes" -a "$header_found" = "yes"; then
|
||||
LAME_SYSTEM_AVAILABLE="yes"
|
||||
AC_MSG_NOTICE([LAME library is available as system library.])
|
||||
if test "x$dynamic_loading" = "xno"; then
|
||||
LAME_SYSTEM_LIBS="-lmp3lame"
|
||||
LAME_SYSTEM_CPPSYMBOLS="DISABLE_DYNAMIC_LOADING_LAME"
|
||||
fi
|
||||
else
|
||||
LAME_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([LAME library is NOT available as system library.])
|
||||
@@ -49,9 +38,31 @@ AC_DEFUN([AUDACITY_CHECKLIB_LAME], [
|
||||
LAME_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$LAME_LOCAL_AVAILABLE" = "yes"; then
|
||||
LAME_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/lame'
|
||||
AC_MSG_NOTICE([LAME headers are available in this source tree.])
|
||||
else
|
||||
AC_MSG_NOTICE([LAME headers are NOT available in this source tree.])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_LAME], [
|
||||
if test "$LAME_USE_LOCAL" = yes; then
|
||||
LAME_CFLAGS='-I$(top_srcdir)/lib-src/lame'
|
||||
LAME_LIBS=""
|
||||
fi
|
||||
if test "$LAME_USE_SYSTEM" = yes; then
|
||||
LAME_CFLAGS=""
|
||||
if test "$dynamic_loading" = "no"; then
|
||||
LAME_LIBS="-lmp3lame"
|
||||
AC_DEFINE(DISABLE_DYNAMIC_LOADING_LAME, 1,
|
||||
[Define if LAME should be linked at compile time])
|
||||
else
|
||||
LAME_LIBS=""
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([LAME_CFLAGS])
|
||||
AC_SUBST([LAME_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LAME], [test "$LAME_USE_LOCAL" = yes -o "$LAME_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LAME], [test "$LAME_USE_LOCAL" = yes])
|
||||
])
|
||||
|
@@ -12,49 +12,40 @@ AC_DEFUN([AUDACITY_CHECKLIB_EXPAT], [
|
||||
EXPAT_ARGUMENT=$withval,
|
||||
EXPAT_ARGUMENT="unspecified")
|
||||
|
||||
dnl see if libexpat is installed on the system
|
||||
dnl see if expat is installed on the system
|
||||
|
||||
AC_CHECK_LIB(expat, XML_ParserCreate,
|
||||
libexpat_found="yes",
|
||||
libexpat_found="no")
|
||||
PKG_CHECK_MODULES(EXPAT, expat,
|
||||
EXPAT_SYSTEM_AVAILABLE="yes",
|
||||
EXPAT_SYSTEM_AVAILABLE="no")
|
||||
|
||||
expat_h_found="no"
|
||||
|
||||
AC_CHECK_HEADER(expat.h,
|
||||
expat_h_found="yes",
|
||||
expat_h_found="no")
|
||||
|
||||
if test "x$libexpat_found" = "xyes" && test "x$expat_h_found" = "xyes" ; then
|
||||
EXPAT_SYSTEM_AVAILABLE="yes"
|
||||
EXPAT_SYSTEM_LIBS="-lexpat"
|
||||
EXPAT_SYSTEM_CPPSYMBOLS="USE_SYSTEM_EXPAT"
|
||||
if test "$EXPAT_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Expat libraries are available as system libraries])
|
||||
else
|
||||
EXPAT_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Expat libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if expat is available in the local tree
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/expat/lib/expat.h,
|
||||
xmlparse_h_found="yes",
|
||||
xmlparse_h_found="no")
|
||||
|
||||
if test "x$xmlparse_h_found" = "xyes" ; then
|
||||
EXPAT_LOCAL_AVAILABLE="yes"
|
||||
EXPAT_LOCAL_LIBS="libexpat.a"
|
||||
EXPAT_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/expat'
|
||||
EXPAT_LOCAL_CPPSYMBOLS="USE_LOCAL_EXPAT"
|
||||
EXPAT_LOCAL_AVAILABLE="yes",
|
||||
EXPAT_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$EXPAT_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Expat libraries are available in the local tree])
|
||||
else
|
||||
EXPAT_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Expat libraries are NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_EXPAT], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_EXPAT], [
|
||||
if test "$EXPAT_USE_LOCAL" = yes; then
|
||||
EXPAT_CFLAGS='-I$(top_srcdir)/lib-src/expat'
|
||||
EXPAT_LIBS='$(top_builddir)/lib-src/expat/libexpat.la'
|
||||
AC_CONFIG_SUBDIRS([lib-src/expat])
|
||||
fi
|
||||
|
||||
AC_SUBST([EXPAT_CFLAGS])
|
||||
AC_SUBST([EXPAT_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LOCAL_EXPAT], [test "$EXPAT_USE_LOCAL" = yes])
|
||||
])
|
||||
|
@@ -2,15 +2,9 @@ dnl add audacity / flac license?
|
||||
dnl
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libflac.m4 serial 2
|
||||
# audacity_checklib_libflac.m4 serial 3
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBFLAC], [
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LIBFLAC, 1,
|
||||
[Define if the FLAC library is present])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(libflac,
|
||||
[AS_HELP_STRING([--with-libflac],
|
||||
[use libFLAC for FLAC support])],
|
||||
@@ -19,25 +13,26 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBFLAC], [
|
||||
|
||||
dnl See if FLAC is installed in the system
|
||||
|
||||
AC_CHECK_LIB(FLAC,
|
||||
FLAC__stream_decoder_new,
|
||||
lib_found="yes",
|
||||
lib_found="no",
|
||||
-lFLAC++ -lFLAC)
|
||||
PKG_CHECK_MODULES([FLAC], [flac >= 1.3.0 flac++ >= 1.3.0],
|
||||
[LIBFLAC_SYSTEM_AVAILABLE="yes"],
|
||||
[LIBFLAC_SYSTEM_AVAILABLE="no"])
|
||||
|
||||
AC_CHECK_HEADER(FLAC/format.h,
|
||||
header_found="yes",
|
||||
header_found="no")
|
||||
dnl Check for flac < 1.3.0
|
||||
if test "$LIBFLAC_SYSTEM_AVAILABLE" = "no"; then
|
||||
PKG_CHECK_MODULES([FLAC], [flac flac++],
|
||||
[LIBFLAC_SYSTEM_AVAILABLE="yes"],
|
||||
[LIBFLAC_SYSTEM_AVAILABLE="no"])
|
||||
dnl flac < 1.3.0 adds its own FLAC and FLAC++ subdirectories to the search
|
||||
dnl path and ships a assert.h file there. This assert.h overwrites the
|
||||
dnl assert.h header from the C standard library. We need to strip /FLAC
|
||||
dnl and /FLAC++ from the include paths to make the assert.h from the C
|
||||
dnl standard library available again.
|
||||
[FLAC_CFLAGS=$(echo "$FLAC_CFLAGS" | sed 's@-I\([^ ]*\)/FLAC\(++\)\? @-I\1 @g')]
|
||||
fi
|
||||
|
||||
if test "x$lib_found" = "xyes" && test "x$header_found" = "xyes" ; then
|
||||
LIBFLAC_SYSTEM_AVAILABLE="yes"
|
||||
LIBFLAC_SYSTEM_LIBS="-lFLAC++ -lFLAC"
|
||||
LIBFLAC_SYSTEM_CPPSYMBOLS="USE_LIBFLAC"
|
||||
# this file shouldn't be built at if no libflac is available
|
||||
LIBFLAC_SYSTEM_OPTOBJS="ondemand/ODDecodeFlacTask.o"
|
||||
if test "$LIBFLAC_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([FLAC libraries are available as system libraries])
|
||||
else
|
||||
LIBFLAC_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([FLAC/FLAC++ libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
@@ -51,29 +46,33 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBFLAC], [
|
||||
flacpp_h_available="yes",
|
||||
flacpp_h_available="no")
|
||||
|
||||
if test "x$flac_h_available" = "xyes" && test "x$flacpp_h_available" = "xyes" ; then
|
||||
if test "$flac_h_available" = "yes" -a "$flacpp_h_available" = "yes"; then
|
||||
LIBFLAC_LOCAL_AVAILABLE="yes"
|
||||
|
||||
LIBFLAC_LOCAL_LIBS="libFLAC++.a libFLAC.a"
|
||||
|
||||
LIBFLAC_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libflac/include'
|
||||
LIBFLAC_LOCAL_CXXFLAGS="$LIBFLAC_LOCAL_CXXFLAGS -I\$(top_srcdir)/lib-src/libflac/include"
|
||||
|
||||
LIBFLAC_LOCAL_CPPSYMBOLS="USE_LIBFLAC"
|
||||
# this file shouldn't be built at if no libflac is available
|
||||
LIBFLAC_LOCAL_OPTOBJS="ondemand/ODDecodeFlacTask.o"
|
||||
LIBFLAC_LOCAL_CONFIGURE_ARGS="--disable-xmms-plugin --disable-doxygen-docs --disable-thorough-tests"
|
||||
|
||||
AC_MSG_NOTICE([FLAC libraries are available in this source tree])
|
||||
else
|
||||
LIBFLAC_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([FLAC libraries are NOT available in this source tree])
|
||||
fi
|
||||
|
||||
LIBFLAC_MIMETYPES="audio/flac;audio/x-flac;"
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBFLAC], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBFLAC], [
|
||||
if test "$LIBFLAC_USE_LOCAL" = yes; then
|
||||
FLAC_CFLAGS='-I$(top_srcdir)/lib-src/libflac/include'
|
||||
FLAC_LIBS='$(top_builddir)/lib-src/libflac/src/libFLAC++/libFLAC++.la $(top_builddir)/lib-src/libflac/src/libFLAC/libFLAC.la'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libflac])
|
||||
fi
|
||||
|
||||
AC_SUBST([FLAC_CFLAGS])
|
||||
AC_SUBST([FLAC_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBFLAC], [test "$LIBFLAC_USE_LOCAL" = yes -o "$LIBFLAC_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBFLAC], [test "$LIBFLAC_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBFLAC_USE_LOCAL" = yes -o "$LIBFLAC_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LIBFLAC, 1,
|
||||
[Define if the FLAC library is present])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl Add audacity / libmad licence?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libid3tag.m4 serial 1
|
||||
# audacity_checklib_libid3tag.m4 serial 2
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBID3TAG], [
|
||||
|
||||
@@ -11,54 +11,46 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBID3TAG], [
|
||||
LIBID3TAG_ARGUMENT=$withval,
|
||||
LIBID3TAG_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LIBID3TAG, 1,
|
||||
[Define if libid3tag is present])
|
||||
fi
|
||||
|
||||
dnl see if libid3tag is installed on the system
|
||||
|
||||
AC_CHECK_LIB(id3tag, id3_file_open,
|
||||
libid3tag_found="yes",
|
||||
libid3tag_found="no",
|
||||
-lz)
|
||||
PKG_CHECK_MODULES(ID3TAG, id3tag,
|
||||
LIBID3TAG_SYSTEM_AVAILABLE="yes",
|
||||
LIBID3TAG_SYSTEM_AVAILABLE="no")
|
||||
|
||||
AC_CHECK_HEADER(id3tag.h,
|
||||
id3tag_h_found="yes",
|
||||
id3tag_h_found="no")
|
||||
|
||||
if test "x$libid3tag_found" = "xyes" && test "x$id3tag_h_found" = "xyes" ; then
|
||||
LIBID3TAG_SYSTEM_AVAILABLE="yes"
|
||||
LIBID3TAG_SYSTEM_LIBS=-lid3tag
|
||||
LIBID3TAG_SYSTEM_CPPSYMBOLS="USE_LIBID3TAG"
|
||||
if test "$LIBID3TAG_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Libid3tag libraries are available as system libraries])
|
||||
else
|
||||
LIBID3TAG_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Libid3tag libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if libid3tag is available in the local tree
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/libid3tag/frame.h,
|
||||
frame_h_found="yes",
|
||||
frame_h_found="no")
|
||||
LIBID3TAG_LOCAL_AVAILABLE="yes",
|
||||
LIBID3TAG_LOCAL_AVAILABLE="no")
|
||||
|
||||
|
||||
if test "x$frame_h_found" = "xyes" ; then
|
||||
LIBID3TAG_LOCAL_AVAILABLE="yes"
|
||||
LIBID3TAG_LOCAL_LIBS="libid3tag.a"
|
||||
LIBID3TAG_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libid3tag'
|
||||
LIBID3TAG_LOCAL_CPPSYMBOLS="USE_LIBID3TAG"
|
||||
LIBS="${LIBS} -lz"
|
||||
if test "$LIBID3TAG_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([libid3tag libraries are available in the local tree])
|
||||
else
|
||||
LIBID3TAG_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libid3tag libraries are NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBID3TAG], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBID3TAG], [
|
||||
if test "$LIBID3TAG_USE_LOCAL" = yes; then
|
||||
ID3TAG_CFLAGS='-I$(top_srcdir)/lib-src/libid3tag'
|
||||
ID3TAG_LIBS='$(top_builddir)/lib-src/libid3tag/libid3tag.la'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libid3tag])
|
||||
fi
|
||||
|
||||
AC_SUBST([ID3TAG_CFLAGS])
|
||||
AC_SUBST([ID3TAG_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBID3TAG], [test "$LIBID3TAG_USE_LOCAL" = yes -o "$LIBID3TAG_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBID3TAG], [test "$LIBID3TAG_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBID3TAG_USE_LOCAL" = yes -o "$LIBID3TAG_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LIBID3TAG, 1,
|
||||
[Define if libid3tag is present])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,15 +1,9 @@
|
||||
dnl Add audacity / libmad license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libmad.m4 serial 1
|
||||
# audacity_checklib_libmad.m4 serial 2
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBMAD], [
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LIBMAD, 1,
|
||||
[Define if mp3 support is implemented with the libmad library])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(libmad,
|
||||
[AS_HELP_STRING([--with-libmad],
|
||||
[use libmad for mp2/3 decoding support])],
|
||||
@@ -19,8 +13,8 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBMAD], [
|
||||
dnl see if libmad is installed in the system >= 0.14.2b
|
||||
|
||||
PKG_CHECK_MODULES(LIBMAD, mad >= 0.14.2b,
|
||||
libmad_available_system="yes",
|
||||
libmad_available_system="no")
|
||||
LIBMAD_SYSTEM_AVAILABLE="yes",
|
||||
LIBMAD_SYSTEM_AVAILABLE="no")
|
||||
|
||||
dnl if we don't have the version we want, do we have any at all?
|
||||
|
||||
@@ -28,15 +22,11 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBMAD], [
|
||||
libmad_found="yes",
|
||||
libmad_found="no")
|
||||
|
||||
if test "x$libmad_available_system" = "xyes" && test "x$libmad_found" = "xno" ; then
|
||||
if test "$LIBMAD_SYSTEM_AVAILABLE" = "yes" -a "$libmad_found" = "no"; then
|
||||
AC_MSG_WARN([system installation of libmad found, but it is too old. Upgrade to at least 0.14.2b to use with Audacity])
|
||||
fi
|
||||
|
||||
if test "x$libmad_available_system" = "xyes" ; then
|
||||
LIBMAD_SYSTEM_AVAILABLE="yes"
|
||||
LIBMAD_SYSTEM_LIBS="$LIBMAD_LIBS"
|
||||
LIBMAD_SYSTEM_CXXFLAGS="$LIBMAD_CFLAGS"
|
||||
LIBMAD_SYSTEM_CPPSYMBOLS="USE_LIBMAD"
|
||||
if test "$LIBMAD_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([libmad libraries are available as system libraries])
|
||||
else
|
||||
AC_MSG_NOTICE([libmad libraries are NOT available as system libraries])
|
||||
@@ -45,24 +35,32 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBMAD], [
|
||||
dnl see if libmad is available in the local tree
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/libmad/frame.h,
|
||||
frame_h_found="yes",
|
||||
frame_h_found="no")
|
||||
LIBMAD_LOCAL_AVAILABLE="yes",
|
||||
LIBMAD_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "x$frame_h_found" = "xyes" ; then
|
||||
LIBMAD_LOCAL_AVAILABLE="yes"
|
||||
LIBMAD_LOCAL_LIBS="libmad.a"
|
||||
LIBMAD_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libmad'
|
||||
LIBMAD_LOCAL_CPPSYMBOLS="USE_LIBMAD"
|
||||
if test "$LIBMAD_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([libmad libraries are available in the local tree])
|
||||
else
|
||||
LIBMAD_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libmad libraries are NOT available in the local tree])
|
||||
fi
|
||||
LIBMAD_MIMETYPES="audio/mpeg;"
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBMAD], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBMAD], [
|
||||
if test "$LIBMAD_USE_LOCAL" = yes; then
|
||||
LIBMAD_CFLAGS='-I$(top_srcdir)/lib-src/libmad'
|
||||
LIBMAD_LIBS='$(top_builddir)/lib-src/libmad/libmad.la'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libmad])
|
||||
fi
|
||||
|
||||
AC_SUBST([LIBMAD_CFLAGS])
|
||||
AC_SUBST([LIBMAD_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBMAD], [test "$LIBMAD_USE_LOCAL" = yes -o "$LIBMAD_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBMAD], [test "$LIBMAD_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBMAD_USE_LOCAL" = yes -o "$LIBMAD_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LIBMAD, 1,
|
||||
[Define if mp3 support is implemented with the libmad library])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl add Audacity / Nyquist license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libnyquist.m4 serial 1
|
||||
# audacity_checklib_libnyquist.m4 serial 2
|
||||
|
||||
dnl Check for Nyquist as a library
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBNYQUIST], [
|
||||
@@ -11,11 +11,6 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBNYQUIST], [
|
||||
LIBNYQUIST_ARGUMENT=$enableval,
|
||||
LIBNYQUIST_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_NYQUIST, 1,
|
||||
[Define if Nyquist support should be enabled])
|
||||
fi
|
||||
|
||||
dnl Nyquist is never installed on the system
|
||||
dnl nyx is home-cooked by us, so system copy is unlikely
|
||||
LIBNYQUIST_SYSTEM_AVAILABLE="no"
|
||||
@@ -23,26 +18,31 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBNYQUIST], [
|
||||
dnl see if Nyquist is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/libnyquist/nyx.h,
|
||||
nyx_h_found="yes",
|
||||
nyx_h_found="no")
|
||||
|
||||
if test "x$nyx_h_found" = "xyes" ; then
|
||||
LIBNYQUIST_LOCAL_AVAILABLE="yes"
|
||||
LIBNYQUIST_LOCAL_LIBS="libnyquist.a"
|
||||
LIBNYQUIST_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libnyquist'
|
||||
LIBNYQUIST_LOCAL_CPPSYMBOLS="USE_NYQUIST"
|
||||
LIBNYQUIST_LOCAL_OPTOBJS="effects/nyquist/Nyquist.o"
|
||||
LIBNYQUIST_LOCAL_OPTOBJS="$LIBNYQUIST_LOCAL_OPTOBJS effects/nyquist/LoadNyquist.o"
|
||||
LIBNYQUIST_LOCAL_AVAILABLE="yes",
|
||||
LIBNYQUIST_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$LIBNYQUIST_LOCAL_AVAILABLE" = "yes" ; then
|
||||
AC_MSG_NOTICE([nyquist libraries are available in the local tree])
|
||||
else
|
||||
LIBNYQUIST_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([nyquist libraries are NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBNYQUIST], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBNYQUIST], [
|
||||
if test "$LIBNYQUIST_USE_LOCAL" = yes; then
|
||||
LIBNYQUIST_CFLAGS='-I$(top_srcdir)/lib-src/libnyquist'
|
||||
LIBNYQUIST_LIBS='$(top_builddir)/lib-src/libnyquist/libnyquist.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libnyquist])
|
||||
fi
|
||||
|
||||
AC_SUBST([LIBNYQUIST_CFLAGS])
|
||||
AC_SUBST([LIBNYQUIST_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBNYQUIST], [test "$LIBNYQUIST_USE_LOCAL" = yes -o "$LIBNYQUIST_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBNYQUIST], [test "$LIBNYQUIST_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBNYQUIST_USE_LOCAL" = yes -o "$LIBNYQUIST_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_NYQUIST, 1,
|
||||
[Define if Nyquist support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl Add Audacity license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libresample.m4 serial 2
|
||||
# audacity_checklib_libresample.m4 serial 3
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBRESAMPLE], [
|
||||
|
||||
@@ -11,11 +11,6 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBRESAMPLE], [
|
||||
LIBRESAMPLE_ARGUMENT=$withval,
|
||||
LIBRESAMPLE_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LIBRESAMPLE, 1,
|
||||
[Define if libresample support should be enabled])
|
||||
fi
|
||||
|
||||
dnl see if libresample is installed on the system
|
||||
|
||||
dnl ... but libresample isn't generally installed as a system library...
|
||||
@@ -25,24 +20,31 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBRESAMPLE], [
|
||||
dnl see if libresample is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/libresample/include/libresample.h,
|
||||
resample_h_found="yes",
|
||||
resample_h_found="no")
|
||||
|
||||
if test "x$resample_h_found" = "xyes" ; then
|
||||
LIBRESAMPLE_LOCAL_AVAILABLE="yes"
|
||||
LIBRESAMPLE_LOCAL_LIBS="libresample.a"
|
||||
LIBRESAMPLE_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libresample/include'
|
||||
LIBRESAMPLE_LOCAL_CPPSYMBOLS="USE_LIBRESAMPLE"
|
||||
LIBRESAMPLE_LOCAL_AVAILABLE="yes",
|
||||
LIBRESAMPLE_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$LIBRESAMPLE_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([libresample libraries are available in the local tree])
|
||||
else
|
||||
LIBRESAMPLE_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libresample libraries are NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBRESAMPLE], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBRESAMPLE], [
|
||||
if test "$LIBRESAMPLE_USE_LOCAL" = yes; then
|
||||
LIBRESAMPLE_CFLAGS='-I$(top_srcdir)/lib-src/libresample/include'
|
||||
LIBRESAMPLE_LIBS='$(top_builddir)/lib-src/libresample/libresample.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libresample])
|
||||
fi
|
||||
|
||||
AC_SUBST([LIBRESAMPLE_CFLAGS])
|
||||
AC_SUBST([LIBRESAMPLE_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBRESAMPLE], [test "$LIBRESAMPLE_USE_LOCAL" = yes -o "$LIBRESAMPLE_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBRESAMPLE], [test "$LIBRESAMPLE_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBRESAMPLE_USE_LOCAL" = yes -o "$LIBRESAMPLE_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LIBRESAMPLE, 1,
|
||||
[Define if libresample support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl Add Audacity / libsamplerate license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libsamplerate.m4 serial 2
|
||||
# audacity_checklib_libsamplerate.m4 serial 3
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBSAMPLERATE], [
|
||||
|
||||
@@ -11,48 +11,46 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSAMPLERATE], [
|
||||
LIBSAMPLERATE_ARGUMENT=$withval,
|
||||
LIBSAMPLERATE_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LIBSAMPLERATE, 1,
|
||||
[Define if libsamplerate support should be enabled])
|
||||
fi
|
||||
|
||||
dnl see if libsamplerate is installed on the system
|
||||
|
||||
PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.1.2,
|
||||
samplerate_available_system="yes",
|
||||
samplerate_available_system="no")
|
||||
LIBSAMPLERATE_SYSTEM_AVAILABLE="yes",
|
||||
LIBSAMPLERATE_SYSTEM_AVAILABLE="no")
|
||||
|
||||
if test "x$samplerate_available_system" = "xyes" ; then
|
||||
LIBSAMPLERATE_SYSTEM_AVAILABLE="yes"
|
||||
LIBSAMPLERATE_SYSTEM_LIBS=$SAMPLERATE_LIBS
|
||||
LIBSAMPLERATE_SYSTEM_CXXFLAGS=$SAMPLERATE_CFLAGS
|
||||
LIBSAMPLERATE_SYSTEM_CPPSYMBOLS="USE_LIBSAMPLERATE"
|
||||
if test "$LIBSAMPLERATE_SYSTEM_AVAILABLE" = "yes" ; then
|
||||
AC_MSG_NOTICE([Libsamplerate libraries are available as system libraries])
|
||||
else
|
||||
LIBSAMPLERATE_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Libsamplerate libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if libsamplerate is available in the local tree
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/libsamplerate/src/samplerate.h,
|
||||
samplerate_h_found="yes",
|
||||
samplerate_h_found="no")
|
||||
LIBSAMPLERATE_LOCAL_AVAILABLE="yes",
|
||||
LIBSAMPLERATE_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "x$samplerate_h_found" = "xyes" ; then
|
||||
LIBSAMPLERATE_LOCAL_AVAILABLE="yes"
|
||||
LIBSAMPLERATE_LOCAL_LIBS="libsamplerate.a"
|
||||
LIBSAMPLERATE_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libsamplerate/src'
|
||||
LIBSAMPLERATE_LOCAL_CPPSYMBOLS="USE_LIBSAMPLERATE"
|
||||
if test "$LIBSAMPLERATE_LOCAL_AVAILABLE" = "yes" ; then
|
||||
AC_MSG_NOTICE([libsamplerate libraries are available in the local tree])
|
||||
else
|
||||
LIBSAMPLERATE_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libsamplerate libraries are NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBSAMPLERATE], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBSAMPLERATE], [
|
||||
if test "$LIBSAMPLERATE_USE_LOCAL" = yes; then
|
||||
SAMPLERATE_CFLAGS='-I$(top_srcdir)/lib-src/libsamplerate/src'
|
||||
SAMPLERATE_LIBS='$(top_builddir)/lib-src/libsamplerate/libsamplerate.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libsamplerate])
|
||||
fi
|
||||
|
||||
AC_SUBST([SAMPLERATE_CFLAGS])
|
||||
AC_SUBST([SAMPLERATE_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBSAMPLERATE], [test "$LIBSAMPLERATE_USE_LOCAL" = yes -o "$LIBSAMPLERATE_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBSAMPLERATE], [test "$LIBSAMPLERATE_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBSAMPLERATE_USE_LOCAL" = yes -o "$LIBSAMPLERATE_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LIBSAMPLERATE, 1,
|
||||
[Define if libsamplerate support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,6 +1,6 @@
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libsbsms.m4 serial 1
|
||||
# audacity_checklib_libsbsms.m4 serial 2
|
||||
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBSBSMS], [
|
||||
@@ -10,54 +10,50 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSBSMS], [
|
||||
LIBSBSMS_ARGUMENT=$withval,
|
||||
LIBSBSMS_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_SBSMS, 1,
|
||||
[Define if SBSMS support should be enabled])
|
||||
fi
|
||||
|
||||
dnl see if sbsms is installed on the system
|
||||
|
||||
PKG_CHECK_MODULES(SBSMS, sbsms >= 1.6.0,
|
||||
sbsms_available_system="yes",
|
||||
sbsms_available_system="no")
|
||||
LIBSBSMS_SYSTEM_AVAILABLE="yes",
|
||||
LIBSBSMS_SYSTEM_AVAILABLE="no")
|
||||
|
||||
|
||||
if test "x$sbsms_available_system" = "xyes" ; then
|
||||
LIBSBSMS_SYSTEM_AVAILABLE="yes"
|
||||
LIBSBSMS_SYSTEM_LIBS=$SBSMS_LIBS
|
||||
LIBSBSMS_SYSTEM_CXXFLAGS=$SBSMS_CFLAGS
|
||||
LIBSBSMS_SYSTEM_CPPSYMBOLS="USE_SBSMS"
|
||||
if test "$LIBSBSMS_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Libsbsms libraries are available as system libraries])
|
||||
else
|
||||
LIBSBSMS_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Libsbsms libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if libsbsms is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/sbsms/include/sbsms.h,
|
||||
sbsms_h_found="yes",
|
||||
sbsms_h_found="no")
|
||||
|
||||
if test "x$sbsms_h_found" = "xyes" ; then
|
||||
LIBSBSMS_LOCAL_AVAILABLE="yes"
|
||||
LIBSBSMS_LOCAL_LIBS="libsbsms.a"
|
||||
LIBSBSMS_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/sbsms/include'
|
||||
LIBSBSMS_LOCAL_CPPSYMBOLS="USE_SBSMS"
|
||||
LIBSBSMS_LOCAL_AVAILABLE="yes",
|
||||
LIBSBSMS_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$LIBSBSMS_LOCAL_AVAILABLE" = "yes"; then
|
||||
dnl do not build programs we don't need
|
||||
LIBSBSMS_LOCAL_CONFIGURE_ARGS="--disable-programs"
|
||||
|
||||
AC_MSG_NOTICE([libsbsms libraries are available in the local tree])
|
||||
else
|
||||
LIBSBSMS_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libsbsms libraries are NOT available in the local tree])
|
||||
fi
|
||||
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBSBSMS], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBSBSMS], [
|
||||
if test "$LIBSBSMS_USE_LOCAL" = yes; then
|
||||
SBSMS_CFLAGS='-I$(top_srcdir)/lib-src/sbsms/include'
|
||||
SBSMS_LIBS='$(top_builddir)/lib-src/sbsms/src/.libs/libsbsms.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/sbsms])
|
||||
fi
|
||||
|
||||
AC_SUBST([SBSMS_CFLAGS])
|
||||
AC_SUBST([SBSMS_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_SBSMS], [test "$LIBSBSMS_USE_LOCAL" = yes -o "$LIBSBSMS_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_SBSMS], [test "$LIBSBSMS_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBSBSMS_USE_LOCAL" = yes -o "$LIBSBSMS_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_SBSMS, 1,
|
||||
[Define if SBSMS support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl Add audacity / libsndfile license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libsndfile.m4 serial 2
|
||||
# audacity_checklib_libsndfile.m4 serial 3
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBSNDFILE], [
|
||||
|
||||
@@ -14,29 +14,22 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSNDFILE], [
|
||||
dnl see if libsndfile is installed in the system
|
||||
|
||||
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.0,
|
||||
sndfile_available_system="yes",
|
||||
sndfile_available_system="no")
|
||||
LIBSNDFILE_SYSTEM_AVAILABLE="yes",
|
||||
LIBSNDFILE_SYSTEM_AVAILABLE="no")
|
||||
|
||||
if test "x$sndfile_available_system" = "xyes" ; then
|
||||
LIBSNDFILE_SYSTEM_AVAILABLE="yes"
|
||||
LIBSNDFILE_SYSTEM_LIBS=$SNDFILE_LIBS
|
||||
LIBSNDFILE_SYSTEM_CXXFLAGS=$SNDFILE_CFLAGS
|
||||
if test "$LIBSNDFILE_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Libsndfile libraries are available as system libraries])
|
||||
else
|
||||
LIBSNDFILE_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Libsndfile libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if libsndfile is available in the local tree
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/libsndfile/src/sndfile.h.in,
|
||||
libsndfile_found="yes",
|
||||
libsndfile_found="no")
|
||||
LIBSNDFILE_LOCAL_AVAILABLE="yes",
|
||||
LIBSNDFILE_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "x$libsndfile_found" = "xyes" ; then
|
||||
LIBSNDFILE_LOCAL_AVAILABLE="yes"
|
||||
LIBSNDFILE_LOCAL_LIBS="libsndfile.a"
|
||||
LIBSNDFILE_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libsndfile/src'
|
||||
if test "$LIBSNDFILE_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([libsndfile libraries are available in this source tree])
|
||||
|
||||
dnl These must be visible so libvamp and sbsms can find us
|
||||
@@ -46,14 +39,20 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSNDFILE], [
|
||||
dnl Temporary fix for bug #248
|
||||
LIBSNDFILE_LOCAL_CONFIGURE_ARGS="--disable-sqlite --disable-external-libs --disable-alsa"
|
||||
else
|
||||
LIBSNDFILE_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libsndfile libraries are NOT available in this source tree])
|
||||
fi
|
||||
LIBSNDFILE_MIMETYPES="audio/basic;audio/x-aiff;audio/x-wav;"
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBSNDFILE], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBSNDFILE], [
|
||||
if test "$LIBSNDFILE_USE_LOCAL" = yes; then
|
||||
SNDFILE_CFLAGS='-I$(top_srcdir)/lib-src/libsndfile/src'
|
||||
SNDFILE_LIBS='$(top_builddir)/lib-src/libsndfile/src/.libs/libsndfile.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libsndfile])
|
||||
fi
|
||||
|
||||
AC_SUBST([SNDFILE_CFLAGS])
|
||||
AC_SUBST([SNDFILE_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBSNDFILE], [test "$LIBSNDFILE_USE_LOCAL" = yes])
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl Add Audacity / Soundtouch license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libsoundtouch.m4 serial 2
|
||||
# audacity_checklib_libsoundtouch.m4 serial 3
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBSOUNDTOUCH], [
|
||||
AC_ARG_WITH(soundtouch,
|
||||
@@ -10,65 +10,63 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSOUNDTOUCH], [
|
||||
LIBSOUNDTOUCH_ARGUMENT=$withval,
|
||||
LIBSOUNDTOUCH_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_SOUNDTOUCH, 1,
|
||||
[Define if SoundTouch support should be enabled])
|
||||
fi
|
||||
|
||||
dnl see if soundtouch is installed on the system
|
||||
dnl Fustratingly, the name of the pkg-config file keeps being changed
|
||||
dnl by upstream, despite the fact that they don't need to and shouldn't.
|
||||
dnl as a result (given that 1.3.x and 1.4.0 seem to have idenditcal APIs)
|
||||
dnl we have to check for two possible pkg-config files for the same package.
|
||||
|
||||
dnl check for 1.4.x first
|
||||
PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.4 >= 1.3.0,
|
||||
soundtouch_available_system="yes",
|
||||
soundtouch_available_system="no")
|
||||
dnl if not there, check for 1.3.x
|
||||
if test "x$soundtouch_available_system" = "xno" ; then
|
||||
PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0 >= 1.3.0,
|
||||
soundtouch_available_system="yes",
|
||||
soundtouch_available_system="no")
|
||||
PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch >= 1.3.0,
|
||||
LIBSOUNDTOUCH_SYSTEM_AVAILABLE="yes",
|
||||
LIBSOUNDTOUCH_SYSTEM_AVAILABLE="no")
|
||||
dnl if not there, check for 1.4.x
|
||||
if test "$LIBSOUNDTOUCH_SYSTEM_AVAILABLE" = "no"; then
|
||||
PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.4 >= 1.3.0,
|
||||
LIBSOUNDTOUCH_SYSTEM_AVAILABLE="yes",
|
||||
LIBSOUNDTOUCH_SYSTEM_AVAILABLE="no")
|
||||
fi
|
||||
if test "x$soundtouch_available_system" = "xno" ; then
|
||||
PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch >= 1.3.0,
|
||||
soundtouch_available_system="yes",
|
||||
soundtouch_available_system="no")
|
||||
dnl if not there, check for 1.3.x
|
||||
if test "$LIBSOUNDTOUCH_SYSTEM_AVAILABLE" = "no"; then
|
||||
PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0 >= 1.3.0,
|
||||
LIBSOUNDTOUCH_SYSTEM_AVAILABLE="yes",
|
||||
LIBSOUNDTOUCH_SYSTEM_AVAILABLE="no")
|
||||
fi
|
||||
|
||||
if test "x$soundtouch_available_system" = "xyes" ; then
|
||||
LIBSOUNDTOUCH_SYSTEM_AVAILABLE="yes"
|
||||
LIBSOUNDTOUCH_SYSTEM_LIBS=$SOUNDTOUCH_LIBS
|
||||
LIBSOUNDTOUCH_SYSTEM_CXXFLAGS=$SOUNDTOUCH_CFLAGS
|
||||
LIBSOUNDTOUCH_SYSTEM_CPPSYMBOLS="USE_SOUNDTOUCH"
|
||||
if test "$LIBSOUNDTOUCH_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Libsoundtouch libraries are available as system libraries])
|
||||
else
|
||||
LIBSOUNDTOUCH_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Libsoundtouch libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if libsoundtouch is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/soundtouch/include/SoundTouch.h,
|
||||
soundtouch_h_found="yes",
|
||||
soundtouch_h_found="no")
|
||||
LIBSOUNDTOUCH_LOCAL_AVAILABLE="yes",
|
||||
LIBSOUNDTOUCH_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "x$soundtouch_h_found" = "xyes" ; then
|
||||
LIBSOUNDTOUCH_LOCAL_AVAILABLE="yes"
|
||||
LIBSOUNDTOUCH_LOCAL_LIBS="libSoundTouch.a"
|
||||
LIBSOUNDTOUCH_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/soundtouch/include'
|
||||
LIBSOUNDTOUCH_LOCAL_CPPSYMBOLS="USE_SOUNDTOUCH"
|
||||
if test "$LIBSOUNDTOUCH_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([libsoundtouch libraries are available in the local tree])
|
||||
else
|
||||
LIBSOUNDTOUCH_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libsoundtouch libraries are NOT available in the local tree])
|
||||
fi
|
||||
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBSOUNDTOUCH], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBSOUNDTOUCH], [
|
||||
if test "$LIBSOUNDTOUCH_USE_LOCAL" = yes; then
|
||||
SOUNDTOUCH_CFLAGS='-I$(top_srcdir)/lib-src/soundtouch/include'
|
||||
SOUNDTOUCH_LIBS='$(top_builddir)/lib-src/soundtouch/source/SoundTouch/.libs/libSoundTouch.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/soundtouch])
|
||||
fi
|
||||
|
||||
AC_SUBST([SOUNDTOUCH_CFLAGS])
|
||||
AC_SUBST([SOUNDTOUCH_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBSOUNDTOUCH], [test "$LIBSOUNDTOUCH_USE_LOCAL" = yes -o "$LIBSOUNDTOUCH_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBSOUNDTOUCH], [test "$LIBSOUNDTOUCH_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBSOUNDTOUCH_USE_LOCAL" = yes -o "$LIBSOUNDTOUCH_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_SOUNDTOUCH, 1,
|
||||
[Define if SoundTouch support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,17 +1,9 @@
|
||||
dnl Add Audacity license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libsoxr.m4 serial 2
|
||||
# audacity_checklib_libsoxr.m4 serial 3
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBSOXR], [
|
||||
|
||||
dnl These four lines are never executed, but they document the USE_LIBSOXR
|
||||
dnl pre-processor directive (for configunix.h etc)
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LIBSOXR, 1,
|
||||
[Define if libsoxr support should be enabled])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(libsoxr,
|
||||
[AS_HELP_STRING([--with-libsoxr],
|
||||
[use libsoxr for sample rate conversion])],
|
||||
@@ -22,44 +14,46 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSOXR], [
|
||||
dnl more recent)
|
||||
|
||||
PKG_CHECK_MODULES(SOXR, soxr >= 0.0.5,
|
||||
soxr_available_system="yes",
|
||||
soxr_available_system="no")
|
||||
LIBSOXR_SYSTEM_AVAILABLE="yes",
|
||||
LIBSOXR_SYSTEM_AVAILABLE="no")
|
||||
|
||||
if test "x$soxr_available_system" = "xyes" ; then
|
||||
LIBSOXR_SYSTEM_AVAILABLE="yes"
|
||||
LIBSOXR_SYSTEM_LIBS=$SOXR_LIBS
|
||||
LIBSOXR_SYSTEM_CXXFLAGS=$SOXR_CFLAGS
|
||||
LIBSOXR_SYSTEM_CPPSYMBOLS="USE_LIBSOXR"
|
||||
if test "$LIBSOXR_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Soxr libraries are available as system libraries])
|
||||
else
|
||||
LIBSOXR_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Soxr libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if libsoxr is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/libsoxr/src/soxr.h,
|
||||
soxr_h_found="yes",
|
||||
soxr_h_found="no")
|
||||
|
||||
if test "x$soxr_h_found" = "xyes" ; then
|
||||
LIBSOXR_LOCAL_AVAILABLE="yes"
|
||||
LIBSOXR_LOCAL_LIBS="libsoxr.a"
|
||||
LIBSOXR_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libsoxr/src'
|
||||
LIBSOXR_LOCAL_CPPSYMBOLS="USE_LIBSOXR"
|
||||
LIBSOXR_LOCAL_AVAILABLE="yes",
|
||||
LIBSOXR_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$LIBSOXR_LOCAL_AVAILABLE" = "yes"; then
|
||||
# Breaks other other libraries in Audacity tree; but why is ./configure
|
||||
# passing options specific to this library to other libraries?
|
||||
#LIBSOXR_LOCAL_CONFIGURE_ARGS="\"-DBUILD_SHARED_LIBS=OFF -DWITH_OPENMP=OFF\""
|
||||
AC_MSG_NOTICE([libsoxr libraries are available in the local tree])
|
||||
else
|
||||
LIBSOXR_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libsoxr libraries are NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBSOXR], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBSOXR], [
|
||||
if test "$LIBSOXR_USE_LOCAL" = yes; then
|
||||
SOXR_CFLAGS='-I$(top_srcdir)/lib-src/libsoxr/src'
|
||||
SOXR_LIBS='$(top_builddir)/lib-src/libsoxr/src/libsoxr.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libsoxr])
|
||||
fi
|
||||
|
||||
AC_SUBST([SOXR_CFLAGS])
|
||||
AC_SUBST([SOXR_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBSOXR], [test "$LIBSOXR_USE_LOCAL" = yes -o "$LIBSOXR_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBSOXR], [test "$LIBSOXR_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBSOXR_USE_LOCAL" = yes -o "$LIBSOXR_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LIBSOXR, 1,
|
||||
[Define if libsoxr support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl add Audacity / Twolame license ?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libtwolame.m4 serial 1
|
||||
# audacity_checklib_libtwolame.m4 serial 2
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBTWOLAME], [
|
||||
AC_ARG_WITH(libtwolame,
|
||||
@@ -10,53 +10,49 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBTWOLAME], [
|
||||
LIBTWOLAME_ARGUMENT=$withval,
|
||||
LIBTWOLAME_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LIBTWOLAME, 1,
|
||||
[Define if libtwolame (MP2 export) support should be enabled])
|
||||
fi
|
||||
|
||||
dnl Check for a system copy of libtwolame to use, which needs to be
|
||||
dnl pretty current to work
|
||||
|
||||
PKG_CHECK_MODULES(LIBTWOLAME, twolame >= 0.3.9,
|
||||
twolame_available_system="yes",
|
||||
twolame_available_system="no")
|
||||
LIBTWOLAME_SYSTEM_AVAILABLE="yes",
|
||||
LIBTWOLAME_SYSTEM_AVAILABLE="no")
|
||||
|
||||
if test "x$twolame_available_system" = "xyes" ; then
|
||||
LIBTWOLAME_SYSTEM_AVAILABLE="yes"
|
||||
LIBTWOLAME_SYSTEM_LIBS=$LIBTWOLAME_LIBS
|
||||
LIBTWOLAME_SYSTEM_CXXFLAGS=$LIBTWOLAME_CFLAGS
|
||||
LIBTWOLAME_SYSTEM_CPPSYMBOLS="USE_LIBTWOLAME"
|
||||
if test "$LIBTWOLAME_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Libtwolame library available as system library])
|
||||
else
|
||||
LIBTWOLAME_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Libtwolame library NOT available as system library])
|
||||
fi
|
||||
|
||||
dnl see if libtwolame is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/twolame/libtwolame/twolame.h,
|
||||
twolame_h_found="yes",
|
||||
twolame_h_found="no")
|
||||
|
||||
if test "x$twolame_h_found" = "xyes" ; then
|
||||
LIBTWOLAME_LOCAL_AVAILABLE="yes"
|
||||
LIBTWOLAME_LOCAL_LIBS="libtwolame.a"
|
||||
LIBTWOLAME_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/twolame/libtwolame'
|
||||
LIBTWOLAME_LOCAL_CPPSYMBOLS="USE_LIBTWOLAME"
|
||||
LIBTWOLAME_LOCAL_AVAILABLE="yes",
|
||||
LIBTWOLAME_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$LIBTWOLAME_LOCAL_AVAILABLE" = "yes"; then
|
||||
dnl disable programs we don't need to build
|
||||
LIBTWOLAME_LOCAL_CONFIGURE_ARGS="--disable-programs"
|
||||
|
||||
AC_MSG_NOTICE([libtwolame library is available in the local tree])
|
||||
else
|
||||
LIBTWOLAME_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([libtwolame library is NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBTWOLAME], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBTWOLAME], [
|
||||
if test "$LIBTWOLAME_USE_LOCAL" = yes; then
|
||||
LIBTWOLAME_CFLAGS='-I$(top_srcdir)/lib-src/twolame/libtwolame'
|
||||
LIBTWOLAME_LIBS='$(top_builddir)/lib-src/twolame/libtwolame/.libs/libtwolame.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/twolame])
|
||||
fi
|
||||
|
||||
AC_SUBST([LIBTWOLAME_CFLAGS])
|
||||
AC_SUBST([LIBTWOLAME_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBTWOLAME], [test "$LIBTWOLAME_USE_LOCAL" = yes -o "$LIBTWOLAME_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBTWOLAME], [test "$LIBTWOLAME_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBTWOLAME_USE_LOCAL" = yes -o "$LIBTWOLAME_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LIBTWOLAME, 1,
|
||||
[Define if libtwolame (MP2 export) support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl Todo: add Vamp / Audacity license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libvamp.m4 serial 2
|
||||
# audacity_checklib_libvamp.m4 serial 3
|
||||
|
||||
dnl Check for system copy of libvamp we can use for Vamp plug-in support
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBVAMP], [
|
||||
@@ -11,60 +11,47 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBVAMP], [
|
||||
LIBVAMP_ARGUMENT=$withval,
|
||||
LIBVAMP_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_VAMP, 1,
|
||||
[Define if Vamp analysis plugin support should be enabled])
|
||||
fi
|
||||
|
||||
dnl System may include Vamp headers and library, though we prefer local ones
|
||||
|
||||
PKG_CHECK_MODULES(VAMP, vamp-hostsdk >= 2.0,
|
||||
vamp_available_system="yes",
|
||||
vamp_available_system="no")
|
||||
LIBVAMP_SYSTEM_AVAILABLE="yes",
|
||||
LIBVAMP_SYSTEM_AVAILABLE="no")
|
||||
|
||||
if test "x$vamp_available_system" = "xyes" ; then
|
||||
LIBVAMP_SYSTEM_AVAILABLE="yes"
|
||||
LIBVAMP_SYSTEM_LIBS=$VAMP_LIBS
|
||||
LIBVAMP_SYSTEM_CXXFLAGS=$VAMP_CFLAGS
|
||||
dnl still need these local objects for the support in audacity
|
||||
LIBVAMP_SYSTEM_OPTOBJS="effects/vamp/VampEffect.o effects/vamp/LoadVamp.o"
|
||||
LIBVAMP_SYSTEM_CPPSYMBOLS="USE_VAMP"
|
||||
if test "$LIBVAMP_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Vamp libraries are available as system libraries])
|
||||
else
|
||||
LIBVAMP_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Vamp libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if Vamp is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/libvamp/vamp-hostsdk/PluginLoader.h,
|
||||
vamp_h_found="yes",
|
||||
vamp_h_found="no")
|
||||
LIBVAMP_LOCAL_AVAILABLE="yes",
|
||||
LIBVAMP_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "x$vamp_h_found" = "xyes" ; then
|
||||
LIBVAMP_LOCAL_AVAILABLE="yes"
|
||||
dnl Add vamp to the list of things to build in lib-src
|
||||
LIBVAMP_LOCAL_BUILD="vamp-sdk"
|
||||
dnl compiler and linker flags
|
||||
LIBVAMP_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libvamp'
|
||||
LIBVAMP_LOCAL_LIBS="libvamp-hostsdk.a"
|
||||
dnl add some extra object files we can build
|
||||
LIBVAMP_LOCAL_OPTOBJS="effects/vamp/VampEffect.o effects/vamp/LoadVamp.o"
|
||||
dnl define a pre-processor symbol to tell other code that the vamp host
|
||||
dnl SDK is available
|
||||
LIBVAMP_LOCAL_CPPSYMBOLS="USE_VAMP"
|
||||
dnl do not build programs we don't need
|
||||
if test "$LIBVAMP_LOCAL_AVAILABLE" = "yes"; then
|
||||
LIBVAMP_LOCAL_CONFIGURE_ARGS="--disable-programs"
|
||||
|
||||
AC_MSG_NOTICE([Vamp libraries are available in the local tree])
|
||||
else
|
||||
LIBVAMP_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Vamp libraries are NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBVAMP], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBVAMP], [
|
||||
if test "$LIBVAMP_USE_LOCAL" = yes; then
|
||||
VAMP_CFLAGS='-I$(top_srcdir)/lib-src/libvamp'
|
||||
VAMP_LIBS='$(top_builddir)/lib-src/libvamp/libvamp-hostsdk.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libvamp])
|
||||
fi
|
||||
|
||||
AC_SUBST([VAMP_CFLAGS])
|
||||
AC_SUBST([VAMP_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_VAMP], [test "$LIBVAMP_USE_LOCAL" = yes -o "$LIBVAMP_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_VAMP], [test "$LIBVAMP_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBVAMP_USE_LOCAL" = yes -o "$LIBVAMP_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_VAMP, 1,
|
||||
[Define if Vamp analysis plugin support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -2,15 +2,9 @@ dnl Add audacity / vorbis license?
|
||||
dnl
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_libvorbis.m4 serial 3
|
||||
# audacity_checklib_libvorbis.m4 serial 4
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LIBVORBIS], [
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LIBVORBIS, 1,
|
||||
[Define if the ogg vorbis decoding library is present])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(libvorbis,
|
||||
[AS_HELP_STRING([--with-libvorbis],
|
||||
[use libvorbis for Ogg Vorbis support])],
|
||||
@@ -19,23 +13,13 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBVORBIS], [
|
||||
|
||||
dnl See if Vorbis is installed in the system
|
||||
|
||||
AC_CHECK_LIB(vorbisfile,
|
||||
vorbis_bitrate_addblock,
|
||||
lib_found="yes",
|
||||
lib_found="no",
|
||||
-lvorbis -logg)
|
||||
PKG_CHECK_MODULES(LIBVORBIS, vorbisenc vorbisfile,
|
||||
LIBVORBIS_SYSTEM_AVAILABLE="yes",
|
||||
LIBVORBIS_SYSTEM_AVAILABLE="no")
|
||||
|
||||
AC_CHECK_HEADER(vorbis/vorbisfile.h,
|
||||
header_found="yes",
|
||||
header_found="no")
|
||||
|
||||
if test "x$lib_found" = "xyes" && test "x$header_found" = "xyes" ; then
|
||||
LIBVORBIS_SYSTEM_AVAILABLE="yes"
|
||||
LIBVORBIS_SYSTEM_LIBS="-lvorbisenc -lvorbisfile -lvorbis -logg"
|
||||
LIBVORBIS_SYSTEM_CPPSYMBOLS="USE_LIBVORBIS"
|
||||
if test "$LIBVORBIS_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([Vorbis libraries are available as system libraries])
|
||||
else
|
||||
LIBVORBIS_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([Vorbis libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
@@ -49,20 +33,13 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBVORBIS], [
|
||||
ogg_h_available="yes",
|
||||
ogg_h_available="no")
|
||||
|
||||
if test "x$vorbisenc_h_available" = "xyes" && test "x$ogg_h_available" = "xyes" ; then
|
||||
if test "$vorbisenc_h_available" = "yes" -a "$ogg_h_available" = "yes"; then
|
||||
LIBVORBIS_LOCAL_AVAILABLE="yes"
|
||||
|
||||
LIBVORBIS_LOCAL_LIBS="libvorbisenc.a libvorbisfile.a libvorbis.a libogg.a"
|
||||
|
||||
LIBVORBIS_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libogg/include'
|
||||
LIBVORBIS_LOCAL_CXXFLAGS="$LIBVORBIS_LOCAL_CXXFLAGS -I\$(top_srcdir)/lib-src/libvorbis/include"
|
||||
|
||||
LIBVORBIS_LOCAL_CPPSYMBOLS="USE_LIBVORBIS"
|
||||
|
||||
dnl We need to override the pkg-config check for libogg by passing
|
||||
dnl OGG_CFLAGS and OGG_LIBS to the configure script of libvorbis.
|
||||
libogg_dir="$(pwd)/lib-src/libogg"
|
||||
LIBVORBIS_LOCAL_CONFIGURE_ARGS="--disable-oggtest OGG_CFLAGS=-I${libogg_dir}/include OGG_LIBS=${libogg_dir}/src/.libs/libogg.a"
|
||||
LIBVORBIS_LOCAL_CONFIGURE_ARGS="--disable-oggtest OGG_CFLAGS=-I${libogg_dir}/include OGG_LIBS=${libogg_dir}/src/libogg.la"
|
||||
|
||||
dnl libflac needs libogg too. So we need to pass these flags to the
|
||||
dnl configure script of libflac, because it does not use pkg-config.
|
||||
@@ -75,8 +52,21 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBVORBIS], [
|
||||
LIBVORBIS_MIMETYPES="application/ogg;audio/x-vorbis+ogg;"
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LIBVORBIS], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LIBVORBIS], [
|
||||
if test "$LIBVORBIS_USE_LOCAL" = yes; then
|
||||
LIBVORBIS_CFLAGS='-I$(top_srcdir)/lib-src/libogg/include -I$(top_srcdir)/lib-src/libvorbis/include'
|
||||
LIBVORBIS_LIBS='$(top_builddir)/lib-src/libvorbis/lib/libvorbisenc.la $(top_builddir)/lib-src/libvorbis/lib/libvorbisfile.la'
|
||||
AC_CONFIG_SUBDIRS([lib-src/libogg lib-src/libvorbis])
|
||||
fi
|
||||
|
||||
AC_SUBST([LIBVORBIS_CFLAGS])
|
||||
AC_SUBST([LIBVORBIS_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LIBVORBIS], [test "$LIBVORBIS_USE_LOCAL" = yes -o "$LIBVORBIS_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LIBVORBIS], [test "$LIBVORBIS_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LIBVORBIS_USE_LOCAL" = yes -o "$LIBVORBIS_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LIBVORBIS, 1,
|
||||
[Define if the ogg vorbis decoding library is present])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,6 +1,6 @@
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_lv2.m4 serial 1
|
||||
# audacity_checklib_lv2.m4 serial 2
|
||||
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_LV2], [
|
||||
@@ -10,54 +10,48 @@ AC_DEFUN([AUDACITY_CHECKLIB_LV2], [
|
||||
LV2_ARGUMENT=$withval,
|
||||
LV2_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_LV2, 1,
|
||||
[Define if LV2 support should be enabled])
|
||||
fi
|
||||
|
||||
dnl see if lv2 is installed on the system
|
||||
|
||||
PKG_CHECK_MODULES(LV2, [lv2 lilv-0 >= 0.16],
|
||||
lv2_available_system="yes",
|
||||
lv2_available_system="no")
|
||||
LV2_SYSTEM_AVAILABLE="yes",
|
||||
LV2_SYSTEM_AVAILABLE="no")
|
||||
|
||||
|
||||
if test "x$lv2_available_system" = "xyes" ; then
|
||||
LV2_SYSTEM_AVAILABLE="yes"
|
||||
LV2_SYSTEM_LIBS=$LV2_LIBS
|
||||
LV2_SYSTEM_CXXFLAGS=$LV2_CFLAGS
|
||||
LV2_SYSTEM_CPPSYMBOLS="USE_LV2"
|
||||
LV2_SYSTEM_OPTOBJS="effects/lv2/LoadLV2.o effects/lv2/LV2Effect.o effects/lv2/LV2PortGroup.o"
|
||||
|
||||
if test "$LV2_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([LV2 libraries are available as system libraries])
|
||||
else
|
||||
LV2_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([LV2 libraries are NOT available as system libraries])
|
||||
fi
|
||||
|
||||
dnl see if LV2 is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/lv2/configure,
|
||||
lv2_configure_found="yes",
|
||||
lv2_configure_found="no")
|
||||
|
||||
if test "x$lv2_configure_found" = "xyes" ; then
|
||||
LV2_LOCAL_AVAILABLE="yes"
|
||||
LV2_LOCAL_LIBS="liblv2.a"
|
||||
LV2_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/lv2/include'
|
||||
LV2_LOCAL_CPPSYMBOLS="USE_LV2"
|
||||
LV2_LOCAL_OPTOBJS="effects/lv2/LoadLV2.o effects/lv2/LV2Effect.o effects/lv2/LV2PortGroup.o"
|
||||
LV2_LOCAL_AVAILABLE="yes",
|
||||
LV2_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$LV2_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([LV2 libraries are available in the local tree])
|
||||
else
|
||||
LV2_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([LV2 libraries are NOT available in the local tree])
|
||||
fi
|
||||
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_LV2], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_LV2], [
|
||||
if test "$LV2_USE_LOCAL" = yes; then
|
||||
LV2_CFLAGS='-I$(top_srcdir)/lib-src/lv2/include'
|
||||
LV2_LIBS='$(top_builddir)/lib-src/lv2/liblv2.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/lv2])
|
||||
fi
|
||||
|
||||
AC_SUBST([LV2_CFLAGS])
|
||||
AC_SUBST([LV2_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LV2], [test "$LV2_USE_LOCAL" = yes -o "$LV2_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_LV2], [test "$LV2_USE_LOCAL" = yes])
|
||||
|
||||
if test "$LV2_USE_LOCAL" = yes -o "$LV2_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_LV2, 1,
|
||||
[Define if LV2 support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,6 +1,6 @@
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_portaudio.m4 serial 1
|
||||
# audacity_checklib_portaudio.m4 serial 2
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_PORTAUDIO], [
|
||||
AC_ARG_WITH(portaudio,
|
||||
@@ -11,53 +11,51 @@ AC_DEFUN([AUDACITY_CHECKLIB_PORTAUDIO], [
|
||||
dnl see if portaudio is installed on the system
|
||||
|
||||
PKG_CHECK_MODULES(PORTAUDIO, portaudio-2.0 >= 19,
|
||||
portaudio_available_system="yes",
|
||||
portaudio_available_system="no")
|
||||
PORTAUDIO_SYSTEM_AVAILABLE="yes",
|
||||
PORTAUDIO_SYSTEM_AVAILABLE="no")
|
||||
|
||||
if test "x$portaudio_available_system" = "xyes" ; then
|
||||
if test "$PORTAUDIO_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_EGREP_HEADER([Pa_GetStreamHostApiType], [portaudio.h],
|
||||
[have_portaudio_support=yes], [have_portaudio_support=no])
|
||||
|
||||
if test "x$have_portaudio_support" = "xyes" ; then
|
||||
if test "$have_portaudio_support" = "yes"; then
|
||||
PORTAUDIO_SYSTEM_AVAILABLE="yes"
|
||||
PORTAUDIO_SYSTEM_LIBS=$PORTAUDIO_LIBS
|
||||
PORTAUDIO_SYSTEM_CXXFLAGS=$PORTAUDIO_CFLAGS
|
||||
AC_MSG_NOTICE([portaudio19 library is available as system library])
|
||||
else
|
||||
PORTAUDIO_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([portaudio19 library is available as system library, but does not have the Pa_GetStreamHostApiType function.])
|
||||
fi
|
||||
else
|
||||
PORTAUDIO_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([portaudio19 library is NOT available as system library])
|
||||
fi
|
||||
|
||||
dnl see if portaudio is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/portaudio-v19/include/portaudio.h,
|
||||
portaudio_h_found="yes",
|
||||
portaudio_h_found="no")
|
||||
|
||||
if test "x$portaudio_h_found" = "xyes" ; then
|
||||
PORTAUDIO_LOCAL_AVAILABLE="yes"
|
||||
PORTAUDIO_LOCAL_LIBS="libportaudio.a"
|
||||
PORTAUDIO_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/portaudio-v19/include'
|
||||
PORTAUDIO_LOCAL_AVAILABLE="yes",
|
||||
PORTAUDIO_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$PORTAUDIO_LOCAL_AVAILABLE" = "yes"; then
|
||||
dnl We need to override the pkg-config check for portmixer by passing
|
||||
dnl PORTAUDIO_CFLAGS and PORTAUDIO_LIBS to the configure script of portmixer.
|
||||
portaudio_dir="$(pwd)/lib-src/portaudio-v19"
|
||||
PORTAUDIO_LOCAL_CONFIGURE_ARGS="PORTAUDIO_CFLAGS=-I${portaudio_dir}/include PORTAUDIO_LIBS=${portaudio_dir}/lib/.libs/libportaudio.a"
|
||||
|
||||
PORTAUDIO_LOCAL_CONFIGURE_ARGS="PORTAUDIO_CFLAGS=-I${portaudio_dir}/include PORTAUDIO_LIBS=${portaudio_dir}/lib/libportaudio.la"
|
||||
AC_MSG_NOTICE([portaudio19 library is available in the local tree])
|
||||
else
|
||||
PORTAUDIO_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([portaudio19 library is NOT available in the local tree])
|
||||
fi
|
||||
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_PORTAUDIO], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_PORTAUDIO], [
|
||||
if test "$PORTAUDIO_USE_LOCAL" = yes; then
|
||||
PORTAUDIO_CFLAGS='-I$(top_srcdir)/lib-src/portaudio-v19/include'
|
||||
PORTAUDIO_LIBS='$(top_builddir)/lib-src/portaudio-v19/lib/libportaudio.la'
|
||||
AC_CONFIG_SUBDIRS([lib-src/portaudio-v19])
|
||||
fi
|
||||
|
||||
AC_SUBST([PORTAUDIO_CFLAGS])
|
||||
AC_SUBST([PORTAUDIO_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LOCAL_PORTAUDIO], [test "$PORTAUDIO_USE_LOCAL" = yes])
|
||||
])
|
||||
|
@@ -2,7 +2,7 @@ dnl Add Audacity / portSMF license?
|
||||
dnl
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_portsmf.m4 serial 1
|
||||
# audacity_checklib_portsmf.m4 serial 2
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_PORTSMF], [
|
||||
|
||||
@@ -12,48 +12,44 @@ AC_DEFUN([AUDACITY_CHECKLIB_PORTSMF], [
|
||||
PORTSMF_ARGUMENT=$withval,
|
||||
PORTSMF_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_MIDI, 1,
|
||||
[Define if midi support should be enabled])
|
||||
fi
|
||||
|
||||
dnl see if libportsmf is installed on the system
|
||||
|
||||
PKG_CHECK_MODULES(PORTSMF, portSMF,
|
||||
portsmf_available_system="yes",
|
||||
portsmf_available_system="no")
|
||||
PORTSMF_SYSTEM_AVAILABLE="yes",
|
||||
PORTSMF_SYSTEM_AVAILABLE="no")
|
||||
|
||||
if test "x$portsmf_available_system" = "xyes" ; then
|
||||
PORTSMF_SYSTEM_AVAILABLE="yes"
|
||||
PORTSMF_SYSTEM_LIBS="$PORTSMF_LIBS"
|
||||
PORTSMF_SYSTEM_CXXFLAGS="$PORTSMF_CFLAGS"
|
||||
PORTSMF_SYSTEM_CPPSYMBOLS="USE_MIDI"
|
||||
dnl extra objects we can now compile
|
||||
PORTSMF_SYSTEM_OPTOBJS="NoteTrack.o import/ImportMIDI.o"
|
||||
if test "$PORTSMF_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([portSMF library is available as system library])
|
||||
else
|
||||
PORTSMF_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([portSMF library is NOT available as system library])
|
||||
fi
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/portsmf/allegro.h,
|
||||
allegro_h_available="yes",
|
||||
allegro_h_available="no")
|
||||
PORTSMF_LOCAL_AVAILABLE="yes",
|
||||
PORTSMF_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "x$allegro_h_available" = "xyes" ; then
|
||||
PORTSMF_LOCAL_AVAILABLE="yes"
|
||||
PORTSMF_LOCAL_LIBS="libportSMF.a"
|
||||
PORTSMF_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/portsmf'
|
||||
PORTSMF_LOCAL_CPPSYMBOLS="USE_MIDI"
|
||||
dnl extra objects we can now compile
|
||||
PORTSMF_LOCAL_OPTOBJS="NoteTrack.o import/ImportMIDI.o"
|
||||
if test "$PORTSMF_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([portSMF library is available in the local tree])
|
||||
else
|
||||
PORTSMF_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([portSMF library is NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_PORTSMF], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_PORTSMF], [
|
||||
if test "$PORTSMF_USE_LOCAL" = yes; then
|
||||
PORTSMF_CFLAGS='-I$(top_srcdir)/lib-src/portsmf'
|
||||
PORTSMF_LIBS='$(top_builddir)/lib-src/portsmf/libportSMF.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/portsmf])
|
||||
fi
|
||||
|
||||
AC_SUBST([PORTSMF_CFLAGS])
|
||||
AC_SUBST([PORTSMF_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_PORTSMF], [test "$PORTSMF_USE_LOCAL" = yes -o "$PORTSMF_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_PORTSMF], [test "$PORTSMF_USE_LOCAL" = yes])
|
||||
|
||||
if test "$PORTSMF_USE_LOCAL" = yes -o "$PORTSMF_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_MIDI, 1,
|
||||
[Define if midi support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,58 +1,55 @@
|
||||
dnl add Audacity / TagLib license ?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_taglib.m4 serial 1
|
||||
# audacity_checklib_taglib.m4 serial 2
|
||||
|
||||
AC_DEFUN([AUDACITY_CHECKLIB_TAGLIB], [
|
||||
AC_ARG_WITH(taglib,
|
||||
AC_ARG_WITH([taglib],
|
||||
[AS_HELP_STRING([--with-taglib],
|
||||
[use TagLib for metadata support ])],
|
||||
TAGLIB_ARGUMENT=$withval,
|
||||
TAGLIB_ARGUMENT="unspecified")
|
||||
|
||||
if false ; then
|
||||
AC_DEFINE(USE_TAGLIB, 1,
|
||||
[Define if TagLib (metadata export) support should be enabled])
|
||||
fi
|
||||
|
||||
dnl Check for a system copy of TagLib to use
|
||||
|
||||
PKG_CHECK_MODULES(TAGLIB, taglib >= 1.5,
|
||||
taglib_available_system="yes",
|
||||
taglib_available_system="no")
|
||||
PKG_CHECK_MODULES([TAGLIB], [taglib >= 1.5],
|
||||
[TAGLIB_SYSTEM_AVAILABLE="yes"],
|
||||
[TAGLIB_SYSTEM_AVAILABLE="no"])
|
||||
|
||||
if test "x$taglib_available_system" = "xyes" ; then
|
||||
TAGLIB_SYSTEM_AVAILABLE="yes"
|
||||
TAGLIB_SYSTEM_LIBS=$TAGLIB_LIBS
|
||||
TAGLIB_SYSTEM_CXXFLAGS=$TAGLIB_CFLAGS
|
||||
TAGLIB_SYSTEM_CPPSYMBOLS="USE_TAGLIB"
|
||||
if test "$TAGLIB_SYSTEM_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([TagLib library available as system library])
|
||||
else
|
||||
TAGLIB_SYSTEM_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([TagLib library NOT available as system library])
|
||||
fi
|
||||
|
||||
dnl see if TagLib is available locally
|
||||
|
||||
AC_CHECK_FILE(${srcdir}/lib-src/taglib/taglib/tag.h,
|
||||
tag_h_found="yes",
|
||||
tag_h_found="no")
|
||||
|
||||
if test "x$tag_h_found" = "xyes" ; then
|
||||
TAGLIB_LOCAL_AVAILABLE="yes"
|
||||
TAGLIB_LOCAL_LIBS="taglib.a"
|
||||
TAGLIB_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/taglib/taglib'
|
||||
TAGLIB_LOCAL_CPPSYMBOLS="USE_TAGLIB"
|
||||
AC_CHECK_FILE([${srcdir}/lib-src/taglib/taglib/tag.h],
|
||||
[TAGLIB_LOCAL_AVAILABLE="yes"],
|
||||
[TAGLIB_LOCAL_AVAILABLE="no"])
|
||||
|
||||
if test "$TAGLIB_LOCAL_AVAILABLE" = "yes"; then
|
||||
AC_MSG_NOTICE([TagLib library is available in the local tree])
|
||||
else
|
||||
TAGLIB_LOCAL_AVAILABLE="no"
|
||||
AC_MSG_NOTICE([TagLib library is NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_TAGLIB], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_TAGLIB], [
|
||||
if test "$TAGLIB_USE_LOCAL" = yes; then
|
||||
TAGLIB_CFLAGS='-I$(top_srcdir)/lib-src/taglib/taglib'
|
||||
TAGLIB_LIBS='$(top_builddir)/lib-src/taglib/taglib/.libs/libtag.a'
|
||||
AC_CONFIG_SUBDIRS([lib-src/taglib])
|
||||
fi
|
||||
|
||||
AC_SUBST([TAGLIB_CFLAGS])
|
||||
AC_SUBST([TAGLIB_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_TAGLIB], [test "$TAGLIB_USE_LOCAL" = yes -o "$TAGLIB_USE_SYSTEM" = yes])
|
||||
AM_CONDITIONAL([USE_LOCAL_TAGLIB], [test "$TAGLIB_USE_LOCAL" = yes])
|
||||
|
||||
if test "$TAGLIB_USE_LOCAL" = yes -o "$TAGLIB_USE_SYSTEM" = yes; then
|
||||
AC_DEFINE(USE_TAGLIB, 1,
|
||||
[Define if TagLib (metadata export) support should be enabled])
|
||||
fi
|
||||
])
|
||||
|
@@ -1,7 +1,7 @@
|
||||
dnl Add Audacity/WX license?
|
||||
dnl Please increment the serial number below whenever you alter this macro
|
||||
dnl for the benefit of automatic macro update systems
|
||||
# audacity_checklib_widgetextra.m4 serial 2
|
||||
# audacity_checklib_widgetextra.m4 serial 3
|
||||
|
||||
dnl A function to check for the correct presence of lib-widget-extra in the
|
||||
dnl lib-src tree. Note that this is a mandatory library, and
|
||||
@@ -21,8 +21,6 @@ AC_DEFUN([AUDACITY_CHECKLIB_WIDGETEXTRA], [
|
||||
WIDGETEXTRA_SYSTEM_AVAILABLE="no")
|
||||
|
||||
if test "$WIDGETEXTRA_SYSTEM_AVAILABLE" = "yes"; then
|
||||
WIDGETEXTRA_SYSTEM_LIBS=$WIDGETEXTRA_LIBS
|
||||
WIDGETEXTRA_SYSTEM_CXXFLAGS=$WIDGETEXTRA_CFLAGS
|
||||
AC_MSG_NOTICE([libwidgetextra library is available as system library.])
|
||||
else
|
||||
AC_MSG_NOTICE([libwidgetextra library is NOT available as system library.])
|
||||
@@ -35,16 +33,21 @@ AC_DEFUN([AUDACITY_CHECKLIB_WIDGETEXTRA], [
|
||||
WIDGETEXTRA_LOCAL_AVAILABLE="no")
|
||||
|
||||
if test "$WIDGETEXTRA_LOCAL_AVAILABLE" = "yes"; then
|
||||
WIDGETEXTRA_LOCAL_LIBS="libwidgetextra.a"
|
||||
WIDGETEXTRA_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/lib-widget-extra'
|
||||
AC_MSG_NOTICE([libwidgetextra library is available in the local tree])
|
||||
else
|
||||
AC_MSG_NOTICE([libwidgetextra library is NOT available in the local tree])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AUDACITY_CONFIG_SUBDIRS_WIDGETEXTRA], [
|
||||
AC_DEFUN([AUDACITY_CONFIG_WIDGETEXTRA], [
|
||||
if test "$WIDGETEXTRA_USE_LOCAL" = yes; then
|
||||
WIDGETEXTRA_CFLAGS='-I$(top_srcdir)/lib-src/lib-widget-extra'
|
||||
WIDGETEXTRA_LIBS='$(top_builddir)/lib-src/lib-widget-extra/libwidgetextra.la'
|
||||
AC_CONFIG_SUBDIRS([lib-src/lib-widget-extra])
|
||||
fi
|
||||
|
||||
AC_SUBST([WIDGETEXTRA_CFLAGS])
|
||||
AC_SUBST([WIDGETEXTRA_LIBS])
|
||||
|
||||
AM_CONDITIONAL([USE_LOCAL_WIDGETEXTRA], [test "$WIDGETEXTRA_USE_LOCAL" = yes])
|
||||
])
|
||||
|
Reference in New Issue
Block a user