[GRASS-dev] Configuring --with-readline doesn't use -lncurses or
-ltermcap
Gregor Mosheh
gregor at hostgis.com
Thu Dec 21 14:48:37 EST 2006
Hi, all. I encountered a problem configuring --with-readline A workaround
exists in the mailing list archives, but since the problem still exists
almost 2 years after the workaround was posted, sholl asked me to post it
to the devel list to bring it to your attention.
Problem:
When --with-readline is supplied, configure reports that readline was not
found.
Analysis:
Examining the config.log, the compile of conftest.c includes the
-lreadline flag, but does not include either -lncurses or -ltermcap which
is required for GNU readline. The result is linking errors to the effect
of "undefined reference to `tgetnum'" et al.
Workaround:
Set LDFLAGS in the environment to force -lncurses
http://grass.itc.it/pipermail/grassuser/2005-February/027824.html
Ideal:
Have configure detect whether to use -lncurses or else -ltermcap, and have
it use that flag, so configure will properly link with readline and thus
detect it.
--
HostGIS
Cartographic development and hosting services
707-822-9355
http://www.HostGIS.com/
More information about the grass-dev
mailing list