pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix AC_REQUIRES breakage in LLVM autoconf tests. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix AC_REQUIRES breakage in LLVM autoconf tests. @ 2018-11-18 04:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-11-18 04:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix AC_REQUIRES breakage in LLVM autoconf tests. Any Autoconf macro that uses AC_REQUIRES -- directly or indirectly -- must not be inside a plain shell "if" test; if it is, whatever code gets pulled in by the AC_REQUIRES will also be inside that "if". Instead of "if" we can use AS_IF, which knows how to get this right (cf commit 01051a987). The only immediate problem from getting this wrong was that AC_PROG_AWK had to be run twice, once inside the "if llvm" block and once in the main line. However, it broke a different patch I'm about to submit more thoroughly. Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b81ef6386ea890423f1f15a67ff3bc679f9f63d6 Modified Files -------------- configure | 46 ++-------------------------------------------- configure.in | 6 ++---- 2 files changed, 4 insertions(+), 48 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix AC_REQUIRES breakage in LLVM autoconf tests. @ 2018-11-18 04:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-11-18 04:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix AC_REQUIRES breakage in LLVM autoconf tests. Any Autoconf macro that uses AC_REQUIRES -- directly or indirectly -- must not be inside a plain shell "if" test; if it is, whatever code gets pulled in by the AC_REQUIRES will also be inside that "if". Instead of "if" we can use AS_IF, which knows how to get this right (cf commit 01051a987). The only immediate problem from getting this wrong was that AC_PROG_AWK had to be run twice, once inside the "if llvm" block and once in the main line. However, it broke a different patch I'm about to submit more thoroughly. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0b59b0e8bcc9e85bad6fffa7828344db1a36f20a Modified Files -------------- configure | 46 ++-------------------------------------------- configure.in | 6 ++---- 2 files changed, 4 insertions(+), 48 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-11-18 04:16 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-11-18 04:16 pgsql: Fix AC_REQUIRES breakage in LLVM autoconf tests. Tom Lane <tgl@sss.pgh.pa.us> 2018-11-18 04:16 pgsql: Fix AC_REQUIRES breakage in LLVM autoconf tests. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox