BIND 10 trac1960, updated. f4c07bf162d7ed4495496f7574242ccd2add5926 [1960] Remove unused CLOCK_GETTIME_LDFLAGS and HAVE_GETIFADDRS.

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Sep 21 17:32:21 UTC 2012


The branch, trac1960 has been updated
       via  f4c07bf162d7ed4495496f7574242ccd2add5926 (commit)
      from  40ee3e7167ec6660de797955af57ec9f5ec67c79 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f4c07bf162d7ed4495496f7574242ccd2add5926
Author: Marcin Siodelski <marcin at isc.org>
Date:   Fri Sep 21 19:32:08 2012 +0200

    [1960] Remove unused CLOCK_GETTIME_LDFLAGS and HAVE_GETIFADDRS.
    
    The refactored code neither uses clock_gettime  nor HAVE_GETIFADDRS.

-----------------------------------------------------------------------

Summary of changes:
 configure.ac                     |   14 --------------
 tests/tools/perfdhcp/Makefile.am |    5 ++---
 2 files changed, 2 insertions(+), 17 deletions(-)

-----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 2ead4b7..9e350de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -990,20 +990,6 @@ CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_THREADS=1"
 # Check for functions that are not available on all platforms
 AC_CHECK_FUNCS([pselect])
 
-# perfdhcp: If the clock_gettime() function does not exist on the system,
-# use an alternative supplied in the code based on gettimeofday().
-CLOCK_GETTIME_LDFLAGS=
-AC_CHECK_LIB([rt], [clock_gettime], [CLOCK_GETTIME_LDFLAGS=-lrt], [])
-AC_SUBST([CLOCK_GETTIME_LDFLAGS])
-
-# perfdhcp: if getifaddrs() does not exist, have the code output a message
-# that it can't be run on this version of the operating system.  For the
-# systems on which BIND 10 is built, this means Solaris 10. (Replacements
-# for this function are long and involved, and the function is reported present
-# on Solaris 11 and later, either in the libsocket or libnsl libraries.)
-AC_SEARCH_LIBS([getifaddrs], [socket nsl],
-               [AC_DEFINE([HAVE_GETIFADDRS], [1], [getifaddrs() present])])
-
 # /dev/poll issue: ASIO uses /dev/poll by default if it's available (generally
 # the case with Solaris).  Unfortunately its /dev/poll specific code would
 # trigger the gcc's "missing-field-initializers" warning, which would
diff --git a/tests/tools/perfdhcp/Makefile.am b/tests/tools/perfdhcp/Makefile.am
index cefd298..43f41ba 100644
--- a/tests/tools/perfdhcp/Makefile.am
+++ b/tests/tools/perfdhcp/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = . tests templates
+1SUBDIRS = . tests templates
 
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS += -I$(top_srcdir)/src/lib/log -I$(top_builddir)/src/lib/log
@@ -12,8 +12,7 @@ AM_CXXFLAGS = $(B10_CXXFLAGS)
 # But older GCC compilers don't have the flag.
 AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
 
-AM_LDFLAGS = $(CLOCK_GETTIME_LDFLAGS)
-AM_LDFLAGS += -lm
+AM_LDFLAGS = -lm
 if USE_STATIC_LINK
 AM_LDFLAGS += -static
 endif



More information about the bind10-changes mailing list