aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/m4/odp_ipsec_mb.m4
blob: 3268d94c04dc6c0f9ec7c0703647498b9e036922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#########################################################################
# Check for libIPSec_MB availability
#########################################################################
ipsecmb_support=no
AC_CHECK_HEADERS([ipsec-mb.h],
        [AC_CHECK_LIB([IPSec_MB], [init_mb_mgr_auto], [ipsecmb_support=yes],
                [ipsecmb_support=no])],
        [ipsecmb_support=no])

AS_IF([test "x$with_crypto" = "xipsecmb" -a "x$ipsecmb_support" = "xno"],
      [AC_MSG_ERROR([IPSec MB library not found on this platform])])

if test "x$with_crypto" = "xipsecmb"; then
        IPSEC_MB_LIBS="-lIPSec_MB"
else
        IPSEC_MB_LIBS=""
fi

AC_SUBST([IPSEC_MB_LIBS])