From: Tobias Brunner Date: Wed, 31 May 2017 12:33:43 +0000 (+0200) Subject: configure: Detect mpz_powm_sec() when built with -Werror X-Git-Tag: 5.6.1dr1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17840fa18ee1439e136ee555a637b623c6bfbda1;p=thirdparty%2Fstrongswan.git configure: Detect mpz_powm_sec() when built with -Werror --- diff --git a/configure.ac b/configure.ac index a3ab56fa41..ea09855ec6 100644 --- a/configure.ac +++ b/configure.ac @@ -919,9 +919,9 @@ if test x$gmp = xtrue; then AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include "gmp.h"]], - [[void *x = mpz_powm_sec;]])], + [[void *x __attribute__((unused)); x = mpz_powm_sec;]])], [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])] ) else