I don't get autotools, but this looks wrong to me:

AC_CONFIG_SRCDIR([src/main.cpp])
src/main.cpp is not a directory.