Note: as of jq v1.7 the project offers pre-built native macOS releases for ARM64 based architechtures.
A quick n' dirty Bash script to install the following:
autoconf.automake.libtooljq- from source.
The aim/need was to create an M1 (ARM64) compile of jq - which isn't wasn't (until September 2023) available via releases and avoid using Homebrew.
Tested successfully under a Apple M1 Pro MacBook running macOS Monterey 12.4.
Will likely require Xcode CLI tools. Can be installed via the following:
$ xcode-select --installEnjoy!
FWIW - greatly simplified
install.sh- and building/installingjq v1.7- no need for all the pesky patching/tweaking to get things to compile anymore. 👍