* configure.in: Add support for the DOLT libtool replacement.
svn path=/trunk/mono/; revision=103707
+2008-05-21 Zoltan Varga <vargaz@gmail.com>
+
+ * configure.in: Add support for the DOLT libtool replacement.
+
2008-05-19 Zoltan Varga <vargaz@gmail.com>
* configure.in: Change the way CPPFLAGS/CFLAGS are passed to libgc one more
# This causes monodis to not link correctly
#AC_DISABLE_FAST_INSTALL
AM_PROG_LIBTOOL
+
+AC_ARG_ENABLE(dolt, [ --enable-dolt Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.])
+
+if test "x$enable_dolt" = "xyes"; then
+ DOLT
+else
+ # The DOLT macro contains AC_SUBST's for these so we must define them because of
+ # autoconf brokeness
+ LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
+ LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
+fi
# Test whenever ld supports -version-script
AC_PROG_LD