summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure368
1 files changed, 356 insertions, 12 deletions
diff --git a/configure b/configure
index 5ac6f90..e55298f 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for zeromq 2.1.11.
+# Generated by GNU Autoconf 2.68 for zeromq 2.2.0.
#
# Report bugs to <zeromq-dev@lists.zeromq.org>.
#
@@ -570,8 +570,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='zeromq'
PACKAGE_TARNAME='zeromq'
-PACKAGE_VERSION='2.1.11'
-PACKAGE_STRING='zeromq 2.1.11'
+PACKAGE_VERSION='2.2.0'
+PACKAGE_STRING='zeromq 2.2.0'
PACKAGE_BUGREPORT='zeromq-dev@lists.zeromq.org'
PACKAGE_URL=''
@@ -774,6 +774,7 @@ enable_debug
with_gcov
with_dce
with_documentation
+with_poller
with_pgm
with_system_pgm
'
@@ -1339,7 +1340,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures zeromq 2.1.11 to adapt to many kinds of systems.
+\`configure' configures zeromq 2.2.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1409,7 +1410,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of zeromq 2.1.11:";;
+ short | recursive ) echo "Configuration of zeromq 2.2.0:";;
esac
cat <<\_ACEOF
@@ -1441,6 +1442,9 @@ Optional Packages:
functions
--without-documentation disable documentation build even if asciidoc and
xmlto are present [default=no]
+ --with-poller choose polling system manually. valid values are
+ kqueue, epoll, devpoll, poll or select
+ [default=autodetect]
--with-pgm build libzmq with PGM extension [default=no]
--with-system-pgm build libzmq with PGM extension. Requires pkg-config
[default=no]
@@ -1535,7 +1539,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-zeromq configure 2.1.11
+zeromq configure 2.2.0
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -2332,7 +2336,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by zeromq $as_me 2.1.11, which was
+It was created by zeromq $as_me 2.2.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
@@ -3151,7 +3155,7 @@ fi
# Define the identity of the package.
PACKAGE='zeromq'
- VERSION='2.1.11'
+ VERSION='2.2.0'
cat >>confdefs.h <<_ACEOF
@@ -3298,9 +3302,10 @@ AM_BACKSLASH='\'
#
# ZeroMQ versions prior to 2.1.0 use 0.0.0 ("unstable")
# ZeroMQ version 2.1.0: 1:0:0
+# ZeroMQ version 2.2.0: 1:1:0
#
# libzmq -version-info current:revision:age
-LTVER="1:0:0"
+LTVER="1:1:0"
# Take a copy of original flags
@@ -17582,6 +17587,106 @@ _ACEOF
fi
fi
+ {
+ {
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -Ae" >&5
+$as_echo_n "checking whether C compiler supports -Ae... " >&6; }
+
+ libzmq_cv_c_werror_flag_save=$ac_c_werror_flag
+ ac_c_werror_flag="yes"
+
+ case "xc" in
+ xc)
+ libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -Ae"
+ ;;
+ xcxx)
+ libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS -Ae"
+ ;;
+ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
+$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
+ ;;
+ esac
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ # This hack exist for ICC, which outputs unknown options as remarks
+ # Remarks are not turned into errors even with -Werror on
+ if ($GREP 'ignoring unknown' conftest.err ||
+ $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
+ eval libzmq_cv_c_supports_flag__Ae="no"
+ else
+ eval libzmq_cv_c_supports_flag__Ae="yes"
+ fi
+else
+ eval libzmq_cv_c_supports_flag__Ae="no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+ case "xc" in
+ xc)
+ CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
+ ;;
+ xcxx)
+ CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
+ ;;
+ *)
+ # nothing to restore
+ ;;
+ esac
+
+ # Restore the werror flag
+ ac_c_werror_flag=$libzmq_cv_c_werror_flag_save
+
+ # Call the action as the flags are restored
+ if eval test x$libzmq_cv_c_supports_flag__Ae = "xyes"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; } ;
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; } ;
+fi
+
+}
+ case "xc" in
+ xc)
+ if eval test x$libzmq_cv_c_supports_flag__Ae = "xyes"; then :
+ CFLAGS="-Ae $CFLAGS";
+fi
+ ;;
+ xcxx)
+ if eval test x$libzmq_cv_c_supports_flag__Ae = "xyes"; then :
+ CPPFLAGS="-Ae $CPPFLAGS";
+fi
+ ;;
+ esac
+}
+ for ac_func in gethrtime
+do :
+ ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
+if test "x$ac_cv_func_gethrtime" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_GETHRTIME 1
+_ACEOF
+
+fi
+done
+
;;
*mingw32*)
@@ -18338,6 +18443,246 @@ fi
}
+# Check polling system
+{
+
+ # Allow user to disable doc build
+
+# Check whether --with-poller was given.
+if test "${with_poller+set}" = set; then :
+ withval=$with_poller;
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable polling system" >&5
+$as_echo_n "checking for suitable polling system... " >&6; }
+
+ case "${with_poller}" in
+ kqueue|epoll|devpoll|poll|select)
+ # User has chosen polling system
+ libzmq_cv_poller="${with_poller}"
+ ;;
+
+ *)
+ # try to find suitable polling system. the order of testing is:
+ # kqueue -> epoll -> devpoll -> poll -> select
+ for subsystem in kqueue epoll devpoll poll select; do
+
+ case "${subsystem}" in
+ kqueue)
+ {
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <sys/types.h>
+#include <sys/event.h>
+#include <sys/time.h>
+
+int
+main ()
+{
+
+struct kevent t_kev;
+kqueue();
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ libzmq_cv_have_poller_kqueue="yes" ; libzmq_cv_poller=$subsystem
+else
+ libzmq_cv_have_poller_kqueue="no" ;
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+}
+ ;;
+
+ epoll)
+ {
+ if test "$cross_compiling" = yes; then :
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <sys/epoll.h>
+
+int
+main ()
+{
+
+ struct epoll_event t_ev;
+ epoll_create(10);
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ libzmq_cv_have_poller_epoll="yes" ; libzmq_cv_poller=$subsystem
+else
+ libzmq_cv_have_poller_epoll="no" ;
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <sys/epoll.h>
+
+int
+main ()
+{
+
+struct epoll_event t_ev;
+int r;
+r = epoll_create(10);
+return(r < 0);
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ libzmq_cv_have_poller_epoll="yes" ; libzmq_cv_poller=$subsystem
+else
+ libzmq_cv_have_poller_epoll="no" ;
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+}
+ ;;
+
+ devpoll)
+ {
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <sys/devpoll.h>
+
+int
+main ()
+{
+
+struct pollfd t_devpoll;
+int fd = open("/dev/poll", O_RDWR);
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ libzmq_cv_have_poller_devpoll="yes" ; libzmq_cv_poller=$subsystem
+else
+ libzmq_cv_have_poller_devpoll="no" ;
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+}
+ ;;
+
+ poll)
+ {
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <poll.h>
+
+int
+main ()
+{
+
+struct pollfd t_poll;
+poll(&t_poll, 1, 1);
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ libzmq_cv_have_poller_poll="yes" ; libzmq_cv_poller=$subsystem
+else
+ libzmq_cv_have_poller_poll="no" ;
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+}
+ ;;
+
+ select)
+ {
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#ifdef ZMQ_HAVE_WINDOWS
+#include "winsock2.h"
+#elif defined ZMQ_HAVE_OPENVMS
+#include <sys/types.h>
+#include <sys/time.h>
+#else
+#include <sys/select.h>
+#endif
+
+int
+main ()
+{
+
+fd_set t_rfds;
+struct timeval tv;
+
+FD_ZERO(&t_rfds);
+FD_SET(0, &t_rfds);
+
+tv.tv_sec = 5;
+tv.tv_usec = 0;
+
+select(1, &t_rfds, NULL, NULL, &tv);
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ libzmq_cv_have_poller_select="yes" ; libzmq_cv_poller=$subsystem
+else
+ libzmq_cv_have_poller_select="no" ;
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+}
+ ;;
+ esac
+
+ if test "x${libzmq_cv_poller}" != "x"; then
+ break
+ fi
+ done
+ ;;
+ esac
+
+ libzmq_cv_poller_flag=`echo "ZMQ_FORCE_${libzmq_cv_poller}" | tr a-z A-Z`
+
+ if test "x${libzmq_cv_poller}" != "x"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $libzmq_cv_poller" >&5
+$as_echo "using $libzmq_cv_poller" >&6; } ; CPPFLAGS="${CPPFLAGS} -D${libzmq_cv_poller_flag}"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no suitable polling system found" >&5
+$as_echo "no suitable polling system found" >&6; } ; as_fn_error $? "Unable to continue without polling system" "$LINENO" 5
+fi
+}
+
# Checks for header files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
@@ -20172,7 +20517,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by zeromq $as_me 2.1.11, which was
+This file was extended by zeromq $as_me 2.2.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -20238,7 +20583,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-zeromq config.status 2.1.11
+zeromq config.status 2.2.0
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
@@ -22436,4 +22781,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
-