mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
* readline.scm: Only link glue code when the 'readline feature is
not already present. Thanks to Clark McGrew.
This commit is contained in:
parent
49ac1ba82d
commit
acb0207f44
1 changed files with 4 additions and 2 deletions
|
@ -25,9 +25,11 @@
|
|||
:use-module (ice-9 session)
|
||||
:use-module (ice-9 regex))
|
||||
|
||||
;;; Dynamically link the glue code for accessing the readline library
|
||||
;;; Dynamically link the glue code for accessing the readline library,
|
||||
;;; but only when it isn't already present.
|
||||
|
||||
(dynamic-call "scm_init_readline" (dynamic-link "libguilereadline.so"))
|
||||
(if (not (feature? 'readline))
|
||||
(dynamic-call "scm_init_readline" (dynamic-link "libguilereadline.so")))
|
||||
|
||||
;;; MDJ 980513 <djurfeldt@nada.kth.se>:
|
||||
;;; There should probably be low-level support instead of this code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue