Optionally decompose TYPE (closes libale-34).
[libale.git] / configure.ac
blob969233f4bfa44ab1d5e82b9a1e884993dde106ab
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(libale,translit(m4_include(VERSION),'
24 '), ale@ventricle.dyndns.org)
25 AC_CONFIG_SRCDIR([include/ale.h])
26 AC_CONFIG_HEADER([config.h])
28 AC_PROG_LIBTOOL
30 AM_INIT_AUTOMAKE
33 ## C compiler
36 AC_PROG_CC
37 AX_CFLAGS_WARN_ALL
40 ## Types
43 AC_C_LONG_LONG
45 AC_CHECK_HEADER([stdint.h])
46 AC_CHECK_HEADER([inttypes.h])
47 AC_TYPE_UINTPTR_T
50 ## Substitution variables
53 LIBALE_CFLAGS=""
54 LIBALE_LIBS=""
55 LIBALE_LDFLAGS=""
57 AC_SUBST(LIBALE_CFLAGS)
58 AC_SUBST(LIBALE_LIBS)
59 AC_SUBST(LIBALE_LDFLAGS)
61 AC_CONFIG_FILES([Makefile])
63 AC_OUTPUT
65 # Since the generated Makefile seems to sometimes miss build steps that are
66 # required due to reconfiguration, 'make clean' here.
68 AC_MSG_NOTICE(making clean)
69 make clean &> /dev/null