Commit 5848569c authored by Claes Sjofors's avatar Claes Sjofors

Remote, check if rabbitmq is installed added

parent 9e32be4a
ifndef link_rule_mk
link_rule_mk := 1
ifeq ($(PWRE_CONF_RABBITMQ),1)
link = $(ldxx) $(elinkflags) $(domap) -o $(export_exe) \
$(export_obj) $(objects) $(rt_msg_eobjs) \
$(pwre_conf_libdir) $(pwre_conf_libpwrremote) $(pwre_conf_libpwrrt) \
-lrabbitmq $(pwre_conf_lib)
else
log_link_exe = echo "$(exe_flv_name): RabbitMq not installed"
link = :
endif
endif
......@@ -38,6 +38,8 @@
/*_Include files_________________________________________________________*/
#if defined PWRE_CONF_RABBITMQ
#include <amqp.h>
#include <amqp_framing.h>
#include <amqp_tcp_socket.h>
......@@ -584,3 +586,12 @@ int main(int argc, char *argv[])
}
}
#else
#include <stdio.h>
int main()
{
printf( "Remote RabbitMq not built for this release\n");
return 0;
}
#endif
......@@ -482,6 +482,7 @@ else
pwre_config_check_lib libsqlite3 LIBSQLITE3 lib lib 0 "/usr/lib/libsqlite3.so:/usr/lib/$hwpl-linux-$gnu/libsqlite3.so"
pwre_config_check_include hdf5 HDF5 1 "/usr/lib/openmpi/include/mpi.h.no"
pwre_config_check_lib libhdf5 LIBHDF5 lib lib 0 "/usr/lib/libhdf5.so:/usr/lib/$hwpl-linux-$gnu/libhdf5_openmpi.so"
pwre_config_check_lib rabbitmq RABBITMQ lib rabbitmq 1 "/usr/lib/$hwpl-linux-$gnu/librabbitmq.so"
pwre_config_check_lib mq MQ lib mq 1 "/usr/lib/libdmq.so:/usr/local/dmq/lib/libdmq.so"
pwre_config_check_lib wmq WMQ lib wmq 1 "/usr/lib/libmqic.so"
pwre_config_check_lib libprofinet PNAK lib pnak 1 "/usr/lib/libprofinet.a"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment