sim: testsuite: regenerate configure
[deliverable/binutils-gdb.git] / sim / erc32 / configure.ac
CommitLineData
c906108c 1dnl Process this file with autoconf to produce a configure script.
b7026657 2AC_PREREQ(2.59)dnl
c906108c 3AC_INIT(Makefile.in)
35695fd6 4AC_CONFIG_HEADER(config.h:config.in)
c906108c 5
f0569246 6sinclude(../common/aclocal.m4)
c906108c 7
35695fd6
AC
8# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
9# it by inlining the macro's contents.
10sinclude(../common/common.m4)
11
c906108c
SS
12AC_CHECK_HEADERS(stdlib.h)
13
7a292a7a
SS
14# In the Cygwin environment, we need some additional flags.
15AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
16[AC_EGREP_CPP(lose, [
17#ifdef __CYGWIN__
18lose
19#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
20
21if 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'
23else
24 AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
25fi
c906108c
SS
26AC_SUBST(TERMCAP)
27
70a9be63
HPN
28# We prefer the in-tree readline. Top-level dependencies make sure
29# src/readline (if it's there) is configured before src/sim.
30if test -r ../../readline/Makefile; then
31 READLINE=../../readline/libreadline.a
32else
33 AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
34 AC_ERROR([the required "readline" library is missing]), $TERMCAP)
35fi
36AC_SUBST(READLINE)
c906108c 37SIM_AC_OUTPUT
This page took 0.755951 seconds and 4 git commands to generate.