1 dnl ***************************
2 dnl *** Version information ***
3 dnl ***************************
4 m4_define([node_startup_controller_version_api_major], [1])
5 m4_define([node_startup_controller_version_major], [1])
6 m4_define([node_startup_controller_version_minor], [0])
7 m4_define([node_startup_controller_version_micro], [2])
8 m4_define([node_startup_controller_version], [node_startup_controller_version_major().node_startup_controller_version_minor().node_startup_controller_version_micro()])
10 dnl ***************************
11 dnl *** Initialize autoconf ***
12 dnl ***************************
13 AC_COPYRIGHT([Copyright (c) 2012 GENIVI <genivi-dev@mail.genivi.org>])
14 AC_INIT([node-startup-controller], [node_startup_controller_version], [genivi-dev@mail.genivi.org])
18 dnl ***************************
19 dnl *** Initialize automake ***
20 dnl ***************************
21 AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
22 AC_CONFIG_MACRO_DIR([m4])
23 AC_SUBST([ACLOCAL_AMFLAGS], ["$ACLOCAL_FLAGS -I m4"])
24 AM_CONFIG_HEADER([config.h])
26 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
28 dnl **********************************
29 dnl *** Subst node-startup-controller version ***
30 dnl **********************************
31 NODE_STARTUP_CONTROLLER_VERSION_MAJOR=node_startup_controller_version_major()
32 NODE_STARTUP_CONTROLLER_VERSION_MINOR=node_startup_controller_version_minor()
33 NODE_STARTUP_CONTROLLER_VERSION_MICRO=node_startup_controller_version_micro()
34 NODE_STARTUP_CONTROLLER_VERSION_API_MAJOR=node_startup_controller_version_api_major()
35 NODE_STARTUP_CONTROLLER_VERSION_API=$NODE_STARTUP_CONTROLLER_VERSION_API_MAJOR
36 AC_SUBST([NODE_STARTUP_CONTROLLER_VERSION_MAJOR])
37 AC_SUBST([NODE_STARTUP_CONTROLLER_VERSION_MINOR])
38 AC_SUBST([NODE_STARTUP_CONTROLLER_VERSION_MICRO])
39 AC_SUBST([NODE_STARTUP_CONTROLLER_VERSION_API_MAJOR])
40 AC_SUBST([NODE_STARTUP_CONTROLLER_VERSION_API])
42 dnl ********************************
43 dnl *** Check for basic programs ***
44 dnl ********************************
50 dnl ***********************
51 dnl *** Prepare libtool ***
52 dnl ***********************
54 LT_INIT([disable-static])
56 dnl ***************************************
57 dnl *** Check for standard header files ***
58 dnl ***************************************
60 AC_CHECK_HEADERS([stdlib.h])
62 dnl ************************************
63 dnl *** Check for standard functions ***
64 dnl ************************************
67 dnl *************************
68 dnl *** Check for GTK-Doc ***
69 dnl *************************
70 m4_ifdef([GTK_DOC_CHECK], [
73 AM_CONDITIONAL([ENABLE_GTK_DOC], false)
76 dnl *******************************
77 dnl *** Check for gdbus-codegen ***
78 dnl *******************************
79 AC_ARG_VAR([GDBUS_CODEGEN], [Tool to generate C bindings from XML D-Bus interface definitions])
80 AC_PATH_PROG([GDBUS_CODEGEN], [gdbus-codegen], [no])
81 if test x"$GDBUS_CODEGEN" = x"no"; then
82 AC_MSG_ERROR([could not find gdbus-codegen in \$PATH. You can run
83 ./configure GDBUS_CODEGEN=/path/to/gdbus-codegen to define
84 a custom location for it.])
87 dnl ***********************************
88 dnl *** Check for required packages ***
89 dnl ***********************************
90 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.30.0])
91 PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.30.0])
92 PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.30.0])
93 PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon >= 183])
94 PKG_CHECK_MODULES([DLT], [automotive-dlt >= 2.2.0])
96 dnl *********************************************
97 dnl *** Include GLib/GSettings specific stuff ***
98 dnl *********************************************
101 dnl ***********************************
102 dnl *** Check for debugging support ***
103 dnl ***********************************
104 AC_ARG_ENABLE([debug],
105 AC_HELP_STRING([--enable-debug@:@=no|yes@:>@],
106 [Build with debugging support @<:@default=m4_default([$1], [no])@:>@]),
107 [enable_debug=$enableval], [enable_debug=m4_default([$1], [no])])
108 AC_MSG_CHECKING([whether to build with debugging support])
109 if test x"$enable_debug" = x"yes"; then
110 AC_DEFINE([DEBUG], [1], [Define for debugging support])
112 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
113 CFLAGS="$CFLAGS -Werror -Wall -Wextra \
114 -Wno-missing-field-initializers \
115 -Wno-unused-parameter -Wold-style-definition \
116 -Wdeclaration-after-statement \
117 -Wmissing-declarations \
118 -Wmissing-noreturn -Wpointer-arith \
119 -Wcast-align -Wformat-security \
120 -Winit-self -Wmissing-include-dirs -Wundef \
121 -Wmissing-format-attribute -Wnested-externs \
129 dnl ***************************************************
130 dnl *** Configure option for prioritising LUC types ***
131 dnl ***************************************************
132 AC_ARG_WITH([prioritised-luc-types],
133 [AS_HELP_STRING([--with-prioritised-luc-types=LIST],
134 [Comma-separated list of LUC types to be prioritised during start-up])],
135 [with_prioritised_luc_types=$withval], [with_prioritised_luc_types=])
136 AC_DEFINE_UNQUOTED([PRIORITISED_LUC_TYPES],
137 ["$with_prioritised_luc_types"],
138 [Prioritised LUC types])
142 node-startup-controller/busconf/Makefile
143 node-startup-controller/Makefile
146 docs/reference/Makefile
147 docs/reference/node-startup-controller/Makefile
148 docs/reference/node-startup-controller/version.xml
149 legacy-app-handler/Makefile
150 nsm-dummy/busconf/Makefile
153 tests/node-startup-controller/Makefile
154 tests/legacy-app-handler/Makefile