[freetds] FreeTDS 0.61 Compile Problem
Steve Murphree
smurph at smcomp.com
Sun Jul 13 16:23:21 EDT 2003
----- Original Message -----
From: "James K. Lowden" <jklowden at schemamania.org>
To: "FreeTDS Development Group" <freetds at lists.ibiblio.org>
Sent: Sunday, July 13, 2003 1:22 PM
Subject: Re: [freetds] FreeTDS 0.61 Compile Problem
> I'll do some more checking. Below is the configure.in test for readline.
> Freddy added it a year ago, and I imagine he found it elsewhere. I'm not
> sure what to change; afaict we're doing as you suggest, unless tputs(3) is
> intrinsically different from tgetent(3).
>
> dnl readline test
> dnl Readline is needed by the tty session. Set up a special RL_LIBS
> dnl substitution for it.
> OLDLIBS="$LIBS"
> dnl Readline is linked with curses, and on some systems termcap must be
> dnl linked in. Others (inc debian) have termcap built into ncurses.
> LIBS=""
> AC_SEARCH_LIBS(tgetent, [readline ncurses curses termcap])
> ^^^^^^^ ^^^^^^^^ Good, no?
> AC_CHECK_LIB([readline], [readline], [LIBS="$LIBS -lreadline"
> AC_DEFINE(HAVE_READLINE, 1, [Define to 1 if you have the GNU Readline
> library.])] )
> READLINE_LIBS="$LIBS"
> AC_SUBST(READLINE_LIBS)
> LIBS="$OLDLIBS"
Hmm... Yet his configure run only included -lncurses and -lreadline for
READLINE_LIBS. Perhaps the order of the check should be:
AC_SEARCH_LIBS(tgetent, [termcap readline ncurses curses])
You may find that curses is not even needed.
Steve
More information about the FreeTDS
mailing list