The board of supervisors shall, by order, direct the district attorney of the county to institute eminent domain proceedings, in the name of the county, whenever it is necessary to acquire real property or any interest therein to do any of the following things for the protection of a county highway: