|
|
| version 1.1, 2001/09/21 15:44:38 | version 1.2, 2002/02/08 08:05:12 |
|---|---|
| Line 20 | Line 20 |
| ## distribute this file as part of a program that contains a | ## distribute this file as part of a program that contains a |
| ## configuration script generated by Autoconf, you may include it under | ## configuration script generated by Autoconf, you may include it under |
| ## the same distribution terms that you use for the rest of that program. | ## the same distribution terms that you use for the rest of that program. |
| ## | |
| ## plus fake AC_PROG_LIBTOOL by PAF@design.ru | |
| # serial 40 AC_PROG_LIBTOOL | # serial 40 AC_PROG_LIBTOOL |
| AC_DEFUN(AC_PROG_LIBTOOL, | AC_DEFUN(AC_PROG_LIBTOOL, |
| [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
| # Save cache, so that ltconfig can load it | # Always use rootdir libtool. |
| AC_CACHE_SAVE | LIBTOOL=../libtool |
| # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
| CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
| LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
| LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | |
| DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | |
| ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
| $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ | |
| || AC_MSG_ERROR([libtool configure failed]) | |
| # Reload cache, that may have been modified by ltconfig | |
| AC_CACHE_LOAD | |
| # This can be used to rebuild libtool when needed | |
| LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" | |
| # Always use our own libtool. | |
| LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
| AC_SUBST(LIBTOOL)dnl | AC_SUBST(LIBTOOL)dnl |
| # Redirect the config.log output again, so that the ltconfig log is not | |
| # clobbered by the next message. | |
| exec 5>>./config.log | |
| ]) | ]) |
| AC_DEFUN(AC_LIBTOOL_SETUP, | AC_DEFUN(AC_LIBTOOL_SETUP, |