1 #ifndef LINK_FEATURES_H
2 #define LINK_FEATURES_H
3 
4 #if defined(_MSC_VER) && !defined(LINK_GRAMMAR_DLL_EXPORT)
5 #define LINK_GRAMMAR_DLL_EXPORT 1
6 #endif
7 
8 #ifdef  __cplusplus
9 # define LINK_BEGIN_DECLS  extern "C" {
10 # define LINK_END_DECLS    }
11 #else
12 # define LINK_BEGIN_DECLS
13 # define LINK_END_DECLS
14 #endif
15 
16 #ifndef link_public_api
17 # if defined(_MSC_VER) && !defined(LINK_GRAMMAR_STATIC)
18 #  if !defined LINK_GRAMMAR_DLL_EXPORT
19 #   error !defined LINK_GRAMMAR_DLL_EXPORT
20 #  endif
21 #  if LINK_GRAMMAR_DLL_EXPORT
22 #   define link_public_api(x) __declspec(dllexport) x
23 #  else
24 #   define link_public_api(x) __declspec(dllimport) x
25 #  endif
26 # else
27 #  define link_public_api(x) x
28 # endif
29 #endif
30 
31 #define LINK_MAJOR_VERSION 5
32 #define LINK_MINOR_VERSION 8
33 #define LINK_MICRO_VERSION 0
34 
35 #define LINK_VERSION_STRING "5.8.0"
36 
37 /* __VA_ARGS__ must be used because arguments may contain commas. */
38 #define lg_xstr(...) lg_str(__VA_ARGS__)
39 #define lg_str(...) #__VA_ARGS__
40 
41 #define LG_HOST_OS lg_str(linux-gnu)
42 #define LG_CPPFLAGS "CPPFLAGS=" lg_str()
43 #define LG_CFLAGS "CFLAGS=" lg_str(-D_DEFAULT_SOURCE -std=c11 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -D_ISOC11_SOURCE -g -O2 -O3)
44 #define LG_DEFS lg_str(-DPACKAGE_NAME="link-grammar" -DPACKAGE_TARNAME="link-grammar" -DPACKAGE_VERSION="5.8.0" -DPACKAGE_STRING="link-grammar 5.8.0" -DPACKAGE_BUGREPORT="https://github.com/opencog/link-grammar" -DPACKAGE_URL="https://www.abisource.com/projects/link-grammar" -DPACKAGE="link-grammar" -DVERSION="5.8.0" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_STRNDUP=1 -DHAVE_STRTOK_R=1 -DHAVE_ALIGNED_ALLOC=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_PRCTL=1 -D__STDC_FORMAT_MACROS=1 -D__STDC_LIMIT_MACROS=1 -DTLS=_Thread_local -DHAVE_LOCALE_T_IN_LOCALE_H=1 -DHAVE_STDATOMIC_H=1 -DHAVE_MKLIT=1 -DUSE_SAT_SOLVER=1 -DUSE_WORDGRAPH_DISPLAY=1 -DHAVE_SQLITE=1 -DHAVE_LIBASPELL=1 -DHAVE_ASPELL=1 -DHAVE_EDITLINE=1 -DHAVE_WIDECHAR_EDITLINE=1 -DHAVE_REGEX_H=1 -DHAVE_REGEXEC=1 -DHAVE_MAYBE_UNINITIALIZED=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1)
45 
46 #define DISCUSSION_GROUP "https://groups.google.com/d/forum/link-grammar"
47 #define OVERVIEW "https://en.wikipedia.org/wiki/Link_grammar"
48 /* Must appear here to support Windows. */
49 #undef PACKAGE_BUGREPORT
50 #define PACKAGE_BUGREPORT "https://github.com/opencog/link-grammar"
51 #undef PACKAGE_URL
52 #define PACKAGE_URL "https://www.abisource.com/projects/link-grammar"
53 
54 #endif
55