diff options
author | Reini Urban <rurban@cpan.org> | 2017-09-28 12:09:44 +0200 |
---|---|---|
committer | Reini Urban <rurban@cpan.org> | 2017-09-28 12:09:58 +0200 |
commit | 73fee95f37bfb068fa3a57f05ada463f93f0449e (patch) | |
tree | 6fafbef74c093240ab6ac5c8589f8adb9fb9a290 /m4/ax_asm_inline.m4 | |
parent | d2a928f26c5b584e2820ae35a13266af8593bfb1 (diff) | |
download | autoconf-archive-73fee95f37bfb068fa3a57f05ada463f93f0449e.tar.gz |
m4: update AX_ASM_INLINE
to use AC_COMPILE_IFELSE
Diffstat (limited to 'm4/ax_asm_inline.m4')
-rw-r--r-- | m4/ax_asm_inline.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/m4/ax_asm_inline.m4 b/m4/ax_asm_inline.m4 index 266a95a..76d5bf3 100644 --- a/m4/ax_asm_inline.m4 +++ b/m4/ax_asm_inline.m4 @@ -16,13 +16,14 @@ # # Copyright (c) 2008 Alan Woodland <ajw05@aber.ac.uk> # Copyright (c) 2009 Rhys Ulerich <rhys.ulerich@gmail.com> +# Copyright (c) 2017 Reini Urban <rurban@cpan.org> # # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 3 +#serial 4 AC_DEFUN([AX_ASM_INLINE], [ AC_LANG_PUSH([C]) @@ -33,14 +34,14 @@ AC_DEFUN([AX_ASM_INLINE], [ case $ax_asm_inline_keyword in none) ac_cv_asm_inline=none ; break ;; *) - AC_TRY_COMPILE( + AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [#include <stdlib.h> static void foo(void) { ] $ax_asm_inline_keyword [(""); exit(1); }], - [], + [])], [ac_cv_asm_inline=$ax_asm_inline_keyword ; break], ac_cv_asm_inline=none ) |