blob: 2cc5221425aa27bfc1c742f0fcad558e037ccb55 [file] [log] [blame]
Matthew Barthae0e96c2017-01-20 13:54:59 -06001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([phosphor-fan-presence], [1.0],
4[https://github.com/openbmc/phosphor-fan-presence/issues])
5AC_LANG([C++])
6AC_CONFIG_HEADERS([config.h])
7AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
8AM_SILENT_RULES([yes])
9
Lei YUbd2e80a2018-09-19 11:17:09 +080010# Use gcc-ar and gcc-ranlib for static libraries built with -flto
11AC_SUBST([AR], [${ac_tool_prefix}gcc-ar])
12AC_SUBST([RANLIB], [${ac_tool_prefix}gcc-ranlib])
13
Matthew Barthae0e96c2017-01-20 13:54:59 -060014# Checks for programs.
15AC_PROG_CXX
16AM_PROG_AR
17AC_PROG_INSTALL
18AC_PROG_MAKE_SET
Brad Bishop93919bb2017-04-22 14:58:29 -040019
Matthew Barth681c98d2017-02-17 16:05:57 -060020# Python
Matthew Barthf24d7742020-03-17 16:12:15 -050021AM_PATH_PYTHON([3], [AC_SUBST([PYTHON], [echo "$PYTHON"])],
22[AC_MSG_ERROR([Minimum python version(3) not found])])
Matthew Barthae0e96c2017-01-20 13:54:59 -060023
24# Checks for typedefs, structures, and compiler characteristics.
Vernon Mauery48df9592018-10-04 10:08:13 -070025AX_CXX_COMPILE_STDCXX_17([noext])
Matthew Barthae0e96c2017-01-20 13:54:59 -060026AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
27
28# Checks for libraries.
Patrick Venture4b258ac2019-02-13 14:48:21 -080029PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
30PKG_CHECK_MODULES([SDEVENTPLUS], [sdeventplus])
31PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
32PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
33PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
34PKG_CHECK_MODULES([LIBEVDEV], [libevdev])
Matthew Barthf3e70472019-12-03 13:33:20 -060035PKG_CHECK_MODULES([STDPLUS], [stdplus])
Matthew Barth1826c732020-08-28 08:40:59 -050036PKG_CHECK_MODULES([FMT], [fmt])
Matthew Barth293477d2017-02-17 15:39:36 -060037
Matthew Barthae0e96c2017-01-20 13:54:59 -060038# Checks for library functions.
39LT_INIT # Required for systemd linking
40
Matt Spinler59c29c72017-04-27 11:17:28 -050041# Check/set gtest specific functions.
42AX_PTHREAD([GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=1"],[GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=0"])
43AC_SUBST(GTEST_CPPFLAGS)
44AC_ARG_ENABLE([oe-sdk],
45 AS_HELP_STRING([--enable-oe-sdk], [Link testcases absolutely against OE SDK so they can be ran within it.])
46)
47AC_ARG_VAR(OECORE_TARGET_SYSROOT,
48 [Path to the OE SDK SYSROOT])
49AS_IF([test "x$enable_oe_sdk" == "xyes"],
50 AS_IF([test "x$OECORE_TARGET_SYSROOT" == "x"],
51 AC_MSG_ERROR([OECORE_TARGET_SYSROOT must be set with --enable-oe-sdk])
52 )
53 AC_MSG_NOTICE([Enabling OE-SDK at $OECORE_TARGET_SYSROOT])
54 [
55 testcase_flags="-Wl,-rpath,\${OECORE_TARGET_SYSROOT}/lib"
56 testcase_flags="${testcase_flags} -Wl,-rpath,\${OECORE_TARGET_SYSROOT}/usr/lib"
57 testcase_flags="${testcase_flags} -Wl,-dynamic-linker,`find \${OECORE_TARGET_SYSROOT}/lib/ld-*.so | sort -r -n | head -n1`"
58 ]
59 AC_SUBST([OESDK_TESTCASE_FLAGS], [$testcase_flags])
60)
61
Matt Spinler00db9502021-02-04 16:43:31 -060062PKG_PROG_PKG_CONFIG
63AC_ARG_WITH([systemdsystemunitdir],
64 [AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files])],,
65 [with_systemdsystemunitdir=auto])
66AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"], [
67 def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
68
69 AS_IF([test "x$def_systemdsystemunitdir" = "x"],
70 [AS_IF([test "x$with_systemdsystemunitdir" = "xyes"],
71 [AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])])
72 with_systemdsystemunitdir=no],
73 [with_systemdsystemunitdir="$def_systemdsystemunitdir"])])
74AS_IF([test "x$with_systemdsystemunitdir" != "xno"],
75 [AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])])
76
Matthew Barthcc194802020-01-09 13:55:34 -060077AC_ARG_ENABLE([json],
78 AS_HELP_STRING([--enable-json], [Use json at runtime to configure fan packages.]))
Brad Bishop93919bb2017-04-22 14:58:29 -040079AC_ARG_ENABLE([presence],
80 AS_HELP_STRING([--disable-presence], [Disable fan presence package.]))
81AC_ARG_ENABLE([control],
82 AS_HELP_STRING([--disable-control], [Disable fan control package.]))
Matthew Barth8e1b3822020-11-12 11:57:23 -060083AC_ARG_ENABLE([json-control],
84 AS_HELP_STRING([--disable-json-control], [Disable the use of JSON to configure fan control in favor of YAML.]))
Brandon Wymanca60e102017-03-29 17:06:02 -050085AC_ARG_ENABLE([cooling-type],
86 AS_HELP_STRING([--disable-cooling-type], [Disable cooling-type package.]))
Matt Spinleraf5d4c52017-05-16 10:38:43 -050087AC_ARG_ENABLE([monitor],
88 AS_HELP_STRING([--disable-monitor], [Disable monitor]))
Matt Spinler9c0715b2021-01-21 11:15:33 -060089AC_ARG_ENABLE([sensor-monitor],
90 AS_HELP_STRING([--enable-sensor-monitor], [Enable sensor monitor]))
Brad Bishop93919bb2017-04-22 14:58:29 -040091
Matthew Barthcc194802020-01-09 13:55:34 -060092AM_CONDITIONAL([WANT_JSON], [test "x$enable_json" == "xyes"])
Matthew Barth8e1b3822020-11-12 11:57:23 -060093AM_CONDITIONAL([WANT_JSON_CONTROL], [test "x$enable_json" == "xyes" -a "x$enable_json_control" != "xno"])
Brad Bishop93919bb2017-04-22 14:58:29 -040094AM_CONDITIONAL([WANT_PRESENCE], [test "x$enable_presence" != "xno"])
95AM_CONDITIONAL([WANT_CONTROL], [test "x$enable_control" != "xno"])
Brandon Wymance822442017-04-10 17:48:02 -050096AM_CONDITIONAL([WANT_COOLING_TYPE], [test "x$enable_cooling_type" != "xno"])
Matt Spinlere567dd22017-04-27 12:27:17 -050097AM_CONDITIONAL([WANT_MONITOR], [test "x$enable_monitor" != "xno"])
Matt Spinler9c0715b2021-01-21 11:15:33 -060098AM_CONDITIONAL([WANT_SENSOR_MONITOR], [test "x$enable_sensor_monitor" == "xyes"])
Brad Bishop93919bb2017-04-22 14:58:29 -040099
100# Package specific checks.
101AS_IF([test "x$enable_presence" != "xno"], [
Matthew Barthcc194802020-01-09 13:55:34 -0600102 # Use runtime(json) config, otherwise default to compile time(yaml) config
103 AM_COND_IF([WANT_JSON],
104 [
Matthew Barth8bf1c422021-08-05 11:30:09 -0500105 AC_ARG_VAR(MACHINE, [Machine name to install a particular set of associated config file(s)])
Matthew Barthcc194802020-01-09 13:55:34 -0600106 AC_CHECK_HEADER(nlohmann/json.hpp, ,
107 [AC_MSG_ERROR([Could not find nlohmann/json.hpp... nlohmann/json package required])])
108 # Set config flag for runtime json usage
109 AC_DEFINE([PRESENCE_USE_JSON], [1], [Fan presence use runtime json configuration])
110 AC_MSG_NOTICE([Fan presence json configuration usage enabled])
Matt Spinler00db9502021-02-04 16:43:31 -0600111 AC_CONFIG_FILES([presence/service_files/json/phosphor-fan-presence-tach@.service])
Matthew Barthcc194802020-01-09 13:55:34 -0600112 ],
113 [
114 # Add optional yaml file argument
115 AC_ARG_VAR(PRESENCE_CONFIG, [The fan presence config file.])
Brad Bishop76596b22017-06-13 14:39:13 -0400116
Brad Bishop76596b22017-06-13 14:39:13 -0400117 AS_IF([test "x$PRESENCE_CONFIG" == "x"],
118 [PRESENCE_CONFIG="\${top_srcdir}/presence/example/example.yaml"])
119
Brad Bishop76596b22017-06-13 14:39:13 -0400120 AC_DEFINE_UNQUOTED([PRESENCE_CONFIG], ["$PRESENCE_CONFIG"],
121 [The fan presence config file.])
Brad Bishop93919bb2017-04-22 14:58:29 -0400122
Brad Bishop76596b22017-06-13 14:39:13 -0400123 AC_SUBST([PFPGEN],
124 ["$PYTHON \${top_srcdir}/presence/pfpgen.py generate-cpp -i $PRESENCE_CONFIG"])
Matt Spinler00db9502021-02-04 16:43:31 -0600125
126 AC_CONFIG_FILES([presence/service_files/yaml/phosphor-fan-presence-tach@.service])
Matthew Barthcc194802020-01-09 13:55:34 -0600127 ])
Matt Spinler635de8c2020-09-24 13:51:40 -0500128
129 AC_ARG_VAR(NUM_PRESENCE_LOG_ENTRIES, [Maximum number of entries in the message log])
130 AS_IF([test "x$NUM_PRESENCE_LOG_ENTRIES" == "x"], [NUM_PRESENCE_LOG_ENTRIES=50])
131 AC_DEFINE_UNQUOTED([NUM_PRESENCE_LOG_ENTRIES], [$NUM_PRESENCE_LOG_ENTRIES],
132 [Maximum number of entries in the message log])
133
Matthew Barthcc194802020-01-09 13:55:34 -0600134 AC_CONFIG_FILES([presence/Makefile])
135])
Brad Bishop93919bb2017-04-22 14:58:29 -0400136
137AS_IF([test "x$enable_control" != "xno"], [
Matthew Barthd87f89f2020-07-30 10:41:32 -0500138 # Add fan control Dbus attributes
139 AC_ARG_VAR(CONTROL_BUSNAME, [The fan control busname to own])
140 AS_IF([test "x$CONTROL_BUSNAME" == "x"],
141 [CONTROL_BUSNAME="xyz.openbmc_project.Control.Thermal"])
142 AC_DEFINE_UNQUOTED([CONTROL_BUSNAME], ["$CONTROL_BUSNAME"],
143 [The fan control busname to own])
Matthew Barth14cc0432019-01-16 15:06:41 -0600144
Matthew Barthd87f89f2020-07-30 10:41:32 -0500145 AC_ARG_VAR(CONTROL_OBJPATH, [The fan control root object path])
146 AS_IF([test "x$CONTROL_OBJPATH" == "x"],
147 [CONTROL_OBJPATH="/xyz/openbmc_project/control/thermal"])
148 AC_DEFINE_UNQUOTED([CONTROL_OBJPATH], ["$CONTROL_OBJPATH"],
149 [The fan control root object path])
Matthew Barth14cc0432019-01-16 15:06:41 -0600150
Matthew Barthd87f89f2020-07-30 10:41:32 -0500151 AC_ARG_VAR(CONTROL_PERSIST_ROOT_PATH, [Root path for persisting zone property states])
152 AS_IF([test "x$CONTROL_PERSIST_ROOT_PATH" == "x"],
153 [CONTROL_PERSIST_ROOT_PATH="/var/lib/phosphor-fan-presence/control"])
154 AC_DEFINE_UNQUOTED([CONTROL_PERSIST_ROOT_PATH], ["$CONTROL_PERSIST_ROOT_PATH"],
155 [Root path for persisting zone property states])
Matthew Barthcc8912e2019-01-21 11:35:27 -0600156
Matthew Barthd87f89f2020-07-30 10:41:32 -0500157 # Use runtime(json) config, otherwise default to compile time(yaml) config
Matthew Barth8e1b3822020-11-12 11:57:23 -0600158 AM_COND_IF([WANT_JSON_CONTROL],
Matthew Barthd87f89f2020-07-30 10:41:32 -0500159 [
Matthew Barthceb75d72021-08-18 15:18:43 -0500160 AC_ARG_VAR(MACHINE, [Machine name to install a particular set of associated config file(s)])
Matthew Barthd87f89f2020-07-30 10:41:32 -0500161 AC_CHECK_HEADER(nlohmann/json.hpp, ,
162 [AC_MSG_ERROR([Could not find nlohmann/json.hpp... nlohmann/json package required])])
Mike Capps69834cf2021-09-24 09:58:27 -0400163 AC_CHECK_HEADER(CLI/CLI.hpp, ,
164 [AC_MSG_ERROR([Could not find CLI/CLI.hpp... cli11 package required])])
Matthew Barthd87f89f2020-07-30 10:41:32 -0500165 # Set config flag for runtime json usage
166 AC_DEFINE([CONTROL_USE_JSON], [1], [Fan control use runtime json configuration])
167 AC_MSG_NOTICE([Fan control json configuration usage enabled])
Matthew Barth058180f2021-06-16 11:41:58 -0500168 AC_CONFIG_FILES([control/service_files/json/phosphor-fan-control@.service])
Matthew Barthd87f89f2020-07-30 10:41:32 -0500169 ],
170 [
171 # Add optional yaml file arguments
172 AC_ARG_VAR(FAN_DEF_YAML_FILE,
173 [The fan definition file to use])
174 AS_IF([test "x$FAN_DEF_YAML_FILE" == "x"],
175 [FAN_DEF_YAML_FILE="\${top_srcdir}/control/example/fans.yaml"])
176 AC_DEFINE_UNQUOTED([FAN_DEF_YAML_FILE], ["$FAN_DEF_YAML_FILE"],
177 [The fan definition file to use])
Matt Spinler77d32d12017-04-12 09:51:41 -0500178
Matthew Barthd87f89f2020-07-30 10:41:32 -0500179 AC_ARG_VAR(FAN_ZONE_YAML_FILE,
180 [The fan zone definition file to use])
181 AS_IF([test "x$FAN_ZONE_YAML_FILE" == "x"],
182 [FAN_ZONE_YAML_FILE="\${top_srcdir}/control/example/zones.yaml"])
183 AC_DEFINE_UNQUOTED([FAN_ZONE_YAML_FILE], ["$FAN_ZONE_YAML_FILE"],
184 [The fan zone definition file to use])
Matt Spinler77d32d12017-04-12 09:51:41 -0500185
Matthew Barthd87f89f2020-07-30 10:41:32 -0500186 AC_ARG_VAR(ZONE_EVENTS_YAML_FILE,
187 [The zone events definition file to use])
188 AS_IF([test "x$ZONE_EVENTS_YAML_FILE" == "x"],
189 [ZONE_EVENTS_YAML_FILE="\${top_srcdir}/control/example/events.yaml"])
190 AC_DEFINE_UNQUOTED([ZONE_EVENTS_YAML_FILE], ["$ZONE_EVENTS_YAML_FILE"],
191 [The zone events definition file to use])
Matthew Barthd4d0f082017-05-16 13:51:10 -0500192
Matthew Barthd87f89f2020-07-30 10:41:32 -0500193 AC_ARG_VAR(ZONE_CONDITIONS_YAML_FILE,
194 [The zone conditions definition file to use])
195 AS_IF([test "x$ZONE_CONDITIONS_YAML_FILE" == "x"],
196 [ZONE_CONDITIONS_YAML_FILE="\${top_srcdir}/control/example/zone_conditions.yaml"])
197 AC_DEFINE_UNQUOTED([ZONE_CONDITIONS_YAML_FILE], ["$ZONE_CONDITIONS_YAML_FILE"],
198 [The zone conditions definition file to use])
Gunnar Mills28c1a092017-06-26 11:16:41 -0500199
Matthew Barthd87f89f2020-07-30 10:41:32 -0500200 AC_SUBST([GEN_FAN_ZONE_DEFS],
201 ["$PYTHON \${top_srcdir}/control/gen-fan-zone-defs.py \
202 -f $FAN_DEF_YAML_FILE \
203 -z $FAN_ZONE_YAML_FILE \
204 -e $ZONE_EVENTS_YAML_FILE \
205 -c $ZONE_CONDITIONS_YAML_FILE"])
Matthew Barth058180f2021-06-16 11:41:58 -0500206
207 AC_CONFIG_FILES([control/service_files/yaml/phosphor-fan-control-init@.service
208 control/service_files/yaml/phosphor-fan-control@.service])
Matthew Barthd87f89f2020-07-30 10:41:32 -0500209 ])
Matthew Barthe6704b92020-10-20 16:14:08 -0500210 AC_CONFIG_FILES([control/Makefile])
Brad Bishop93919bb2017-04-22 14:58:29 -0400211])
Matthew Barth681c98d2017-02-17 16:05:57 -0600212
Brandon Wymance822442017-04-10 17:48:02 -0500213AS_IF([test "x$enable_cooling_type" != "xno"], [
Brandon Wymanfef02952017-03-31 18:13:21 -0500214 AC_CONFIG_FILES([cooling-type/Makefile])
Brandon Wymanca60e102017-03-29 17:06:02 -0500215])
Matthew Barthbedefd82020-06-02 15:39:56 -0500216
Matt Spinlere567dd22017-04-27 12:27:17 -0500217AS_IF([test "x$enable_monitor" != "xno"], [
Matthew Barthbedefd82020-06-02 15:39:56 -0500218 # Use runtime(json) config, otherwise default to compile time(yaml) config
219 AM_COND_IF([WANT_JSON],
220 [
Matthew Bartha5c62742021-08-18 14:12:09 -0500221 AC_ARG_VAR(MACHINE, [Machine name to install a particular set of associated config file(s)])
Matthew Barthbedefd82020-06-02 15:39:56 -0500222 AC_CHECK_HEADER(nlohmann/json.hpp, ,
223 [AC_MSG_ERROR([Could not find nlohmann/json.hpp... nlohmann/json package required])])
224 # Set config flag for runtime json usage
225 AC_DEFINE([MONITOR_USE_JSON], [1], [Fan monitor use runtime json configuration])
226 AC_MSG_NOTICE([Fan monitor json configuration usage enabled])
Matt Spinler7df2d9f2021-02-04 16:44:25 -0600227 AC_CONFIG_FILES([monitor/service_files/json/phosphor-fan-monitor@.service])
Matthew Barthbedefd82020-06-02 15:39:56 -0500228 ],
229 [
230 AC_ARG_VAR(FAN_MONITOR_YAML_FILE,
231 [The fan monitor definition file to use])
232 AS_IF([test "x$FAN_MONITOR_YAML_FILE" == "x"],
233 [FAN_MONITOR_YAML_FILE="\${top_srcdir}/monitor/example/monitor.yaml"])
234 AC_DEFINE_UNQUOTED([FAN_MONITOR_YAML_FILE], ["$FAN_MONITOR_YAML_FILE"],
235 [The fan monitor definition file to use])
Matt Spinler14321842017-04-28 15:27:43 -0500236
Matthew Barthbedefd82020-06-02 15:39:56 -0500237 AC_SUBST([GEN_FAN_MONITOR_DEFS],
238 ["$PYTHON \${top_srcdir}/monitor/gen-fan-monitor-defs.py \
239 -m $FAN_MONITOR_YAML_FILE"])
Matt Spinler7df2d9f2021-02-04 16:44:25 -0600240
241 AC_CONFIG_FILES([monitor/service_files/yaml/phosphor-fan-monitor-init@.service
242 monitor/service_files/yaml/phosphor-fan-monitor@.service])
Matthew Barthbedefd82020-06-02 15:39:56 -0500243 ])
Matt Spinler69b0cf02020-10-14 10:59:03 -0500244
245 AC_ARG_VAR(NUM_MONITOR_LOG_ENTRIES, [Maximum number of entries in the message log])
246 AS_IF([test "x$NUM_MONITOR_LOG_ENTRIES" == "x"], [NUM_MONITOR_LOG_ENTRIES=75])
247 AC_DEFINE_UNQUOTED([NUM_MONITOR_LOG_ENTRIES], [$NUM_MONITOR_LOG_ENTRIES],
248 [Maximum number of entries in the message log])
249
Matt Spinlerc8d3c512021-01-06 14:22:25 -0600250 AC_ARG_VAR(THERMAL_ALERT_BUSNAME, [The thermal alert busname to own])
251 AS_IF([test "x$THERMAL_ALERT_BUSNAME" == "x"],
252 [THERMAL_ALERT_BUSNAME="xyz.openbmc_project.Thermal.Alert"])
253 AC_DEFINE_UNQUOTED([THERMAL_ALERT_BUSNAME], ["$THERMAL_ALERT_BUSNAME"],
254 [The thermal alert busname to own])
255
256 AC_ARG_VAR(THERMAL_ALERT_OBJPATH, [The thermal alert D-Bus object path])
257 AS_IF([test "x$THERMAL_ALERT_OBJPATH" == "x"],
258 [THERMAL_ALERT_OBJPATH="/xyz/openbmc_project/alerts/thermal_fault_alert"])
259 AC_DEFINE_UNQUOTED([THERMAL_ALERT_OBJPATH], ["$THERMAL_ALERT_OBJPATH"],
260 [The thermal alert D-Bus object path])
261
Matthew Barthbedefd82020-06-02 15:39:56 -0500262 AC_CONFIG_FILES([monitor/Makefile])
Matt Spinlere567dd22017-04-27 12:27:17 -0500263])
Brandon Wymanca60e102017-03-29 17:06:02 -0500264
Matt Spinler9c0715b2021-01-21 11:15:33 -0600265AS_IF([test "x$enable_sensor_monitor" == "xyes"], [
266
Matt Spinler08a66ef2021-01-21 13:46:45 -0600267 AC_ARG_VAR(SENSOR_MONITOR_PERSIST_ROOT_PATH,
268 [Root path for persisting sensor monitor data])
269 AS_IF([test "x$SENSOR_MONITOR_PERSIST_ROOT_PATH" == "x"],
270 [SENSOR_MONITOR_PERSIST_ROOT_PATH="/var/lib/phosphor-fan-presence/sensor-monitor"])
271 AC_DEFINE_UNQUOTED([SENSOR_MONITOR_PERSIST_ROOT_PATH],
272 ["$SENSOR_MONITOR_PERSIST_ROOT_PATH"],
273 [Root path for persisting sensor monitor data])
274
Matt Spinler0b839512021-01-21 13:21:03 -0600275 #Default hard shutdown delay is 23 seconds
276 AC_ARG_VAR(SHUTDOWN_ALARM_HARD_SHUTDOWN_DELAY_MS,
277 [Milliseconds to delay the alarm hard shutdown])
278 AS_IF([test "x$SHUTDOWN_ALARM_HARD_SHUTDOWN_DELAY_MS" == "x"],
279 [SHUTDOWN_ALARM_HARD_SHUTDOWN_DELAY_MS=23000])
280 AC_DEFINE_UNQUOTED([SHUTDOWN_ALARM_HARD_SHUTDOWN_DELAY_MS],
281 [$SHUTDOWN_ALARM_HARD_SHUTDOWN_DELAY_MS],
282 [Milliseconds to delay the alarm hard shutdown])
283
284 #Default soft shutdown delay is 15 minutes
285 AC_ARG_VAR(SHUTDOWN_ALARM_SOFT_SHUTDOWN_DELAY_MS,
286 [Milliseconds to delay the alarm soft shutdown])
287 AS_IF([test "x$SHUTDOWN_ALARM_SOFT_SHUTDOWN_DELAY_MS" == "x"],
288 [SHUTDOWN_ALARM_SOFT_SHUTDOWN_DELAY_MS=900000])
289 AC_DEFINE_UNQUOTED([SHUTDOWN_ALARM_SOFT_SHUTDOWN_DELAY_MS],
290 [$SHUTDOWN_ALARM_SOFT_SHUTDOWN_DELAY_MS],
291 [Milliseconds to delay the alarm soft shutdown])
292
Matt Spinlerbcc12cb2021-02-12 08:32:30 -0600293 AC_CONFIG_FILES([sensor-monitor/Makefile sensor-monitor/service_files/sensor-monitor.service])
Matt Spinler9c0715b2021-01-21 11:15:33 -0600294])
295
Matt Spinler00db9502021-02-04 16:43:31 -0600296eval "eval BINDIR=$bindir"
297AC_SUBST([BINDIR])
298
299
Matthew Barthae0e96c2017-01-20 13:54:59 -0600300# Create configured output
Matt Spinler00237432020-10-14 10:36:41 -0500301AC_CONFIG_FILES([Makefile test/Makefile presence/test/Makefile monitor/test/Makefile])
Matthew Barthae0e96c2017-01-20 13:54:59 -0600302AC_OUTPUT