source: configure.ac @ e197b65

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since e197b65 was 461541a, checked in by Mei <mei@…>, 11 years ago

1) updated original rt0 to remove libstrongswan dependency

a) identity credential being made/accessed with openssl api calls

(X509/EVP_PKEY pem)

b) attribute credential being made/access via xmlsec1 (custom XML

structure)

2) refactored libcreddy into libabac and now one ABAC namespace for

libabac

3) added attribute_rule suboption to creddy's attribute as another way

to insert access rule

4) added some regression tests into example directory
5) updated some docs.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1AC_INIT([ABAC], [0.2.0], [faber@ISI.EDU])
2AC_CONFIG_SRCDIR([libabac/abac_role.c])
3AM_INIT_AUTOMAKE([foreign subdir-objects])
4LT_INIT
5
6AC_CONFIG_MACRO_DIR([m4])
7
8# Checks for programs.
9AC_PROG_CXX
10AC_PROG_CC
11AC_PROG_LIBTOOL
12
13# Explicitly hunt up perl
14AC_CHECK_PROGS(PERL, perl)
15
16# for python
17AM_PATH_PYTHON
18
19# for openssl
20AX_CHECK_OPENSSL([], [AC_MSG_ERROR([openssl is required to build pacakge])] )
21
22# for xmlsec1
23AX_CHECK_XMLSEC1([], [AC_MSG_ERROR([xmlsec1 is required to build pacakge])] )
24# for xml2
25AX_CHECK_XML2([], [AC_MSG_ERROR([xml2 is required to build pacakge])] )
26
27# for swig
28AX_PKG_SWIG(1.3.17, [], [AC_MSG_ERROR([SWIG is required to build package])] )
29AX_SWIG_ENABLE_CXX
30AX_SWIG_PYTHON
31
32AC_ARG_ENABLE(debug,
33    [AC_HELP_STRING([--enable-debug], [build with debug symbols])],
34    [CFLAGS+="-g "],[])
35
36# Checks for libraries.
37AC_ARG_WITH(
38    [site-perl],
39    [AS_HELP_STRING([--with-site-perl=DIR],
40                   [directory in which to install perl modules])],
41    [SITE_PERL="$withval"], [SITE_PERL=""])
42   
43
44# this is so wrong
45
46# Ask perl for a likely site_perl directory.  If the user has already specified
47# it using --with-site-perl, use that value.  NB, this does not respect prefix,
48# so users wishing to do a local install must use --with-site-perl
49AC_MSG_CHECKING(for site_perl directory)
50if test -z "$SITE_PERL"; then
51        SITE_PERL=`$PERL -e 'print((grep(/site_perl/ && !m#/mach#, @INC))[0], "\n");'`
52fi
53AC_MSG_RESULT($SITE_PERL)
54AC_SUBST(SITE_PERL)
55
56# Checks for header files.
57AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h readpassphrase.h paths.h])
58
59# Checks for typedefs, structures, and compiler characteristics.
60AC_HEADER_STDBOOL
61AC_TYPE_SIZE_T
62AC_TYPE_UINT16_T
63AC_TYPE_UINT32_T
64AC_TYPE_UINT8_T
65AC_CHECK_TYPES([ptrdiff_t])
66
67AC_CHECK_DECL([_PATH_TTY],[],AC_DEFINE_UNQUOTED([_PATH_TTY],"/dev/tty",[Define to tty device node path]),[
68#ifdef HAVE_PATHS_H
69#  include <paths.h>
70#endif
71])
72
73# Checks for library functions.
74AC_FUNC_MALLOC
75AC_CHECK_FUNCS([atexit memset strchr strdup readpassphrase])
76
77# Confirm that the link path includes strongswan
78if test x$vstr = xtrue; then
79        AC_HAVE_LIBRARY([vstr],[LIBS="$LIBS"],[AC_MSG_ERROR([Vstr string library not found])])
80        AC_DEFINE([USE_VSTR],[],[use vstr])
81fi
82
83
84AC_CONFIG_FILES([Makefile])
85AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.