summaryrefslogtreecommitdiff
path: root/configure.ac
blob: d1f63ba73bc5eb7b731a3bf18084c6da1ce97f42 (plain)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
EFL_VERSION([1], [7], [9])
AC_INIT([eldbus], [efl_version], [enlightenment-devel@lists.sourceforge.net])

AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])

AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign subdir-objects dist-bzip2])

m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

PKG_PROG_PKG_CONFIG

EFL_COMPILER_FLAG([-Wall])
EFL_COMPILER_FLAG([-Wextra])
EFL_COMPILER_FLAG([-Wshadow])
EFL_COMPILER_FLAG([-Wno-unused-parameter])
EFL_COMPILER_FLAG([-Wvla])
EFL_COMPILER_FLAG([-Wundef])
EFL_COMPILER_FLAG([-Wformat=2])
EFL_COMPILER_FLAG([-Wlogical-op])
EFL_COMPILER_FLAG([-Wsign-compare])
EFL_COMPILER_FLAG([-Wformat-security])
EFL_COMPILER_FLAG([-Wmissing-include-dirs])
EFL_COMPILER_FLAG([-Wformat-nonliteral])
EFL_COMPILER_FLAG([-Wold-style-definition])
EFL_COMPILER_FLAG([-Wpointer-arith])
EFL_COMPILER_FLAG([-Winit-self])
EFL_COMPILER_FLAG([-Wdeclaration-after-statement])
EFL_COMPILER_FLAG([-Wmissing-declarations])
EFL_COMPILER_FLAG([-Wmissing-noreturn])
EFL_COMPILER_FLAG([-Wendif-labels])
EFL_COMPILER_FLAG([-Wstrict-aliasing=2])
EFL_COMPILER_FLAG([-Wwrite-strings])
EFL_COMPILER_FLAG([-Wno-long-long])
EFL_COMPILER_FLAG([-Wno-overlength-strings])
EFL_COMPILER_FLAG([-Wno-missing-field-initializers])
EFL_COMPILER_FLAG([-Wno-nested-externs])
EFL_COMPILER_FLAG([-Wchar-subscripts])
EFL_COMPILER_FLAG([-Wtype-limits])
EFL_COMPILER_FLAG([-Wuninitialized])

AC_LANG_C

AC_PROG_CC
AC_PROG_MKDIR_P
AM_PROG_CC_C_O

AC_DISABLE_STATIC
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL

# doxygen program for documentation building
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])

EFL_INIT

PKG_CHECK_MODULES([EINA], [eina >= 1.7.9])
PKG_CHECK_MODULES([ECORE], [ecore >= 1.7.9])
PKG_CHECK_MODULES([DBUS], [dbus-1])

with_max_log_level="EINA_LOG_LEVEL_DBG"
AC_ARG_WITH(maximum-log-level,
   [AC_HELP_STRING([--with-maximum-log-level=NUMBER],
                   [limit log level, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
   [with_max_log_level="${withval}"], [:])
AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])

EFL_ENABLE_BIN([eldbus-codegen], ["yes"])

if test "x${have_eldbus_codegen}" = "xyes" ; then
	PKG_CHECK_MODULES([ELDBUS_CODEGEN],
		[eina >= 1.7.9
		 ecore >= 1.7.9],
		[have_eldbus_codegen="yes"],
		[have_eldbus_codegen="no"])
fi

AC_CONFIG_FILES([
Makefile
eldbus.spec
doc/Makefile
doc/Doxyfile
])

AC_OUTPUT