+* Fix check for -lipv6 on HP-UX 11.
(4.2.7p117) 2011/01/13 Released by Harlan Stenn <stenn@ntp.org>
* Add configure --without-sntp option to disable building sntp and
sntp/tests. withsntp=no in the environment changes the default.
#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
-AC_CHECK_FUNCS([if_nametoindex])
-case "$ac_cv_func_if_nametoindex" in
- no)
- case "$host" in
- *-hp-hpux*)
- AC_CHECK_LIB([ipv6], [if_nametoindex],
- [ac_cv_func_if_nametoindex=yes ; LIBS="-lipv6 $LIBS"])
- esac
+case "$host" in
+ *-hp-hpux*)
+ AC_SEARCH_LIBS([if_nametoindex], [ipv6])
esac
+AC_CHECK_FUNCS([if_nametoindex])
case "$ac_cv_func_if_nametoindex" in
yes)
AC_DEFINE([ISC_PLATFORM_HAVEIFNAMETOINDEX], [1],