summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2004-04-24 04:44:02 +0000
committerKen Raeburn <raeburn@mit.edu>2004-04-24 04:44:02 +0000
commit7ffd3ed39e7bc7f6fe978e3afb29bf5aaf381ee5 (patch)
tree010cd716fd2eb0c286862d3bd511d36dc33933f6 /src/config
parent343bb2cb78e331f4ae4b9f022d4968058460ef4e (diff)
downloadkrb5-7ffd3ed39e7bc7f6fe978e3afb29bf5aaf381ee5.tar.gz
krb5-7ffd3ed39e7bc7f6fe978e3afb29bf5aaf381ee5.tar.xz
krb5-7ffd3ed39e7bc7f6fe978e3afb29bf5aaf381ee5.zip
Start depending on perl for builds
* aclocal.m4 (KRB5_BUILD_LIBRARY_WITH_DEPS): Look for perl. * config/pre.in (PERL): New variable. * config/lib.in (lib$(LIB)$(SHLIBVEXT)): Use one perl invocation rather than n+1 sed invocations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16266 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ChangeLog6
-rw-r--r--src/config/lib.in9
-rw-r--r--src/config/pre.in1
3 files changed, 10 insertions, 6 deletions
diff --git a/src/config/ChangeLog b/src/config/ChangeLog
index 2328beb8e..fb7806973 100644
--- a/src/config/ChangeLog
+++ b/src/config/ChangeLog
@@ -1,3 +1,9 @@
+2004-04-24 Ken Raeburn <raeburn@mit.edu>
+
+ * pre.in (PERL): New variable.
+ * lib.in (lib$(LIB)$(SHLIBVEXT)): Use one perl invocation rather
+ than n+1 sed invocations.
+
2004-04-22 Ken Raeburn <raeburn@mit.edu>
* pre.in (DO_MAKE_SHLIB, SHLIB_STATIC_TARGET, LDCOMBINE,
diff --git a/src/config/lib.in b/src/config/lib.in
index 30c0f499d..c2fdc9cfc 100644
--- a/src/config/lib.in
+++ b/src/config/lib.in
@@ -42,12 +42,9 @@ lib$(LIB)$(STLIBEXT): $(STOBJLISTS)
lib$(LIB)$(SHLIBVEXT): $(SHOBJLISTS) $(SHLIB_EXPDEPS) $(SHLIB_EXPORT_FILE_DEP)
$(RM) $@
@echo "building shared $(LIB) library ($(LIBMAJOR).$(LIBMINOR))"
- @dirs=`echo $(SHOBJLISTS) | \
- sed -e 's%/OBJS.SH%%g' -e 's%OBJS.SH%.%'`; \
- objlist=`for d in $$dirs; do \
- sed -e '/^$$/d' -e "s%^%$$d/%" -e "s% % $$d/%g" \
- $$d/OBJS.SH; done` ; \
- set -x ; $(MAKE_SHLIB_COMMAND)
+ @objlist=`set -x && $(PERL) -p -e '$$e=$$ARGV; $$e =~ s/OBJS.SH$$//; s/^/ /; s/ $$//; s/ / $$e/g;' $(SHOBJLISTS)` && \
+ set -x && \
+ $(MAKE_SHLIB_COMMAND)
lib$(LIB)$(SHLIBSEXT): lib$(LIB)$(SHLIBVEXT)
$(RM) $@
diff --git a/src/config/pre.in b/src/config/pre.in
index c0d002c1b..00e59834a 100644
--- a/src/config/pre.in
+++ b/src/config/pre.in
@@ -248,6 +248,7 @@ AWK = @AWK@
LEX = @LEX@
LEXLIB = @LEXLIB@
YACC = @YACC@
+PERL = @PERL@
AUTOCONF = @AUTOCONF@
AUTOCONFFLAGS = @AUTOCONFFLAGS@
AUTOCONFINCFLAGS = @AUTOCONFINCFLAGS@