[zeromq-dev] Reconfigure libzmq compile cycle

Greg Ward greg at gerg.ca
Thu Jan 16 22:48:17 CET 2014

On 16 January 2014, Goswin von Brederlow said:
> You could change the configure.ac file to serach for your include
> files and libs and add them for you. That would be a more permanent
> solution.

IMHO that's not the best advice. Conventional wisdom is that it's
preferable to tweak a build with command-line arguments than by
patching the source. E.g. it's easy to script this:

  CPPFLAGS='-I/path/to/my/headers' LIBS='-lotherlib' ./configure

or this:

  make INCLUDES='-I/path/to/my/headers'

(assuming the Makefile was written with that option: it appears that
libzmq's autoconf-generated Makefile was not).

But it's not so nice to script a patch to configure.ac or
what-have-you. Not impossible, just not as nice.


More information about the zeromq-dev mailing list