summaryrefslogtreecommitdiffstats
path: root/m4/as-compiler-flag.m4
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-09-13 20:06:50 +0200
committerGravatar Nikias Bassen2021-09-13 20:06:50 +0200
commitbcf56b30fea3b841ee11a9b4f3ac74f6de465f3d (patch)
tree70b4f8642544771453d93682ce6a71a4d4e72010 /m4/as-compiler-flag.m4
parent3dda9d2701a34f02058425eea25431122283177c (diff)
downloadlibirecovery-bcf56b30fea3b841ee11a9b4f3ac74f6de465f3d.tar.gz
libirecovery-bcf56b30fea3b841ee11a9b4f3ac74f6de465f3d.tar.bz2
Update deprecated autoconf macros and m4 files
Diffstat (limited to 'm4/as-compiler-flag.m4')
-rw-r--r--m4/as-compiler-flag.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/as-compiler-flag.m4 b/m4/as-compiler-flag.m4
index 0f660cf..baab5d9 100644
--- a/m4/as-compiler-flag.m4
+++ b/m4/as-compiler-flag.m4
@@ -18,7 +18,7 @@ AC_DEFUN([AS_COMPILER_FLAG],
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $1"
- AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [flag_ok=yes], [flag_ok=no])
CFLAGS="$save_CFLAGS"
if test "X$flag_ok" = Xyes ; then
@@ -44,7 +44,7 @@ AC_DEFUN([AS_COMPILER_FLAGS],
do
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $each"
- AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [flag_ok=yes], [flag_ok=no])
CFLAGS="$save_CFLAGS"
if test "X$flag_ok" = Xyes ; then