]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Fix quoting in autoconf ifunc test
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Wed, 13 Jun 2018 09:41:40 +0000 (12:41 +0300)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 18 Nov 2018 10:33:44 +0000 (11:33 +0100)
* aclocal.m4 (NETTLE_CHECK_IFUNC): fix quoting so that
  AC_LINK_IFELSE/AC_TRY_LINK is defined outside of this test.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
(cherry picked from commit e07e5605b3da65e07c7fe5fcf1ce3b050595d1b5)

ChangeLog
aclocal.m4

index 6b14e8224e1d54fc4efc75d1b04a91b731e63eae..9c3ba473a99df82a81269834c71a4bbe6151053a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2018-06-17  Niels Möller  <nisse@lysator.liu.se>
 
        Backported from master branch.
+       * aclocal.m4 (NETTLE_CHECK_IFUNC): Fix quoting. Patch contributed
+       by Dmitry Eremin-Solenikov.
        * testsuite/symbols-test: Exclude ____chkstk_darwin symbols,
        produced by Apple's Xcode 10 compiler. Patch contributed by
        Dominyk Tiller.
index 783dbc492b5c9dce437d4ac0aa431e7120ed2318..772f68e8eb9d667385ceb921b705653c01a8f8b4 100644 (file)
@@ -650,7 +650,7 @@ AC_DEFUN([NETTLE_CHECK_IFUNC],
 [AC_REQUIRE([AC_PROG_CC])
 AC_CACHE_CHECK([for ifunc support],
   nettle_cv_link_ifunc,
-  AC_LINK_IFELSE([AC_LANG_PROGRAM([
+  [AC_LINK_IFELSE([AC_LANG_PROGRAM([
 static int
 foo_imp(int x)
 {
@@ -671,7 +671,7 @@ int foo (int x) __attribute__ ((ifunc("foo_resolv")));
 
 ])],
 [nettle_cv_link_ifunc=yes],
-[nettle_cv_link_ifunc=no]))
+[nettle_cv_link_ifunc=no])])
 AH_TEMPLATE([HAVE_LINK_IFUNC], [Define if compiler and linker supports __attribute__ ifunc])
 if test "x$nettle_cv_link_ifunc" = xyes ; then
   AC_DEFINE(HAVE_LINK_IFUNC)