Hi!
In my system, CGDB failed to build, because the build system didn't
detect the history part of GNU readline library correctly. It was due
to its dependency on functions from the curses library. To correct this
the curses library has to be added to LIBS prior to attempt to detect
the GNU history library. The patch below fixes this.
Another issue (this patch doesn't correct it) is that ./configure
completes successfully even after unsuccessful detection of GNU history
library, which CGDB is dependent on.
In case of replying, please CC the reply to me, as I don't read this
mailing list.
best regards,
Lubo
--- configure.in.orig 2006-05-17 09:56:37.000000000 +0200
+++ configure.in
@@ -121,6 +121,13 @@ if test "$use_ncurses_library" = "no"; t
curses_lib_name="curses"
fi
+dnl Made it this far, add the termcap
+LIBS="$TERMCAP_LIB $LIBS"
+dnl Add the ncurses/curses lib, if it's not the same as the termcap lib
+if test "$TERMCAP_LIB" != "-l$curses_lib_name"; then
+ LIBS="-l$curses_lib_name $LIBS"
+fi
+
dnl Make sure there is a version of readline that CGDB supports.
dnl Simply putting 5.1* -> 5.9* just to take into accout future versions.
RL_LIB_READLINE_VERSION
@@ -136,12 +143,8 @@ esac
dnl This will DEFINE the readline headers.
RL_LIB_READLINE_INCLUDES
-dnl Made it this far, add the readline and termcap LIBS
-LIBS="-lreadline $TERMCAP_LIB $LIBS"
-dnl Add the ncurses/curses lib, if it's not the same as the termcap lib
-if test "$TERMCAP_LIB" != "-l$curses_lib_name"; then
- LIBS="-l$curses_lib_name $LIBS"
-fi
+dnl Made it this far, add the readline
+LIBS="-lreadline $LIBS"
dnl Checks for header files.
AC_HEADER_STDC
--
o Lubomir Kundrak
*O* <lku...@sk...>, http://skosi.org/~lkundrak/
(_) SKOSI -- Slovak OpenSource Initiative
|