- ('getcwd', 'HAVE_GETCWD', None),
- ('setenv', 'HAVE_SETENV', None),
- ('putenv', 'HAVE_PUTENV', None),
- ('fcntl', 'HAVE_FCNTL', None),
- ],
- types = [
- ('std::istreambuf_iterator<std::istream>', 'HAVE_DECL_ISTREAMBUF_ITERATOR',
- '#include <streambuf>\n#include <istream>')
- ],
- libs = [
- ('gdi32', 'HAVE_LIBGDI32'),
- (('iconv', 'libiconv'), 'HAVE_ICONV', 'ICONV_LIB'),
- (('Aiksaurus', 'libAiksaurus'), 'HAVE_LIBAIKSAURUS', 'AIKSAURUS_LIB'),
- ],
- custom_tests = [
- (conf.CheckType('pid_t', includes='#include <sys/types.h>'),
- 'HAVE_PID_T',
- 'Define is sys/types.h does not have pid_t',
- '',
- '#define pid_t int',
- ),
- (conf.CheckCXXGlobalCstd(),
- 'CXX_GLOBAL_CSTD',
- 'Define if your C++ compiler puts C library functions in the global namespace'
- ),
- (conf.CheckMkdirOneArg(),
- 'MKDIR_TAKES_ONE_ARG',
- 'Define if mkdir takes only one argument.'
- ),
- (conf.CheckLC_MESSAGES(),
- 'HAVE_LC_MESSAGES',
- 'Define if your <locale.h> file defines LC_MESSAGES.'
- ),
- (devel_version, 'DEVEL_VERSION', 'Whether or not a development version'),
- (env['nls'],
- 'ENABLE_NLS',
- "Define to 1 if translation of program messages to the user's native anguage is requested.",
- ),
- (env['nls'] and not included_gettext,
- 'HAVE_GETTEXT',
- 'Define to 1 if using system gettext library'
- ),
- (env.has_key('warnings') and env['warnings'],
- 'WITH_WARNINGS',
- 'Define this if you want to see the warning directives put here and there by the developpers to get attention'
- ),
- (env.has_key('concept_checks') and env['concept_checks'],
- '_GLIBCXX_CONCEPT_CHECKS',
- 'libstdc++ concept checking'
- ),
- (env.has_key('stdlib_debug') and env['stdlib_debug'],
- '_GLIBCXX_DEBUG',
- 'libstdc++ debug mode'
- ),
- (env.has_key('stdlib_debug') and env['stdlib_debug'],
- '_GLIBCXX_DEBUG_PEDANTIC',
- 'libstdc++ pedantic debug mode'
- ),
- (os.name != 'nt', 'BOOST_POSIX',
- 'Indicates to boost which API to use (posix or windows).'
- ),
- (spell_engine is not None, spell_engine,
- 'Spell engine to use'
- ),
- ],
- extra_items = [
- ('#define PACKAGE "%s%s"' % (package, program_suffix),
- 'Name of package'),
- ('#define PACKAGE_BUGREPORT "%s"' % package_bugreport,
- 'Define to the address where bug reports for this package should be sent.'),
- ('#define PACKAGE_NAME "%s"' % package_name,
- 'Define to the full name of this package.'),
- ('#define PACKAGE_STRING "%s"' % package_string,
- 'Define to the full name and version of this package.'),
- ('#define PACKAGE_TARNAME "%s"' % package_tarname,
- 'Define to the one symbol short name of this package.'),
- ('#define PACKAGE_VERSION "%s"' % package_version,
- 'Define to the version of this package.'),
- ('#define BOOST_ALL_NO_LIB 1',
- 'disable automatic linking of boost libraries.'),
- ('#define USE_%s_PACKAGING 1' % packaging_method.upper(),
- 'Packaging method'),
- ('#define AIKSAURUS_H_LOCATION ' + aik_location,
- 'Aiksaurus include file'),
- ('#define SELECT_TYPE_ARG1 %s' % select_arg1,
- "Define to the type of arg 1 for `select'."),
- ('#define SELECT_TYPE_ARG234 %s' % select_arg234,
- "Define to the type of arg 2, 3, 4 for `select'."),
- ('#define SELECT_TYPE_ARG5 %s' % select_arg5,
- "Define to the type of arg 5 for `select'."),
- ],
- config_post = '''/************************************************************
+ ('getcwd', 'HAVE_GETCWD', None),
+ ('setenv', 'HAVE_SETENV', None),
+ ('putenv', 'HAVE_PUTENV', None),
+ ('fcntl', 'HAVE_FCNTL', None),
+ ],
+ types = [
+ ('std::istreambuf_iterator<std::istream>', 'HAVE_DECL_ISTREAMBUF_ITERATOR',
+ '#include <streambuf>\n#include <istream>'),
+ ('wchar_t', 'HAVE_WCHAR_T', None),
+ ('mode_t', 'HAVE_MODE_T', "#include <sys/types.h>"),
+ ],
+ libs = [
+ ('gdi32', 'HAVE_LIBGDI32'),
+ (('Aiksaurus', 'libAiksaurus'), 'HAVE_LIBAIKSAURUS', 'AIKSAURUS_LIB'),
+ ],
+ custom_tests = [
+ (conf.CheckType('pid_t', includes='#include <sys/types.h>'),
+ 'HAVE_PID_T',
+ 'Define is sys/types.h does not have pid_t',
+ '',
+ '#define pid_t int',
+ ),
+ (conf.CheckCXXGlobalCstd(),
+ 'CXX_GLOBAL_CSTD',
+ 'Define if your C++ compiler puts C library functions in the global namespace'
+ ),
+ (conf.CheckMkdirOneArg(),
+ 'MKDIR_TAKES_ONE_ARG',
+ 'Define if mkdir takes only one argument.'
+ ),
+ (conf.CheckIconvConst(),
+ 'ICONV_CONST',
+ 'Define as const if the declaration of iconv() needs const.',
+ '#define ICONV_CONST const',
+ '#define ICONV_CONST',
+ ),
+ (conf.CheckLC_MESSAGES(),
+ 'HAVE_LC_MESSAGES',
+ 'Define if your <locale.h> file defines LC_MESSAGES.'
+ ),
+ (devel_version, 'DEVEL_VERSION', 'Whether or not a development version'),
+ (env['nls'],
+ 'ENABLE_NLS',
+ "Define to 1 if translation of program messages to the user's native anguage is requested.",
+ ),
+ (env['nls'] and not included_gettext,
+ 'HAVE_GETTEXT',
+ 'Define to 1 if using system gettext library'
+ ),
+ (env.has_key('warnings') and env['warnings'],
+ 'WITH_WARNINGS',
+ 'Define this if you want to see the warning directives put here and there by the developpers to get attention'
+ ),
+ (env.has_key('concept_checks') and env['concept_checks'],
+ '_GLIBCXX_CONCEPT_CHECKS',
+ 'libstdc++ concept checking'
+ ),
+ (env.has_key('stdlib_debug') and env['stdlib_debug'],
+ '_GLIBCXX_DEBUG',
+ 'libstdc++ debug mode'
+ ),
+ (env.has_key('stdlib_debug') and env['stdlib_debug'],
+ '_GLIBCXX_DEBUG_PEDANTIC',
+ 'libstdc++ pedantic debug mode'
+ ),
+ (os.name != 'nt', 'BOOST_POSIX',
+ 'Indicates to boost < 1.34 which API to use (posix or windows).'
+ ),
+ (os.name != 'nt', 'BOOST_POSIX_API',
+ 'Indicates to boost 1.34 which API to use (posix or windows).'
+ ),
+ (os.name != 'nt', 'BOOST_POSIX_PATH',
+ 'Indicates to boost 1.34 which path style to use (posix or windows).'
+ ),
+ (spell_engine is not None, spell_engine,
+ 'Spell engine to use'
+ ),
+ # we need to know the byte order for unicode conversions
+ (sys.byteorder == 'big', 'WORDS_BIGENDIAN',
+ 'Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX).'
+ ),
+ ],
+ extra_items = [
+ ('#define PACKAGE "%s%s"' % (package, program_suffix),
+ 'Name of package'),
+ ('#define PACKAGE_BUGREPORT "%s"' % package_bugreport,
+ 'Define to the address where bug reports for this package should be sent.'),
+ ('#define PACKAGE_NAME "%s"' % package_name,
+ 'Define to the full name of this package.'),
+ ('#define PACKAGE_STRING "%s"' % package_string,
+ 'Define to the full name and version of this package.'),
+ ('#define PACKAGE_TARNAME "%s"' % package_tarname,
+ 'Define to the one symbol short name of this package.'),
+ ('#define PACKAGE_VERSION "%s"' % package_version,
+ 'Define to the version of this package.'),
+ ('#define BOOST_ALL_NO_LIB 1',
+ 'disable automatic linking of boost libraries.'),
+ ('#define USE_%s_PACKAGING 1' % packaging_method.upper(),
+ 'Packaging method'),
+ ('#define AIKSAURUS_H_LOCATION ' + aik_location,
+ 'Aiksaurus include file'),
+ ('#define SELECT_TYPE_ARG1 %s' % select_arg1,
+ "Define to the type of arg 1 for `select'."),
+ ('#define SELECT_TYPE_ARG234 %s' % select_arg234,
+ "Define to the type of arg 2, 3, 4 for `select'."),
+ ('#define SELECT_TYPE_ARG5 %s' % select_arg5,
+ "Define to the type of arg 5 for `select'."),
+ ('#define SIZEOF_WCHAR_T %d' % sizeof_wchar_t,
+ 'Define to be the size of type wchar_t'),
+ ],
+ config_post = '''/************************************************************