sim: bfin: handle AN (negative overflows) in dsp mult insns
[deliverable/binutils-gdb.git] / sim / erc32 / configure.ac
index 976b595807163cd297598587f9aacb94467ecee0..7637a771b03c0372544378dc54c5831f274d2538 100644 (file)
@@ -1,10 +1,14 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.59)dnl
 AC_INIT(Makefile.in)
+AC_CONFIG_HEADER(config.h:config.in)
 
-sinclude(../common/common.m4)
 sinclude(../common/aclocal.m4)
 
+# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
+# it by inlining the macro's contents.
+sinclude(../common/common.m4)
+
 AC_CHECK_HEADERS(stdlib.h)
 
 # In the Cygwin environment, we need some additional flags.
@@ -21,4 +25,13 @@ else
 fi
 AC_SUBST(TERMCAP)
 
+# We prefer the in-tree readline.  Top-level dependencies make sure
+# src/readline (if it's there) is configured before src/sim.
+if test -r ../../readline/Makefile; then
+  READLINE=../../readline/libreadline.a
+else
+  AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
+              AC_ERROR([the required "readline" library is missing]), $TERMCAP)
+fi
+AC_SUBST(READLINE)
 SIM_AC_OUTPUT
This page took 0.023399 seconds and 4 git commands to generate.