Wenger has come under fire for the Gunners' failure so far this summer to make any significant signings and their lack of silverware in recent years.
"I want to win things with Arsenal and I want to be there in the future, but if the boss leaves then things could change."
"I want to win things with Arsenal and I want to be there in the future, but if the boss leaves then things could change," Wilshere is quoted as saying to Zapsportz.com.
"Arsenal are always in my heart and by signing a deal for the next five years shows my commitment to them and their commitment to me so at the moment everything is good.
"Arsene Wenger has been there for so many years and he's always delivered trophies.
"OK we've had a little dip in the last five or six years, but he's a great manager and people who question his ability are ridiculous.
"He's qualified for the Champions' League for 16 years so I think he's the right man for the job."