Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 1 | AC_PREREQ([2.69]) |
| 2 | AC_INIT([phosphor-settingsd], [1.0], [https://github.com/openbmc/phosphor-settingsd/issues]) |
| 3 | AC_LANG([C++]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 6 | AM_SILENT_RULES([yes]) |
| 7 | |
| 8 | AC_PROG_CXX |
| 9 | AM_PROG_AR |
| 10 | AC_PROG_INSTALL |
| 11 | AC_PROG_MAKE_SET |
| 12 | AM_PATH_PYTHON([2.7], [AC_SUBST([PYTHON], [echo "$PYTHON"])], [AC_MSG_ERROR( |
| 13 | [Could not find python-2.7 installed...python-2.7 is required])]) |
| 14 | |
Patrick Venture | 5d3c69b | 2019-02-13 15:39:44 -0800 | [diff] [blame] | 15 | PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces]) |
| 16 | PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus]) |
| 17 | PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging]) |
Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 18 | |
| 19 | LT_INIT |
| 20 | |
Vernon Mauery | e7e46df | 2018-10-04 10:28:29 -0700 | [diff] [blame] | 21 | AX_CXX_COMPILE_STDCXX_17([noext]) |
Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 22 | AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS]) |
| 23 | |
| 24 | AC_ARG_VAR(SETTINGS_BUSNAME, [The Dbus busname to own]) |
| 25 | AS_IF([test "x$SETTINGS_BUSNAME" == "x"],\ |
| 26 | [SETTINGS_BUSNAME="xyz.openbmc_project.Settings"]) |
| 27 | AC_DEFINE_UNQUOTED([SETTINGS_BUSNAME], ["$SETTINGS_BUSNAME"],\ |
| 28 | [The DBus busname to own]) |
| 29 | |
Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 30 | AS_IF([test "x$SETTINGS_YAML" == "x"], [SETTINGS_YAML="settings_example.yaml"]) |
| 31 | SETTINGSGEN="$PYTHON $srcdir/settings.py -i $SETTINGS_YAML" |
| 32 | AC_SUBST(SETTINGSGEN) |
| 33 | |
Deepak Kodihalli | 7a6f252 | 2017-06-23 23:05:47 -0500 | [diff] [blame] | 34 | AC_ARG_VAR(SETTINGS_PERSIST_PATH, \ |
| 35 | [Path of directory housing persisted settings.]) |
| 36 | AS_IF([test "x$SETTINGS_PERSIST_PATH" == "x"], \ |
| 37 | [SETTINGS_PERSIST_PATH="/var/lib/phosphor-settings-manager/settings"]) |
| 38 | AC_DEFINE_UNQUOTED([SETTINGS_PERSIST_PATH], ["$SETTINGS_PERSIST_PATH"], \ |
| 39 | [Path of directory housing persisted settings]) |
| 40 | |
Vishwanatha Subbanna | a29a3eb | 2017-09-29 19:18:20 +0530 | [diff] [blame] | 41 | AC_ARG_VAR(CLASS_VERSION, [Class version to register with Cereal]) |
| 42 | AS_IF([test "x$CLASS_VERSION" == "x"], [CLASS_VERSION=1]) |
| 43 | AC_DEFINE_UNQUOTED([CLASS_VERSION], [$CLASS_VERSION], [Class version to register with Cereal]) |
| 44 | |
Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 45 | AC_CONFIG_FILES([Makefile]) |
| 46 | AC_OUTPUT |