~ubuntu-branches/ubuntu/wily/epiphany-browser/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Gustavo Noronha Silva, Jeremy Bicha, Emilio Pozuelo Monfort, Gustavo Noronha Silva
  • Date: 2012-12-10 11:40:01 UTC
  • mfrom: (1.8.8) (105.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20121210114001-42jjyg3qw3eyz00a
Tags: 3.6.1-1
[ Jeremy Bicha ]
* New upstream unstable release
* debian/control.in:
  - Bump minimum intltool to 0.50
* debian/epiphany-browser-data.install:
  - The developers no longer provide help files to install since they were
    too outdated
* Dropped upstream patches:
  - 01_email-as-user-for-password-remembering.patch
  - 13_toolbar_size_fixes.patch
* debian/watch: Watch for unstable releases.

[ Emilio Pozuelo Monfort ]
* New upstream release.
  + debian/patches/14_pkglibdir.patch:
    - Removed, applied upstream.
  + debian/control.in:
    - Update (build-)dependencies.

[ Gustavo Noronha Silva ]
* debian/control.in:
- Build-Depend on gnome-common >= 3.6, needed for the code
  coverage feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.5 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22
 
22
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
23
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
24
# Foundation, Inc.
23
25
#
24
26
# This file is free software; the Free Software Foundation
25
27
# gives unlimited permission to copy and/or distribute it,
26
28
# with or without modifications, as long as this notice is preserved.
27
29
 
 
30
# serial 1
 
31
 
28
32
# AM_AUTOMAKE_VERSION(VERSION)
29
33
# ----------------------------
30
34
# Automake X.Y traces this macro to ensure aclocal.m4 has been
34
38
[am__api_version='1.11'
35
39
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
40
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.11.1], [],
 
41
m4_if([$1], [1.11.5], [],
38
42
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
43
])
40
44
 
50
54
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
55
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
56
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
57
[AM_AUTOMAKE_VERSION([1.11.5])dnl
54
58
m4_ifndef([AC_AUTOCONF_VERSION],
55
59
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
60
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
61
 
58
62
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
63
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
64
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
61
65
#
62
66
# This file is free software; the Free Software Foundation
63
67
# gives unlimited permission to copy and/or distribute it,
64
68
# with or without modifications, as long as this notice is preserved.
65
69
 
 
70
# serial 1
 
71
 
66
72
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
73
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
74
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
167
173
Usually this means the macro was only invoked conditionally.]])
168
174
fi])])
169
175
 
170
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
171
 
# Free Software Foundation, Inc.
 
176
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
177
# 2010, 2011 Free Software Foundation, Inc.
172
178
#
173
179
# This file is free software; the Free Software Foundation
174
180
# gives unlimited permission to copy and/or distribute it,
175
181
# with or without modifications, as long as this notice is preserved.
176
182
 
177
 
# serial 10
 
183
# serial 12
178
184
 
179
185
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
180
186
# written in clear, in which case automake, when reading aclocal.m4,
214
220
  # instance it was reported that on HP-UX the gcc test will end up
215
221
  # making a dummy file named `D' -- because `-MD' means `put the output
216
222
  # in D'.
 
223
  rm -rf conftest.dir
217
224
  mkdir conftest.dir
218
225
  # Copy depcomp to subdir because otherwise we won't find it if we're
219
226
  # using a relative directory.
278
285
        break
279
286
      fi
280
287
      ;;
281
 
    msvisualcpp | msvcmsys)
 
288
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
282
289
      # This compiler won't grok `-c -o', but also, the minuso test has
283
290
      # not run yet.  These depmodes are late enough in the game, and
284
291
      # so weak that their functioning should not be impacted.
343
350
if test "x$enable_dependency_tracking" != xno; then
344
351
  am_depcomp="$ac_aux_dir/depcomp"
345
352
  AMDEPBACKSLASH='\'
 
353
  am__nodep='_no'
