add configure.ac and Makefile.am (#2)

Hi,
I made configure.ac and Makefile.am to build examples which I mentioned at #2.

You can create 'configure' script with the following command.
`autoreconf --install`

When you do cross-compiling, you should specify build, host and target parameters as following.
`./configure --build=x86_64-linux-gnu --host=powerpc-linux-gnu --target=powerpc-linux-gnu`

This command generates Makefile for powerpc architecture on x86.