~ubuntu-branches/ubuntu/quantal/lxc/quantal-201208232243

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2012-08-16 17:03:07 UTC
  • Revision ID: package-import@ubuntu.com-20120816170307-91m3dpxdo446bzqr
Tags: 0.8.0~rc1-4ubuntu25
* debian/control: only depend on libseccomp-dev on i386 and amd64, and
  switch to upstream-submitted seccomp patch (LP: #1037701)
* debian/rules: add '--with autoreconf' to force recreation of
  configure from configure.ac
* 0099-cleanup-after-template-help: don't leave a partially created
  container when -h is passed after '--'.  (LP: #1031043)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
AC_ARG_ENABLE([seccomp],
22
22
        [AC_HELP_STRING([--enable-seccomp], [enable seccomp])],
23
 
        [], [enable_seccomp=yes])
24
 
AM_CONDITIONAL([ENABLE_SECCOMP], [test "x$enable_seccomp" = "xyes"])
 
23
        [], [enable_seccomp=check])
25
24
 
26
25
AC_ARG_ENABLE([doc],
27
26
        [AC_HELP_STRING([--enable-doc], [make mans (require docbook2man installed) [default=auto]])],
34
33
                AC_MSG_ERROR([docbook2man required by man request, but not found])
35
34
fi
36
35
 
 
36
if test "$enable_seccomp" = "check" ; then
 
37
    AC_CHECK_LIB([seccomp],[seccomp_init],[enable_seccomp=yes], [enable_seccomp=no])
 
38
fi
 
39
 
 
40
AM_CONDITIONAL([ENABLE_SECCOMP], [test "x$enable_seccomp" = "xyes"])
 
41
 
37
42
AM_COND_IF([ENABLE_SECCOMP],
38
43
    [AC_CHECK_HEADER([seccomp.h],[],[AC_MSG_ERROR([You must install the seccomp development package in order to compile lxc])])
39
44
     AC_CHECK_LIB([seccomp], [seccomp_init],[],[AC_MSG_ERROR([You must install the seccomp development package in order to compile lxc])])
 
45
     AC_DEFINE_UNQUOTED([ENABLE_SECCOMP], 1, [Seccomp is available])
40
46
     AC_SUBST([SECCOMP_LIBS], [-lseccomp])])
41
47
 
42
48
AM_CONDITIONAL([ENABLE_DOCBOOK], [test "x$have_docbook" = "xyes"])