factor: eliminate print_uuint recursion
[coreutils.git] / gl / modules / smack
blob1c4a541a656a03f7d0325fb98443bad271d025df
1 Description:
2 Include and determine the availability of smack routines
4 Files:
5 lib/smack.h
7 Depends-on:
9 configure.ac:
10 # Check whether libsmack is available
11 LIB_SMACK=
12 AC_ARG_ENABLE([libsmack],
13   AS_HELP_STRING([--disable-libsmack], [disable libsmack support]))
14 if test "X$enable_libsmack" != "Xno"; then
15   AC_CHECK_LIB([smack], [smack_new_label_from_self],
16     [AC_CHECK_LIB([smack], [smack_new_label_from_path],
17       [AC_CHECK_HEADER([sys/smack.h],
18         [LIB_SMACK=-lsmack
19          AC_DEFINE([HAVE_SMACK], [1], [libsmack usability])]
20       )])])
21   if test "X$LIB_SMACK" = "X"; then
22     if test "X$enable_libsmack" = "Xyes"; then
23       AC_MSG_ERROR([libsmack library was not found or not usable])
24     fi
25   fi
26 else
27   AC_MSG_WARN([libsmack support disabled by user])
29 AC_SUBST([LIB_SMACK])
32 Makefile.am:
33 lib_SOURCES += smack.h
35 Include:
36 "smack.h"
38 License:
39 LGPL
41 Maintainer:
42 Pádraig Brady