postgres/config
Tom Lane e3335ec0b6 Absorb -D_USE_32BIT_TIME_T switch from Perl, if relevant.
Commit 3c163a7fc's original choice to ignore all #define symbols whose
names begin with underscore turns out to be too simplistic.  On Windows,
some Perl installations are built with -D_USE_32BIT_TIME_T, and we must
absorb that or we get the wrong result for sizeof(PerlInterpreter).

This effectively re-reverts commit ef58b87df, which injected that symbol
in a hacky way, making it apply to all of Postgres not just PL/Perl.
More significantly, it did so on *all* 32-bit Windows builds, even when
the Perl build to be used did not select this option; so that it fails
to work properly with some newer Perl builds.

By making this change, we would be introducing an ABI break in 32-bit
Windows builds; but fortunately we have not used type time_t in any
exported Postgres APIs in a long time.  So it should be OK, both for
PL/Perl itself and for third-party extensions, if an extension library
is built with a different _USE_32BIT_TIME_T setting than the core code.

Patch by me, based on research by Ashutosh Sharma and Robert Haas.
Back-patch to all supported branches, as commit 3c163a7fc was.

Discussion: https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=rcA@mail.gmail.com
2017-08-14 11:48:59 -04:00
..
ac_func_accept_argtypes.m4 Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
acx_pthread.m4 Better support for thread-support flag detection with clang 2011-02-16 23:15:54 +02:00
c-compiler.m4 Fix "quiet inline" configure test for newer clang compilers. 2014-05-02 15:30:35 -04:00
c-library.m4 Cope if platform declares mbstowcs_l(), but not locale_t, in <xlocale.h>. 2016-03-15 13:19:58 -04:00
config.guess Update config.guess and config.sub 2012-05-08 20:46:13 +03:00
config.sub Update config.guess and config.sub 2012-05-08 20:46:13 +03:00
docbook.m4 Fix configure's search for collateindex.pl. 2012-03-22 00:46:03 -04:00
general.m4 Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
install-sh Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
libtool.m4 Rename AC_PROG_LD* macros to PGAC_PROG_LD*. This avoids clashes with the 2004-07-17 18:53:56 +00:00
Makefile Install our "missing" script where PGXS builds can find it. 2015-12-11 16:14:44 -05:00
missing Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
perl.m4 Absorb -D_USE_32BIT_TIME_T switch from Perl, if relevant. 2017-08-14 11:48:59 -04:00
prep_buildtree find -path is not portable, so use grep -v instead. 2010-10-25 10:04:00 -03:00
programs.m4 Silence Bison deprecation warnings 2017-01-02 13:51:10 -08:00
python.m4 Remove configure check prohibiting threaded libpython on OpenBSD. 2015-05-26 22:14:59 -04:00
tcl.m4 Accept tcl 8.6 in configure's probe for tclsh. 2014-05-10 10:48:08 -04:00
test_quiet_include.h Blacklist xlc 32-bit inlining. 2015-07-29 22:53:58 -04:00