bugs: Don't require client knowledge of flattened representations.
[libale.git] / configure.ac
blobc0de75031f8a9c87ac51a40d5d6da548208617f4
1 # Copyright 2008 David Hilvert <dhilvert@gmail.com>
3 # This file is part of libale.
5 # libale is free software: you can redistribute it and/or modify it under the
6 # terms of the GNU Affero General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option)
8 # any later version.
10 # libale is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 # FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for
13 # more details.
15 # You should have received a copy of the GNU Affero General Public License
16 # along with libale.  If not, see <http://www.gnu.org/licenses/>.
19 ## Preliminaries
22 AC_PREREQ(2.60)
23 AC_INIT(m4_esyscmd(./version.sh -n package-name), m4_esyscmd(./version.sh -n version), m4_esyscmd(./version.sh -n mailing-list))
24 AC_CONFIG_SRCDIR([include/ale.h])
25 AC_CONFIG_HEADER([config.h])
27 AC_PROG_LIBTOOL
29 AM_INIT_AUTOMAKE
32 ## C compiler
35 AC_PROG_CC
36 AX_CFLAGS_WARN_ALL
39 ## Types
42 AC_C_LONG_LONG
44 AC_CHECK_HEADER([stdint.h])
45 AC_CHECK_HEADER([inttypes.h])
46 AC_TYPE_UINTPTR_T
49 ## Substitution variables
52 LIBALE_CFLAGS=""
53 LIBALE_LIBS=""
54 LIBALE_LDFLAGS=""
56 AC_SUBST(LIBALE_CFLAGS)
57 AC_SUBST(LIBALE_LIBS)
58 AC_SUBST(LIBALE_LDFLAGS)
60 AC_CONFIG_FILES([Makefile])
62 AC_OUTPUT
64 # Since the generated Makefile seems to sometimes miss build steps that are
65 # required due to reconfiguration, 'make clean' here.
67 AC_MSG_NOTICE(making clean)
68 make clean &> /dev/null