aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-30 03:33:39 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-30 03:33:39 -0500
commitb4019f43ca1dce3ebe043926bb4ef3f831df3071 (patch)
tree6c99e4ded68b5d883eedb800c55b217c95ba8447
parentautoconf-wrapper: fix minor variable styling (diff)
downloadautotools-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-xac-wrapper.sh2
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