[Devel] [PATCH 7/8] configure.ac/Makefiles: remove unused stuff

Kir Kolyshkin kir at openvz.org
Tue Jun 2 15:50:25 PDT 2015


Some unused artefacts are left in configure.ac since it was taken
from the legacy OpenVZ package. Let's clean this up.

First, a check for libdl is not needed, as the dl library is not used
by this package. Also, remove $(DL_LIBS) from {src,test}/Makefile.am.

Second, remove a line from the configure output that was used to
say that some features were enabled or disabled.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 configure.ac     | 6 ------
 src/Makefile.am  | 2 +-
 test/Makefile.am | 2 +-
 3 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index b7dc54b..88ae3e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,11 +59,6 @@ AC_PROG_INSTALL
 AC_PROG_LN_S
 
 # Checks for libraries.
-AC_CHECK_LIB(dl, dlopen,
-	DL_LIBS="-ldl", AC_MSG_ERROR([libdl not found]),)
-
-AC_SUBST(DL_LIBS)
-
 AC_CHECK_LIB(util, openpty,
 	UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil not found]),)
 
@@ -118,7 +113,6 @@ AC_CONFIG_COMMANDS_PRE([SUMMARY="$PACKAGE_STRING configured successfully:
      prefix: $prefix
  sysconfdir: $sysconfdir
      libdir: $libdir
-   features: $enable_bashcomp $enable_cron $enable_logrotate $enable_udev
 "])
 
 # Output
diff --git a/src/Makefile.am b/src/Makefile.am
index afcf385..cf5e6d8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,5 +16,5 @@ VZCTL_LIBS = $(top_builddir)/lib/libvzctl2.la -lpthread $(UUID_LIBS)
 
 
 exec_wrap_SOURCES = exec_wrap.c
-exec_wrap_LDADD = $(VZCTL_LIBS) $(DL_LIBS) $(UTIL_LIBS)
+exec_wrap_LDADD = $(VZCTL_LIBS) $(UTIL_LIBS)
 
diff --git a/test/Makefile.am b/test/Makefile.am
index b5728e8..9f907b5 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -15,4 +15,4 @@ VZCTL_LIBS = $(top_builddir)/lib/libvzctl2.la -lpthread
 
 
 test_SOURCES = test.c test_config.c test_vzctl.c
-test_LDADD = $(VZCTL_LIBS) $(DL_LIBS) $(UTIL_LIBS)
+test_LDADD = $(VZCTL_LIBS) $(UTIL_LIBS)
-- 
1.9.3




More information about the Devel mailing list