Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix GH-15381: Autotools: Refactor main/internal_functions commands#15514

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Changes fromall 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
FixGH-15381: Autotools: Refactor main/internal_functions commands
This wraps generation of main/internal_functions* files into a separateAC_CONFIG_COMMANDS and uses a SHELL variable instead of sh command.Autoconf sets the SHELL variable to a suitable current shell theconfigure is running in.Instead of putting the commands into the 2nd argument the 3rdinitialization argument is used like before because it is easier to readand work with variables (AWK, EXT_STATIC and EXT_CLI_STATIC), whichwould need to be assigned again for the 2nd argument.This simplifies the configure usage on Solaris 10 C shell and KornShellwithout issuing errors when executing genif.sh script.
  • Loading branch information
@petk
petk committedAug 21, 2024
commit56461dc151d001c7b80f3058075391be548123a6
18 changes: 12 additions & 6 deletionsconfigure.ac
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1796,6 +1796,18 @@ AC_CONFIG_FILES([

AC_CONFIG_COMMANDS_PRE([PHP_PATCH_CONFIG_HEADERS([main/php_config.h.in])])

AC_CONFIG_COMMANDS([main/internal_functions.c], [], [
AWK="$AWK" $SHELL $srcdir/build/genif.sh \
$srcdir/main/internal_functions.c.in \
"$EXT_STATIC" > main/internal_functions.c
])

AC_CONFIG_COMMANDS([main/internal_functions_cli.c], [], [
AWK="$AWK" $SHELL $srcdir/build/genif.sh \
$srcdir/main/internal_functions.c.in \
"$EXT_CLI_STATIC" > main/internal_functions_cli.c
])

AC_CONFIG_COMMANDS([default],[
cat <<X

Expand All@@ -1817,11 +1829,5 @@ dnl ----------------------------------------------------------------------------
cat >Zend/zend_config.h <<FEO
#include <../main/php_config.h>
FEO

echo "creating main/internal_functions.c"
AWK="$AWK" sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in "$EXT_STATIC" > main/internal_functions.c

echo "creating main/internal_functions_cli.c"
AWK="$AWK" sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in "$EXT_CLI_STATIC" > main/internal_functions_cli.c
])
AC_OUTPUT

[8]ページ先頭

©2009-2025 Movatter.jp