@ -868,7 +868,9 @@ VERSIONSCRIPTFLAG
VERSIONSCRIPT_TRUE
VERSIONSCRIPT_FALSE
GPERF
LCHECK
PKG_CONFIG
CHECK_CFLAGS
CHECK_LIBS
ENABLE_COVERAGE_TRUE
ENABLE_COVERAGE_FALSE
ENABLE_UT_INSTALL_TRUE
@ -915,7 +917,10 @@ CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP'
CPP
PKG_CONFIG
CHECK_CFLAGS
CHECK_LIBS'
# Initialize some variables set by options.
@ -1564,6 +1569,10 @@ Some influential environment variables:
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
PKG_CONFIG path to pkg-config utility
CHECK_CFLAGS
C compiler flags for CHECK, overriding pkg-config
CHECK_LIBS linker flags for CHECK, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
@ -4778,7 +4787,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 4781 "configure"' > conftest.$ac_ext
echo '#line 4790 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@ -6868,11 +6877,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6871 : $lt_compile\"" >&5)
(eval echo "\"\$as_me:6880 : $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6875 : \$? = $ac_status" >&5
echo "$as_me:6884 : \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -7158,11 +7167,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7161 : $lt_compile\"" >&5)
(eval echo "\"\$as_me:7170 : $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:7165 : \$? = $ac_status" >&5
echo "$as_me:7174 : \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -7262,11 +7271,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7265 : $lt_compile\"" >&5)
(eval echo "\"\$as_me:7274 : $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:7269 : \$? = $ac_status" >&5
echo "$as_me:7278 : \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -9639,7 +9648,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 9642 "configure"
#line 9651 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -9739,7 +9748,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 9742 "configure"
#line 9751 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -13064,9 +13073,217 @@ else
fi
LCHECK=""
if test "$enable_check_ut" != "no" ; then
if test "${ac_cv_header_check_h+set}" = set; then
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
;;
*)
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
echo "${ECHO_T}$PKG_CONFIG" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
ac_pt_PKG_CONFIG=$PKG_CONFIG
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $ac_pt_PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
;;
*)
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
if test "x$ac_pt_PKG_CONFIG" = x; then
PKG_CONFIG=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
PKG_CONFIG=$ac_pt_PKG_CONFIG
fi
else
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi
fi
if test -n "$PKG_CONFIG"; then
_pkg_min_version=0.9.0
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
PKG_CONFIG=""
fi
fi
pkg_failed=no
{ echo "$as_me:$LINENO: checking for CHECK" >&5
echo $ECHO_N "checking for CHECK... $ECHO_C" >&6; }
if test -n "$PKG_CONFIG"; then
if test -n "$CHECK_CFLAGS"; then
pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
else
if test -n "$PKG_CONFIG" && \
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check\"") >&5
($PKG_CONFIG --exists --print-errors "check") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check" 2>/dev/null`
else
pkg_failed=yes
fi
fi
else
pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
if test -n "$CHECK_LIBS"; then
pkg_cv_CHECK_LIBS="$CHECK_LIBS"
else
if test -n "$PKG_CONFIG" && \
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check\"") >&5
($PKG_CONFIG --exists --print-errors "check") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check" 2>/dev/null`
else
pkg_failed=yes
fi
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "check"`
else
CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check"`
fi
# Put the nasty error message in config.log where it belongs
echo "$CHECK_PKG_ERRORS" >&5
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
{ echo "$as_me:$LINENO: WARNING: pkg-config not found
Alternatively, you may set the environment variables CHECK_CFLAGS
and CHECK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." >&5
echo "$as_me: WARNING: pkg-config not found
Alternatively, you may set the environment variables CHECK_CFLAGS
and CHECK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." >&2;}
elif test $pkg_failed = untried; then
{ echo "$as_me:$LINENO: WARNING: pkg-config not found
Alternatively, you may set the environment variables CHECK_CFLAGS
and CHECK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." >&5
echo "$as_me: WARNING: pkg-config not found
Alternatively, you may set the environment variables CHECK_CFLAGS
and CHECK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." >&2;}
else
CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
CHECK_LIBS=$pkg_cv_CHECK_LIBS
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
:
fi
save_CPPFLAGS="$CPPFLAGS";
CPPFLAGS="$CPPFLAGS $CHECK_CFLAGS"
save_LIBS="$LIBS"
LIBS="$LIBS $CHECK_LIBS"
if test "${ac_cv_header_check_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for check.h" >&5
echo $ECHO_N "checking for check.h... $ECHO_C" >&6; }
if test "${ac_cv_header_check_h+set}" = set; then
@ -13198,14 +13415,9 @@ echo "${ECHO_T}$ac_cv_header_check_h" >&6; }
fi
if test $ac_cv_header_check_h = yes; then
{ echo "$as_me:$LINENO: checking for srunner_create in -lcheck" >&5
echo $ECHO_N "checking for srunner_create in -lcheck... $ECHO_C" >&6; }
if test "${ac_cv_lib_check_srunner_create+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcheck $LIBS"
cat >conftest.$ac_ext <<_ACEOF
{ echo "$as_me:$LINENO: checking linking with check" >&5
echo $ECHO_N "checking linking with check... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@ -13245,29 +13457,15 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_check_srunner_create=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_check_srunner_create=no
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_check_srunner_create" >&5
echo "${ECHO_T}$ac_cv_lib_check_srunner_create" >&6; }
if test $ac_cv_lib_check_srunner_create = yes; then
LCHECK="-lcheck";
{ echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6; }
cat >>confdefs.h <<\_ACEOF
#define HAVE_CHECK 1
_ACEOF
# Check whether --enable-tests-install was given.
# Check whether --enable-tests-install was given.
if test "${enable_tests_install+set}" = set; then
enableval=$enable_tests_install; enable_ut_install=$enableval
else
@ -13276,23 +13474,35 @@ fi
else
LCHECK="no"
fi
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
{ echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6; };CHECK_LIBS=
else
LCHECK="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
if test "$LCHECK" = "no" -a "$enable_check_ut" = "yes"; then
echo
echo " ERROR! Check was configured, but not found. Get it from http://check.sf.net/"
exit 1
fi
LIBS="$save_LIBS"
CPPFLAGS="$save_CPPFLAGS"
fi
if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then
{ { echo "$as_me:$LINENO: error:
$CHECK_PKG_ERRORS
ERROR! Check was configured, but not found. Get it from http://check.sf.net/
" >&5
echo "$as_me: error:
$CHECK_PKG_ERRORS
ERROR! Check was configured, but not found. Get it from http://check.sf.net/
" >&2;}
{ (exit 1); exit 1; }; }
fi
# Check whether --enable-coverage was given.
if test "${enable_coverage+set}" = set; then
@ -13303,6 +13513,11 @@ fi
if test "x$enable_coverage" = "xyes"; then
if test "x$CHECK_LIBS" = "x"; then
{ { echo "$as_me:$LINENO: error: Coverage testing required, but unit tests not enabled!" >&5
echo "$as_me: error: Coverage testing required, but unit tests not enabled!" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "x$ac_compiler_gnu" != "xyes"; then
{ { echo "$as_me:$LINENO: error: coverage testing only works if gcc is used" >&5
echo "$as_me: error: coverage testing only works if gcc is used" >&2;}
@ -14984,7 +15199,7 @@ fi
echo "${ECHO_T}$ac_cv_c_cve_2008_1372" >&6; }
else
$ ac_cv_c_cve_2008_1372="no"
ac_cv_c_cve_2008_1372="no"
fi
@ -20471,7 +20686,9 @@ VERSIONSCRIPTFLAG!$VERSIONSCRIPTFLAG$ac_delim
VERSIONSCRIPT_TRUE!$VERSIONSCRIPT_TRUE$ac_delim
VERSIONSCRIPT_FALSE!$VERSIONSCRIPT_FALSE$ac_delim
GPERF!$GPERF$ac_delim
LCHECK!$LCHECK$ac_delim
PKG_CONFIG!$PKG_CONFIG$ac_delim
CHECK_CFLAGS!$CHECK_CFLAGS$ac_delim
CHECK_LIBS!$CHECK_LIBS$ac_delim
ENABLE_COVERAGE_TRUE!$ENABLE_COVERAGE_TRUE$ac_delim
ENABLE_COVERAGE_FALSE!$ENABLE_COVERAGE_FALSE$ac_delim
ENABLE_UT_INSTALL_TRUE!$ENABLE_UT_INSTALL_TRUE$ac_delim
@ -20511,7 +20728,7 @@ LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44 ; then
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46 ; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5