Autotools: Sync indentation style in build system files (#14725)

This commit is contained in:
Peter Kokot 2024-06-29 23:25:17 +02:00 committed by GitHub
parent 4df90af44f
commit 212b2834e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 149 additions and 149 deletions

View File

@ -173,7 +173,7 @@ if test "$ZEND_DEBUG" = "yes"; then
AC_DEFINE(ZEND_DEBUG,1,[ ]) AC_DEFINE(ZEND_DEBUG,1,[ ])
echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g" echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
if test "$CFLAGS" = "-g -O2"; then if test "$CFLAGS" = "-g -O2"; then
CFLAGS=-g CFLAGS=-g
fi fi
else else
AC_DEFINE(ZEND_DEBUG,0,[ ]) AC_DEFINE(ZEND_DEBUG,0,[ ])

View File

@ -1022,10 +1022,10 @@ $3
int main(void) int main(void)
{ {
FILE *fp = fopen("conftestval", "w"); FILE *fp = fopen("conftestval", "w");
if (!fp) return(1); if (!fp) return(1);
fprintf(fp, "%d\n", sizeof($1)); fprintf(fp, "%d\n", sizeof($1));
return(0); return(0);
} }
]])], [ ]])], [
eval $php_cache_value=`cat conftestval` eval $php_cache_value=`cat conftestval`

View File

@ -233,25 +233,25 @@ dnl TCADB
if test "$PHP_TCADB" != "no"; then if test "$PHP_TCADB" != "no"; then
PHP_DBA_STD_BEGIN PHP_DBA_STD_BEGIN
for i in $PHP_TCADB /usr/local /usr; do for i in $PHP_TCADB /usr/local /usr; do
if test -f "$i/include/tcadb.h"; then if test -f "$i/include/tcadb.h"; then
THIS_PREFIX=$i THIS_PREFIX=$i
PHP_ADD_INCLUDE($THIS_PREFIX/include) PHP_ADD_INCLUDE($THIS_PREFIX/include)
THIS_INCLUDE=$i/include/tcadb.h THIS_INCLUDE=$i/include/tcadb.h
break break
fi fi
done done
if test -n "$THIS_INCLUDE"; then if test -n "$THIS_INCLUDE"; then
for LIB in tokyocabinet; do for LIB in tokyocabinet; do
PHP_CHECK_LIBRARY($LIB, tcadbopen, [ PHP_CHECK_LIBRARY($LIB, tcadbopen, [
AC_DEFINE_UNQUOTED(TCADB_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) AC_DEFINE_UNQUOTED(TCADB_INCLUDE_FILE, "$THIS_INCLUDE", [ ])
AC_DEFINE(DBA_TCADB, 1, [ ]) AC_DEFINE(DBA_TCADB, 1, [ ])
THIS_LIBS=$LIB THIS_LIBS=$LIB
], [], [-L$THIS_PREFIX/$PHP_LIBDIR]) ], [], [-L$THIS_PREFIX/$PHP_LIBDIR])
if test -n "$THIS_LIBS"; then if test -n "$THIS_LIBS"; then
break break
fi fi
done done
fi fi
PHP_DBA_STD_ASSIGN PHP_DBA_STD_ASSIGN
@ -264,25 +264,25 @@ dnl LMDB
if test "$PHP_LMDB" != "no"; then if test "$PHP_LMDB" != "no"; then
PHP_DBA_STD_BEGIN PHP_DBA_STD_BEGIN
for i in $PHP_LMDB /usr/local /usr; do for i in $PHP_LMDB /usr/local /usr; do
if test -f "$i/include/lmdb.h"; then if test -f "$i/include/lmdb.h"; then
THIS_PREFIX=$i THIS_PREFIX=$i
PHP_ADD_INCLUDE($THIS_PREFIX/include) PHP_ADD_INCLUDE($THIS_PREFIX/include)
THIS_INCLUDE=$i/include/lmdb.h THIS_INCLUDE=$i/include/lmdb.h
break break
fi fi
done done
if test -n "$THIS_INCLUDE"; then if test -n "$THIS_INCLUDE"; then
for LIB in lmdb; do for LIB in lmdb; do
PHP_CHECK_LIBRARY($LIB, mdb_env_open, [ PHP_CHECK_LIBRARY($LIB, mdb_env_open, [
AC_DEFINE_UNQUOTED(LMDB_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) AC_DEFINE_UNQUOTED(LMDB_INCLUDE_FILE, "$THIS_INCLUDE", [ ])
AC_DEFINE(DBA_LMDB, 1, [ ]) AC_DEFINE(DBA_LMDB, 1, [ ])
THIS_LIBS=$LIB THIS_LIBS=$LIB
], [], [-L$THIS_PREFIX/$PHP_LIBDIR]) ], [], [-L$THIS_PREFIX/$PHP_LIBDIR])
if test -n "$THIS_LIBS"; then if test -n "$THIS_LIBS"; then
break break
fi fi
done done
fi fi
PHP_DBA_STD_ASSIGN PHP_DBA_STD_ASSIGN

View File

@ -1,8 +1,8 @@
PHP_NEW_EXTENSION(json, PHP_NEW_EXTENSION(json,
json.c \ json.c \
json_encoder.c \ json_encoder.c \
json_parser.tab.c \ json_parser.tab.c \
json_scanner.c, json_scanner.c,
no,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) no,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_INSTALL_HEADERS([ext/json], [php_json.h php_json_parser.h php_json_scanner.h]) PHP_INSTALL_HEADERS([ext/json], [php_json.h php_json_parser.h php_json_scanner.h])
PHP_ADD_MAKEFILE_FRAGMENT() PHP_ADD_MAKEFILE_FRAGMENT()

View File

@ -52,9 +52,9 @@ if test "$PHP_OPCACHE" != "no"; then
AC_DEFINE(HAVE_JIT, 1, [Define to enable JIT]) AC_DEFINE(HAVE_JIT, 1, [Define to enable JIT])
AC_DEFINE(ZEND_JIT_IR, 1, [Use JIT IR framework]) AC_DEFINE(ZEND_JIT_IR, 1, [Use JIT IR framework])
ZEND_JIT_SRC="jit/zend_jit.c jit/zend_jit_vm_helpers.c jit/ir/ir.c jit/ir/ir_strtab.c \ ZEND_JIT_SRC="jit/zend_jit.c jit/zend_jit_vm_helpers.c jit/ir/ir.c jit/ir/ir_strtab.c \
jit/ir/ir_cfg.c jit/ir/ir_sccp.c jit/ir/ir_gcm.c jit/ir/ir_ra.c jit/ir/ir_save.c \ jit/ir/ir_cfg.c jit/ir/ir_sccp.c jit/ir/ir_gcm.c jit/ir/ir_ra.c jit/ir/ir_save.c \
jit/ir/ir_dump.c jit/ir/ir_gdb.c jit/ir/ir_perf.c jit/ir/ir_check.c \ jit/ir/ir_dump.c jit/ir/ir_gdb.c jit/ir/ir_perf.c jit/ir/ir_check.c \
jit/ir/ir_patch.c jit/ir/ir_emit.c" jit/ir/ir_patch.c jit/ir/ir_emit.c"
dnl Find out which ABI we are using. dnl Find out which ABI we are using.
case $host_alias in case $host_alias in
@ -323,21 +323,21 @@ int main(void) {
LIBS="$LIBS_save" LIBS="$LIBS_save"
PHP_NEW_EXTENSION(opcache, PHP_NEW_EXTENSION(opcache,
ZendAccelerator.c \ ZendAccelerator.c \
zend_accelerator_blacklist.c \ zend_accelerator_blacklist.c \
zend_accelerator_debug.c \ zend_accelerator_debug.c \
zend_accelerator_hash.c \ zend_accelerator_hash.c \
zend_accelerator_module.c \ zend_accelerator_module.c \
zend_persist.c \ zend_persist.c \
zend_persist_calc.c \ zend_persist_calc.c \
zend_file_cache.c \ zend_file_cache.c \
zend_shared_alloc.c \ zend_shared_alloc.c \
zend_accelerator_util_funcs.c \ zend_accelerator_util_funcs.c \
shared_alloc_shm.c \ shared_alloc_shm.c \
shared_alloc_mmap.c \ shared_alloc_mmap.c \
shared_alloc_posix.c \ shared_alloc_posix.c \
$ZEND_JIT_SRC, $ZEND_JIT_SRC,
shared,,"-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 ${JIT_CFLAGS}",,yes) shared,,"-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 ${JIT_CFLAGS}",,yes)
PHP_ADD_EXTENSION_DEP(opcache, pcre) PHP_ADD_EXTENSION_DEP(opcache, pcre)

View File

@ -12,33 +12,33 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
char *filename = tmpnam(NULL); char *filename = tmpnam(NULL);
char buffer[64]; char buffer[64];
int result = 0; int result = 0;
FILE *fp = fopen(filename, "wb"); FILE *fp = fopen(filename, "wb");
if (NULL == fp) if (NULL == fp)
return 0; return 0;
fputs("line 1\n", fp); fputs("line 1\n", fp);
fputs("line 2\n", fp); fputs("line 2\n", fp);
fclose(fp); fclose(fp);
fp = fopen(filename, "rb+"); fp = fopen(filename, "rb+");
if (NULL == fp) if (NULL == fp)
return 0; return 0;
fgets(buffer, sizeof(buffer), fp); fgets(buffer, sizeof(buffer), fp);
fputs("line 3\n", fp); fputs("line 3\n", fp);
rewind(fp); rewind(fp);
fgets(buffer, sizeof(buffer), fp); fgets(buffer, sizeof(buffer), fp);
if (0 != strcmp(buffer, "line 1\n")) if (0 != strcmp(buffer, "line 1\n"))
result = 1; result = 1;
fgets(buffer, sizeof(buffer), fp); fgets(buffer, sizeof(buffer), fp);
if (0 != strcmp(buffer, "line 3\n")) if (0 != strcmp(buffer, "line 3\n"))
result = 1; result = 1;
fclose(fp); fclose(fp);
unlink(filename); unlink(filename);
exit(result); exit(result);
} }
]])],[ ]])],[
ac_cv_flush_io=no ac_cv_flush_io=no
@ -81,10 +81,10 @@ if test "$PHP_EXTERNAL_LIBCRYPT" != "no"; then
int main(void) { int main(void) {
#ifdef HAVE_CRYPT #ifdef HAVE_CRYPT
char *encrypted = crypt("rasmuslerdorf","rl"); char *encrypted = crypt("rasmuslerdorf","rl");
return !encrypted || strcmp(encrypted,"rl.3StKT.4T8M"); return !encrypted || strcmp(encrypted,"rl.3StKT.4T8M");
#else #else
return 1; return 1;
#endif #endif
}]])],[ }]])],[
ac_cv_crypt_des=yes ac_cv_crypt_des=yes
@ -109,10 +109,10 @@ int main(void) {
int main(void) { int main(void) {
#ifdef HAVE_CRYPT #ifdef HAVE_CRYPT
char *encrypted = crypt("rasmuslerdorf","_J9..rasm"); char *encrypted = crypt("rasmuslerdorf","_J9..rasm");
return !encrypted || strcmp(encrypted,"_J9..rasmBYk8r9AiWNc"); return !encrypted || strcmp(encrypted,"_J9..rasmBYk8r9AiWNc");
#else #else
return 1; return 1;
#endif #endif
}]])],[ }]])],[
ac_cv_crypt_ext_des=yes ac_cv_crypt_ext_des=yes
@ -137,20 +137,20 @@ int main(void) {
int main(void) { int main(void) {
#ifdef HAVE_CRYPT #ifdef HAVE_CRYPT
char salt[15], answer[40]; char salt[15], answer[40];
char *encrypted; char *encrypted;
salt[0]='$'; salt[1]='1'; salt[2]='$'; salt[0]='$'; salt[1]='1'; salt[2]='$';
salt[3]='r'; salt[4]='a'; salt[5]='s'; salt[3]='r'; salt[4]='a'; salt[5]='s';
salt[6]='m'; salt[7]='u'; salt[8]='s'; salt[6]='m'; salt[7]='u'; salt[8]='s';
salt[9]='l'; salt[10]='e'; salt[11]='$'; salt[9]='l'; salt[10]='e'; salt[11]='$';
salt[12]='\0'; salt[12]='\0';
strcpy(answer,salt); strcpy(answer,salt);
strcat(answer,"rISCgZzpwk3UhDidwXvin0"); strcat(answer,"rISCgZzpwk3UhDidwXvin0");
encrypted = crypt("rasmuslerdorf",salt); encrypted = crypt("rasmuslerdorf",salt);
return !encrypted || strcmp(encrypted,answer); return !encrypted || strcmp(encrypted,answer);
#else #else
return 1; return 1;
#endif #endif
}]])],[ }]])],[
ac_cv_crypt_md5=yes ac_cv_crypt_md5=yes
@ -175,17 +175,17 @@ int main(void) {
int main(void) { int main(void) {
#ifdef HAVE_CRYPT #ifdef HAVE_CRYPT
char salt[30], answer[70]; char salt[30], answer[70];
char *encrypted; char *encrypted;
salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0'; salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0';
strcat(salt,"rasmuslerd............"); strcat(salt,"rasmuslerd............");
strcpy(answer,salt); strcpy(answer,salt);
strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra"); strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra");
encrypted = crypt("rasmuslerdorf",salt); encrypted = crypt("rasmuslerdorf",salt);
return !encrypted || strcmp(encrypted,answer); return !encrypted || strcmp(encrypted,answer);
#else #else
return 1; return 1;
#endif #endif
}]])],[ }]])],[
ac_cv_crypt_blowfish=yes ac_cv_crypt_blowfish=yes
@ -210,16 +210,16 @@ int main(void) {
int main(void) { int main(void) {
#ifdef HAVE_CRYPT #ifdef HAVE_CRYPT
char salt[21], answer[21+86]; char salt[21], answer[21+86];
char *encrypted; char *encrypted;
strcpy(salt,"\$6\$rasmuslerdorf\$"); strcpy(salt,"\$6\$rasmuslerdorf\$");
strcpy(answer, salt); strcpy(answer, salt);
strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/"); strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/");
encrypted = crypt("rasmuslerdorf",salt); encrypted = crypt("rasmuslerdorf",salt);
return !encrypted || strcmp(encrypted,answer); return !encrypted || strcmp(encrypted,answer);
#else #else
return 1; return 1;
#endif #endif
}]])],[ }]])],[
ac_cv_crypt_sha512=yes ac_cv_crypt_sha512=yes
@ -244,16 +244,16 @@ int main(void) {
int main(void) { int main(void) {
#ifdef HAVE_CRYPT #ifdef HAVE_CRYPT
char salt[21], answer[21+43]; char salt[21], answer[21+43];
char *encrypted; char *encrypted;
strcpy(salt,"\$5\$rasmuslerdorf\$"); strcpy(salt,"\$5\$rasmuslerdorf\$");
strcpy(answer, salt); strcpy(answer, salt);
strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23"); strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23");
encrypted = crypt("rasmuslerdorf",salt); encrypted = crypt("rasmuslerdorf",salt);
return !encrypted || strcmp(encrypted,answer); return !encrypted || strcmp(encrypted,answer);
#else #else
return 1; return 1;
#endif #endif
}]])],[ }]])],[
ac_cv_crypt_sha256=yes ac_cv_crypt_sha256=yes

View File

@ -600,7 +600,7 @@ if test "$PHP_FPM" != "no"; then
fpm/fpm_conf.c \ fpm/fpm_conf.c \
fpm/fpm_env.c \ fpm/fpm_env.c \
fpm/fpm_events.c \ fpm/fpm_events.c \
fpm/fpm_log.c \ fpm/fpm_log.c \
fpm/fpm_main.c \ fpm/fpm_main.c \
fpm/fpm_php.c \ fpm/fpm_php.c \
fpm/fpm_php_trace.c \ fpm/fpm_php_trace.c \
@ -615,12 +615,12 @@ if test "$PHP_FPM" != "no"; then
fpm/fpm_unix.c \ fpm/fpm_unix.c \
fpm/fpm_worker_pool.c \ fpm/fpm_worker_pool.c \
fpm/zlog.c \ fpm/zlog.c \
fpm/events/select.c \ fpm/events/select.c \
fpm/events/poll.c \ fpm/events/poll.c \
fpm/events/epoll.c \ fpm/events/epoll.c \
fpm/events/kqueue.c \ fpm/events/kqueue.c \
fpm/events/devpoll.c \ fpm/events/devpoll.c \
fpm/events/port.c \ fpm/events/port.c \
" "
PHP_SELECT_SAPI(fpm, program, $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES, $PHP_FPM_CFLAGS, '$(SAPI_FPM_PATH)') PHP_SELECT_SAPI(fpm, program, $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES, $PHP_FPM_CFLAGS, '$(SAPI_FPM_PATH)')

View File

@ -33,11 +33,11 @@ if test "$PHP_PHPDBG" != "no"; then
AC_MSG_CHECKING([for phpdbg and readline integration]) AC_MSG_CHECKING([for phpdbg and readline integration])
if test "$PHP_PHPDBG_READLINE" = "yes"; then if test "$PHP_PHPDBG_READLINE" = "yes"; then
if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
AC_DEFINE(HAVE_PHPDBG_READLINE, 1, [ ]) AC_DEFINE(HAVE_PHPDBG_READLINE, 1, [ ])
PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS" PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS"
AC_MSG_RESULT([ok]) AC_MSG_RESULT([ok])
else else
AC_MSG_RESULT([readline is not available]) AC_MSG_RESULT([readline is not available])
fi fi
else else
AC_MSG_RESULT([disabled]) AC_MSG_RESULT([disabled])
@ -52,10 +52,10 @@ if test "$PHP_PHPDBG" != "no"; then
AC_MSG_CHECKING([working pthreads]); AC_MSG_CHECKING([working pthreads]);
if test "$pthreads_working" = "yes"; then if test "$pthreads_working" = "yes"; then
AC_MSG_RESULT([$ac_cv_pthreads_cflags -l$ac_cv_pthreads_lib]); AC_MSG_RESULT([$ac_cv_pthreads_cflags -l$ac_cv_pthreads_lib]);
PHP_PHPDBG_CFLAGS="$PHP_PHPDBG_CFLAGS $ac_cv_pthreads_cflags" PHP_PHPDBG_CFLAGS="$PHP_PHPDBG_CFLAGS $ac_cv_pthreads_cflags"
PHPDBG_EXTRA_LIBS="$PHPDBG_EXTRA_LIBS -l$ac_cv_pthreads_lib" PHPDBG_EXTRA_LIBS="$PHPDBG_EXTRA_LIBS -l$ac_cv_pthreads_lib"
AC_DEFINE(HAVE_USERFAULTFD_WRITEFAULT, 1, [Whether faulting on write-protected memory support can be compiled for userfaultfd]) AC_DEFINE(HAVE_USERFAULTFD_WRITEFAULT, 1, [Whether faulting on write-protected memory support can be compiled for userfaultfd])
else else
AC_MSG_WARN([pthreads not available]) AC_MSG_WARN([pthreads not available])
fi fi

View File

@ -120,7 +120,7 @@ function get_vars($txt)
} }
} }
// if ($GLOBALS['current_function'] == 'for_debugging') { print_r($m);print_r($ret); } // if ($GLOBALS['current_function'] == 'for_debugging') { print_r($m);print_r($ret); }
return $ret; return $ret;
} }
@ -180,7 +180,7 @@ function get_params($vars, $str)
} }
} }
// if ($GLOBALS['current_function'] == 'for_debugging') { var_dump($m); var_dump($ret); } // if ($GLOBALS['current_function'] == 'for_debugging') { var_dump($m); var_dump($ret); }
return $ret; return $ret;
} }

View File

@ -13,10 +13,10 @@ FILES_BUILD="php.m4 shtool libtool.m4 ax_check_compile_flag.m4 ax_gcc_func_attri
config.guess config.sub ltmain.sh Makefile.global gen_stub.php" config.guess config.sub ltmain.sh Makefile.global gen_stub.php"
FILES="run-tests*.php" FILES="run-tests*.php"
CLEAN_FILES="$FILES *.o *.lo *.la .libs/ build/ modules/ \ CLEAN_FILES="$FILES *.o *.lo *.la .libs/ build/ modules/ \
config.nice configure configure.ac \ config.nice configure configure.ac \
config.h config.h.in conftest* libtool config.cache autom4te.cache/ \ config.h config.h.in conftest* libtool config.cache autom4te.cache/ \
config.log config.status Makefile Makefile.fragments Makefile.objects confdefs.h \ config.log config.status Makefile Makefile.fragments Makefile.objects confdefs.h \
run-tests*.php tests/*.diff tests/*.exp tests/*.log tests/*.out tests/*.php" run-tests*.php tests/*.diff tests/*.exp tests/*.log tests/*.out tests/*.php"
# function declaration # function declaration
phpize_usage() phpize_usage()