File: libcap.m4

package info (click to toggle)
nfs-utils 1%3A1.2.2-4squeeze3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 5,412 kB
  • ctags: 3,305
  • sloc: ansic: 31,349; sh: 10,787; python: 979; makefile: 663
file content (15 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
dnl Checks for libcap.so
dnl
AC_DEFUN([AC_LIBCAP], [

  dnl look for prctl
  AC_CHECK_FUNC([prctl], , )

  dnl look for the library; do not add to LIBS if found
  AC_CHECK_LIB([cap], [cap_get_proc], [LIBCAP=-lcap], ,)
  AC_SUBST(LIBCAP)

  AC_CHECK_HEADERS([sys/capability.h], ,
                   [AC_MSG_ERROR([libcap headers not found.])])

])dnl