Turkey has asked parliament to ratify a defence agreement signed with Saudi Arabia and Pakistan in Mecca in August, treating an armed attack on one country as an attack on all three.