]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Use -eq instead of = as test operators for arithmetic tests
authorGuillem Jover <guillem@hadrons.org>
Thu, 14 Mar 2024 00:59:19 +0000 (01:59 +0100)
committerGuillem Jover <guillem@hadrons.org>
Thu, 14 Mar 2024 00:59:19 +0000 (01:59 +0100)
m4/libbsd-large.m4

index d279111819a551df95662af861f8e303a577286f..dc00c6e3458a854e0769d983dec2ae9c11de1f26 100644 (file)
@@ -9,7 +9,7 @@ AC_DEFUN([LIBBSD_SYS_TIME64], [
 #undef _TIME_BITS
 #include <time.h>
 ]])
-  AS_IF([test $ac_cv_sizeof_time_t = 8], [
+  AS_IF([test $ac_cv_sizeof_time_t -eq 8], [
     libbsd_sys_time_bits=64
   ], [
     libbsd_sys_time_bits=32
@@ -26,7 +26,7 @@ AC_DEFUN([LIBBSD_SYS_TIME64], [
 #define _TIME_BITS 64
 #include <time.h>
 ]])
-  AS_IF([test $ac_cv_sizeof_time_t = 8], [
+  AS_IF([test $ac_cv_sizeof_time_t -eq 8], [
     libbsd_sys_has_time64=1
   ], [
     libbsd_sys_has_time64=0
@@ -35,7 +35,7 @@ AC_DEFUN([LIBBSD_SYS_TIME64], [
     [Enable if the system supports 64-bit time_t])
   AC_SUBST([LIBBSD_SYS_HAS_TIME64], [$libbsd_sys_has_time64])
   AM_CONDITIONAL([LIBBSD_SYS_HAS_TIME64], [test "$libbsd_sys_has_time64" -eq 1])
-  AS_IF([test "$libbsd_sys_time_bits" = 32 && \
+  AS_IF([test "$libbsd_sys_time_bits" -eq 32 && \
          test "$libbsd_sys_has_time64" -eq 1], [
     abi_time64=yes
   ], [
@@ -43,9 +43,9 @@ AC_DEFUN([LIBBSD_SYS_TIME64], [
   ])
   LIBBSD_SELECT_ABI([time64], [explicit time64 time_t support])
 
-  AS_IF([test $ac_cv_sys_file_offset_bits = 64 && \
-         test $libbsd_sys_time_bits = 32 && \
-         test $ac_cv_sizeof_time_t = 8], [
+  AS_IF([test $ac_cv_sys_file_offset_bits -eq 64 && \
+         test $libbsd_sys_time_bits -eq 32 && \
+         test $ac_cv_sizeof_time_t -eq 8], [
     AC_DEFINE([_TIME_BITS], [64], [Enable 64-bit time_t support])
   ])
 ])