From 673a2bb07b9e54a32699a9d7ca916dc5114d8d45 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 5 Aug 2013 15:14:31 +1000 Subject: [PATCH] 3624. [bug] Look for 'json_object_new_int64' when looking for a the json library. [RT #34449] --- CHANGES | 3 +++ configure | 26 +++++++++++++------------- configure.in | 4 ++-- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/CHANGES b/CHANGES index aac333f15f..2b0f47fde0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3624. [bug] Look for 'json_object_new_int64' when looking for a + the json library. [RT #34449] + 3623. [placeholder] 3622. [tuning] Eliminate an unnecessary lock when incrementing diff --git a/configure b/configure index bc1f2493ea..b206978e35 100755 --- a/configure +++ b/configure @@ -16059,13 +16059,13 @@ case "$use_libjson" in ;; esac -if test "%${have_libjson}" != "X" +if test "X${have_libjson}" != "X" then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int" >&5 -$as_echo_n "checking for library containing json_object_new_int... " >&6; } -if ${ac_cv_search_json_object_new_int+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5 +$as_echo_n "checking for library containing json_object_new_int64... " >&6; } +if ${ac_cv_search_json_object_new_int64+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS @@ -16078,11 +16078,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #ifdef __cplusplus extern "C" #endif -char json_object_new_int (); +char json_object_new_int64 (); int main () { -return json_object_new_int (); +return json_object_new_int64 (); ; return 0; } @@ -16095,25 +16095,25 @@ for ac_lib in '' json json-c; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_json_object_new_int=$ac_res + ac_cv_search_json_object_new_int64=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if ${ac_cv_search_json_object_new_int+:} false; then : + if ${ac_cv_search_json_object_new_int64+:} false; then : break fi done -if ${ac_cv_search_json_object_new_int+:} false; then : +if ${ac_cv_search_json_object_new_int64+:} false; then : else - ac_cv_search_json_object_new_int=no + ac_cv_search_json_object_new_int64=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int" >&5 -$as_echo "$ac_cv_search_json_object_new_int" >&6; } -ac_res=$ac_cv_search_json_object_new_int +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5 +$as_echo "$ac_cv_search_json_object_new_int64" >&6; } +ac_res=$ac_cv_search_json_object_new_int64 if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" diff --git a/configure.in b/configure.in index 7198c37e82..ea136ee9b2 100644 --- a/configure.in +++ b/configure.in @@ -1535,10 +1535,10 @@ case "$use_libjson" in ;; esac -if test "%${have_libjson}" != "X" +if test "X${have_libjson}" != "X" then AC_MSG_RESULT(yes) - AC_SEARCH_LIBS([json_object_new_int], [json json-c], [], + AC_SEARCH_LIBS([json_object_new_int64], [json json-c], [], [AC_MSG_WARN([found libjson include but not library.]) have_libjson=""]) else