-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
56 lines (48 loc) · 1.56 KB
/
configure.ac
File metadata and controls
56 lines (48 loc) · 1.56 KB
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.70])
AC_INIT([CassObs], [3.1.0], [contact@meteo-concept.fr])
AC_CANONICAL_TARGET
AC_CONFIG_SRCDIR([src/dbconnection_common.h])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
## Checks for programs.
# For compiling
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_17
AC_LANG([C++])
# For libtooling
AM_PROG_AR
# For pkg-configing
PKG_PROG_PKG_CONFIG
PKG_INSTALLDIR
# For the documentation
AC_CHECK_PROGS([DOT], [dot])
if test -z "$DOT";
then AC_MSG_WARN([[Graphs will not be available in Doxygen documentation]])
fi
AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test -z "$DOXYGEN";
then AC_MSG_WARN([[Doxygen not found - continuing without Doxygen support]])
fi
AM_CONDITIONAL([HAVE_DOXYGEN],[test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([Doxyfile])])
AM_CONDITIONAL([HAVE_DOT],[test -n "$DOT"])
AM_COND_IF([HAVE_DOT], [AC_SUBST(DOT_IS_AVAILABLE,["YES"])], [AC_SUBST(DOT_IS_AVAILABLE,["NO"])])
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([syslog.h])
AC_CHECK_HEADERS([cassandra.h])
AC_CHECK_HEADERS([date.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AX_PTHREAD
PKG_CHECK_MODULES(MYSQL, [mariadb mysqlclient])
PKG_CHECK_MODULES(POSTGRES, [libpqxx])
PKG_CHECK_MODULES(CASSANDRA, [cassandra])
# Output the configuration
AC_CONFIG_FILES([Makefile src/Makefile cassobs.pc])
LT_INIT
AC_OUTPUT