]> granicus.if.org Git - strace/commitdiff
configure.ac: honor exit status of commands run by m4_esyscmd
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 15 Jul 2019 12:04:48 +0000 (12:04 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 15 Jul 2019 12:04:48 +0000 (12:04 +0000)
If the command run by m4_esyscmd exits with non-zero exit status,
autom4te shall terminate.

* m4/st_esyscmd_s.m4: New file.
* configure.ac: Replace m4_esyscmd with st_esyscmd_s.

References: https://github.com/strace/strace/issues/105

configure.ac
m4/st_esyscmd_s.m4 [new file with mode: 0644]

index a973c2b27f3c2680418873618348f9505e65a741..5441295ff73ffa44a45494b689bdc76ff9d3f35d 100644 (file)
 
 AC_PREREQ(2.57)
 AC_INIT([strace],
-       m4_esyscmd([./git-version-gen .tarball-version]),
+       st_esyscmd_s([./git-version-gen .tarball-version]),
        [strace-devel@lists.strace.io],
        [strace],
        [https://strace.io])
-m4_define([copyright_year], m4_esyscmd([./copyright-year-gen .year]))
-m4_define([manpage_date], m4_esyscmd([./file-date-gen strace.1.in]))
+m4_define([copyright_year], st_esyscmd_s([./copyright-year-gen .year]))
+m4_define([manpage_date], st_esyscmd_s([./file-date-gen strace.1.in]))
 AC_COPYRIGHT([Copyright (c) 1999-]copyright_year[ The strace developers.])
 AC_CONFIG_SRCDIR([strace.c])
 AC_CONFIG_AUX_DIR([.])
diff --git a/m4/st_esyscmd_s.m4 b/m4/st_esyscmd_s.m4
new file mode 100644 (file)
index 0000000..df1302c
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/m4
+#
+# Copyright (c) 2019 The strace developers.
+# All rights reserved.
+#
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+AC_DEFUN([st_esyscmd_s], [dnl
+m4_esyscmd_s([$1])dnl
+m4_assert(m4_sysval == 0)])