configure (tcpflow-1.5.0) | : | configure (tcpflow-1.6.1) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# Guess values for system-dependent variables and create Makefiles. | # Guess values for system-dependent variables and create Makefiles. | |||
# Generated by GNU Autoconf 2.69 for TCPFLOW 1.5.0. | # Generated by GNU Autoconf 2.69 for TCPFLOW 1.6.1. | |||
# | # | |||
# Report bugs to <simsong@acm.org>. | # Report bugs to <simsong@acm.org>. | |||
# | # | |||
# | # | |||
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |||
# | # | |||
# | # | |||
# This configure script is free software; the Free Software Foundation | # This configure script is free software; the Free Software Foundation | |||
# gives unlimited permission to copy, distribute and modify it. | # gives unlimited permission to copy, distribute and modify it. | |||
## -------------------- ## | ## -------------------- ## | |||
skipping to change at line 576 | skipping to change at line 576 | |||
ac_config_libobj_dir=. | ac_config_libobj_dir=. | |||
LIBOBJS= | LIBOBJS= | |||
cross_compiling=no | cross_compiling=no | |||
subdirs= | subdirs= | |||
MFLAGS= | MFLAGS= | |||
MAKEFLAGS= | MAKEFLAGS= | |||
# Identity of this package. | # Identity of this package. | |||
PACKAGE_NAME='TCPFLOW' | PACKAGE_NAME='TCPFLOW' | |||
PACKAGE_TARNAME='tcpflow' | PACKAGE_TARNAME='tcpflow' | |||
PACKAGE_VERSION='1.5.0' | PACKAGE_VERSION='1.6.1' | |||
PACKAGE_STRING='TCPFLOW 1.5.0' | PACKAGE_STRING='TCPFLOW 1.6.1' | |||
PACKAGE_BUGREPORT='simsong@acm.org' | PACKAGE_BUGREPORT='simsong@acm.org' | |||
PACKAGE_URL='' | PACKAGE_URL='' | |||
# Factoring default headers for most tests. | # Factoring default headers for most tests. | |||
ac_includes_default="\ | ac_includes_default="\ | |||
#include <stdio.h> | #include <stdio.h> | |||
#ifdef HAVE_SYS_TYPES_H | #ifdef HAVE_SYS_TYPES_H | |||
# include <sys/types.h> | # include <sys/types.h> | |||
#endif | #endif | |||
#ifdef HAVE_SYS_STAT_H | #ifdef HAVE_SYS_STAT_H | |||
skipping to change at line 623 | skipping to change at line 623 | |||
#ifdef HAVE_UNISTD_H | #ifdef HAVE_UNISTD_H | |||
# include <unistd.h> | # include <unistd.h> | |||
#endif" | #endif" | |||
ac_subst_vars='am__EXEEXT_FALSE | ac_subst_vars='am__EXEEXT_FALSE | |||
am__EXEEXT_TRUE | am__EXEEXT_TRUE | |||
LTLIBOBJS | LTLIBOBJS | |||
LIBOBJS | LIBOBJS | |||
WIFI_ENABLED_FALSE | WIFI_ENABLED_FALSE | |||
WIFI_ENABLED_TRUE | WIFI_ENABLED_TRUE | |||
PTHREAD_CFLAGS | ||||
PTHREAD_LIBS | ||||
PTHREAD_CC | ||||
ax_pthread_config | ||||
host_os | ||||
host_vendor | ||||
host_cpu | ||||
host | ||||
build_os | ||||
build_vendor | ||||
build_cpu | ||||
build | ||||
FOUND_GIT_FALSE | FOUND_GIT_FALSE | |||
FOUND_GIT_TRUE | FOUND_GIT_TRUE | |||
git | git | |||
HAVE_CXX11 | HAVE_CXX17 | |||
CXXCPP | CXXCPP | |||
am__fastdepCXX_FALSE | am__fastdepCXX_FALSE | |||
am__fastdepCXX_TRUE | am__fastdepCXX_TRUE | |||
CXXDEPMODE | CXXDEPMODE | |||
ac_ct_CXX | ac_ct_CXX | |||
CXXFLAGS | CXXFLAGS | |||
CXX | CXX | |||
EGREP | EGREP | |||
GREP | GREP | |||
CPP | CPP | |||
skipping to change at line 1297 | skipping to change at line 1285 | |||
eval ac_cv_env_${ac_var}_value=\$${ac_var} | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |||
done | done | |||
# | # | |||
# Report the --help message. | # Report the --help message. | |||
# | # | |||
if test "$ac_init_help" = "long"; then | if test "$ac_init_help" = "long"; then | |||
# Omit some internal or obsolete options to make the list less imposing. | # 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. | # This message is too long to be a string in the A/UX 3.1 sh. | |||
cat <<_ACEOF | cat <<_ACEOF | |||
\`configure' configures TCPFLOW 1.5.0 to adapt to many kinds of systems. | \`configure' configures TCPFLOW 1.6.1 to adapt to many kinds of systems. | |||
Usage: $0 [OPTION]... [VAR=VALUE]... | Usage: $0 [OPTION]... [VAR=VALUE]... | |||
To assign environment variables (e.g., CC, CFLAGS...), specify them as | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |||
VAR=VALUE. See below for descriptions of some of the useful variables. | VAR=VALUE. See below for descriptions of some of the useful variables. | |||
Defaults for the options are specified in brackets. | Defaults for the options are specified in brackets. | |||
Configuration: | Configuration: | |||
-h, --help display this help and exit | -h, --help display this help and exit | |||
skipping to change at line 1358 | skipping to change at line 1346 | |||
--pdfdir=DIR pdf documentation [DOCDIR] | --pdfdir=DIR pdf documentation [DOCDIR] | |||
--psdir=DIR ps documentation [DOCDIR] | --psdir=DIR ps documentation [DOCDIR] | |||
_ACEOF | _ACEOF | |||
cat <<\_ACEOF | cat <<\_ACEOF | |||
Program names: | Program names: | |||
--program-prefix=PREFIX prepend PREFIX to installed program names | --program-prefix=PREFIX prepend PREFIX to installed program names | |||
--program-suffix=SUFFIX append SUFFIX to installed program names | --program-suffix=SUFFIX append SUFFIX to installed program names | |||
--program-transform-name=PROGRAM run sed PROGRAM on installed program names | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |||
System types: | ||||
--build=BUILD configure for building on BUILD [guessed] | ||||
--host=HOST cross-compile to build programs to run on HOST [BUILD] | ||||
_ACEOF | _ACEOF | |||
fi | fi | |||
if test -n "$ac_init_help"; then | if test -n "$ac_init_help"; then | |||
case $ac_init_help in | case $ac_init_help in | |||
short | recursive ) echo "Configuration of TCPFLOW 1.5.0:";; | short | recursive ) echo "Configuration of TCPFLOW 1.6.1:";; | |||
esac | esac | |||
cat <<\_ACEOF | cat <<\_ACEOF | |||
Optional Features: | Optional Features: | |||
--disable-option-checking ignore unrecognized --enable/--with options | --disable-option-checking ignore unrecognized --enable/--with options | |||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |||
--enable-silent-rules less verbose build output (undo: "make V=1") | --enable-silent-rules less verbose build output (undo: "make V=1") | |||
--disable-silent-rules verbose build output (undo: "make V=0") | --disable-silent-rules verbose build output (undo: "make V=0") | |||
--enable-maintainer-mode | --enable-maintainer-mode | |||
skipping to change at line 1473 | skipping to change at line 1457 | |||
else | else | |||
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |||
fi || ac_status=$? | fi || ac_status=$? | |||
cd "$ac_pwd" || { ac_status=$?; break; } | cd "$ac_pwd" || { ac_status=$?; break; } | |||
done | done | |||
fi | fi | |||
test -n "$ac_init_help" && exit $ac_status | test -n "$ac_init_help" && exit $ac_status | |||
if $ac_init_version; then | if $ac_init_version; then | |||
cat <<\_ACEOF | cat <<\_ACEOF | |||
TCPFLOW configure 1.5.0 | TCPFLOW configure 1.6.1 | |||
generated by GNU Autoconf 2.69 | generated by GNU Autoconf 2.69 | |||
Copyright (C) 2012 Free Software Foundation, Inc. | Copyright (C) 2012 Free Software Foundation, Inc. | |||
This configure script is free software; the Free Software Foundation | This configure script is free software; the Free Software Foundation | |||
gives unlimited permission to copy, distribute and modify it. | gives unlimited permission to copy, distribute and modify it. | |||
_ACEOF | _ACEOF | |||
exit | exit | |||
fi | fi | |||
## ------------------------ ## | ## ------------------------ ## | |||
skipping to change at line 2062 | skipping to change at line 2046 | |||
eval ac_res=\$$3 | eval ac_res=\$$3 | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |||
$as_echo "$ac_res" >&6; } | $as_echo "$ac_res" >&6; } | |||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |||
} # ac_fn_c_check_type | } # ac_fn_c_check_type | |||
cat >config.log <<_ACEOF | cat >config.log <<_ACEOF | |||
This file contains any messages produced by compilers while | This file contains any messages produced by compilers while | |||
running configure, to aid debugging if configure makes a mistake. | running configure, to aid debugging if configure makes a mistake. | |||
It was created by TCPFLOW $as_me 1.5.0, which was | It was created by TCPFLOW $as_me 1.6.1, which was | |||
generated by GNU Autoconf 2.69. Invocation command line was | generated by GNU Autoconf 2.69. Invocation command line was | |||
$ $0 $@ | $ $0 $@ | |||
_ACEOF | _ACEOF | |||
exec 5>>config.log | exec 5>>config.log | |||
{ | { | |||
cat <<_ASUNAME | cat <<_ASUNAME | |||
## --------- ## | ## --------- ## | |||
## Platform. ## | ## Platform. ## | |||
skipping to change at line 2619 | skipping to change at line 2603 | |||
program_transform_name="s&\$&$program_suffix&;$program_transform_name" | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |||
# Double any \ or $. | # Double any \ or $. | |||
# By default was `s,x,x', remove it if useless. | # By default was `s,x,x', remove it if useless. | |||
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |||
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |||
# Expand $ac_aux_dir to an absolute path. | # Expand $ac_aux_dir to an absolute path. | |||
am_aux_dir=`cd "$ac_aux_dir" && pwd` | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |||
if test x"${MISSING+set}" != xset; then | if test x"${MISSING+set}" != xset; then | |||
case $am_aux_dir in | MISSING="\${SHELL} '$am_aux_dir/missing'" | |||
*\ * | *\ *) | ||||
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||||
*) | ||||
MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||||
esac | ||||
fi | fi | |||
# Use eval to expand $SHELL | # Use eval to expand $SHELL | |||
if eval "$MISSING --is-lightweight"; then | if eval "$MISSING --is-lightweight"; then | |||
am_missing_run="$MISSING " | am_missing_run="$MISSING " | |||
else | else | |||
am_missing_run= | am_missing_run= | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |||
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |||
fi | fi | |||
skipping to change at line 2926 | skipping to change at line 2905 | |||
if test -z "$CYGPATH_W"; then | if test -z "$CYGPATH_W"; then | |||
if (cygpath --version) >/dev/null 2>/dev/null; then | if (cygpath --version) >/dev/null 2>/dev/null; then | |||
CYGPATH_W='cygpath -w' | CYGPATH_W='cygpath -w' | |||
else | else | |||
CYGPATH_W=echo | CYGPATH_W=echo | |||
fi | fi | |||
fi | fi | |||
# Define the identity of the package. | # Define the identity of the package. | |||
PACKAGE='tcpflow' | PACKAGE='tcpflow' | |||
VERSION='1.5.0' | VERSION='1.6.1' | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define PACKAGE "$PACKAGE" | #define PACKAGE "$PACKAGE" | |||
_ACEOF | _ACEOF | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define VERSION "$VERSION" | #define VERSION "$VERSION" | |||
_ACEOF | _ACEOF | |||
# Some tools Automake needs. | # Some tools Automake needs. | |||
skipping to change at line 5884 | skipping to change at line 5863 | |||
;; | ;; | |||
*) | *) | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Compiling under $host." >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling under $host." >&5 | |||
$as_echo "$as_me: Compiling under $host." >&6;} | $as_echo "$as_me: Compiling under $host." >&6;} | |||
# Bring additional directories where things might be found into our | # Bring additional directories where things might be found into our | |||
# search path. I don't know why autoconf doesn't do this by default | # search path. I don't know why autoconf doesn't do this by default | |||
for spfx in /usr/local /opt/local /sw /usr/local/ssl; do | for spfx in /usr/local /opt/local /sw /usr/local/ssl; do | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ${spfx}/include" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ${spfx}/include" >&5 | |||
$as_echo "$as_me: checking ${spfx}/include" >&6;} | $as_echo "$as_me: checking ${spfx}/include" >&6;} | |||
if test -d ${spfx}/include; then | if test -d ${spfx}/include; then | |||
CPPFLAGS="-I${spfx}/include $CPPFLAGS" | CPPFLAGS="$CPPFLAGS -I${spfx}/include" | |||
LDFLAGS="-L${spfx}/lib $LDFLAGS" | LDFLAGS="$LDFLAGS -L${spfx}/lib" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: *** ADDING ${spfx}/include to CPPFLAGS *** " >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: *** ADDING ${spfx}/include to CPPFLAGS *** " >&5 | |||
$as_echo "$as_me: *** ADDING ${spfx}/include to CPPFLAGS *** " >&6;} | $as_echo "$as_me: *** ADDING ${spfx}/include to CPPFLAGS *** " >&6;} | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: *** ADDING ${spfx}/lib to L DFLAGS *** " >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: *** ADDING ${spfx}/lib to L DFLAGS *** " >&5 | |||
$as_echo "$as_me: *** ADDING ${spfx}/lib to LDFLAGS *** " >&6;} | $as_echo "$as_me: *** ADDING ${spfx}/lib to LDFLAGS *** " >&6;} | |||
fi | fi | |||
done | done | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: CPPFLAGS = ${CPPFLAGS} " >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: CPPFLAGS = ${CPPFLAGS} " >&5 | |||
$as_echo "$as_me: CPPFLAGS = ${CPPFLAGS} " >&6;} | $as_echo "$as_me: CPPFLAGS = ${CPPFLAGS} " >&6;} | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS = ${LDFLAGS} " >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS = ${LDFLAGS} " >&5 | |||
$as_echo "$as_me: LDFLAGS = ${LDFLAGS} " >&6;} | $as_echo "$as_me: LDFLAGS = ${LDFLAGS} " >&6;} | |||
skipping to change at line 6187 | skipping to change at line 6166 | |||
unset has_option | unset has_option | |||
unset SAVE_CXXFLAGS | unset SAVE_CXXFLAGS | |||
done | done | |||
unset option | unset option | |||
ac_ext=c | ac_ext=c | |||
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 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_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
# use C++11 mode if available; HAVE_CXX11 is defined in config.h if so. Don't | # Must use C++17 mode. (mandatory) | |||
# use the GNU C++11 extensions for portability's sake (noext). | ||||
ac_ext=cpp | ac_ext=cpp | |||
ac_cpp='$CXXCPP $CPPFLAGS' | ac_cpp='$CXXCPP $CPPFLAGS' | |||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5' | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |||
ax_cxx_compile_cxx11_required=falsednl | ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true | |||
ac_ext=cpp | ac_ext=cpp | |||
ac_cpp='$CXXCPP $CPPFLAGS' | ac_cpp='$CXXCPP $CPPFLAGS' | |||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5' | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |||
ac_success=no | ac_success=no | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 | ||||
features by default" >&5 | if test x$ac_success = xno; then | |||
$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | for alternative in ${ax_cxx_compile_alternatives}; do | |||
if ${ax_cv_cxx_compile_cxx11+:} false; then : | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${a | |||
lternative}"; do | ||||
cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports | ||||
C++17 features with $switch" >&5 | ||||
$as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; | ||||
} | ||||
if eval \${$cachevar+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ac_save_CXX="$CXX" | |||
CXX="$CXX $switch" | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
template <typename T> | // If the compiler admits that it is not ready for C++11, why torture it? | |||
// Hopefully, this will speed up the test. | ||||
#ifndef __cplusplus | ||||
#error "This is not a C++ compiler" | ||||
#elif __cplusplus < 201103L | ||||
#error "This is not a C++11 compiler" | ||||
#else | ||||
namespace cxx11 | ||||
{ | ||||
namespace test_static_assert | ||||
{ | ||||
template <typename T> | ||||
struct check | struct check | |||
{ | { | |||
static_assert(sizeof(int) <= sizeof(T), "not big enough"); | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |||
}; | }; | |||
typedef check<check<bool>> right_angle_brackets; | } | |||
int a; | namespace test_final_override | |||
decltype(a) b; | { | |||
typedef check<int> check_type; | struct Base | |||
check_type c; | { | |||
check_type&& cr = static_cast<check_type&&>(c); | virtual ~Base() {} | |||
virtual void f() {} | ||||
}; | ||||
auto d = a; | struct Derived : public Base | |||
{ | ||||
virtual ~Derived() override {} | ||||
virtual void f() override {} | ||||
}; | ||||
_ACEOF | } | |||
if ac_fn_cxx_try_compile "$LINENO"; then : | ||||
ax_cv_cxx_compile_cxx11=yes | ||||
else | ||||
ax_cv_cxx_compile_cxx11=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | ||||
$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | ||||
if test x$ax_cv_cxx_compile_cxx11 = xyes; then | ||||
ac_success=yes | ||||
fi | ||||
if test x$ac_success = xno; then | namespace test_double_right_angle_brackets | |||
for switch in -std=c++11 -std=c++0x; do | { | |||
cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C+ | ||||
+11 features with $switch" >&5 | ||||
$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; | ||||
} | ||||
if eval \${$cachevar+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
ac_save_CXXFLAGS="$CXXFLAGS" | ||||
CXXFLAGS="$CXXFLAGS $switch" | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
template <typename T> | template < typename T > | |||
struct check | struct check {}; | |||
typedef check<void> single_type; | ||||
typedef check<check<void>> double_type; | ||||
typedef check<check<check<void>>> triple_type; | ||||
typedef check<check<check<check<void>>>> quadruple_type; | ||||
} | ||||
namespace test_decltype | ||||
{ | ||||
int | ||||
f() | ||||
{ | { | |||
static_assert(sizeof(int) <= sizeof(T), "not big enough"); | int a = 1; | |||
decltype(a) b = 2; | ||||
return a + b; | ||||
} | ||||
} | ||||
namespace test_type_deduction | ||||
{ | ||||
template < typename T1, typename T2 > | ||||
struct is_same | ||||
{ | ||||
static const bool value = false; | ||||
}; | ||||
template < typename T > | ||||
struct is_same<T, T> | ||||
{ | ||||
static const bool value = true; | ||||
}; | ||||
template < typename T1, typename T2 > | ||||
auto | ||||
add(T1 a1, T2 a2) -> decltype(a1 + a2) | ||||
{ | ||||
return a1 + a2; | ||||
} | ||||
int | ||||
test(const int c, volatile int v) | ||||
{ | ||||
static_assert(is_same<int, decltype(0)>::value == true, ""); | ||||
static_assert(is_same<int, decltype(c)>::value == false, ""); | ||||
static_assert(is_same<int, decltype(v)>::value == false, ""); | ||||
auto ac = c; | ||||
auto av = v; | ||||
auto sumi = ac + av + 'x'; | ||||
auto sumf = ac + av + 1.0; | ||||
static_assert(is_same<int, decltype(ac)>::value == true, ""); | ||||
static_assert(is_same<int, decltype(av)>::value == true, ""); | ||||
static_assert(is_same<int, decltype(sumi)>::value == true, ""); | ||||
static_assert(is_same<int, decltype(sumf)>::value == false, ""); | ||||
static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | ||||
return (sumf > 0.0) ? sumi : add(c, v); | ||||
} | ||||
} | ||||
namespace test_noexcept | ||||
{ | ||||
int f() { return 0; } | ||||
int g() noexcept { return 0; } | ||||
static_assert(noexcept(f()) == false, ""); | ||||
static_assert(noexcept(g()) == true, ""); | ||||
} | ||||
namespace test_constexpr | ||||
{ | ||||
template < typename CharT > | ||||
unsigned long constexpr | ||||
strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | ||||
{ | ||||
return *s ? strlen_c_r(s + 1, acc + 1) : acc; | ||||
} | ||||
template < typename CharT > | ||||
unsigned long constexpr | ||||
strlen_c(const CharT *const s) noexcept | ||||
{ | ||||
return strlen_c_r(s, 0UL); | ||||
} | ||||
static_assert(strlen_c("") == 0UL, ""); | ||||
static_assert(strlen_c("1") == 1UL, ""); | ||||
static_assert(strlen_c("example") == 7UL, ""); | ||||
static_assert(strlen_c("another\0example") == 7UL, ""); | ||||
} | ||||
namespace test_rvalue_references | ||||
{ | ||||
template < int N > | ||||
struct answer | ||||
{ | ||||
static constexpr int value = N; | ||||
}; | ||||
answer<1> f(int&) { return answer<1>(); } | ||||
answer<2> f(const int&) { return answer<2>(); } | ||||
answer<3> f(int&&) { return answer<3>(); } | ||||
void | ||||
test() | ||||
{ | ||||
int i = 0; | ||||
const int c = 0; | ||||
static_assert(decltype(f(i))::value == 1, ""); | ||||
static_assert(decltype(f(c))::value == 2, ""); | ||||
static_assert(decltype(f(0))::value == 3, ""); | ||||
} | ||||
} | ||||
namespace test_uniform_initialization | ||||
{ | ||||
struct test | ||||
{ | ||||
static const int zero {}; | ||||
static const int one {1}; | ||||
}; | ||||
static_assert(test::zero == 0, ""); | ||||
static_assert(test::one == 1, ""); | ||||
} | ||||
namespace test_lambdas | ||||
{ | ||||
void | ||||
test1() | ||||
{ | ||||
auto lambda1 = [](){}; | ||||
auto lambda2 = lambda1; | ||||
lambda1(); | ||||
lambda2(); | ||||
} | ||||
int | ||||
test2() | ||||
{ | ||||
auto a = [](int i, int j){ return i + j; }(1, 2); | ||||
auto b = []() -> int { return '0'; }(); | ||||
auto c = [=](){ return a + b; }(); | ||||
auto d = [&](){ return c; }(); | ||||
auto e = [a, &b](int x) mutable { | ||||
const auto identity = [](int y){ return y; }; | ||||
for (auto i = 0; i < a; ++i) | ||||
a += b--; | ||||
return x + identity(a + b); | ||||
}(0); | ||||
return a + b + c + d + e; | ||||
} | ||||
int | ||||
test3() | ||||
{ | ||||
const auto nullary = [](){ return 0; }; | ||||
const auto unary = [](int x){ return x; }; | ||||
using nullary_t = decltype(nullary); | ||||
using unary_t = decltype(unary); | ||||
const auto higher1st = [](nullary_t f){ return f(); }; | ||||
const auto higher2nd = [unary](nullary_t f1){ | ||||
return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | ||||
}; | ||||
return higher1st(nullary) + higher2nd(nullary)(unary); | ||||
} | ||||
} | ||||
namespace test_variadic_templates | ||||
{ | ||||
template <int...> | ||||
struct sum; | ||||
template <int N0, int... N1toN> | ||||
struct sum<N0, N1toN...> | ||||
{ | ||||
static constexpr auto value = N0 + sum<N1toN...>::value; | ||||
}; | ||||
template <> | ||||
struct sum<> | ||||
{ | ||||
static constexpr auto value = 0; | ||||
}; | ||||
static_assert(sum<>::value == 0, ""); | ||||
static_assert(sum<1>::value == 1, ""); | ||||
static_assert(sum<23>::value == 23, ""); | ||||
static_assert(sum<1, 2>::value == 3, ""); | ||||
static_assert(sum<5, 5, 11>::value == 21, ""); | ||||
static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | ||||
} | ||||
// http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | ||||
// Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | ||||
// because of this. | ||||
namespace test_template_alias_sfinae | ||||
{ | ||||
struct foo {}; | ||||
template<typename T> | ||||
using member = typename T::member_type; | ||||
template<typename T> | ||||
void func(...) {} | ||||
template<typename T> | ||||
void func(member<T>*) {} | ||||
void test(); | ||||
void test() { func<foo>(0); } | ||||
} | ||||
} // namespace cxx11 | ||||
#endif // __cplusplus >= 201103L | ||||
// If the compiler admits that it is not ready for C++14, why torture it? | ||||
// Hopefully, this will speed up the test. | ||||
#ifndef __cplusplus | ||||
#error "This is not a C++ compiler" | ||||
#elif __cplusplus < 201402L | ||||
#error "This is not a C++14 compiler" | ||||
#else | ||||
namespace cxx14 | ||||
{ | ||||
namespace test_polymorphic_lambdas | ||||
{ | ||||
int | ||||
test() | ||||
{ | ||||
const auto lambda = [](auto&&... args){ | ||||
const auto istiny = [](auto x){ | ||||
return (sizeof(x) == 1UL) ? 1 : 0; | ||||
}; | ||||
const int aretiny[] = { istiny(args)... }; | ||||
return aretiny[0]; | ||||
}; | ||||
return lambda(1, 1L, 1.0f, '1'); | ||||
} | ||||
} | ||||
namespace test_binary_literals | ||||
{ | ||||
constexpr auto ivii = 0b0000000000101010; | ||||
static_assert(ivii == 42, "wrong value"); | ||||
} | ||||
namespace test_generalized_constexpr | ||||
{ | ||||
template < typename CharT > | ||||
constexpr unsigned long | ||||
strlen_c(const CharT *const s) noexcept | ||||
{ | ||||
auto length = 0UL; | ||||
for (auto p = s; *p; ++p) | ||||
++length; | ||||
return length; | ||||
} | ||||
static_assert(strlen_c("") == 0UL, ""); | ||||
static_assert(strlen_c("x") == 1UL, ""); | ||||
static_assert(strlen_c("test") == 4UL, ""); | ||||
static_assert(strlen_c("another\0test") == 7UL, ""); | ||||
} | ||||
namespace test_lambda_init_capture | ||||
{ | ||||
int | ||||
test() | ||||
{ | ||||
auto x = 0; | ||||
const auto lambda1 = [a = x](int b){ return a + b; }; | ||||
const auto lambda2 = [a = lambda1(x)](){ return a; }; | ||||
return lambda2(); | ||||
} | ||||
} | ||||
namespace test_digit_separators | ||||
{ | ||||
constexpr auto ten_million = 100'000'000; | ||||
static_assert(ten_million == 100000000, ""); | ||||
} | ||||
namespace test_return_type_deduction | ||||
{ | ||||
auto f(int& x) { return x; } | ||||
decltype(auto) g(int& x) { return x; } | ||||
template < typename T1, typename T2 > | ||||
struct is_same | ||||
{ | ||||
static constexpr auto value = false; | ||||
}; | ||||
template < typename T > | ||||
struct is_same<T, T> | ||||
{ | ||||
static constexpr auto value = true; | ||||
}; | ||||
int | ||||
test() | ||||
{ | ||||
auto x = 0; | ||||
static_assert(is_same<int, decltype(f(x))>::value, ""); | ||||
static_assert(is_same<int&, decltype(g(x))>::value, ""); | ||||
return x; | ||||
} | ||||
} | ||||
} // namespace cxx14 | ||||
#endif // __cplusplus >= 201402L | ||||
// If the compiler admits that it is not ready for C++17, why torture it? | ||||
// Hopefully, this will speed up the test. | ||||
#ifndef __cplusplus | ||||
#error "This is not a C++ compiler" | ||||
#elif __cplusplus < 201703L | ||||
#error "This is not a C++17 compiler" | ||||
#else | ||||
#include <initializer_list> | ||||
#include <utility> | ||||
#include <type_traits> | ||||
namespace cxx17 | ||||
{ | ||||
namespace test_constexpr_lambdas | ||||
{ | ||||
constexpr int foo = [](){return 42;}(); | ||||
} | ||||
namespace test::nested_namespace::definitions | ||||
{ | ||||
} | ||||
namespace test_fold_expression | ||||
{ | ||||
template<typename... Args> | ||||
int multiply(Args... args) | ||||
{ | ||||
return (args * ... * 1); | ||||
} | ||||
template<typename... Args> | ||||
bool all(Args... args) | ||||
{ | ||||
return (args && ...); | ||||
} | ||||
} | ||||
namespace test_extended_static_assert | ||||
{ | ||||
static_assert (true); | ||||
} | ||||
namespace test_auto_brace_init_list | ||||
{ | ||||
auto foo = {5}; | ||||
auto bar {5}; | ||||
static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value | ||||
); | ||||
static_assert(std::is_same<int, decltype(bar)>::value); | ||||
} | ||||
namespace test_typename_in_template_template_parameter | ||||
{ | ||||
template<template<typename> typename X> struct D; | ||||
} | ||||
namespace test_fallthrough_nodiscard_maybe_unused_attributes | ||||
{ | ||||
int f1() | ||||
{ | ||||
return 42; | ||||
} | ||||
[[nodiscard]] int f2() | ||||
{ | ||||
[[maybe_unused]] auto unused = f1(); | ||||
switch (f1()) | ||||
{ | ||||
case 17: | ||||
f1(); | ||||
[[fallthrough]]; | ||||
case 42: | ||||
f1(); | ||||
} | ||||
return f1(); | ||||
} | ||||
} | ||||
namespace test_extended_aggregate_initialization | ||||
{ | ||||
struct base1 | ||||
{ | ||||
int b1, b2 = 42; | ||||
}; | ||||
struct base2 | ||||
{ | ||||
base2() { | ||||
b3 = 42; | ||||
} | ||||
int b3; | ||||
}; | }; | |||
typedef check<check<bool>> right_angle_brackets; | struct derived : base1, base2 | |||
{ | ||||
int d; | ||||
}; | ||||
int a; | derived d1 {{1, 2}, {}, 4}; // full initialization | |||
decltype(a) b; | derived d2 {{}, {}, 4}; // value-initialized bases | |||
typedef check<int> check_type; | } | |||
check_type c; | ||||
check_type&& cr = static_cast<check_type&&>(c); | namespace test_general_range_based_for_loop | |||
{ | ||||
struct iter | ||||
{ | ||||
int i; | ||||
int& operator* () | ||||
{ | ||||
return i; | ||||
} | ||||
const int& operator* () const | ||||
{ | ||||
return i; | ||||
} | ||||
iter& operator++() | ||||
{ | ||||
++i; | ||||
return *this; | ||||
} | ||||
}; | ||||
auto d = a; | struct sentinel | |||
{ | ||||
int i; | ||||
}; | ||||
bool operator== (const iter& i, const sentinel& s) | ||||
{ | ||||
return i.i == s.i; | ||||
} | ||||
bool operator!= (const iter& i, const sentinel& s) | ||||
{ | ||||
return !(i == s); | ||||
} | ||||
struct range | ||||
{ | ||||
iter begin() const | ||||
{ | ||||
return {0}; | ||||
} | ||||
sentinel end() const | ||||
{ | ||||
return {5}; | ||||
} | ||||
}; | ||||
void f() | ||||
{ | ||||
range r {}; | ||||
for (auto i : r) | ||||
{ | ||||
[[maybe_unused]] auto v = i; | ||||
} | ||||
} | ||||
} | ||||
namespace test_lambda_capture_asterisk_this_by_value | ||||
{ | ||||
struct t | ||||
{ | ||||
int i; | ||||
int foo() | ||||
{ | ||||
return [*this]() | ||||
{ | ||||
return i; | ||||
}(); | ||||
} | ||||
}; | ||||
} | ||||
namespace test_enum_class_construction | ||||
{ | ||||
enum class byte : unsigned char | ||||
{}; | ||||
byte foo {42}; | ||||
} | ||||
namespace test_constexpr_if | ||||
{ | ||||
template <bool cond> | ||||
int f () | ||||
{ | ||||
if constexpr(cond) | ||||
{ | ||||
return 13; | ||||
} | ||||
else | ||||
{ | ||||
return 42; | ||||
} | ||||
} | ||||
} | ||||
namespace test_selection_statement_with_initializer | ||||
{ | ||||
int f() | ||||
{ | ||||
return 13; | ||||
} | ||||
int f2() | ||||
{ | ||||
if (auto i = f(); i > 0) | ||||
{ | ||||
return 3; | ||||
} | ||||
switch (auto i = f(); i + 4) | ||||
{ | ||||
case 17: | ||||
return 2; | ||||
default: | ||||
return 1; | ||||
} | ||||
} | ||||
} | ||||
namespace test_template_argument_deduction_for_class_templates | ||||
{ | ||||
template <typename T1, typename T2> | ||||
struct pair | ||||
{ | ||||
pair (T1 p1, T2 p2) | ||||
: m1 {p1}, | ||||
m2 {p2} | ||||
{} | ||||
T1 m1; | ||||
T2 m2; | ||||
}; | ||||
void f() | ||||
{ | ||||
[[maybe_unused]] auto p = pair{13, 42u}; | ||||
} | ||||
} | ||||
namespace test_non_type_auto_template_parameters | ||||
{ | ||||
template <auto n> | ||||
struct B | ||||
{}; | ||||
B<5> b1; | ||||
B<'a'> b2; | ||||
} | ||||
namespace test_structured_bindings | ||||
{ | ||||
int arr[2] = { 1, 2 }; | ||||
std::pair<int, int> pr = { 1, 2 }; | ||||
auto f1() -> int(&)[2] | ||||
{ | ||||
return arr; | ||||
} | ||||
auto f2() -> std::pair<int, int>& | ||||
{ | ||||
return pr; | ||||
} | ||||
struct S | ||||
{ | ||||
int x1 : 2; | ||||
volatile double y1; | ||||
}; | ||||
S f3() | ||||
{ | ||||
return {}; | ||||
} | ||||
auto [ x1, y1 ] = f1(); | ||||
auto& [ xr1, yr1 ] = f1(); | ||||
auto [ x2, y2 ] = f2(); | ||||
auto& [ xr2, yr2 ] = f2(); | ||||
const auto [ x3, y3 ] = f3(); | ||||
} | ||||
namespace test_exception_spec_type_system | ||||
{ | ||||
struct Good {}; | ||||
struct Bad {}; | ||||
void g1() noexcept; | ||||
void g2(); | ||||
template<typename T> | ||||
Bad | ||||
f(T*, T*); | ||||
template<typename T1, typename T2> | ||||
Good | ||||
f(T1*, T2*); | ||||
static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); | ||||
} | ||||
namespace test_inline_variables | ||||
{ | ||||
template<class T> void f(T) | ||||
{} | ||||
template<class T> inline T g(T) | ||||
{ | ||||
return T{}; | ||||
} | ||||
template<> inline void f<>(int) | ||||
{} | ||||
template<> int g<>(int) | ||||
{ | ||||
return 5; | ||||
} | ||||
} | ||||
} // namespace cxx17 | ||||
#endif // __cplusplus < 201703L | ||||
_ACEOF | _ACEOF | |||
if ac_fn_cxx_try_compile "$LINENO"; then : | if ac_fn_cxx_try_compile "$LINENO"; then : | |||
eval $cachevar=yes | eval $cachevar=yes | |||
else | else | |||
eval $cachevar=no | eval $cachevar=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
CXXFLAGS="$ac_save_CXXFLAGS" | CXX="$ac_save_CXX" | |||
fi | fi | |||
eval ac_res=\$$cachevar | eval ac_res=\$$cachevar | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |||
$as_echo "$ac_res" >&6; } | $as_echo "$ac_res" >&6; } | |||
if eval test x\$$cachevar = xyes; then | if eval test x\$$cachevar = xyes; then | |||
CXXFLAGS="$CXXFLAGS $switch" | CXX="$CXX $switch" | |||
ac_success=yes | if test -n "$CXXCPP" ; then | |||
CXXCPP="$CXXCPP $switch" | ||||
fi | ||||
ac_success=yes | ||||
break | ||||
fi | ||||
done | ||||
if test x$ac_success = xyes; then | ||||
break | break | |||
fi | fi | |||
done | done | |||
fi | fi | |||
ac_ext=cpp | ac_ext=cpp | |||
ac_cpp='$CXXCPP $CPPFLAGS' | ac_cpp='$CXXCPP $CPPFLAGS' | |||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5' | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |||
if test x$ax_cxx_compile_cxx11_required = xtrue; then | if test x$ax_cxx_compile_cxx17_required = xtrue; then | |||
if test x$ac_success = xno; then | if test x$ac_success = xno; then | |||
as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5 | |||
fi | fi | |||
fi | ||||
if test x$ac_success = xno; then | ||||
HAVE_CXX17=0 | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was | ||||
found" >&5 | ||||
$as_echo "$as_me: No compiler with C++17 support was found" >&6;} | ||||
else | else | |||
if test x$ac_success = xno; then | HAVE_CXX17=1 | |||
HAVE_CXX11=0 | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support wa | ||||
s found" >&5 | ||||
$as_echo "$as_me: No compiler with C++11 support was found" >&6;} | ||||
else | ||||
HAVE_CXX11=1 | ||||
$as_echo "#define HAVE_CXX11 1" >>confdefs.h | $as_echo "#define HAVE_CXX17 1" >>confdefs.h | |||
fi | ||||
fi | fi | |||
ac_ext=c | ac_ext=c | |||
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 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_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
################################################################ | ################################################################ | |||
skipping to change at line 6352 | skipping to change at line 7057 | |||
*-*-mingw32*) | *-*-mingw32*) | |||
LIBS="-lpsapi -lws2_32 -lgdi32 $LIBS" | LIBS="-lpsapi -lws2_32 -lgdi32 $LIBS" | |||
CPPFLAGS="-DUNICODE -D_UNICODE -D__MSVCRT_VERSION__=0x0601 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -g $CPPFLAGS" | CPPFLAGS="-DUNICODE -D_UNICODE -D__MSVCRT_VERSION__=0x0601 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -g $CPPFLAGS" | |||
CPPFLAGS="$CPPFLAGS --static" | CPPFLAGS="$CPPFLAGS --static" | |||
CFLAGS="$CFLAGS --static -static-libgcc -static-libstdc++" | CFLAGS="$CFLAGS --static -static-libgcc -static-libstdc++" | |||
CXXFLAGS="$CXXFLAGS -Wno-format " # compiler mingw-4.3.0 is broken on I64u formats | CXXFLAGS="$CXXFLAGS -Wno-format " # compiler mingw-4.3.0 is broken on I64u formats | |||
CXXFLAGS="$CXXFLAGS --static -static-libgcc -static-libstdc++" | CXXFLAGS="$CXXFLAGS --static -static-libgcc -static-libstdc++" | |||
LDFLAGS="$LDFLAGS --static" | LDFLAGS="$LDFLAGS --static" | |||
mingw="yes" | mingw="yes" | |||
;; | ;; | |||
*) | ||||
CXXFLAGS="$CXXFLAGS -Wno-address-of-packed-member" | ||||
;; | ||||
esac | esac | |||
if test x"${mingw}" == "xno" ; then | if test x"${mingw}" == "xno" ; then | |||
# Bring additional directories where things might be found into our | # Bring additional directories where things might be found into our | |||
# search path. I don't know why autoconf doesn't do this by default | # search path. I don't know why autoconf doesn't do this by default | |||
for spfx in /usr/local /opt/local /sw /usr/local/ssl /usr/boost/include ; do | for spfx in /usr/local /opt/local /sw /usr/local/ssl /usr/boost/include ; do | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ${spfx}/include" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ${spfx}/include" >&5 | |||
$as_echo "$as_me: checking ${spfx}/include" >&6;} | $as_echo "$as_me: checking ${spfx}/include" >&6;} | |||
if test -d ${spfx}/include; then | if test -d ${spfx}/include; then | |||
CPPFLAGS="-I${spfx}/include $CPPFLAGS" | CPPFLAGS="-I${spfx}/include $CPPFLAGS" | |||
skipping to change at line 6445 | skipping to change at line 7154 | |||
unset has_option | unset has_option | |||
unset SAVE_CFLAGS | unset SAVE_CFLAGS | |||
if test $option = "-Wmissing-format-attribute" ; then | if test $option = "-Wmissing-format-attribute" ; then | |||
$as_echo "#define HAVE_MISSING_FORMAT_ATTRIBUTE_WARNING 1" >>confdefs.h | $as_echo "#define HAVE_MISSING_FORMAT_ATTRIBUTE_WARNING 1" >>confdefs.h | |||
fi | fi | |||
done | done | |||
unset option | unset option | |||
# C++ | # CUT1 | |||
# We don't use these warnings: | ||||
# -Waggregate-return -- aggregate returns are GOOD; they simplify code design | ||||
# We can use these warnings after ZLIB gets upgraded: | ||||
# -Wundef --- causes problems with zlib | ||||
# -Wcast-qual | ||||
# -Wmissing-format-attribute --- Just too annoying | ||||
ac_ext=cpp | ||||
ac_cpp='$CXXCPP $CPPFLAGS' | ||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex | ||||
t $LIBS >&5' | ||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||||
WARNINGS_TO_TEST="-Wall -MD -D_FORTIFY_SOURCE=2 -Wpointer-arith \ | ||||
-Wshadow -Wwrite-strings -Wcast-align \ | ||||
-Wredundant-decls -Wdisabled-optimization \ | ||||
-Wfloat-equal -Wmultichar -Wmissing-noreturn \ | ||||
-Woverloaded-virtual -Wsign-promo \ | ||||
-funit-at-a-time" | ||||
if $CXX -dM -E - < /dev/null | grep -q __clang__ ; then | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using clang" >&5 | ||||
$as_echo "Using clang" >&6; } | ||||
clang='yes' | ||||
else | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not using clang" >&5 | ||||
$as_echo "not using clang" >&6; } | ||||
clang='no' | ||||
# -Wstrict-null-sentinel is not supported under clang or under Darwin's gcc | ||||
WARNINGS_TO_TEST="$WARNINGS_TO_TEST -Wstrict-null-sentinel" | ||||
fi | ||||
if test $mingw = "no" ; then | ||||
# add the warnings we don't want to do on mingw | ||||
WARNINGS_TO_TEST="$WARNINGS_TO_TEST -Weffc++" | ||||
fi | ||||
for option in $WARNINGS_TO_TEST | ||||
do | ||||
SAVE_CXXFLAGS="$CXXFLAGS" | ||||
CXXFLAGS="$CXXFLAGS $option" | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ understands $opt | ||||
ion" >&5 | ||||
$as_echo_n "checking whether g++ understands $option... " >&6; } | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
int | ||||
main () | ||||
{ | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_cxx_try_compile "$LINENO"; then : | ||||
has_option=yes | ||||
else | ||||
has_option=no; CXXFLAGS="$SAVE_CXXFLAGS" | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 | ||||
$as_echo "$has_option" >&6; } | ||||
unset has_option | ||||
unset SAVE_CXXFLAGS | ||||
done | ||||
unset option | ||||
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 | ||||
################################################################ | ################################################################ | |||
## | ## | |||
# | # | |||
# ZLIB is required for decompressing | # ZLIB is required for decompressing | |||
# Note you cannot put comments in the AC_MSG_ERROR for some reason | # Note you cannot put comments in the AC_MSG_ERROR for some reason | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |||
$as_echo_n "checking for uncompress in -lz... " >&6; } | $as_echo_n "checking for uncompress in -lz... " >&6; } | |||
if ${ac_cv_lib_z_uncompress+:} false; then : | if ${ac_cv_lib_z_uncompress+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
skipping to change at line 6752 | skipping to change at line 7390 | |||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |||
_ACEOF | _ACEOF | |||
fi | fi | |||
done | done | |||
################################################################ | ################################################################ | |||
## OpenSSL Support (required for AFFLIB and hash_t ) | ## OpenSSL Support (required for hash_t ) | |||
for ac_header in openssl/aes.h openssl/bio.h openssl/evp.h openssl/hmac.h openss l/md5.h openssl/pem.h openssl/rand.h openssl/rsa.h openssl/sha.h openssl/pem.h o penssl/x509.h | for ac_header in openssl/aes.h openssl/bio.h openssl/evp.h openssl/hmac.h openss l/md5.h openssl/pem.h openssl/rand.h openssl/rsa.h openssl/sha.h openssl/pem.h o penssl/x509.h | |||
do : | do : | |||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default" | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default" | |||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |||
_ACEOF | _ACEOF | |||
fi | fi | |||
skipping to change at line 7011 | skipping to change at line 7649 | |||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |||
_ACEOF | _ACEOF | |||
fi | fi | |||
done | done | |||
################################################################ | ################################################################ | |||
## Includes | ## Includes | |||
# | # | |||
# mix-ins for be13 | ||||
# | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Including be13_configure.m4 from be13_a | ||||
pi" >&5 | ||||
$as_echo "$as_me: Including be13_configure.m4 from be13_api" >&6;} | ||||
for ac_header in err.h pwd.h sys/cdefs.h sys/mman.h sys/resource.h sys/utsname.h | ||||
unistd.h sqlite3.h | ||||
do : | ||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include | ||||
s_default" | ||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
for ac_func in gmtime_r ishexnumber isxdigit localtime_r unistd.h mmap err errx | ||||
warn warnx pread64 pread strptime _lseeki64 utimes | ||||
do : | ||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_libversion in -lsq | ||||
lite3" >&5 | ||||
$as_echo_n "checking for sqlite3_libversion in -lsqlite3... " >&6; } | ||||
if ${ac_cv_lib_sqlite3_sqlite3_libversion+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
ac_check_lib_save_LIBS=$LIBS | ||||
LIBS="-lsqlite3 $LIBS" | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
/* Override any GCC internal prototype to avoid an error. | ||||
Use char because int might match the return type of a GCC | ||||
builtin and then its argument prototype would still apply. */ | ||||
#ifdef __cplusplus | ||||
extern "C" | ||||
#endif | ||||
char sqlite3_libversion (); | ||||
int | ||||
main () | ||||
{ | ||||
return sqlite3_libversion (); | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
ac_cv_lib_sqlite3_sqlite3_libversion=yes | ||||
else | ||||
ac_cv_lib_sqlite3_sqlite3_libversion=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
LIBS=$ac_check_lib_save_LIBS | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_libv | ||||
ersion" >&5 | ||||
$as_echo "$ac_cv_lib_sqlite3_sqlite3_libversion" >&6; } | ||||
if test "x$ac_cv_lib_sqlite3_sqlite3_libversion" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_LIBSQLITE3 1 | ||||
_ACEOF | ||||
LIBS="-lsqlite3 $LIBS" | ||||
fi | ||||
for ac_func in sqlite3_create_function_v2 | ||||
do : | ||||
ac_fn_c_check_func "$LINENO" "sqlite3_create_function_v2" "ac_cv_func_sqlite3_ | ||||
create_function_v2" | ||||
if test "x$ac_cv_func_sqlite3_create_function_v2" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_SQLITE3_CREATE_FUNCTION_V2 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#pragma GCC diagnostic ignored "-Wredundant-decls" | ||||
int | ||||
main () | ||||
{ | ||||
int a=3; | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_compile "$LINENO"; then : | ||||
$as_echo "#define HAVE_DIAGNOSTIC_REDUNDANT_DECLS 1" >>confdefs.h | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#pragma GCC diagnostic ignored "-Wcast-align" | ||||
int | ||||
main () | ||||
{ | ||||
int a=3; | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_compile "$LINENO"; then : | ||||
$as_echo "#define HAVE_DIAGNOSTIC_CAST_ALIGN 1" >>confdefs.h | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#include <inttypes.h> | ||||
int | ||||
main () | ||||
{ | ||||
uint64_t ul; __sync_add_and_fetch(&ul,0); | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
$as_echo "#define HAVE___SYNC_ADD_AND_FETCH 1" >>confdefs.h | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
# | ||||
# Figure out which version of unordered_map we are going to use | ||||
# | ||||
ac_ext=cpp | ||||
ac_cpp='$CXXCPP $CPPFLAGS' | ||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex | ||||
t $LIBS >&5' | ||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unordered_map" >&5 | ||||
$as_echo "$as_me: checking for unordered_map" >&6;} | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: CXXFLAGS: $CXXFLAGS" >&5 | ||||
$as_echo "$as_me: CXXFLAGS: $CXXFLAGS" >&6;} | ||||
for ac_header in unordered_map unordered_set | ||||
do : | ||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_inclu | ||||
des_default" | ||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
_ACEOF | ||||
else | ||||
for ac_header in tr1/unordered_map tr1/unordered_set | ||||
do : | ||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_inclu | ||||
des_default" | ||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
fi | ||||
done | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: done" >&5 | ||||
$as_echo "$as_me: done" >&6;} | ||||
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 | ||||
# | ||||
# mix-ins for dfxml | # mix-ins for dfxml | |||
# Support for hash_t as well. | # Support for hash_t as well. | |||
# | # | |||
# This file is public domain | # This file is public domain | |||
# Revision History: | # Revision History: | |||
# 2012 - Simson Garfinkel - Created for bulk_extractor | # 2012 - Simson Garfinkel - Created for bulk_extractor | |||
# | # | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Including dfxml_configure.m4 from dfxml " >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: Including dfxml_configure.m4 from dfxml " >&5 | |||
$as_echo "$as_me: Including dfxml_configure.m4 from dfxml" >&6;} | $as_echo "$as_me: Including dfxml_configure.m4 from dfxml" >&6;} | |||
skipping to change at line 7356 | skipping to change at line 8184 | |||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |||
_ACEOF | _ACEOF | |||
fi | fi | |||
done | done | |||
# | ||||
# mix-ins for be13 | ||||
# | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Including be13_configure.m4 from be13_a | ||||
pi" >&5 | ||||
$as_echo "$as_me: Including be13_configure.m4 from be13_api" >&6;} | ||||
for ac_header in err.h pwd.h sys/cdefs.h sys/mman.h sys/resource.h sys/utsname.h | ||||
unistd.h sqlite3.h | ||||
do : | ||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include | ||||
s_default" | ||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
for ac_func in gmtime_r ishexnumber isxdigit localtime_r unistd.h mmap err errx | ||||
warn warnx pread64 pread strptime _lseeki64 utimes | ||||
do : | ||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_libversion in -lsq | ||||
lite3" >&5 | ||||
$as_echo_n "checking for sqlite3_libversion in -lsqlite3... " >&6; } | ||||
if ${ac_cv_lib_sqlite3_sqlite3_libversion+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
ac_check_lib_save_LIBS=$LIBS | ||||
LIBS="-lsqlite3 $LIBS" | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
/* Override any GCC internal prototype to avoid an error. | ||||
Use char because int might match the return type of a GCC | ||||
builtin and then its argument prototype would still apply. */ | ||||
#ifdef __cplusplus | ||||
extern "C" | ||||
#endif | ||||
char sqlite3_libversion (); | ||||
int | ||||
main () | ||||
{ | ||||
return sqlite3_libversion (); | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
ac_cv_lib_sqlite3_sqlite3_libversion=yes | ||||
else | ||||
ac_cv_lib_sqlite3_sqlite3_libversion=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
LIBS=$ac_check_lib_save_LIBS | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_libv | ||||
ersion" >&5 | ||||
$as_echo "$ac_cv_lib_sqlite3_sqlite3_libversion" >&6; } | ||||
if test "x$ac_cv_lib_sqlite3_sqlite3_libversion" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_LIBSQLITE3 1 | ||||
_ACEOF | ||||
LIBS="-lsqlite3 $LIBS" | ||||
fi | ||||
for ac_func in sqlite3_create_function_v2 | ||||
do : | ||||
ac_fn_c_check_func "$LINENO" "sqlite3_create_function_v2" "ac_cv_func_sqlite3_ | ||||
create_function_v2" | ||||
if test "x$ac_cv_func_sqlite3_create_function_v2" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_SQLITE3_CREATE_FUNCTION_V2 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#pragma GCC diagnostic ignored "-Wredundant-decls" | ||||
int | ||||
main () | ||||
{ | ||||
int a=3; | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_compile "$LINENO"; then : | ||||
$as_echo "#define HAVE_DIAGNOSTIC_REDUNDANT_DECLS 1" >>confdefs.h | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#pragma GCC diagnostic ignored "-Wcast-align" | ||||
int | ||||
main () | ||||
{ | ||||
int a=3; | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_compile "$LINENO"; then : | ||||
$as_echo "#define HAVE_DIAGNOSTIC_CAST_ALIGN 1" >>confdefs.h | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#include <inttypes.h> | ||||
int | ||||
main () | ||||
{ | ||||
uint64_t ul; __sync_add_and_fetch(&ul,0); | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
$as_echo "#define HAVE___SYNC_ADD_AND_FETCH 1" >>confdefs.h | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
# | ||||
# Figure out which version of unordered_map we are going to use | ||||
# | ||||
ac_ext=cpp | ||||
ac_cpp='$CXXCPP $CPPFLAGS' | ||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex | ||||
t $LIBS >&5' | ||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unordered_map" >&5 | ||||
$as_echo "$as_me: checking for unordered_map" >&6;} | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: CXXFLAGS: $CXXFLAGS" >&5 | ||||
$as_echo "$as_me: CXXFLAGS: $CXXFLAGS" >&6;} | ||||
for ac_header in unordered_map unordered_set | ||||
do : | ||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_inclu | ||||
des_default" | ||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
_ACEOF | ||||
else | ||||
for ac_header in tr1/unordered_map tr1/unordered_set | ||||
do : | ||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_inclu | ||||
des_default" | ||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
fi | ||||
done | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: done" >&5 | ||||
$as_echo "$as_me: done" >&6;} | ||||
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 | ||||
################################################################ | ||||
# PTHREAD support | ||||
# With special nods to compiling under mingw | ||||
if test x"$mingw" = x"yes"; then | ||||
#AC_DEFINE([HAVE_STRUCT_TIMESPEC],1,[Required for mingw]) | ||||
CFLAGS="$CFLAGS -mthreads " | ||||
CPPFLAGS="-DPTW32_STATIC_LIB $CPPFLAGS" | ||||
CXXFLAGS="$CXXFLAGS -mthreads " | ||||
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | ||||
#AC_MSG_NOTICE([pthreads now disabled under mingw]) | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthr | ||||
ead" >&5 | ||||
$as_echo_n "checking for pthread_create in -lpthread... " >&6; } | ||||
if ${ac_cv_lib_pthread_pthread_create+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
ac_check_lib_save_LIBS=$LIBS | ||||
LIBS="-lpthread $LIBS" | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
/* Override any GCC internal prototype to avoid an error. | ||||
Use char because int might match the return type of a GCC | ||||
builtin and then its argument prototype would still apply. */ | ||||
#ifdef __cplusplus | ||||
extern "C" | ||||
#endif | ||||
char pthread_create (); | ||||
int | ||||
main () | ||||
{ | ||||
return pthread_create (); | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
ac_cv_lib_pthread_pthread_create=yes | ||||
else | ||||
ac_cv_lib_pthread_pthread_create=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
LIBS=$ac_check_lib_save_LIBS | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_crea | ||||
te" >&5 | ||||
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } | ||||
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_LIBPTHREAD 1 | ||||
_ACEOF | ||||
LIBS="-lpthread $LIBS" | ||||
fi | ||||
else | ||||
# =========================================================================== | ||||
# http://www.gnu.org/software/autoconf-archive/ax_pthread.html | ||||
# =========================================================================== | ||||
# | ||||
# SYNOPSIS | ||||
# | ||||
# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | ||||
# | ||||
# DESCRIPTION | ||||
# | ||||
# This macro figures out how to build C programs using POSIX threads. It | ||||
# sets the PTHREAD_LIBS output variable to the threads library and linker | ||||
# flags, and the PTHREAD_CFLAGS output variable to any special C compiler | ||||
# flags that are needed. (The user can also force certain compiler | ||||
# flags/libs to be tested by setting these environment variables.) | ||||
# | ||||
# Also sets PTHREAD_CC to any special C compiler that is needed for | ||||
# multi-threaded programs (defaults to the value of CC otherwise). (This | ||||
# is necessary on AIX to use the special cc_r compiler alias.) | ||||
# | ||||
# NOTE: You are assumed to not only compile your program with these flags, | ||||
# but also link it with them as well. e.g. you should link with | ||||
# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS | ||||
# | ||||
# If you are only building threads programs, you may wish to use these | ||||
# variables in your default LIBS, CFLAGS, and CC: | ||||
# | ||||
# LIBS="$PTHREAD_LIBS $LIBS" | ||||
# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | ||||
# CC="$PTHREAD_CC" | ||||
# | ||||
# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant | ||||
# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name | ||||
# (e.g. PTHREAD_CREATE_UNDETACHED on AIX). | ||||
# | ||||
# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the | ||||
# PTHREAD_PRIO_INHERIT symbol is defined when compiling with | ||||
# PTHREAD_CFLAGS. | ||||
# | ||||
# ACTION-IF-FOUND is a list of shell commands to run if a threads library | ||||
# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it | ||||
# is not found. If ACTION-IF-FOUND is not specified, the default action | ||||
# will define HAVE_PTHREAD. | ||||
# | ||||
# Please let the authors know if this macro fails on any platform, or if | ||||
# you have any other suggestions or comments. This macro was based on work | ||||
# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help | ||||
# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by | ||||
# Alejandro Forero Cuervo to the autoconf macro repository. We are also | ||||
# grateful for the helpful feedback of numerous users. | ||||
# | ||||
# Updated for Autoconf 2.68 by Daniel Richard G. | ||||
# | ||||
# LICENSE | ||||
# | ||||
# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> | ||||
# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG> | ||||
# | ||||
# This program is free software: you can redistribute it and/or modify it | ||||
# under the terms of the GNU General Public License as published by the | ||||
# Free Software Foundation, either version 3 of the License, or (at your | ||||
# option) any later version. | ||||
# | ||||
# This program is distributed in the hope that it will be useful, but | ||||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||||
# Public License for more details. | ||||
# | ||||
# You should have received a copy of the GNU General Public License along | ||||
# with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
# | ||||
# As a special exception, the respective Autoconf Macro's copyright owner | ||||
# gives unlimited permission to copy, distribute and modify the configure | ||||
# scripts that are the output of Autoconf when processing the Macro. You | ||||
# need not follow the terms of the GNU General Public License when using | ||||
# or distributing such scripts, even though portions of the text of the | ||||
# Macro appear in them. The GNU General Public License (GPL) does govern | ||||
# all other use of the material that constitutes the Autoconf Macro. | ||||
# | ||||
# This special exception to the GPL applies to versions of the Autoconf | ||||
# Macro released by the Autoconf Archive. When you make and distribute a | ||||
# modified version of the Autoconf Macro, you may extend this special | ||||
# exception to the GPL to apply to your modified version as well. | ||||
#serial 16 | ||||
# This is what autoupdate's m4 run will expand. It fires | ||||
# the warning (with _au_warn_XXX), outputs it into the | ||||
# updated configure.ac (with AC_DIAGNOSE), and then outputs | ||||
# the replacement expansion. | ||||
# This is an auxiliary macro that is also run when | ||||
# autoupdate runs m4. It simply calls m4_warning, but | ||||
# we need a wrapper so that each warning is emitted only | ||||
# once. We break the quoting in m4_warning's argument in | ||||
# order to expand this macro's arguments, not AU_DEFUN's. | ||||
# Finally, this is the expansion that is picked up by | ||||
# autoconf. It tells the user to run autoupdate, and | ||||
# then outputs the replacement expansion. We do not care | ||||
# about autoupdate's warning because that contains | ||||
# information on what to do *after* running autoupdate. | ||||
# 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 | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||||
$as_echo_n "checking build system type... " >&6; } | ||||
if ${ac_cv_build+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
ac_build_alias=$build_alias | ||||
test "x$ac_build_alias" = x && | ||||
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||||
test "x$ac_build_alias" = x && | ||||
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||||
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||||
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO | ||||
" 5 | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||||
$as_echo "$ac_cv_build" >&6; } | ||||
case $ac_cv_build in | ||||
*-*-*) ;; | ||||
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||||
esac | ||||
build=$ac_cv_build | ||||
ac_save_IFS=$IFS; IFS='-' | ||||
set x $ac_cv_build | ||||
shift | ||||
build_cpu=$1 | ||||
build_vendor=$2 | ||||
shift; shift | ||||
# Remember, the first character of IFS is used to create $*, | ||||
# except with old shells: | ||||
build_os=$* | ||||
IFS=$ac_save_IFS | ||||
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||||
$as_echo_n "checking host system type... " >&6; } | ||||
if ${ac_cv_host+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
if test "x$host_alias" = x; then | ||||
ac_cv_host=$ac_cv_build | ||||
else | ||||
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||||
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" | ||||
5 | ||||
fi | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||||
$as_echo "$ac_cv_host" >&6; } | ||||
case $ac_cv_host in | ||||
*-*-*) ;; | ||||
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||||
esac | ||||
host=$ac_cv_host | ||||
ac_save_IFS=$IFS; IFS='-' | ||||
set x $ac_cv_host | ||||
shift | ||||
host_cpu=$1 | ||||
host_vendor=$2 | ||||
shift; shift | ||||
# Remember, the first character of IFS is used to create $*, | ||||
# except with old shells: | ||||
host_os=$* | ||||
IFS=$ac_save_IFS | ||||
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||||
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 | ||||
ax_pthread_ok=no | ||||
# We used to check for pthread.h first, but this fails if pthread.h | ||||
# requires special compiler flags (e.g. on True64 or Sequent). | ||||
# It gets checked for in the link test anyway. | ||||
# First of all, check if the user has set any of the PTHREAD_LIBS, | ||||
# etcetera environment variables, and if threads linking works using | ||||
# them: | ||||
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | ||||
save_CFLAGS="$CFLAGS" | ||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | ||||
save_LIBS="$LIBS" | ||||
LIBS="$PTHREAD_LIBS $LIBS" | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LI | ||||
BS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | ||||
$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD | ||||
_CFLAGS... " >&6; } | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
/* Override any GCC internal prototype to avoid an error. | ||||
Use char because int might match the return type of a GCC | ||||
builtin and then its argument prototype would still apply. */ | ||||
#ifdef __cplusplus | ||||
extern "C" | ||||
#endif | ||||
char pthread_join (); | ||||
int | ||||
main () | ||||
{ | ||||
return pthread_join (); | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
ax_pthread_ok=yes | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | ||||
$as_echo "$ax_pthread_ok" >&6; } | ||||
if test x"$ax_pthread_ok" = xno; then | ||||
PTHREAD_LIBS="" | ||||
PTHREAD_CFLAGS="" | ||||
fi | ||||
LIBS="$save_LIBS" | ||||
CFLAGS="$save_CFLAGS" | ||||
fi | ||||
# We must check for the threads library under a number of different | ||||
# names; the ordering is very important because some systems | ||||
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the | ||||
# libraries is broken (non-POSIX). | ||||
# Create a list of thread flags to try. Items starting with a "-" are | ||||
# C compiler flags, and other items are library names, except for "none" | ||||
# which indicates that we try without any flags at all, and "pthread-config" | ||||
# which is a program returning the flags for the Pth emulation library. | ||||
ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt | ||||
hreads pthread --thread-safe -mt pthread-config" | ||||
# The ordering *is* (sometimes) important. Some notes on the | ||||
# individual items follow: | ||||
# pthreads: AIX (must check this before -lpthread) | ||||
# none: in case threads are in libc; should be tried before -Kthread and | ||||
# other compiler flags to prevent continual compiler warnings | ||||
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | ||||
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | ||||
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | ||||
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | ||||
# -pthreads: Solaris/gcc | ||||
# -mthreads: Mingw32/gcc, Lynx/gcc | ||||
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | ||||
# doesn't hurt to check since this sometimes defines pthreads too; | ||||
# also defines -D_REENTRANT) | ||||
# ... -mt is also the pthreads flag for HP/aCC | ||||
# pthread: Linux, etcetera | ||||
# --thread-safe: KAI C++ | ||||
# pthread-config: use pthread-config program (for GNU Pth library) | ||||
case "${host_cpu}-${host_os}" in | ||||
*solaris*) | ||||
# On Solaris (at least, for some versions), libc contains stubbed | ||||
# (non-functional) versions of the pthreads routines, so link-based | ||||
# tests will erroneously succeed. (We need to link with -pthreads/-mt/ | ||||
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | ||||
# a function called by this macro, so we could check for that, but | ||||
# who knows whether they'll stub that too in a future libc.) So, | ||||
# we'll just look for -pthreads and -lpthread first: | ||||
ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" | ||||
;; | ||||
*-darwin*) | ||||
ax_pthread_flags="-pthread $ax_pthread_flags" | ||||
;; | ||||
esac | ||||
if test x"$ax_pthread_ok" = xno; then | ||||
for flag in $ax_pthread_flags; do | ||||
case $flag in | ||||
none) | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthrea | ||||
ds work without any flags" >&5 | ||||
$as_echo_n "checking whether pthreads work without any flags... " >&6; } | ||||
;; | ||||
-*) | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthrea | ||||
ds work with $flag" >&5 | ||||
$as_echo_n "checking whether pthreads work with $flag... " >&6; } | ||||
PTHREAD_CFLAGS="$flag" | ||||
;; | ||||
pthread-config) | ||||
# Extract the first word of "pthread-config", so it can be a pro | ||||
gram name with args. | ||||
set dummy pthread-config; ac_word=$2 | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
$as_echo_n "checking for $ac_word... " >&6; } | ||||
if ${ac_cv_prog_ax_pthread_config+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
if test -n "$ax_pthread_config"; then | ||||
ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the | ||||
test. | ||||
else | ||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
for as_dir in $PATH | ||||
do | ||||
IFS=$as_save_IFS | ||||
test -z "$as_dir" && as_dir=. | ||||
for ac_exec_ext in '' $ac_executable_extensions; do | ||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
ac_cv_prog_ax_pthread_config="yes" | ||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||||
&5 | ||||
break 2 | ||||
fi | ||||
done | ||||
done | ||||
IFS=$as_save_IFS | ||||
test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | ||||
fi | ||||
fi | ||||
ax_pthread_config=$ac_cv_prog_ax_pthread_config | ||||
if test -n "$ax_pthread_config"; then | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | ||||
$as_echo "$ax_pthread_config" >&6; } | ||||
else | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
$as_echo "no" >&6; } | ||||
fi | ||||
if test x"$ax_pthread_config" = xno; then continue; fi | ||||
PTHREAD_CFLAGS="`pthread-config --cflags`" | ||||
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs` | ||||
" | ||||
;; | ||||
*) | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthrea | ||||
ds library -l$flag" >&5 | ||||
$as_echo_n "checking for the pthreads library -l$flag... " >&6; } | ||||
PTHREAD_LIBS="-l$flag" | ||||
;; | ||||
esac | ||||
save_LIBS="$LIBS" | ||||
save_CFLAGS="$CFLAGS" | ||||
LIBS="$PTHREAD_LIBS $LIBS" | ||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | ||||
# Check for various functions. We must include pthread.h, | ||||
# since some functions may be macros. (On the Sequent, we | ||||
# need a special flag -Kthread to make this header compile.) | ||||
# We check for pthread_join because it is in -lpthread on IRIX | ||||
# while pthread_create is in libc. We check for pthread_attr_init | ||||
# due to DEC craziness with -lpthreads. We check for | ||||
# pthread_cleanup_push because it is one of the few pthread | ||||
# functions on Solaris that doesn't have a non-functional libc stub. | ||||
# We try pthread_create on general principles. | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#include <pthread.h> | ||||
static void routine(void *a) { a = 0; } | ||||
static void *start_routine(void *a) { return a; } | ||||
int | ||||
main () | ||||
{ | ||||
pthread_t th; pthread_attr_t attr; | ||||
pthread_create(&th, 0, start_routine, 0); | ||||
pthread_join(th, 0); | ||||
pthread_attr_init(&attr); | ||||
pthread_cleanup_push(routine, 0); | ||||
pthread_cleanup_pop(0) /* ; */ | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
ax_pthread_ok=yes | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
LIBS="$save_LIBS" | ||||
CFLAGS="$save_CFLAGS" | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | ||||
$as_echo "$ax_pthread_ok" >&6; } | ||||
if test "x$ax_pthread_ok" = xyes; then | ||||
break; | ||||
fi | ||||
PTHREAD_LIBS="" | ||||
PTHREAD_CFLAGS="" | ||||
done | ||||
fi | ||||
# Various other checks: | ||||
if test "x$ax_pthread_ok" = xyes; then | ||||
save_LIBS="$LIBS" | ||||
LIBS="$PTHREAD_LIBS $LIBS" | ||||
save_CFLAGS="$CFLAGS" | ||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | ||||
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread a | ||||
ttribute" >&5 | ||||
$as_echo_n "checking for joinable pthread attribute... " >&6; } | ||||
attr_name=unknown | ||||
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#include <pthread.h> | ||||
int | ||||
main () | ||||
{ | ||||
int attr = $attr; return attr /* ; */ | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
attr_name=$attr; break | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
done | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | ||||
$as_echo "$attr_name" >&6; } | ||||
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define PTHREAD_CREATE_JOINABLE $attr_name | ||||
_ACEOF | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags | ||||
are required for pthreads" >&5 | ||||
$as_echo_n "checking if more special flags are required for pthreads... " >&6; } | ||||
flag=no | ||||
case "${host_cpu}-${host_os}" in | ||||
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | ||||
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | ||||
esac | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | ||||
$as_echo "${flag}" >&6; } | ||||
if test "x$flag" != xno; then | ||||
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHER | ||||
IT" >&5 | ||||
$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } | ||||
if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#include <pthread.h> | ||||
int | ||||
main () | ||||
{ | ||||
int i = PTHREAD_PRIO_INHERIT; | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
ax_cv_PTHREAD_PRIO_INHERIT=yes | ||||
else | ||||
ax_cv_PTHREAD_PRIO_INHERIT=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: $ax_cv_PTHREAD_PRIO_INHERIT" >& | ||||
5 | ||||
$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | ||||
if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : | ||||
$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h | ||||
fi | ||||
LIBS="$save_LIBS" | ||||
CFLAGS="$save_CFLAGS" | ||||
# More AIX lossage: must compile with xlc_r or cc_r | ||||
if test x"$GCC" != xyes; then | ||||
for ac_prog in xlc_r cc_r | ||||
do | ||||
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
set dummy $ac_prog; ac_word=$2 | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
$as_echo_n "checking for $ac_word... " >&6; } | ||||
if ${ac_cv_prog_PTHREAD_CC+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
if test -n "$PTHREAD_CC"; then | ||||
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | ||||
else | ||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
for as_dir in $PATH | ||||
do | ||||
IFS=$as_save_IFS | ||||
test -z "$as_dir" && as_dir=. | ||||
for ac_exec_ext in '' $ac_executable_extensions; do | ||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
ac_cv_prog_PTHREAD_CC="$ac_prog" | ||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||||
&5 | ||||
break 2 | ||||
fi | ||||
done | ||||
done | ||||
IFS=$as_save_IFS | ||||
fi | ||||
fi | ||||
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | ||||
if test -n "$PTHREAD_CC"; then | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | ||||
$as_echo "$PTHREAD_CC" >&6; } | ||||
else | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
$as_echo "no" >&6; } | ||||
fi | ||||
test -n "$PTHREAD_CC" && break | ||||
done | ||||
test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | ||||
else | ||||
PTHREAD_CC=$CC | ||||
fi | ||||
else | ||||
PTHREAD_CC="$CC" | ||||
fi | ||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | ||||
if test x"$ax_pthread_ok" = xyes; then | ||||
echo Using settings from AX_PTHREAD | ||||
LIBS="$PTHREAD_LIBS $LIBS" | ||||
CFLAGS=" $PTHREAD_CFLAGS $CFLAGS" | ||||
CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS " | ||||
CPPFLAGS="$PTHREAD_CFLAGS $CPPFLAGS " | ||||
CC="$PTHREAD_CC" | ||||
: | ||||
else | ||||
ax_pthread_ok=no | ||||
fi | ||||
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 | ||||
fi | ||||
for ac_header in pthread.h | ||||
do : | ||||
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ | ||||
ac_includes_default" | ||||
if test "x$ac_cv_header_pthread_h" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_PTHREAD_H 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthrea | ||||
dGC2" >&5 | ||||
$as_echo_n "checking for pthread_create in -lpthreadGC2... " >&6; } | ||||
if ${ac_cv_lib_pthreadGC2_pthread_create+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
ac_check_lib_save_LIBS=$LIBS | ||||
LIBS="-lpthreadGC2 $LIBS" | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
/* Override any GCC internal prototype to avoid an error. | ||||
Use char because int might match the return type of a GCC | ||||
builtin and then its argument prototype would still apply. */ | ||||
#ifdef __cplusplus | ||||
extern "C" | ||||
#endif | ||||
char pthread_create (); | ||||
int | ||||
main () | ||||
{ | ||||
return pthread_create (); | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
ac_cv_lib_pthreadGC2_pthread_create=yes | ||||
else | ||||
ac_cv_lib_pthreadGC2_pthread_create=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
LIBS=$ac_check_lib_save_LIBS | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC2_pthread_c | ||||
reate" >&5 | ||||
$as_echo "$ac_cv_lib_pthreadGC2_pthread_create" >&6; } | ||||
if test "x$ac_cv_lib_pthreadGC2_pthread_create" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_LIBPTHREADGC2 1 | ||||
_ACEOF | ||||
LIBS="-lpthreadGC2 $LIBS" | ||||
fi | ||||
################################################################ | ################################################################ | |||
# Boost | # Boost | |||
for ac_header in boost/version.hpp | for ac_header in boost/version.hpp | |||
do : | do : | |||
ac_fn_c_check_header_mongrel "$LINENO" "boost/version.hpp" "ac_cv_header_boost _version_hpp" "$ac_includes_default" | ac_fn_c_check_header_mongrel "$LINENO" "boost/version.hpp" "ac_cv_header_boost _version_hpp" "$ac_includes_default" | |||
if test "x$ac_cv_header_boost_version_hpp" = xyes; then : | if test "x$ac_cv_header_boost_version_hpp" = xyes; then : | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define HAVE_BOOST_VERSION_HPP 1 | #define HAVE_BOOST_VERSION_HPP 1 | |||
_ACEOF | _ACEOF | |||
skipping to change at line 8721 | skipping to change at line 8684 | |||
If your libpcap is installed in a non-standard location, you will need | If your libpcap is installed in a non-standard location, you will need | |||
to use the --with-pcap=directory to specify where your pcap is | to use the --with-pcap=directory to specify where your pcap is | |||
located." >&2;} | located." >&2;} | |||
Fmissing_library="$Fmissing_library libpcap-dev " | Fmissing_library="$Fmissing_library libpcap-dev " | |||
Umissing_library="$Umissing_library libpcap-dev " | Umissing_library="$Umissing_library libpcap-dev " | |||
Mmissing_library="$Mmissing_library libpcap " | Mmissing_library="$Mmissing_library libpcap " | |||
fi | fi | |||
fi | fi | |||
for ac_func in pcap_findalldevs | ||||
do : | ||||
ac_fn_c_check_func "$LINENO" "pcap_findalldevs" "ac_cv_func_pcap_findalldevs" | ||||
if test "x$ac_cv_func_pcap_findalldevs" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_PCAP_FINDALLDEVS 1 | ||||
_ACEOF | ||||
fi | ||||
done | ||||
# Check whether --enable-wifi was given. | # Check whether --enable-wifi was given. | |||
if test "${enable_wifi+set}" = set; then : | if test "${enable_wifi+set}" = set; then : | |||
enableval=$enable_wifi; | enableval=$enable_wifi; | |||
else | else | |||
if test x"no" = x"$mingw"; then | if test x"no" = x"$mingw"; then | |||
$as_echo "#define USE_WIFI 1" >>confdefs.h | $as_echo "#define USE_WIFI 1" >>confdefs.h | |||
skipping to change at line 8979 | skipping to change at line 8952 | |||
semaphore.h \ | semaphore.h \ | |||
signal.h \ | signal.h \ | |||
string.h \ | string.h \ | |||
strings.h \ | strings.h \ | |||
stdio.h \ | stdio.h \ | |||
stdlib.h \ | stdlib.h \ | |||
string.h \ | string.h \ | |||
syslog.h \ | syslog.h \ | |||
sys/cdefs.h \ | sys/cdefs.h \ | |||
sys/mman.h \ | sys/mman.h \ | |||
sys/param.h \ | ||||
sys/resource.h \ | sys/resource.h \ | |||
sys/socket.h \ | sys/socket.h \ | |||
sys/types.h \ | sys/types.h \ | |||
sys/bitypes.h \ | sys/bitypes.h \ | |||
sys/wait.h \ | sys/wait.h \ | |||
unistd.h \ | unistd.h \ | |||
do : | do : | |||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default" | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default" | |||
skipping to change at line 9943 | skipping to change at line 9917 | |||
## Main body of $CONFIG_STATUS script. ## | ## Main body of $CONFIG_STATUS script. ## | |||
## ----------------------------------- ## | ## ----------------------------------- ## | |||
_ASEOF | _ASEOF | |||
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |||
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |||
# Save the log message, to keep $0 and so on meaningful, and to | # Save the log message, to keep $0 and so on meaningful, and to | |||
# report actual input values of CONFIG_FILES etc. instead of their | # report actual input values of CONFIG_FILES etc. instead of their | |||
# values after options handling. | # values after options handling. | |||
ac_log=" | ac_log=" | |||
This file was extended by TCPFLOW $as_me 1.5.0, which was | This file was extended by TCPFLOW $as_me 1.6.1, which was | |||
generated by GNU Autoconf 2.69. Invocation command line was | generated by GNU Autoconf 2.69. Invocation command line was | |||
CONFIG_FILES = $CONFIG_FILES | CONFIG_FILES = $CONFIG_FILES | |||
CONFIG_HEADERS = $CONFIG_HEADERS | CONFIG_HEADERS = $CONFIG_HEADERS | |||
CONFIG_LINKS = $CONFIG_LINKS | CONFIG_LINKS = $CONFIG_LINKS | |||
CONFIG_COMMANDS = $CONFIG_COMMANDS | CONFIG_COMMANDS = $CONFIG_COMMANDS | |||
$ $0 $@ | $ $0 $@ | |||
on `(hostname || uname -n) 2>/dev/null | sed 1q` | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |||
" | " | |||
skipping to change at line 10008 | skipping to change at line 9982 | |||
Configuration commands: | Configuration commands: | |||
$config_commands | $config_commands | |||
Report bugs to <simsong@acm.org>." | Report bugs to <simsong@acm.org>." | |||
_ACEOF | _ACEOF | |||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`" | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`" | |||
ac_cs_version="\\ | ac_cs_version="\\ | |||
TCPFLOW config.status 1.5.0 | TCPFLOW config.status 1.6.1 | |||
configured by $0, generated by GNU Autoconf 2.69, | configured by $0, generated by GNU Autoconf 2.69, | |||
with options \\"\$ac_cs_config\\" | with options \\"\$ac_cs_config\\" | |||
Copyright (C) 2012 Free Software Foundation, Inc. | Copyright (C) 2012 Free Software Foundation, Inc. | |||
This config.status script is free software; the Free Software Foundation | This config.status script is free software; the Free Software Foundation | |||
gives unlimited permission to copy, distribute and modify it." | gives unlimited permission to copy, distribute and modify it." | |||
ac_pwd='$ac_pwd' | ac_pwd='$ac_pwd' | |||
srcdir='$srcdir' | srcdir='$srcdir' | |||
INSTALL='$INSTALL' | INSTALL='$INSTALL' | |||
skipping to change at line 10816 | skipping to change at line 10790 | |||
&& sed -e '/# am--include-marker/d' "$am_filepart" \ | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |||
| $MAKE -f - am--depfiles) >&5 2>&5 | | $MAKE -f - am--depfiles) >&5 2>&5 | |||
ac_status=$? | ac_status=$? | |||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |||
(exit $ac_status); } || am_rc=$? | (exit $ac_status); } || am_rc=$? | |||
done | done | |||
if test $am_rc -ne 0; then | if test $am_rc -ne 0; then | |||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |||
as_fn_error $? "Something went wrong bootstrapping makefile fragments | as_fn_error $? "Something went wrong bootstrapping makefile fragments | |||
for automatic dependency tracking. Try re-running configure with the | for automatic dependency tracking. If GNU make was not used, consider | |||
re-running the configure script with MAKE=\"gmake\" (or whatever is | ||||
necessary). You can also try re-running configure with the | ||||
'--disable-dependency-tracking' option to at least be able to build | '--disable-dependency-tracking' option to at least be able to build | |||
the package (albeit without support for automatic dependency tracking). | the package (albeit without support for automatic dependency tracking). | |||
See \`config.log' for more details" "$LINENO" 5; } | See \`config.log' for more details" "$LINENO" 5; } | |||
fi | fi | |||
{ am_dirpart=; unset am_dirpart;} | { am_dirpart=; unset am_dirpart;} | |||
{ am_filepart=; unset am_filepart;} | { am_filepart=; unset am_filepart;} | |||
{ am_mf=; unset am_mf;} | { am_mf=; unset am_mf;} | |||
{ am_rc=; unset am_rc;} | { am_rc=; unset am_rc;} | |||
rm -f conftest-deps.mk | rm -f conftest-deps.mk | |||
} | } | |||
End of changes. 46 change blocks. | ||||
1081 lines changed or deleted | 1031 lines changed or added |