Iraq studying foreign military pacts ahead of US deal