~ubuntu-branches/ubuntu/trusty/gq/trusty

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2009-10-25 23:34:56 UTC
  • mfrom: (1.1.4 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091025233456-i794n3yg2cff930j
Tags: 1.3.4-1
* QA upload.
  + Set maintainer to Debian QA Group <packages@qa.debian.org>.
* New upstream release. (Closes: #534705).
  + Does not segfault on amd64. (Closes: #444312).
  + Remove all existing patches and change patch system to quilt.
  + Replace dpatch build-dep with quilt.
* 01_desktop_file.diff - Remove encoding and bogus categories 
  from desktop file.
* Copy in config.{sub,guess} on configure, rm them on clean.
  + Add build-dep on autotools-dev.
* Make clean not ignore errors.
* Add copyright holders and version path to GPL (GPL-2).
* Update watch file to use SF redirector. (Closes: #449749).
* Bump debhelper build-dep and compat to 5.
* Bump Standards Version to 3.8.3.
  + Menu policy transition.

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(src/gq.c)
4
 
AM_INIT_AUTOMAKE(gq, 1.2.1)
 
4
AM_INIT_AUTOMAKE(gq, 1.3.4)
5
5
AM_ACLOCAL_INCLUDE(macros)
6
6
 
7
 
LANGPACK_VERSION=1
8
 
AC_SUBST(LANGPACK_VERSION)
9
 
 
10
7
AM_CONFIG_HEADER(config.h)
11
8
 
12
9
AH_TOP([
31
28
 
32
29
AC_PROG_MAKE_SET
33
30
 
34
 
DISTCHECK_CONFIGURE_FLAGS="--disable-update-mimedb --enable-browser-dnd"
35
 
DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-werror"
 
31
DISTCHECK_CONFIGURE_FLAGS="--disable-update-mimedb --enable-browser-dnd --disable-scrollkeeper"
 
32
AC_MSG_CHECKING([whether this is a stable release])
 
33
MINOR="`echo "$VERSION" | sed 's/\./ /g' | awk '{print $2}'`"
 
34
MICRO="`echo "$VERSION" | sed 's/\./ /g' | awk '{print $3}'`"
 
35
if (test $((0$MINOR % 2)) -eq 0) || (test $(echo "$MICRO" | /bin/grep "^9")); then
 
36
        DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-werror"
 
37
        AC_MSG_RESULT([yes])
 
38
else
 
39
        AC_MSG_RESULT([no])
 
40
fi
36
41
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
37
42
 
38
43
dnl  ---------------------
83
88
AC_SUBST(GLIB_MKENUMS)
84
89
AC_MSG_RESULT($GLIB_MKENUMS)
85
90
 
 
91
AC_MSG_CHECKING([for glib-genmarshal])
 
92
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
 
93
AC_SUBST(GLIB_GENMARSHAL)
 
94
AC_MSG_RESULT($GLIB_GENMARSHAL)
 
95
 
 
96
GNOME_DOC_INIT
 
97
 
86
98
dnl  ------------------------
87
99
dnl | mime data installation |------------------------------------------------
88
100
dnl  ------------------------
134
146
done
135
147
 
136
148
AC_CHECK_HEADERS([ldap.h],,AC_MSG_ERROR("The (Open)LDAP development environment could not be found"))
 
149
AC_CHECK_HEADERS([ldap_schema.h],,
 
150
                 AC_MSG_ERROR("The (Open)LDAP development environment is incomplete (ldap_schema.h unusable)"))
137
151
 
138
152
AC_CHECK_LIB(lber, ber_alloc,
139
153
             [
176
190
        AC_DEFINE(FOUND_OPENLDAP_VERSION, 1.2)
177
191
fi
178
192
 
179
 
AC_CACHE_CHECK([whether OpenLDAP needs LDAP_DEPRECATED], gq_cv_ldap_deprecated,
 
193
AC_CACHE_CHECK([whether OpenLDAP needs LDAP_DEPRECATED],[gq_cv_ldap_deprecated],
180
194
               [AC_EGREP_CPP(ldap_explode_dn,
181
195
                             [#include <ldap.h>
182
196
                             ],
183
197
                             [gq_cv_ldap_deprecated=no],
184
 
                             [gq_cv_ldap_deprecated=yes])])
 
198
                             [gq_cv_ldap_deprecated=yes])
 
199
                AC_EGREP_CPP(ldap_search_s,
 
200
                             [#include <ldap.h>
 
201
                             ],[],
 
202
                             [gq_cv_ldap_deprecated=yes])
 
203
               ])
 
204
DEFINE_LDAP_DEPRECATED=""
185
205
if test "x$gq_cv_ldap_deprecated" = "xyes"; then
186
 
        AC_DEFINE(LDAP_DEPRECATED, 1, [allow GQ to use deprecated OpenLDAP API])
 
206
        DEFINE_LDAP_DEPRECATED="#define LDAP_DEPRECATED 1"
187
207
fi
 
208
AC_SUBST(DEFINE_LDAP_DEPRECATED)
188
209
 
189
210
gq_have_tls=
190
211
AC_CHECK_LIB(ldap, ldap_start_tls_s,
210
231
PKG_CHECK_MODULES(CRYPTO,[
211
232
        libcrypto
212
233
        ],[gq_have_crypto=yes],[gq_have_crypto=no
213
 
        AC_MSG_RESULT([no])])
 
234
        AC_MSG_RESULT([$gq_have_crypto])])
214
235
if test "x$gq_have_crypto" = "xyes"; then
215
236
        AC_DEFINE(HAVE_LIBCRYPTO, 1, [Define if you have libcrypto])
216
237
else
352
373
dnl | compiler warning flags |------------------------------------------------
353
374
dnl  ------------------------
354
375
 
 
376
HERZI_CHECK_DEVELOP_CFLAGS
 
377
 
355
378
gq_cv_compiler_supports_flag() {
356
379
        local SAVE_CFLAGS="$CFLAGS"
357
380
        local has_option=1
373
396
        return $has_option
374
397
}
375
398
 
376
 
# a backup of the working CFLAGS
377
 
WARN_CFLAGS=""
378
 
for A in -Wall -W -Wno-unused -Wmissing-declarations -Wcast-align -Wpointer-arith -Wfloat-equal
379
 
do
380
 
        if test -z "`echo "$CFLAGS" | grep -w -- "$A" 2> /dev/null`" ; then
381
 
                gq_cv_compiler_supports_flag "$A"
382
 
                has_flag=$?
383
 
                if test "x$has_flag" = "x0"; then
384
 
                        WARN_CFLAGS="$WARN_CFLAGS $A"
385
 
                fi
386
 
                # restore the backup
387
 
        fi
388
 
done
389
 
AC_SUBST(WARN_CFLAGS)
390
 
 
391
399
# check whether the compiler supports -Werror
392
400
gq_cv_compiler_supports_flag -Werror
393
401
if test "x$?" = "x0"; then
439
447
AC_OUTPUT([
440
448
        Makefile
441
449
        data/Makefile
 
450
        help/Makefile
 
451
        help/gq-manual/Makefile
442
452
        icons/Makefile
443
453
        pixmaps/Makefile
444
454
        po/Makefile.in
445
455
        src/Makefile
 
456
        src/gq-ldap.h
446
457
        test/Makefile
447
458
        gq.spec
448
459
])
449
460
 
 
461
if test -f MOD; then
 
462
        cat MOD
 
463
fi
 
464
 
450
465
echo
451
466
echo    "Keyring API.................... $with_keyring_api"
452
467
echo -n "LDAP Schema support............ " ARG_YESNO($ac_cv_func_ldap_str2objectclass)