1 dnl ***************************
2 dnl *** Version information ***
3 dnl ***************************
4 m4_define([boot_manager_version_api_major], [1])
5 m4_define([boot_manager_version_major], [0])
6 m4_define([boot_manager_version_minor], [0])
7 m4_define([boot_manager_version_micro], [0])
8 m4_define([boot_manager_version], [boot_manager_version_major().boot_manager_version_minor().boot_manager_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([boot-manager], [boot_manager_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 boot-manager version ***
30 dnl **********************************
31 BOOT_MANAGER_VERSION_MAJOR=boot_manager_version_major()
32 BOOT_MANAGER_VERSION_MINOR=boot_manager_version_minor()
33 BOOT_MANAGER_VERSION_MICRO=boot_manager_version_micro()
34 BOOT_MANAGER_VERSION_API_MAJOR=boot_manager_version_api_major()
35 BOOT_MANAGER_VERSION_API=$BOOT_MANAGER_VERSION_API_MAJOR
36 AC_SUBST([BOOT_MANAGER_VERSION_MAJOR])
37 AC_SUBST([BOOT_MANAGER_VERSION_MINOR])
38 AC_SUBST([BOOT_MANAGER_VERSION_MICRO])
39 AC_SUBST([BOOT_MANAGER_VERSION_API_MAJOR])
40 AC_SUBST([BOOT_MANAGER_VERSION_API])
42 dnl ********************************
43 dnl *** Check for basic programs ***
44 dnl ********************************
49 AC_PROG_INTLTOOL([0.31], [no-xml])
51 dnl ***********************
52 dnl *** Prepare libtool ***
53 dnl ***********************
55 LT_INIT([disable-static])
57 dnl ***************************************
58 dnl *** Check for standard header files ***
59 dnl ***************************************
63 dnl ************************************
64 dnl *** Check for standard functions ***
65 dnl ************************************
68 dnl *************************
69 dnl *** Check for GTK-Doc ***
70 dnl *************************
73 dnl *******************************
74 dnl *** Check for gdbus-codegen ***
75 dnl *******************************
76 AC_ARG_VAR([GDBUS_CODEGEN], [Tool to generate C bindings from XML D-Bus interface definitions])
77 AC_PATH_PROG([GDBUS_CODEGEN], [gdbus-codegen], [no])
78 if test x"$GDBUS_CODEGEN" = x"no"; then
79 AC_MSG_ERROR([could not find gdbus-codegen in \$PATH. You can run
80 ./configure GDBUS_CODEGEN=/path/to/gdbus-codegen to define
81 a custom location for it.])
84 dnl ***********************************
85 dnl *** Check for required packages ***
86 dnl ***********************************
87 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.30.0])
88 PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.30.0])
89 PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon >= 183])