346
354
fi
347
355
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
348
356
AC_SUBST([AMDEPBACKSLASH])dnl
349
357
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
358
AC_SUBST([am__nodep])dnl
 
359
_AM_SUBST_NOTMAKE([am__nodep])dnl
350
360
])
351
361
 
352
362
# Generate code to set up dependency tracking.              -*- Autoconf -*-
568
578
done
569
579
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
570
580
 
571
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
581
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
582
# Inc.
572
583
#
573
584
# This file is free software; the Free Software Foundation
574
585
# gives unlimited permission to copy and/or distribute it,
575
586
# with or without modifications, as long as this notice is preserved.
576
587
 
 
588
# serial 1
 
589
 
577
590
# AM_PROG_INSTALL_SH
578
591
# ------------------
579
592
# Define $install_sh.
613
626
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
614
627
# From Jim Meyering
615
628
 
616
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
617
 
# Free Software Foundation, Inc.
 
629
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
630
# 2011 Free Software Foundation, Inc.
618
631
#
619
632
# This file is free software; the Free Software Foundation
620
633
# gives unlimited permission to copy and/or distribute it,
634
647
       [disable], [m4_define([am_maintainer_other], [enable])],
635
648
       [m4_define([am_maintainer_other], [enable])
636
649
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
637
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
650
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
638
651
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
639
652
  AC_ARG_ENABLE([maintainer-mode],
640
653
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
745
758
fi
746
759
])
747
760
 
748
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
761
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
762
# Inc.
749
763
#
750
764
# This file is free software; the Free Software Foundation
751
765
# gives unlimited permission to copy and/or distribute it,
752
766
# with or without modifications, as long as this notice is preserved.
753
767
 
 
768
# serial 1
 
769
 
754
770
# AM_PROG_MKDIR_P
755
771
# ---------------
756
772
# Check for `mkdir -p'.
773
789
 
774
790
# Helper functions for option handling.                     -*- Autoconf -*-
775
791
 
776
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
792
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
793
# Foundation, Inc.
777
794
#
778
795
# This file is free software; the Free Software Foundation
779
796
# gives unlimited permission to copy and/or distribute it,
780
797
# with or without modifications, as long as this notice is preserved.
781
798
 
782
 
# serial 4
 
799
# serial 5
783
800
 
784
801
# _AM_MANGLE_OPTION(NAME)
785
802
# -----------------------
787
804
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
788
805
 
789
806
# _AM_SET_OPTION(NAME)
790
 
# ------------------------------
 
807
# --------------------
791
808
# Set option NAME.  Presently that only means defining a flag for this option.
792
809
AC_DEFUN([_AM_SET_OPTION],
793
810
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
794
811
 
795
812
# _AM_SET_OPTIONS(OPTIONS)
796
 
# ----------------------------------
 
813
# ------------------------
797
814
# OPTIONS is a space-separated list of Automake options.
798
815
AC_DEFUN([_AM_SET_OPTIONS],
799
816
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
804
821
AC_DEFUN([_AM_IF_OPTION],
805
822
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
806
823
 
807
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
824
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
808
825
#
809
826
# This file is free software; the Free Software Foundation
810
827
# gives unlimited permission to copy and/or distribute it,
811
828
# with or without modifications, as long as this notice is preserved.
812
829
 
 
830
# serial 1
 
831
 
813
832
# AM_RUN_LOG(COMMAND)
814
833
# -------------------
815
834
# Run COMMAND, save the exit status in ac_status, and log it.
886
905
fi
887
906
AC_MSG_RESULT(yes)])
888
907
 
889
 
# Copyright (C) 2009  Free Software Foundation, Inc.
 
908
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
890
909
#
891
910
# This file is free software; the Free Software Foundation
892
911
# gives unlimited permission to copy and/or distribute it,
893
912
# with or without modifications, as long as this notice is preserved.
894
913
 
895
 
# serial 1
 
914
# serial 2
896
915
 
897
916
# AM_SILENT_RULES([DEFAULT])
898
917
# --------------------------
907
926
no)  AM_DEFAULT_VERBOSITY=1;;
908
927
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
909
928
esac
 
