Fix autotools configuration

The check for the PHP ldap module should only be done if `--with-ldap-authentication` is given.

Also don't carry `configure` arround in the repo.