- Invert AC_CHECK_LIB for readline and termcap so that the test program

for readline detection is actually linked against -ltermcap -lreadline.
  Also add other term libs and finally prefer ncurses over the rest.
This commit is contained in:
gbeauche 2002-04-21 11:21:26 +00:00
parent 4b96b51050
commit d1b8e62cc9

View File

@ -39,8 +39,13 @@ if [[ "x$WANT_MON" = "xyes" ]]; then
AC_DEFINE(ENABLE_MON) AC_DEFINE(ENABLE_MON)
MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_lowmem.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c" MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_lowmem.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c"
CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass" CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass"
AC_CHECK_LIB(ncurses, tgetent, ,
AC_CHECK_LIB(termcap, tgetent, ,
AC_CHECK_LIB(termlib, tgetent, ,
AC_CHECK_LIB(terminfo, tgetent, ,
AC_CHECK_LIB(Hcurses, tgetent, ,
AC_CHECK_LIB(curses, tgetent))))))
AC_CHECK_LIB(readline, readline) AC_CHECK_LIB(readline, readline)
AC_CHECK_LIB(termcap, tputs)
AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h) AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h)
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)