Add RAZOR_HAVE_ATOMIC_ROLLBACK
authorJ. Ali Harlow <ali@juiblex.co.uk>
Fri, 3 Oct 2014 11:26:22 +0000 (12:26 +0100)
committerJ. Ali Harlow <ali@juiblex.co.uk>
Fri, 3 Oct 2014 11:26:22 +0000 (12:26 +0100)
.gitignore
configure.ac
librazor/razor.h.in [moved from librazor/razor.h with 99% similarity]

index e86430d..587ff2d 100644 (file)
@@ -34,3 +34,4 @@ ChangeLog
 /link-warning.h
 /arg-nonnull.h
 /warn-on-use.h
+librazor/razor.h
index d817801..259d5f0 100644 (file)
@@ -66,6 +66,10 @@ AC_ARG_ENABLE([atomic],
              [enable_atomic=yes])
 if test "$enable_atomic" = "yes"; then
     AC_DEFINE([ENABLE_ATOMIC],[1],[Define if atomic transactions are wanted.])
+    AC_SUBST([RAZOR_HAVE_ATOMIC_ROLLBACK],
+      ['#define RAZOR_HAVE_ATOMIC_ROLLBACK 1'])
+else
+    AC_SUBST([RAZOR_HAVE_ATOMIC_ROLLBACK],['#undef RAZOR_HAVE_ATOMIC_ROLLBACK'])
 fi
 
 AC_MSG_CHECKING([for Microsoft Windows native API])
@@ -303,6 +307,7 @@ Makefile
 data/razor.pc
 data/Makefile
 librazor/Makefile
+librazor/razor.h
 librazor/types/Makefile
 src/Makefile
 docs/Makefile
similarity index 99%
rename from librazor/razor.h
rename to librazor/razor.h.in
index 5170187..93a58c5 100644 (file)
@@ -171,6 +171,9 @@ void razor_error_free(struct razor_error *error);
  * Atomic transactions can be disabled via configure, in which case all
  * bets are off.
  **/
+
+@RAZOR_HAVE_ATOMIC_ROLLBACK@
+
 struct razor_atomic;
 
 struct razor_atomic *razor_atomic_open(const char *description);