1Description:
2Include and determine the availability of smack routines
3
4Files:
5lib/smack.h
6
7Depends-on:
8
9configure.ac:
10# Check whether libsmack is available
11LIB_SMACK=
12AC_ARG_ENABLE([libsmack],
13  AS_HELP_STRING([--disable-libsmack], [disable libsmack support]))
14if 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
26else
27  AC_MSG_WARN([libsmack support disabled by user])
28fi
29AC_SUBST([LIB_SMACK])
30
31
32Makefile.am:
33lib_SOURCES += smack.h
34
35Include:
36"smack.h"
37
38License:
39LGPL
40
41Maintainer:
42Pádraig Brady
43