1 --- miredo-1.2.6.orig/configure.ac 2013-05-23 17:51:41.000000000 +0200
2 +++ miredo-1.2.6/configure.ac 2014-06-25 18:17:49.829469301 +0200
3 @@ -55,8 +55,6 @@ AM_SILENT_RULES([yes])
4 # Checks for libraries.
5 AS_MESSAGE([checking required libraries...])
7 -AM_GNU_GETTEXT_VERSION([0.18.1])
8 -AM_GNU_GETTEXT([external])
11 AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"])
12 @@ -149,12 +147,17 @@ LIBS="$LIBS_save"
13 AS_MESSAGE([checking optional features...])
17 + [AS_HELP_STRING(--with-libcap,
18 + [use POSIX capabilities (default auto)])])
20 -AC_CHECK_HEADERS([sys/capability.h], [
21 - AC_CHECK_LIB(cap, cap_set_proc, [
23 - AC_DEFINE(HAVE_LIBCAP, 1,
24 - [Define to 1 if you have the `cap' library (-lcap).])
25 +AS_IF([test "x${with_libcap}" != "xno"], [
26 + AC_CHECK_HEADERS([sys/capability.h], [
27 + AC_CHECK_LIB(cap, cap_set_proc, [
29 + AC_DEFINE(HAVE_LIBCAP, 1,
30 + [Define to 1 if you have the `cap' library (-lcap).])