summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-12 11:57:28 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-12 11:57:28 +0100
commitd6d7d5faf681dca08fd7fb0ade2bec6d53c0f1ce (patch)
tree5167a8bea7976051a531dae809d1680cffb18811
parentf31e025c650ec2666a4be76cff31d24a9944b7c1 (diff)
Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE
The former is obsolete. configure.ac: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE.
-rw-r--r--configure.ac11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index cb9d3fdc..75abe63d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.54) dnl Minimum Autoconf version required.
+AC_PREREQ([2.69]) dnl Minimum Autoconf version required.
AC_INIT([GNU Hurd], [0.9], [bug-hurd@gnu.org])
AC_CONFIG_SRCDIR([hurd/hurd_types.h]) dnl File to look for in srcdir.
@@ -144,12 +144,13 @@ rm -f conftest*])
# See if libc was built with --enable-libio.
AC_CACHE_CHECK([for libio],
hurd_cv_libio,
- AC_TRY_COMPILE([#include <stdio.h>
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
#ifndef _STDIO_USES_IOSTREAM
# error No libio found.
-#endif],,
- hurd_cv_libio=yes,
- hurd_cv_libio=no))
+#endif]],
+ [[]])],
+ [hurd_cv_libio=yes],
+ [hurd_cv_libio=no]))
# Check if libc contains these functions.
AC_CHECK_FUNCS(file_exec_paths exec_exec_paths _hurd_exec_paths)