-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
7,420 additions
and
2,639 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
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
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,46 @@ | ||
|
||
# Copyright (C) 2024 Web Server LLC | ||
|
||
echo $ngx_n "collecting build environment information...$ngx_c" | ||
|
||
$CC -include $NGX_AUTO_CONFIG_H -E -dM - < /dev/null >/dev/null 2>&1 | ||
if [ $? -ne 0 ]; then | ||
cat <<EOF >> $NGX_MODULES_C | ||
void | ||
ngx_show_build_info() | ||
{ | ||
ngx_write_stderr("environment information was disabled during build\n"); | ||
} | ||
EOF | ||
|
||
echo "skipped, no support found in selected CC" | ||
|
||
else | ||
|
||
cat <<EOF >> $NGX_MODULES_C | ||
void | ||
ngx_show_build_info() | ||
{ | ||
EOF | ||
|
||
$CC -include $NGX_AUTO_CONFIG_H -E -dM - < /dev/null \ | ||
| grep NGX \ | ||
| sed 's/#define //g;s/"/\\"/g;s/NGX_HAVE_//g;s/NGX_//g' \ | ||
| sort \ | ||
| awk ' | ||
{ | ||
printf(" ngx_write_stderr(\"%s\" \": \"\"", $1); | ||
for (i = 2; i <= NF; i++) { | ||
printf("%s", $i); | ||
if (i != NF && NF > 2) { | ||
printf(" "); | ||
} | ||
} | ||
printf("\"\"\\n\");\n"); | ||
}' >> $NGX_MODULES_C | ||
|
||
echo "} | ||
" >> $NGX_MODULES_C | ||
|
||
echo " ok" | ||
fi |
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
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
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
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
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
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
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
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
Oops, something went wrong.