libcap2: fix build with and without libpam
authorAndreas Oberritter <obi@opendreambox.org>
Fri, 14 Jan 2011 09:41:56 +0000 (09:41 +0000)
committerKhem Raj <raj.khem@gmail.com>
Sat, 15 Jan 2011 23:45:29 +0000 (15:45 -0800)
commit9086784ba8e85b92bdf65355d9de58dc29a71958
tree0143a7cd6a0b07da4e639fc2aa83f1e386acf25f
parent53f46652f6ec25d9ed66ffcdf1afb8764e7ad35c
libcap2: fix build with and without libpam

* Add libpam to depends if DISTRO_FEATURES contains pam.

* Fixes the following compile error, when libpam-dev is installed
  on the host, but not built for the target:

pam_cap.c:19:34: error: security/pam_modules.h: No such file or directory
pam_cap.c:20:34: error: security/_pam_macros.h: No such file or directory

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
CC: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
CC: Otavio Salvador <otavio@ossystems.com.br>
CC: Tom Rini <tom_rini@mentor.com>
CC: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/libcap/libcap2-2.16/make.patch
recipes/libcap/libcap2_2.16.bb