|
Lines 3422-3430
AC_ARG_WITH(selinux,
Link Here
|
| 3422 |
AC_DEFINE(WITH_SELINUX,1,[Define if you want SELinux support.]) |
3422 |
AC_DEFINE(WITH_SELINUX,1,[Define if you want SELinux support.]) |
| 3423 |
SELINUX_MSG="yes" |
3423 |
SELINUX_MSG="yes" |
| 3424 |
AC_CHECK_HEADER([selinux/selinux.h], , |
3424 |
AC_CHECK_HEADER([selinux/selinux.h], , |
| 3425 |
AC_MSG_ERROR(SELinux support requires selinux.h header)) |
3425 |
AC_MSG_ERROR(SELinux support requires selinux.h header)) |
| 3426 |
AC_CHECK_LIB(selinux, setexeccon, [ LIBSELINUX="-lselinux" ], |
3426 |
AC_CHECK_LIB(selinux, setexeccon, |
| 3427 |
AC_MSG_ERROR(SELinux support requires libselinux library)) |
3427 |
[ LIBSELINUX="-lselinux" |
|
|
3428 |
LIBS="$LIBS -lselinux" |
| 3429 |
], |
| 3430 |
AC_MSG_ERROR(SELinux support requires libselinux library)) |
| 3428 |
SSHDLIBS="$SSHDLIBS $LIBSELINUX" |
3431 |
SSHDLIBS="$SSHDLIBS $LIBSELINUX" |
| 3429 |
AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level) |
3432 |
AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level) |
| 3430 |
LIBS="$save_LIBS" |
3433 |
LIBS="$save_LIBS" |