patch-configure_ac 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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...])
  6. AM_BINRELOC
  7. -AM_GNU_GETTEXT_VERSION([0.18.1])
  8. -AM_GNU_GETTEXT([external])
  9. LIBRT=""
  10. AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"])
  11. @@ -149,12 +147,17 @@ LIBS="$LIBS_save"
  12. AS_MESSAGE([checking optional features...])
  13. # POSIX capabilities
  14. +AC_ARG_WITH(libcap,
  15. + [AS_HELP_STRING(--with-libcap,
  16. + [use POSIX capabilities (default auto)])])
  17. LIBCAP=""
  18. -AC_CHECK_HEADERS([sys/capability.h], [
  19. - AC_CHECK_LIB(cap, cap_set_proc, [
  20. - LIBCAP="-lcap"
  21. - AC_DEFINE(HAVE_LIBCAP, 1,
  22. - [Define to 1 if you have the `cap' library (-lcap).])
  23. +AS_IF([test "x${with_libcap}" != "xno"], [
  24. + AC_CHECK_HEADERS([sys/capability.h], [
  25. + AC_CHECK_LIB(cap, cap_set_proc, [
  26. + LIBCAP="-lcap"
  27. + AC_DEFINE(HAVE_LIBCAP, 1,
  28. + [Define to 1 if you have the `cap' library (-lcap).])
  29. + ])
  30. ])
  31. ])
  32. AC_SUBST(LIBCAP)