build: fix configure formatting of IN6_ADDR_GEN_MODE check

Print the result, and make the m4 formatting consistent with the
other kernel checks.
This commit is contained in:
Dan Williams 2014-11-12 14:38:28 -06:00
parent 29ed625fea
commit c0c90fa65d

View file

@ -419,10 +419,14 @@ AC_COMPILE_IFELSE(
#endif
#include <linux/if_link.h>]],
[[int a = IN6_ADDR_GEN_MODE_EUI64; a++;]])],
[ac_have_kernel_gen_mode="1"],
[ac_have_kernel_gen_mode="0"])
AC_DEFINE_UNQUOTED(HAVE_KERNEL_INET6_ADDR_GEN_MODE,
$ac_have_kernel_gen_mode, [Define if the kernel has IN6_ADDR_GEN_MODE_*])
[ac_have_kernel_gen_mode=yes],
[ac_have_kernel_gen_mode=no])
AC_MSG_RESULT($ac_have_kernel_gen_mode)
if test "$ac_have_kernel_gen_mode" = yes; then
AC_DEFINE(HAVE_KERNEL_INET6_ADDR_GEN_MODE, 1, [Define if the kernel has IN6_ADDR_GEN_MODE_*])
else
AC_DEFINE(HAVE_KERNEL_INET6_ADDR_GEN_MODE, 0, [Define if the kernel has IN6_ADDR_GEN_MODE_*])
fi
# uuid library
PKG_CHECK_MODULES(UUID, uuid)