forked from Mirror/frr
configure: Auto pick-up the correct json env
Fix the code to allow Quagga to automatically compile with the correct json library. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Conflicts: configure.ac
This commit is contained in:
parent
ca492402ab
commit
10b8ab2691
|
@ -326,13 +326,10 @@ AC_ARG_ENABLE(rr-semantics,
|
||||||
AC_CHECK_HEADERS(json-c/json.h)
|
AC_CHECK_HEADERS(json-c/json.h)
|
||||||
AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c")
|
AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c")
|
||||||
if test $ac_cv_lib_json_c_json_object_get = no; then
|
if test $ac_cv_lib_json_c_json_object_get = no; then
|
||||||
|
AC_CHECK_LIB(json, json_object_get, LIBS="$LIBS -ljson")
|
||||||
|
if test $ac_cv_lib_json_json_object_get = no; then
|
||||||
AC_MSG_ERROR([lib json is needed to compile])
|
AC_MSG_ERROR([lib json is needed to compile])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_HEADERS(json-c/json.h)
|
|
||||||
AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c")
|
|
||||||
if test $ac_cv_lib_json_c_json_object_get = no; then
|
|
||||||
AC_MSG_ERROR([lib json is needed to compile])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x"${enable_gcc_rdynamic}" != x"no" ; then
|
if test x"${enable_gcc_rdynamic}" != x"no" ; then
|
||||||
|
|
Loading…
Reference in a new issue