Posted to tcl by emiliano at Mon Dec 30 13:22:06 GMT 2019view raw

  1. GNU /bin/test accepts "==" as a synonym of "=", but this is not POSIX behaviour.
  2. As a result, such invocation doesn't work on *BSD systems.
  3.  
  4. emiliano@malbec:~/src/tcl/unix$ fossil diff configure.ac
  5. Index: unix/configure.ac
  6. ==================================================================
  7. --- unix/configure.ac
  8. +++ unix/configure.ac
  9. @@ -173,11 +173,11 @@
  10. libtommath_ok=yes
  11. AC_ARG_WITH(system-libtommath,
  12. AC_HELP_STRING([--with-system-libtommath],
  13. [use external libtommath (default: true if available, false otherwise)]),
  14. libtommath_ok=${withval})
  15. -if test x"${libtommath_ok}" == x -o x"${libtommath_ok}" != xno; then
  16. +if test x"${libtommath_ok}" = x -o x"${libtommath_ok}" != xno; then
  17. AC_CHECK_HEADER([tommath.h],[
  18. AC_CHECK_TYPE([mp_int],[],[libtommath_ok=no],[#include <tommath.h>])],[
  19. libtommath_ok=no])
  20. AS_IF([test $libtommath_ok = yes], [
  21. AC_SEARCH_LIBS([mp_log_u32],[tommath],[],[
  22.  
  23. emiliano@malbec:~/src/tcl/unix$