#if defined(HAVE_STRCASECMP) && defined(HAVE_STRINGS_H)
#include <strings.h>
#endif
+#define ENABLE_CURLX_PRINTF
+/* use our own printf() functions */
+#include "curlx.h"
#include "tool_panykey.h"
#include "tool_help.h"
#include "tool_libinfo.h"
+#include "tool_metalink.h"
#include "tool_version.h"
#include "memdebug.h" /* keep this as LAST include */
#endif
}
+#ifdef USE_METALINK
+static const char *metalnk_version(void)
+{
+ static char version[25];
+ int major = 0;
+ int minor = 0;
+ int patch = 0;
+ metalink_get_version(&major, &minor, &patch);
+ msnprintf(version, sizeof(version), " libmetalink/%u.%u.%u",
+ major, minor, patch);
+ return version;
+}
+#else
+#define metalnk_version() ""
+#endif
+
void tool_version_info(void)
{
const char *const *proto;
- printf(CURL_ID "%s\n", curl_version());
+ printf(CURL_ID "%s%s\n", curl_version(), metalnk_version());
#ifdef CURL_PATCHSTAMP
printf("Release-Date: %s, security patched: %s\n",
LIBCURL_TIMESTAMP, CURL_PATCHSTAMP);