aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-03-09 22:20:36 -0700
committerSteven Fackler <[email protected]>2014-03-09 22:20:36 -0700
commit548cd1e72615afc6c49f49889ddea790d3bcefe3 (patch)
tree197d4d727accd254bf13cdbe60b4d5bdab41e892 /configure
parentProperly propogate errors (diff)
downloadrust-openssl-548cd1e72615afc6c49f49889ddea790d3bcefe3.tar.xz
rust-openssl-548cd1e72615afc6c49f49889ddea790d3bcefe3.zip
Add a configure option for SSLv2 support
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index 7fe7f2bb..92ee62d1 100755
--- a/configure
+++ b/configure
@@ -2,19 +2,27 @@
cd $(dirname $0)
-TEMP=`getopt -o "" --long prefix: -n "$0" -- "$@"`
+TEMP=`getopt -o "" --long prefix:,enable-sslv2 -n "$0" -- "$@"`
if [ $? != 0 ]; then exit 1; fi
eval set -- "$TEMP"
PREFIX=/usr/lib
+RUSTCFGS=
while true ; do
case "$1" in
--prefix) PREFIX=$2; shift 2;;
+ --enable-sslv2)
+ RUSTCFGS="$RUSTCFGS --cfg sslv2"
+ shift
+ break
+ ;;
--) shift; break;;
esac
done
-sed -e "s|%PREFIX%|$PREFIX|" < Makefile.in > Makefile
+sed -e "s|%PREFIX%|$PREFIX|" \
+ -e "s|%RUSTCFGS%|$RUSTCFGS|" \
+ < Makefile.in > Makefile