tizen 2.3.1 release
[external/libgnutls26.git] / libextra / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
3 # 2009, 2010 Free Software Foundation, Inc.
4 #
5 # Author: Nikos Mavrogiannopoulos, Simon Josefsson
6 #
7 # This file is part of GnuTLS-EXTRA.
8 #
9 # GnuTLS-extra is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation; either version 3 of the
12 # License, or (at your option) any later version.
13 #
14 # GnuTLS-extra is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with GnuTLS-EXTRA; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23
24 AC_PREREQ(2.61)
25 AC_INIT([libgnutls-extra], [2.12.20], [bug-gnutls@gnu.org])
26 AC_CONFIG_AUX_DIR([build-aux])
27 AC_CONFIG_MACRO_DIR([m4])
28
29 AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-override])
30 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
31 AM_CONFIG_HEADER(config.h)
32
33 AC_PROG_CC
34 xgl_EARLY
35
36 AC_LIBTOOL_WIN32_DLL
37 AC_PROG_LIBTOOL
38
39 LIBGNUTLS_HOOKS
40 LIBGNUTLS_EXTRA_HOOKS
41
42 xgl_INIT
43
44 LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS"
45 LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}"
46 AC_SUBST(LIBGNUTLS_EXTRA_LIBS)
47 AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS)
48
49 # Finish things from ../configure.ac.
50 AC_SUBST([WERROR_CFLAGS])
51 AC_SUBST([WSTACK_CFLAGS])
52 AC_SUBST([WARN_CFLAGS])
53
54 AC_DEFINE([GNUTLS_COMPAT_H], 1, [Make sure we don't use old features in code.])
55
56 AC_CONFIG_FILES([
57   Makefile
58   gnutls-extra.pc
59   gl/Makefile
60   includes/Makefile
61 ])
62 AC_OUTPUT