From eb76ba76f86dcb7a4f7c26c2b529a359d13b4d54 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Tue, 21 Jan 2014 16:44:44 +0000 Subject: [PATCH] fixed json checking --- configure | 95 ------------------------------------------------------------ configure.ac | 5 ---- 2 files changed, 100 deletions(-) diff --git a/configure b/configure index 380ec8e..6524127 100755 --- a/configure +++ b/configure @@ -7022,101 +7022,6 @@ fi -JSON_LIBS= - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5 -$as_echo_n "checking for JSON... " >&6; } - -if test -n "$JSON_CFLAGS"; then - pkg_cv_JSON_CFLAGS="$JSON_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5 - ($PKG_CONFIG --exists --print-errors "json") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$JSON_LIBS"; then - pkg_cv_JSON_LIBS="$JSON_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5 - ($PKG_CONFIG --exists --print-errors "json") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -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 - JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1` - else - JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$JSON_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (json) were not met: - -$JSON_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables JSON_CFLAGS -and JSON_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables JSON_CFLAGS -and JSON_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - JSON_CFLAGS=$pkg_cv_JSON_CFLAGS - JSON_LIBS=$pkg_cv_JSON_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - - # Gsettings diff --git a/configure.ac b/configure.ac index 182d4d4..5ae10f4 100644 --- a/configure.ac +++ b/configure.ac @@ -61,11 +61,6 @@ AM_CONDITIONAL(JSON, test -n "$JSON_LIBS") AC_SUBST(JSON_CFLAGS) AC_SUBST(JSON_LIBS) -JSON_LIBS= -PKG_CHECK_MODULES(JSON, json) -AC_SUBST(JSON_CFLAGS) -AC_SUBST(JSON_LIBS) - # Gsettings GLIB_GSETTINGS -- 2.7.4