Prepare for CMAKE support. @VAR becomes @VAR@

Prepares the agocontrol environment for CMAKE support.
Substitutes @VAR for @VAR@ to support configure from within CMAKE.