OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dovecot/dovecot-2.1.12-libcap-ng.patch.disabled
  5. # Copyright (C) 2012 - 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff --git a/configure.in b/configure.in
  17. index a4e5b5a..6c1f666 100644
  18. --- a/configure.in
  19. +++ b/configure.in
  20. @@ -360,6 +360,47 @@ if test $want_libcap != no; then
  21. ])
  22. fi
  23. +# libcap-ng.m4 - Checks for the libcap-ng support
  24. +# Copyright (c) 2009 Steve Grubb sgrubb@redhat.com
  25. +#
  26. +AC_DEFUN([LIBCAP_NG_PATH],
  27. +[
  28. + AC_ARG_WITH(libcap-ng,
  29. + [ --with-libcap-ng=[auto/yes/no] Add Libcap-ng support [default=auto]],,
  30. + with_libcap_ng=auto)
  31. +
  32. + # Check for Libcap-ng API
  33. + #
  34. + # libcap-ng detection
  35. +
  36. + if test x$with_libcap_ng = xno ; then
  37. + have_libcap_ng=no;
  38. + else
  39. + # Start by checking for header file
  40. + AC_CHECK_HEADER(cap-ng.h, capng_headers=yes, capng_headers=no)
  41. +
  42. + # See if we have libcap-ng library
  43. + AC_CHECK_LIB(cap-ng, capng_clear,
  44. + CAPNG_LDADD=-lcap-ng,)
  45. +
  46. + # Check results are usable
  47. + if test x$with_libcap_ng = xyes -a x$CAPNG_LDADD = x ; then
  48. + AC_MSG_ERROR(libcap-ng support was requested and the library was not found)
  49. + fi
  50. + if test x$CAPNG_LDADD != x -a $capng_headers = no ; then
  51. + AC_MSG_ERROR(libcap-ng libraries found but headers are missing)
  52. + fi
  53. + fi
  54. + AC_SUBST(CAPNG_LDADD)
  55. + AC_MSG_CHECKING(whether to use libcap-ng)
  56. + if test x$CAPNG_LDADD != x ; then
  57. + AC_DEFINE(HAVE_LIBCAP_NG,1,[libcap-ng support])
  58. + AC_MSG_RESULT(yes)
  59. + else
  60. + AC_MSG_RESULT(no)
  61. + fi
  62. +])
  63. +
  64. have_libwrap=no
  65. if test $want_libwrap != no; then
  66. AC_CHECK_HEADER(tcpd.h, [
  67. @@ -2857,3 +2898,5 @@ echo "Full text search :$fts"
  68. if test "$not_fts" != ""; then
  69. echo " :$not_fts"
  70. fi
  71. +
  72. +