commit changes to build
authorJens Thiele <jens.thiele@intra2net.com>
Tue, 21 Nov 2006 17:05:56 +0000 (17:05 +0000)
committerJens Thiele <jens.thiele@intra2net.com>
Tue, 21 Nov 2006 17:05:56 +0000 (17:05 +0000)
Makefile.am
config.h.in
configure.in
src/socket_handler.cpp

index f9360eb..dec3f8a 100644 (file)
@@ -2,7 +2,7 @@
 # have all needed files, that a GNU package needs
 AUTOMAKE_OPTIONS = foreign 1.4
 
-SUBDIRS = src doc test
+SUBDIRS = src doc test examples codegen example-codegen
 
 # Install the pkg-config file:
 pkgconfigdir = $(libdir)/pkgconfig
index e427590..85b9f4b 100644 (file)
@@ -36,5 +36,8 @@
 /* Name of package */
 #undef PACKAGE
 
+/* protocol version used (integers, increase version if incompatible) */
+#undef PROTOCOL_VERSION
+
 /* Version number of package */
 #undef VERSION
index 2522ab0..edcf792 100644 (file)
@@ -23,4 +23,8 @@ if test "x$BOOST_SERIALIZATION_LIB" = "x"; then
            exit 1
 fi
 
-AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile)
+PKG_CHECK_MODULES(CODEGEN, libxml++-2.6 >= 2.8.1)
+AC_SUBST(CODEGEN_CFLAGS)
+AC_SUBST(CODEGEN_LIBS)
+
+AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile example-codegen/Makefile)
index 98944b0..ed14895 100644 (file)
@@ -126,6 +126,7 @@ bool socket_handler::data_waiting(long long usec_timeout,long long* usec_timeout
     int ret=select (FD_SETSIZE, &active_fd_set, NULL, NULL, timeout_ptr);
 
     // return the timeout we did not use
+    // todo: this is linux specific according to man 2 select
     if (usec_timeout > 0 && usec_timeout_remaining != NULL)
         *usec_timeout_remaining=(tval.tv_sec*1000000)+tval.tv_usec;