William A. Rowe, Jr. wrote:
> Guenter Knauf wrote:
>> Hi,
>> since one httpd version can link to a couple of different apr/apr-util
>> versions I find it useful to have these versions listed with mod_info,
>> and if nobody objects then I would like to apply a patch similar to the
>> one below (which is 2.2.x) to trunk, and then propose for backport into
>> 2.2.x:
>
> +1, and if you look at main.c, you can find the snippet of publishing
> both the current runtime and compiled-against library versions. I suggest
> both for the obvious reasons.
Saving you a lookup, here is that code;
printf("Server loaded: APR %s, APR-UTIL %s\n",
apr_version_string(), apu_version_string());
printf("Compiled using: APR %s, APR-UTIL %s\n",
APR_VERSION_STRING, APU_VERSION_STRING);