~ubuntu-branches/ubuntu/saucy/dee/saucy-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-02-03 11:38:57 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120203113857-a46h5kyigogedqy2
Tags: 1.0.2-0ubuntu1
* New upstream release.
  - DeeModel support insert_sorted() and find_sorted() (LP: #913128)
* debian/control:
  - requires now libicu-dev
* debian/libdee-1.0-4.symbols:
  - updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Don't forget that this changes also GIR version, and requires rebuilding vapi
6
6
m4_define([dee_major], [1])
7
7
m4_define([dee_minor], [0])
8
 
m4_define([dee_micro], [0])
 
8
m4_define([dee_micro], [2])
9
9
m4_define([dee_api],
10
10
          [dee_major.dee_minor])
11
11
m4_define([dee_version],
38
38
# - If binary compatibility has been broken (eg removed or changed interfaces)
39
39
#   change to C+1:0:0
40
40
# - If the interface is the same as the previous version, change to C:R+1:A
41
 
DEE_LT_CURRENT=4
 
41
DEE_LT_CURRENT=5
42
42
DEE_LT_REV=0
43
 
DEE_LT_AGE=0
 
43
DEE_LT_AGE=1
44
44
DEE_LT_VERSION="$DEE_LT_CURRENT:$DEE_LT_REV:$DEE_LT_AGE"
45
45
DEE_LT_LDFLAGS="-version-info $DEE_LT_VERSION -export-symbols-regex '^dee_.*'"
46
46
 
155
155
AC_PATH_PROG([VALA_API_GEN], [vapigen])
156
156
AM_CONDITIONAL([HAVE_VAPIGEN], [test "x$VALA_API_GEN" != "x"])
157
157
 
 
158
dnl = Check for ICU ====================================
 
159
AC_ARG_ENABLE([icu],
 
160
              AS_HELP_STRING([--enable-icu=@<:@no/yes@:>@],[build with advanced unicode text handling (requires ICU >= 4.8) @<:@default=yes@:>@]),,
 
161
              [enable_icu=yes])
 
162
 
 
163
if test "x$enable_icu" = "xyes"; then
 
164
        AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
 
165
        #include "unicode/uvernum.h"
 
166
        #if U_ICU_VERSION_MAJOR_NUM < 4
 
167
        #error Dee ICU requires at least ICU v4.8
 
168
        #elif U_ICU_VERSION_MAJOR_NUM == 4 && U_ICU_VERSION_MINOR_NUM < 8
 
169
        #error Dee ICU requires at least ICU v4.8
 
170
        #endif]], [[]])],
 
171
        [icu_available=yes],
 
172
        [icu_available=no])
 
173
 
 
174
        if test "x$icu_available" = "xyes"; then
 
175
                AC_DEFINE(HAVE_ICU, 1, [Define to 1 if we have ICU])
 
176
                ICU_CFLAGS="$(icu-config --cflags)"
 
177
                ICU_LIBS="$(icu-config --ldflags-libsonly)"
 
178
                AC_SUBST(ICU_CFLAGS)
 
179
                AC_SUBST(ICU_LIBS)
 
180
                AC_OUTPUT([dee-icu-1.0.pc])
 
181
        else
 
182
                AC_MSG_ERROR([Dee ICU support requires ICU >= 4.8])
 
183
        fi
 
184
fi
 
185
 
 
186
AM_CONDITIONAL(HAVE_ICU, test "x$enable_icu" = "xyes")
 
187
 
158
188
dnl ===========================================================================
159
189
AC_OUTPUT([
160
190
  Makefile
171
201
  tools/Makefile
172
202
  examples/Makefile
173
203
  vapi/Makefile
174
 
])
 
204
]) 
175
205
 
176
206
dnl Output the results
177
207
AC_MSG_NOTICE([
181
211
 
182
212
  Prefix         : ${prefix}
183
213
 
 
214
  ICU support    : ${enable_icu}
 
215
 
184
216
  Documentation  : ${enable_gtk_doc}
185
217
  Introspection  : ${enable_introspection}
186
218