# =========================================================================== # https://www.gnu.org/software/autoconf-archive/ax_zmq.html # =========================================================================== # # SYNOPSIS # # AX_ZMQ([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # DESCRIPTION # # Test for the ZMQ libraries of a particular version (or newer). The # default version tested for is 4.0.0. # # The macro tests for ZMQ libraries in the library/include path, and, when # provided, also in the path given by --with-zmq. # # This macro calls: # # AC_SUBST(ZMQ_CPPFLAGS) / AC_SUBST(ZMQ_LDFLAGS) / AC_SUBST(ZMQ_LIBS) # # And sets: # # HAVE_ZMQ # # LICENSE # # Copyright (c) 2016 Jeroen Meijer <jjgmeijer@gmail.com> # # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice # and this notice are preserved. This file is offered as-is, without any # warranty.
#serial 3
AC_DEFUN([AX_ZMQ], [
AC_ARG_WITH([zmq], [AS_HELP_STRING([--with-zmq=<prefix>],[ZMQ prefix directory])], [
ZMQ_LDFLAGS="-L${with_zmq}/lib"
ZMQ_CPPFLAGS="-I${with_zmq}/include"
],
[ # no --with-zmq given, so we try to check if hombrew zeromq (macos) is present
AS_IF([command -v brew --prefix zeromq >/dev/null 2>&1],[
AC_MSG_NOTICE([BREW zeromq detected])
with_zmq=$(brew --prefix zeromq)
ZMQ_LDFLAGS="-L${with_zmq}/lib"
ZMQ_CPPFLAGS="-I${with_zmq}/include"
])
])
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.