 +  set_define(HAVE_DOPRNT 1)
 +endif()
 +##########
++cmake_push_check_state(RESET)
 +set(CMAKE_EXTRA_INCLUDE_FILES ${AMQ_INCLUDES})
 +check_type_size(char SIZEOF_CHAR)
 +check_type_size(double SIZEOF_DOUBLE)

+#cmakedefine size_t @size_t@
diff --git a/activemq-cpp/configure.cmake b/activemq-cpp/configure.cmake
new file mode 100644
index 0000000..9e5927a
--- /dev/null
+++ b/activemq-cpp/configure.cmake
@@ -0,0 +1,396 @@
+include(CheckCXXCompilerFlag)
+include(CheckCSourceCompiles)
+include(CheckFunctionExists)

+include(CheckLibraryExists)
+include(CheckSymbolExists)
+include(CheckTypeSize)
+include(CMakePushCheckState)
+include(TestBigEndian)
+########################################
+function(set_define var)
