Update SoftHSM v2.0 to the latest version
[aaf/sshsm.git] / SoftHSMv2 / m4 / acx_botan_gnump.m4
1 AC_DEFUN([ACX_BOTAN_GNUMP],[
2         tmp_CPPFLAGS=$CPPFLAGS
3         tmp_LIBS=$LIBS
4
5         CPPFLAGS="$CPPFLAGS $BOTAN_CFLAGS"
6         LIBS="$LIBS $BOTAN_LIBS"
7
8         AC_LANG_PUSH([C++])
9         AC_LINK_IFELSE(
10                 [AC_LANG_PROGRAM(
11                         [#include <botan/build.h>],
12                         [#ifndef BOTAN_HAS_ENGINE_GNU_MP
13                         #error "No GNU MP support";
14                         #endif])],
15                 [AC_MSG_RESULT([checking for Botan GNU MP support... yes])],
16                 [AC_MSG_RESULT([checking for Botan GNU MP support... no])
17                  AC_MSG_WARN([
18 ====================================================
19 Botan has not been built with GNU MP (--with-gnump).
20 This will give negative impact on the performance.
21 ====================================================])]
22         )
23         AC_LANG_POP([C++])
24
25         CPPFLAGS=$tmp_CPPFLAGS
26         LIBS=$tmp_LIBS
27 ])