From e2f0aa5c25c0295ef6187d3c53c2801fe17385e5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 9 Oct 2023 12:18:31 +0200 Subject: [PATCH] autotools: fix AC_DEFINE_UNQUOTED() use Let's use AC_DEFINE_UNQUOTED() for string-like content, otherwise use a simple AC_DEFINE(). Signed-off-by: Karel Zak --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index b498feac08..52a04729fe 100644 --- a/configure.ac +++ b/configure.ac @@ -681,13 +681,13 @@ AC_CHECK_FUNCS([timer_create], [AC_CHECK_LIB([rt], [timer_create], [ have_timer="yes" REALTIME_LIBS="-lrt" - AC_DEFINE_UNQUOTED([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt]) + AC_DEFINE([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt]) ],[ AC_SEARCH_LIBS([timer_create], [rt], [ AC_MSG_RESULT(yes) have_timer="yes" REALTIME_LIBS="-lrt -lpthread" - AC_DEFINE_UNQUOTED([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt -lpthread]) + AC_DEFINE([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt -lpthread]) ],[], [-lpthread] ) ])] @@ -702,13 +702,13 @@ AS_IF([test x"$have_timer" = xno], [ AC_CHECK_LIB([rtas], [rtas_get_sysparm], [ RTAS_LIBS="-lrtas" - AC_DEFINE_UNQUOTED([HAVE_LIBRTAS], [1], [Define if librtas exists]) + AC_DEFINE([HAVE_LIBRTAS], [1], [Define if librtas exists]) ]) AC_SUBST([RTAS_LIBS]) AC_CHECK_MEMBER([struct sockaddr.sa_len], - AC_DEFINE_UNQUOTED([HAVE_SA_LEN], [1], [Define if struct sockaddr contains sa_len]), [], + AC_DEFINE([HAVE_SA_LEN], [1], [Define if struct sockaddr contains sa_len]), [], [#include #include ]) @@ -2766,7 +2766,7 @@ AS_IF([test "x$with_cryptsetup" = xno], [ SAVE_LIBS="$LIBS" LIBS="$CRYPTSETUP_LIBS $LIBS" AC_CHECK_LIB([cryptsetup], [crypt_activate_by_signed_key], [ - AC_DEFINE_UNQUOTED([HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY], [1], [Define if crypt_activate_by_signed_key exist in -lcryptsetup]) + AC_DEFINE([HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY], [1], [Define if crypt_activate_by_signed_key exist in -lcryptsetup]) ]) AS_IF([test "x$with_cryptsetup" = xdlopen], [ LIBS="-ldl $LIBS" -- 2.47.2