Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
80c820d7
Commit
80c820d7
authored
Feb 15, 2010
by
Martin Lucina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up more PGM cruft
parent
635e3146
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
47 deletions
+37
-47
Makefile.am
Makefile.am
+3
-0
configure.in
configure.in
+23
-42
Makefile.am
perf/c/Makefile.am
+2
-2
Makefile.am
src/Makefile.am
+9
-3
No files found.
Makefile.am
View file @
80c820d7
...
...
@@ -14,3 +14,6 @@ $(top_srcdir)/foreign/xmlParser/xmlParser.hpp
dist-hook
:
-
rm
-rf
$(distdir)
/foreign/openpgm/@pgm2_basename@
distclean-local
:
-
rm
-rf
$(distdir)
/foreign/openpgm/@pgm2_basename@
configure.in
View file @
80c820d7
...
...
@@ -62,7 +62,7 @@ AC_CHECK_LIB(stdc++, malloc)
LIBZMQ_EXTRA_CXXFLAGS=""
# Extra LDFLAGS are appended at the end of LDFLAGS for libzmq.
LIBZMQ_EXTRA_LDFLA
F
S=""
LIBZMQ_EXTRA_LDFLA
G
S=""
# By default compiling with -pedantic except QNX and OSX.
pedantic="yes"
...
...
@@ -408,33 +408,29 @@ else
fi
# PGM extension
pgm
2
_ext="no"
pgm_ext="no"
pgm
2
_basename="libpgm-2.0.23rc8"
pgm_basename="libpgm-2.0.23rc8"
AC_SUBST(pgm2_basename)
pgm_basename=""
AC_SUBST(pgm_basename)
AC_ARG_WITH([pgm], [AS_HELP_STRING([--with-pgm],
[build libzmq with PGM extension [default=no]])],
[with_pgm
2_ext=yes], [with_pgm2
_ext=no])
[with_pgm
_ext=yes], [with_pgm
_ext=no])
AC_ARG_WITH([pgm-examples], [AS_HELP_STRING([--with-pgm-examples],
[build PGM examples [default=no]])],
[with_pgm
2_examples=yes], [with_pgm2
_examples=no])
[with_pgm
_examples=yes], [with_pgm
_examples=no])
if test "x$with_pgm
2_ext" = "xno" -a "x$with_pgm2
_examples" = "xyes"; then
AC_MSG_ERROR([cannot configure --with-pgm
2-examples without --with-pgm2
.]);
if test "x$with_pgm
_ext" = "xno" -a "x$with_pgm
_examples" = "xyes"; then
AC_MSG_ERROR([cannot configure --with-pgm
-examples without --with-pgm
.]);
fi
if test "x$c" = "xno" -a "x$with_pgm
2
_examples" = "xyes"; then
AC_MSG_ERROR([cannot configure --with-pgm
2
-examples without --with-c.]);
if test "x$c" = "xno" -a "x$with_pgm_examples" = "xyes"; then
AC_MSG_ERROR([cannot configure --with-pgm-examples without --with-c.]);
fi
if test "x$with_pgm2_ext" != "xno"; then
pgm_basename=${pgm2_basename}
if test "x$with_pgm_ext" != "xno"; then
AC_MSG_CHECKING([if the PGM extension is supported on this platform])
# OpenPGM is only supported by the vendor on x86 and AMD64 platforms...
...
...
@@ -484,39 +480,24 @@ if test "x$with_pgm2_ext" != "xno"; then
fi
fi
# Unpack libpgm
2
# Unpack libpgm
AC_MSG_NOTICE([Unpacking ${pgm_basename}.tar.bz2])
if ! bunzip2 -c foreign/openpgm/${pgm_basename}.tar.bz2 | tar -xf - -C foreign/openpgm/; then
AC_MSG_ERROR([cannot unpack the foreign/openpgm/${pgm_basename}.tar.bz2 file.])
fi
# Generate galois_tables.c
AC_CONFIG_COMMANDS([galois_tables2.c],
[perl foreign/openpgm/libpgm-2.0.23rc8/openpgm/pgm/galois_generator.pl > \
foreign/openpgm/libpgm-2.0.23rc8/openpgm/pgm/galois_tables.c])
# Generate version.c
AC_CONFIG_COMMANDS([version2.c],
[python foreign/openpgm/libpgm-2.0.23rc8/openpgm/pgm/version_generator.py > \
foreign/openpgm/libpgm-2.0.23rc8/openpgm/pgm/version.c])
# Success!
AC_DEFINE(ZMQ_HAVE_OPENPGM, 1, [Have OpenPGM extension])
pgm2_ext="yes"
else
# Fallback for make dist.
pgm_basename=${pgm2_basename}
pgm_ext="yes"
fi
AC_SUBST(pgm_basename)
# If not on QNX nor OSX nor PGM add -pedantic into LIBZMQ_EXTRA_CXXFLAGS.
if test "x$pedantic" = "xyes" -a "x$pgm
2
_ext" = "xno"; then
if test "x$pedantic" = "xyes" -a "x$pgm_ext" = "xno"; then
LIBZMQ_EXTRA_CXXFLAGS="${LIBZMQ_EXTRA_CXXFLAGS} -pedantic"
fi
# If not on QNX nor
--with-pgm2
add -Werror into LIBZMQ_EXTRA_CXXFLAGS.
if test "x$werror" = "xyes" -a "x$pgm
2
_ext" = "xno"; then
# If not on QNX nor
PGM
add -Werror into LIBZMQ_EXTRA_CXXFLAGS.
if test "x$werror" = "xyes" -a "x$pgm_ext" = "xno"; then
LIBZMQ_EXTRA_CXXFLAGS="${LIBZMQ_EXTRA_CXXFLAGS} -Werror"
fi
...
...
@@ -561,7 +542,7 @@ if test "x$with_perf" != "xno"; then
fi
fi
if test "x$with_perf" = "xno" -a "x$with_pgm
2
_examples" = "xyes"; then
if test "x$with_perf" = "xno" -a "x$with_pgm_examples" = "xyes"; then
AC_MSG_ERROR([cannot configure --with-pgm-examples without --with-perf.]);
fi
...
...
@@ -578,15 +559,15 @@ AM_CONDITIONAL(BUILD_PYTHON, test "x$pyzmq" = "xyes")
AM_CONDITIONAL(BUILD_RUBY, test "x$rbzmq" = "xyes")
AM_CONDITIONAL(BUILD_C, test "x$czmq" = "xyes")
AM_CONDITIONAL(BUILD_CPP, test "x$cppzmq" = "xyes")
AM_CONDITIONAL(BUILD_PGM
2, test "x$pgm2
_ext" = "xyes")
AM_CONDITIONAL(BUILD_NO_PGM, test "x$pgm
2
_ext" = "xno")
AM_CONDITIONAL(BUILD_PGM
, test "x$pgm
_ext" = "xyes")
AM_CONDITIONAL(BUILD_NO_PGM, test "x$pgm_ext" = "xno")
AM_CONDITIONAL(BUILD_FORWARDER, test "x$forwarder" = "xyes")
AM_CONDITIONAL(BUILD_STREAMER, test "x$streamer" = "xyes")
AM_CONDITIONAL(BUILD_QUEUE, test "x$queue" = "xyes")
AM_CONDITIONAL(BUILD_PERF, test "x$perf" = "xyes")
AM_CONDITIONAL(BUILD_CHAT, test "x$chat" = "xyes")
AM_CONDITIONAL(ON_MINGW, test "x$on_mingw32" = "xyes")
AM_CONDITIONAL(BUILD_PGM
2_EXAMPLES, test "x$with_pgm2
_examples" = "xyes")
AM_CONDITIONAL(BUILD_PGM
_EXAMPLES, test "x$with_pgm
_examples" = "xyes")
AM_CONDITIONAL(INSTALL_MAN, test "x$install_man" = "xyes")
AM_CONDITIONAL(BUILD_DOC, test "x$build_doc" = "xyes")
...
...
@@ -595,7 +576,7 @@ AC_SUBST(inttypes)
# Subst LIBZMQ_EXTRA_CXXFLAGS & LDFLAGS
AC_SUBST(LIBZMQ_EXTRA_CXXFLAGS)
AC_SUBST(LIBZMQ_EXTRA_LDFLA
F
S)
AC_SUBST(LIBZMQ_EXTRA_LDFLA
G
S)
# Checks for library functions.
...
...
@@ -643,8 +624,8 @@ AC_MSG_RESULT([ Ruby library install dir: $rubydir])
fi
AC_MSG_RESULT([ Transports:])
AC_MSG_RESULT([ tcp: yes])
AC_MSG_RESULT([ udp: $pgm
2
_ext])
AC_MSG_RESULT([ pgm: $pgm
2
_ext])
AC_MSG_RESULT([ udp: $pgm_ext])
AC_MSG_RESULT([ pgm: $pgm_ext])
AC_MSG_RESULT([ inproc: yes])
AC_MSG_RESULT([ Devices:])
AC_MSG_RESULT([ Forwarder: $forwarder])
...
...
perf/c/Makefile.am
View file @
80c820d7
INCLUDES
=
-I
$(top_builddir)
/bindings/c
if
BUILD_PGM
2
_EXAMPLES
if
BUILD_PGM_EXAMPLES
PGM_EXAMPLES_BINS
=
pgmsend pgmrecv
endif
...
...
@@ -22,7 +22,7 @@ remote_thr_LDADD = $(top_builddir)/src/libzmq.la
remote_thr_SOURCES
=
remote_thr.c
remote_thr_CXXFLAGS
=
-Wall
-pedantic
-Werror
if
BUILD_PGM
2
_EXAMPLES
if
BUILD_PGM_EXAMPLES
if
ON_MINGW
pgmexamples_diff_flags
=
\
...
...
src/Makefile.am
View file @
80c820d7
...
...
@@ -15,7 +15,7 @@ include_HEADERS = ../bindings/c/zmq.h
endif
endif
if
BUILD_PGM
2
if
BUILD_PGM
pgm_sources
=
../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c
\
../foreign/openpgm/@pgm_basename@/openpgm/pgm/time.c
\
../foreign/openpgm/@pgm_basename@/openpgm/pgm/if.c
\
...
...
@@ -49,6 +49,12 @@ pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/log.c
\
../foreign/openpgm/@pgm_basename@/openpgm/pgm/sockaddr.c
\
../foreign/openpgm/@pgm_basename@/openpgm/pgm/version.c
../foreign/openpgm/@pgm_basename@/openpgm/pgm/version.c
:
../foreign/openpgm/@pgm_basename@/openpgm/pgm/version_generator.py
python ../foreign/openpgm/@pgm_basename@/openpgm/pgm/version_generator.py
>
$@
../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_tables.c
:
../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_generator.pl
perl ../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_generator.pl
>
$@
endif
nodist_libzmq_la_SOURCES
=
$(pgm_sources)
...
...
@@ -171,9 +177,9 @@ libzmq_la_SOURCES = app_thread.hpp \
zmq_init.cpp
\
zmq_listener.cpp
libzmq_la_LDFLAGS
=
-version-info
@LTVER@ @LIBZMQ_EXTRA_LDFLA
F
S@
libzmq_la_LDFLAGS
=
-version-info
@LTVER@ @LIBZMQ_EXTRA_LDFLA
G
S@
if
BUILD_PGM
2
if
BUILD_PGM
if
ON_MINGW
libpgm_diff_flags
=
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment