]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools: fix AC_DEFINE_UNQUOTED() use
authorKarel Zak <kzak@redhat.com>
Mon, 9 Oct 2023 10:18:31 +0000 (12:18 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Oct 2023 10:18:31 +0000 (12:18 +0200)
Let's use AC_DEFINE_UNQUOTED() for string-like content, otherwise use
a simple AC_DEFINE().

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index a32ce7dcacf1d4e4e96bd69a938ea466a01f0de4..d7c5155c9c09c07fbc56dd975ba875bcdcf74253 100644 (file)
@@ -695,13 +695,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]
                )
        ])]
@@ -716,13 +716,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 <sys/types.h>
         #include <sys/socket.h>])
 
@@ -2805,7 +2805,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"