mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-11 15:15:57 +01:00
Use Automake for Audacity.
This commit is contained in:
@@ -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
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user