929
dnl
 
930
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
931
dnl do not support nested variable expansions.
 
932
dnl See automake bug#9928 and bug#10237.
 
933
am_make=${MAKE-make}
 
934
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
935
   [am_cv_make_support_nested_variables],
 
936
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
937
BAR0=false
 
938
BAR1=true
 
939
V=1
 
940
am__doit:
 
941
        @$(TRUE)
 
942
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
943
  am_cv_make_support_nested_variables=yes
 
944
else
 
945
  am_cv_make_support_nested_variables=no
 
946
fi])
 
947
if test $am_cv_make_support_nested_variables = yes; then
 
948
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
949
  AM_V='$(V)'
 
950
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
951
else
 
952
  AM_V=$AM_DEFAULT_VERBOSITY
 
953
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
954
fi
 
955
AC_SUBST([AM_V])dnl
 
956
AM_SUBST_NOTMAKE([AM_V])dnl
 
957
AC_SUBST([AM_DEFAULT_V])dnl
 
958
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
910
959
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
911
960
AM_BACKSLASH='\'
912
961
AC_SUBST([AM_BACKSLASH])dnl
913
962
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
914
963
])
915
964
 
916
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
965
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
917
966
#
918
967
# This file is free software; the Free Software Foundation
919
968
# gives unlimited permission to copy and/or distribute it,
920
969
# with or without modifications, as long as this notice is preserved.
921
970
 
 
971
# serial 1
 
972
 
922
973
# AM_PROG_INSTALL_STRIP
923
974
# ---------------------
924
975
# One issue with vendor `install' (even GNU) is that you can't
941
992
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
942
993
AC_SUBST([INSTALL_STRIP_PROGRAM])])
943
994
 
944
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
995
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
945
996
#
946
997
# This file is free software; the Free Software Foundation
947
998
# gives unlimited permission to copy and/or distribute it,
948
999
# with or without modifications, as long as this notice is preserved.
949
1000
 
950
 
# serial 2
 
1001
# serial 3
951
1002
 
952
1003
# _AM_SUBST_NOTMAKE(VARIABLE)
953
1004
# ---------------------------
956
1007
AC_DEFUN([_AM_SUBST_NOTMAKE])
957
1008
 
958
1009
# AM_SUBST_NOTMAKE(VARIABLE)
959
 
# ---------------------------
 
1010
# --------------------------
960
1011
# Public sister of _AM_SUBST_NOTMAKE.
961
1012
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
962
1013
 
963
1014
# Check how to create a tarball.                            -*- Autoconf -*-
964
1015
 
