AC_DEFUN and m4_define.
* libtoolize.in (func_serial): No longer accept AC_DEFUN_ONCE...
(func_grep): ...so mere grep is sufficient again...
(EGREP): ...and this is no longer required.
2004-03-30 Gary V. Vaughan <gary@gnu.org>
+ * m4/libtool.m4 (LT_INIT): aclocal can't see AC_DEFUN_ONCE, so use
+ AC_DEFUN and m4_define.
+ * libtoolize.in (func_serial): No longer accept AC_DEFUN_ONCE...
+ (func_grep): ...so mere grep is sufficient again...
+ (EGREP): ...and this is no longer required.
+
+2004-03-29 Gary V. Vaughan <gary@gnu.org>
+
* m4/libtool.m4: Use LT_INIT as #serial tag.
* libtoolize.in: Grok LT_INIT! Pass A[CM]_PROG_LIBTOOL to...
(func_serial_update): ...here, we now take an additional parameter
: ${CP="cp -f"}
: ${LN_S="@LN_S@"}
-: ${EGREP="@EGREP@"}
: ${MKDIR="mkdir"}
: ${RM="rm -f"}
: ${SED="@SED@"}
# Check whether EXPRESSION matches any line of FILENAME, without output.
func_grep ()
{
- $EGREP "$1" "$2" >/dev/null 2>&1
+ grep "$1" "$2" >/dev/null 2>&1
}
# func_scan_files
# in the file that AC_DEFUNs MACRO_REGEX.
my_serial=
for my_file in `func_included_files "$my_filename"`; do
- if func_grep '^AC_DEFUN(_ONCE)?\(\['"$my_macro_regex" "$my_file"; then
+ if func_grep '^AC_DEFUN\(\['"$my_macro_regex" "$my_file"; then
my_serial=`$SED -e "$my_sed_serial" "$my_file"`
break
fi
# LT_INIT([OPTIONS])
# --------------------------
-AC_DEFUN_ONCE([LT_INIT],
+AC_DEFUN([LT_INIT],
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
_LT_SET_OPTIONS([$1])dnl
_LT_SETUP
+
+# Only expand once:
+m4_define([LT_INIT])
])# _LT_INIT
# Old names: