configure.ac: Disable symbol versioning in a static-only build

When using a static-only build, without a shared library, disable symbol
versioning. This fixes the case of embedding a static copy of the
library in other software.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>