mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
* configure.in (HAVE_RL_GETC_FUNCTION): Modified test to actually
use rl_getc_function. Otherwise smart compilers, like gcc, optimize away the reference so that no error occurs in the link phase.
This commit is contained in:
parent
9cd4dfbb06
commit
f30a1c9560
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ AC_CACHE_CHECK([for rl_getc_function pointer in readline],
|
||||||
[AC_TRY_LINK([
|
[AC_TRY_LINK([
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <readline/readline.h>],
|
#include <readline/readline.h>],
|
||||||
[rl_getc_function;],
|
[printf ("%ld", (long) rl_getc_function)],
|
||||||
[ac_cv_var_rl_getc_function=yes],
|
[ac_cv_var_rl_getc_function=yes],
|
||||||
[ac_cv_var_rl_getc_function=no])])
|
[ac_cv_var_rl_getc_function=no])])
|
||||||
if test "${ac_cv_var_rl_getc_function}" = "yes"; then
|
if test "${ac_cv_var_rl_getc_function}" = "yes"; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue