In case anyone else wants to try it. I haven't figured out how to modify the autoconf scripts to work. The solution right now is:
./configure
mkdir build
cd build
cmake ..
make
The configure step is just needed for the config.h file. I'd like to get rid of the need to do that in the future.