~ubuntu-branches/ubuntu/raring/lightdm-gtk-greeter/raring-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Lionel Le Folgoc
  • Date: 2013-02-10 20:18:44 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20130210201844-v33v5j6i76d1ezdt
Tags: 1.5.1-0ubuntu1
* New upstream release.
* debian/rules: disable silent rules.

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
 
3
 
AC_INIT(lightdm-gtk-greeter, 1.5.0)
 
3
AC_INIT(lightdm-gtk-greeter, 1.5.1)
4
4
AC_CONFIG_MACRO_DIR(m4)
5
5
AC_CONFIG_HEADER(config.h)
6
6
AM_INIT_AUTOMAKE
14
14
GNOME_COMPILE_WARNINGS(maximum)
15
15
 
16
16
dnl ###########################################################################
 
17
dnl Standard headers
 
18
dnl ###########################################################################
 
19
 
 
20
AC_CHECK_HEADERS([stdlib.h])
 
21
 
 
22
dnl ###########################################################################
17
23
dnl Dependencies
18
24
dnl ###########################################################################
19
25
 
20
 
PKG_CHECK_MODULES(GREETER, [
21
 
    gtk+-3.0
22
 
    x11
23
 
    liblightdm-gobject-1 >= 1.3.5
24
 
    gmodule-export-2.0
 
26
AC_ARG_WITH([gtk2], AS_HELP_STRING([--with-gtk2], [Use gtk+-2.0 instead of gtk+-3.0]))
 
27
 
 
28
AS_IF([test "x$with_gtk2" = "xyes"],
 
29
      [PKG_CHECK_MODULES([GTK], [gtk+-2.0], [have_gtk2=yes])],
 
30
      [PKG_CHECK_MODULES([GTK], [gtk+-3.0])])
 
31
 
 
32
PKG_CHECK_MODULES([GMODULE], [gmodule-export-2.0])
 
33
PKG_CHECK_MODULES([LIGHTDMGOBJECT], [liblightdm-gobject-1 >= 1.3.5])
 
34
PKG_CHECK_MODULES([LIBX11], [x11])
 
35
 
 
36
dnl ###########################################################################
 
37
dnl Optional dependencies
 
38
dnl ###########################################################################
 
39
 
 
40
INDICATOR_REQUIRED_VERSION=0.3.92
 
41
 
 
42
AS_IF([test "x$have_gtk2" = "xyes"],
 
43
      [INDICATOR_PKG=indicator-0.4],
 
44
      [INDICATOR_PKG=indicator3-0.4])
 
45
 
 
46
AC_ARG_ENABLE([libindicator],
 
47
    AC_HELP_STRING([--enable-libindicator], [Enable libindicator support])
 
48
    AC_HELP_STRING([--disable-libindicator], [Disable libindicator support]),
 
49
            [], [enable_libindicator=yes])
 
50
 
 
51
AS_IF([test "x$enable_libindicator" = "xyes"], [
 
52
    AS_IF([$PKG_CONFIG --exists "$INDICATOR_PKG >= $INDICATOR_REQUIRED_VERSION" >/dev/null 2>&1], [
 
53
        PKG_CHECK_MODULES([LIBINDICATOR], [$INDICATOR_PKG >= $INDICATOR_REQUIRED_VERSION], [
 
54
            INDICATORDIR=`$PKG_CONFIG --variable=indicatordir $INDICATOR_PKG`
 
55
            AC_SUBST(INDICATORDIR)
 
56
            AC_DEFINE([HAVE_LIBINDICATOR], [1], [Define if "$INDICATOR_PKG" is present])
 
57
        ])
 
58
    ], [
 
59
        AC_MSG_CHECKING([for optional package $INDICATOR_PKG])
 
60
        AC_MSG_RESULT([not found])
 
61
    ])
 
62
], [
 
63
    AC_MSG_CHECKING([for optional package $INDICATOR_PKG])
 
64
    AC_MSG_RESULT([disabled])
25
65
])
26
66
 
27
67
dnl ###########################################################################