From 3c30f74931bbe94484da82481eb9d3b788347907 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 27 Oct 2009 08:39:05 -0400 Subject: Look for Boost in custom places for standard build --- acprep | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/acprep b/acprep index ef264254..fd7f5249 100755 --- a/acprep +++ b/acprep @@ -926,7 +926,22 @@ class PrepareBuild(CommandLineApp): ######################################################################### def setup_flavor_default(self): - pass + if exists('/usr/local/lib/libboost_regex-xgcc44-s-1_40.a'): + self.envvars['BOOST_HOME'] = '/usr/local' + self.envvars['BOOST_SUFFIX'] = '-xgcc44-s-1_40' + self.log.debug('Setting BOOST_SUFFIX => %s' % + self.envvars['BOOST_SUFFIX']) + + self.sys_include_dirs.append('/usr/local/include/boost-1_40') + + elif exists('/opt/local/lib/libboost_regex.a'): + self.envvars['BOOST_HOME'] = '/opt/local' + self.envvars['BOOST_SUFFIX'] = '' + + self.log.debug('Setting BOOST_SUFFIX => %s' % + self.envvars['BOOST_SUFFIX']) + + self.sys_include_dirs.append('/opt/local/include/boost') def setup_flavor_debug(self): self.configure_args.append('--enable-debug') -- cgit v1.2.3