Code

Fix detection of libyajl and fix compilation if it's missing.
[sysdb.git] / configure.ac
index c6710041cb5c631f50041f73f1e2f662b1dc7109..521f0acb5440961fd58d7a94b63cf67bf19e89a7 100644 (file)
@@ -480,7 +480,7 @@ AC_ARG_WITH([libyajl],
 if test "x$with_libyajl" = "xyes" || test "x$with_libyajl" = "xauto"; then
        PKG_CHECK_MODULES([YAJL], [yajl], [have_libyajl="yes"], [have_libyajl="no"])
 fi
-if test "x$with_libyajl" = "xyes"; then
+if test "x$have_libyajl" = "xyes"; then
        AC_DEFINE([HAVE_LIBYAJL], 1, [Define to 1 if you have the 'yajl' library.])
 fi