KABUL, Afghanistan — With Afghan discussions under way about the future involvement of the United States in the country and the prospect of long-term military bases, the Pakistani government has urged Afghanistan to distance itself from the West and tie its future more tightly to that of China and Pakistan, according to Afghans and Americans who are knowledgeable about a meeting between the leaders of Afghanistan and Pakistan.

During a landmark April 16 meeting here in Kabul, for which the most powerful figures in the Pakistani government flew to Afghanistan, Prime Minister Yousaf Raza Gilani of Pakistan suggested that Afghanistan needed to look to China, a power in the ascendance, rather than hewing closely to the United States.

“There was a mention of China in the meeting, China as a country, as an emerging economic power, and that maybe we should reach out to a new global economic power,” said an Afghan official knowledgeable about the meeting. “And there was the suggestion that Afghanistan and Pakistan should strengthen relations.”

“You couldn’t tell exactly what they meant, whether China could possibly be an alternative to the United States, but they were saying it could help both countries,” the official said, referring to Pakistan and Afghanistan. The official asked not to be named because of the delicacy of the subject, which he was not authorized to speak about publicly.