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
This commit is contained in:
Simon Marchi 2020-10-31 08:31:00 -04:00
parent ad6dba1cea
commit 19dd0ae5e7
3 changed files with 33 additions and 25 deletions

View File

@ -1,3 +1,9 @@
2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
* acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
AC_LANG_PROGRAM.
* configure: Re-generate.
2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
* configure: Re-generate. * configure: Re-generate.

View File

@ -42,18 +42,20 @@ m4_include(../config/gettext-sister.m4)
dnl Check for existence of a type $1 in libthread_db.h dnl Check for existence of a type $1 in libthread_db.h
dnl Based on BFD_HAVE_SYS_PROCFS_TYPE in bfd/bfd.m4. dnl Based on BFD_HAVE_SYS_PROCFS_TYPE in bfd/bfd.m4.
AC_DEFUN([GDBSERVER_HAVE_THREAD_DB_TYPE], AC_DEFUN(
[AC_MSG_CHECKING([for $1 in thread_db.h]) [GDBSERVER_HAVE_THREAD_DB_TYPE],
AC_CACHE_VAL(gdbserver_cv_have_thread_db_type_$1, [AC_MSG_CHECKING([for $1 in thread_db.h])
[AC_TRY_COMPILE([ AC_CACHE_VAL(
#include <thread_db.h>], [gdbserver_cv_have_thread_db_type_$1],
[$1 avar], [AC_COMPILE_IFELSE(
gdbserver_cv_have_thread_db_type_$1=yes, [AC_LANG_PROGRAM([#include <thread_db.h>], [$1 avar])],
gdbserver_cv_have_thread_db_type_$1=no [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 if test $gdbserver_cv_have_thread_db_type_$1 = yes; then
AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1, AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1,
[Define if <thread_db.h> has $1.]) [Define if <thread_db.h> has $1.])
fi fi
AC_MSG_RESULT($gdbserver_cv_have_thread_db_type_$1) AC_MSG_RESULT($gdbserver_cv_have_thread_db_type_$1)]
]) )

4
gdbserver/configure vendored
View File

@ -10391,7 +10391,6 @@ $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <thread_db.h> #include <thread_db.h>
int int
main () main ()
@ -10408,6 +10407,7 @@ else
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
@ -10428,7 +10428,6 @@ $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <thread_db.h> #include <thread_db.h>
int int
main () main ()
@ -10445,6 +10444,7 @@ else
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then