1 dnl Process this file with autoconf to produce a configure script.
4 sinclude(../common/acinclude.m4)
8 AC_CHECK_HEADERS(stdlib.h)
10 # In the Cygwin environment, we need some additional flags.
11 AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
15 #endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
17 if test x$sim_cv_os_cygwin = xyes; then
18 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
20 # Keep in sync with gdb's configure.ac list.
21 AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
22 [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
26 # We prefer the in-tree readline. Top-level dependencies make sure
27 # src/readline (if it's there) is configured before src/sim.
28 if test -r ../../readline/Makefile; then
29 READLINE=../../readline/libreadline.a
31 AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
32 AC_ERROR([the required "readline" library is missing]), $TERMCAP)