The board is hereby authorized to employ an attorney at law of said county as county attorney. It shall be his duty to represent the county in litigation and to be legal advisor to said board. He shall be compensated for his services in an amount and in the manner agreed upon between him and the board.