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
2856be54
Commit
2856be54
authored
Jan 05, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: moved checks to argument declarations I
Don't separate basic options from their according tests. Due to lots of interdependencies, we won't do that for the plugins yet.
parent
3f4bfd22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
38 deletions
+38
-38
configure.ac
configure.ac
+38
-38
No files found.
configure.ac
View file @
2856be54
...
@@ -109,17 +109,45 @@ dnl
...
@@ -109,17 +109,45 @@ dnl
dnl protocol options
dnl protocol options
dnl
dnl
AC_ARG_ENABLE(tcp,
AS_HELP_STRING([--disable-tcp],
[disable support for clients connecting via TCP (default: enable)]),
[enable_tcp=$enableval],
[enable_tcp=yes])
AC_ARG_ENABLE(ipv6,
AC_ARG_ENABLE(ipv6,
AS_HELP_STRING([--disable-ipv6],
AS_HELP_STRING([--disable-ipv6],
[disable IPv6 support (default: enable)]),
[disable IPv6 support (default: enable)]),
[enable_ipv6=$enableval],
[enable_ipv6=$enableval],
[enable_ipv6=yes])
[enable_ipv6=yes])
AC_ARG_ENABLE(tcp,
if test x$enable_tcp = xno; then
AS_HELP_STRING([--disable-tcp],
# if we don't support TCP, we don't need IPv6 either
[disable support for clients connecting via TCP (default: enable)]),
enable_ipv6=no
[enable_tcp=$enableval],
fi
[enable_tcp=yes])
if test x$enable_ipv6 = xyes; then
AC_MSG_CHECKING(for ipv6)
AC_EGREP_CPP([AP_maGiC_VALUE],
[
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#ifdef PF_INET6
#ifdef AF_INET6
AP_maGiC_VALUE
#endif
#endif
],
AC_DEFINE(HAVE_IPV6, 1, [Define if IPv6 support present])
AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no])
)
fi
if test x$enable_tcp = xyes; then
AC_DEFINE(HAVE_TCP, 1, [Define if TCP socket support is enabled])
fi
AC_ARG_ENABLE(un,
AC_ARG_ENABLE(un,
AS_HELP_STRING([--disable-un],
AS_HELP_STRING([--disable-un],
...
@@ -127,6 +155,11 @@ AC_ARG_ENABLE(un,
...
@@ -127,6 +155,11 @@ AC_ARG_ENABLE(un,
[enable_un=$enableval],
[enable_un=$enableval],
[enable_un=yes])
[enable_un=yes])
if test x$enable_un = xyes; then
AC_DEFINE(HAVE_UN, 1, [Define if unix domain socket support is enabled])
STRUCT_UCRED
fi
dnl
dnl
dnl misc libraries
dnl misc libraries
...
@@ -385,39 +418,6 @@ AC_ARG_ENABLE(shout-mp3,
...
@@ -385,39 +418,6 @@ AC_ARG_ENABLE(shout-mp3,
[enable_shout_mp3=$enableval],
[enable_shout_mp3=$enableval],
[enable_shout_mp3=yes])
[enable_shout_mp3=yes])
if test x$enable_tcp = xno; then
# if we don't support TCP, we don't need IPv6 either
enable_ipv6=no
fi
if test x$enable_ipv6 = xyes; then
AC_MSG_CHECKING(for ipv6)
AC_EGREP_CPP([AP_maGiC_VALUE],
[
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#ifdef PF_INET6
#ifdef AF_INET6
AP_maGiC_VALUE
#endif
#endif
],
AC_DEFINE(HAVE_IPV6, 1, [Define if IPv6 support present])
AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no])
)
fi
if test x$enable_tcp = xyes; then
AC_DEFINE(HAVE_TCP, 1, [Define if TCP socket support is enabled])
fi
if test x$enable_un = xyes; then
AC_DEFINE(HAVE_UN, 1, [Define if unix domain socket support is enabled])
STRUCT_UCRED
fi
enable_osx=no
enable_osx=no
case $host in
case $host in
*-darwin*)
*-darwin*)
...
...
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