Fix Windows client build
Commit introduced GP_MAJORVERSION dependency in catalog.h.
Add GP_MAJORVERSION to windows configure script.
@@ -136,6 +136,7 @@ sub GenerateFiles
if (/^AC_INIT\(\[Greenplum Database\], \[([^\]]+)\]/)
{
$self->{gpdbver} = $1;
+ $self->{gpdbmajorver} = substr $1, 0, 1;
}
if (/\[PG_PACKAGE_VERSION=([^\]]+)\]/)
{
@@ -176,6 +177,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
print O;
}
print O "#define GP_VERSION \"$self->{gpdbver}\"\n";
+ print O "#define GP_MAJORVERSION \"$self->{gpdbmajorver}\"\n";
print O "#define PG_MAJORVERSION \"$self->{majorver}\"\n";
print O "#define LOCALEDIR \"/share/locale\"\n"
if ($self->{options}->{nls});
