It shall be the duty of the county board in counties containing fewer than 500,000 inhabitants to appropriate a sufficient sum for the purpose of paying for the legal services necessarily rendered for the defense of indigent persons in felony cases, which is to be paid upon the orders of a court of competent jurisdiction. It shall likewise be the duty of the county board in counties containing fewer than 500,000 inhabitants to appropriate a sufficient sum for the payment of out of pocket expenses necessarily incurred by appointed counsel in the prosecution of an appeal on behalf of an indigent incarcerated defendant in felony cases. In such cases payment shall be made upon the order of the reviewing court.
55 ILCS 5/3-4011