move ccgi to automake; add proto for p3_asearch_results