Revert "attempt to fix AS_VAR_COPY problem (missing on older autoconf)"

This reverts commit 6108a180cacbb769a7b7c2f77df499b649854a28.
Revert "modified build system to reduce reliance on pkg-config"

This reverts commit 25beb73c29476527b47ae0f8ebb75fcbabaae114.