the dutch (united provinces) had a alliance with the ottomans, and also with morocco
http://www.themuslimtimes.org/2012/...rope/the-dutch-ottoman-alliance-against-spain
Morocco never claimed the Khilafah, and an alliance is fine except in the case where the alliance is against another Muslim nation. Hence the Peshawar 7 (Mujahadeen of Afghanistan) in the Soviet-Afghan war where they took aid from the secular nation of Pakistan and the U.S.