[GRASS5] [bug #2526] (grass) compiling with readline

Request Tracker grass-bugs at intevation.de
Thu Jul 8 11:43:51 EDT 2004


this bug's URL: http://intevation.de/rt/webrt?serial_num=2526
-------------------------------------------------------------------------

Subject: compiling with readline


Hallo!

I had a little problem when compiling GRASS with readline on fedora 2: Linking
readline fails when ncurses is not linked as well. I adapted the configure
script accordingly such as the configure and make process are ending correctly. 

The patch above shows the necessary changes.

Many greetings,

Silke

---------------------------------
--- configure.orig      2004-06-17 15:26:22.000000000 +0200
+++ configure   2004-07-01 17:02:03.119838488 +0200
@@ -8085,7 +8085,7 @@
 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
 
 ac_save_LIBS="$LIBS"
-LIBS="-lreadline  $LIBS"
+LIBS="-lreadline -lncurses  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 8091 "configure"
 #include "confdefs.h"
@@ -8112,7 +8112,7 @@
 
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-  READLINELIB="$READLINELIB -lreadline "
+  READLINELIB="$READLINELIB -lreadline -lncurses "
 else
   echo "$ac_t""no" 1>&6
 


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list