X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..ac79e8d6a1a8a3cb3fb2438b03d3d0ba5ea2570d:/mts/sendmail/Makefile.in diff --git a/mts/sendmail/Makefile.in b/mts/sendmail/Makefile.in index d5580a5b..f812a2c5 100644 --- a/mts/sendmail/Makefile.in +++ b/mts/sendmail/Makefile.in @@ -24,6 +24,8 @@ INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir) LORDER = @LORDER@ TSORT = @TSORT@ RANLIB = @RANLIB@ +LIBTOOL = @LIBTOOL@ +GNU_LIBTOOL = @GNU_LIBTOOL@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) @@ -51,8 +53,12 @@ all: libsend.a libsend.a: $(OBJS) rm -f $@ - ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` - $(RANLIB) $@ + if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \ + $(LIBTOOL) -static -c $(OBJS) -o $@ ; \ + else \ + ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \ + $(RANLIB) $@ ; \ + fi install: