I see in config.log:
./configure: line 114: config_cflags[@]: unbound variable
and I think this is about new-enough gmake. make is gmake but it's
really old.
I am unclear on how configure finds make vs gmake and chooses.
I am able to build on macOS 15.
Yes, I know macOS 13 is out of support...
sh-3.2$ type -a make
make is /usr/bin/make
sh-3.2$ type -a gmake
gmake is /opt/pkg/bin/gmake
sh-3.2$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
sh-3.2$ gmake --version
GNU Make 4.4.1
Built for x86_64-apple-darwin22
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.