regressions/ck_queue: Add coverage for previous regression.
build: Various improvements to configure script.

Add explicit detection of clang, prefer SUNCC detection over
GCC and also add support for out of source builds.
build: Support all *=* forms.