No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / sim / erc32 / configure.ac
blobf1aeadac36defd888d2f25c49d97e7c1b0798041
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.59)dnl
3 AC_INIT(Makefile.in)
4 AC_CONFIG_HEADER(config.h:config.in)
6 sinclude(../common/aclocal.m4)
8 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
9 # it by inlining the macro's contents.
10 sinclude(../common/common.m4)
12 AC_CHECK_HEADERS(stdlib.h)
14 # In the Cygwin environment, we need some additional flags.
15 AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
16 [AC_EGREP_CPP(lose, [
17 #ifdef __CYGWIN__
18 lose
19 #endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
21 if test x$sim_cv_os_cygwin = xyes; then
22   TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
23 else
24   AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
26 AC_SUBST(TERMCAP)
28 SIM_AC_OUTPUT