Doc: Removing doc for non-pure function setbboxgroup.
[shapes.git] / configure.ac
blob211d3f1ae07f2db3015e47b46665cd94e1b49730
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT(Shapes, 0.4.1, tidefelt@isy.liu.se)
6 AC_CONFIG_AUX_DIR([config])
7 AM_INIT_AUTOMAKE([foreign])
9 AC_CONFIG_SRCDIR([source/Shapes_Kernel_decls.h])
10 AM_CONFIG_HEADER([config.h])
12 # Checks for programs.
13 AC_PROG_CXX
14 AC_PROG_CC
15 AC_PROG_FLEX(2.5.33)
16 AC_PROG_BISON(2.3)
17 AC_PROG_COMPARE(6.4.0)
18 AM_PATH_SAXON(9)
19 AC_PROG_LIBTOOL
21 # Set compiler options
22 AC_DEBUG
23 AC_PROFILE
24 AC_OPTIMIZATION
26 # Checks for libraries.
27 AM_ICONV()
28 AH_VERBATIM([ICONV_CAST],
29 [/* Macro to handle different const convention in iconv calls */
30 #define ICONV_CAST( ptr ) const_cast< ICONV_CONST char ** > ( ptr )
32 AC_CHECK_LIB([c], [close])
33 AM_PATH_GSL([1.8],, AC_MSG_ERROR(GSL not found))
34 AC_CHECK_LIB([m], [cos])
35 AM_PATH_ZLIB()
36 AC_CHECK_NANSIGNAL()
39 # Checks for header files.
40 AC_FUNC_ALLOCA
41 AC_HEADER_STDC
42 AC_HEADER_SYS_WAIT
43 AC_CHECK_HEADERS([inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h sys/time.h unistd.h])
45 # Checks for typedefs, structures, and compiler characteristics.
46 AC_HEADER_STDBOOL
47 AC_C_CONST
48 AC_C_INLINE
49 AC_TYPE_PID_T
50 AC_C_RESTRICT
51 AC_TYPE_SIZE_T
52 AC_HEADER_TIME
53 AC_STRUCT_TM
55 # Checks for library functions.
56 AC_FUNC_ERROR_AT_LINE
57 AC_FUNC_FORK
58 AC_FUNC_MALLOC
59 AC_FUNC_REALLOC
60 AC_FUNC_STAT
61 AC_FUNC_STRFTIME
62 AC_FUNC_STRTOD
63 AC_CHECK_FUNCS([floor memchr memset pow rint sqrt strchr strdup strrchr strtol])
66 htmldir='${pkgdatadir}/doc/html'
67 AC_SUBST(htmldir)
70 AC_CONFIG_FILES([Makefile source/Makefile resources/Makefile
71                  test/Makefile test/text/Makefile test/graphics/Makefile
72                  doc/Makefile doc/tools/Makefile
73                  doc/tools/ssi/Makefile doc/tools/postproc/Makefile
74                  doc/tools/xhtml-deps/Makefile doc/build/Makefile
75                  doc/build/man/Makefile doc/build/html/Makefile])
76 AC_OUTPUT
78 if test "X$COMPARE" != "Xyes"
79 then
80   echo "\
81 WARNING:  The program \`compare' was not found, or its version too low.  Without it, errors in the tests are less likely to be detected."
84 if test "X$HAVE_SAXON" != "X1"
85 then
86   echo "\
87 WARNING: The program \`Saxon' was not found, without it installed the documentation cannot be rebuilt."