~ubuntu-branches/ubuntu/wily/curtain/wily-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Andrea Colangelo
  • Date: 2013-12-13 11:47:35 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20131213114735-s53yttz762a1jzp8
Tags: 0.3-1
* New upstream release. (Closes: #685912)
* New maintainer. (Closes: #724982)
* debian/patches/*: refresh.
* Bump to debhelper 9.
* debian/control:
  + bump build-dep to libgtk-3-dev.
  + bump Standars-Version to 3.9.5. No changes required.
  + add Vcs-* tags.
* debian/curtain.{1,manpages}: remove, now installed upstream.
* debian/curtain.xpm: remove, now installed upstream.
* debian/curtain.install: remove, now useless.
* debian/curtain.menu: fix path of the icon file.
* debian/copyright: update.
* debian/rules:
  + call dh --with autotools_dev. (Closes: #727351)
  + let dpkg-buildflags set LDFLAGS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
dnl Created by Anjuta application wizard.
3
 
 
4
 
AC_INIT(curtain, 0.1)
5
 
 
6
 
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
7
 
AC_CONFIG_HEADERS([config.h])
8
 
AM_MAINTAINER_MODE
9
 
 
10
 
AC_ISC_POSIX
11
 
AC_PROG_CC
12
 
AM_PROG_CC_STDC
13
 
AC_HEADER_STDC
14
 
 
15
 
 
16
 
 
17
 
 
18
 
dnl ***************************************************************************
19
 
dnl Internatinalization
20
 
dnl ***************************************************************************
 
1
# Process this file with autoconf to produce a configure script.
 
2
 
 
3
AC_PREREQ(2.54)
 
4
 
 
5
m4_define([curtain_version], [0.3])
 
6
m4_define([gtk_required_version], [2.99.3])
 
7
 
 
8
AC_INIT([curtain], [curtain_version],
 
9
        http://code.google.com/p/ardesia/issues/list,
 
10
        [curtain])
 
11
 
 
12
AC_PREFIX_DEFAULT(/usr)
 
13
AC_CONFIG_SRCDIR([src/curtain.c])
 
14
AC_CONFIG_MACRO_DIR([m4macros])
 
15
 
 
16
AM_INIT_AUTOMAKE(no-define dist-bzip2)
 
17
AM_CONFIG_HEADER(config.h)
 
18
 
 
19
# Enable silent build rules by default, requires at least
 
20
# Automake-1.11. Disable by either passing --disable-silent-rules to
 
21
# configure or passing V=1 to make
 
22
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
23
 
 
24
# gettext i18n support
21
25
GETTEXT_PACKAGE=curtain
22
26
AC_SUBST(GETTEXT_PACKAGE)
23
 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
24
 
AM_GLIB_GNU_GETTEXT
25
 
IT_PROG_INTLTOOL([0.35.0])
26
 
 
27
 
 
28
 
 
29
 
dnl Libraries are dynamic by default.
30
 
dnl User can override by passing the flag --enable-static
31
 
AC_DISABLE_STATIC
32
 
 
 
27
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
 
28
                   [The prefix for our gettext translation domains.])
 
29
 
 
30
# Determine a C compiler to use
 
31
AC_PROG_CC
 
32
AM_PROG_CC_C_O
 
33
 
 
34
# Initialize libtool
 
35
AM_DISABLE_STATIC
 
36
AC_LIBTOOL_WIN32_DLL
33
37
AM_PROG_LIBTOOL
34
38
 
 
39
AM_PROG_AS
 
40
 
 
41
# Initialize maintainer mode
 
42
AM_MAINTAINER_MODE
 
43
 
 
44
# Honor aclocal flags
 
45
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
 
46
 
 
47
 
 
48
# Check for pkg-config
 
49
PKG_PROG_PKG_CONFIG(0.16)
 
50
 
 
51
#################
 
52
# Check for Win32
 
53
#################
35
54
case "$host" in
36
55
  *-*-mingw*|*-*-cygwin*)
37
56
    platform_win32=yes
41
60
    ;;
42
61
esac
43
62
 
 
63
######################
 
64
# Internationalisation
 
65
######################
 
66
 
 
67
IT_PROG_INTLTOOL([0.35.0],[no-xml])
 
68
AM_GLIB_GNU_GETTEXT
 
69
 
 
70
AM_PROG_LIBTOOL
 
71
 
 
72
#######
 
73
# Gtk 3
 
74
#######
 
75
AM_PATH_GTK_3_0(gtk_required_version, :,
 
76
  AC_MSG_ERROR(Test for GTK3+ failed. See the file 'INSTALL' for help.),
 
77
  gthread)
 
78
 
 
79
 
 
80
AC_MSG_CHECKING([if GTK+ is version 2.99.3 or newer])
 
81
if $PKG_CONFIG --atleast-version=2.99.3 gtk+-3.0; then
 
82
  have_gtk3=yes
 
83
else
 
84
  have_gtk3=no
 
85
fi
 
86
 
 
87
AC_MSG_RESULT($have_gtk_3)
 
88
 
44
89
AM_CONDITIONAL(WITH_GNU_LD, test "$with_gnu_ld" = "yes")
45
90
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = yes)
46
91
 
47
 
dnl See if there is the static linking option
48
 
AM_CONDITIONAL(ENABLE_STATIC, test "$enable_static" = "yes")
49
 
 
50
 
 
51
 
PKG_CHECK_MODULES(CURTAIN, [gtk+-2.0 >= 2.12    ])
52
 
 
53
 
 
54
 
 
55
 
 
56
 
AC_OUTPUT([
 
92
PKG_CHECK_MODULES(curtain, [gtk+-3.0])
 
93
 
 
94
AC_CHECK_PROGS(XDG_UTILS, [xdg-desktop-menu], [])
 
95
 
 
96
AC_CONFIG_FILES([
57
97
Makefile
 
98
po/Makefile.in
 
99
docs/curtain.1
 
100
docs/Makefile
58
101
src/Makefile
59
 
po/Makefile.in
 
102
desktop/Makefile
60
103
])
 
104
 
 
105
AC_OUTPUT