AC_DEFUN([DS_LINUX_DIR],
[
- AC_ARG_WITH([linuxdir],
+ AC_ARG_WITH([linux],
[AC_HELP_STRING([--with-linux=DIR],
[path to Linux patched source directory])],
[LINUX_DIR="${withval}"],
AC_DEFUN([DS_RTAI],
[
- AC_ARG_WITH([rtaidir],
+ AC_ARG_WITH([rtai],
[AC_HELP_STRING([--with-rtai=DIR],
[path to configured RTAI 24.1.X sources, or RTAI 3 installation])],
[RTAI_DIR="${withval}"],
[RTAI_DIR=/usr/src/rtai])
- AC_ARG_WITH([rtnetdir],
+ AC_ARG_WITH([rtnet],
[AC_HELP_STRING([--with-rtnet=DIR],
[path to RTnet installation directory])],
[RTNET_DIR="${withval}"],
AC_DEFUN([DS_RTLINUX],
[
- AC_ARG_WITH([rtlinuxdir],
+ AC_ARG_WITH([rtlinux],
[AC_HELP_STRING([--with-rtlinux=DIR],
[path to RTLinux source directory])],
[RTLINUX_DIR="${withval}"],
[RTLINUX_DIR=/usr/src/rtlinux])
- AC_ARG_WITH([rtlinuxudpdir],
+ AC_ARG_WITH([rtlinuxudp],
[AC_HELP_STRING([--with-rtlinuxudp=DIR],
[path to RTLinux UDP source directory])],
[RTLINUXUDP_DIR="${withval}"],
-# Check whether --with-linuxdir or --without-linuxdir was given.
-if test "${with_linuxdir+set}" = set; then
- withval="$with_linuxdir"
+# Check whether --with-linux or --without-linux was given.
+if test "${with_linux+set}" = set; then
+ withval="$with_linux"
LINUX_DIR="${withval}"
else
LINUX_DIR=default
-# Check whether --with-rtaidir or --without-rtaidir was given.
-if test "${with_rtaidir+set}" = set; then
- withval="$with_rtaidir"
+# Check whether --with-rtai or --without-rtai was given.
+if test "${with_rtai+set}" = set; then
+ withval="$with_rtai"
RTAI_DIR="${withval}"
else
RTAI_DIR=/usr/src/rtai
fi;
-# Check whether --with-rtnetdir or --without-rtnetdir was given.
-if test "${with_rtnetdir+set}" = set; then
- withval="$with_rtnetdir"
+# Check whether --with-rtnet or --without-rtnet was given.
+if test "${with_rtnet+set}" = set; then
+ withval="$with_rtnet"
RTNET_DIR="${withval}"
else
RTNET_DIR=/usr/src/rtnet
-# Check whether --with-rtlinuxdir or --without-rtlinuxdir was given.
-if test "${with_rtlinuxdir+set}" = set; then
- withval="$with_rtlinuxdir"
+# Check whether --with-rtlinux or --without-rtlinux was given.
+if test "${with_rtlinux+set}" = set; then
+ withval="$with_rtlinux"
RTLINUX_DIR="${withval}"
else
RTLINUX_DIR=/usr/src/rtlinux
fi;
-# Check whether --with-rtlinuxudpdir or --without-rtlinuxudpdir was given.
-if test "${with_rtlinuxudpdir+set}" = set; then
- withval="$with_rtlinuxudpdir"
+# Check whether --with-rtlinuxudp or --without-rtlinuxudp was given.
+if test "${with_rtlinuxudp+set}" = set; then
+ withval="$with_rtlinuxudp"
RTLINUXUDP_DIR="${withval}"
else
RTLINUXUDP_DIR="${RTLINUX_DIR}"
LIBS="-lc_r $LIBS"
else
- { echo "$as_me:$LINENO: Can't compile on 100% without pthreads!!!" >&5
-echo "$as_me: Can't compile on 100% without pthreads!!!" >&6;}
+ if test ${MINGW} == 'yes' ; then
+ LIBS=$LIBS' $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a'
+ { echo "$as_me:$LINENO: Using internal version of pthreads!!!" >&5
+echo "$as_me: Using internal version of pthreads!!!" >&6;}
+ else
+ { { echo "$as_me:$LINENO: error: Can't compile without pthreads!!!" >&5
+echo "$as_me: error: Can't compile without pthreads!!!" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
fi
# Process this file with autoconf to produce a configure script.
#
-# $Id: configure.in,v 1.10 2004/08/30 19:18:21 smolik Exp $
+# $Id: configure.in,v 1.11 2004/09/21 21:09:33 smolik Exp $
# autoconf requirement
-AC_PREREQ([2.57])
+AC_PREREQ([2.56])
AC_INIT([orte],[0.2.3],[petr.smolik@wo.cz])
AC_CONFIG_AUX_DIR(admin)
dnl Check for pthreads
AC_CHECK_LIB(pthread, pthread_create, ,
AC_CHECK_LIB(c_r, pthread_create, ,
- AC_MSG_NOTICE([Can't compile on 100% without pthreads!!!])
+ if test ${MINGW} == 'yes' ; then
+ LIBS=$LIBS' $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a'
+ AC_MSG_NOTICE([Using internal version of pthreads!!!])
+ else
+ AC_MSG_ERROR([Can't compile without pthreads!!!])
+ fi
)
)
fi
HelloWorldPublisher_rt_ko_LINK = $(top_builddir)/modtool --link -o $@
else
noinst_PROGRAMS = HelloWorldPublisher HelloWorldSubscriber
-if CONFIG_ORTE_MINGW
- win_libs= $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-endif
HelloWorldPublisher_SOURCES = HelloWorldPublisher.c
- HelloWorldPublisher_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+ HelloWorldPublisher_LDADD = $(top_builddir)/orte/liborte/liborte.la
HelloWorldPublisher_LDFLAGS = -static
HelloWorldSubscriber_SOURCES = HelloWorldSubscriber.c
- HelloWorldSubscriber_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+ HelloWorldSubscriber_LDADD = $(top_builddir)/orte/liborte/liborte.la
HelloWorldSubscriber_LDFLAGS = -static
endif
\ No newline at end of file
@CONFIG_ORTE_RT_FALSE@am_HelloWorldPublisher_OBJECTS = \
@CONFIG_ORTE_RT_FALSE@ HelloWorldPublisher.$(OBJEXT)
HelloWorldPublisher_OBJECTS = $(am_HelloWorldPublisher_OBJECTS)
-@CONFIG_ORTE_MINGW_TRUE@@CONFIG_ORTE_RT_FALSE@am__DEPENDENCIES_1 = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
@CONFIG_ORTE_RT_FALSE@HelloWorldPublisher_DEPENDENCIES = \
-@CONFIG_ORTE_RT_FALSE@ $(top_builddir)/orte/liborte/liborte.la \
-@CONFIG_ORTE_RT_FALSE@ $(am__DEPENDENCIES_1)
+@CONFIG_ORTE_RT_FALSE@ $(top_builddir)/orte/liborte/liborte.la
am__HelloWorldPublisher_rt_ko_SOURCES_DIST = HelloWorldPublisher.c
@CONFIG_ORTE_RT_TRUE@am_HelloWorldPublisher_rt_ko_OBJECTS = \
@CONFIG_ORTE_RT_TRUE@ HelloWorldPublisher.$(OBJEXT)
@CONFIG_ORTE_RT_FALSE@ HelloWorldSubscriber.$(OBJEXT)
HelloWorldSubscriber_OBJECTS = $(am_HelloWorldSubscriber_OBJECTS)
@CONFIG_ORTE_RT_FALSE@HelloWorldSubscriber_DEPENDENCIES = \
-@CONFIG_ORTE_RT_FALSE@ $(top_builddir)/orte/liborte/liborte.la \
-@CONFIG_ORTE_RT_FALSE@ $(am__DEPENDENCIES_1)
+@CONFIG_ORTE_RT_FALSE@ $(top_builddir)/orte/liborte/liborte.la
am__HelloWorldSubscriber_rt_ko_SOURCES_DIST = HelloWorldSubscriber.c
@CONFIG_ORTE_RT_TRUE@am_HelloWorldSubscriber_rt_ko_OBJECTS = \
@CONFIG_ORTE_RT_TRUE@ HelloWorldSubscriber.$(OBJEXT)
@CONFIG_ORTE_RT_TRUE@HelloWorldSubscriber_rt_ko_LINK = $(top_builddir)/modtool --link -o $@
@CONFIG_ORTE_RT_TRUE@HelloWorldPublisher_rt_ko_SOURCES = HelloWorldPublisher.c
@CONFIG_ORTE_RT_TRUE@HelloWorldPublisher_rt_ko_LINK = $(top_builddir)/modtool --link -o $@
-@CONFIG_ORTE_MINGW_TRUE@@CONFIG_ORTE_RT_FALSE@win_libs = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
@CONFIG_ORTE_RT_FALSE@HelloWorldPublisher_SOURCES = HelloWorldPublisher.c
-@CONFIG_ORTE_RT_FALSE@HelloWorldPublisher_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+@CONFIG_ORTE_RT_FALSE@HelloWorldPublisher_LDADD = $(top_builddir)/orte/liborte/liborte.la
@CONFIG_ORTE_RT_FALSE@HelloWorldPublisher_LDFLAGS = -static
@CONFIG_ORTE_RT_FALSE@HelloWorldSubscriber_SOURCES = HelloWorldSubscriber.c
-@CONFIG_ORTE_RT_FALSE@HelloWorldSubscriber_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+@CONFIG_ORTE_RT_FALSE@HelloWorldSubscriber_LDADD = $(top_builddir)/orte/liborte/liborte.la
@CONFIG_ORTE_RT_FALSE@HelloWorldSubscriber_LDFLAGS = -static
all: all-am
bin_PROGRAMS = orteping
orteping_SOURCES = orteping.c
-if CONFIG_ORTE_MINGW
- win_libs= $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-endif
-orteping_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+orteping_LDADD = $(top_builddir)/orte/liborte/liborte.la
orteping_LDFLAGS = -static
PROGRAMS = $(bin_PROGRAMS)
am_orteping_OBJECTS = orteping.$(OBJEXT)
orteping_OBJECTS = $(am_orteping_OBJECTS)
-@CONFIG_ORTE_MINGW_TRUE@am__DEPENDENCIES_1 = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-orteping_DEPENDENCIES = $(top_builddir)/orte/liborte/liborte.la \
- $(am__DEPENDENCIES_1)
+orteping_DEPENDENCIES = $(top_builddir)/orte/liborte/liborte.la
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/orte/include
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
am__depfiles_maybe = depfiles
target_os = @target_os@
target_vendor = @target_vendor@
orteping_SOURCES = orteping.c
-@CONFIG_ORTE_MINGW_TRUE@win_libs = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-orteping_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+orteping_LDADD = $(top_builddir)/orte/liborte/liborte.la
orteping_LDFLAGS = -static
all: all-am
noinst_PROGRAMS = publisher subscriberreliable subscriberbesteffort
-if CONFIG_ORTE_MINGW
- win_libs= $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-endif
-
publisher_SOURCES = publisher.c
-publisher_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+publisher_LDADD = $(top_builddir)/orte/liborte/liborte.la
publisher_LDFLAGS = -static
subscriberreliable_SOURCES = subscriberreliable.c
-subscriberreliable_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+subscriberreliable_LDADD = $(top_builddir)/orte/liborte/liborte.la
subscriberreliable_LDFLAGS = -static
subscriberbesteffort_SOURCES = subscriberbesteffort.c
-subscriberbesteffort_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+subscriberbesteffort_LDADD = $(top_builddir)/orte/liborte/liborte.la
subscriberbesteffort_LDFLAGS = -static
PROGRAMS = $(noinst_PROGRAMS)
am_publisher_OBJECTS = publisher.$(OBJEXT)
publisher_OBJECTS = $(am_publisher_OBJECTS)
-@CONFIG_ORTE_MINGW_TRUE@am__DEPENDENCIES_1 = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-publisher_DEPENDENCIES = $(top_builddir)/orte/liborte/liborte.la \
- $(am__DEPENDENCIES_1)
+publisher_DEPENDENCIES = $(top_builddir)/orte/liborte/liborte.la
am_subscriberbesteffort_OBJECTS = subscriberbesteffort.$(OBJEXT)
subscriberbesteffort_OBJECTS = $(am_subscriberbesteffort_OBJECTS)
subscriberbesteffort_DEPENDENCIES = \
- $(top_builddir)/orte/liborte/liborte.la $(am__DEPENDENCIES_1)
+ $(top_builddir)/orte/liborte/liborte.la
am_subscriberreliable_OBJECTS = subscriberreliable.$(OBJEXT)
subscriberreliable_OBJECTS = $(am_subscriberreliable_OBJECTS)
subscriberreliable_DEPENDENCIES = \
- $(top_builddir)/orte/liborte/liborte.la $(am__DEPENDENCIES_1)
+ $(top_builddir)/orte/liborte/liborte.la
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/orte/include
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
am__depfiles_maybe = depfiles
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
-@CONFIG_ORTE_MINGW_TRUE@win_libs = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
publisher_SOURCES = publisher.c
-publisher_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+publisher_LDADD = $(top_builddir)/orte/liborte/liborte.la
publisher_LDFLAGS = -static
subscriberreliable_SOURCES = subscriberreliable.c
-subscriberreliable_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+subscriberreliable_LDADD = $(top_builddir)/orte/liborte/liborte.la
subscriberreliable_LDFLAGS = -static
subscriberbesteffort_SOURCES = subscriberbesteffort.c
-subscriberbesteffort_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+subscriberbesteffort_LDADD = $(top_builddir)/orte/liborte/liborte.la
subscriberbesteffort_LDFLAGS = -static
all: all-am
bin_PROGRAMS = ortespy
ortespy_SOURCES = ortespy.c
-if CONFIG_ORTE_MINGW
- win_libs= $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-endif
-ortespy_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+ortespy_LDADD = $(top_builddir)/orte/liborte/liborte.la
ortespy_LDFLAGS = -static
PROGRAMS = $(bin_PROGRAMS)
am_ortespy_OBJECTS = ortespy.$(OBJEXT)
ortespy_OBJECTS = $(am_ortespy_OBJECTS)
-@CONFIG_ORTE_MINGW_TRUE@am__DEPENDENCIES_1 = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-ortespy_DEPENDENCIES = $(top_builddir)/orte/liborte/liborte.la \
- $(am__DEPENDENCIES_1)
+ortespy_DEPENDENCIES = $(top_builddir)/orte/liborte/liborte.la
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/orte/include
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
am__depfiles_maybe = depfiles
target_os = @target_os@
target_vendor = @target_vendor@
ortespy_SOURCES = ortespy.c
-@CONFIG_ORTE_MINGW_TRUE@win_libs = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-ortespy_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+ortespy_LDADD = $(top_builddir)/orte/liborte/liborte.la
ortespy_LDFLAGS = -static
all: all-am
/* Define to 1 if you have the <net/if.h> header file. */
/* #undef HAVE_NET_IF_H */
+#define HAVE_ERRNO_H 1
+
/* Define to 1 if you have the <nictab.h> header file. */
#define HAVE_NICTAB_H 1
#define SOCK_BSD
#elif CONFIG_ORTE_MINGW
#define SOCK_WIN
- #include <win32/pthread.h>
- #include <win32/timeval.h>
+ #ifndef HAVE_PTHREAD_H
+ #include <win32/pthread.h>
+ #endif
#ifndef __GETOPT_H__ //mingw
#include <win32/getopt.h>
#endif
+ #include <win32/timeval.h>
#include <orte/ew_types.h>
#define ioctl ioctlsocket
#elif defined CONFIG_ORTE_RTL
liborte_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-release $(LT_RELEASE) \
- -export-dynamic \
- $(LDADDS)
+ -export-dynamic
+# $(LDADDS)
liborte_la_CFLAGS = $(AM_CFLAGS)
endif
@CONFIG_ORTE_RT_FALSE@liborte_la_LDFLAGS = \
@CONFIG_ORTE_RT_FALSE@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
@CONFIG_ORTE_RT_FALSE@ -release $(LT_RELEASE) \
-@CONFIG_ORTE_RT_FALSE@ -export-dynamic \
-@CONFIG_ORTE_RT_FALSE@ $(LDADDS)
+@CONFIG_ORTE_RT_FALSE@ -export-dynamic
+# $(LDADDS)
@CONFIG_ORTE_RT_FALSE@liborte_la_CFLAGS = $(AM_CFLAGS)
# headers
}
pthread_mutex_lock(&cstRemoteReader->cstWriter->mutexCSChangeDestroyed);
cstRemoteReader->cstWriter->condValueCSChangeDestroyed=1;
- pthread_cond_broadcast(&cstRemoteReader->cstWriter->condCSChangeDestroyed);
+ pthread_cond_signal(&cstRemoteReader->cstWriter->condCSChangeDestroyed);
pthread_mutex_unlock(&cstRemoteReader->cstWriter->mutexCSChangeDestroyed);
debug(51,5) ("Publication: new queue level (%d)\n",
cstRemoteReader->cstWriter->csChangesCounter);
if CONFIG_ORTE_WIN
ortemanager_SOURCES += service.c
endif
-if CONFIG_ORTE_MINGW
- win_libs= $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-endif
-ortemanager_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+ortemanager_LDADD = $(top_builddir)/orte/liborte/liborte.la
ortemanager_LDFLAGS = -static
endif
@CONFIG_ORTE_RT_FALSE@am_ortemanager_OBJECTS = ortemanager.$(OBJEXT) \
@CONFIG_ORTE_RT_FALSE@ $(am__objects_1)
ortemanager_OBJECTS = $(am_ortemanager_OBJECTS)
-@CONFIG_ORTE_MINGW_TRUE@@CONFIG_ORTE_RT_FALSE@am__DEPENDENCIES_1 = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
@CONFIG_ORTE_RT_FALSE@ortemanager_DEPENDENCIES = \
-@CONFIG_ORTE_RT_FALSE@ $(top_builddir)/orte/liborte/liborte.la \
-@CONFIG_ORTE_RT_FALSE@ $(am__DEPENDENCIES_1)
+@CONFIG_ORTE_RT_FALSE@ $(top_builddir)/orte/liborte/liborte.la
am__ortemanager_rt_ko_SOURCES_DIST = ortemanager.c
@CONFIG_ORTE_RT_TRUE@am_ortemanager_rt_ko_OBJECTS = \
@CONFIG_ORTE_RT_TRUE@ ortemanager_rt_ko-ortemanager.$(OBJEXT)
@CONFIG_ORTE_RT_TRUE@ortemanager_rt_ko_SOURCES = ortemanager.c
@CONFIG_ORTE_RT_TRUE@ortemanager_rt_ko_LINK = $(top_builddir)/modtool --link -o $@
@CONFIG_ORTE_RT_FALSE@ortemanager_SOURCES = ortemanager.c $(am__append_1)
-@CONFIG_ORTE_MINGW_TRUE@@CONFIG_ORTE_RT_FALSE@win_libs = $(top_srcdir)/orte/contrib/win_pthread/libpthreadGC.a
-@CONFIG_ORTE_RT_FALSE@ortemanager_LDADD = $(top_builddir)/orte/liborte/liborte.la $(win_libs)
+@CONFIG_ORTE_RT_FALSE@ortemanager_LDADD = $(top_builddir)/orte/liborte/liborte.la
@CONFIG_ORTE_RT_FALSE@ortemanager_LDFLAGS = -static
all: all-am
How to start?
-------------
run :ortemanager &
-see :ortemanager -h for usaged
+see :ortemanager -h for usage
note:ortemanager have to be running during all communication. For future work can
be added into /etc/init.d/... script for starting ortemanager during boot
of machine. This script (redhat and mandrake) is placed in