Add autotools infrastructure for ibm-pldm-oem
base.h, pldm_types.h and base.c is copied from the PLDM repository
till the bitbake recipe files are ready. This enables to write the
encode/decode for file I/O PLDM oem commands. These files will be
reverted once the recipe changes are in.
Change-Id: I0313c3fe2ed01b70fadd373a1e9f979e25c2dce2
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..6c9895c
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,25 @@
+# Initialization
+AC_PREREQ([2.69])
+AC_INIT([pldm], [1.0],
+ [https://github.com/openbmc/ibm-pldm-oem/issues])
+AC_LANG([C++])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
+AM_SILENT_RULES([yes])
+
+# Checks for programs.
+AC_PROG_CXX
+AC_PROG_CC
+AM_PROG_AR
+AC_PROG_INSTALL
+
+# Checks for typedefs, structures, and compiler characteristics.
+AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory])
+AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
+
+# For linking
+LT_INIT
+
+# Create configured output
+AC_CONFIG_FILES([Makefile libpldm/Makefile])
+AC_OUTPUT