summaryrefslogtreecommitdiff
path: root/m4/ax_check_zlib.m4
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-07-26 15:31:37 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-07-26 15:54:20 +0200
commit27efe2db1b0988303e46bd5dda65ff9ec12de18b (patch)
tree79da0613ed4c5ea1f8bb2807f99ec6a9fad44fb1 /m4/ax_check_zlib.m4
parent72e8def2648d7d05daa95d533079e7373b7218d7 (diff)
downloadautoconf-archive-27efe2db1b0988303e46bd5dda65ff9ec12de18b.tar.gz
Replace AC_TRY_COMPILE and AC_LANG_
Autoconf 2.50 in 2001 made several macros obsolete. These include macros for temporary changing the language - AC_LANG_SAVE, AC_LANG_CPLUSPLUS, AC_LANG_C, and AC_LANG_RESTORE. Instead of these the AC_LANG_PUSH and AC_LANG_POP macros should be used with later Autoconf versions. AC_TRY_COMPILE macros should be replaced with AC_COMPILE_IFELSE. Refs: - http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Language-Choice.html - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
Diffstat (limited to 'm4/ax_check_zlib.m4')
-rw-r--r--m4/ax_check_zlib.m47
1 files changed, 3 insertions, 4 deletions
diff --git a/m4/ax_check_zlib.m4 b/m4/ax_check_zlib.m4
index be91a86..1a16843 100644
--- a/m4/ax_check_zlib.m4
+++ b/m4/ax_check_zlib.m4
@@ -62,7 +62,7 @@
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 15
+#serial 16
AU_ALIAS([CHECK_ZLIB], [AX_CHECK_ZLIB])
AC_DEFUN([AX_CHECK_ZLIB],
@@ -108,11 +108,10 @@ then
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
fi
- AC_LANG_SAVE
- AC_LANG_C
+ AC_LANG_PUSH([C])
AC_CHECK_LIB([z], [inflateEnd], [zlib_cv_libz=yes], [zlib_cv_libz=no])
AC_CHECK_HEADER([zlib.h], [zlib_cv_zlib_h=yes], [zlib_cv_zlib_h=no])
- AC_LANG_RESTORE
+ AC_LANG_POP([C])
if test "$zlib_cv_libz" = "yes" && test "$zlib_cv_zlib_h" = "yes"
then
#