diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-07-24 10:19:52 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-07-24 10:19:52 (GMT) |
| commit | 03b881a299157cbb9681157c7842b5d33a6a2e40 (patch) | |
| tree | 54c5ee7ab6f7a691708f579d34dd5f1465ceb822 /unix/tcl.m4 | |
| parent | 575f580d51fd5cecec6f1910056e647281fc0851 (diff) | |
| parent | 5452282a914145b2db5deb8cacc4f7c00413aab8 (diff) | |
| download | tcl-03b881a299157cbb9681157c7842b5d33a6a2e40.zip tcl-03b881a299157cbb9681157c7842b5d33a6a2e40.tar.gz tcl-03b881a299157cbb9681157c7842b5d33a6a2e40.tar.bz2 | |
Fix [c54e4a1aeb]: High Tcl latencies with fork() in larger systems
Diffstat (limited to 'unix/tcl.m4')
| -rw-r--r-- | unix/tcl.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 0ef9f3d..add827f 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -2068,6 +2068,8 @@ dnl # preprocessing tests use only CPPFLAGS. CFLAGS_NOLTO="" fi + AC_CHECK_FUNCS([posix_spawnp]) + # FIXME: This subst was left in only because the TCL_DL_LIBS # entry in tclConfig.sh uses it. It is not clear why someone # would use TCL_DL_LIBS instead of TCL_LIBS. @@ -2478,12 +2480,12 @@ AC_DEFUN([SC_TCL_LINK_LIBS], [ AC_DEFUN([SC_TCL_EARLY_FLAG],[ AC_CACHE_VAL([tcl_cv_flag_]translit($1,[A-Z],[a-z]), AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], - [tcl_cv_flag_]translit($1,[A-Z],[a-z])=no,[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[[#define ]$1[ 1 + [tcl_cv_flag_]translit($1,[A-Z],[a-z])=no,[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[[#define ]$1[ ]m4_default([$4],[1])[ ]$2]], [[$3]])], [tcl_cv_flag_]translit($1,[A-Z],[a-z])=yes, [tcl_cv_flag_]translit($1,[A-Z],[a-z])=no)])) if test ["x${tcl_cv_flag_]translit($1,[A-Z],[a-z])[}" = "xyes"] ; then - AC_DEFINE($1, 1, [Add the ]$1[ flag when building]) + AC_DEFINE($1, m4_default([$4],[1]), [Add the ]$1[ flag when building]) tcl_flags="$tcl_flags $1" fi ]) |
