Updating the changelog in the VERSION file, and version_sync.
[shapes.git] / configure.ac
blobe71641663be1ebdc2116fd4cdc8d5b24c46c9078
1 # This file is part of Shapes.
3 # Shapes is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # any later version.
8 # Shapes is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with Shapes.  If not, see <http://www.gnu.org/licenses/>.
16 # Copyright 2008 Gustaf Hendeby
18 #                                               -*- Autoconf -*-
19 # Process this file with autoconf to produce a configure script.
21 AC_PREREQ(2.59)
22 AC_INIT(Shapes, 0.4.2, tidefelt@isy.liu.se)
23 AC_CONFIG_AUX_DIR([config])
24 AM_INIT_AUTOMAKE([foreign])
26 AC_CONFIG_SRCDIR([source/Shapes_Kernel_decls.h])
27 AM_CONFIG_HEADER([config.h])
29 # Checks for programs.
30 AC_PROG_CXX
31 AC_PROG_CC
32 AC_PROG_FLEX(2.5.33)
33 AC_PROG_BISON(2.3)
34 AC_PROG_COMPARE(6.4.0)
35 AM_PATH_SAXON(9)
36 AC_PROG_LIBTOOL
38 # Set compiler options
39 AC_DEBUG
40 AC_PROFILE
41 AC_OPTIMIZATION
43 # Checks for libraries.
44 AM_ICONV()
45 AH_VERBATIM([ICONV_CAST],
46 [/* Macro to handle different const convention in iconv calls */
47 #define ICONV_CAST( ptr ) const_cast< ICONV_CONST char ** > ( ptr )
49 AC_CHECK_LIB([c], [close])
50 AM_PATH_GSL([1.9],, AC_MSG_ERROR(GSL not found))
51 AC_CHECK_LIB([m], [cos])
52 AM_PATH_ZLIB()
53 AC_CHECK_NANSIGNAL()
56 # Checks for header files.
57 AC_FUNC_ALLOCA
58 AC_HEADER_STDC
59 AC_HEADER_SYS_WAIT
60 AC_CHECK_HEADERS([inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h sys/time.h unistd.h])
62 # Checks for typedefs, structures, and compiler characteristics.
63 AC_HEADER_STDBOOL
64 AC_C_CONST
65 AC_C_INLINE
66 AC_TYPE_PID_T
67 AC_C_RESTRICT
68 AC_TYPE_SIZE_T
69 AC_HEADER_TIME
70 AC_STRUCT_TM
72 # Checks for library functions.
73 AC_FUNC_ERROR_AT_LINE
74 AC_FUNC_FORK
75 AC_FUNC_MALLOC
76 AC_FUNC_REALLOC
77 AC_FUNC_STAT
78 AC_FUNC_STRFTIME
79 AC_FUNC_STRTOD
80 AC_CHECK_FUNCS([floor memchr memset pow rint sqrt strchr strdup strrchr strtol])
83 htmldir='${pkgdatadir}/doc/html'
84 AC_SUBST(htmldir)
87 AC_CONFIG_FILES([Makefile source/Makefile resources/Makefile
88                  test/Makefile test/text/Makefile test/graphics/Makefile
89                  doc/Makefile doc/tools/Makefile
90                  doc/tools/ssi/Makefile doc/tools/postproc/Makefile
91                  doc/tools/xhtml-deps/Makefile doc/build/Makefile
92                  doc/build/man/Makefile doc/build/html/Makefile doc/build/proj-web/Makefile])
93 AC_OUTPUT
95 if test "X$COMPARE" != "Xyes"
96 then
97   echo "\
98 WARNING:  The program \`compare' was not found, or its version too low.  Without it, errors in the tests are less likely to be detected."
101 if test "X$HAVE_SAXON" != "X1"
102 then
103   echo "\
104 WARNING: The program \`Saxon' was not found, without it installed the documentation cannot be rebuilt."