Municipalities and counties may contract with each other for the ownership or use and occupation of parts of city halls, city jails, county courthouses, and county jails or other public buildings held and owned by such municipalities or counties located within such municipalities, and any such contract shall be binding upon both the municipality and county until revoked by the joint agreement and action of both parties to such contract. Any and all easements acquired under this section shall be in every respect binding between the parties.
Ala. Code § 11-80-3 (1975)