[PATCH] 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 Eremin-Solenikov <dbaryshkov@gmail.com> --- aclocal.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index 783dbc492b5c..772f68e8eb9d 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -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) -- 2.17.1
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> writes:
* aclocal.m4 (NETTLE_CHECK_IFUNC): fix quoting so that AC_LINK_IFELSE/AC_TRY_LINK is defined outside of this test.
Thanks, applied. What concrete errors did the incorrect quoting cause? Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677. Internet email is subject to wholesale government surveillance.
вс, 17 июн. 2018 г. в 20:32, Niels Möller <nisse@lysator.liu.se>:
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> writes:
* aclocal.m4 (NETTLE_CHECK_IFUNC): fix quoting so that AC_LINK_IFELSE/AC_TRY_LINK is defined outside of this test.
Thanks, applied. What concrete errors did the incorrect quoting cause?
Failure of the test on second (and following) configure runs if config.cache was enabled: configure: loading cache config.cache checking build system type... (cached) x86_64-unknown-linux-gnu checking host system type... (cached) x86_64-unknown-linux-gnu [skipped] checking whether g++ accepts -g... (cached) yes checking if LD -Wl,--version-script works... ../nettle/configure: line 4023: ac_fn_c_try_link: command not found ../nettle/configure: line 4051: ac_fn_c_try_link: command not found no -- With best wishes Dmitry
participants (2)
-
Dmitry Eremin-Solenikov -
nisse@lysator.liu.se