autoconfiscate

Add autoconf, libtool, automake and bootstrap tools. While this will be
used for the typical "build a shared-library" use-case, we still want to
support other build types that may use the libmctp code directly, and
not use autoconf.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..334b0a5
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,22 @@
+# Initialization
+AC_PREREQ([2.69])
+AC_INIT([libmctp], 0.9, [https://github.com/openbmc/libmctp/issues])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIRS([m4])
+AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
+AM_SILENT_RULES([yes])
+
+# Checks for programs.
+AC_PROG_CC
+AM_PROG_AR
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+# libtool init
+LT_INIT
+
+AM_CONDITIONAL([LIBMCTP_BINDING_serial], [true])
+AM_CONDITIONAL([LIBMCTP_BINDING_astlpc], [true])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT