diff options
| author | Martin Lucina <martin@lucina.net> | 2012-01-23 08:53:45 +0100 | 
|---|---|---|
| committer | Martin Lucina <martin@lucina.net> | 2012-01-23 08:53:45 +0100 | 
| commit | cbaa7cfa93893876e4fd8794b6ea39f4d245b6b5 (patch) | |
| tree | e15fcee68b93793ef5654e09c214150e9d3ce248 /configure | |
| parent | 8e61b98c5e2943b149c825310b24e714a6127072 (diff) | |
Imported Upstream version 2.1.6upstream/2.1.6
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 1217 | 
1 files changed, 761 insertions, 456 deletions
| @@ -1,6 +1,6 @@  #! /bin/sh  # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.67 for zeromq 2.1.4. +# Generated by GNU Autoconf 2.67 for zeromq 2.1.6.  #  # Report bugs to <zeromq-dev@lists.zeromq.org>.  # @@ -701,8 +701,8 @@ MAKEFLAGS=  # Identity of this package.  PACKAGE_NAME='zeromq'  PACKAGE_TARNAME='zeromq' -PACKAGE_VERSION='2.1.4' -PACKAGE_STRING='zeromq 2.1.4' +PACKAGE_VERSION='2.1.6' +PACKAGE_STRING='zeromq 2.1.6'  PACKAGE_BUGREPORT='zeromq-dev@lists.zeromq.org'  PACKAGE_URL='' @@ -755,6 +755,11 @@ ON_MINGW_TRUE  BUILD_PGM_FALSE  BUILD_PGM_TRUE  pgm_basename +OpenPGM_LIBS +OpenPGM_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG  subdirs  pgm_srcdir  pgm_subdir @@ -762,8 +767,8 @@ INSTALL_MAN_FALSE  INSTALL_MAN_TRUE  BUILD_DOC_FALSE  BUILD_DOC_TRUE -ac_zmq_have_xmlto -ac_zmq_have_asciidoc +libzmq_have_xmlto +libzmq_have_asciidoc  CXXCPP  CPP  OTOOL64 @@ -895,8 +900,10 @@ enable_fast_install  with_gnu_ld  enable_libtool_lock  enable_debug +with_gcov  with_documentation  with_pgm +with_system_pgm  '        ac_precious_vars='build_alias  host_alias @@ -912,7 +919,12 @@ CCC  XMLTO  ASCIIDOC  CPP -CXXCPP' +CXXCPP +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +OpenPGM_CFLAGS +OpenPGM_LIBS'  ac_subdirs_all='foreign/openpgm/build-staging/openpgm/pgm/'  # Initialize some variables set by options. @@ -1455,7 +1467,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.4 to adapt to many kinds of systems. +\`configure' configures zeromq 2.1.6 to adapt to many kinds of systems.  Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1525,7 +1537,7 @@ fi  if test -n "$ac_init_help"; then    case $ac_init_help in -     short | recursive ) echo "Configuration of zeromq 2.1.4:";; +     short | recursive ) echo "Configuration of zeromq 2.1.6:";;     esac    cat <<\_ACEOF @@ -1550,9 +1562,12 @@ Optional Packages:    --with-pic              try to use only PIC/non-PIC objects [default=use                            both]    --with-gnu-ld           assume the C compiler uses GNU ld [default=no] +  --with-gcov=yes/no      With GCC Code Coverage reporting.    --without-documentation disable documentation build even if asciidoc and                            xmlto are present [default=no]    --with-pgm              build libzmq with PGM extension [default=no] +  --with-system-pgm       build libzmq with PGM extension. Requires pkg-config +                          [default=no]  Some influential environment variables:    CC          C compiler command @@ -1568,6 +1583,15 @@ Some influential environment variables:    ASCIIDOC    Path to asciidoc command    CPP         C preprocessor    CXXCPP      C++ preprocessor +  PKG_CONFIG  path to pkg-config utility +  PKG_CONFIG_PATH +              directories to add to pkg-config's search path +  PKG_CONFIG_LIBDIR +              path overriding pkg-config's built-in search path +  OpenPGM_CFLAGS +              C compiler flags for OpenPGM, overriding pkg-config +  OpenPGM_LIBS +              linker flags for OpenPGM, overriding pkg-config  Use these variables to override the choices made by `configure' or to help  it to find libraries and programs with nonstandard names/locations. @@ -1635,7 +1659,7 @@ fi  test -n "$ac_init_help" && exit $ac_status  if $ac_init_version; then    cat <<\_ACEOF -zeromq configure 2.1.4 +zeromq configure 2.1.6  generated by GNU Autoconf 2.67  Copyright (C) 2010 Free Software Foundation, Inc. @@ -2390,7 +2414,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.4, which was +It was created by zeromq $as_me 2.1.6, which was  generated by GNU Autoconf 2.67.  Invocation command line was    $ $0 $@ @@ -3209,7 +3233,7 @@ fi  # Define the identity of the package.   PACKAGE='zeromq' - VERSION='2.1.4' + VERSION='2.1.6'  cat >>confdefs.h <<_ACEOF @@ -5227,8 +5251,6 @@ $as_echo "no" >&6; }  fi - -# Libtool configuration for different targets. See acinclude.m4  # Make sure we can run config.sub.  $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||    as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 @@ -6284,13 +6306,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :  else    lt_cv_nm_interface="BSD nm"    echo "int some_variable = 0;" > conftest.$ac_ext -  (eval echo "\"\$as_me:6287: $ac_compile\"" >&5) +  (eval echo "\"\$as_me:6309: $ac_compile\"" >&5)    (eval "$ac_compile" 2>conftest.err)    cat conftest.err >&5 -  (eval echo "\"\$as_me:6290: $NM \\\"conftest.$ac_objext\\\"\"" >&5) +  (eval echo "\"\$as_me:6312: $NM \\\"conftest.$ac_objext\\\"\"" >&5)    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)    cat conftest.err >&5 -  (eval echo "\"\$as_me:6293: output\"" >&5) +  (eval echo "\"\$as_me:6315: output\"" >&5)    cat conftest.out >&5    if $GREP 'External.*some_variable' conftest.out > /dev/null; then      lt_cv_nm_interface="MS dumpbin" @@ -7493,7 +7515,7 @@ ia64-*-hpux*)    ;;  *-*-irix6*)    # Find out which ABI we are using. -  echo '#line 7496 "configure"' > conftest.$ac_ext +  echo '#line 7518 "configure"' > conftest.$ac_ext    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5    (eval $ac_compile) 2>&5    ac_status=$? @@ -9517,11 +9539,11 @@ else     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's:$: $lt_compiler_flag:'` -   (eval echo "\"\$as_me:9520: $lt_compile\"" >&5) +   (eval echo "\"\$as_me:9542: $lt_compile\"" >&5)     (eval "$lt_compile" 2>conftest.err)     ac_status=$?     cat conftest.err >&5 -   echo "$as_me:9524: \$? = $ac_status" >&5 +   echo "$as_me:9546: \$? = $ac_status" >&5     if (exit $ac_status) && test -s "$ac_outfile"; then       # The compiler can only warn and ignore the option if not recognized       # So say no if there are warnings other than the usual output. @@ -9856,11 +9878,11 @@ else     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's:$: $lt_compiler_flag:'` -   (eval echo "\"\$as_me:9859: $lt_compile\"" >&5) +   (eval echo "\"\$as_me:9881: $lt_compile\"" >&5)     (eval "$lt_compile" 2>conftest.err)     ac_status=$?     cat conftest.err >&5 -   echo "$as_me:9863: \$? = $ac_status" >&5 +   echo "$as_me:9885: \$? = $ac_status" >&5     if (exit $ac_status) && test -s "$ac_outfile"; then       # The compiler can only warn and ignore the option if not recognized       # So say no if there are warnings other than the usual output. @@ -9961,11 +9983,11 @@ else     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's:$: $lt_compiler_flag:'` -   (eval echo "\"\$as_me:9964: $lt_compile\"" >&5) +   (eval echo "\"\$as_me:9986: $lt_compile\"" >&5)     (eval "$lt_compile" 2>out/conftest.err)     ac_status=$?     cat out/conftest.err >&5 -   echo "$as_me:9968: \$? = $ac_status" >&5 +   echo "$as_me:9990: \$? = $ac_status" >&5     if (exit $ac_status) && test -s out/conftest2.$ac_objext     then       # The compiler can only warn and ignore the option if not recognized @@ -10016,11 +10038,11 @@ else     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's:$: $lt_compiler_flag:'` -   (eval echo "\"\$as_me:10019: $lt_compile\"" >&5) +   (eval echo "\"\$as_me:10041: $lt_compile\"" >&5)     (eval "$lt_compile" 2>out/conftest.err)     ac_status=$?     cat out/conftest.err >&5 -   echo "$as_me:10023: \$? = $ac_status" >&5 +   echo "$as_me:10045: \$? = $ac_status" >&5     if (exit $ac_status) && test -s out/conftest2.$ac_objext     then       # The compiler can only warn and ignore the option if not recognized @@ -12400,7 +12422,7 @@ else    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_status=$lt_dlunknown    cat > conftest.$ac_ext <<_LT_EOF -#line 12403 "configure" +#line 12425 "configure"  #include "confdefs.h"  #if HAVE_DLFCN_H @@ -12496,7 +12518,7 @@ else    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_status=$lt_dlunknown    cat > conftest.$ac_ext <<_LT_EOF -#line 12499 "configure" +#line 12521 "configure"  #include "confdefs.h"  #if HAVE_DLFCN_H @@ -14452,11 +14474,11 @@ else     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's:$: $lt_compiler_flag:'` -   (eval echo "\"\$as_me:14455: $lt_compile\"" >&5) +   (eval echo "\"\$as_me:14477: $lt_compile\"" >&5)     (eval "$lt_compile" 2>conftest.err)     ac_status=$?     cat conftest.err >&5 -   echo "$as_me:14459: \$? = $ac_status" >&5 +   echo "$as_me:14481: \$? = $ac_status" >&5     if (exit $ac_status) && test -s "$ac_outfile"; then       # The compiler can only warn and ignore the option if not recognized       # So say no if there are warnings other than the usual output. @@ -14551,11 +14573,11 @@ else     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's:$: $lt_compiler_flag:'` -   (eval echo "\"\$as_me:14554: $lt_compile\"" >&5) +   (eval echo "\"\$as_me:14576: $lt_compile\"" >&5)     (eval "$lt_compile" 2>out/conftest.err)     ac_status=$?     cat out/conftest.err >&5 -   echo "$as_me:14558: \$? = $ac_status" >&5 +   echo "$as_me:14580: \$? = $ac_status" >&5     if (exit $ac_status) && test -s out/conftest2.$ac_objext     then       # The compiler can only warn and ignore the option if not recognized @@ -14603,11 +14625,11 @@ else     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's:$: $lt_compiler_flag:'` -   (eval echo "\"\$as_me:14606: $lt_compile\"" >&5) +   (eval echo "\"\$as_me:14628: $lt_compile\"" >&5)     (eval "$lt_compile" 2>out/conftest.err)     ac_status=$?     cat out/conftest.err >&5 -   echo "$as_me:14610: \$? = $ac_status" >&5 +   echo "$as_me:14632: \$? = $ac_status" >&5     if (exit $ac_status) && test -s out/conftest2.$ac_objext     then       # The compiler can only warn and ignore the option if not recognized @@ -15584,7 +15606,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu      # Test that compiler for the current language actually works      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5  $as_echo_n "checking whether the C compiler works... " >&6; } -if test "${ac_zmq_cv_c_compiler_works+set}" = set; then : +if test "${libzmq_cv_c_compiler_works+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15599,25 +15621,25 @@ main ()  }  _ACEOF  if ac_fn_c_try_link "$LINENO"; then : -  ac_zmq_cv_c_compiler_works="yes" ; +  libzmq_cv_c_compiler_works="yes" ;  else -  ac_zmq_cv_c_compiler_works="no" ; +  libzmq_cv_c_compiler_works="no" ;  fi  rm -f core conftest.err conftest.$ac_objext \      conftest$ac_exeext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_c_compiler_works" >&5 -$as_echo "$ac_zmq_cv_c_compiler_works" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_compiler_works" >&5 +$as_echo "$libzmq_cv_c_compiler_works" >&6; } -    if test "x$ac_zmq_cv_c_compiler_works" != "xyes"; then +    if test "x$libzmq_cv_c_compiler_works" != "xyes"; then          as_fn_error $? "Unable to find a working C compiler" "$LINENO" 5      fi  }      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler" >&5  $as_echo_n "checking whether we are using Intel C compiler... " >&6; } -if test "${ac_zmq_cv_c_intel_compiler+set}" = set; then : +if test "${libzmq_cv_c_intel_compiler+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15635,18 +15657,18 @@ main ()  }  _ACEOF  if ac_fn_c_try_compile "$LINENO"; then : -  ac_zmq_cv_c_intel_compiler="yes" ; +  libzmq_cv_c_intel_compiler="yes" ;  else -  ac_zmq_cv_c_intel_compiler="no" ; +  libzmq_cv_c_intel_compiler="no" ;  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_c_intel_compiler" >&5 -$as_echo "$ac_zmq_cv_c_intel_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_intel_compiler" >&5 +$as_echo "$libzmq_cv_c_intel_compiler" >&6; }      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Sun Studio C compiler" >&5  $as_echo_n "checking whether we are using Sun Studio C compiler... " >&6; } -if test "${ac_zmq_cv_c_sun_studio_compiler+set}" = set; then : +if test "${libzmq_cv_c_sun_studio_compiler+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15664,18 +15686,18 @@ main ()  }  _ACEOF  if ac_fn_c_try_compile "$LINENO"; then : -  ac_zmq_cv_c_sun_studio_compiler="yes" ; +  libzmq_cv_c_sun_studio_compiler="yes" ;  else -  ac_zmq_cv_c_sun_studio_compiler="no" ; +  libzmq_cv_c_sun_studio_compiler="no" ;  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_c_sun_studio_compiler" >&5 -$as_echo "$ac_zmq_cv_c_sun_studio_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_sun_studio_compiler" >&5 +$as_echo "$libzmq_cv_c_sun_studio_compiler" >&6; }      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using clang C compiler" >&5  $as_echo_n "checking whether we are using clang C compiler... " >&6; } -if test "${ac_zmq_cv_c_clang_compiler+set}" = set; then : +if test "${libzmq_cv_c_clang_compiler+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15693,18 +15715,18 @@ main ()  }  _ACEOF  if ac_fn_c_try_compile "$LINENO"; then : -  ac_zmq_cv_c_clang_compiler="yes" ; +  libzmq_cv_c_clang_compiler="yes" ;  else -  ac_zmq_cv_c_clang_compiler="no" ; +  libzmq_cv_c_clang_compiler="no" ;  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_c_clang_compiler" >&5 -$as_echo "$ac_zmq_cv_c_clang_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_clang_compiler" >&5 +$as_echo "$libzmq_cv_c_clang_compiler" >&6; }      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc >= 4 C compiler" >&5  $as_echo_n "checking whether we are using gcc >= 4 C compiler... " >&6; } -if test "${ac_zmq_cv_c_gcc4_compiler+set}" = set; then : +if test "${libzmq_cv_c_gcc4_compiler+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15722,15 +15744,15 @@ main ()  }  _ACEOF  if ac_fn_c_try_compile "$LINENO"; then : -  ac_zmq_cv_c_gcc4_compiler="yes" ; +  libzmq_cv_c_gcc4_compiler="yes" ;  else -  ac_zmq_cv_c_gcc4_compiler="no" ; +  libzmq_cv_c_gcc4_compiler="no" ;  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_c_gcc4_compiler" >&5 -$as_echo "$ac_zmq_cv_c_gcc4_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_gcc4_compiler" >&5 +$as_echo "$libzmq_cv_c_gcc4_compiler" >&6; }      ac_ext=c  ac_cpp='$CPP $CPPFLAGS'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -15748,7 +15770,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu      # Test that compiler for the current language actually works      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5  $as_echo_n "checking whether the C++ compiler works... " >&6; } -if test "${ac_zmq_cv_cxx_compiler_works+set}" = set; then : +if test "${libzmq_cv_cxx_compiler_works+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15763,25 +15785,25 @@ main ()  }  _ACEOF  if ac_fn_cxx_try_link "$LINENO"; then : -  ac_zmq_cv_cxx_compiler_works="yes" ; +  libzmq_cv_cxx_compiler_works="yes" ;  else -  ac_zmq_cv_cxx_compiler_works="no" ; +  libzmq_cv_cxx_compiler_works="no" ;  fi  rm -f core conftest.err conftest.$ac_objext \      conftest$ac_exeext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_cxx_compiler_works" >&5 -$as_echo "$ac_zmq_cv_cxx_compiler_works" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_compiler_works" >&5 +$as_echo "$libzmq_cv_cxx_compiler_works" >&6; } -    if test "x$ac_zmq_cv_cxx_compiler_works" != "xyes"; then +    if test "x$libzmq_cv_cxx_compiler_works" != "xyes"; then          as_fn_error $? "Unable to find a working C++ compiler" "$LINENO" 5      fi  }      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C++ compiler" >&5  $as_echo_n "checking whether we are using Intel C++ compiler... " >&6; } -if test "${ac_zmq_cv_cxx_intel_compiler+set}" = set; then : +if test "${libzmq_cv_cxx_intel_compiler+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15799,18 +15821,18 @@ main ()  }  _ACEOF  if ac_fn_cxx_try_compile "$LINENO"; then : -  ac_zmq_cv_cxx_intel_compiler="yes" ; +  libzmq_cv_cxx_intel_compiler="yes" ;  else -  ac_zmq_cv_cxx_intel_compiler="no" ; +  libzmq_cv_cxx_intel_compiler="no" ;  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_cxx_intel_compiler" >&5 -$as_echo "$ac_zmq_cv_cxx_intel_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_intel_compiler" >&5 +$as_echo "$libzmq_cv_cxx_intel_compiler" >&6; }      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Sun Studio C++ compiler" >&5  $as_echo_n "checking whether we are using Sun Studio C++ compiler... " >&6; } -if test "${ac_zmq_cv_cxx_sun_studio_compiler+set}" = set; then : +if test "${libzmq_cv_cxx_sun_studio_compiler+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15828,18 +15850,18 @@ main ()  }  _ACEOF  if ac_fn_cxx_try_compile "$LINENO"; then : -  ac_zmq_cv_cxx_sun_studio_compiler="yes" ; +  libzmq_cv_cxx_sun_studio_compiler="yes" ;  else -  ac_zmq_cv_cxx_sun_studio_compiler="no" ; +  libzmq_cv_cxx_sun_studio_compiler="no" ;  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_cxx_sun_studio_compiler" >&5 -$as_echo "$ac_zmq_cv_cxx_sun_studio_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_sun_studio_compiler" >&5 +$as_echo "$libzmq_cv_cxx_sun_studio_compiler" >&6; }      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using clang C++ compiler" >&5  $as_echo_n "checking whether we are using clang C++ compiler... " >&6; } -if test "${ac_zmq_cv_cxx_clang_compiler+set}" = set; then : +if test "${libzmq_cv_cxx_clang_compiler+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15857,18 +15879,18 @@ main ()  }  _ACEOF  if ac_fn_cxx_try_compile "$LINENO"; then : -  ac_zmq_cv_cxx_clang_compiler="yes" ; +  libzmq_cv_cxx_clang_compiler="yes" ;  else -  ac_zmq_cv_cxx_clang_compiler="no" ; +  libzmq_cv_cxx_clang_compiler="no" ;  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_cxx_clang_compiler" >&5 -$as_echo "$ac_zmq_cv_cxx_clang_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_clang_compiler" >&5 +$as_echo "$libzmq_cv_cxx_clang_compiler" >&6; }      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc >= 4 C++ compiler" >&5  $as_echo_n "checking whether we are using gcc >= 4 C++ compiler... " >&6; } -if test "${ac_zmq_cv_cxx_gcc4_compiler+set}" = set; then : +if test "${libzmq_cv_cxx_gcc4_compiler+set}" = set; then :    $as_echo_n "(cached) " >&6  else    cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15886,15 +15908,15 @@ main ()  }  _ACEOF  if ac_fn_cxx_try_compile "$LINENO"; then : -  ac_zmq_cv_cxx_gcc4_compiler="yes" ; +  libzmq_cv_cxx_gcc4_compiler="yes" ;  else -  ac_zmq_cv_cxx_gcc4_compiler="no" ; +  libzmq_cv_cxx_gcc4_compiler="no" ;  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_cv_cxx_gcc4_compiler" >&5 -$as_echo "$ac_zmq_cv_cxx_gcc4_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_gcc4_compiler" >&5 +$as_echo "$libzmq_cv_cxx_gcc4_compiler" >&6; }      ac_ext=c  ac_cpp='$CPP $CPPFLAGS'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -15904,13 +15926,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu      # Set GCC and GXX variables correctly      if test "x$GCC" = "xyes"; then -        if test "xyes" = "x$ac_zmq_cv_c_intel_compiler"; then +        if test "xyes" = "x$libzmq_cv_c_intel_compiler"; then              GCC="no"          fi      fi      if test "x$GXX" = "xyes"; then -        if test "xyes" = "x$ac_zmq_cv_cxx_intel_compiler"; then +        if test "xyes" = "x$libzmq_cv_cxx_intel_compiler"; then              GXX="no"          fi      fi @@ -15934,21 +15956,21 @@ $as_echo_n "checking whether to enable debugging information... " >&6; }          # GCC, clang and ICC          if test "x$GCC" = "xyes" -o \ -                "x$ac_zmq_cv_c_intel_compiler" = "xyes" -o \ -                "x$ac_zmq_cv_c_clang_compiler" = "xyes"; then +                "x$libzmq_cv_c_intel_compiler" = "xyes" -o \ +                "x$libzmq_cv_c_clang_compiler" = "xyes"; then              CFLAGS="-g -O0 " -        elif test "x$ac_zmq_cv_c_sun_studio_compiler" = "xyes"; then +        elif test "x$libzmq_cv_c_sun_studio_compiler" = "xyes"; then              CFLAGS="-g0 "          fi          # GCC, clang and ICC          if test "x$GXX" = "xyes" -o \ -                "x$ac_zmq_cv_cxx_intel_compiler" = "xyes" -o \ -                "x$ac_zmq_cv_cxx_clang_compiler" = "xyes"; then +                "x$libzmq_cv_cxx_intel_compiler" = "xyes" -o \ +                "x$libzmq_cv_cxx_clang_compiler" = "xyes"; then              CPPFLAGS="-g -O0 "              CXXFLAGS="-g -O0 "          # Sun studio -        elif test "x$ac_zmq_cv_cxx_sun_studio_compiler" = "xyes"; then +        elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then              CPPFLAGS="-g0 "              CXXFLAGS="-g0 "          fi @@ -15970,6 +15992,54 @@ $as_echo "no" >&6; }      fi  } +# Check wheter to enable code coverage +{ +    # Require compiler specifics + + + +# Check whether --with-gcov was given. +if test "${with_gcov+set}" = set; then : +  withval=$with_gcov; ZMQ_GCOV="$withval" +fi + + +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable code coverage" >&5 +$as_echo_n "checking whether to enable code coverage... " >&6; } + +    if test "x$ZMQ_GCOV" = "xyes"; then + +        if test "x$GXX" != "xyes"; then +            as_fn_error $? "--with-gcov=yes works only with GCC" "$LINENO" 5 +        fi + +        CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage" +        if test "x${ZMQ_ORIG_CPPFLAGS}" != "xnone"; then +            CFLAGS="${CFLAGS} ${ZMQ_ORIG_CFLAGS}" +        fi + +        CPPFLAGS="-g -O0 -fprofile-arcs -ftest-coverage" +        if test "x${ZMQ_ORIG_CPPFLAGS}" != "xnone"; then +            CPPFLAGS="${CPPFLAGS} ${ZMQ_ORIG_CPPFLAGS}" +        fi + +        CXXFLAGS="-fprofile-arcs" +        if test "x${ZMQ_ORIG_CXXFLAGS}" != "xnone"; then +            CXXFLAGS="${CXXFLAGS} ${ZMQ_ORIG_CXXFLAGS}" +        fi + +        LIBS="-lgcov ${LIBS}" +    fi + +    if test "x$ZMQ_GCOV" = "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 +} +  # Checks for libraries.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5  $as_echo_n "checking for pthread_create in -lpthread... " >&6; } @@ -16018,16 +16088,16 @@ fi  # Set pedantic -ac_zmq_pedantic="yes" +libzmq_pedantic="yes"  # By default compiling with -Werror except OSX. -ac_zmq_werror="yes" +libzmq_werror="yes"  # By default use DSO visibility -ac_zmq_dso_visibility="yes" +libzmq_dso_visibility="yes"  # Whether we are on mingw or not. -ac_zmq_on_mingw32="no" +libzmq_on_mingw32="no"  # Set some default features required by 0MQ code.  CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE $CPPFLAGS" @@ -16366,8 +16436,8 @@ $as_echo "#define ZMQ_HAVE_FREEBSD 1" >>confdefs.h      *darwin*)          # Define on Darwin to enable all library features          CPPFLAGS="-D_DARWIN_C_SOURCE $CPPFLAGS" -        ac_zmq_pedantic="no" -        ac_zmq_werror="no" +        libzmq_pedantic="no" +        libzmq_werror="no"  $as_echo "#define ZMQ_HAVE_OSX 1" >>confdefs.h @@ -16385,16 +16455,16 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports -Wno-uninitialized" >&5  $as_echo_n "checking whether C++ compiler supports -Wno-uninitialized... " >&6; } -    ac_zmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag +    libzmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag      ac_cxx_werror_flag="yes"      case "xcxx" in          xc) -            ac_zmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS" +            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"              CFLAGS="$CFLAGS -Wno-uninitialized"          ;;          xcxx) -            ac_zmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS" +            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"              CPPFLAGS="$CPPFLAGS -Wno-uninitialized"          ;;          *) @@ -16419,21 +16489,21 @@ if ac_fn_cxx_try_compile "$LINENO"; then :                        # 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 ac_zmq_cv_cxx_supports_flag__Wno_uninitialized="no" +                           eval libzmq_cv_cxx_supports_flag__Wno_uninitialized="no"                         else -                           eval ac_zmq_cv_cxx_supports_flag__Wno_uninitialized="yes" +                           eval libzmq_cv_cxx_supports_flag__Wno_uninitialized="yes"                         fi  else -  eval ac_zmq_cv_cxx_supports_flag__Wno_uninitialized="no" +  eval libzmq_cv_cxx_supports_flag__Wno_uninitialized="no"  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext      case "xcxx" in          xc) -            CFLAGS="$ac_zmq_cv_check_lang_flag_save_CFLAGS" +            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"          ;;          xcxx) -            CPPFLAGS="$ac_zmq_cv_check_lang_flag_save_CPPFLAGS" +            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"          ;;          *)              # nothing to restore @@ -16441,10 +16511,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext      esac      # Restore the werror flag -    ac_cxx_werror_flag=$ac_zmq_cv_cxx_werror_flag_save +    ac_cxx_werror_flag=$libzmq_cv_cxx_werror_flag_save      # Call the action as the flags are restored -    if eval test x$ac_zmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then : +    if eval test x$libzmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then :    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5  $as_echo "yes" >&6; } ;  else @@ -16455,12 +16525,12 @@ fi  }      case "xcxx" in         xc) -            if eval test x$ac_zmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then : +            if eval test x$libzmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then :    CFLAGS="-Wno-uninitialized $CFLAGS";  fi         ;;         xcxx) -            if eval test x$ac_zmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then : +            if eval test x$libzmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then :    CPPFLAGS="-Wno-uninitialized $CPPFLAGS";  fi         ;; @@ -16482,7 +16552,7 @@ $as_echo "#define ZMQ_HAVE_NETBSD 1" >>confdefs.h          # NetBSD 5.0 and newer provides atomic operations but we can          # only use these on systems where PR #42842 has been fixed so          # we must try and link a test program using C++. -        ac_zmq_netbsd_has_atomic=no +        libzmq_netbsd_has_atomic=no          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic operations can be used" >&5  $as_echo_n "checking whether atomic operations can be used... " >&6; }          ac_ext=cpp @@ -16505,9 +16575,9 @@ uint32_t value;  }  _ACEOF  if ac_fn_cxx_try_link "$LINENO"; then : -  ac_zmq_netbsd_has_atomic=yes +  libzmq_netbsd_has_atomic=yes  else -  ac_zmq_netbsd_has_atomic=no +  libzmq_netbsd_has_atomic=no  fi  rm -f core conftest.err conftest.$ac_objext \      conftest$ac_exeext conftest.$ac_ext @@ -16517,9 +16587,9 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_compiler_gnu=$ac_cv_c_compiler_gnu -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_zmq_netbsd_has_atomic" >&5 -$as_echo "$ac_zmq_netbsd_has_atomic" >&6; } -        if test "x$ac_zmq_netbsd_has_atomic" = "xno"; then +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_netbsd_has_atomic" >&5 +$as_echo "$libzmq_netbsd_has_atomic" >&6; } +        if test "x$libzmq_netbsd_has_atomic" = "xno"; then  $as_echo "#define ZMQ_FORCE_MUTEXES 1" >>confdefs.h @@ -16533,7 +16603,7 @@ $as_echo "#define ZMQ_HAVE_OPENBSD 1" >>confdefs.h          ;;      *nto-qnx*) -        ac_zmq_pedantic="no" +        libzmq_pedantic="no"  $as_echo "#define ZMQ_HAVE_QNXNTO 1" >>confdefs.h @@ -16932,16 +17002,16 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports -Wno-long-long" >&5  $as_echo_n "checking whether C++ compiler supports -Wno-long-long... " >&6; } -    ac_zmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag +    libzmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag      ac_cxx_werror_flag="yes"      case "xcxx" in          xc) -            ac_zmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS" +            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"              CFLAGS="$CFLAGS -Wno-long-long"          ;;          xcxx) -            ac_zmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS" +            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"              CPPFLAGS="$CPPFLAGS -Wno-long-long"          ;;          *) @@ -16966,21 +17036,21 @@ if ac_fn_cxx_try_compile "$LINENO"; then :                        # 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 ac_zmq_cv_cxx_supports_flag__Wno_long_long="no" +                           eval libzmq_cv_cxx_supports_flag__Wno_long_long="no"                         else -                           eval ac_zmq_cv_cxx_supports_flag__Wno_long_long="yes" +                           eval libzmq_cv_cxx_supports_flag__Wno_long_long="yes"                         fi  else -  eval ac_zmq_cv_cxx_supports_flag__Wno_long_long="no" +  eval libzmq_cv_cxx_supports_flag__Wno_long_long="no"  fi  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext      case "xcxx" in          xc) -            CFLAGS="$ac_zmq_cv_check_lang_flag_save_CFLAGS" +            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"          ;;          xcxx) -            CPPFLAGS="$ac_zmq_cv_check_lang_flag_save_CPPFLAGS" +            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"          ;;          *)              # nothing to restore @@ -16988,10 +17058,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext      esac      # Restore the werror flag -    ac_cxx_werror_flag=$ac_zmq_cv_cxx_werror_flag_save +    ac_cxx_werror_flag=$libzmq_cv_cxx_werror_flag_save      # Call the action as the flags are restored -    if eval test x$ac_zmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then : +    if eval test x$libzmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then :    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5  $as_echo "yes" >&6; } ;  else @@ -17002,12 +17072,12 @@ fi  }      case "xcxx" in         xc) -            if eval test x$ac_zmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then : +            if eval test x$libzmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then :    CFLAGS="-Wno-long-long $CFLAGS";  fi         ;;         xcxx) -            if eval test x$ac_zmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then : +            if eval test x$libzmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then :    CPPFLAGS="-Wno-long-long $CPPFLAGS";  fi         ;; @@ -17019,8 +17089,8 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_compiler_gnu=$ac_cv_c_compiler_gnu -        ac_zmq_on_mingw32="yes" -        ac_zmq_dso_visibility="no" +        libzmq_on_mingw32="yes" +        libzmq_dso_visibility="no"          if test "x$enable_static" = "xyes"; then              as_fn_error $? "Building static libraries is not supported under MinGW32" "$LINENO" 5 @@ -17095,191 +17165,7 @@ esac  #  # Check if the compiler supports -fvisibility=hidden flag. MinGW32 uses __declspec  # -if test "x$ac_zmq_dso_visibility" = "xyes"; then -    ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -    { - -    ac_zmq_cv_c_visibility_flag="" - -    if test "x$ac_zmq_cv_c_intel_compiler" = "xyes" -o \ -            "x$ac_zmq_cv_c_clang_compiler" = "xyes" -o \ -            "x$ac_zmq_cv_c_gcc4_compiler" = "xyes"; then -        { - - - -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fvisibility=hidden" >&5 -$as_echo_n "checking whether C compiler supports -fvisibility=hidden... " >&6; } - -    ac_zmq_cv_c_werror_flag_save=$ac_c_werror_flag -    ac_c_werror_flag="yes" - -    case "xc" in -        xc) -            ac_zmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS" -            CFLAGS="$CFLAGS -fvisibility=hidden" -        ;; -        xcxx) -            ac_zmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS" -            CPPFLAGS="$CPPFLAGS -fvisibility=hidden" -        ;; -        *) -            { $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 `$as_ec | 
