~ubuntu-branches/ubuntu/precise/gcalctool/precise-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-07-11 21:41:18 UTC
  • mfrom: (1.3.25 upstream)
  • Revision ID: james.westby@ubuntu.com-20110711214118-q9tn33yxjw8eflzp
Tags: 6.1.3-0ubuntu1
* New upstream version
* debian/rules: drop the deprecated --with-gtk

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
3
AC_INIT(configure.ac)
4
 
AM_INIT_AUTOMAKE(gcalctool, 6.0.2)
 
4
AM_INIT_AUTOMAKE(gcalctool, 6.1.3)
5
5
AM_CONFIG_HEADER(config.h)
6
6
AM_MAINTAINER_MODE
7
7
GNOME_MAINTAINER_MODE_DEFINES
20
20
dnl ###########################################################################
21
21
 
22
22
GIO_REQUIRED=2.25.10
23
 
 
24
 
AC_MSG_CHECKING([which gtk+ version to compile against])
25
 
AC_ARG_WITH([gtk],
26
 
  [AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 3.0)])],
27
 
  [case "$with_gtk" in
28
 
     2.0|3.0) ;;
29
 
     *) AC_MSG_ERROR([invalid gtk version specified]) ;;
30
 
   esac],
31
 
  [with_gtk=3.0])
32
 
AC_MSG_RESULT([$with_gtk])
33
 
 
34
 
case "$with_gtk" in
35
 
  2.0) GTK_API_VERSION=2.0
36
 
       GTK_REQUIRED=2.21.8
37
 
       ;;
38
 
  3.0) GTK_API_VERSION=3.0
39
 
       GTK_REQUIRED=2.90.7
40
 
       ;;
41
 
esac
 
23
GTK_REQUIRED=2.90.7
42
24
 
43
25
PKG_CHECK_MODULES(GCALCTOOL, [
44
 
    gtk+-$GTK_API_VERSION >= $GTK_REQUIRED
 
26
    gtk+-3.0 >= $GTK_REQUIRED
45
27
    gio-2.0 >= $GIO_REQUIRED
46
28
    libxml-2.0
47
29
    gmodule-export-2.0