On Tue, Jan 26, 2010 at 5:44 PM, Martin Lucina <[email protected]> wrote:

> By definition, if you've downloaded the 0mq core package you already have C
> and C++ installed. Therefore at least these two bindings should be built
> and installed *by default*.
>
> This allows newcomers to just download the package, run "./configure &&
> make
> && make install" and get a working system. With the current behaviour
> people have to explicitly find the relevant documentation that tells them
> to add "--with-c --with-cpp" to the options to configure.
>

Also other language bindings depend on zmq.h. When distributed independent
of 0MQ they need zmq.h installed, so I think at least --with-c=yes has to be
the default (cf. attached patch).

Cheers,
Toralf
diff --git a/configure.in b/configure.in
index 4c89dde..9a3b961 100644
--- a/configure.in
+++ b/configure.in
@@ -292,12 +292,11 @@ if test "x$HAVE_INTTYPES_H" = "xyes"; then
 fi
 
 # c 
-czmq="no"
-AC_ARG_WITH([c], [AS_HELP_STRING([--with-c], 
-    [build c language binding [default=no]])], [c=yes], [c=no])
+czmq="yes"
+AC_ARG_WITH([c], [AS_HELP_STRING([--with-c], [build c language binding [default=yes]])])
 
-if test "x$c" != "xno"; then
-    czmq="yes" 
+if test "x$with_c" = "xno"; then
+    czmq="no"
 fi
 
 # c++
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to