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
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
19 # Process this file with autoconf to produce a configure script.
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.
34 AC_PROG_COMPARE(6.4.0)
38 # Set compiler options
43 # Checks for libraries.
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])
56 # Checks for header files.
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.
72 # Checks for library functions.
80 AC_CHECK_FUNCS([floor memchr memset pow rint sqrt strchr strdup strrchr strtol])
83 htmldir='${pkgdatadir}/doc/html'
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])
95 if test "X$COMPARE" != "Xyes"
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"
104 WARNING: The program \`Saxon' was not found, without it installed the documentation cannot be rebuilt."