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
7a24e496
Commit
7a24e496
authored
Jan 20, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: new libwrap autoconf test
Use MPD_AUTO_RESULT(). Don't force libwrap by default.
parent
7a62818f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
31 deletions
+21
-31
configure.ac
configure.ac
+14
-1
libwrap.m4
m4/libwrap.m4
+7
-30
No files found.
configure.ac
View file @
7a24e496
...
...
@@ -205,7 +205,20 @@ dnl ##
dnl misc libraries
dnl ##
AC_CHECK_LIBWRAP
AC_ARG_ENABLE([libwrap],
AS_HELP_STRING([--enable-libwrap], [use libwrap]),,
[enable_libwrap=auto])
if test x$enable_libwrap != xno; then
AC_CHECK_LIBWRAP(found_libwrap=yes, found_libwrap=no)
MPD_AUTO_RESULT(libwrap, libwrap, [libwrap not found])
fi
if test x$enable_libwrap = xyes; then
AC_SUBST(LIBWRAP_CFLAGS)
AC_SUBST(LIBWRAP_LDFLAGS)
AC_DEFINE(HAVE_LIBWRAP, 1, [define to enable libwrap library])
fi
AC_ARG_ENABLE(cue,
AS_HELP_STRING([--enable-cue],
...
...
m4/libwrap.m4
View file @
7a24e496
...
...
@@ -3,35 +3,12 @@ dnl Usage:
dnl AC_CHECK_LIBWRAP([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
dnl
AC_DEFUN([AC_CHECK_LIBWRAP],
[dnl start
AC_ARG_ENABLE([libwrap],
[AS_HELP_STRING([--disable-libwrap],
[use libwrap (default enabled)])], ,
[
AC_DEFUN([AC_CHECK_LIBWRAP],[
AC_CHECK_HEADERS([tcpd.h],
[],
[AC_MSG_ERROR([tpcd.h libwrap header not found])]
$3)
AC_CHECK_LIB([wrap],
[request_init],
[],
[AC_MSG_ERROR([libwrap not found !])]
$3)
AC_DEFINE(HAVE_LIBWRAP, 1, [define to enable libwrap library])
LIBWRAP_CFLAGS=""
AC_CHECK_LIB([wrap], [request_init],
[LIBWRAP_CFLAGS=""
LIBWRAP_LDFLAGS="-lwrap"
AC_SUBST([LIBWRAP_CFLAGS])
AC_SUBST([LIBWRAP_LDFLAGS])
dnl ACTION-IF-FOUND
$2
]) dnl AC_ARG_ENABLE
]) dnl AC_DEFUN
$1],
$2),
$2)
])
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