fixed libtool check, sort of...
[mmh] / zotnet / Makefile.in
index de66126..a706bd0 100644 (file)
@@ -13,6 +13,7 @@ LORDER = @LORDER@
 TSORT  = @TSORT@
 RANLIB = @RANLIB@
 LIBTOOL = @LIBTOOL@
+GNU_LIBTOOL = @GNU_LIBTOOL@
 
 # flags passed to recursive makes in subdirectories
 MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
@@ -43,7 +44,7 @@ all: all-recursive libzot.a
 
 libzot.a: $(OBJS)
        rm -f $@
-       if test x$(LIBTOOL) != xno ; then \
+       if test x$(LIBTOOL) != xno -a x$(GNU_LIBTOOL) = x ; then \
          $(LIBTOOL) -static -c $(OBJS) -o $@  ; \
        else \
          ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)`  ; \