diff --git a/src/lib/version.c b/src/lib/version.c index f8df9430..d53b2aab 100644 --- a/src/lib/version.c +++ b/src/lib/version.c @@ -45,12 +45,17 @@ char *versionString(void) { #endif char *zstdlib = ""; -#ifdef HAVE_ZSTDLIB +#ifdef HAVE_ZSTD zstdlib = " ZSTD"; #endif + char *bzlib = ""; +#ifdef HAVE_ZSTD + bzlib = " BZIP2"; +#endif + char *option = (strlen(nsel) + strlen(zstdlib)) > 0 ? "Options:" : ""; - snprintf(version_string, 128, "Version: %s-%s %s%s%s Date: %s", VERSION, VCS_TRACK_HASH, option, nsel, zstdlib, VCS_TRACK_DATE); + snprintf(version_string, 128, "Version: %s-%s %s%s%s%s Date: %s", VERSION, VCS_TRACK_HASH, option, nsel, zstdlib, bzlib, VCS_TRACK_DATE); version_string[127] = '\0'; return version_string; diff --git a/src/lib/version.h b/src/lib/version.h index b572b5ae..215310fa 100644 --- a/src/lib/version.h +++ b/src/lib/version.h @@ -31,6 +31,8 @@ #ifndef __VERSION_H #define __VERSION_H 1 +#include "config.h" + char *versionString(void); #endif \ No newline at end of file