Turkey, once a dependable ally of the West, is on the verge of becoming an authoritarian dictatorship.