File: configure.ac

package info (click to toggle)
gnome-clocks 3.22.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,724 kB
  • ctags: 2,863
  • sloc: ansic: 25,872; sh: 4,670; makefile: 160; xml: 88; sed: 16
file content (81 lines) | stat: -rw-r--r-- 1,957 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
AC_PREREQ(2.63)

AC_INIT([gnome-clocks],
        [3.22.1],
        [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-clocks],
        [gnome-clocks])

dnl http://people.gnome.org/~walters/docs/build-api.txt
dnl We don't support separate builddir when building from git
echo \#buildapi-variable-no-builddir >/dev/null

AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_SRCDIR(src/main.vala)

AM_INIT_AUTOMAKE([1.11 tar-ustar dist-xz no-dist-gzip foreign])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19.8])
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])

AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AM_PROG_VALAC([0.23.3])

# _NL_TIME_FIRST_WEEKDAY is an enum and not a define
AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]],
                                   [[nl_langinfo(_NL_TIME_FIRST_WEEKDAY);]])],
               [langinfo_ok=yes], [langinfo_ok=no])
AC_MSG_RESULT($langinfo_ok)
if test "$langinfo_ok" = "yes"; then
  AC_DEFINE([HAVE__NL_TIME_FIRST_WEEKDAY], [1],
            [Define if _NL_TIME_FIRST_WEEKDAY is available])
fi

AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)

GLIB_GSETTINGS

LT_INIT([disable-static])
LT_LIB_M

PKG_PROG_PKG_CONFIG([0.22])

PKG_CHECK_MODULES(CLOCKS, [
    gio-2.0 >= 2.44
    glib-2.0 >= 2.44
    gtk+-3.0 >= 3.19.8
    gsound >= 0.98
    gweather-3.0 >= 3.13.91
    gnome-desktop-3.0 >= 3.7.90
    geocode-glib-1.0 >= 0.99.4
    libgeoclue-2.0 >= 2.3.1
])

YELP_HELP_INIT

AC_CONFIG_FILES([
    Makefile
    data/org.gnome.clocks.gschema.xml
    help/Makefile
    po/Makefile.in
])

AC_OUTPUT

echo "
    gnome-clocks ${VERSION}

    prefix: ${prefix}
    Vala compiler: ${VALAC}
    C compiler: ${CC}

    Now type 'make' to build ${PACKAGE}
"