public
Description: A Clutter-based Twitter client
Homepage: http://live.gnome.org/Tweet
Clone URL: git://github.com/ebassi/tweet.git
Search Repo:
Emmanuele Bassi (author)
Sat May 24 02:50:24 -0700 2008
commit  5dc582a75d20554bbe82741be60a213b329207cb
tree    46c621afcd837a6b098a638d0a2d3c899d00a936
parent  4140f38c798082c4151ab69eb0ce560cd99550f1
tweet / configure.ac
100644 168 lines (140 sloc) 5.151 kb
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
m4_define([tweet_major_version], [0])
m4_define([tweet_minor_version], [1])
m4_define([tweet_micro_version], [0])
 
m4_define([tweet_version],
          [tweet_major_version.tweet_minor_version.tweet_micro_version])
 
m4_define([tweet_interface_age], [0])
m4_define([tweet_binary_age],
          [m4_eval(100 * tweet_minor_version + tweet_micro_version)])
 
m4_define([lt_current],
          [m4_eval(100 * tweet_minor_version + tweet_micro_version - tweet_interface_age)])
m4_define([lt_revision], [tweet_interface_age])
m4_define([lt_age],
          [m4_eval(tweet_binary_age - tweet_interface_age)])
 
m4_define([glib_req_version], [2.16])
m4_define([json_glib_req_version], [0.6.0])
m4_define([soup_req_version], [2.4.1])
m4_define([clutter_req_version], [0.6.2])
m4_define([gtk_req_version], [2.12])
m4_define([clutter_gtk_req_version], [0.6.0])
m4_define([clutter_cairo_req_version], [0.6.2])
 
AC_PREREQ([2.59])
AC_INIT([tweet], [tweet_version], [], [tweet])
 
AM_INIT_AUTOMAKE([1.10])
AM_CONFIG_HEADER([config.h])
 
GNOME_COMMON_INIT
GNOME_COMPILE_WARNINGS
GNOME_DEBUG_CHECK
 
IT_PROG_INTLTOOL([0.35.0])
 
AM_DISABLE_STATIC
AM_PATH_GLIB_2_0
AM_PROG_CC_C_O
AM_PROG_LIBTOOL
 
AC_HEADER_STDC
AC_CHECK_HEADERS([unistd.h])
AC_C_CONST
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
AC_CHECK_FUNCS([strptime localtime_r])
 
TWEET_MAJOR_VERSION=tweet_major_version
TWEET_MINOR_VERSION=tweet_minor_version
TWEET_MICRO_VERSION=tweet_micro_version
TWEET_VERSION=tweet_version
AC_SUBST(TWEET_MAJOR_VERSION)
AC_SUBST(TWEET_MICRO_VERSION)
AC_SUBST(TWEET_MINOR_VERSION)
AC_SUBST(TWEET_VERSION)
 
dnl twitter-glib checks
LT_CURRENT=lt_current
LT_REVISION=lt_revision
LT_AGE=lt_age
LT_VERSION="$LT_CURRENT:$LT_REVISION:$LT_AGE"
TWITTER_GLIB_LT_LDFLAGS="-versio-info $LT_VERSION"
AC_SUBST(TWITTER_GLIB_LT_LDFLAGS)
 
PKG_CHECK_MODULES(TWITTER_GLIB,
                  gobject-2.0 >= glib_req_version dnl
                  gio-2.0 >= glib_req_version dnl
                  json-glib-1.0 >= json_glib_req_version dnl
                  libsoup-2.4 >= soup_req_version dnl
                  gdk-pixbuf-2.0)
AC_SUBST(TWITTER_GLIB_CFLAGS)
AC_SUBST(TWITTER_GLIB_LIBS)
 
dnl tweet checks
PKG_CHECK_MODULES(TWEET,
                  gobject-2.0 >= glib_req_version dnl
                  json-glib-1.0 >= json_glib_req_version dnl
                  clutter-0.6 >= clutter_req_version dnl
                  gtk+-2.0 >= gtk_req_version dnl
                  clutter-gtk-0.6 >= clutter_gtk_req_version dnl
                  clutter-cairo-0.6 >= clutter_cairo_req_version)
AC_SUBST(TWEET_CFLAGS)
AC_SUBST(TWEET_LIBS)
 
dnl = Enable debug level ===================================================
 
m4_define([debug_default],
          m4_if(m4_eval(tweet_minor_version % 2), [1], [yes], [minimum]))
 
AC_ARG_ENABLE(debug,
              AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],
                             [turn on debugging @<:@default=debug_default@:>@]),
,
              enable_debug=debug_default)
 
if test "x$enable_debug" = "xyes"; then
  test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
  TWEET_DEBUG_CFLAGS="-DTWEET_ENABLE_DEBUG"
else
  if test "x$enable_debug" = "xno"; then
    TWEET_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
  else # minimum
    TWEET_DEBUG_CFLAGS="-DTWEET_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
  fi
fi
 
AC_SUBST(TWEET_DEBUG_CFLAGS)
 
dnl = Enable strict compiler flags =========================================
 
# use strict compiler flags only on development releases
#m4_define([maintainer_flags_default],
# m4_if(m4_eval(tweet_minor_version % 2), [1], [yes], [no]))
m4_define([maintainer_flags_default], [no])
AC_ARG_ENABLE([maintainer-flags],
              AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
                             [Use strict compiler flags @<:@default=maintainer_flags_default@:>@]),,
              enable_maintainer_flags=maintainer_flags_default)
 
if test "x$enable_maintainer_flags" = "xyes"; then
  CPPFLAGS="$CPPFLAGS -g -Wall -Wshadow -Wcast-align -Wno-uninitialized -Werror"
else
  CPPFLAGS="$CPPFLAGS -g -Wall"
fi
 
dnl Internationalization
GETTEXT_PACKAGE=tweet
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Define the gettext package to use])
AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT
 
dnl gnome-doc-utils stuff
GNOME_DOC_INIT
 
AC_CONFIG_FILES([
        Makefile
        twitter-glib/Makefile
        twitter-glib/twitter-version.h
        twitter-glib/twitter-glib.pc
        copy-and-paste/Makefile
        copy-and-paste/tidy/Makefile
        src/Makefile
        tests/Makefile
        po/Makefile.in
        data/Makefile
        data/icons/Makefile
        data/icons/32x32/Makefile
        data/icons/32x32/actions/Makefile
        data/icons/32x32/status/Makefile
        data/icons/scalable/Makefile
        data/icons/scalable/actions/Makefile
        data/icons/scalable/status/Makefile
])
 
AC_OUTPUT
 
echo ""
echo " Tweet $VERSION"
echo ""
echo " Prefix: ${prefix}"
echo " Debug level: ${enable_debug}"
echo " Compiler flags: ${CPPFLAGS}"
echo ""