From: Gary V. Vaughan Date: Fri, 6 Feb 2004 13:58:06 +0000 (+0000) Subject: * m4/libtool.m4 (LT_PREREQ): Declare the minimum release number X-Git-Tag: release-1-9b~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9b269e4fa641b83c2208325d68494e40719c185;p=thirdparty%2Flibtool.git * m4/libtool.m4 (LT_PREREQ): Declare the minimum release number that is required for the calling code. * doc/libtool.texi (AC_PROG_LIBTOOL): Document it. * NEWS: Updated. --- diff --git a/ChangeLog b/ChangeLog index 9f9874237..22b89a02b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,16 @@ +2004-02-06 Gary V. Vaughan + + * m4/libtool.m4 (LT_PREREQ): Declare the minimum release number + that is required for the calling code. + * doc/libtool.texi (AC_PROG_LIBTOOL): Document it. + * NEWS: Updated. + 2004-02-05 Peter O'Gorman - + * ltmain.in (infer_tag, win32_libid): Style changes. Rename infer_tag to func_infer_tag and win32_libid to func_win32_libid. * m4/libtool.m4 (cygwin): rename win32_libid to func_win32_libid. - + 2004-02-04 Peter O'Gorman * ltmain.in (infer_tag): Move tag inferrence to a shell function. @@ -28,7 +35,7 @@ 2004-01-31 Peter O'Gorman - * m4/libtool.m4 (_LT_CONFIG_STATUS_DECLARE): Change `echo to + * m4/libtool.m4 (_LT_CONFIG_STATUS_DECLARE): Change `echo to `$echo, causes problems when builtin echo is broken. Reported by Ralf Wildenhues . diff --git a/NEWS b/NEWS index 8bc31ff5a..68fc53c0f 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ NEWS - list of user-visible changes between releases of GNU Libtool New in 1.5b: 2004-??-??; CVS version 1.5a, Libtool team: +* New LT_PREREQ macro for specifying minimum libtool requirement. * Like automake, libtoolize no longer installs config.guess and config.sub by default. Use new --install option to get the old behaviour. * libtool script is now created by config.status. Instead of interrogating diff --git a/doc/libtool.texi b/doc/libtool.texi index bacdf4f8e..87e439911 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -1638,6 +1638,17 @@ If you are using GNU Autoconf (or Automake), you should add a call to adds many new tests to the @code{configure} script so that the generated libtool script will understand the characteristics of the host: +@defmac LT_PREREQ(@var{VERSION}) +Ensure that a recent enough version of Libtool is being used. If the +version of Libtool used for @code{AC_PROG_LIBTOOL} is earlier than +@var{version}, print an error message to the standard +error output and exit with failure (exit status is 63). For example: + +@example +LT_PREREQ(@value{VERSION}) +@end example +@end defmac + @defmac AC_PROG_LIBTOOL @defmacx AM_PROG_LIBTOOL Add support for the @samp{--enable-shared} and @samp{--disable-shared} diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 43924aab3..04ce04384 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -39,6 +39,17 @@ m4_ifdef([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_define([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL],