diff options
author | 2022-01-30 03:33:39 -0500 | |
---|---|---|
committer | 2022-01-30 03:33:39 -0500 | |
commit | b4019f43ca1dce3ebe043926bb4ef3f831df3071 (patch) | |
tree | 6c99e4ded68b5d883eedb800c55b217c95ba8447 | |
parent | autoconf-wrapper: fix minor variable styling (diff) | |
download | autotools-wrappers-b4019f43ca1dce3ebe043926bb4ef3f831df3071.tar.gz autotools-wrappers-b4019f43ca1dce3ebe043926bb4ef3f831df3071.tar.bz2 autotools-wrappers-b4019f43ca1dce3ebe043926bb4ef3f831df3071.zip |
autoconf-wrapper: try to enable shell POSIX mode if available
This sync the logic that's been in the automake wrapper for a long time.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | ac-wrapper.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ac-wrapper.sh b/ac-wrapper.sh index d522576..f9b0857 100755 --- a/ac-wrapper.sh +++ b/ac-wrapper.sh @@ -15,6 +15,8 @@ # -or- # - `configure' is already present and was generated by autoconf 2.13 +(set -o posix) 2>/dev/null && set -o posix + warn() { printf "ac-wrapper: $*\n" 1>&2; } err() { warn "$@"; exit 1; } unset IFS |