]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests/local.at: improve sed portability
authorZack Weinberg <zackw@panix.com>
Thu, 16 Jul 2020 20:43:48 +0000 (16:43 -0400)
committerZack Weinberg <zackw@panix.com>
Thu, 16 Jul 2020 20:43:48 +0000 (16:43 -0400)
Solaris 10 /bin/sed does not support * after \( … \), only after
subexpressions that match a _single character_.

Partially addresses #110267. Problem reported by Dagobert Michelsen.

* tests/local.at (AT_CHECK_M4): Do not use star after parenthesized
  subexpression in sed s/// commands.

tests/local.at

index 9ec61ead8db983405ea1a6131c5b27fa63c7d2b2..308eae325d25c9403037e36bd9951a624249326a 100644 (file)
@@ -137,7 +137,8 @@ m4_case([$4], [], [], [ignore], [],
        s/: C\(annot open \)\([^`:]*\):/: c\1`\2'\'':/
        s/: include:\( cannot open\)/:\1/
        s/^autom4te: [^ ]*m4[.ex]* /autom4te: m4 /
-        s!^.*/\([^/][^/]*\)\.m4: *\([0-9][0-9]*:\)*!\1.m4:!
+        s!^.*/\([^/][^/]*\)\.m4: *[0-9][0-9]*: *!\1.m4: !
+        s!^.*/\([^/][^/]*\)\.m4: *[0-9][0-9]*: *[0-9][0-9]*: *!\1.m4: !
        s/ (E[A-Z]*)$//
     ' stderr-raw >&2]], [0], [], [$4])])
 ])