summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMobin <mobin@mobintestserver.ir>2023-07-08 12:56:43 +0330
committerLaurent Bercot <ska-skaware@skarnet.org>2023-07-10 22:43:06 +0000
commitfa086678a2a0239e3ae773aefebd631895de7905 (patch)
treeca17553c1354598c7aff9ee0fab2c5f53136adb4 /configure
parentb6fc3f20036aeab05c929d096324ff026c732f18 (diff)
downloadsmtpd-starttls-proxy-fa086678a2a0239e3ae773aefebd631895de7905.tar.xz
configure: Catch all of variable values
If variables have multiple values (such as CFLAGS="-std=c11 -fPIE"), eval drops most values (except first one) from it. This commit fixes this issue. Signed-off-by: Mobin "Hojjat" Aydinfar <mobin@mobintestserver.ir>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index d3fb5a0..28dbee3 100755
--- a/configure
+++ b/configure
@@ -196,7 +196,7 @@ for arg ; do
--host=*|--target=*) target=${arg#*=} ;;
--build=*) build=${arg#*=} ;;
-* ) echo "$0: unknown option $arg" ;;
- *=*) eval "$arg" ;;
+ *=*) eval "${arg%%=*}=\${arg#*=}" ;;
*) target=$arg ;;
esac
done