[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] branch branch_release-1-8 updated: [build slog] Use AC_L
From: |
Thien-Thi Nguyen |
Subject: |
[Guile-commits] branch branch_release-1-8 updated: [build slog] Use AC_LINK_IFELSE, AC_LANG_PROGRAM |
Date: |
Mon, 08 Mar 2021 04:03:06 -0500 |
This is an automated email from the git hooks/post-receive script.
ttn pushed a commit to branch branch_release-1-8
in repository guile.
The following commit(s) were added to refs/heads/branch_release-1-8 by this
push:
new 7ac327c [build slog] Use AC_LINK_IFELSE, AC_LANG_PROGRAM
7ac327c is described below
commit 7ac327c9759e15f699e2752f506bdb8af4bad800
Author: Thien-Thi Nguyen <ttn@gnu.org>
AuthorDate: Mon Mar 8 04:00:58 2021 -0500
[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’.
---
guile-readline/configure.ac | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/guile-readline/configure.ac b/guile-readline/configure.ac
index c17bee6..65a99fe 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.])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-commits] branch branch_release-1-8 updated: [build slog] Use AC_LINK_IFELSE, AC_LANG_PROGRAM,
Thien-Thi Nguyen <=