build : provide sensor yaml as config

Make it possible for the phosphor-host-ipmid recipe to be able to
supply the sensor YAML as configurable input.

Use sensor-example.yaml as input.

Change-Id: Iefbfeeff5561e6e90543fc7a69c04aeee5e76dd1
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/configure.ac b/configure.ac
index 4ffc554..b43adaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,6 +57,10 @@
         WHITELIST_CONF=${srcdir}/host-ipmid-whitelist.conf
 fi
 
+AS_IF([test "x$SENSOR_YAML_GEN" == "x"], [SENSOR_YAML_GEN="sensor-example.yaml"])
+SENSORGEN="$PYTHON ${srcdir}/scripts/sensor_gen.py -i $SENSOR_YAML_GEN"
+AC_SUBST(SENSORGEN)
+
 # Create configured output
 AC_CONFIG_FILES([Makefile test/Makefile])
 AC_OUTPUT