Germany will set up temporary controls at all of its land borders, expanding checks it already has in place at some borders, in an attempt to curb irregular migration.