diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-15 08:19:51 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-15 08:19:51 (GMT) |
commit | a4039942ab509126114628f5689d864d026d921a (patch) | |
tree | 57e2c38439d90b94bf5123bb19b0c6891fd8a715 /unix/configure.ac | |
parent | 0c81fa841095e4b067fb5e0ffa9acef14880b558 (diff) | |
download | tk-a4039942ab509126114628f5689d864d026d921a.zip tk-a4039942ab509126114628f5689d864d026d921a.tar.gz tk-a4039942ab509126114628f5689d864d026d921a.tar.bz2 |
Add autoconf stuff needed for zipfs
Diffstat (limited to 'unix/configure.ac')
-rw-r--r-- | unix/configure.ac | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/unix/configure.ac b/unix/configure.ac index 97adff1..7528a31 100644 --- a/unix/configure.ac +++ b/unix/configure.ac @@ -632,6 +632,52 @@ fi AC_C_CHAR_UNSIGNED #-------------------------------------------------------------------- +# Zipfs support - Tip 430 +#-------------------------------------------------------------------- +AC_ARG_ENABLE(zipfs, + AC_HELP_STRING([--enable-zipfs], + [build with Zipfs support (default: on)]), + [tcl_ok=$enableval], [tcl_ok=yes]) +if test "$tcl_ok" = "yes" ; then + # + # Find a native compiler + # + AX_CC_FOR_BUILD + # + # Find a native zip implementation + # + SC_ZIPFS_SUPPORT + ZIPFS_BUILD=1 + TK_ZIP_FILE=libtk_${TK_MAJOR_VERSION}_${TK_MINOR_VERSION}_${TK_PATCH_LEVEL}.zip +else + ZIPFS_BUILD=0 + TK_ZIP_FILE= +fi +# Do checking message here to not mess up interleaved configure output +AC_MSG_CHECKING([for building with zipfs]) +if test "${ZIPFS_BUILD}" = 1; then + if test "${SHARED_BUILD}" = 0; then + ZIPFS_BUILD=2; + AC_DEFINE(ZIPFS_BUILD, 2, [Are we building with zipfs enabled?]) + INSTALL_LIBRARIES=install-libraries-zipfs-static + AC_MSG_RESULT([yes]) + else + AC_DEFINE(ZIPFS_BUILD, 1, [Are we building with zipfs enabled?])\ + INSTALL_LIBRARIES=install-libraries-zipfs-shared + AC_MSG_RESULT([yes]) + fi +else +AC_MSG_RESULT([no]) +INSTALL_LIBRARIES=install-libraries +INSTALL_MSGS=install-msgs +fi +AC_SUBST(ZIPFS_BUILD) +AC_SUBST(TK_ZIP_FILE) +AC_SUBST(INSTALL_LIBRARIES) +AC_SUBST(INSTALL_MSGS) + + +#-------------------------------------------------------------------- # The statements below define a collection of symbols related to # building libtk as a shared library instead of a static library. #-------------------------------------------------------------------- |