summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-08-04 15:07:28 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-08-08 03:05:26 +0200
commit60060acc54fd5cb22f00e8f903d04081211a430d (patch)
tree6a2ca945c853e96705e7abfaf7855119fa952059 /configure.ac
parentlib: update strlcpy to OpenBSD v1.13 (diff)
downloadfrr-60060acc54fd5cb22f00e8f903d04081211a430d.tar.xz
frr-60060acc54fd5cb22f00e8f903d04081211a430d.zip
bgpd: use utsname.domainname only when available
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rwxr-xr-xconfigure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9cdf1903d..6f07f10cd 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1098,6 +1098,11 @@ AC_SUBST(IPFORWARD)
AC_CHECK_FUNCS(getaddrinfo, [have_getaddrinfo=yes], [have_getaddrinfo=no])
+dnl ----------------------------------------------------------------------------
+dnl figure out if domainname is available in the utsname struct (GNU extension).
+dnl ----------------------------------------------------------------------------
+AC_CHECK_MEMBERS([struct utsname.domainname], [], [], [#include <sys/utsname.h>])
+
dnl ----------
dnl IPv6 check
dnl ----------