diff options
author | Naohiro Tamura <naohirot@fujitsu.com> | 2021-05-22 02:42:48 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-04 10:16:00 -0300 |
commit | b190bccc8a7e4919d3bd68a153577284f201819a (patch) | |
tree | 04374fc6123931c91c08adb77c372986ce9c9053 /sysdeps/mach/hurd/configure.ac | |
parent | 57094e576aed174317fb7de2da34be8536891678 (diff) | |
download | glibc-b190bccc8a7e4919d3bd68a153577284f201819a.tar.gz glibc-b190bccc8a7e4919d3bd68a153577284f201819a.tar.xz glibc-b190bccc8a7e4919d3bd68a153577284f201819a.zip |
configure: Replaced obsolete AC_TRY_COMPILE
This patch replaced obsolete AC_TRY_COMPILE to AC_COMPILE_IFELSE or AC_PREPROC_IFELSE. It has been confirmed that GNU 'autoconf' 2.69 suppressed obsolete warnings, updated the following files: - configure - sysdeps/mach/configure - sysdeps/mach/hurd/configure - sysdeps/s390/configure - sysdeps/unix/sysv/linux/configure and didn't change the following files: - sysdeps/ieee754/ldbl-opt/configure - sysdeps/unix/sysv/linux/powerpc/configure Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/mach/hurd/configure.ac')
-rw-r--r-- | sysdeps/mach/hurd/configure.ac | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/configure.ac b/sysdeps/mach/hurd/configure.ac index 9a049b1d86..82d085af33 100644 --- a/sysdeps/mach/hurd/configure.ac +++ b/sysdeps/mach/hurd/configure.ac @@ -11,14 +11,14 @@ if test -n "$sysheaders"; then fi AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl -AC_TRY_COMPILE(dnl -[#include <hurd/version.h>], [ +AC_PREPROC_IFELSE([AC_LANG_PROGRAM(dnl +[[#include <hurd/version.h>]], [[ #define NEED_VERSION 20020609 #if HURD_INTERFACE_VERSION < NEED_VERSION # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION -#endif], - libc_cv_hurd_version=ok, - libc_cv_hurd_version=bad)]) +#endif]])], + [libc_cv_hurd_version=ok], + [libc_cv_hurd_version=bad])]) if test "x$libc_cv_hurd_version" != xok; then AC_MSG_ERROR(Hurd headers not installed or too old) fi |