Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
71b5e431
Commit
71b5e431
authored
Dec 11, 2011
by
Avuton Olrich
Committed by
Max Kellermann
Dec 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: Refactor the musepack section
It appears the musepack section has not really been reviewed in some time, many parts unfunctional, others, just unnecessary.
parent
8459f273
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
38 deletions
+14
-38
configure.ac
configure.ac
+14
-38
No files found.
configure.ac
View file @
71b5e431
...
@@ -882,52 +882,28 @@ AM_CONDITIONAL(ENABLE_SNDFILE, test x$enable_sndfile = xyes)
...
@@ -882,52 +882,28 @@ AM_CONDITIONAL(ENABLE_SNDFILE, test x$enable_sndfile = xyes)
dnl --------------------------------- musepack --------------------------------
dnl --------------------------------- musepack --------------------------------
if test x$enable_mpc = xyes; then
if test x$enable_mpc = xyes; then
if test "x$mpcdec_libraries" != "x" ; then
MPCDEC_LIBS="-L$mpcdec_libraries"
elif test "x$mpcdec_prefix" != "x" ; then
MPCDEC_LIBS="-L$mpcdec_prefix/lib"
fi
MPCDEC_LIBS="$MPCDEC_LIBS -lmpcdec"
if test "x$mpcdec_includes" != "x" ; then
MPCDEC_CFLAGS="-I$mpcdec_includes"
elif test "x$mpcdec_prefix" != "x" ; then
MPCDEC_CFLAGS="-I$mpcdec_prefix/include"
fi
oldcflags=$CFLAGS
oldcflags=$CFLAGS
oldlibs=$LIBS
oldlibs=$LIBS
oldcppflags=$CPPFLAGS
oldcppflags=$CPPFLAGS
CFLAGS="$CFLAGS $MPCDEC_CFLAGS -I."
AC_CHECK_LIB(mpcdec,main,
LIBS="$LIBS $MPCDEC_LIBS"
MPCDEC_LIBS="$MPCDEC_LIBS -lmpcdec",
CPPFLAGS=$CFLAGS
AC_CHECK_HEADER(mpc/mpcdec.h,
old_mpcdec=no,
[AC_CHECK_HEADER(mpcdec/mpcdec.h,
old_mpcdec=yes,
enable_mpc=no)])
if test x$enable_mpc = xyes; then
AC_CHECK_LIB(mpcdec,main,,
[],
enable_mpc=no)
enable_mpc=no)
else
CFLAGS=$oldcflags
MPCDEC_LIBS=""
LIBS=$oldlibs
MPCDEC_CFLAGS=""
CPPFLAGS=$oldcppflags
fi
if test x$enable_mpc = xyes; then
if test x$enable_mpc = xyes; then
AC_DEFINE(HAVE_MPCDEC,1,
AC_CHECK_HEADER([mpc/mpcdec.h],
[Define to use libmpcdec for MPC decoding])
[AC_DEFINE(HAVE_MPCDEC,1,
if test x$old_mpcdec = xyes; then
[Define to use libmpcdec for MPC decoding])],
AC_DEFINE(MPC_IS_OLD_API, 1,
[AC_CHECK_HEADER(mpcdec/mpcdec.h,
[Define if an old pre-SV8 libmpcdec is used])
[AC_DEFINE(MPC_IS_OLD_API, 1,
fi
[Define if an old pre-SV8 libmpcdec is used])]
)]
)
else
else
AC_MSG_WARN([mpcdec lib needed for MPC support -- disabling MPC support])
AC_MSG_WARN([mpcdec lib needed for MPC support -- disabling MPC support])
fi
fi
CFLAGS=$oldcflags
LIBS=$oldlibs
CPPFLAGS=$oldcppflags
fi
fi
AC_SUBST(MPCDEC_LIBS)
AC_SUBST(MPCDEC_LIBS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment