~ubuntu-branches/ubuntu/lucid/clamav/lucid-updates

« back to all changes in this revision

Viewing changes to m4/reorganization/code_checks/unit_tests.m4

  • Committer: Package Import Robot
  • Author(s): Chris, Marc Deslauriers, Chris Pollock
  • Date: 2015-02-08 07:54:07 UTC
  • mfrom: (81.1.10 lucid-security)
  • Revision ID: package-import@ubuntu.com-20150208075407-sjpyx5pb5emtexcl
Tags: 0.98.6+dfsg-0ubuntu0.10.04.1
[ Marc Deslauriers ]
* Updated to 0.98.6 to fix security issues, including CVE-2014-9328.
  (LP: #1420819)
* Removed upstreamed patches:
  - d/p/0002-Add-an-additional-n-after-the-number-in-the-pidfile.patch
  - d/p/0017-Bump-.so-version-number.patch

[ Chris Pollock ]
* Drop dh_autoreconf from build-depends
* Remove use of dh_autoreconf from debian/rules
* Adjust list of no LLVM architectures in debian/rules to include powerpc
  to avoid FTBFS on lucid

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
enable_check_ut=auto
 
2
enable_ut_install=no
 
3
AC_ARG_ENABLE(check,
 
4
[  --enable-check           Enable 'check' unit tests (default=auto)], enable_check_ut=$enableval, enable_check_ut="auto" )
 
5
 
 
6
if test "$enable_check_ut" != "no" ; then
 
7
case "$host_os" in
 
8
    *linux*)
 
9
        save_LDFLAGS="$LDFLAGS"
 
10
        LDFLAGS="$LDFLAGS -pthread -Wl,--no-as-needed -lm -Wl,--as-needed -lrt"
 
11
        ;;
 
12
esac
 
13
 
 
14
        AC_LIB_FIND([check],[check.h],
 
15
                        AC_LANG_PROGRAM([#include <check.h>],[srunner_create(0)]),
 
16
                        [CHECK_CPPFLAGS="$INCCHECK"; CHECK_LIBS="$LTLIBCHECK $LDFLAGS"],
 
17
                        [])
 
18
 
 
19
case "$host_os" in
 
20
    *linux*)
 
21
        LDFLAGS="$save_LDFLAGS"
 
22
        ;;
 
23
esac
 
24
 
 
25
fi
 
26
AC_SUBST([CHECK_CPPFLAGS])
 
27
AC_SUBST([CHECK_LIBS])
 
28
AM_CONDITIONAL([HAVE_LIBCHECK],test "X$HAVE_LIBCHECK" = "Xyes")
 
29
 
 
30
if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then
 
31
    AC_MSG_ERROR([
 
32
 
 
33
ERROR!  Check was configured, but not found.  Get it from http://check.sf.net/
 
34
])
 
35
fi