summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-07-29 09:41:56 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2014-08-18 01:50:26 +0200
commit3ef0b877f08344aa52367794aa4ec32b12becd6d (patch)
tree3a8f27bf01700918ecb4c2fec4fa0ecfaff65744
parentc299ed717eea4dbf7ca3581bcba05ff09f79276c (diff)
downloadquagga-3ef0b877f08344aa52367794aa4ec32b12becd6d.tar.bz2
quagga-3ef0b877f08344aa52367794aa4ec32b12becd6d.tar.xz
build: do not assume glibc on linux
The whole IPv6 stack detection could need refactoring. But this fixes the linux check to not assume glibc. Fixes build against musl c-library. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rwxr-xr-xconfigure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 3dba3b35..f1df482b 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1204,21 +1204,22 @@ dnl ----------
if test "$zebra_cv_linux_ipv6" = "yes";then
AC_MSG_CHECKING(for GNU libc >= 2.1)
AC_DEFINE(HAVE_IPV6,1,Linux IPv6)
+ AC_DEFINE(LINUX_IPV6,1,Linux IPv6 stack)
+
AC_EGREP_CPP(yes, [
#include <features.h>
#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
yes
#endif],
[glibc=yes
- AC_DEFINE(LINUX_IPV6,1,Linux IPv6 stack)
AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no)
)
RIPNGD="ripngd"
OSPF6D="ospf6d"
if test "$glibc" != "yes"; then
- INCLUDES="-I/usr/inet6/include"
if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
+ INCLUDES="-I/usr/inet6/include"
LIB_IPV6="-L/usr/inet6/lib -linet6"
fi
fi