diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-31 08:31:00 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-31 08:31:00 -0400 |
commit | b9442ec18bbaf5544111cc0bb98f2eb50e58942b (patch) | |
tree | 2fd95f9425a2b8aef9f9492e31eb0446b6e8aedf /gdbsupport/common.m4 | |
parent | 15dabc52a1a2552e77432f920fd3f501f92bcf4f (diff) | |
download | gdb-b9442ec18bbaf5544111cc0bb98f2eb50e58942b.zip gdb-b9442ec18bbaf5544111cc0bb98f2eb50e58942b.tar.gz gdb-b9442ec18bbaf5544111cc0bb98f2eb50e58942b.tar.bz2 |
gdbsupport: replace AC_TRY_COMPILE in common.m4
... with AC_COMPILE_IFELSE + AC_LANG_PROGRAM. All the changes in the
generated configure files are insignificant whitespace changes.
gdb/ChangeLog:
* configure: Re-generate.
gdbserver/ChangeLog:
* configure: Re-generate.
gdbsupport/ChangeLog:
* common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
AC_LANG_PROGRAM.
* configure: Re-generate.
Change-Id: Id58e6e887f6be817d52b189921845838031dbd2a
Diffstat (limited to 'gdbsupport/common.m4')
-rw-r--r-- | gdbsupport/common.m4 | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4 index c265a9b..4d73938 100644 --- a/gdbsupport/common.m4 +++ b/gdbsupport/common.m4 @@ -127,11 +127,20 @@ AC_DEFUN([GDB_AC_COMMON], [ dnl Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't dnl do since sigsetjmp might only be defined as a macro. - AC_CACHE_CHECK([for sigsetjmp], gdb_cv_func_sigsetjmp, - [AC_TRY_COMPILE([ - #include <setjmp.h> - ], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);], - gdb_cv_func_sigsetjmp=yes, gdb_cv_func_sigsetjmp=no)]) + AC_CACHE_CHECK( + [for sigsetjmp], + [gdb_cv_func_sigsetjmp], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [#include <setjmp.h>], + [sigjmp_buf env; + while (! sigsetjmp (env, 1)) + siglongjmp (env, 1);] + )], + [gdb_cv_func_sigsetjmp=yes], + [gdb_cv_func_sigsetjmp=no] + )] + ) if test "$gdb_cv_func_sigsetjmp" = "yes"; then AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available. ]) fi |