forked from etmc/tmLQCD
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmlqcd_config.h
31 lines (26 loc) · 1.28 KB
/
tmlqcd_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef TMLQCD_CONFIG_H
#define TMLQCD_CONFIG_H
/* This file exists to deal with the issue that we include packages
* which do some rather dubious things with autoconf-generated variables.
* In particular, this is for compatibility with c-lime, which
* #undef's PACKAGE PACKAGE_BUGREPORT PACKAGE_NAME PACKAGE_STRING PACKAGE_TARNAME PACKAGE_VERSION VERSION
* Depending on the include order, either our definitions in tmlqcd_config.h survive,
* or they do not...
*/
// to make sure that we don't potentially mix definitions from different packages, we first undef
// these PACKAGE* defines
#undef PACKAGE
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
// now we include the autoconf-generated header which hopefully correctly sets all the relevant macros
#include "tmlqcd_config_internal.h"
static const char* const TMLQCD_PACKAGE_BUGREPORT = PACKAGE_BUGREPORT;
static const char* const TMLQCD_PACKAGE_NAME = PACKAGE_NAME;
static const char* const TMLQCD_PACKAGE_STRING = PACKAGE_STRING;
static const char* const TMLQCD_PACKAGE_TARNAME = PACKAGE_TARNAME;
static const char* const TMLQCD_PACKAGE_VERSION = PACKAGE_VERSION;
// unlike lime, we don't undef anything _after_ having included the autoconf-generated macros
#endif