mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-23 00:00:51 -05:00
- unbound-event.h is installed if you configure --enable-event-api.
git-svn-id: file:///svn/unbound/trunk@3047 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
5c1b1c0fc9
commit
9a1e15776f
3 changed files with 36 additions and 4 deletions
19
configure
vendored
19
configure
vendored
|
|
@ -821,6 +821,7 @@ with_ssl
|
||||||
enable_sha2
|
enable_sha2
|
||||||
enable_gost
|
enable_gost
|
||||||
enable_ecdsa
|
enable_ecdsa
|
||||||
|
enable_event_api
|
||||||
with_libevent
|
with_libevent
|
||||||
with_libexpat
|
with_libexpat
|
||||||
enable_static_exe
|
enable_static_exe
|
||||||
|
|
@ -1475,6 +1476,8 @@ Optional Features:
|
||||||
--disable-sha2 Disable SHA256 and SHA512 RRSIG support
|
--disable-sha2 Disable SHA256 and SHA512 RRSIG support
|
||||||
--disable-gost Disable GOST support
|
--disable-gost Disable GOST support
|
||||||
--disable-ecdsa Disable ECDSA support
|
--disable-ecdsa Disable ECDSA support
|
||||||
|
--enable-event-api Enable (experimental) libevent-based libunbound API
|
||||||
|
installed to unbound-event.h
|
||||||
--enable-static-exe enable to compile executables statically against
|
--enable-static-exe enable to compile executables statically against
|
||||||
(event) libs, for debug purposes
|
(event) libs, for debug purposes
|
||||||
--enable-lock-checks enable to check lock and unlock calls, for debug
|
--enable-lock-checks enable to check lock and unlock calls, for debug
|
||||||
|
|
@ -17145,6 +17148,20 @@ _ACEOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Check whether --enable-event-api was given.
|
||||||
|
if test "${enable_event_api+set}" = set; then :
|
||||||
|
enableval=$enable_event_api;
|
||||||
|
fi
|
||||||
|
|
||||||
|
use_unbound_event="no"
|
||||||
|
case "$enable_event_api" in
|
||||||
|
yes)
|
||||||
|
use_unbound_event="yes"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# check for libevent
|
# check for libevent
|
||||||
|
|
||||||
# Check whether --with-libevent was given.
|
# Check whether --with-libevent was given.
|
||||||
|
|
@ -17475,10 +17492,12 @@ done
|
||||||
if test -n "$BAK_LDFLAGS_SET"; then
|
if test -n "$BAK_LDFLAGS_SET"; then
|
||||||
LDFLAGS="$BAK_LDFLAGS"
|
LDFLAGS="$BAK_LDFLAGS"
|
||||||
fi
|
fi
|
||||||
|
if test "$use_unbound_event" = "yes"; then
|
||||||
UNBOUND_EVENT_INSTALL=unbound-event-install
|
UNBOUND_EVENT_INSTALL=unbound-event-install
|
||||||
|
|
||||||
UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
|
UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
|
||||||
|
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
|
|
||||||
$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
|
$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
|
||||||
|
|
|
||||||
12
configure.ac
12
configure.ac
|
|
@ -742,6 +742,16 @@ case "$enable_ecdsa" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(event-api, AC_HELP_STRING([--enable-event-api], [Enable (experimental) libevent-based libunbound API installed to unbound-event.h]))
|
||||||
|
use_unbound_event="no"
|
||||||
|
case "$enable_event_api" in
|
||||||
|
yes)
|
||||||
|
use_unbound_event="yes"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# check for libevent
|
# check for libevent
|
||||||
AC_ARG_WITH(libevent, AC_HELP_STRING([--with-libevent=pathname],
|
AC_ARG_WITH(libevent, AC_HELP_STRING([--with-libevent=pathname],
|
||||||
[use libevent (will check /usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr or you can specify an explicit path). Slower, but allows use of large outgoing port ranges.]),
|
[use libevent (will check /usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr or you can specify an explicit path). Slower, but allows use of large outgoing port ranges.]),
|
||||||
|
|
@ -816,8 +826,10 @@ large outgoing port ranges. ])
|
||||||
if test -n "$BAK_LDFLAGS_SET"; then
|
if test -n "$BAK_LDFLAGS_SET"; then
|
||||||
LDFLAGS="$BAK_LDFLAGS"
|
LDFLAGS="$BAK_LDFLAGS"
|
||||||
fi
|
fi
|
||||||
|
if test "$use_unbound_event" = "yes"; then
|
||||||
AC_SUBST(UNBOUND_EVENT_INSTALL, [unbound-event-install])
|
AC_SUBST(UNBOUND_EVENT_INSTALL, [unbound-event-install])
|
||||||
AC_SUBST(UNBOUND_EVENT_UNINSTALL, [unbound-event-uninstall])
|
AC_SUBST(UNBOUND_EVENT_UNINSTALL, [unbound-event-uninstall])
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
AC_DEFINE(USE_MINI_EVENT, 1, [Define if you want to use internal select based events])
|
AC_DEFINE(USE_MINI_EVENT, 1, [Define if you want to use internal select based events])
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
24 January 2014: Wouter
|
24 January 2014: Wouter
|
||||||
- Change unbound-event.h to use void* buffer, length idiom.
|
- Change unbound-event.h to use void* buffer, length idiom.
|
||||||
- iana portlist updated.
|
- iana portlist updated.
|
||||||
|
- unbound-event.h is installed if you configure --enable-event-api.
|
||||||
|
|
||||||
21 January 2014: Wouter
|
21 January 2014: Wouter
|
||||||
- Fix #547: no trustanchor written if filesystem full, fclose checked.
|
- Fix #547: no trustanchor written if filesystem full, fclose checked.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue