added pkgconfig support to the autotools build scripts

This adds support for the autotools script to generate pkgconfig file for libccd, in a similar way cmake does.