[gnome-commander] Updating m4 files and mkinstalldirs
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Updating m4 files and mkinstalldirs
- Date: Sat, 9 Oct 2021 10:00:38 +0000 (UTC)
commit e8c74a7a9d9b6eb97827bda099db48d8676251c7
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Oct 9 11:56:51 2021 +0200
Updating m4 files and mkinstalldirs
m4/ax_cxx_compile_stdcxx.m4 | 18 ++++++++++++++++--
m4/ax_is_release.m4 | 7 ++++---
mkinstalldirs | 22 +++++++++++-----------
3 files changed, 31 insertions(+), 16 deletions(-)
---
diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4
index 9e9eaeda..9413da62 100644
--- a/m4/ax_cxx_compile_stdcxx.m4
+++ b/m4/ax_cxx_compile_stdcxx.m4
@@ -16,7 +16,7 @@
# The second argument, if specified, indicates whether you insist on an
# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
# -std=c++11). If neither is specified, you get whatever works, with
-# preference for an extended mode.
+# preference for no added switch, and then for an extended mode.
#
# The third argument, if specified 'mandatory' or if left unspecified,
# indicates that baseline support for the specified C++ standard is
@@ -34,13 +34,15 @@
# Copyright (c) 2015 Paul Norman <penorman mac com>
# Copyright (c) 2015 Moritz Klammler <moritz klammler eu>
# Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz gmail com>
+# Copyright (c) 2019 Enji Cooper <yaneurabeya gmail com>
+# Copyright (c) 2020 Jason Merrill <jason redhat com>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 10
+#serial 12
dnl This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro
dnl (serial version number 13).
@@ -61,6 +63,16 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
AC_LANG_PUSH([C++])dnl
ac_success=no
+ m4_if([$2], [], [dnl
+ AC_CACHE_CHECK(whether $CXX supports C++$1 features by default,
+ ax_cv_cxx_compile_cxx$1,
+ [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])],
+ [ax_cv_cxx_compile_cxx$1=yes],
+ [ax_cv_cxx_compile_cxx$1=no])])
+ if test x$ax_cv_cxx_compile_cxx$1 = xyes; then
+ ac_success=yes
+ fi])
+
m4_if([$2], [noext], [], [dnl
if test x$ac_success = xno; then
for alternative in ${ax_cxx_compile_alternatives}; do
@@ -189,11 +201,13 @@ namespace cxx11
struct Base
{
+ virtual ~Base() {}
virtual void f() {}
};
struct Derived : public Base
{
+ virtual ~Derived() override {}
virtual void f() override {}
};
diff --git a/m4/ax_is_release.m4 b/m4/ax_is_release.m4
index 9097ddb6..3a62609c 100644
--- a/m4/ax_is_release.m4
+++ b/m4/ax_is_release.m4
@@ -19,7 +19,8 @@
# The POLICY parameter specifies how ax_is_release is determined. It can
# take the following values:
#
-# * git-directory: ax_is_release will be 'no' if a '.git' directory exists
+# * git-directory: ax_is_release will be 'no' if a '.git'
+# directory or git worktree exists
# * minor-version: ax_is_release will be 'no' if the minor version number
# in $PACKAGE_VERSION is odd; this assumes
# $PACKAGE_VERSION follows the 'major.minor.micro' scheme
@@ -44,7 +45,7 @@
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved.
-#serial 7
+#serial 8
AC_DEFUN([AX_IS_RELEASE],[
AC_BEFORE([AC_INIT],[$0])
@@ -52,7 +53,7 @@ AC_DEFUN([AX_IS_RELEASE],[
m4_case([$1],
[git-directory],[
# $is_release = (.git directory does not exist)
- AS_IF([test -d ${srcdir}/.git],[ax_is_release=no],[ax_is_release=yes])
+ AS_IF([test -d ${srcdir}/.git || (test -f ${srcdir}/.git && grep \.git/worktrees
${srcdir}/.git)],[ax_is_release=no],[ax_is_release=yes])
],
[minor-version],[
# $is_release = ($minor_version is even)
diff --git a/mkinstalldirs b/mkinstalldirs
index 36aa9095..c364f3d5 100755
--- a/mkinstalldirs
+++ b/mkinstalldirs
@@ -1,7 +1,7 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
-scriptversion=2018-03-07.03; # UTC
+scriptversion=2020-07-26.22; # UTC
# Original author: Noah Friedman <friedman prep ai mit edu>
# Created: 1993-05-16
@@ -92,6 +92,8 @@ case $dirmode in
*)
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
test ! -d ./--version; then
+ echo "umask 22"
+ umask 22
echo "mkdir -m $dirmode -p -- $*"
exec mkdir -m "$dirmode" -p -- "$@"
else
@@ -104,6 +106,9 @@ case $dirmode in
;;
esac
+echo "umask 22"
+umask 22
+
for file
do
case $file in
@@ -132,21 +137,16 @@ do
if test ! -d "$pathcomp"; then
errstatus=$lasterr
- else
- if test ! -z "$dirmode"; then
- echo "chmod $dirmode $pathcomp"
- lasterr=
- chmod "$dirmode" "$pathcomp" || lasterr=$?
-
- if test ! -z "$lasterr"; then
- errstatus=$lasterr
- fi
- fi
fi
fi
pathcomp=$pathcomp/
done
+
+ if test ! -z "$dirmode"; then
+ echo "chmod $dirmode $file"
+ chmod "$dirmode" "$file" || errstatus=$?
+ fi
done
exit $errstatus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]