By SHERYL GAY STOLBERG -
WASHINGTON — Driving across the flatlands of Illinois with Barack Obama during the Senate race of 2004, Kevin Thompson sometimes found himself tutoring the candidate on gay rights.
Mr. Thompson, then a traveling aide, recalls long conversations about topics like the 1969 Stonewall Rebellion that sparked the gay rights movement, gay adoption — Mr. Obama once volunteered that Mr. Thompson and his partner would make “great parents,” Mr. Thompson recalled — and same-sex marriage, which Mr. Obama has in the past opposed.
Mr. Thompson, an Obama supporter, is skeptical about that. “To this day,” he said, “I don’t think Barack Obama has any issue with two people of the same gender getting married.”
Now President Obama says his views on same-sex marriage are “evolving,” and as he runs for re-election he is seeking support from gay donors who want to know where he stands.
This week, he will headline a $1,250-a-plate “Gala with the Gay Community” in Manhattan, his first such event as president; on June 29, he will host a Gay Pride reception at the White House. He is doing so at time when the New York Legislature is considering whether to make same-sex marriage legal — a vote that the president will no doubt be asked about while in New York.
The White House would not comment on whether Mr. Obama was ready to endorse same-sex marriage. But one Democratic strategist close to the White House, speaking only on the condition of anonymity, said some senior advisers “are looking at the tactics of how this might be done if the president chose to do it.”
And Representative Barney Frank, a Massachusetts Democrat who is gay, said in an interview that a top adviser to Mr. Obama, whom he would not name, asked him this year, “What would be the effect if he came out for same-sex marriage?”
“My own view is that I look at President Obama’s record, he was probably inclined to think that same-sex marriage was legitimate, but as a candidate for president in 2008 that would have been an unwise thing to say,” Mr. Frank said. “And I don’t mean that he’s being hypocritical. I mean that if you live in a democratic society, it is a mix of what you think the voters want and what you think is doable.”
Many gay leaders say because the president has a strong record on issues they care about — prodding Congress to repeal the “don’t ask, don’t tell” policy, which barred openly gay men and lesbians from serving in the military, and withdrawing legal support for the Defense of Marriage Act, which defines marriage as between a man and a woman — he is not under intense pressure to announce a change in his position before the 2012 election.
But with the political climate around gay rights changing drastically — a handful of recent polls show that Americans, by a slim majority, now support same-sex marriage — some strategists see little political cost to a shift in position. And a review of Mr. Obama’s record, dating to when he first ran for public office, suggests that he may have been for same-sex marriage before he was against it.
In 1996, as a candidate for the State Senate in Illinois, Mr. Obama responded to a questionnaire from a gay newspaper. “I favor legalizing same-sex marriages,” Mr. Obama wrote, “and would fight efforts to prohibit such marriages.”
White House officials have said Mr. Obama was really referring to civil unions, which he does support. (On Friday, Mr. Obama’s communications director, Dan Pfieffer, caused a brief kerfuffle by telling a conference of bloggers that Mr. Obama had not filled out the forms himself; the White House later said he was mistaken.)
By the time Mr. Obama ran for the United States Senate in 2004, his position had become more nuanced.
Jackie Kaplan, a Chicago Democrat who was co-chairwoman of a committee of gays and lesbians supporting Mr. Obama, said he raised practical objections and made the case this way: “Why spend a lot of time on an issue that is not going to happen? The Defense of Marriage law is on the books, we’re not going to overturn that, let’s talk about how we can build more equality.”
Tracy Baim, a gay journalist in Chicago who interviewed Mr. Obama in 2004, remembers the candidate asking her to turn off her tape recorder so they could have a candid conversation on same-sex marriage. She said his objections were based on what he saw as realistic considerations: “I know what you want, I know what you can get.”
But when his Senate campaign moved into the general election against Alan Keyes, Mr. Obama told an interviewer for a black-owned radio station that religion was a factor.
Ms. Kaplan said she felt that Mr. Obama was either “pandering to Alan Keyes” or setting himself up to run for higher office; Ms. Baim, who said Mr. Obama had not cited his religious beliefs to her, viewed it as “a political maneuver.”
The black church has historically taken a dim view of same-sex marriage; the church Mr. Obama attended in Chicago, Trinity United Church of Christ, takes no official stance. Yet Trinity’s parent church is progressive; in 2005, its general synod passed a resolution supporting marriage equality for gay couples.
Once in the Senate, Mr. Obama maintained the position that his opposition was based on his religious views. Jimmy Creech, a former Methodist minister who advocates for same-sex marriage, recalls meeting with Mr. Obama’s top Senate aides in 2005. He thought Mr. Obama, the son of an interracial couple whose marriage would have been illegal in some states, would be sympathetic.
But he said the conversation turned frosty when same-sex marriage came up. “We talked about this as an expression of bigotry, using religion to justify discrimination,” Mr. Creech said. “They did not like that; the word ‘bigotry’ was inflammatory to them.”
As a presidential candidate, Mr. Obama’s position hardened. In 2008, he visited the Saddleback Church in Orange County, Calif., where the pastor Rick Warren asked him to define marriage. “I believe that marriage is between a man and a woman,” Mr. Obama said. “For me, as a Christian, it is also a sacred union.”
Three years later, Mr. Obama has said his views are evolving, in part because he has “very close friends who are married gay and lesbian couples.”
But the Democrat who had strategy discussions with the White House on same-sex marriage said Mr. Obama seemed to be considering his place in history and was moved by the argument of Adm. Mike Mullen, the chairman of the Joint Chiefs of Staff, who cast the repeal of “don’t ask, don’t tell” as a moral issue.
“This is clearly a president who is interested in making big historical changes,” the strategist said. “I think this issue has moved into that context for him.”