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:
@@ -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
|
||||
])
|
||||
|
Reference in New Issue
Block a user