Index: configure.ac =================================================================== --- configure.ac (revision 1405031) +++ configure.ac (working copy) @@ -1393,6 +1393,10 @@ AC_DEFINE_UNQUOTED([SVN_BUILD_HOST], "${host}", [Defined to the config.guess name of the build system]) +dnl Provide ${target} for use in compiled code (for user-agent string) +AC_DEFINE_UNQUOTED([SVN_BUILD_TARGET], "${target}", + [Defined to the config.guess name of the build target]) + AC_OUTPUT # ==== Print final messages to user ========================================== Index: subversion/libsvn_ra_serf/ra_serf.h =================================================================== --- subversion/libsvn_ra_serf/ra_serf.h (revision 1405031) +++ subversion/libsvn_ra_serf/ra_serf.h (working copy) @@ -56,8 +56,9 @@ /** Use this to silence compiler warnings about unused parameters. */ #define UNUSED_CTX(x) ((void)(x)) -/** Our User-Agent string. */ -#define USER_AGENT "SVN/" SVN_VER_NUMBER " serf/" \ + /** Our User-Agent string. */ +#define USER_AGENT "SVN/" SVN_VER_NUMBER " (" SVN_BUILD_TARGET ")" \ + " serf/" \ APR_STRINGIFY(SERF_MAJOR_VERSION) "." \ APR_STRINGIFY(SERF_MINOR_VERSION) "." \ APR_STRINGIFY(SERF_PATCH_VERSION) Index: subversion/libsvn_ra_svn/ra_svn.h =================================================================== --- subversion/libsvn_ra_svn/ra_svn.h (revision 1405031) +++ subversion/libsvn_ra_svn/ra_svn.h (working copy) @@ -57,7 +57,8 @@ void *baton); /* The default "user agent". */ -#define SVN_RA_SVN__DEFAULT_USERAGENT "SVN/" SVN_VER_NUMBER +#define SVN_RA_SVN__DEFAULT_USERAGENT "SVN/" SVN_VER_NUMBER\ + " (" SVN_BUILD_TARGET ")" /* The size of our per-connection read and write buffers. */ #define SVN_RA_SVN__PAGE_SIZE 4096 Index: subversion/svn_private_config.hw =================================================================== --- subversion/svn_private_config.hw (revision 1405034) +++ subversion/svn_private_config.hw (working copy) @@ -33,6 +33,12 @@ /* Define to a Windows-specific equivalent of config.guess output */ #define SVN_BUILD_HOST "x86-microsoft-windows" +#ifdef _WIN64 +#define SVN_BUILD_TARGET "x86-microsoft-windows" +#else +#define SVN_BUILD_TARGET "x64-microsoft-windows" +#endif + /* The minimal version of Berkeley DB we want */ #define SVN_FS_WANT_DB_MAJOR 4 #define SVN_FS_WANT_DB_MINOR 0