Islam, as a whole, is about where Christianity, as a whole, was on the topic of homosexuality until several decades ago. If you go several decades back, even in most parts of advanced Christian nations, homosexuality was criminalized, and in the more backwards parts of Christendom, it was punished severely, by death. Now that's been relegated only to a few extremely conservative Christian areas, like Uganda.
I actually have an uncle who recently died, who was a survivor of those earlier attitudes towards homosexuality in the US. He died in his 80s, after having lived his entire adult life married to a woman, and yet he was gay. He had a "special friend" who everyone in the family quietly acknowledged was actually his boyfriend. When he was still young, you were taking your life in your hands if you came out of the closet. It was an era when even Liberace kept up the facade of being heterosexual, with supposed trysts with various starlets. So, a gay man who wanted any kind of family life, or even just the protection from suspicion, would get married to a woman.
My hope is that Islam can proceed down the path towards enlightenment more quickly than Christianity did, since they have the example of Christianity to learn from -- that they can cover in twenty years the span it took Christianity fifty years to cross. Hopefully, in twenty years it'll be possible to live safely and without too much prejudice as an openly gay person in most wealthy majority-Muslim nations, as it is today in most wealthy majority-Christian nations.
However, I think Islam is facing one uphill challenge that Christianity didn't. In Christianity, there was a huge critical mass of generally prosperous majority-Christian countries helping to set the cultural tone for Christendom: the US, Canada, Australia, and Western Europe. I think that helped to pull Christianity along the road to greater secularism, pluralism, and tolerance, even in the poorer areas like Latin America. But with Islam, the VAST majority of Muslims still live in relative poverty, in countries like Indonesia, Pakistan, India, Bangladesh, Egypt, Nigeria, and Iran. I think that acts like an anchor, holding Islam, culturally, in the past, since poor nations are nearly always culturally conservative nations. It would be hard for tiny nations like Qatar, Kuwait, and Brunei to lead Islam into the 21st century, rather than being held back by that far greater cultural weight of poor, conservative Muslims around the world.