diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/Makefile.am | 51 |
2 files changed, 33 insertions, 24 deletions
@@ -1,5 +1,11 @@ 2009-05-03 Bruno Haible <bruno@clisp.org> + * lib/Makefile.am (config.h): Echo the commands that are being + executed. + Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>. + +2009-05-03 Bruno Haible <bruno@clisp.org> + * HACKING (Building): Mention also the configure option --disable-static. diff --git a/lib/Makefile.am b/lib/Makefile.am index 9081bc1..0e07e6b 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -204,30 +204,33 @@ config.h: $(BUILT_SOURCES) libunistring.sym } > config.h && \ if test -n "$(NAMESPACING)" && test -n "$(HAVE_GLOBAL_SYMBOL_PIPE)"; then \ { \ - for f in $(libunistring_la_SOURCES) $(libunistring_la_LIBADD); do \ - case $$f in \ - *.res.lo ) ;; \ - *.c | *.$(OBJEXT) | *.lo ) \ - sf=`echo "$$f" | sed -e 's,\\.[^.]*$$,,'`.c; \ - test -f $$sf || sf=$(srcdir)/$$sf; \ - of=`echo "$$f" | sed -e 's,^.*/,,' -e 's,\\.[^.]*$$,,'`.$(OBJEXT); \ - $(COMPILE) -c $$sf || { rm -f config.h; exit 1; }; \ - sh ./exported.sh $$of 1>&5; \ - rm -f $$of `echo "$$of" | sed -e 's,\\.$(OBJEXT)$$,.lo,'`; \ - ;; \ - esac; \ - done; \ - } 5>&1 \ - | sed -e 's,.* ,,' | LC_ALL=C sort | LC_ALL=C uniq \ - | { \ - if test -f libunistring.sym; then \ - symfile='libunistring.sym'; \ - else \ - symfile='$(srcdir)/libunistring.sym'; \ - fi; \ - LC_ALL=C join -v 1 - $$symfile; \ - } \ - | sed -e 's,^\(.*\)$$,#define \1 libunistring_\1,' > config.h-t && \ + { \ + for f in $(libunistring_la_SOURCES) $(libunistring_la_LIBADD); do \ + case $$f in \ + *.res.lo ) ;; \ + *.c | *.$(OBJEXT) | *.lo ) \ + sf=`echo "$$f" | sed -e 's,\\.[^.]*$$,,'`.c; \ + test -f $$sf || sf=$(srcdir)/$$sf; \ + of=`echo "$$f" | sed -e 's,^.*/,,' -e 's,\\.[^.]*$$,,'`.$(OBJEXT); \ + echo "$(COMPILE) -c $$sf" 1>&6; \ + $(COMPILE) -c $$sf || { rm -f config.h; exit 1; }; \ + sh ./exported.sh $$of 1>&5; \ + rm -f $$of `echo "$$of" | sed -e 's,\\.$(OBJEXT)$$,.lo,'`; \ + ;; \ + esac; \ + done; \ + } 5>&1 \ + | sed -e 's,.* ,,' | LC_ALL=C sort | LC_ALL=C uniq \ + | { \ + if test -f libunistring.sym; then \ + symfile='libunistring.sym'; \ + else \ + symfile='$(srcdir)/libunistring.sym'; \ + fi; \ + LC_ALL=C join -v 1 - $$symfile; \ + } \ + | sed -e 's,^\(.*\)$$,#define \1 libunistring_\1,' > config.h-t; \ + } 6>&1 && \ if test -f config.h; then \ cat config.h-t >> config.h; \ rm -f config.h-t; \ |