sim: rx: fix warnings with AC_DEFINE
authorMike Frysinger <vapier@gentoo.org>
Fri, 23 Mar 2012 04:00:59 +0000 (04:00 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 23 Mar 2012 04:00:59 +0000 (04:00 +0000)
This lets `autoheader` work again.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/rx/ChangeLog
sim/rx/configure.ac

index 659fc6bd6275cb2ec1498fcfd8db04396102e145..4aaa5aa97abca5be4be84c445623e8e5a3a1db77 100644 (file)
@@ -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.
index aebad940878d223adfd55444785fbe697c339d5c..185706375c5c03711a2c081dcbbc0e423de7aac6 100644 (file)
@@ -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