summaryrefslogtreecommitdiffstats
path: root/m4/as-compiler-flag.m4
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-09-11 01:38:44 +0200
committerGravatar Nikias Bassen2021-09-11 01:38:44 +0200
commitb6e60a33d3e68ecbcb36708cdc68e18a538ba26a (patch)
tree554054d4c4871cf4695d51ad4d53f08c3cf71d68 /m4/as-compiler-flag.m4
parentfeb0bcd102ff0abc34ffa04e8cabf26706ffdb38 (diff)
downloadlibplist-b6e60a33d3e68ecbcb36708cdc68e18a538ba26a.tar.gz
libplist-b6e60a33d3e68ecbcb36708cdc68e18a538ba26a.tar.bz2
Update deprecated autoconf macros and update 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