From: Aki Tuomi Date: Mon, 25 Apr 2022 19:27:39 +0000 (+0300) Subject: m4: static_array.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3885 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d035edb2c6ef797ddcb0b6598ef1ad7e33a436d;p=thirdparty%2Fdovecot%2Fcore.git m4: static_array.m4 - Modernize m4 syntax --- diff --git a/m4/static_array.m4 b/m4/static_array.m4 index e4466c435a..4ef6124f7a 100644 --- a/m4/static_array.m4 +++ b/m4/static_array.m4 @@ -1,19 +1,19 @@ AC_DEFUN([DOVECOT_C_STATIC_ARRAY], [ AC_CACHE_CHECK([if we can use C99 static in array sizes],i_cv_c99_static_arrays,[ - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ void foo(unsigned char arr[static 20]); - ], [ - ], [ + ]], [[ + ]])],[ i_cv_c99_static_arrays=yes - ], [ + ],[ i_cv_c99_static_arrays=no ]) ]) - if test $i_cv_c99_static_arrays = yes; then + AS_IF([test $i_cv_c99_static_arrays = yes], [ static_value=static - else + ], [ static_value= - fi + ]) AC_DEFINE_UNQUOTED(STATIC_ARRAY, $static_value, [C99 static array]) ])