configure: Generate the list of top-level directories to install.