diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1997-04-02 23:17:50 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1997-04-02 23:17:50 +0000 |
commit | fbda74b1c1b2c09f17378dea65d0112f9f9141f7 (patch) | |
tree | ee6057d2c3dc28de2be74892c19e2d868e62e8fc /sim/common/aclocal.m4 | |
parent | b04500b2c4393b233b8cb59aac802bac7f276b07 (diff) | |
download | gdb-fbda74b1c1b2c09f17378dea65d0112f9f9141f7.zip gdb-fbda74b1c1b2c09f17378dea65d0112f9f9141f7.tar.gz gdb-fbda74b1c1b2c09f17378dea65d0112f9f9141f7.tar.bz2 |
* aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
(sim-debug): Allow arguments. Define WITH_DEBUG in addition to
-DDEBUG.
* configure: Regenerated to track ../common/aclocal.m4 changes.
Diffstat (limited to 'sim/common/aclocal.m4')
-rw-r--r-- | sim/common/aclocal.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4 index 998c561..2e4e5a9 100644 --- a/sim/common/aclocal.m4 +++ b/sim/common/aclocal.m4 @@ -44,6 +44,9 @@ AR=${AR-ar} AC_SUBST(AR) AC_PROG_RANLIB +# Check for common headers. +AC_CHECK_HEADERS(stdlib.h string.h strings.h unistd.h) + . ${srcdir}/../../bfd/configure.host dnl Standard (and optional) simulator options. @@ -87,9 +90,9 @@ dnl the allowable values are work-in-progress AC_ARG_ENABLE(sim-debug, [ --enable-sim-debug=opts Enable debugging flags], [case "${enableval}" in - yes) sim_debug="-DDEBUG=7";; - no) sim_debug="-DDEBUG=0";; - *) sim_debug="-DDEBUG='(${enableval})'";; + yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; + no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; + *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; esac if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then echo "Setting sim debug = $sim_debug" 6>&1 |