softcount: tolerate zero ngrams
[vspell.git] / configure.in
blob93a9e301f7cc1752315aba54fa9bdd2c182670fc
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.57)
5 AC_INIT(vspell,1.0)
6 AM_INIT_AUTOMAKE
7 AC_CONFIG_SRCDIR([libvspell/pfs.cpp])
8 AM_CONFIG_HEADER([config.h])
10 # Checks for programs.
11 AM_PROG_LIBTOOL
12 AC_PROG_CXX
13 AC_PROG_CC
14 AC_PROG_CPP
15 AC_PROG_INSTALL
16 AC_PROG_LN_S
17 AC_PROG_MAKE_SET
18 AM_PROG_LEX
20 # Checks for libraries.
22 #VSPELL_PACKAGES=gtk+-2.0
23 #PKG_CHECK_MODULES(VSPELL, $VSPELL_PACKAGES)
24 AC_SUBST(VSPELL_CFLAGS)
25 AC_SUBST(VSPELL_LIBS)
27 # Checks for header files.
28 AC_HEADER_STDC
29 AC_CHECK_HEADERS([fcntl.h locale.h stddef.h stdlib.h string.h sys/param.h unistd.h values.h])
31 # Checks for typedefs, structures, and compiler characteristics.
32 AC_HEADER_STDBOOL
33 AC_C_CONST
34 AC_C_INLINE
35 AC_TYPE_SIZE_T
36 AC_STRUCT_TM
38 # Checks for library functions.
39 AC_FUNC_ERROR_AT_LINE
40 AC_FUNC_MALLOC
41 AC_FUNC_MKTIME
42 AC_FUNC_REALLOC
43 AC_FUNC_STRTOD
44 AC_CHECK_FUNCS([memmove memset rint setlocale sqrt strchr strdup strrchr strtol])
46 AC_CONFIG_FILES([Makefile
47                  libvspell/Makefile
48                  utils/Makefile
49                  ui/Makefile
50                  ui/cli/Makefile
51                  ui/gtk/Makefile])
52 AC_OUTPUT