965
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
1016
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
966
1017
#
967
1018
# This file is free software; the Free Software Foundation
968
1019
# gives unlimited permission to copy and/or distribute it,
984
1035
# a tarball read from stdin.
985
1036
#     $(am__untar) < result.tar
986
1037
AC_DEFUN([_AM_PROG_TAR],
987
 
[# Always define AMTAR for backward compatibility.
988
 
AM_MISSING_PROG([AMTAR], [tar])
 
1038
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1039
# in the wild :-(  We should find a proper way to deprecate it ...
 
1040
AC_SUBST([AMTAR], ['$${TAR-tar}'])
989
1041
m4_if([$1], [v7],
990
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
1042
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
991
1043
     [m4_case([$1], [ustar],, [pax],,
992
1044
              [m4_fatal([Unknown tar format])])
993
1045
AC_MSG_CHECKING([how to create a $1 tar archive])
1684
1736
fi])
1685
1737
 
1686
1738
 
 
1739
dnl GNOME_CODE_COVERAGE
 
1740
dnl
 
1741
dnl Defines CODE_COVERAGE_CFLAGS and CODE_COVERAGE_LDFLAGS which should be
 
1742
dnl included in the CFLAGS and LIBS/LDFLAGS variables of every build target
 
1743
dnl (program or library) which should be built with code coverage support.
 
1744
dnl Also defines GNOME_CODE_COVERAGE_RULES which should be substituted in your
 
1745
dnl Makefile; and $enable_code_coverage which can be used in subsequent
 
1746
dnl configure output.
 
1747
dnl
 
1748
dnl Note that all optimisation flags in CFLAGS must be disabled when code
 
1749
dnl coverage is enabled.
 
1750
dnl
 
1751
dnl Derived from Makefile.decl in GLib, originally licenced under LGPLv2.1+.
 
1752
dnl This file is licenced under GPLv3. For the full gnome-common licence
 
1753
dnl (GPLv3), see the COPYING file.
 
1754
dnl
 
1755
dnl Usage example:
 
1756
dnl configure.ac:
 
1757
dnl    GNOME_CODE_COVERAGE
 
1758
dnl
 
1759
dnl Makefile.am:
 
1760
dnl    @GNOME_CODE_COVERAGE_RULES@
 
1761
dnl    my_program_LIBS = … $(CODE_COVERAGE_LDFLAGS) …
 
1762
dnl    my_program_CFLAGS = … $(CODE_COVERAGE_CFLAGS) …
 
1763
 
 
1764
AC_DEFUN([GNOME_CODE_COVERAGE],[
 
1765
        dnl Check for --enable-code-coverage
 
1766
        AC_MSG_CHECKING([whether to build with code coverage support])
 
1767
        AC_ARG_ENABLE([code-coverage], AS_HELP_STRING([--enable-code-coverage], [Whether to enable code coverage support]),, enable_code_coverage=no)
 
1768
        AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test x$enable_code_coverage = xyes])
 
1769
        AC_SUBST([CODE_COVERAGE_ENABLED], [$enable_code_coverage])
 
1770
        AC_MSG_RESULT($enable_code_coverage)
 
1771
 
 
1772
        AS_IF([ test "$enable_code_coverage" = "yes" ], [
 
1773
                dnl Check if gcc is being used
 
1774
                AS_IF([ test "$GCC" = "no" ], [
 
1775
                        AC_MSG_ERROR([not compiling with gcc, which is required for gcov code coverage])
 
1776
                ])
 
1777
 
 
1778
                # List of supported lcov versions.
 
1779
                lcov_version_list="1.6 1.7 1.8 1.9"
 
1780
 
 
1781
                AC_CHECK_PROG([LCOV], [lcov], [lcov])
 
1782
                AC_CHECK_PROG([GENHTML], [genhtml], [genhtml])
 
1783
 
 
1784
                AS_IF([ test "$LCOV" ], [
 
1785
                        AC_CACHE_CHECK([for lcov version], gnome_cv_lcov_version, [
 
1786
                                gnome_cv_lcov_version=invalid
 
1787
                                lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
 
1788
                                for lcov_check_version in $lcov_version_list; do
 
1789
                                        if test "$lcov_version" = "$lcov_check_version"; then
 
1790
                                                gnome_cv_lcov_version="$lcov_check_version (ok)"
 
1791
                                        fi
 
1792
                                done
 
1793
                        ])
 
1794
                ], [
 
1795
                        lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
 
1796
                        AC_MSG_ERROR([$lcov_msg])
 
1797
                ])
 
1798
 
 
1799
                case $gnome_cv_lcov_version in
 
1800
                        ""|invalid[)]
 
1801
                                lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
 
1802
                                AC_MSG_ERROR([$lcov_msg])
 
1803
                                LCOV="exit 0;"
 
1804
                        ;;
 
1805
                esac
 
1806
 
 
1807
                AS_IF([ test -z "$GENHTML" ], [
 
1808
                        AC_MSG_ERROR([Could not find genhtml from the lcov package])
 
1809
                ])
 
1810
 
 
1811
                dnl Build the code coverage flags
 
1812
                CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
 
1813
                CODE_COVERAGE_LDFLAGS="-lgcov"
 
1814
 
 
1815
                AC_SUBST([CODE_COVERAGE_CFLAGS])
 
1816
                AC_SUBST([CODE_COVERAGE_LDFLAGS])
 
1817
        ])
 
1818
 
 
1819
GNOME_CODE_COVERAGE_RULES='
 
1820
# Code coverage
 
1821
#
 
1822
# Optional:
 
1823
#  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
 
1824
#    (Default: $(top_builddir))
 
1825
#  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
 
1826
#    by lcov for code coverage. (Default:
 
1827
#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
 
1828
#  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
 
1829
#    reports to be created. (Default:
 
1830
#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
 
1831
#  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
 
1832
#    (Default: empty)
 
1833
#  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
 
1834
#    instance. (Default: empty)
 
1835
#
 
1836
# The generated report will be titled using the $(PACKAGE_NAME) and
 
1837
# $(PACKAGE_VERSION). In order to add the current git hash to the title,
 
1838
# use the git-version-gen script, available online.
 
1839
 
 
1840
# Optional variables
 
1841
CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
 
1842
CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
 
1843
CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
 
1844
CODE_COVERAGE_LCOV_OPTIONS ?=
 
1845
CODE_COVERAGE_GENHTML_OPTIONS ?=
 
1846
 
 
1847
# Use recursive makes in order to ignore errors during check
 
1848
check-code-coverage:
 
1849
ifdef CODE_COVERAGE_ENABLED
 
1850
        -$(MAKE) $(AM_MAKEFLAGS) -k check
 
1851
        $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
 
1852
else
 
1853
        @echo "Need to reconfigure with --enable-code-coverage"
 
1854
endif
 
1855
 
 
1856
# Capture code coverage data
 
1857
code-coverage-capture: code-coverage-capture-hook
 
1858
ifdef CODE_COVERAGE_ENABLED
 
1859
        $(LCOV) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
 
1860
        $(LCOV) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
 
1861
        -rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
 
1862
        LANG=C $(GENHTML) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
 
1863
        @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
 
1864
else
 
1865
        @echo "Need to reconfigure with --enable-code-coverage"
 
1866
endif
 
1867
 
 
1868
# Hook rule executed before code-coverage-capture, overridable by the user
 
1869
code-coverage-capture-hook:
 
1870
 
 
1871
clean: code-coverage-clean
 
1872
code-coverage-clean:
 
1873
        -$(LCOV) --directory $(top_builddir) -z
 
1874
        -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
 
1875
        -find . -name "*.gcda" -o -name "*.gcov" -delete
 
1876
 
 
1877
GITIGNOREFILES ?=
 
1878
GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
 
1879
 
 
1880
DISTCHECK_CONFIGURE_FLAGS ?=
 
1881
DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
 
1882
 
 
1883
.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
 
1884
'
 
1885
 
 
1886
        AC_SUBST([GNOME_CODE_COVERAGE_RULES])
 
1887
        m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([GNOME_CODE_COVERAGE_RULES])])
 
1888
])
 
1889
 
1687
1890
# gnome-common.m4
1688
1891
#
1689
1892
# serial 3
1731
1934
 
1732
1935
        DISABLE_DEPRECATED=""
1733
1936
        if test $USE_MAINTAINER_MODE = yes; then
1734
 
                DOMAINS="ATK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
1937
                DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
1735
1938
                for DOMAIN in $DOMAINS; do
1736
1939
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
1737
1940
                done
1966
2169
]
1967
2170
)
1968
2171
 
1969
 
m4_include([m4/gnome-doc-utils.m4])
1970
2172
m4_include([m4/gtk-doc.m4])
1971
2173
m4_include([m4/intltool.m4])
1972
2174
m4_include([m4/introspection.m4])