diff options
author | Martin Lucina <martin@lucina.net> | 2012-01-23 09:00:28 +0100 |
---|---|---|
committer | Martin Lucina <martin@lucina.net> | 2012-01-23 09:00:28 +0100 |
commit | 4016b657973bba87caf75168ba70aaa85d556487 (patch) | |
tree | c2abaf9284f55964bea72a0b76f6b79070335858 /configure.in | |
parent | 978e33ba253a997b41b331b449b474a5cee7bccc (diff) |
Imported Upstream version 2.1.11upstream/2.1.11
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 0f9b358..bdff0cf 100644 --- a/configure.in +++ b/configure.in @@ -179,7 +179,14 @@ case "${host_os}" in CPPFLAGS="-D_POSIX_C_SOURCE=200112L $CPPFLAGS" AC_DEFINE(ZMQ_HAVE_HPUX, 1, [Have HPUX OS]) AC_CHECK_LIB(rt, sem_init) - AC_CHECK_LIB(crypto, RAND_bytes) + AC_ARG_WITH([dce], + [AS_HELP_STRING([--without-dce], + [HP-UX only: Do not use DCE library for UUID functions])],, + [], + [with_dce=yes]) + AS_IF([test "x$with_dce" != xno], + [AC_CHECK_LIB(dcekt, uuid_create)], + [AC_CHECK_LIB(crypto, RAND_bytes)]) ;; *mingw32*) AC_DEFINE(ZMQ_HAVE_WINDOWS, 1, [Have Windows OS]) @@ -247,7 +254,7 @@ LIBZMQ_CHECK_DOC_BUILD # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(errno.h arpa/inet.h netinet/tcp.h netinet/in.h stddef.h \ -stdlib.h string.h sys/socket.h sys/time.h unistd.h limits.h) +stdlib.h string.h sys/socket.h sys/time.h time.h unistd.h limits.h) # Check if we have ifaddrs.h header file. AC_CHECK_HEADERS(ifaddrs.h, [AC_DEFINE(ZMQ_HAVE_IFADDRS, 1, [Have ifaddrs.h header.])]) @@ -275,7 +282,7 @@ AC_C_VOLATILE # PGM extension libzmq_pgm_ext="no" -pgm_basename="libpgm-5.1.115~dfsg" +pgm_basename="libpgm-5.1.118~dfsg" AC_ARG_WITH([pgm], [AS_HELP_STRING([--with-pgm], [build libzmq with PGM extension [default=no]])], @@ -369,8 +376,13 @@ AM_CONDITIONAL(ON_MINGW, test "x$libzmq_on_mingw32" = "xyes") # Checks for library functions. AC_TYPE_SIGNAL -AC_CHECK_FUNCS(perror gettimeofday memset socket getifaddrs freeifaddrs) +AC_CHECK_FUNCS(perror gettimeofday clock_gettime memset socket getifaddrs freeifaddrs) AC_CHECK_HEADERS([alloca.h]) +LIBZMQ_CHECK_SOCK_CLOEXEC([AC_DEFINE( + [HAVE_SOCK_CLOEXEC], + [1], + [Whether SOCK_CLOEXEC is defined and functioning.]) + ]) # Subst LIBZMQ_EXTRA_CFLAGS & CXXFLAGS & LDFLAGS AC_SUBST(LIBZMQ_EXTRA_CFLAGS) |