-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
63 lines (45 loc) · 1.63 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
dnl Process this file with autoconf to produce a configure script.
AC_CONFIG_MACRO_DIR([m4])
AC_INIT([glglobe],[0.1],[glglobe@pfeifer-syscon.de])
dnl point to unique-file-in-source-dir, for safety check
AC_CONFIG_SRCDIR([src/GlGlobeApp.cpp])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])
AM_SILENT_RULES([yes])
AX_CHECK_ENABLE_DEBUG([info], [DEBUG], [RELEASE], [IS-RELEASE])
AC_PROG_CXX
dnl we depend on c++20 just here
dnl (important only if you are compiling for a platform with timezone
dnl names not like e.g. Europe/Paris (e.g. windose)).
AX_CXX_COMPILE_STDCXX([20], [noext], [optional])
LT_INIT
AC_CANONICAL_HOST
AC_MSG_NOTICE([host_os $host_os])
PKG_CHECK_MODULES(GTHREAD,gthread-2.0)
PKG_CHECK_MODULES([GEODATA], [geodata >= 0.1.4])
dnl spec this as the version will most likely differ
PKG_CHECK_MODULES([GENERICGLM], [genericglm >= 0.3.1])
PKG_CHECK_MODULES([GENERICIMG], [genericimg >= 0.4.0])
dnl dont repeat dependencies from geodata
dnl PKG_CHECK_MODULES(GLIBMM,glibmm-2.4)
dnl PKG_CHECK_MODULES(GTKMM, [gtkmm-3.0 ])
dnl PKG_CHECK_MODULES(LIBSOUP3, [libsoup-3.0])
dnl PKG_CHECK_MODULES(JSONGLIB1, [json-glib-1.0])
AM_GNU_GETTEXT([external])
AC_ARG_WITH([gles], AS_HELP_STRING([--with-gles], [use glesv3 (e.g. Raspi) otherweise fullgl, requires same use as with GenericGlm]))
if test "x$with_gles" = "xyes" ; then
PKG_CHECK_MODULES(EPOXY,[glesv2], [AC_DEFINE([USE_GLES], [1], [Using glesv3 (e.g. Raspi)])])
else
PKG_CHECK_MODULES(EPOXY,[epoxy])
fi
AX_CHECK_SED()
if test "$host_os" = "mingw32" ; then
AC_SUBST(EXTRA_LDFLAGS, "-mwindows")
fi
AC_CONFIG_FILES([
Makefile
src/Makefile
res/Makefile
po/Makefile.in
])
AC_OUTPUT