1// Copyright 2020, 2021 Francesco Biscani (bluescarni@gmail.com), Dario Izzo (dario.izzo@gmail.com)
2//
3// This file is part of the heyoka library.
4//
5// This Source Code Form is subject to the terms of the Mozilla
6// Public License v. 2.0. If a copy of the MPL was not distributed
7// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9#ifndef HEYOKA_CONFIG_HPP
10#define HEYOKA_CONFIG_HPP
11
12// clang-format off
13#define HEYOKA_VERSION_STRING "@heyoka_VERSION@"
14#define HEYOKA_VERSION_MAJOR @heyoka_VERSION_MAJOR@
15#define HEYOKA_VERSION_MINOR @heyoka_VERSION_MINOR@
16#define HEYOKA_VERSION_PATCH @heyoka_VERSION_PATCH@
17// clang-format on
18
19#cmakedefine HEYOKA_WITH_MPPP
20#cmakedefine HEYOKA_WITH_SLEEF
21#cmakedefine HEYOKA_BUILD_STATIC_LIBRARY
22
23#if defined(HEYOKA_WITH_MPPP)
24
25#include <mp++/config.hpp>
26
27#if defined(MPPP_WITH_QUADMATH)
28
29#define HEYOKA_HAVE_REAL128
30
31#endif
32
33#endif
34
35#if defined(__i386) || defined(_M_IX86) || defined(_X86_) || defined(__amd64__) || defined(_M_AMD64)
36
37#define HEYOKA_ARCH_X86
38
39#elif defined(_ARCH_PPC) || defined(_M_PPC)
40
41#define HEYOKA_ARCH_PPC
42
43#endif
44
45#endif
46