From 9950f69baf175606d8fb72ce0b9bb10b892934f1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 4 Sep 2014 15:30:38 +0200 Subject: [PATCH] Fix JSON detection --- ext/config.m4 | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/ext/config.m4 b/ext/config.m4 index 88f8e4c..2340e9b 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -399,23 +399,17 @@ registry.c" [[#include "php_config.h"]] ) - AC_CHECK_DECL( - [HAVE_JSON], + AC_CHECK_HEADERS( + [ext/json/php_json.h], [ - AC_CHECK_HEADERS( - [ext/json/php_json.h], - [ - PHP_ADD_EXTENSION_DEP([phalcon], [json]) - AC_DEFINE([PHALCON_USE_PHP_JSON], [1], [Whether PHP json extension is present at compile time]) - ], - , - [[#include "main/php.h"]] - ) + PHP_ADD_EXTENSION_DEP([phalcon], [json]) + AC_DEFINE([PHALCON_USE_PHP_JSON], [1], [Whether PHP json extension is present at compile time]) ], , - [[#include "php_config.h"]] + [[#include "main/php.h"]] ) + AC_CHECK_DECL( [HAVE_PHP_SESSION], [