Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg: Add check for php-json #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions autotools/m4/phpjson.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# This macro test for php-json (used by webgui)
#
AC_DEFUN([AX_PHPJSON_CHECK],
[
chkfile="/usr/lib64/php/modules/json.so"

AC_CHECK_FILE([$chkfile],
[
], [
AC_MSG_WARN(***********************************************)
AC_MSG_WARN(php-json not found under $chkfile)
AC_MSG_WARN(webgui will build however it may fail to render)
AC_MSG_WARN(graphs yum install php-json?)
AC_MSG_WARN(***********************************************)
])
])
6 changes: 6 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ AX_ENABLE_FLAG([gprof], [test only: add gprof info to the binaries], [-g -pg])
AX_ENABLE_FLAG([gcov], [test only: add gcov info to the binaries], [--coverage])
AX_VALGRIND_CHECK

#
# Check for php-json
#
AX_PHPJSON_CHECK


# behavior flags
AX_DISABLE_FLAG([atfunc], [Don't use 'at' functions for scanning], [-D_NO_AT_FUNC])

Expand Down