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
ee1d8e10
Commit
ee1d8e10
authored
Oct 30, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: default to enable_openal=auto
parent
672fc8d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
configure.ac
configure.ac
+19
-15
No files found.
configure.ac
View file @
ee1d8e10
...
...
@@ -327,8 +327,8 @@ AC_ARG_ENABLE(mpg123,
AC_ARG_ENABLE(openal,
AS_HELP_STRING([--enable-openal],
[enable OpenAL support (default:
disable
)]),,
enable_openal=
n
o)
[enable OpenAL support (default:
auto
)]),,
enable_openal=
aut
o)
AC_ARG_ENABLE(opus,
AS_HELP_STRING([--enable-opus],
...
...
@@ -1280,20 +1280,24 @@ dnl ---------------------------------- OpenAL ---------------------------------
AC_SUBST(OPENAL_CFLAGS,"")
AC_SUBST(OPENAL_LIBS,"")
if test x$enable_openal = xyes; then
if test x$host_is_darwin = xyes; then
AC_CHECK_HEADERS([OpenAL/al.h OpenAL/alc.h], [], [enable_openal=no])
if test x$enable_openal = xyes; then
OPENAL_LIBS="-framework OpenAL"
AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support])
else
AC_MSG_WARN(OpenAL headers not found -- disabling OpenAL support)
fi
else
PKG_CHECK_MODULES([OPENAL], [openal],
AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support]),
enable_openal=no)
if test x$host_is_darwin = xyes; then
if test x$enable_openal != xno; then
AC_CHECK_HEADERS([OpenAL/al.h OpenAL/alc.h],
[found_openal=yes], [found_openal=no])
fi
MPD_AUTO_RESULT(openal, [OpenAL output plugin], [OpenAL not found])
if test x$enable_openal = xyes; then
OPENAL_LIBS="-framework OpenAL"
fi
else
MPD_AUTO_PKG(openal, [OPENAL], [openal],
[OpenAL output plugin], [OpenAL not found])
fi
if test x$enable_openal = xyes; then
AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support])
fi
AM_CONDITIONAL(HAVE_OPENAL, test x$enable_openal = xyes)
...
...
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