Move darwin sysroot determination into separate file

Andres Freund <andres@anarazel.de>

Commit: 05519126a02ee39bf0957d3d85a1da5bd7e1c09c
Author: Andres Freund <andres@anarazel.de>
Date: 2022-09-01T23:54:19Z
Releases: 16.0
Move darwin sysroot determination into separate file

The sysroot determination is fairly complex and will soon also be needed when
building with meson. Instead of duplicating the logic, move it to a dedicated
shell script invoked both by configure and meson.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/2180a97c-c026-1b6c-cec8-d6e499f97017@enterprisedb.com

Files

PathChange+/−
src/template/darwin modified +6 −35
src/tools/darwin_sysroot added +41 −0

Discussion