From 6ac27f50ad42bb98f87858ccf35200ec2fe3e1ba Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Sat, 4 Jun 2022 22:45:42 +0200 Subject: [PATCH] Print output of symver attribute check in autoconf. --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e47179f2..7c2467fb 100644 --- a/configure.ac +++ b/configure.ac @@ -555,6 +555,7 @@ if test "x$enable_static_cryptsetup" = "xyes"; then fi dnl Check compiler support for symver function attribute +AC_MSG_CHECKING([for symver attribute support]) saved_CFLAGS=$CFLAGS CFLAGS="-O0 -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ @@ -562,7 +563,12 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ __attribute__((__symver__("sym@VERSION_4.2"))) void _test_sym(void) {} ]], [[ _test_sym() ]] -)],[ AC_DEFINE([HAVE_ATTRIBUTE_SYMVER], 1, [Define to 1 to use __attribute__((symver))])]) +)],[ + AC_DEFINE([HAVE_ATTRIBUTE_SYMVER], 1, [Define to 1 to use __attribute__((symver))]) + AC_MSG_RESULT([yes]) +], [ + AC_MSG_RESULT([no]) +]) CFLAGS=$saved_CFLAGS AC_MSG_CHECKING([for systemd tmpfiles config directory])