FILE PHOTO: Czech Republic's Prime Minister Andrej Babis arrives at the European Union leaders summit in Brussels, Belgium October 18, 2018. REUTERS/Piroschka van de Wouw/File Photo

PRAGUE (Reuters) - Prime Minister Andrej Babis said on Thursday he wanted to pull the Czech Republic out of a United Nations migration agreement and would discuss this with his governing coalition partner.

Babis expressed his dislike of the pact a day after Austria said it would follow the United States and Hungary in backing out of the U.N. pact over concerns that it would blur the line between legal and illegal migration.

A minister in Poland’s arch-conservative government has also recommended his country quit the agreement.

The Global Compact for Safe, Orderly and Regular Migration was approved in July by all 193 U.N. member nations except U.S. President Donald Trump’s administration, which backed out last year. The pact is due to be signed next month in Morocco.

Babis told lawmakers during a Q&A session in parliament that he disliked the agreement and said nobody but the Czech Republic would decide on migration into the country. He said he shared fears that the difference between legal and illegal migration was becoming blurred.

“I do not like the pact,” he said, according to a parliamentary transcript of the debate, when asked whether his government would sign the deal.

“There are issues that can be interpreted in various ways. I will be proposing to my partners in government that we act in the same way as Austria or Hungary.”

The Czechs have stood with central European neighbors such as Hungary and Poland in maintaining a hardline anti-immigrant stance during the course of the European Union’s struggle to stem migration to the bloc by migrants fleeing conflict and deprivation, particularly in the Middle East and Africa.

Central European states refused to endorse a Brussels-prescribed quota system to share asylum seekers among all EU member states, a plan dropped earlier this year.