pimgen: Remove interfaces.d

Obtain the information encoded in this file via scanning
the filesystem for interface files.

Add an interfaces-dir option to specify the filesystem path to scan.

Change-Id: I7f5220b515a012d6c6e504f54e4fcb324e6f1f87
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>wip
diff --git a/configure.ac b/configure.ac
index 526770c..83d063e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,10 +66,13 @@
 AC_ARG_VAR(INVENTORY_ROOT, [The DBus inventory namespace root.])
 AC_ARG_VAR(IFACE, [The manager DBus interface.])
 AC_ARG_VAR(YAML_PATH, [The path to the yaml config files.])
+AC_ARG_VAR(IFACES_PATH, [The path to the interfaces PIM can create.])
 AS_IF([test "x$BUSNAME" == "x"], [BUSNAME="xyz.openbmc_project.Inventory.Manager"])
 AS_IF([test "x$INVENTORY_ROOT" == "x"], [INVENTORY_ROOT="/xyz/openbmc_project/Inventory"])
 AS_IF([test "x$IFACE" == "x"], [IFACE="xyz.openbmc_project.Inventory.Manager"])
 AS_IF([test "x$YAML_PATH" == "x"], [YAML_PATH="$srcdir/example"])
+AM_CONDITIONAL(IFACES_PATH, [test x"$IFACES_PATH" != "x"])
+
 AC_DEFINE_UNQUOTED([BUSNAME], ["$BUSNAME"], [The DBus busname to own.])
 AC_DEFINE_UNQUOTED([INVENTORY_ROOT], ["$INVENTORY_ROOT"], [The DBus inventory namespace root.])
 AC_DEFINE_UNQUOTED([IFACE], ["$IFACE"], [The manager DBus interface.])