]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
libevent-2.0 compatibility.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 4 Sep 2009 13:29:11 +0000 (13:29 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 4 Sep 2009 13:29:11 +0000 (13:29 +0000)
git-svn-id: file:///svn/unbound/trunk@1817 be551aaa-1e26-0410-a405-d3ace91eadb9

Makefile.in
configure
configure.ac
doc/Changelog
util/netevent.c

index 86d373f1e8c7016b83b20e1ece80d3eee6790836..42cc851d283d0bfe8128c0b008657b882c218a9d 100644 (file)
@@ -349,10 +349,12 @@ tags:     $(srcdir)/*.[ch] $(srcdir)/*/*.[ch]
 doc:
        if test -n "$(doxygen)"; then \
                $(doxygen) $(srcdir)/doc/unbound.doxygen; fi
+ifeq "$(findstring yes,$(WITH_PYUNBOUND)$(WITH_PYTHONMODULE))" "yes"
        if test -x "`which sphinx-build 2>&1`"; then \
                sphinx-build -b html pythonmod/doc doc/html/pythonmod; \
                sphinx-build -b html libunbound/python/doc doc/html/pyunbound;\
        fi
+endif
 
 strip:
        $(STRIP) unbound$(EXEEXT)
index b9c721c00c2194b0f7ff1f95d0563eac5de275ae..7379f54a2f0703c14617f6e5c942d3ca5e9b1655 100755 (executable)
--- a/configure
+++ b/configure
@@ -18224,9 +18224,9 @@ $as_echo "found in $thedir" >&6; }
                        mkdir build >/dev/null 2>&1
                        mkdir build/libevent >/dev/null 2>&1
                        mkdir build/libevent/.libs >/dev/null 2>&1
-                       ev_files_o=`ls $thedir/*.o | grep -v evdns\.o`
-                       ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo`
-                       ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o`
+                       ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
+                       ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
+                       ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
                        cp $ev_files_o build/libevent
                        cp $ev_files_lo build/libevent
                        cp $ev_files_libso build/libevent/.libs
index 8f65c792f13ea0821f62f5d4ff9a43881daf15b5..f751ab4390697f05f999a76fdfdbed5f8ba0b636 100644 (file)
@@ -440,9 +440,9 @@ if test x_$withval = x_yes -o x_$withval != x_no; then
                        mkdir build >/dev/null 2>&1
                        mkdir build/libevent >/dev/null 2>&1
                        mkdir build/libevent/.libs >/dev/null 2>&1
-                       ev_files_o=`ls $thedir/*.o | grep -v evdns\.o`
-                       ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo`
-                       ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o`
+                       ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
+                       ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
+                       ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
                        cp $ev_files_o build/libevent
                        cp $ev_files_lo build/libevent
                        cp $ev_files_libso build/libevent/.libs
index dd7049fe9e6077aa37000c1db99392f971e14a6d..be0e01b23e9d6879464676ea30108a3e4ee2f4d5 100644 (file)
@@ -1,3 +1,10 @@
+4 September 2009: Wouter
+       - Changes to make unbound work with libevent-2.0.3 alpha. (in
+         configure detection due to new ssl dependency in libevent)
+       - do not call sphinx for documentation when python is disabled.
+       - remove EV_PERSIST from libevent timeout code to make the code
+         compatible with the libevent-2.0.  Works with older libevent too.
+
 3 September 2009: Wouter
        - Got a patch from Luca Bruno for libunbound support on windows to
          pick up the system resolvconf nameservers and hosts there.
index 93b1a04be9857c9817cc685956d2c805ac54e1b0..2891dfe95122d795bd3a18491101c141b1f63644 100644 (file)
@@ -1582,7 +1582,7 @@ comm_timer_create(struct comm_base* base, void (*cb)(void*), void* cb_arg)
        tm->ev_timer->base = base;
        tm->callback = cb;
        tm->cb_arg = cb_arg;
-       event_set(&tm->ev_timer->ev, -1, EV_PERSIST|EV_TIMEOUT, 
+       event_set(&tm->ev_timer->ev, -1, EV_TIMEOUT, 
                comm_timer_callback, tm);
        if(event_base_set(base->eb->base, &tm->ev_timer->ev) != 0) {
                log_err("timer_create: event_base_set failed.");
@@ -1608,7 +1608,7 @@ comm_timer_set(struct comm_timer* timer, struct timeval* tv)
        log_assert(tv);
        if(timer->ev_timer->enabled)
                comm_timer_disable(timer);
-       event_set(&timer->ev_timer->ev, -1, EV_PERSIST|EV_TIMEOUT,
+       event_set(&timer->ev_timer->ev, -1, EV_TIMEOUT,
                comm_timer_callback, timer);
        if(event_base_set(timer->ev_timer->base->eb->base, 
                &timer->ev_timer->ev) != 0)