summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorrmax <rmax>2002-06-25 15:20:44 (GMT)
committerrmax <rmax>2002-06-25 15:20:44 (GMT)
commit9d463d106e0773295dc5bd223472ee3d3e45b418 (patch)
tree9090ac7b4aaaee3e54b370c88ec48ef023f05b95 /unix/tcl.m4
parent34f767148b4bb7594082e532936d0ab590a82064 (diff)
downloadtcl-9d463d106e0773295dc5bd223472ee3d3e45b418.zip
tcl-9d463d106e0773295dc5bd223472ee3d3e45b418.tar.gz
tcl-9d463d106e0773295dc5bd223472ee3d3e45b418.tar.bz2
* unix/tcl.m4: New macro SC_CONFIG_MANPAGES.
* unix/configure.in: Added support for symlinks and compression * unix/Makefile.in: when installing the manpages. [Patch 518052] * unix/mkLinks.tcl: Default is still hardlinks and no compression. * unix/mkLinks: generated * unix/configure: * unix/README: Added documentation for the new features.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index f9ee925..56e8223 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -506,6 +506,48 @@ AC_DEFUN(SC_ENABLE_LANGINFO, [
])
#--------------------------------------------------------------------
+# SC_CONFIG_MANPAGES
+#
+# Decide whether to use symlinks for linking the manpages and
+# whether to compress the manpages after installation.
+#
+# Arguments:
+# none
+#
+# Results:
+#
+# Adds the following arguments to configure:
+# --enable-man-symlinks
+# --enable-man-compression=PROG
+#
+# Defines the following variable:
+#
+# MKLINKS_FLAGS - The apropriate flags for mkLinks
+# according to the user's selection.
+#
+#--------------------------------------------------------------------
+AC_DEFUN(SC_CONFIG_MANPAGES, [
+
+ AC_MSG_CHECKING([whether to use symlinks for manpages])
+ AC_ARG_ENABLE(man-symlinks,
+ [ --enable-man-symlinks use symlinks for the manpages],
+ test "$enableval" != "no" && MKLINKS_FLAGS="$MKLINKS_FLAGS --symlinks",
+ enableval="no")
+ AC_MSG_RESULT([$enableval])
+
+ AC_MSG_CHECKING([compression for manpages])
+ AC_ARG_ENABLE(man-compression,
+ [ --enable-man-compression=PROG
+ compress the manpages with PROG],
+ test "$enableval" = "yes" && echo && AC_MSG_ERROR([missing argument to --enable-man-compression])
+ test "$enableval" != "no" && MKLINKS_FLAGS="$MKLINKS_FLAGS --compress $enableval",
+ enableval="no")
+ AC_MSG_RESULT([$enableval])
+
+ AC_SUBST(MKLINKS_FLAGS)
+])
+
+#--------------------------------------------------------------------
# SC_CONFIG_CFLAGS
#
# Try to determine the proper flags to pass to the compiler