~online-accounts/libsignon-glib/packaging

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Alberto Mardegan
  • Date: 2016-05-19 15:28:09 UTC
  • mfrom: (122.1.99)
  • mto: This revision was merged to the branch mainline in revision 159.
  • Revision ID: alberto.mardegan@canonical.com-20160519152809-bqms2g51kxu9nrlh
MergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
2
AC_PREREQ([2.64])
3
3
AC_INIT([libsignon-glib],
4
 
        [1.13],
 
4
        [1.14],
5
5
        [https://gitlab.com/accounts-sso/libsignon-glib/issues],
6
6
        [libsignon-glib],
7
7
        [https://gitlab.com/accounts-sso/libsignon-glib])
11
11
AC_CONFIG_SRCDIR([libsignon-glib.pc.in])
12
12
AC_CONFIG_MACRO_DIR([m4])
13
13
 
14
 
AM_INIT_AUTOMAKE([1.11 -Wall check-news nostdinc silent-rules subdir-objects])
 
14
AM_INIT_AUTOMAKE([1.11 -Wall check-news nostdinc silent-rules subdir-objects foreign])
15
15
 
16
16
AC_PROG_CC
17
17
AC_PROG_CC_STDC
51
51
  [AS_IF([test "x$enable_tests" = "xyes"],
52
52
    [AC_MSG_ERROR([tests enabled but required dependencies were not found])])])
53
53
 
 
54
# gcov coverage reporting
 
55
m4_include([m4/gcov.m4])
 
56
AC_TDD_GCOV
 
57
AC_SUBST(COVERAGE_CFLAGS)
 
58
AC_SUBST(COVERAGE_CXXFLAGS)
 
59
AC_SUBST(COVERAGE_LDFLAGS)
 
60
 
54
61
AM_CONDITIONAL([ENABLE_TESTS], [test "x$have_check" = "xyes"])
55
62
 
56
63
GTK_DOC_CHECK([1.14], [--flavour no-tmpl])
75
82
AS_IF([test "x$enable_debug" = "xyes"],
76
83
    [CFLAGS="$CFLAGS -DENABLE_DEBUG"])
77
84
 
78
 
AC_ARG_ENABLE([coverage],
79
 
    [AS_HELP_STRING([--enable-coverage], [compile with coverage info])])
80
 
AS_IF([test "x$enable_coverage" = "xyes"],
81
 
    [CFLAGS="$CFLAGS -g -fprofile-arcs -ftest-coverage"])
82
 
 
83
85
# Python support.
84
86
PYGOBJECT_REQUIRED=2.90
85
87