After following all the commands in building.md I still get on Alpine Linux 3.18.5 aarch64:
checking for fontconfig/fontconfig.h... no
configure: error: Could not find fontconfig! You might be able to fix this by running 'sudo apk add fontconfig-dev'.
configure exiting with result code 1
checking for fontconfig/fontconfig.h... no
configure: error: Could not find fontconfig! You might be able to fix this by running 'sudo apk add fontconfig-dev'.
configure exiting with result code 1