aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openssl/unix/configure
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/openssl/unix/configure
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/openssl/unix/configure')
-rwxr-xr-xvcpkg/ports/openssl/unix/configure31
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/openssl/unix/configure b/vcpkg/ports/openssl/unix/configure
new file mode 100755
index 0000000..2d49b3d
--- /dev/null
+++ b/vcpkg/ports/openssl/unix/configure
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+
+set -e
+
+declare -a OUT_OPTIONS
+
+INTERPRETER=perl
+
+LAST_SEEN=
+COPY_OPTIONS=no
+for OPTION; do
+ case "${OPTION},${COPY_OPTIONS}" in
+ */Configure,no)
+ OUT_OPTIONS+=("${OPTION}")
+ INTERPRETER="${LAST_SEEN}"
+ COPY_OPTIONS=yes
+ ;;
+ --prefix=*|--openssldir=*|--libdir=*|--cross-compile-prefix=*|--debug,*)
+ OUT_OPTIONS+=("${OPTION}")
+ ;;
+ -*|*=*)
+ ;;
+ *,yes)
+ OUT_OPTIONS+=("${OPTION}")
+ ;;
+ esac
+ LAST_SEEN="${OPTION}"
+done
+
+set -x
+"${INTERPRETER}" ${OUT_OPTIONS[@]}