summaryrefslogtreecommitdiff
path: root/src/modules/extra/pgsql_config.pl
blob: be9fa06ed659cba4a0e51f6e422f15b3cae590ae (plain)
1
2
3
4
5
6
#!/usr/bin/perl

my $v = substr(`pg_config --version`, 11);
my($a, $b, $c) = split(/\./, $v);

print "-D PGSQL_HAS_ESCAPECONN" if(hex(sprintf("%02x", $a) . sprintf("%02x", $b) . sprintf("%02x", $c)) >= 0x080000);