Added autoconf support for the sample project.