--- parser3/configure.ac 2025/01/25 15:39:30 1.68 +++ parser3/configure.ac 2026/10/06 23:38:05 1.77 @@ -1,6 +1,6 @@ dnl Autoconf initialization AC_PREREQ(2.59) -AC_INIT(parser, 3.5.1) +AC_INIT(parser, 3.5.2b) AC_CONFIG_SRCDIR(README) AC_CONFIG_MACRO_DIRS(src/lib/ltdl/m4) @@ -344,6 +344,83 @@ AC_SUBST(MIME_INCLUDES) AC_SUBST(MIME_LIBS) +dnl RabbitMQ library argument +AC_ARG_WITH(amqp,[ --with-amqp=DIR DIR is the directory where + RabbitMQ C library (librabbitmq) is installed],[ + AMQP=$withval + + if test -z "$AMQP" -o "$AMQP" = "yes"; then + AMQP_INCLUDES="" + AMQP_LIBS="-lrabbitmq" + AC_MSG_WARN([--with-amqp value was not specified, hoping linker would find it]) + else + AMQP_INCLUDES="-I$AMQP/include" + if test -f $AMQP/lib/librabbitmq.la; then + AMQP_LIBS="$AMQP/lib/librabbitmq.la" + else + AMQP_LIBS="-L$AMQP/lib -lrabbitmq" + fi + fi + + AC_MSG_CHECKING(for librabbitmq) + SAVE_LIBS=$LIBS + LIBS="$LIBS $AMQP_LIBS $AMQP_INCLUDES" + PA_TRY_LINK([ #include ],[ amqp_connection_state_t c = 0; ], + AC_MSG_RESULT(yes) + , + AC_MSG_RESULT(no) + if test -z "$AMQP"; then + AC_MSG_ERROR(please specify path to librabbitmq: --with-amqp=DIR) + else + AC_MSG_ERROR($AMQP does not seem to be valid librabbitmq installation directory) + fi + ) + LIBS=$SAVE_LIBS + AC_DEFINE(WITH_AMQP,,has amqp) +]) + +AC_SUBST(AMQP_INCLUDES) +AC_SUBST(AMQP_LIBS) + + +dnl Redis library argument +AC_ARG_WITH(redis,[ --with-redis=DIR DIR is the directory where + Redis C library (hiredis) is installed],[ + REDIS=$withval + + if test -z "$REDIS" -o "$REDIS" = "yes"; then + REDIS_INCLUDES="" + REDIS_LIBS="-lhiredis" + AC_MSG_WARN([--with-redis value was not specified, hoping linker would find it]) + else + REDIS_INCLUDES="-I$REDIS/include" + if test -f $REDIS/lib/libhiredis.la; then + REDIS_LIBS="$REDIS/lib/libhiredis.la" + else + REDIS_LIBS="-L$REDIS/lib -lhiredis" + fi + fi + + AC_MSG_CHECKING(for hiredis) + SAVE_LIBS=$LIBS + LIBS="$LIBS $REDIS_LIBS $REDIS_INCLUDES" + PA_TRY_LINK([ #include ],[ redisContext *c = redisConnect("", 0); ], + AC_MSG_RESULT(yes) + , + AC_MSG_RESULT(no) + if test -z "$REDIS"; then + AC_MSG_ERROR(please specify path to hiredis: --with-redis=DIR) + else + AC_MSG_ERROR($REDIS does not seem to be valid hiredis installation directory) + fi + ) + LIBS=$SAVE_LIBS + AC_DEFINE(WITH_REDIS,,has redis) +]) + +AC_SUBST(REDIS_INCLUDES) +AC_SUBST(REDIS_LIBS) + dnl Sendmail argument AC_ARG_WITH(sendmail,[ \"--with-sendmail=COMMAND\" forces this command to send mail. example: \"--with-sendmail=/usr/sbin/sendmail -t\" @@ -402,6 +479,7 @@ AC_TYPE_UINT8_T AC_TYPE_UINT16_T AC_TYPE_UINT32_T AC_TYPE_UINT64_T +AC_TYPE_INT64_T AC_STRUCT_DIRENT_D_TYPE