Whenever any county having five hundred voters or more shall have been organized for four years or more and the county seat of such county has been permanently located as provided by law and the building or buildings occupied by such county for courthouse, office, or jail purposes are inadequate to the wants thereof or unsafe by reason of risk by fire or otherwise or whenever it is deemed necessary and for the best interests of said county to erect a suitable building or buildings for the care of the poor, such county may issue its bonds for the purpose of purchasing a site for a courthouse, office, or a jail building or for purchasing a site or grounds for a building or buildings suitable for the care of the county poor or for the erection of a courthouse, office, or jail, building or buildings suitable for the care of the poor under the restrictions and according to the provisions of this chapter.
SDCL 7-24-1