]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix configure's AC_CHECK_DECLS tests to work correctly with clang.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Sep 2022 19:42:00 +0000 (15:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Sep 2022 19:42:00 +0000 (15:42 -0400)
commitb8464d2f5da0d1abe0925c5712d0c4810986e629
tree7d1b6fbf24787c8391b13ea4d22898f0ee941d1c
parent850cb88e4b6003361963593ccd9fb0456dbe148f
Fix configure's AC_CHECK_DECLS tests to work correctly with clang.

Back-port commit 16fbac39f into 9.3 and 9.2, so that these
out-of-support branches can be built with clang without wading
through a pile of warnings about strlcpy and related functions.
check_decls.m4 required some adaptation to work with autoconf 2.63,
but nothing too major.

Discussion: https://postgr.es/m/26819.1542515567@sss.pgh.pa.us
Discussion: https://postgr.es/m/1081321.1663775084@sss.pgh.pa.us
aclocal.m4
config/check_decls.m4 [new file with mode: 0644]
configure
configure.in