X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=b095e6552912386336a85d229d0d20abe2b22c1e;hb=ab4802fe7b055f0e1f22b918c0999472e2d284b3;hp=2636046840ca7fda3968f3040ed0b0854d4dfecd;hpb=7da4d3ae46279298acd5d65637499caab7b57071;p=cln.git diff --git a/configure.ac b/configure.ac index 2636046..b095e65 100644 --- a/configure.ac +++ b/configure.ac @@ -1,33 +1,39 @@ dnl run autoreconf -iv to produce the configure script. m4_define([cl_version_major], [1]) -m4_define([cl_version_minor], [2]) -m4_define([cl_version_patchlevel], [2]) +m4_define([cl_version_minor], [3]) +m4_define([cl_version_patchlevel], [4]) m4_define([cl_version], [cl_version_major.cl_version_minor.cl_version_patchlevel]) dnl Libtool's library version information for CLN. dnl (Not to be confused with CLN's release version.) dnl Making new releases: -dnl * increment CL_REVISION, -dnl * if any functions/classes have been added, removed or changed, increment -dnl CL_CURRENT and set CL_REVISION to 0, -dnl * if any functions/classes have been added, increment CL_AGE, -dnl * if backwards compatibility has been broken, set CL_AGE to 0. -dnl $(CL_CURRENT):$(CL_REVISION):$(CL_AGE) results in -dnl libcln.so.$(CL_CURRENT)-$(CL_AGE) -m4_define([cl_current], [6]) -m4_define([cl_revision], [0]) -m4_define([cl_age], [0]) -m4_define([cl_lt_version], [cl_current:cl_revision:cl_age]) +dnl * increment cl_lt_revision, +dnl * if any interfaces have been added, removed, or changed, then increment +dnl cl_lt_current and set cl_lt_revision to 0, +dnl * if any interfaces have been added, then increment cl_lt_age, +dnl * if any interfaces have been removed, set cl_lt_age to 0. +dnl (On many systems, $(cl_lt_current):$(cl_lt_revision):$(cl_lt_age) results in +dnl libcln.so.$(cl_lt_current)-$(cl_lt_age).) +m4_define([cl_lt_current], [6]) +m4_define([cl_lt_revision], [4]) +m4_define([cl_lt_age], [0]) +m4_define([cl_lt_version], [cl_lt_current:cl_lt_revision:cl_lt_age]) -AC_INIT([cln], cln_version) +AC_INIT([cln], cl_version) AC_PREREQ(2.59) AC_CONFIG_SRCDIR(src/integer/gcd/cl_I_gcd.cc) -AC_CONFIG_AUX_DIR([autoconf]) -AC_CONFIG_HEADERS(include/cln/config.h include/cln/host_cpu.h include/cln/version.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/timing/cl_t_config.h) -AM_INIT_AUTOMAKE([foreign 1.8 dist-bzip2]) -AH_TOP([#ifdef _CL_CONFIG_H]) +AC_CONFIG_AUX_DIR([build-aux]) +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_HEADERS(autoconf/cl_config.h include/cln/config.h include/cln/host_cpu.h include/cln/version.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/timing/cl_t_config.h) +AM_INIT_AUTOMAKE([foreign 1.10 dist-bzip2 subdir-objects]) +AH_TOP([#ifndef _CL_CONFIG_H]) +AH_TOP([#define _CL_CONFIG_H]) AH_TOP([#include "cln/host_cpu.h"]) +AH_TOP([/* prevents cln/config.h from being included, so no macro gets redefined */]) +AH_TOP([#define _CL_CONFIG_PUBLIC_H]) +AH_TOP([/* prevents cln/version.h from being included, so no macro gets redefined */]) +AH_TOP([#define _CL_VERSION_H]) AH_BOTTOM([#endif /* _CL_CONFIG_H */]) dnl checks for programs @@ -49,7 +55,7 @@ AC_PROG_INSTALL dnl dnl check for host type dnl -CL_CANONICAL_HOST(autoconf) +CL_CANONICAL_HOST dnl sets variables host, host_cpu, host_vendor, host_os CL_CANONICAL_HOST_CPU dnl DEFS __${host_cpu}__ @@ -132,7 +138,11 @@ CL_MACHINE([floating-point types and behaviour],${srcdir}/autoconf/floatparam.c, dnl builds include/cln/floatparam.h CL_LIBGMP dnl DEFS CL_USE_GMP, GMP_DEMANDS_UINTD_* + +CLNLIB_LIBS='-L${libdir} -lcln' +AC_LIB_LINKFLAGS_FROM_LIBS([CLNLIB_RPATH], [$CLNLIB_LIBS]) + dnl dnl That's it. dnl -AC_OUTPUT([Makefile src/Makefile tests/Makefile examples/Makefile doc/Makefile cln.spec cln.pc]) +AC_OUTPUT([Makefile src/Makefile tests/Makefile examples/Makefile doc/Makefile benchmarks/Makefile cln.spec cln.pc])