When you run ./configure you can enable modules with --enable-module and enable-sahre for example:
./configure --enable-module=rewrite --enable-shared=rewrite
for a complete list of modules that come with apache check the configure help
./configure --help
Additionally if you are trying to compile apache on a modern linux system this blog post gives a few pointers that are helpful. http://www.cambus.net/compiling-apache-1.3.x-on-modern-linux-distributions/