Remove compilation using autotools

The intent behind this commit is build phosphor-snmp with meson,
so need to remove files related to autotools.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ibf9fc3c12d184553c4aed84256a6e2c11d93d9f4
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 1a5559f..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,64 +0,0 @@
-# export these headers
-nobase_include_HEADERS = snmp.hpp \
-		snmp_notification.hpp
-
-bin_PROGRAMS = phosphor-network-snmpconf
-
-noinst_HEADERS = \
-		snmp_client.hpp \
-		snmp_conf_manager.hpp \
-		snmp_util.hpp \
-		snmp_serialize.hpp
-
-phosphor_network_snmpconf_SOURCES = \
-		snmp_main.cpp \
-		snmp_conf_manager.cpp \
-		snmp_client.cpp \
-		snmp_util.cpp \
-		snmp_serialize.cpp
-
-phosphor_network_snmpconf_LDFLAGS = \
-		$(SYSTEMD_LIBS) \
-		$(SDBUSPLUS_LIBS) \
-		$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
-		$(PHOSPHOR_LOGGING_LIBS) \
-		-lstdc++fs
-
-phosphor_network_snmpconf_CXXFLAGS = \
-		$(SYSTEMD_CFLAGS) \
-		$(SDBUSPLUS_CFLAGS) \
-		$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
-		$(PHOSPHOR_LOGGING_CFLAGS)
-
-libsnmpdir = ${libdir}
-
-libsnmp_LTLIBRARIES = libsnmp.la
-libsnmp_la_SOURCES = \
-		snmp_notification.cpp \
-		snmp_util.cpp
-
-libsnmp_la_LDFLAGS = \
-		$(SDBUSPLUS_LIBS) \
-		$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
-		$(PHOSPHOR_LOGGING_LIBS) \
-		-lnetsnmp \
-		-lcrypto \
-		-version-info 0:0:0 -shared
-
-pkgconfiglibdir = ${libdir}/pkgconfig
-pkgconfiglib_DATA = phosphor-snmp.pc
-
-if AUTOCONF_CODE_COVERAGE_2019_01_06
-include $(top_srcdir)/aminclude_static.am
-clean-local: code-coverage-clean
-distclean-local: code-coverage-dist-clean
-else
-@CODE_COVERAGE_RULES@
-endif
-
-check_PROGRAMS =
-XFAIL_TESTS =
-
-include test/Makefile.am.include
-
-TESTS = $(check_PROGRAMS)
diff --git a/bootstrap.sh b/bootstrap.sh
deleted file mode 100755
index 3112382..0000000
--- a/bootstrap.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
-    config.guess config.h.in config.sub configure depcomp install-sh \
-    ltmain.sh missing *libtool test-driver"
-
-BOOTSTRAP_MODE=""
-
-if [ $# -gt 0 ];
-then
-    BOOTSTRAP_MODE="${1}"
-    shift 1
-fi
-
-case ${BOOTSTRAP_MODE} in
-    clean)
-        test -f Makefile && make maintainer-clean
-        for file in ${AUTOCONF_FILES}; do
-            find . -name "$file" -print0 | xargs -0 -r rm -rf
-        done
-        exit 0
-        ;;
-esac
-
-autoreconf -i
-
-case ${BOOTSTRAP_MODE} in
-    dev)
-        # shellcheck disable=SC2086 # CONFIGURE_FLAGS is intentionally split.
-        ./configure \
-            ${CONFIGURE_FLAGS} \
-            --enable-code-coverage \
-            --enable-oe-sdk \
-            "$@"
-        ;;
-    *)
-        # shellcheck disable=SC2016
-        echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'
-        ;;
-esac
-
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index c5b47c8..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,89 +0,0 @@
-AC_PREREQ([2.69])
-AC_INIT([phosphor-snmp], [1.0], [https://github.com/openbmc/openbmc/phosphor-snmp.git])
-AC_LANG([C++])
-AM_INIT_AUTOMAKE([subdir-objects -Wall -Wno-portability -Werror foreign])
-AM_SILENT_RULES([yes])
-
-# Check for programs
-AC_PROG_CXX
-AM_PROG_AR
-AC_PROG_INSTALL
-AC_PROG_MAKE_SET
-AC_PROG_MKDIR_P
-
-LT_PREREQ([2.4.6])
-LT_INIT([dlopen disable-static shared])
-
-AX_CXX_COMPILE_STDCXX([20],[noext])
-AX_APPEND_COMPILE_FLAGS([-fpic -Wall -Werror], [CXXFLAGS])
-
-# Checks for libraries.
-AX_PKG_CHECK_MODULES([SYSTEMD], [], [libsystemd >= 221])
-
-AX_PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus], [])
-
-AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++])
-
-AX_PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [], [phosphor-logging])
-
-# Checks for header files.
-AC_CHECK_HEADER(systemd/sd-bus.h, ,\
-[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd development package required])])
-
-AX_PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [], [phosphor-dbus-interfaces])
-
-AC_CHECK_HEADERS([net-snmp/net-snmp-config.h],,\
-    AC_MSG_ERROR(["Requires net-snmp headers"]))
-
-AC_ARG_VAR(BUSNAME_NETWORK_SNMP, [The Dbus busname to own])
-AS_IF([test "x$BUSNAME_NETWORK_SNMP" == "x"], [BUSNAME_NETWORK_SNMP="xyz.openbmc_project.Network.SNMP"])
-AC_DEFINE_UNQUOTED([BUSNAME_NETWORK_SNMP], ["$BUSNAME_NETWORK_SNMP"], [The DBus busname to own])
-
-AC_ARG_VAR(OBJ_NETWORK_SNMP, [The network snmp root DBus object path])
-AS_IF([test "x$OBJ_NETWORK_SNMP" == "x"], [OBJ_NETWORK_SNMP="/xyz/openbmc_project/network/snmp/manager"])
-AC_DEFINE_UNQUOTED([OBJ_NETWORK_SNMP], ["$OBJ_NETWORK_SNMP"], [The network snmp root DBus object path])
-
-AC_ARG_VAR(CLASS_VERSION, [Class version to register with Cereal])
-AS_IF([test "x$CLASS_VERSION" == "x"], [CLASS_VERSION=1])
-AC_DEFINE_UNQUOTED([CLASS_VERSION], [$CLASS_VERSION], [Class version to register with Cereal])
-
-AC_ARG_VAR(SNMP_CONF_PERSIST_PATH, [path of directory having persisted snmp managers.])
-AS_IF([test "x$SNMP_CONF_PERSIST_PATH" == "x"], \
-    [SNMP_CONF_PERSIST_PATH="/var/lib/phosphor-snmp/managers/"])
-AC_DEFINE_UNQUOTED([SNMP_CONF_PERSIST_PATH], ["$SNMP_CONF_PERSIST_PATH"], \
-    [Path of directory having persisted snmp managers.])
-
-# Check/set gtest specific functions.
-AX_PTHREAD([GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=1"],[GTEST_CPPFLAGS="-GTEST_HAS_PTHREAD=0"])
-AC_SUBST(GTEST_CPPFLAGS)
-
-# Add the code covererage
-AX_CODE_COVERAGE
-m4_ifdef([_AX_CODE_COVERAGE_RULES],
-    [AM_CONDITIONAL(AUTOCONF_CODE_COVERAGE_2019_01_06, [true])],
-    [AM_CONDITIONAL(AUTOCONF_CODE_COVERAGE_2019_01_06, [false])])
-AX_ADD_AM_MACRO_STATIC([])
-
-AC_ARG_ENABLE([oe-sdk],
-    AS_HELP_STRING([--enable-oe-sdk], [Link testcases absolutely against OE SDK so they can be ran within it.])
-)
-AC_ARG_VAR(OECORE_TARGET_SYSROOT,
-    [Path to the OE SDK SYSROOT])
-AS_IF([test "x$enable_oe_sdk" == "xyes"],
-    AS_IF([test "x$OECORE_TARGET_SYSROOT" == "x"],
-          AC_MSG_ERROR([OECORE_TARGET_SYSROOT must be set with --enable-oe-sdk])
-    )
-    AC_MSG_NOTICE([Enabling OE-SDK at $OECORE_TARGET_SYSROOT])
-    [
-        testcase_flags="-Wl,-rpath,\${OECORE_TARGET_SYSROOT}/lib"
-        testcase_flags="${testcase_flags} -Wl,-rpath,\${OECORE_TARGET_SYSROOT}/usr/lib"
-        testcase_flags="${testcase_flags} -Wl,-dynamic-linker,`find \${OECORE_TARGET_SYSROOT}/lib/ld-*.so | sort -r -n | head -n1`"
-    ]
-    AC_SUBST([OESDK_TESTCASE_FLAGS], [$testcase_flags])
-)
-
-# Create configured output
-AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([phosphor-snmp.pc])
-AC_OUTPUT
diff --git a/phosphor-snmp.pc.in b/phosphor-snmp.pc.in
deleted file mode 100644
index c0e2397..0000000
--- a/phosphor-snmp.pc.in
+++ /dev/null
@@ -1,13 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: phosphor-snmp
-Description: Phosphor snmp utilities
-URL: https://github.com/openbmc/phosphor-snmp
-Version: @VERSION@
-Requires: @AX_PACKAGE_REQUIRES@
-Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
-Libs: -L@libdir@ -lsnmp
-Cflags: -I@includedir@
diff --git a/test/Makefile.am.include b/test/Makefile.am.include
deleted file mode 100644
index 2e6e144..0000000
--- a/test/Makefile.am.include
+++ /dev/null
@@ -1,42 +0,0 @@
-AM_CPPFLAGS = \
-	-I${top_srcdir} \
-	-I${top_builddir} \
-	-Igtest \
-	$(GTEST_CPPFLAGS)
-
-AM_CFLAGS = \
-	$(PTHREAD_CFLAGS) \
-	$(CODE_COVERAGE_CFLAGS) \
-	$(SDBUSPLUS_CFLAGS) \
-	$(PHOSPHOR_LOGGING_CFLAGS) \
-	$(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
-
-AM_CXXFLAGS = \
-	$(PTHREAD_CXXFLAGS) \
-	$(CODE_COVERAGE_CXXFLAGS) \
-	$(SDBUSPLUS_CXXFLAGS) \
-	$(PHOSPHOR_LOGGING_CXXFLAGS) \
-	$(PHOSPHOR_DBUS_INTERFACES_CXXFLAGS)
-
-AM_LDFLAGS = \
-	-lgtest_main -lgtest -lstdc++fs \
-	$(PTHREAD_CFLAGS) \
-	$(SDBUSPLUS_LIBS) \
-	$(PHOSPHOR_LOGGING_LIBS) \
-	$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
-	$(OESDK_TESTCASE_FLAGS) \
-	$(CODE_COVERAGE_LIBS)
-
-test_notification_SOURCES = \
-	%reldir%/test_error_notification.cpp \
-	%reldir%/test_snmp_conf_manager.cpp \
-	%reldir%/test_snmp_util.cpp \
-	%reldir%/test_snmp_serialize.cpp \
-	%reldir%/test_snmp_client.cpp
-
-test_notification_LDADD = $(top_builddir)/phosphor_network_snmpconf-snmp_conf_manager.o \
-	$(top_builddir)/phosphor_network_snmpconf-snmp_client.o \
-	$(top_builddir)/phosphor_network_snmpconf-snmp_serialize.o \
-    $(top_builddir)/phosphor_network_snmpconf-snmp_util.o
-
-check_PROGRAMS += %reldir%/notification