~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to lib/m4/hooks.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
2
 
#    Free Software Foundation, Inc.
 
1
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
 
2
# 2009, 2010 Free Software Foundation, Inc.
3
3
#
4
4
# Author: Nikos Mavrogiannopoulos, Simon Josefsson
5
5
#
6
 
# This file is part of GNUTLS.
 
6
# This file is part of GnuTLS.
7
7
#
8
 
# The GNUTLS library is free software; you can redistribute it and/or
 
8
# The GnuTLS is free software; you can redistribute it and/or
9
9
# modify it under the terms of the GNU Lesser General Public License
10
10
# as published by the Free Software Foundation; either version 2.1 of
11
11
# the License, or (at your option) any later version.
12
12
#
13
 
# The GNUTLS library is distributed in the hope that it will be
 
13
# The GnuTLS is distributed in the hope that it will be
14
14
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15
15
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
16
# Lesser General Public License for more details.
17
17
#
18
18
# You should have received a copy of the GNU Lesser General Public
19
 
# License along with the GNUTLS library; if not, write to the Free
 
19
# License along with GnuTLS; if not, write to the Free
20
20
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
21
# MA 02110-1301, USA
22
22
 
26
26
  # Interfaces changed/added/removed:   CURRENT++       REVISION=0
27
27
  # Interfaces added:                             AGE++
28
28
  # Interfaces removed:                           AGE=0
29
 
  AC_SUBST(LT_CURRENT, 40)
30
 
  AC_SUBST(LT_REVISION, 12)
31
 
  AC_SUBST(LT_AGE, 14)
 
29
  AC_SUBST(LT_CURRENT, 42)
 
30
  AC_SUBST(LT_REVISION, 14)
 
31
  AC_SUBST(LT_AGE, 16)
32
32
 
33
33
  # Used when creating the Windows libgnutls-XX.def files.
34
34
  DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
63
63
  AC_MSG_CHECKING([whether to use the included minitasn1])
64
64
  AC_MSG_RESULT($included_libtasn1)
65
65
  AM_CONDITIONAL(ENABLE_MINITASN1, test "$included_libtasn1" = "yes")
 
66
  if test "$included_libtasn1" = "no"; then
 
67
    GNUTLS_REQUIRES_PRIVATE="Requires.private: libtasn1"
 
68
  fi
66
69
 
67
70
  AC_ARG_WITH(lzo,
68
71
    AS_HELP_STRING([--with-lzo], [use experimental LZO compression]),
214
217
  fi
215
218
  AM_CONDITIONAL(ENABLE_OPENPGP, test "$ac_enable_openpgp" = "yes")
216
219
 
 
220
  AC_MSG_CHECKING([whether to disable SessionTicket extension support])
 
221
  AC_ARG_ENABLE(session-ticket,
 
222
    AS_HELP_STRING([--disable-session-ticket],
 
223
                   [disable the SessionTicket extension support]),
 
224
    ac_session_ticket=no)
 
225
  if test x$ac_session_ticket != xno; then
 
226
   AC_MSG_RESULT(no)
 
227
   AC_DEFINE([ENABLE_SESSION_TICKET], 1, [enable SessionTicket extension])
 
228
  else
 
229
   ac_full=0
 
230
   AC_MSG_RESULT(yes)
 
231
  fi
 
232
  AM_CONDITIONAL(ENABLE_SESSION_TICKET, test "$ac_enable_session_ticket" != "no")
 
233
 
 
234
  # For cryptodev
 
235
  AC_MSG_CHECKING([whether to add cryptodev support])
 
236
  AC_ARG_ENABLE(cryptodev,
 
237
    AS_HELP_STRING([--enable-cryptodev], [enable cryptodev support]),
 
238
  enable_cryptodev=yes,enable_cryptodev=no)
 
239
  AC_MSG_RESULT($enable_cryptodev)
 
240
 
 
241
  if test "$enable_cryptodev" = "yes"; then
 
242
    AC_DEFINE([ENABLE_CRYPTODEV], 1, [Enable cryptodev support])
 
243
  fi
 
244
 
217
245
  # For storing integers in pointers without warnings
218
246
  # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
219
247
  AC_CHECK_SIZEOF(void *)