diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-25 08:57:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-25 08:57:29 (GMT) |
commit | f11d46a5391bad92ada8f86f1dac44e43f359c28 (patch) | |
tree | 9a11aff29ce895e73ae05ffff394015fb2c8b3c6 /unix/tcl.m4 | |
parent | 7063328b6584b3d6923d6afd07a254ca7a99746c (diff) | |
download | tk-f11d46a5391bad92ada8f86f1dac44e43f359c28.zip tk-f11d46a5391bad92ada8f86f1dac44e43f359c28.tar.gz tk-f11d46a5391bad92ada8f86f1dac44e43f359c28.tar.bz2 |
Fix [https://core.tcl-lang.org/tcl/info/9080d6a871|9080d6a871]: Build fix for tcl on macOS on Apple Silicon.
Add manifest.uuid to distribution, so we can see exactly what commit-id "make dist" is built from (even when it's built from GIT).
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 399215e..f4a3b8a 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -2596,6 +2596,7 @@ AC_DEFUN([SC_BUGGY_STRTOD], [ if test "$tcl_strtod" = 1; then AC_CACHE_CHECK([for Solaris2.4/Tru64 strtod bugs], tcl_cv_strtod_buggy,[ AC_TRY_RUN([ + #include <stdlib.h> extern double strtod(); int main() { char *infString="Inf", *nanString="NaN", *spaceString=" "; @@ -2882,7 +2883,10 @@ AC_DEFUN([SC_TCL_CHECK_BROKEN_FUNC],[ AC_CHECK_FUNC($1, tcl_ok=1, tcl_ok=0) if test ["$tcl_ok"] = 1; then AC_CACHE_CHECK([proper ]$1[ implementation], [tcl_cv_]$1[_unbroken], - AC_TRY_RUN([[int main() {]$2[}]],[tcl_cv_]$1[_unbroken]=ok, + AC_TRY_RUN([[ +#include <stdlib.h> +#include <string.h> +int main() {]$2[}]],[tcl_cv_]$1[_unbroken]=ok, [tcl_cv_]$1[_unbroken]=broken,[tcl_cv_]$1[_unbroken]=unknown)) if test ["$tcl_cv_]$1[_unbroken"] = "ok"; then tcl_ok=1 |