Rolf Badorek | ef2bf51 | 2019-08-20 11:17:15 +0300 | [diff] [blame] | 1 | # SDL version |
| 2 | # |
| 3 | # 1. If no interface changes has been made, increment SDL_MICRO. |
| 4 | # 2. Else, if new interfaces have been added but existing interfaces have not |
| 5 | # been changed, increment SDL_MINOR and zero SDL_MICRO. (Backward compatible |
| 6 | # interface change.) |
| 7 | # 3. Else, increment SDL_MAJOR and zero both SDL_MINOR and SDL_MICRO. (Backward |
| 8 | # incompatible interface change.) |
| 9 | # |
| 10 | # Change the numbers just before release. |
| 11 | |
| 12 | m4_define([SDL_MAJOR], [1]) |
| 13 | m4_define([SDL_MINOR], [0]) |
Rolf Badorek | 2dcf940 | 2019-10-01 18:33:58 +0300 | [diff] [blame^] | 14 | m4_define([SDL_MICRO], [1]) |
Rolf Badorek | ef2bf51 | 2019-08-20 11:17:15 +0300 | [diff] [blame] | 15 | |
| 16 | # SDL ABI version with libtool |
| 17 | # |
| 18 | # 1. Always increase the revision value. |
| 19 | # 2. Increase the current value whenever an interface has been added, removed |
| 20 | # or changed. |
| 21 | # 3. Increase the age value only if the changes made to the ABI are backward |
| 22 | # compatible. |
| 23 | # |
| 24 | # See https://autotools.io/libtool/version.html |
| 25 | # |
| 26 | # Change the numbers just before release. |
| 27 | |
| 28 | m4_define([SDL_CURRENT], [1]) |
Rolf Badorek | 2dcf940 | 2019-10-01 18:33:58 +0300 | [diff] [blame^] | 29 | m4_define([SDL_REVISION], [1]) |
Rolf Badorek | ef2bf51 | 2019-08-20 11:17:15 +0300 | [diff] [blame] | 30 | m4_define([SDL_AGE], [0]) |
| 31 | |
| 32 | AC_INIT([shareddatalayer], [SDL_MAJOR.SDL_MINOR.SDL_MICRO], [], [], [https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/sdl]) |
| 33 | AC_CONFIG_HEADERS([include/config.h]) |
| 34 | AC_CONFIG_AUX_DIR([build-aux]) |
| 35 | AC_CONFIG_FILES([Makefile]) |
| 36 | AC_CONFIG_FILES([Doxyfile]) |
| 37 | AC_CONFIG_FILES([run-tests.sh], [chmod +x run-tests.sh]) |
| 38 | AC_CONFIG_MACRO_DIR([m4]) |
| 39 | AM_INIT_AUTOMAKE([subdir-objects foreign 1.13 tar-pax -Wall -Werror]) |
| 40 | AM_PROG_AR |
| 41 | LT_INIT |
| 42 | AM_SILENT_RULES([yes]) |
| 43 | AC_PROG_CXX |
| 44 | AC_LANG([C++]) |
| 45 | AC_PROG_MKDIR_P |
| 46 | AM_PROG_LIBTOOL |
| 47 | AC_CONFIG_MACRO_DIR([m4]) |
| 48 | AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) |
| 49 | AX_PTHREAD |
| 50 | AX_BOOST_BASE([1.53], [], [AC_MSG_ERROR(Unable to detect suitable boost library)]) |
| 51 | AX_BOOST_PROGRAM_OPTIONS |
| 52 | AX_BOOST_SYSTEM |
| 53 | AX_BOOST_FILESYSTEM |
| 54 | PKG_PROG_PKG_CONFIG |
| 55 | |
| 56 | AC_DEFINE([HAVE_SYSTEMLOGGER], [1], [Have systemlogger]) |
| 57 | AM_CONDITIONAL([SYSTEMLOGGER], [test xtrue]) |
| 58 | |
| 59 | SDL_CONF_DIR=$sysconfdir/$PACKAGE_NAME.d |
| 60 | AC_SUBST(SDL_CONF_DIR) |
| 61 | |
| 62 | AC_DEFINE(HAVE_REDIS, [1], [Have redis]) |
| 63 | AM_CONDITIONAL([REDIS], [test xtrue]) |
Rolf Badorek | 8324d02 | 2019-09-17 16:47:20 +0300 | [diff] [blame] | 64 | |
Rolf Badorek | ef2bf51 | 2019-08-20 11:17:15 +0300 | [diff] [blame] | 65 | PKG_CHECK_MODULES([HIREDIS], [hiredis]) |
| 66 | AC_DEFINE(HAVE_HIREDIS, [1], [Have hiredis]) |
| 67 | AM_CONDITIONAL([HIREDIS], [test xtrue]) |
| 68 | # Redis cluster configuration is not supported in RIC currently (implementation is not compatible with current hiredis-vip version) |
| 69 | AC_DEFINE(HAVE_HIREDIS_VIP, [0], [Have hiredis-vip]) |
| 70 | AM_CONDITIONAL([HIREDIS_VIP], [test "xyes" = "xno"]) |
| 71 | |
| 72 | DX_DOT_FEATURE(ON) |
| 73 | DX_INIT_DOXYGEN([shareddatalayer], [Doxyfile], [doxygen-doc]) |
| 74 | SDL_LT_VERSION=m4_format("%d:%d:%d", SDL_CURRENT, SDL_REVISION, SDL_AGE) |
| 75 | AC_SUBST(SDL_LT_VERSION) |
| 76 | AC_OUTPUT |