]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Port test to next m4 version
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 31 Aug 2021 17:11:04 +0000 (10:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 31 Aug 2021 23:10:30 +0000 (16:10 -0700)
* tests/tools.at (autom4te cache):
Allow m4 to quote 'like this' as well as 'like this'.

tests/tools.at

index 77d9c1e6032e8dbdb2bf934dc22d35838a38aef7..48cdd9241bd5f0077e4ea3cbb64fde9dc5d5e7bd 100644 (file)
@@ -98,10 +98,20 @@ AT_CHECK_M4SUGAR
 # We moved a file: it should fail
 mkdir sub
 mv foo sub
-AT_CHECK_M4SUGAR([], [1], [],
+case `$M4 no/such/file 2>&1` in
+  *\`no/such/file*)
+    AT_CHECK_M4SUGAR([], [1], [],
 [m4:script.4s:1: cannot open `foo': No such file or directory
 autom4te: error: m4 failed with exit status: 1
 ])
+    ;;
+  *)
+    AT_CHECK_M4SUGAR([], [1], [],
+[m4:script.4s:1: cannot open 'foo': No such file or directory
+autom4te: error: m4 failed with exit status: 1
+])
+    ;;
+esac
 
 # But if we change the main file, then we should no longer complain of
 # missing files.