Commit 8514df12 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Niels Möller

Fix quoting in autoconf ifunc test

* 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 Baryshkov's avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
(cherry picked from commit e07e5605)
parent 1dd5dda6
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.
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment