This repository has been archived by the owner on Dec 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ configurable and makeable nginx_http_js_module packed as the real n…
…ginx module
- Loading branch information
0 parents
commit a5e1317
Showing
3 changed files
with
993 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ngx_addon_name=ngx_http_js_module | ||
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_js_module.c" | ||
|
||
echo "checking for JavaScript" | ||
NGX_JS="js" | ||
NGX_JS_VER=`$NGX_JS -v 2>&1 | grep '^JavaScript-C' 2>&1 | sed -e 's/^JavaScript-C \(.*\)/\1/'` | ||
|
||
if test -n "$NGX_JS_VER"; then | ||
echo " + JavaScript version: $NGX_JS_VER" | ||
|
||
if [ "`echo 'let a; print("OK")' | $NGX_JS -version 170 2>&1`" != OK ]; then | ||
echo | ||
echo "$0: error: JavaScript 1.7.0 or higher is required" | ||
echo | ||
|
||
exit 1; | ||
fi | ||
|
||
CFLAGS="-I $ngx_addon_dir $CFLAGS" | ||
|
||
# CORE_LINK="$CORE_LINK -ljs" | ||
CORE_LIBS="$CORE_LIBS -ljs" | ||
else | ||
echo | ||
echo "$0: error: JavaScript 1.7.0 or higher is required, none was founded" | ||
echo | ||
|
||
exit 1; | ||
fi |
Oops, something went wrong.