summaryrefslogtreecommitdiff
path: root/sim/rx
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-23 04:00:23 +0000
committerMike Frysinger <vapier@gentoo.org>2012-03-23 04:00:23 +0000
commitabef1f2b99a19695e75d2b8caca0409d68377a68 (patch)
tree90d5e7dd3df634080fde4fe98ec8849ec22ebc3f /sim/rx
parent68a5e2c18948f7654ff9e1ba942e6384223eafd1 (diff)
downloadgdb-abef1f2b99a19695e75d2b8caca0409d68377a68.tar.gz
sim: rx: fix warnings with AC_DEFINE
This lets `autoheader` work again. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/rx')
-rw-r--r--sim/rx/ChangeLog5
-rw-r--r--sim/rx/configure.ac6
2 files changed, 8 insertions, 3 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 659fc6bd627..4aaa5aa97ab 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-22 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac (CYCLE_ACCURATE): Add template with AC_DEFINE call.
+ (CYCLE_STATS): Likewise.
+
2012-03-02 Kevin Buettner <kevinb@redhat.com>
* load.h (rx_load): Add `callback' parameter to function prototype.
diff --git a/sim/rx/configure.ac b/sim/rx/configure.ac
index aebad940878..185706375c5 100644
--- a/sim/rx/configure.ac
+++ b/sim/rx/configure.ac
@@ -44,14 +44,14 @@ echo enable_cycle_accurate is $enable_cycle_accurate
echo enable_cycle_stats is $enable_cycle_stats
if test "x${enable_cycle_accurate}" != xno; then
-AC_DEFINE([CYCLE_ACCURATE])
+ AC_DEFINE([CYCLE_ACCURATE], 1, [--enable-cycle-accurate])
if test "x${enable_cycle_stats}" != xno; then
- AC_DEFINE([CYCLE_STATS])
+ AC_DEFINE([CYCLE_STATS], 1, [--enable-cycle-stats])
fi
else
if test "x${enable_cycle_stats}" != xno; then
- AC_ERROR([cycle-stats not available without cycle-accurate])
+ AC_ERROR([cycle-stats not available without cycle-accurate])
fi
fi