Skip to content

Instantly share code, notes, and snippets.

@jrossi
Created September 28, 2010 20:39
Show Gist options
  • Select an option

  • Save jrossi/601734 to your computer and use it in GitHub Desktop.

Select an option

Save jrossi/601734 to your computer and use it in GitHub Desktop.
def options(ctx):
ctx.add_option("--with-zmq", action="store_true", default=False,
dest="with_zmq", help="Compile ZeroMQ Support")
def configure(ctx):
ctx.check_tool("compiler_cc")
ctx.check_cfg(atleast_pkgconfig_version='0.0.0')
if ctx.options.with_zmq:
ctx.check_cfg(package='libzmq', args="--cflags --libs", uselib_store="ZMQ", mandatory=True)
elif not ctx.options.without_zmq:
ctx.check_cfg(package='libzmq', args="--cflags --libs", uselib_store="ZMQ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment