Make use of crashdump service optional

This service isn't currently in upstream OpenBMC, so let's turn it off
by default and avoid the "failed to start Crashdump" errors it produces.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: I41bda78ce3d89149feb9f721b4900166413317ea
diff --git a/include/host_error_monitor.hpp b/include/host_error_monitor.hpp
index c28576f..3470c2f 100644
--- a/include/host_error_monitor.hpp
+++ b/include/host_error_monitor.hpp
@@ -68,6 +68,7 @@
     std::shared_ptr<sdbusplus::asio::connection> conn, bool recoverSystem,
     const std::string& triggerType)
 {
+#ifdef CRASHDUMP
     static bool recover;
     recover = recoverSystem;
     std::cerr << "Starting crashdump\n";
@@ -99,6 +100,7 @@
         },
         "com.intel.crashdump", "/com/intel/crashdump",
         "com.intel.crashdump.Stored", "GenerateStoredLog", triggerType);
+#endif
 }
 
 #ifdef LIBPECI