summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnu.org>2021-03-08 04:00:58 -0500
committerThien-Thi Nguyen <ttn@gnu.org>2021-03-08 04:00:58 -0500
commit7ac327c9759e15f699e2752f506bdb8af4bad800 (patch)
tree984ef3f23758307c545ff113d69cacbfe4c18495
parent88155da09832760ade8e127d4fcff7e3f0438ebb (diff)
downloadguile-7ac327c9759e15f699e2752f506bdb8af4bad800.tar.gz
[build slog] Use AC_LINK_IFELSE, AC_LANG_PROGRAM
* guile-readline/configure.ac (ac_cv_var_rl_getc_function): ...here, instead of ‘AC_TRY_LINK’.
-rw-r--r--guile-readline/configure.ac12
1 files changed, 7 insertions, 5 deletions
diff --git a/guile-readline/configure.ac b/guile-readline/configure.ac
index c17bee6f6..65a99fea0 100644
--- a/guile-readline/configure.ac
+++ b/guile-readline/configure.ac
@@ -54,12 +54,14 @@ AC_CHECK_FUNCS(rl_get_keymap)
AC_CACHE_CHECK([for rl_getc_function pointer in readline],
ac_cv_var_rl_getc_function,
- [AC_TRY_LINK([
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
-#include <readline/readline.h>],
- [printf ("%ld", (long) rl_getc_function)],
- [ac_cv_var_rl_getc_function=yes],
- [ac_cv_var_rl_getc_function=no])])
+#include <readline/readline.h>
+]],[[
+printf ("%ld", (long) rl_getc_function)
+]])],
+ [ac_cv_var_rl_getc_function=yes],
+ [ac_cv_var_rl_getc_function=no])])
if test "${ac_cv_var_rl_getc_function}" = "yes"; then
AC_DEFINE(HAVE_RL_GETC_FUNCTION, 1,
[Define if your readline library has the rl_getc_function variable.])