~ubuntu-branches/ubuntu/trusty/clamav/trusty-security

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-03-05 23:59:25 UTC
  • mfrom: (0.35.38 sid)
  • Revision ID: package-import@ubuntu.com-20140305235925-nttbuglwa0kmpi3a
Tags: 0.98.1+dfsg-2ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
AC_ARG_ENABLE(check,
466
466
[  --enable-check           Enable 'check' unit tests (default=auto)], enable_check_ut=$enableval, enable_check_ut="auto" )
467
467
 
468
 
if test "$enable_check_ut" != "no" ; then
469
 
        AC_LIB_FIND([check],[check.h],
470
 
                        AC_LANG_PROGRAM([#include <check.h>],[srunner_create(0)]),
471
 
                        [CHECK_CPPFLAGS="$INCCHECK"; CHECK_LIBS="$LTLIBCHECK"],
472
 
                        [])
473
 
fi
474
 
AC_SUBST([CHECK_CPPFLAGS])
475
 
AC_SUBST([CHECK_LIBS])
476
 
AM_CONDITIONAL([HAVE_LIBCHECK],test "X$HAVE_LIBCHECK" = "Xyes")
477
 
 
478
 
if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then
479
 
    AC_MSG_ERROR([
480
 
 
481
 
ERROR!  Check was configured, but not found.  Get it from http://check.sf.net/
482
 
])
483
 
fi
 
468
if test "$enable_check_ut" = "auto" ; then
 
469
        PKG_CHECK_EXISTS([check], [enable_check_ut="yes"],
 
470
                         [enable_check_ut="no"])
 
471
fi
 
472
 
 
473
if test "$enable_check_ut" = "yes" ; then
 
474
        PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
 
475
fi
 
476
AM_CONDITIONAL([HAVE_LIBCHECK],test "X$CHECK_LIBS" != "X")
484
477
 
485
478
AC_ARG_ENABLE(coverage,
486
479
              AC_HELP_STRING([--enable-coverage],