-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
71 lines (54 loc) · 1.73 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
dnl Process this file with autoconf to produce a configure script.
AC_CONFIG_MACRO_DIR([m4])
m4_define([v_maj], [0])
m4_define([v_min], [1])
m4_define([v_mic], [3])
m4_define([project_version], [v_maj.v_min.v_mic])
m4_define([lt_cur], m4_eval(v_maj + v_min))
m4_define([lt_rev], [v_mic])
m4_define([lt_age], [v_min])
AC_INIT([geodata],[project_version])
version_info="lt_cur:lt_rev:lt_age"
AC_SUBST([version_info])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
AX_CHECK_ENABLE_DEBUG([info], [DEBUG], [RELEASE], [IS-RELEASE])
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
dnl we depend on c++20 in just one place (glglobe),
dnl (did choose it for consistency across libs and programs)
dnl so if you happen to find yourself in the need to use
dnl a older compiler c++17, may work as well with some adaptions.
AX_CXX_COMPILE_STDCXX([20], [noext], [optional])
AC_DISABLE_STATIC
LT_INIT
AC_CANONICAL_HOST
AC_MSG_NOTICE([host_os $host_os])
dnl already imported with genericImg
dnl PKG_CHECK_MODULES([GTKMM], [gtkmm-3.0])
dnl already imported with genericImg
dnl PKG_CHECK_MODULES([GLIBMM], [glibmm-2.4 giomm-2.4])
depend_genericimg="genericimg >= 0.3.1"
AC_SUBST([depend_genericimg])
PKG_CHECK_MODULES([GENERICIMG],[$depend_genericimg])
depend_genericglm="genericglm >= 0.3.1"
AC_SUBST([depend_genericglm])
PKG_CHECK_MODULES([GENERICGLM],[$depend_genericglm])
depend_libsoup=libsoup-3.0
AC_SUBST([depend_libsoup])
PKG_CHECK_MODULES(LIBSOUP3, [$depend_libsoup])
depend_jsonglib1="json-glib-1.0"
AC_SUBST([depend_jsonglib1])
PKG_CHECK_MODULES(JSONGLIB1, [$depend_jsonglib1])
if test "$host_os" = "mingw32" ; then
AC_SUBST(EXTRA_LDFLAGS, "-no-undefined")
fi
AC_CONFIG_FILES([
Makefile
src/geodata.pc
src/Makefile
test/Makefile
])
AC_OUTPUT