diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-07-23 10:38:45 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-07-23 10:38:45 +0200 |
commit | aadd47319cc22bf278e1a479bb1d0a640d607207 (patch) | |
tree | 7d87490596e6856fc1cf6b7d3d8710afb7e1fbff /m4/ax_func_posix_memalign.m4 | |
parent | 8ce1199b2756686f2c31dff26a71164cd5a07be7 (diff) | |
download | autoconf-archive-aadd47319cc22bf278e1a479bb1d0a640d607207.tar.gz |
Replace obsolete AC_TRY_RUN with AC_RUN_IFELSE
Autoconf made several macros obsolete including the AC_TRY_RUN and in
2000 and since Autoconf 2.50:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2
These macros should be replaced with the current AC_RUN_IFELSE instead.
This patch was created with the help of the autoupdate script.
Reference docs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
Diffstat (limited to 'm4/ax_func_posix_memalign.m4')
-rw-r--r-- | m4/ax_func_posix_memalign.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/ax_func_posix_memalign.m4 b/m4/ax_func_posix_memalign.m4 index f7032f1..2442cec 100644 --- a/m4/ax_func_posix_memalign.m4 +++ b/m4/ax_func_posix_memalign.m4 @@ -22,12 +22,12 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 8 +#serial 9 AC_DEFUN([AX_FUNC_POSIX_MEMALIGN], [AC_CACHE_CHECK([for working posix_memalign], [ax_cv_func_posix_memalign_works], - [AC_TRY_RUN([ + [AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <stdlib.h> int @@ -39,7 +39,7 @@ main () * the size word. */ exit (posix_memalign (&buffer, sizeof(void *), 123) != 0); } - ], + ]])], [ax_cv_func_posix_memalign_works=yes], [ax_cv_func_posix_memalign_works=no], [ax_cv_func_posix_memalign_works=no])]) |