--- parser3/src/include/pa_version.h 2005/12/09 07:18:07 1.25 +++ parser3/src/include/pa_version.h 2026/10/07 19:37:27 1.66 @@ -1,2 +1,41 @@ -// specified manually [would be overwritten on unix] -#define PARSER_VERSION "3.2.1b (compiled on i386-pc-win32)" +/* specified manually on Windows [automaticaly set on Unix] */ +#ifndef PARSER_VERSION +#ifdef _WIN64 +#define PARSER_VERSION "3.5.2b (compiled on amd64-pc-win64)" +#else +#define PARSER_VERSION "3.5.2b (compiled on i386-pc-win32)" +#endif +#endif + +// what the build includes, shown after the version +#ifdef PA_SAFE_MODE +# define PA_FEATURE_SAFE_MODE " safe-mode" +#else +# define PA_FEATURE_SAFE_MODE "" +#endif +#ifdef XML +# define PA_FEATURE_XML " xml" +#else +# define PA_FEATURE_XML "" +#endif +#ifdef WITH_AMQP +# ifdef WITHOUT_AMQP_SSL +# define PA_FEATURE_AMQP " amqp" +# else +# define PA_FEATURE_AMQP " amqp+ssl" +# endif +#else +# define PA_FEATURE_AMQP "" +#endif +#ifdef WITH_REDIS +# define PA_FEATURE_REDIS " redis" +#else +# define PA_FEATURE_REDIS "" +#endif +#ifdef WITH_MAILRECEIVE +# define PA_FEATURE_MAILRECEIVE " mail" +#else +# define PA_FEATURE_MAILRECEIVE "" +#endif + +#define PARSER_VERSION_WITH_FEATURES PARSER_VERSION PA_FEATURE_SAFE_MODE PA_FEATURE_XML PA_FEATURE_AMQP PA_FEATURE_REDIS PA_FEATURE_MAILRECEIVE