@@ -220,6 +220,10 @@ s{PG_VERSION_STR "[^"]+"}{PG_VERSION_STR "PostgreSQL $self->{strver}$extraver, c
220
220
{
221
221
print $o " #define ENABLE_GSS 1\n " ;
222
222
}
223
+ if ($self -> {options }-> {icu })
224
+ {
225
+ print $o " #define USE_ICU 1\n " ;
226
+ }
223
227
if (my $port = $self -> {options }-> {" --with-pgport" })
224
228
{
225
229
print $o " #undef DEF_PGPORT\n " ;
@@ -555,6 +559,13 @@ sub AddProject
555
559
$proj -> AddIncludeDir($self -> {options }-> {iconv } . ' \include' );
556
560
$proj -> AddLibrary($self -> {options }-> {iconv } . ' \lib\iconv.lib' );
557
561
}
562
+ if ($self -> {options }-> {icu })
563
+ {
564
+ $proj -> AddIncludeDir($self -> {options }-> {icu } . ' \include' );
565
+ $proj -> AddLibrary($self -> {options }-> {icu } . ' \lib\icuin.lib' );
566
+ $proj -> AddLibrary($self -> {options }-> {icu } . ' \lib\icuuc.lib' );
567
+ $proj -> AddLibrary($self -> {options }-> {icu } . ' \lib\icudt.lib' );
568
+ }
558
569
if ($self -> {options }-> {xml })
559
570
{
560
571
$proj -> AddIncludeDir($self -> {options }-> {xml } . ' \include' );
@@ -677,6 +688,7 @@ sub GetFakeConfigure
677
688
$cfg .= ' --with-libxml' if ($self -> {options }-> {xml });
678
689
$cfg .= ' --with-libxslt' if ($self -> {options }-> {xslt });
679
690
$cfg .= ' --with-gssapi' if ($self -> {options }-> {gss });
691
+ $cfg .= ' --with-icu' if ($self -> {options }-> {icu });
680
692
$cfg .= ' --with-tcl' if ($self -> {options }-> {tcl });
681
693
$cfg .= ' --with-perl' if ($self -> {options }-> {perl });
682
694
$cfg .= ' --with-python' if ($self -> {options }-> {python });
0 commit comments