1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-12 07:35:51 +01:00

Use Automake for Audacity.

This commit is contained in:
benjamin.drung@gmail.com
2013-11-20 02:51:42 +00:00
parent bf060403ce
commit a19b6f25ae
36 changed files with 2658 additions and 590 deletions

View File

@@ -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])
])