I am trying to compile php from source on mac with the bzip2 extension and I keep getting an error saying
checking for BZip2 in default path... not found
I've tried setting the LDFLAGS and CPPFLAGS but that doesn't seem to work.
The dylib is in /usr/local/opt/bzip2/lib and the header files are in usr/local/opt/bzip2/include.