apxs -i -a -c modules/filters/mod_deflate.c

http://httpd.apache.org/docs/current/dso.html