--- configure.ac.orig 2010-07-15 12:54:01.000000000 +0200 +++ configure.ac 2010-07-15 14:01:40.000000000 +0200 @@ -275,9 +275,16 @@ # This only works with bash, but should fail harmlessly in sh apache_module_dirs=`echo $apache_prefix/lib{64,}/{apache,apache2,http,http2,httpd}{$mpm,}{/modules,}`]) for dir in $apache_module_dirs; do - if test -f $dir/mod_auth_digest.so; then - APACHE_MODULE_DIR="$dir" - fi + if test -f $dir/mod_auth_digest.so; then + APACHE_MODULE_DIR="$dir" + fi + if test -n APACHE_MODULE_DIR; then + APACHE_MODS="mod_alias.so mod_auth_basic.so mod_auth_digest.so mod_authn_file.so mod_authz_host.so + mod_authz_user.so mod_dir.so mod_mime.so mod_proxy.so mod_proxy_http.so mod_proxy_connect.so" + for mods in ${APACHE_MODS}; do + test -f ${APACHE_MODULE_DIR}/${mods} || unset APACHE_MODULE_DIR + done + fi if test -f $dir/mod_ssl.so; then APACHE_SSL_MODULE_DIR="$dir" IF_HAVE_APACHE_SSL=""