# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.65]) AC_INIT([LibCodePatterns], [1.3.2], [heber@ins.uni-bonn.de], [libcodepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_SRCDIR([src/codepatterns-config-main.cpp]) AC_CONFIG_HEADERS([config.h libcodepatterns_config.h]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests subdir-objects]) # Checks for programs. AM_PATH_CPPUNIT(1.9.6) AC_PROG_CXX AC_PROG_INSTALL AC_PROG_MAKE_SET # use doxygen DX_HTML_FEATURE(ON) DX_PS_FEATURE(OFF) DX_PDF_FEATURE(OFF) DX_INIT_DOXYGEN(libcodepatterns, Doxyfile, ${docdir}) # use libtool LT_INIT([static]) AC_SUBST([LIBTOOL_DEPS]) # Define these substitions here to keep all version information in one place. # For information on how to properly maintain the library version information, # refer to the libtool manual, section "Updating library version information": # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html AC_SUBST([CODEPATTERNS_SO_VERSION], [12:2:0]) AC_SUBST([CODEPATTERNS_API_VERSION], [1.3.2]) # Checks for libraries. # FIXME: Replace `main' with a function in `-ldl': AC_CHECK_LIB([dl], [main]) # Boost libraries BOOST_REQUIRE([1.40]) BOOST_BIND BOOST_FUNCTION BOOST_ITERATOR BOOST_OPTIONAL BOOST_PREPROCESSOR BOOST_PROGRAM_OPTIONS BOOST_SERIALIZATION BOOST_SMART_PTR BOOST_THREADS BOOST_TOKENIZER # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_INLINE AC_TYPE_SIZE_T AC_CHECK_HEADERS([time.h]) AC_CHECK_HEADERS([sys/time.h]) AC_CHECK_HEADERS([sys/times.h]) AC_CHECK_HEADERS([unistd.h]) AC_CXX_HAVE_VALARRAY LIBRT="" AS_IF([test x"$ac_cv_header_time_h" = xyes], AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"]) AC_SUBST(LIBRT) ) # Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([memset]) # -${CODEPATTERNS_API_VERSION} AC_CONFIG_FILES([ libcodepatterns.pc:libcodepatterns.pc.in]) AC_CONFIG_FILES([ libcodepatterns-debug.pc:libcodepatterns-debug.pc.in]) AC_CONFIG_FILES([ Makefile doc/Makefile src/Makefile src/Helpers/Makefile src/Observer/Makefile src/Patterns/Makefile src/unittests/Makefile ]) AC_OUTPUT