summaryrefslogtreecommitdiff
path: root/m4/ax_ext.m4
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-07-23 10:38:45 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-07-23 10:38:45 +0200
commitaadd47319cc22bf278e1a479bb1d0a640d607207 (patch)
tree7d87490596e6856fc1cf6b7d3d8710afb7e1fbff /m4/ax_ext.m4
parent8ce1199b2756686f2c31dff26a71164cd5a07be7 (diff)
downloadautoconf-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_ext.m4')
-rw-r--r--m4/ax_ext.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/ax_ext.m4 b/m4/ax_ext.m4
index 66de4c3..b95d75a 100644
--- a/m4/ax_ext.m4
+++ b/m4/ax_ext.m4
@@ -44,7 +44,7 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 17
+#serial 18
AC_DEFUN([AX_EXT],
[
@@ -160,7 +160,7 @@ AC_DEFUN([AX_EXT],
ax_cv_have_sse_os_support_ext=no,
if test "$((0x$edx_cpuid1>>25&0x01))" = 1; then
AC_LANG_PUSH([C])
- AC_TRY_RUN([
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <signal.h>
#include <stdlib.h>
/* No way at ring1 to ring3 in protected mode to check the CR0 and CR4
@@ -172,10 +172,10 @@ AC_DEFUN([AX_EXT],
/* SSE instruction xorps %xmm0,%xmm0 */
__asm__ __volatile__ (".byte 0x0f, 0x57, 0xc0");
return 0;
- }],
- ax_cv_have_sse_os_support_ext=yes,
- ax_cv_have_sse_os_support_ext=no,
- ax_cv_have_sse_os_support_ext=no)
+ }]])],
+ [ax_cv_have_sse_os_support_ext=yes],
+ [ax_cv_have_sse_os_support_ext=no],
+ [ax_cv_have_sse_os_support_ext=no])
AC_LANG_POP([C])
fi
])