WASHINGTON (AP) President Barack Obama has signed into law a measure intended to help deter veterans from committing suicide.

He says America cannot be satisfied until all veterans get the help they need for their struggles.

Obama says too many are struggling with post-traumatic stress.

The legislation is named the Marine veteran Clay Hunt, who killed himself in 2011 in Texas after serving in Iraq and Afghanistan.

Obama says the best way to honor Hunt is to help other veterans avoid that fate.

The bill creates a pilot program to help veterans transition from active duty. It sets up a website to provide veterans with information about available mental health services.

The bill also requires the Department of Veterans Affairs' suicide prevention programs to be evaluated annually by a third party.