configure: Detect mpz_powm_sec() when built with -Werror

This commit is contained in:
Tobias Brunner 2017-05-31 14:33:43 +02:00
parent 7421884da1
commit 17840fa18e
1 changed files with 2 additions and 2 deletions

View File

@ -919,9 +919,9 @@ if test x$gmp = xtrue; then
AC_COMPILE_IFELSE( AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM( [AC_LANG_PROGRAM(
[[#include "gmp.h"]], [[#include "gmp.h"]],
[[void *x = mpz_powm_sec;]])], [[void *x __attribute__((unused)); x = mpz_powm_sec;]])],
[AC_MSG_RESULT([yes]); [AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_MPZ_POWM_SEC], [], [have mpz_mown_sec()])], AC_DEFINE([HAVE_MPZ_POWM_SEC], [], [have mpz_powm_sec()])],
[AC_MSG_RESULT([no])] [AC_MSG_RESULT([no])]
) )
else else