1 /* This file is part of bsconf - a configure replacement.
3 * This is the configuration file used by bsconf.c to specify information
4 * specific to your project that it needs to substitute into files listed
5 * in g_Files. Being a configuration file, this file can be used or
6 * modified entirely without restriction. You should change all values
7 * appropriately to the name of your project and its requirements. The
8 * LGPL does not apply to this file. It can and should be treated as a
9 * template for the creation of your own configuration file.
11 * All substituted variable names are given without enclosing @@. For
12 * example: "CC" will match "@CC@" in config.h.in and replace it with
16 #define BSCONF_VERSION 0x03
18 #define PACKAGE_NAME "iff"
23 #define PACKAGE_VERSION LIB_MAJOR "." LIB_MINOR
24 #define PACKAGE_TARNAME PACKAGE_NAME
25 #define PACKAGE_STRING PACKAGE_NAME " " PACKAGE_VERSION
26 #define PACKAGE_BUGREPORT "Mike Sharov <msharov@users.sourceforge.net>"
28 static cpchar_t g_Files
[] = {
33 /* Values substitute @VARNAME@ */
34 static cpchar_t g_EnvVars
[] = {
42 /* VARIABLE PROGRAM HOW TO CALL IF NOT FOUND */
43 static cpchar_t g_ProgVars
[] = {
44 "CC", "gcc", "gcc", "@CXX@",
45 "CXX", "g++", "g++", "@CXX@",
46 "CXX", "c++", "c++", "g++",
47 "LD", "ld", "ld", "ld",
48 "AR", "ar", "ar", "echo",
49 "RANLIB", "ranlib", "ranlib", "touch",
50 "DOXYGEN", "doxygen", "doxygen", "echo",
51 "INSTALL", "install", "install -c", "cp"
54 /* NAME IF NOT FOUND IF FOUND */
55 static cpchar_t g_Headers
[] = {
56 "ustl.h", "#undef HAVE_USTL_H", "#define HAVE_USTL_H 1"
59 /* NAME IF NOT FOUND IF FOUND */
60 static cpchar_t g_Libs
[] = {
61 "supc++", "", "-lsupc++",
65 /* NAME IF NOT FOUND IF FOUND */
66 static cpchar_t g_Functions
[] = {
69 /* NAME WITHOUT TEXT WITH TEXT */
70 static cpchar_t g_Components
[] = {
71 "shared", "#BUILD_SHARED\t= 1", "BUILD_SHARED\t= 1 ",
72 "static", "#BUILD_STATIC\t= 1", "BUILD_STATIC\t= 1 ",
73 "debug", "#DEBUG\t\t= 1", "DEBUG\t\t= 1 ",
74 "bigendian", "USTL_LITTLE_ENDIAN", "USTL_BIG_ENDIAN",
75 "2grain", "#define IFF_GRAIN 4", "#define IFF_GRAIN 2",
76 "align", "#define IFF_GRAIN 1", "#define IFF_GRAIN 4"
79 /* Parallel to g_Components */
80 static SComponentInfo g_ComponentInfos
[VectorSize(g_Components
) / 3] = {
81 { 0, "Builds the shared library (if supported by the OS)" },
82 { 1, "Builds the static library" },
83 { 0, "Compiles the library with debugging information" },
84 { 0, "Store header fields in big-endian format, as in EA85" },
85 { 0, "Align on 2-grain instead of 4-grain, as in EA85" },
86 { 1, "Turn off chunk alignment" }
89 /* Substitutes names like @PACKAGE_NAME@ with the second field */
90 static cpchar_t g_CustomVars
[] = {
93 "-fno-threadsafe-statics -fno-enforce-eh-specs",
97 "PACKAGE_NAME", PACKAGE_NAME
,
98 "PACKAGE_VERSION", PACKAGE_VERSION
,
99 "PACKAGE_TARNAME", PACKAGE_TARNAME
,
100 "PACKAGE_STRING", PACKAGE_STRING
,
101 "PACKAGE_BUGREPORT", PACKAGE_BUGREPORT
,
102 "LIBNAME", PACKAGE_NAME
,
103 "LIB_MAJOR", LIB_MAJOR
,
104 "LIB_MINOR", LIB_MINOR
,
105 "LIB_BUILD", LIB_BUILD