Exemplo n.º 1
0
def generate(env):
	if not env['HELP'] and (env['_CONFIGURE_'] or not env.has_key('CACHED_OPENSSL')):
		from SCons.Tool import Tool
		import os
		pkgs = Tool('pkgconfig', ['./bksys'])
		pkgs.generate(env)

		# TODO this will not work on opensuse 10 (ita) openssl-devel not installed
		have_openssl = env.pkgConfig_findPackage('OPENSSL', 'openssl', '0.9.6')

		dest=open(env.join(env['_BUILDDIR_'], 'ksslconfig.h'), 'w')
		dest.write('/* openssl configuration created by bksys */\n')
		if have_openssl: dest.write('#define KSSL_HAVE_SSL 1\n');
		dest.close()
Exemplo n.º 2
0
def generate(env):
	if not env['HELP'] and (env['_CONFIGURE_'] or not env.has_key('CACHED_LIBIDN')):
		from SCons.Tool import Tool
		import os
		pkgs = Tool('pkgconfig', ['./bksys'])
		pkgs.generate(env)

		have_idn  = env.pkgConfig_findPackage('LIBIDN', 'libidn', '0.5.0')

    		dest=open(env.join(env['_BUILDDIR_'], 'config-libidn.h'), 'w')
    		dest.write('/* libidn configuration created by bksys */\n')
		if have_idn:
			dest.write('#define HAVE_IDNA_H 1\n');
			dest.write('#define HAVE_PUNYCODE_H 1\n');
			dest.write('#define HAVE_STRINGPREP_H 1\n');
		dest.close()
		env['_CONFIG_H_'].append('libidn')