]> granicus.if.org Git - postgis/commitdiff
configure_json.patch (#1539) from Evan Roualt
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 8 Feb 2012 06:42:26 +0000 (06:42 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 8 Feb 2012 06:42:26 +0000 (06:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9094 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index ec6e50c782b36947420438241ec4f50d28df8db1..6edb4f218f72a307c91108ce14d3cfadeb72b226 100644 (file)
@@ -674,6 +674,9 @@ LIBS="$LIBS_SAVE"
 
 if test "$HAVE_JSON" = "yes"; then
        AC_DEFINE([HAVE_LIBJSON], 1, [Define to 1 if libjson is present])
+    if test "x$JSON_LDFLAGS" = "x"; then
+        JSON_LDFLAGS="-ljson"
+    fi
 fi
 
 AC_SUBST([JSON_CPPFLAGS])