Fixed if...else logic and added cygwin to the list of compilers that need to be statically linked.

[SVN r36984]
This commit is contained in:
John Maddock
2007-02-17 12:22:49 +00:00
parent 32feb34671
commit a1de8967fa

View File

@ -106,6 +106,14 @@ rule check-icu-config ( )
gICU_IN_LIB = icui18n ;
}
}
}
gICU_CONFIG_CHECKED = true ;
}
if $(gHAS_ICU)
{
return true ;
}
else
{
ECHO Building Boost.Regex with the optional Unicode/ICU support disabled. ;
@ -116,13 +124,6 @@ rule check-icu-config ( )
ECHO Couldn't find utypes.h in $(ICU_PATH:J=" ")/include/unicode ;
}
}
gICU_CONFIG_CHECKED = true ;
}
}
if $(gHAS_ICU)
{
return true ;
}
}
if [ check-icu-config ]
@ -133,7 +134,6 @@ if [ check-icu-config ]
{
if $(ICU_PATH) != "/usr" && $(ICU_PATH) != "/usr/local"
{
ECHO "BAH!" ;
BOOST_REGEX_ICU_OPTS += "<include>$(ICU_PATH)/include" ;
ICU_SEARCH_OPTS = <search>/$(ICU_PATH)/lib ;
}
@ -178,6 +178,7 @@ lib boost_regex : ../src/$(SOURCES) $(ICU_EXTRA_SOURCE)
<link>shared:<define>BOOST_REGEX_DYN_LINK=1
<toolset>gcc-mw:<link>static
<toolset>gcc-mingw:<link>static
<toolset>gcc-cygwin:<link>static
$(BOOST_REGEX_ICU_OPTS)
;
@ -185,3 +186,5 @@ lib boost_regex : ../src/$(SOURCES) $(ICU_EXTRA_SOURCE)