FILE PHOTO: Turkish President Tayyip Erdogan addresses members of parliament from his ruling AK Party (AKP) during a meeting at the Turkish parliament in Ankara, Turkey, October 2, 2018. REUTERS/Umit Bektas

ISTANBUL (Reuters) - President Tayyip Erdogan said on Thursday he would consider putting Turkey’s long-stalled bid to join the European Union to a referendum, signaling exasperation with a process he says has been waylaid by prejudice against Muslims.

A direct vote on whether to continue Turkey’s candidacy for EU membership could potentially end Ankara’s negotiations for accession, which formally began in 2005, and increase its distance from the West.

EU countries, particularly Germany, have been critical of Turkey and Erdogan in the aftermath of an attempted coup in 2016. The sweeping security crackdown that followed the failed putsch has seen more than 100,000 people jailed and dozens of media outlets shut down. Erdogan has fumed over what he sees as a lack of support from the West.

“It is 2018 and they (the EU) are still keeping us waiting,” Erdogan said at a forum in Istanbul. “It is for us to go to 81 million people and see what decision the 81 million people give,” he said, referring to Turkey’s electorate.

He said that if the decision to hold a referendum were taken, measures could be taken “immediately”.

“Let’s put it on the table with colleagues and discuss it as party chairman and after that, the moment one has said ‘ok’ we will immediately take our step,” he said.

“There are European countries where they squeeze two or three referendums into one year. Actually, one has to get used to referendums.”

Erdogan, whose roots are in political Islam, has long accused EU member states of harboring anti-Muslim sentiment, saying that the bloc is uneasy at the prospect of having a majority Muslim country as a member.

Dutch Foreign Minister Stef Blok, on a visit to Ankara on Wednesday, said Turkey must address issues around the rule of law and human rights to make progress on EU accession possible.