macro code when scanning configure.ac and aclocal.m4.
Don't produce spurious output if AC_PROG_RANLIB is found.
* tests/old-m4-iface.at (AM_PROG_LIBTOOL): Add a (weak) check
that we don't match our own macro code when searching for user
code calling us.
* TODO: Updated.
+2008-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * libtoolize.m4sh (func_scan_files): Avoid matching our own
+ macro code when scanning configure.ac and aclocal.m4.
+ Don't produce spurious output if AC_PROG_RANLIB is found.
+ * tests/old-m4-iface.at (AM_PROG_LIBTOOL): Add a (weak) check
+ that we don't match our own macro code when searching for user
+ code calling us.
+ * TODO: Updated.
+
2008-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
New variable LTDLDEPS for use in output_DEPENDENCIES.
processes per copied file, a list of files to copy is built and all
files copied with a single pair of tar processes.
+* Write test case that adds libtool macros to aclocal.m4.
+
2. In the future
================
it easier to add new platforms.
--
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
Written by Gary V. Vaughan, 2004
This file is part of GNU Libtool.
s,^.*LT_CONFIG_LTDL_DIR([[ ]*\([^])]*\).*$,ac_ltdldir=\1,
p
}
+ /\@<:@A[CM]_PROG_LIBTOOL/d
/A[CM]_PROG_LIBTOOL/ {
s,^.*$,seen_libtool=:,
p
}
+ /the.*option into.*LT_INIT.*parameter/d
+ /\@<:@LT_INIT/d
/LT_INIT/ {
s,^.*$,seen_libtool=:,
p
}
+ /\@<:@LTDL_INIT/d
/LTDL_INIT/ {
s,^.*LTDL_INIT([[ ]*\([^])]*\).*$,ltdl_options="\1",
s,^.*LTDL_INIT[ ]*$,seen_ltdl=:,
else
# Don't trace for this, we're just checking the user didn't invoke it
# directly from configure.ac.
- $SED 's,dnl .*$,,; s,# .*$,,' "$configure_ac" | grep AC_PROG_RANLIB &&
+ $SED 's,dnl .*$,,; s,# .*$,,' "$configure_ac" | grep AC_PROG_RANLIB >/dev/null &&
func_echo "\`AC_PROG_RANLIB' is rendered obsolete by \`LT_INIT'"
fi
LT_AT_EXEC_CHECK([./old], 0, [Hello, World!])
+# Now, test that libtoolize doesn't mistakenly think the user called
+# any libtool macros if in fact she didn't.
+sed '/AM_PROG_LIBTOOL/d' configure.in >configure.int
+mv -f configure.int configure.in
+AT_CHECK([$LIBTOOLIZE -n], [0], [stdout], [stderr])
+# ensure no shell errors:
+AT_CHECK([grep -v "^libtoolize: " stderr], [1])
+AT_CHECK([grep "Remember to add.*LT_INIT.*to configure.in" stdout], [0], [ignore])
+AT_CHECK([grep "Consider adding.*LT_WITH_LTDL" stdout], [1])
+AT_CHECK([grep "Remember to add.*LT_CONFIG_LTDL_DIR" stdout], [1])
+
AT_CLEANUP