import subprocess
from optparse import OptionParser
-# those are defaults, but can be overidden using command line
+# these are defaults, but can be overridden using command line
SSH = 'ssh'
USER = None
HOST = 'localhost'
'''enable/disable cache of configure results'''
if enable:
# when -C is chosen, we will use a private cache and will
- # not look into system includes. This roughtly matches what
+ # not look into system includes. This roughly matches what
# autoconf does with -C
cache_path = os.path.join(conf.bldnode.abspath(), '.confcache')
mkdir_p(cache_path)
def minimum_library_version(conf, libname, default):
- '''allow override of mininum system library version'''
+ '''allow override of minimum system library version'''
minlist = Options.options.MINIMUM_LIBRARY_VERSION
if not minlist:
if d:
additional_dirs.append(d)
- # we add the additional dirs twice: once for the test data, and again if the compilation test suceeds below
+ # we add the additional dirs twice: once for the test data, and again if the compilation test succeeds below
def add_options_dir(dirs, env):
for x in dirs:
if not x in env.CPPPATH:
bld.SET_BUILD_GROUP('final')
if not bld.env.build_public_headers:
- # in this case no header munging neeeded. Used for tdb, talloc etc
+ # in this case no header munging needed. Used for tdb, talloc etc
public_headers_simple(bld, public_headers, header_path=header_path,
public_headers_install=public_headers_install)
return
env = ConfigSet.ConfigSet()
ret = varstr
- # substitute on user supplied dict if avaiilable
+ # substitute on user supplied dict if available
if vars is not None:
for v in vars.keys():
env[v] = vars[v]
def check(self, *k, **kw):
'''Override the waf defaults to inject --with-directory options'''
- # match the configuration test with speficic options, for example:
+ # match the configuration test with specific options, for example:
# --with-libiconv -> Options.options.iconv_open -> "Checking for library iconv"
self.validate_c(kw)
if d:
additional_dirs.append(d)
- # we add the additional dirs twice: once for the test data, and again if the compilation test suceeds below
+ # we add the additional dirs twice: once for the test data, and again if the compilation test succeeds below
def add_options_dir(dirs, env):
for x in dirs:
if not x in env.CPPPATH:
def check_dependencies(bld, t):
- '''check for depenencies that should be changed'''
+ '''check for dependencies that should be changed'''
if bld.get_tgen_by_name(t.sname + ".objlist"):
return
action="store_true", dest='disable_rpath_private_install', default=False)
gr.add_option('--nonshared-binary',
help=(
-f'''Disable use of shared libaries internal to {Context.g_module.APPNAME} for the listed binaries.
+f'''Disable use of shared libraries internal to {Context.g_module.APPNAME} for the listed binaries.
The resulting binaries are 'statically linked' with regard to components provided by
{Context.g_module.APPNAME}, but remain dynamically linked to (eg) libc.so and libgnutls.so
strict=True,
msg='Checking for __attribute__')
- # Solaris by defauls uses draft versions of some functions unless you set _POSIX_PTHREAD_SEMANTICS
+ # Solaris by default uses draft versions of some functions unless you set
+ # _POSIX_PTHREAD_SEMANTICS
if sys.platform.startswith('sunos'):
conf.DEFINE('_POSIX_PTHREAD_SEMANTICS', 1)