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 | 19dd0ae5e7369bee07fb4fb2f3aeef1ed6d78dfd (patch) | |
tree | 0c20ba5fa8f67136c33a223b997b7c203f936132 /gdbserver/acinclude.m4 | |
parent | ad6dba1cea202de44f7f4597a73842e4ca47c639 (diff) | |
download | gdb-19dd0ae5e7369bee07fb4fb2f3aeef1ed6d78dfd.zip gdb-19dd0ae5e7369bee07fb4fb2f3aeef1ed6d78dfd.tar.gz gdb-19dd0ae5e7369bee07fb4fb2f3aeef1ed6d78dfd.tar.bz2 |
gdbserver: replace AC_TRY_COMPILE in acinclude.m4
... with AC_COMPILE_IFELSE and AC_LANG_PROGRAM.
All changes in the generated configure file are insignificant
whitespace changes.
gdbserver/ChangeLog:
* acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
AC_LANG_PROGRAM.
* configure: Re-generate.
Change-Id: Idab8b5e1a984046b5283940c02e5a22da2291d58
Diffstat (limited to 'gdbserver/acinclude.m4')
-rw-r--r-- | gdbserver/acinclude.m4 | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/gdbserver/acinclude.m4 b/gdbserver/acinclude.m4 index f02a63c..e18ee99 100644 --- a/gdbserver/acinclude.m4 +++ b/gdbserver/acinclude.m4 @@ -42,18 +42,20 @@ m4_include(../config/gettext-sister.m4) dnl Check for existence of a type $1 in libthread_db.h dnl Based on BFD_HAVE_SYS_PROCFS_TYPE in bfd/bfd.m4. -AC_DEFUN([GDBSERVER_HAVE_THREAD_DB_TYPE], -[AC_MSG_CHECKING([for $1 in thread_db.h]) - AC_CACHE_VAL(gdbserver_cv_have_thread_db_type_$1, - [AC_TRY_COMPILE([ -#include <thread_db.h>], - [$1 avar], - gdbserver_cv_have_thread_db_type_$1=yes, - gdbserver_cv_have_thread_db_type_$1=no - )]) - if test $gdbserver_cv_have_thread_db_type_$1 = yes; then - AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1, - [Define if <thread_db.h> has $1.]) - fi - AC_MSG_RESULT($gdbserver_cv_have_thread_db_type_$1) -]) +AC_DEFUN( + [GDBSERVER_HAVE_THREAD_DB_TYPE], + [AC_MSG_CHECKING([for $1 in thread_db.h]) + AC_CACHE_VAL( + [gdbserver_cv_have_thread_db_type_$1], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([#include <thread_db.h>], [$1 avar])], + [gdbserver_cv_have_thread_db_type_$1=yes], + [gdbserver_cv_have_thread_db_type_$1=no] + )] + ) + if test $gdbserver_cv_have_thread_db_type_$1 = yes; then + AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1, + [Define if <thread_db.h> has $1.]) + fi + AC_MSG_RESULT($gdbserver_cv_have_thread_db_type_$1)] +) |