zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: PATCH: "make show-config"
Date: Tue, 10 Apr 2001 17:12:51 +0000	[thread overview]
Message-ID: <1010410171251.ZM17168@candle.brasslantern.com> (raw)

This is a patch I've had sitting around for a while.  I won't commit it
unless I get some positive feedback.  It duplicates in Makefile.in some
of the code from near the end of configure.in that reports the complete
configuration.  Sample output of "make show-config" for configure with
options --disable-dynamic --enable-zsh-debug --enable-function-subdirs:

zsh version               : 4.0.1-pre-3
source code location      : ../new
compiler                  : gcc
preprocessor flags        : 
executable compiler flags : -Wall -Wno-implicit -Wmissing-prototypes -ggdb
executable linker flags   : -g  
library flags             : -lnsl -ltermcap -lm  -lc
installation basename     : zsh
binary install path       : /usr/local/bin
man page install path     : /usr/local/man
info install path         : /usr/local/info
library install path      : /usr/local/lib
modules install path      : /usr/local/lib/zsh/4.0.1-pre-3
installed modules         : zsh/main zsh/rlimits zsh/sched zsh/parameter zsh/termcap zsh/terminfo zsh/zutil zsh/compctl zsh/complete zsh/complist zsh/computil zsh/zle zsh/zleparameter
functions install path    : /usr/local/share/zsh/4.0.1-pre-3/functions
installed functions       : Misc/* Prompts/* Completion/comp* Completion/*/*/* Zle/*


Index: Makefile.in
===================================================================
RCS file: /extra/cvsroot/zsh/zsh-4.0/Makefile.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in
--- Makefile.in	2001/04/09 20:14:08	1.1.1.1
+++ Makefile.in	2001/04/10 15:14:21
@@ -53,6 +53,33 @@
 META-FAQ: FORCE
 	@cd Doc && $(MAKE) $(MAKEDEFS) ../META-FAQ
 
+show-config:
+	@echo "zsh version               : $(VERSION)"
+	@echo "source code location      : $(sdir)"
+	@echo "compiler                  : $(CC)"
+	@echo "preprocessor flags        : $(CPPFLAGS)"
+	@echo "executable compiler flags : $(CFLAGS)"
+	@if test -n "$(DLCFLAGS)"; then \
+	 echo "module compiler flags     : $(CFLAGS) $(DLCFLAGS)"; fi
+	@echo "executable linker flags   : $(LDFLAGS) $(EXELDFLAGS) $(EXTRA_LDFLAGS)"
+	@if test -n "$(LIBLDFLAGS)$(DLLDFLAGS)"; then \
+	 echo "module linker flags       : $(LDFLAGS) $(LIBLDFLAGS) $(DLLDFLAGS)"; fi
+	@echo "library flags             : $(LIBS)"
+	@echo "installation basename     : $(tzsh)"
+	@echo "binary install path       : $(bindir)"
+	@echo "man page install path     : $(mandir)"
+	@echo "info install path         : $(infodir)"
+	@echo "library install path      : $(libdir)"
+	@echo "modules install path      : $(MODDIR)"
+	@echo "installed modules         :" \
+	`sed -e '/^#/d' -e '/ link=no/d' -e 's/ .*/ /' -e 's/^name=/ /' \
+	  $(dir_top)/config.modules`
+	@echo "functions install path    : $(fndir)"
+	@echo "installed functions       :" \
+	`sed -e '/^#/d' -e '/ functions=./!d' -e '/ link=no/d' \
+	  -e 's/^.* functions=/ /' -e 's% Functions/% %g' \
+	  $(dir_top)/config.modules`
+
 # ========== DEPENDENCIES FOR INSTALLING ==========
 
 # install stripped

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


                 reply	other threads:[~2001-04-10 17:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1010410171251.ZM17168@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).