source: configure.ac@ a80f419

Last change on this file since a80f419 was a80f419, checked in by Frederik Heber <heber@…>, 15 years ago

First version.

Everything was extracted from project MoleCuilder and adapted such that it
runs on its own (i.e. new configure.ac, Makefile.am structure, stuff for
libtool versioning, ...)

  • Property mode set to 100644
File size: 1.6 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
5AC_INIT([CodePatterns], [0.0.1], [heber@ins.uni-bonn.de])
6AC_CONFIG_AUX_DIR(config)
7AC_CONFIG_SRCDIR([src/Patterns/Singleton_impl.hpp])
8AC_CONFIG_HEADERS([config.h libCodePatterns_config.h])
9AC_CONFIG_MACRO_DIR([m4])
10
11AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests])
12
13# Checks for programs.
14AM_PATH_CPPUNIT(1.9.6)
15AC_PROG_CXX
16AC_PROG_INSTALL
17AC_PROG_MAKE_SET
18AM_MISSING_PROG([DOXYGEN], [doxygen])
19
20# use libtool
21LT_INIT([disable-static])
22
23# Define these substitions here to keep all version information in one place.
24# For information on how to properly maintain the library version information,
25# refer to the libtool manual, section "Updating library version information":
26# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
27AC_SUBST([CODEPATTERNS_SO_VERSION], [1:0:0])
28AC_SUBST([CODEPATTERNS_API_VERSION], [1.0.0])
29
30# Checks for libraries.
31# FIXME: Replace `main' with a function in `-ldl':
32AC_CHECK_LIB([dl], [main])
33
34# Boost libraries
35AX_BOOST_BASE([1.40])
36AX_BOOST_THREAD
37
38# Checks for typedefs, structures, and compiler characteristics.
39AC_HEADER_STDBOOL
40AC_C_INLINE
41AC_TYPE_SIZE_T
42
43# Checks for library functions.
44AC_FUNC_MALLOC
45AC_CHECK_FUNCS([floor memset])
46
47AC_CONFIG_FILES([
48 CodePatterns-${CODEPATTERNS_API_VERSION}.pc:CodePatterns.pc.in])
49AC_CONFIG_FILES([
50 Makefile
51 doc/Makefile
52 src/Makefile
53 src/Patterns/Makefile
54 ])
55AC_CONFIG_FILES([
56 src/Patterns/unittests/Makefile
57 src/unittests/Makefile
58 ])
59AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.