diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rwxr-xr-x | gdb/configure | 11 | ||||
-rw-r--r-- | gdbserver/ChangeLog | 4 | ||||
-rwxr-xr-x | gdbserver/configure | 11 | ||||
-rw-r--r-- | gdbsupport/ChangeLog | 6 | ||||
-rw-r--r-- | gdbsupport/common.m4 | 19 | ||||
-rwxr-xr-x | gdbsupport/configure | 11 |
7 files changed, 49 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d9484b7..e3734cf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -12,6 +12,10 @@ 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> + * configure: Re-generate. + +2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> + * acinclude.m4: Modernize. * configure: Re-generate. diff --git a/gdb/configure b/gdb/configure index 801e7a1..a08c8c5 100755 --- a/gdb/configure +++ b/gdb/configure @@ -14232,13 +14232,14 @@ if ${gdb_cv_func_sigsetjmp+:} false; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - - #include <setjmp.h> - +#include <setjmp.h> int main () { -sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); +sigjmp_buf env; + while (! sigsetjmp (env, 1)) + siglongjmp (env, 1); + ; return 0; } @@ -14247,8 +14248,10 @@ if ac_fn_c_try_compile "$LINENO"; then : gdb_cv_func_sigsetjmp=yes else gdb_cv_func_sigsetjmp=no + fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 $as_echo "$gdb_cv_func_sigsetjmp" >&6; } diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 5da03da..505ad8e 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -12,6 +12,10 @@ 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> + * configure: Re-generate. + +2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> + * configure.ac: Modernize. * configure: Re-generate. diff --git a/gdbserver/configure b/gdbserver/configure index 39ec491..bd48d67 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -8029,13 +8029,14 @@ if ${gdb_cv_func_sigsetjmp+:} false; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - - #include <setjmp.h> - +#include <setjmp.h> int main () { -sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); +sigjmp_buf env; + while (! sigsetjmp (env, 1)) + siglongjmp (env, 1); + ; return 0; } @@ -8044,8 +8045,10 @@ if ac_fn_c_try_compile "$LINENO"; then : gdb_cv_func_sigsetjmp=yes else gdb_cv_func_sigsetjmp=no + fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 $as_echo "$gdb_cv_func_sigsetjmp" >&6; } diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog index 2532a39..3d673d4 100644 --- a/gdbsupport/ChangeLog +++ b/gdbsupport/ChangeLog @@ -1,5 +1,11 @@ 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> + * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE + + AC_LANG_PROGRAM. + * configure: Re-generate. + +2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> + * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 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 diff --git a/gdbsupport/configure b/gdbsupport/configure index 1452b35..9c5e59c 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -9043,13 +9043,14 @@ if ${gdb_cv_func_sigsetjmp+:} false; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - - #include <setjmp.h> - +#include <setjmp.h> int main () { -sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); +sigjmp_buf env; + while (! sigsetjmp (env, 1)) + siglongjmp (env, 1); + ; return 0; } @@ -9058,8 +9059,10 @@ if ac_fn_c_try_compile "$LINENO"; then : gdb_cv_func_sigsetjmp=yes else gdb_cv_func_sigsetjmp=no + fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 $as_echo "$gdb_cv_func_sigsetjmp" >&6; } |