From b2d58a67de0b7a9453afdbb3edd7a0c18cf1f951 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 30 Mar 2004 09:38:29 +0000 Subject: * libtoolize.in (func_scan_files): sed BRE have no alternation, so break LT_INIT matcher out. (func_serial): Don't escape literal parens for grep BRE. --- libtoolize.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libtoolize.in') diff --git a/libtoolize.in b/libtoolize.in index d9adafd5..bf1ddc09 100644 --- a/libtoolize.in +++ b/libtoolize.in @@ -357,9 +357,8 @@ func_scan_files () /AC_CONFIG_MACRO_DIR/ { s,^.*AC_CONFIG_MACRO_DIR([[ ]*\([^])]*\).*$,m4dir=\1,; p; }; - /\(LT_INIT\|A[CM]_PROG_LIBTOOL\)/ { - s,^.*$,seen_libtool=:,; p; - }; + /A[CM]_PROG_LIBTOOL/ { s,^.*$,seen_libtool=:,; p; }; + /LT_INIT/ { s,^.*$,seen_libtool=:,; p; }; /AC_LIB_LTDL/ { s,^.*$,seen_ltdl=:,; p; }; d;' eval `cat aclocal.m4 "$configure_ac" | $SED "$my_sed_traces" 2>/dev/null` @@ -460,7 +459,9 @@ func_serial () # 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\(\['"$my_macro_regex" "$my_file"; then + if test -z "$my_macro_regex" || + func_grep '^AC_DEFUN(\['"$my_macro_regex" "$my_file" + then my_serial=`$SED -e "$my_sed_serial" "$my_file"` break fi -- cgit v1.2.1