AC_PREREQ(2.59)
AC_CONFIG_SRCDIR(src/integer/gcd/cl_I_gcd.cc)
AC_CONFIG_AUX_DIR([autoconf])
-AC_CONFIG_HEADERS(include/cln/config.h include/cln/host_cpu.h include/cln/version.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/timing/cl_t_config.h)
+AC_CONFIG_HEADERS(autoconf/cl_config.h include/cln/config.h include/cln/host_cpu.h include/cln/version.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/timing/cl_t_config.h)
AM_INIT_AUTOMAKE([foreign 1.8 dist-bzip2])
AH_TOP([#ifdef _CL_CONFIG_H])
AH_TOP([#include "cln/host_cpu.h"])
+AH_TOP([/* prevents cln/config.h from being included, so no macro gets redefined */])
+AH_TOP([#define _CL_CONFIG_PUBLIC_H])
+AH_TOP([/* prevents cln/version.h from being included, so no macro gets redefined */])
+AH_TOP([#define _CL_VERSION_H])
AH_BOTTOM([#endif /* _CL_CONFIG_H */])
dnl checks for programs
--- /dev/null
+#ifdef _CL_CONFIG_PUBLIC_H
+
+#include "cln/host_cpu.h"
+#include "cln/version.h"
+
+/*
+ * FIXME: this should not be exposed to user. Or at least it should be
+ * renamed to CL_HAVE_LONGLONG or something like that.
+ */
+/* compiler supports the `long long' type */
+#undef HAVE_LONGLONG
+
+#endif /* _CL_CONFIG_PUBLIC_H */
+
-// Version information (cf. cln.m4)
+/* CLN version information */
#ifndef _CL_VERSION_H
#define _CL_VERSION_H
-/* These definitions are adjusted by `configure' automatically. */
+/* CLN release number */
+#undef CL_VERSION
+/* Major version number of CLN */
+#undef CL_VERSION_MAJOR
-#define CL_VERSION_MAJOR 1
-#define CL_VERSION_MINOR 1
-#define CL_VERSION_PATCHLEVEL 0
-#define CL_VERSION 1.1.0
+/* Minor version number of CLN */
+#undef CL_VERSION_MINOR
+
+/* Patchlevel version number of CLN */
+#undef CL_VERSION_PATCHLEVEL
namespace cln {
#ifndef _CL_MAYBE_INLINE_H
#define _CL_MAYBE_INLINE_H
-#include "cln/config.h"
+#include "cl_config.h"
/*
* Selectively inline a function in *some* translation units.
#define _CL_SYSDEP_H
// CPU and other
-#include "cln/config.h"
+#include "cl_config.h"
// char_bitsize, short_bitsize, long_bitsize, long_long_bitsize
#include "cln/intparam.h"
// Includes the CPU specific cl_asm_*.h file.
-#include "cln/config.h"
+#include "cl_config.h"
#include "base/digitseq/cl_DS_endian.h"
#ifndef NO_ASM
// Includes the CPU specific cl_asm_*.cc file.
-#include "cln/config.h"
+#include "cl_config.h"
#include "base/digitseq/cl_DS_endian.h"
#ifndef NO_ASM
// Includes the CPU specific cl_asm_*.cc file.
-#include "cln/config.h"
+#include "cl_config.h"
#if defined(__sparc__) || defined(__sparc64__)
#include "cl_asm_sparc_GF2.cc"