Check for curl in configure.ac.
Document the autoreconf logic.